1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for phsa HSAIL runtime library 1.0. 4# 5# Report bugs to <pekka.jaaskelainen@parmance.com>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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 278$0: pekka.jaaskelainen@parmance.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='phsa HSAIL runtime library' 592PACKAGE_TARNAME='phsa-hsail-runtime-library' 593PACKAGE_VERSION='1.0' 594PACKAGE_STRING='phsa HSAIL runtime library 1.0' 595PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com' 596PACKAGE_URL='' 597 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 638get_gcc_base_ver 639toolexeclibdir 640toolexecdir 641CXXCPP 642CPP 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648RANLIB 649AR 650OBJDUMP 651LN_S 652NM 653ac_ct_DUMPBIN 654DUMPBIN 655LD 656FGREP 657EGREP 658GREP 659SED 660LIBTOOL 661MAC_LINKER_SCRIPT_FALSE 662MAC_LINKER_SCRIPT_TRUE 663LINUX_LINKER_SCRIPT_FALSE 664LINUX_LINKER_SCRIPT_TRUE 665config_dir 666am__fastdepCXX_FALSE 667am__fastdepCXX_TRUE 668CXXDEPMODE 669ac_ct_CXX 670CXXFLAGS 671CXX 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689MAINT 690MAINTAINER_MODE_FALSE 691MAINTAINER_MODE_TRUE 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719target_os 720target_vendor 721target_cpu 722target 723host_os 724host_vendor 725host_cpu 726host 727build_os 728build_vendor 729build_cpu 730build 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750localstatedir 751sharedstatedir 752sysconfdir 753datadir 754datarootdir 755libexecdir 756sbindir 757bindir 758program_transform_name 759prefix 760exec_prefix 761PACKAGE_URL 762PACKAGE_BUGREPORT 763PACKAGE_STRING 764PACKAGE_VERSION 765PACKAGE_TARNAME 766PACKAGE_NAME 767PATH_SEPARATOR 768SHELL' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_maintainer_mode 774enable_dependency_tracking 775enable_version_specific_runtime_libs 776with_toolexeclibdir 777enable_shared 778enable_static 779with_pic 780enable_fast_install 781with_gnu_ld 782enable_libtool_lock 783with_gcc_major_version_only 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793CXX 794CXXFLAGS 795CCC 796CPP 797CXXCPP' 798 799 800# Initialize some variables set by options. 801ac_init_help= 802ac_init_version=false 803ac_unrecognized_opts= 804ac_unrecognized_sep= 805# The variables have the same names as the options, with 806# dashes changed to underlines. 807cache_file=/dev/null 808exec_prefix=NONE 809no_create= 810no_recursion= 811prefix=NONE 812program_prefix=NONE 813program_suffix=NONE 814program_transform_name=s,x,x, 815silent= 816site= 817srcdir= 818verbose= 819x_includes=NONE 820x_libraries=NONE 821 822# Installation directory options. 823# These are left unexpanded so users can "make install exec_prefix=/foo" 824# and all the variables that are supposed to be based on exec_prefix 825# by default will actually change. 826# Use braces instead of parens because sh, perl, etc. also accept them. 827# (The list follows the same order as the GNU Coding Standards.) 828bindir='${exec_prefix}/bin' 829sbindir='${exec_prefix}/sbin' 830libexecdir='${exec_prefix}/libexec' 831datarootdir='${prefix}/share' 832datadir='${datarootdir}' 833sysconfdir='${prefix}/etc' 834sharedstatedir='${prefix}/com' 835localstatedir='${prefix}/var' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 # Accept the important Cygnus configure options, so we can diagnose typos. 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: $ac_useropt" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: $ac_useropt" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: $ac_useropt" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1184Try \`$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: `$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281$as_echo X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338\`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print \`checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for \`--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, \`make install' will install all the files in 1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1367for instance \`--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --libdir=DIR object code libraries [EPREFIX/lib] 1379 --includedir=DIR C header files [PREFIX/include] 1380 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1383 --infodir=DIR info documentation [DATAROOTDIR/info] 1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1385 --mandir=DIR man documentation [DATAROOTDIR/man] 1386 --docdir=DIR documentation root 1387 [DATAROOTDIR/doc/phsa-hsail-runtime-library] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404 --target=TARGET configure for building compilers for TARGET [HOST] 1405_ACEOF 1406fi 1407 1408if test -n "$ac_init_help"; then 1409 case $ac_init_help in 1410 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";; 1411 esac 1412 cat <<\_ACEOF 1413 1414Optional Features: 1415 --disable-option-checking ignore unrecognized --enable/--with options 1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1418 --enable-silent-rules less verbose build output (undo: "make V=1") 1419 --disable-silent-rules verbose build output (undo: "make V=0") 1420 --enable-maintainer-mode 1421 enable make rules and dependencies not useful (and 1422 sometimes confusing) to the casual installer 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --enable-version-specific-runtime-libs 1428 Specify that runtime libraries should be installed 1429 in a compi ler-specific directory 1430 --enable-shared[=PKGS] build shared libraries [default=yes] 1431 --enable-static[=PKGS] build static libraries [default=yes] 1432 --enable-fast-install[=PKGS] 1433 optimize for fast installation [default=yes] 1434 --disable-libtool-lock avoid locking (might break parallel builds) 1435 1436Optional Packages: 1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439 --with-toolexeclibdir=DIR 1440 install libraries built with a cross compiler within 1441 DIR 1442 --with-pic try to use only PIC/non-PIC objects [default=use 1443 both] 1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1445 --with-gcc-major-version-only 1446 use only GCC major number in filesystem paths 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 CXX C++ compiler command 1457 CXXFLAGS C++ compiler flags 1458 CPP C preprocessor 1459 CXXCPP C++ preprocessor 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <pekka.jaaskelainen@parmance.com>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for guested configure. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527phsa HSAIL runtime library configure 1.0 1528generated by GNU Autoconf 2.69 1529 1530Copyright (C) 2012 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} # ac_fn_c_try_compile 1578 1579# ac_fn_cxx_try_compile LINENO 1580# ---------------------------- 1581# Try to compile conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_cxx_try_compile () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext 1586 if { { ac_try="$ac_compile" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_compile") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_cxx_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest.$ac_objext; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_cxx_try_compile 1616 1617# ac_fn_c_try_link LINENO 1618# ----------------------- 1619# Try to link conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_link () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext conftest$ac_exeext 1624 if { { ac_try="$ac_link" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_link") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest$ac_exeext && { 1643 test "$cross_compiling" = yes || 1644 test -x conftest$ac_exeext 1645 }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1655 # interfere with the next link command; also delete a directory that is 1656 # left behind by Apple's compiler. We do this before executing the actions. 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_link 1662 1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664# ------------------------------------------------------- 1665# Tests whether HEADER exists and can be compiled using the include files in 1666# INCLUDES, setting the cache variable VAR accordingly. 1667ac_fn_c_check_header_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677$4 1678#include <$2> 1679_ACEOF 1680if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682else 1683 eval "$3=no" 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692} # ac_fn_c_check_header_compile 1693 1694# ac_fn_c_try_cpp LINENO 1695# ---------------------- 1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1697ac_fn_c_try_cpp () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_cpp conftest.$ac_ext" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } > conftest.i && { 1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 }; then : 1719 ac_retval=0 1720else 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=1 1725fi 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_cpp 1730 1731# ac_fn_c_try_run LINENO 1732# ---------------------- 1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1734# that executables *can* be run. 1735ac_fn_c_try_run () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if { { ac_try="$ac_link" 1739case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_link") 2>&5 1746 ac_status=$? 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1749 { { case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754$as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_try") 2>&5 1756 ac_status=$? 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; }; }; then : 1759 ac_retval=0 1760else 1761 $as_echo "$as_me: program exited with status $ac_status" >&5 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=$ac_status 1766fi 1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771} # ac_fn_c_try_run 1772 1773# ac_fn_c_check_func LINENO FUNC VAR 1774# ---------------------------------- 1775# Tests whether FUNC exists, setting the cache variable VAR accordingly 1776ac_fn_c_check_func () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783else 1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1785/* end confdefs.h. */ 1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1788#define $2 innocuous_$2 1789 1790/* System header to define __stub macros and hopefully few prototypes, 1791 which can conflict with char $2 (); below. 1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1793 <limits.h> exists even on freestanding compilers. */ 1794 1795#ifdef __STDC__ 1796# include <limits.h> 1797#else 1798# include <assert.h> 1799#endif 1800 1801#undef $2 1802 1803/* Override any GCC internal prototype to avoid an error. 1804 Use char because int might match the return type of a GCC 1805 builtin and then its argument prototype would still apply. */ 1806#ifdef __cplusplus 1807extern "C" 1808#endif 1809char $2 (); 1810/* The GNU C library defines this for functions which it implements 1811 to always fail with ENOSYS. Some functions are actually named 1812 something starting with __ and the normal name is an alias. */ 1813#if defined __stub_$2 || defined __stub___$2 1814choke me 1815#endif 1816 1817int 1818main () 1819{ 1820return $2 (); 1821 ; 1822 return 0; 1823} 1824_ACEOF 1825if ac_fn_c_try_link "$LINENO"; then : 1826 eval "$3=yes" 1827else 1828 eval "$3=no" 1829fi 1830rm -f core conftest.err conftest.$ac_objext \ 1831 conftest$ac_exeext conftest.$ac_ext 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838} # ac_fn_c_check_func 1839 1840# ac_fn_cxx_try_cpp LINENO 1841# ------------------------ 1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_cxx_try_cpp () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 if { { ac_try="$ac_cpp conftest.$ac_ext" 1847case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1854 ac_status=$? 1855 if test -s conftest.err; then 1856 grep -v '^ *+' conftest.err >conftest.er1 1857 cat conftest.er1 >&5 1858 mv -f conftest.er1 conftest.err 1859 fi 1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } > conftest.i && { 1862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1863 test ! -s conftest.err 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 as_fn_set_status $ac_retval 1874 1875} # ac_fn_cxx_try_cpp 1876 1877# ac_fn_cxx_try_link LINENO 1878# ------------------------- 1879# Try to link conftest.$ac_ext, and return whether this succeeded. 1880ac_fn_cxx_try_link () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 rm -f conftest.$ac_objext conftest$ac_exeext 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } && { 1900 test -z "$ac_cxx_werror_flag" || 1901 test ! -s conftest.err 1902 } && test -s conftest$ac_exeext && { 1903 test "$cross_compiling" = yes || 1904 test -x conftest$ac_exeext 1905 }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1915 # interfere with the next link command; also delete a directory that is 1916 # left behind by Apple's compiler. We do this before executing the actions. 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921} # ac_fn_cxx_try_link 1922 1923# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1924# -------------------------------------------- 1925# Tries to find the compile-time value of EXPR in a program that includes 1926# INCLUDES, setting VAR accordingly. Returns whether the value could be 1927# computed 1928ac_fn_c_compute_int () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 if test "$cross_compiling" = yes; then 1932 # Depending upon the size, compute the lo and hi bounds. 1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935$4 1936int 1937main () 1938{ 1939static int test_array [1 - 2 * !(($2) >= 0)]; 1940test_array [0] = 0; 1941return test_array [0]; 1942 1943 ; 1944 return 0; 1945} 1946_ACEOF 1947if ac_fn_c_try_compile "$LINENO"; then : 1948 ac_lo=0 ac_mid=0 1949 while :; do 1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1951/* end confdefs.h. */ 1952$4 1953int 1954main () 1955{ 1956static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1957test_array [0] = 0; 1958return test_array [0]; 1959 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 ac_hi=$ac_mid; break 1966else 1967 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1968 if test $ac_lo -le $ac_mid; then 1969 ac_lo= ac_hi= 1970 break 1971 fi 1972 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1973fi 1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1975 done 1976else 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979$4 1980int 1981main () 1982{ 1983static int test_array [1 - 2 * !(($2) < 0)]; 1984test_array [0] = 0; 1985return test_array [0]; 1986 1987 ; 1988 return 0; 1989} 1990_ACEOF 1991if ac_fn_c_try_compile "$LINENO"; then : 1992 ac_hi=-1 ac_mid=-1 1993 while :; do 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995/* end confdefs.h. */ 1996$4 1997int 1998main () 1999{ 2000static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2001test_array [0] = 0; 2002return test_array [0]; 2003 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_compile "$LINENO"; then : 2009 ac_lo=$ac_mid; break 2010else 2011 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2012 if test $ac_mid -le $ac_hi; then 2013 ac_lo= ac_hi= 2014 break 2015 fi 2016 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019 done 2020else 2021 ac_lo= ac_hi= 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026# Binary search between lo and hi bounds. 2027while test "x$ac_lo" != "x$ac_hi"; do 2028 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030/* end confdefs.h. */ 2031$4 2032int 2033main () 2034{ 2035static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2036test_array [0] = 0; 2037return test_array [0]; 2038 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO"; then : 2044 ac_hi=$ac_mid 2045else 2046 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2047fi 2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2049done 2050case $ac_lo in #(( 2051?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2052'') ac_retval=1 ;; 2053esac 2054 else 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058static long int longval () { return $2; } 2059static unsigned long int ulongval () { return $2; } 2060#include <stdio.h> 2061#include <stdlib.h> 2062int 2063main () 2064{ 2065 2066 FILE *f = fopen ("conftest.val", "w"); 2067 if (! f) 2068 return 1; 2069 if (($2) < 0) 2070 { 2071 long int i = longval (); 2072 if (i != ($2)) 2073 return 1; 2074 fprintf (f, "%ld", i); 2075 } 2076 else 2077 { 2078 unsigned long int i = ulongval (); 2079 if (i != ($2)) 2080 return 1; 2081 fprintf (f, "%lu", i); 2082 } 2083 /* Do not output a trailing newline, as this causes \r\n confusion 2084 on some platforms. */ 2085 return ferror (f) || fclose (f) != 0; 2086 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_run "$LINENO"; then : 2092 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2093else 2094 ac_retval=1 2095fi 2096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2097 conftest.$ac_objext conftest.beam conftest.$ac_ext 2098rm -f conftest.val 2099 2100 fi 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 as_fn_set_status $ac_retval 2103 2104} # ac_fn_c_compute_int 2105cat >config.log <<_ACEOF 2106This file contains any messages produced by compilers while 2107running configure, to aid debugging if configure makes a mistake. 2108 2109It was created by phsa HSAIL runtime library $as_me 1.0, which was 2110generated by GNU Autoconf 2.69. Invocation command line was 2111 2112 $ $0 $@ 2113 2114_ACEOF 2115exec 5>>config.log 2116{ 2117cat <<_ASUNAME 2118## --------- ## 2119## Platform. ## 2120## --------- ## 2121 2122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2123uname -m = `(uname -m) 2>/dev/null || echo unknown` 2124uname -r = `(uname -r) 2>/dev/null || echo unknown` 2125uname -s = `(uname -s) 2>/dev/null || echo unknown` 2126uname -v = `(uname -v) 2>/dev/null || echo unknown` 2127 2128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2130 2131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2138 2139_ASUNAME 2140 2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2142for as_dir in $PATH 2143do 2144 IFS=$as_save_IFS 2145 test -z "$as_dir" && as_dir=. 2146 $as_echo "PATH: $as_dir" 2147 done 2148IFS=$as_save_IFS 2149 2150} >&5 2151 2152cat >&5 <<_ACEOF 2153 2154 2155## ----------- ## 2156## Core tests. ## 2157## ----------- ## 2158 2159_ACEOF 2160 2161 2162# Keep a trace of the command line. 2163# Strip out --no-create and --no-recursion so they do not pile up. 2164# Strip out --silent because we don't want to record it for future runs. 2165# Also quote any args containing shell meta-characters. 2166# Make two passes to allow for proper duplicate-argument suppression. 2167ac_configure_args= 2168ac_configure_args0= 2169ac_configure_args1= 2170ac_must_keep_next=false 2171for ac_pass in 1 2 2172do 2173 for ac_arg 2174 do 2175 case $ac_arg in 2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2178 | -silent | --silent | --silen | --sile | --sil) 2179 continue ;; 2180 *\'*) 2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2182 esac 2183 case $ac_pass in 2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2185 2) 2186 as_fn_append ac_configure_args1 " '$ac_arg'" 2187 if test $ac_must_keep_next = true; then 2188 ac_must_keep_next=false # Got value, back to normal. 2189 else 2190 case $ac_arg in 2191 *=* | --config-cache | -C | -disable-* | --disable-* \ 2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2194 | -with-* | --with-* | -without-* | --without-* | --x) 2195 case "$ac_configure_args0 " in 2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2197 esac 2198 ;; 2199 -* ) ac_must_keep_next=true ;; 2200 esac 2201 fi 2202 as_fn_append ac_configure_args " '$ac_arg'" 2203 ;; 2204 esac 2205 done 2206done 2207{ ac_configure_args0=; unset ac_configure_args0;} 2208{ ac_configure_args1=; unset ac_configure_args1;} 2209 2210# When interrupted or exit'd, cleanup temporary files, and complete 2211# config.log. We remove comments because anyway the quotes in there 2212# would cause problems or look ugly. 2213# WARNING: Use '\'' to represent an apostrophe within the trap. 2214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2215trap 'exit_status=$? 2216 # Save into config.log some information that might help in debugging. 2217 { 2218 echo 2219 2220 $as_echo "## ---------------- ## 2221## Cache variables. ## 2222## ---------------- ##" 2223 echo 2224 # The following way of writing the cache mishandles newlines in values, 2225( 2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2227 eval ac_val=\$$ac_var 2228 case $ac_val in #( 2229 *${as_nl}*) 2230 case $ac_var in #( 2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2233 esac 2234 case $ac_var in #( 2235 _ | IFS | as_nl) ;; #( 2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2237 *) { eval $ac_var=; unset $ac_var;} ;; 2238 esac ;; 2239 esac 2240 done 2241 (set) 2>&1 | 2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2243 *${as_nl}ac_space=\ *) 2244 sed -n \ 2245 "s/'\''/'\''\\\\'\'''\''/g; 2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2247 ;; #( 2248 *) 2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2250 ;; 2251 esac | 2252 sort 2253) 2254 echo 2255 2256 $as_echo "## ----------------- ## 2257## Output variables. ## 2258## ----------------- ##" 2259 echo 2260 for ac_var in $ac_subst_vars 2261 do 2262 eval ac_val=\$$ac_var 2263 case $ac_val in 2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2265 esac 2266 $as_echo "$ac_var='\''$ac_val'\''" 2267 done | sort 2268 echo 2269 2270 if test -n "$ac_subst_files"; then 2271 $as_echo "## ------------------- ## 2272## File substitutions. ## 2273## ------------------- ##" 2274 echo 2275 for ac_var in $ac_subst_files 2276 do 2277 eval ac_val=\$$ac_var 2278 case $ac_val in 2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2280 esac 2281 $as_echo "$ac_var='\''$ac_val'\''" 2282 done | sort 2283 echo 2284 fi 2285 2286 if test -s confdefs.h; then 2287 $as_echo "## ----------- ## 2288## confdefs.h. ## 2289## ----------- ##" 2290 echo 2291 cat confdefs.h 2292 echo 2293 fi 2294 test "$ac_signal" != 0 && 2295 $as_echo "$as_me: caught signal $ac_signal" 2296 $as_echo "$as_me: exit $exit_status" 2297 } >&5 2298 rm -f core *.core core.conftest.* && 2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2300 exit $exit_status 2301' 0 2302for ac_signal in 1 2 13 15; do 2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2304done 2305ac_signal=0 2306 2307# confdefs.h avoids OS command line length limits that DEFS can exceed. 2308rm -f -r conftest* confdefs.h 2309 2310$as_echo "/* confdefs.h */" > confdefs.h 2311 2312# Predefined preprocessor variables. 2313 2314cat >>confdefs.h <<_ACEOF 2315#define PACKAGE_NAME "$PACKAGE_NAME" 2316_ACEOF 2317 2318cat >>confdefs.h <<_ACEOF 2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2320_ACEOF 2321 2322cat >>confdefs.h <<_ACEOF 2323#define PACKAGE_VERSION "$PACKAGE_VERSION" 2324_ACEOF 2325 2326cat >>confdefs.h <<_ACEOF 2327#define PACKAGE_STRING "$PACKAGE_STRING" 2328_ACEOF 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2332_ACEOF 2333 2334cat >>confdefs.h <<_ACEOF 2335#define PACKAGE_URL "$PACKAGE_URL" 2336_ACEOF 2337 2338 2339# Let the site file select an alternate cache file if it wants to. 2340# Prefer an explicitly selected file to automatically selected ones. 2341ac_site_file1=NONE 2342ac_site_file2=NONE 2343if test -n "$CONFIG_SITE"; then 2344 # We do not want a PATH search for config.site. 2345 case $CONFIG_SITE in #(( 2346 -*) ac_site_file1=./$CONFIG_SITE;; 2347 */*) ac_site_file1=$CONFIG_SITE;; 2348 *) ac_site_file1=./$CONFIG_SITE;; 2349 esac 2350elif test "x$prefix" != xNONE; then 2351 ac_site_file1=$prefix/share/config.site 2352 ac_site_file2=$prefix/etc/config.site 2353else 2354 ac_site_file1=$ac_default_prefix/share/config.site 2355 ac_site_file2=$ac_default_prefix/etc/config.site 2356fi 2357for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2358do 2359 test "x$ac_site_file" = xNONE && continue 2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2362$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2363 sed 's/^/| /' "$ac_site_file" >&5 2364 . "$ac_site_file" \ 2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2367as_fn_error $? "failed to load site script $ac_site_file 2368See \`config.log' for more details" "$LINENO" 5; } 2369 fi 2370done 2371 2372if test -r "$cache_file"; then 2373 # Some versions of bash will fail to source /dev/null (special files 2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2377$as_echo "$as_me: loading cache $cache_file" >&6;} 2378 case $cache_file in 2379 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2380 *) . "./$cache_file";; 2381 esac 2382 fi 2383else 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2385$as_echo "$as_me: creating cache $cache_file" >&6;} 2386 >$cache_file 2387fi 2388 2389# Check that the precious variables saved in the cache have kept the same 2390# value. 2391ac_cache_corrupted=false 2392for ac_var in $ac_precious_vars; do 2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2394 eval ac_new_set=\$ac_env_${ac_var}_set 2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2396 eval ac_new_val=\$ac_env_${ac_var}_value 2397 case $ac_old_set,$ac_new_set in 2398 set,) 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2400$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2401 ac_cache_corrupted=: ;; 2402 ,set) 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2404$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2405 ac_cache_corrupted=: ;; 2406 ,);; 2407 *) 2408 if test "x$ac_old_val" != "x$ac_new_val"; then 2409 # differences in whitespace do not lead to failure. 2410 ac_old_val_w=`echo x $ac_old_val` 2411 ac_new_val_w=`echo x $ac_new_val` 2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2414$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2415 ac_cache_corrupted=: 2416 else 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2418$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2419 eval $ac_var=\$ac_old_val 2420 fi 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2422$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2424$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2425 fi;; 2426 esac 2427 # Pass precious variables to config.status. 2428 if test "$ac_new_set" = set; then 2429 case $ac_new_val in 2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2431 *) ac_arg=$ac_var=$ac_new_val ;; 2432 esac 2433 case " $ac_configure_args " in 2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2436 esac 2437 fi 2438done 2439if $ac_cache_corrupted; then 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2443$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2445fi 2446## -------------------- ## 2447## Main body of script. ## 2448## -------------------- ## 2449 2450ac_ext=c 2451ac_cpp='$CPP $CPPFLAGS' 2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2454ac_compiler_gnu=$ac_cv_c_compiler_gnu 2455 2456 2457 2458 2459 2460 2461# Needed to define ${target}. Needs to be very early to avoid annoying 2462# warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM 2463ac_aux_dir= 2464for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2465 if test -f "$ac_dir/install-sh"; then 2466 ac_aux_dir=$ac_dir 2467 ac_install_sh="$ac_aux_dir/install-sh -c" 2468 break 2469 elif test -f "$ac_dir/install.sh"; then 2470 ac_aux_dir=$ac_dir 2471 ac_install_sh="$ac_aux_dir/install.sh -c" 2472 break 2473 elif test -f "$ac_dir/shtool"; then 2474 ac_aux_dir=$ac_dir 2475 ac_install_sh="$ac_aux_dir/shtool install -c" 2476 break 2477 fi 2478done 2479if test -z "$ac_aux_dir"; then 2480 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2481fi 2482 2483# These three variables are undocumented and unsupported, 2484# and are intended to be withdrawn in a future Autoconf release. 2485# They can cause serious problems if a builder's source tree is in a directory 2486# whose full name contains unusual characters. 2487ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2488ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2489ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2490 2491 2492# Make sure we can run config.sub. 2493$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2494 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2495 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2497$as_echo_n "checking build system type... " >&6; } 2498if ${ac_cv_build+:} false; then : 2499 $as_echo_n "(cached) " >&6 2500else 2501 ac_build_alias=$build_alias 2502test "x$ac_build_alias" = x && 2503 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2504test "x$ac_build_alias" = x && 2505 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2506ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2508 2509fi 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2511$as_echo "$ac_cv_build" >&6; } 2512case $ac_cv_build in 2513*-*-*) ;; 2514*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2515esac 2516build=$ac_cv_build 2517ac_save_IFS=$IFS; IFS='-' 2518set x $ac_cv_build 2519shift 2520build_cpu=$1 2521build_vendor=$2 2522shift; shift 2523# Remember, the first character of IFS is used to create $*, 2524# except with old shells: 2525build_os=$* 2526IFS=$ac_save_IFS 2527case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2528 2529 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2531$as_echo_n "checking host system type... " >&6; } 2532if ${ac_cv_host+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test "x$host_alias" = x; then 2536 ac_cv_host=$ac_cv_build 2537else 2538 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2540fi 2541 2542fi 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2544$as_echo "$ac_cv_host" >&6; } 2545case $ac_cv_host in 2546*-*-*) ;; 2547*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2548esac 2549host=$ac_cv_host 2550ac_save_IFS=$IFS; IFS='-' 2551set x $ac_cv_host 2552shift 2553host_cpu=$1 2554host_vendor=$2 2555shift; shift 2556# Remember, the first character of IFS is used to create $*, 2557# except with old shells: 2558host_os=$* 2559IFS=$ac_save_IFS 2560case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2561 2562 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2564$as_echo_n "checking target system type... " >&6; } 2565if ${ac_cv_target+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 if test "x$target_alias" = x; then 2569 ac_cv_target=$ac_cv_host 2570else 2571 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2573fi 2574 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2577$as_echo "$ac_cv_target" >&6; } 2578case $ac_cv_target in 2579*-*-*) ;; 2580*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2581esac 2582target=$ac_cv_target 2583ac_save_IFS=$IFS; IFS='-' 2584set x $ac_cv_target 2585shift 2586target_cpu=$1 2587target_vendor=$2 2588shift; shift 2589# Remember, the first character of IFS is used to create $*, 2590# except with old shells: 2591target_os=$* 2592IFS=$ac_save_IFS 2593case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2594 2595 2596# The aliases save the names the user supplied, while $host etc. 2597# will get canonicalized. 2598test -n "$target_alias" && 2599 test "$program_prefix$program_suffix$program_transform_name" = \ 2600 NONENONEs,x,x, && 2601 program_prefix=${target_alias}- 2602 2603target_alias=${target_alias-$host_alias} 2604 2605am__api_version='1.15' 2606 2607# Find a good install program. We prefer a C program (faster), 2608# so one script is as good as another. But avoid the broken or 2609# incompatible versions: 2610# SysV /etc/install, /usr/sbin/install 2611# SunOS /usr/etc/install 2612# IRIX /sbin/install 2613# AIX /bin/install 2614# AmigaOS /C/install, which installs bootblocks on floppy discs 2615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2616# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2618# OS/2's system install, which has a completely different semantic 2619# ./install, which can be erroneously created by make from ./install.sh. 2620# Reject install programs that cannot install multiple files. 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2622$as_echo_n "checking for a BSD-compatible install... " >&6; } 2623if test -z "$INSTALL"; then 2624if ${ac_cv_path_install+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 # Account for people who put trailing slashes in PATH elements. 2633case $as_dir/ in #(( 2634 ./ | .// | /[cC]/* | \ 2635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2637 /usr/ucb/* ) ;; 2638 *) 2639 # OSF1 and SCO ODT 3.0 have their own names for install. 2640 # Don't use installbsd from OSF since it installs stuff as root 2641 # by default. 2642 for ac_prog in ginstall scoinst install; do 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2645 if test $ac_prog = install && 2646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2647 # AIX install. It has an incompatible calling convention. 2648 : 2649 elif test $ac_prog = install && 2650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2651 # program-specific install script used by HP pwplus--don't use. 2652 : 2653 else 2654 rm -rf conftest.one conftest.two conftest.dir 2655 echo one > conftest.one 2656 echo two > conftest.two 2657 mkdir conftest.dir 2658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2659 test -s conftest.one && test -s conftest.two && 2660 test -s conftest.dir/conftest.one && 2661 test -s conftest.dir/conftest.two 2662 then 2663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2664 break 3 2665 fi 2666 fi 2667 fi 2668 done 2669 done 2670 ;; 2671esac 2672 2673 done 2674IFS=$as_save_IFS 2675 2676rm -rf conftest.one conftest.two conftest.dir 2677 2678fi 2679 if test "${ac_cv_path_install+set}" = set; then 2680 INSTALL=$ac_cv_path_install 2681 else 2682 # As a last resort, use the slow shell script. Don't cache a 2683 # value for INSTALL within a source directory, because that will 2684 # break other packages using the cache if that directory is 2685 # removed, or if the value is a relative name. 2686 INSTALL=$ac_install_sh 2687 fi 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2690$as_echo "$INSTALL" >&6; } 2691 2692# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2693# It thinks the first close brace ends the variable substitution. 2694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2695 2696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2697 2698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2699 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2701$as_echo_n "checking whether build environment is sane... " >&6; } 2702# Reject unsafe characters in $srcdir or the absolute working directory 2703# name. Accept space and tab only in the latter. 2704am_lf=' 2705' 2706case `pwd` in 2707 *[\\\"\#\$\&\'\`$am_lf]*) 2708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2709esac 2710case $srcdir in 2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2713esac 2714 2715# Do 'set' in a subshell so we don't clobber the current shell's 2716# arguments. Must try -L first in case configure is actually a 2717# symlink; some systems play weird games with the mod time of symlinks 2718# (eg FreeBSD returns the mod time of the symlink's containing 2719# directory). 2720if ( 2721 am_has_slept=no 2722 for am_try in 1 2; do 2723 echo "timestamp, slept: $am_has_slept" > conftest.file 2724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2725 if test "$*" = "X"; then 2726 # -L didn't work. 2727 set X `ls -t "$srcdir/configure" conftest.file` 2728 fi 2729 if test "$*" != "X $srcdir/configure conftest.file" \ 2730 && test "$*" != "X conftest.file $srcdir/configure"; then 2731 2732 # If neither matched, then we have a broken ls. This can happen 2733 # if, for instance, CONFIG_SHELL is bash and it inherits a 2734 # broken ls alias from the environment. This has actually 2735 # happened. Such a system could not be considered "sane". 2736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2737 alias in your environment" "$LINENO" 5 2738 fi 2739 if test "$2" = conftest.file || test $am_try -eq 2; then 2740 break 2741 fi 2742 # Just in case. 2743 sleep 1 2744 am_has_slept=yes 2745 done 2746 test "$2" = conftest.file 2747 ) 2748then 2749 # Ok. 2750 : 2751else 2752 as_fn_error $? "newly created file is older than distributed files! 2753Check your system clock" "$LINENO" 5 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2756$as_echo "yes" >&6; } 2757# If we didn't sleep, we still need to ensure time stamps of config.status and 2758# generated files are strictly newer. 2759am_sleep_pid= 2760if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2761 ( sleep 1 ) & 2762 am_sleep_pid=$! 2763fi 2764 2765rm -f conftest.file 2766 2767test "$program_prefix" != NONE && 2768 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2769# Use a double $ so make ignores it. 2770test "$program_suffix" != NONE && 2771 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2772# Double any \ or $. 2773# By default was `s,x,x', remove it if useless. 2774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2776 2777# Expand $ac_aux_dir to an absolute path. 2778am_aux_dir=`cd "$ac_aux_dir" && pwd` 2779 2780if test x"${MISSING+set}" != xset; then 2781 case $am_aux_dir in 2782 *\ * | *\ *) 2783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2784 *) 2785 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2786 esac 2787fi 2788# Use eval to expand $SHELL 2789if eval "$MISSING --is-lightweight"; then 2790 am_missing_run="$MISSING " 2791else 2792 am_missing_run= 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2794$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2795fi 2796 2797if test x"${install_sh+set}" != xset; then 2798 case $am_aux_dir in 2799 *\ * | *\ *) 2800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2801 *) 2802 install_sh="\${SHELL} $am_aux_dir/install-sh" 2803 esac 2804fi 2805 2806# Installed binaries are usually stripped using 'strip' when the user 2807# run "make install-strip". However 'strip' might not be the right 2808# tool to use in cross-compilation environments, therefore Automake 2809# will honor the 'STRIP' environment variable to overrule this program. 2810if test "$cross_compiling" != no; then 2811 if test -n "$ac_tool_prefix"; then 2812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2813set dummy ${ac_tool_prefix}strip; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_STRIP+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$STRIP"; then 2820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2821else 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838fi 2839STRIP=$ac_cv_prog_STRIP 2840if test -n "$STRIP"; then 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2842$as_echo "$STRIP" >&6; } 2843else 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2845$as_echo "no" >&6; } 2846fi 2847 2848 2849fi 2850if test -z "$ac_cv_prog_STRIP"; then 2851 ac_ct_STRIP=$STRIP 2852 # Extract the first word of "strip", so it can be a program name with args. 2853set dummy strip; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$ac_ct_STRIP"; then 2860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_ac_ct_STRIP="strip" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2880if test -n "$ac_ct_STRIP"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2882$as_echo "$ac_ct_STRIP" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 if test "x$ac_ct_STRIP" = x; then 2889 STRIP=":" 2890 else 2891 case $cross_compiling:$ac_tool_warned in 2892yes:) 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2895ac_tool_warned=yes ;; 2896esac 2897 STRIP=$ac_ct_STRIP 2898 fi 2899else 2900 STRIP="$ac_cv_prog_STRIP" 2901fi 2902 2903fi 2904INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2905 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2907$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2908if test -z "$MKDIR_P"; then 2909 if ${ac_cv_path_mkdir+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_prog in mkdir gmkdir; do 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2921 'mkdir (GNU coreutils) '* | \ 2922 'mkdir (coreutils) '* | \ 2923 'mkdir (fileutils) '4.1*) 2924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2925 break 3;; 2926 esac 2927 done 2928 done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933 2934 test -d ./--version && rmdir ./--version 2935 if test "${ac_cv_path_mkdir+set}" = set; then 2936 MKDIR_P="$ac_cv_path_mkdir -p" 2937 else 2938 # As a last resort, use the slow shell script. Don't cache a 2939 # value for MKDIR_P within a source directory, because that will 2940 # break other packages using the cache if that directory is 2941 # removed, or if the value is a relative name. 2942 MKDIR_P="$ac_install_sh -d" 2943 fi 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2946$as_echo "$MKDIR_P" >&6; } 2947 2948for ac_prog in gawk mawk nawk awk 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if ${ac_cv_prog_AWK+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$AWK"; then 2958 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_AWK="$ac_prog" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977AWK=$ac_cv_prog_AWK 2978if test -n "$AWK"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2980$as_echo "$AWK" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$AWK" && break 2988done 2989 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2991$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2992set x ${MAKE-make} 2993ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2994if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 cat >conftest.make <<\_ACEOF 2998SHELL = /bin/sh 2999all: 3000 @echo '@@@%%%=$(MAKE)=@@@%%%' 3001_ACEOF 3002# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3003case `${MAKE-make} -f conftest.make 2>/dev/null` in 3004 *@@@%%%=?*=@@@%%%*) 3005 eval ac_cv_prog_make_${ac_make}_set=yes;; 3006 *) 3007 eval ac_cv_prog_make_${ac_make}_set=no;; 3008esac 3009rm -f conftest.make 3010fi 3011if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3013$as_echo "yes" >&6; } 3014 SET_MAKE= 3015else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017$as_echo "no" >&6; } 3018 SET_MAKE="MAKE=${MAKE-make}" 3019fi 3020 3021rm -rf .tst 2>/dev/null 3022mkdir .tst 2>/dev/null 3023if test -d .tst; then 3024 am__leading_dot=. 3025else 3026 am__leading_dot=_ 3027fi 3028rmdir .tst 2>/dev/null 3029 3030# Check whether --enable-silent-rules was given. 3031if test "${enable_silent_rules+set}" = set; then : 3032 enableval=$enable_silent_rules; 3033fi 3034 3035case $enable_silent_rules in # ((( 3036 yes) AM_DEFAULT_VERBOSITY=0;; 3037 no) AM_DEFAULT_VERBOSITY=1;; 3038 *) AM_DEFAULT_VERBOSITY=1;; 3039esac 3040am_make=${MAKE-make} 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3042$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3043if ${am_cv_make_support_nested_variables+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 if $as_echo 'TRUE=$(BAR$(V)) 3047BAR0=false 3048BAR1=true 3049V=1 3050am__doit: 3051 @$(TRUE) 3052.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3053 am_cv_make_support_nested_variables=yes 3054else 3055 am_cv_make_support_nested_variables=no 3056fi 3057fi 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3059$as_echo "$am_cv_make_support_nested_variables" >&6; } 3060if test $am_cv_make_support_nested_variables = yes; then 3061 AM_V='$(V)' 3062 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3063else 3064 AM_V=$AM_DEFAULT_VERBOSITY 3065 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3066fi 3067AM_BACKSLASH='\' 3068 3069if test "`cd $srcdir && pwd`" != "`pwd`"; then 3070 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3071 # is not polluted with repeated "-I." 3072 am__isrc=' -I$(srcdir)' 3073 # test to see if srcdir already configured 3074 if test -f $srcdir/config.status; then 3075 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3076 fi 3077fi 3078 3079# test whether we have cygpath 3080if test -z "$CYGPATH_W"; then 3081 if (cygpath --version) >/dev/null 2>/dev/null; then 3082 CYGPATH_W='cygpath -w' 3083 else 3084 CYGPATH_W=echo 3085 fi 3086fi 3087 3088 3089# Define the identity of the package. 3090 PACKAGE='phsa-hsail-runtime-library' 3091 VERSION='1.0' 3092 3093 3094cat >>confdefs.h <<_ACEOF 3095#define PACKAGE "$PACKAGE" 3096_ACEOF 3097 3098 3099cat >>confdefs.h <<_ACEOF 3100#define VERSION "$VERSION" 3101_ACEOF 3102 3103# Some tools Automake needs. 3104 3105ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3106 3107 3108AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3109 3110 3111AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3112 3113 3114AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3115 3116 3117MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3118 3119# For better backward compatibility. To be removed once Automake 1.9.x 3120# dies out for good. For more background, see: 3121# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3122# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3123mkdir_p='$(MKDIR_P)' 3124 3125# We need awk for the "check" target (and possibly the TAP driver). The 3126# system "awk" is bad on some platforms. 3127# Always define AMTAR for backward compatibility. Yes, it's still used 3128# in the wild :-( We should find a proper way to deprecate it ... 3129AMTAR='$${TAR-tar}' 3130 3131 3132# We'll loop over all known methods to create a tar archive until one works. 3133_am_tools='gnutar pax cpio none' 3134 3135am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3136 3137 3138 3139 3140 3141 3142# POSIX will say in a future version that running "rm -f" with no argument 3143# is OK; and we want to be able to make that assumption in our Makefile 3144# recipes. So use an aggressive probe to check that the usage we want is 3145# actually supported "in the wild" to an acceptable degree. 3146# See automake bug#10828. 3147# To make any issue more visible, cause the running configure to be aborted 3148# by default if the 'rm' program in use doesn't match our expectations; the 3149# user can still override this though. 3150if rm -f && rm -fr && rm -rf; then : OK; else 3151 cat >&2 <<'END' 3152Oops! 3153 3154Your 'rm' program seems unable to run without file operands specified 3155on the command line, even when the '-f' option is present. This is contrary 3156to the behaviour of most rm programs out there, and not conforming with 3157the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3158 3159Please tell bug-automake@gnu.org about your system, including the value 3160of your $PATH and any error possibly output before this message. This 3161can help us improve future automake versions. 3162 3163END 3164 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3165 echo 'Configuration will proceed anyway, since you have set the' >&2 3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3167 echo >&2 3168 else 3169 cat >&2 <<'END' 3170Aborting the configuration process, to ensure you take notice of the issue. 3171 3172You can download and install GNU coreutils to get an 'rm' implementation 3173that behaves properly: <http://www.gnu.org/software/coreutils/>. 3174 3175If you want to complete the configuration process using your problematic 3176'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3177to "yes", and re-run configure. 3178 3179END 3180 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3181 fi 3182fi 3183 3184 3185 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3187$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3188 # Check whether --enable-maintainer-mode was given. 3189if test "${enable_maintainer_mode+set}" = set; then : 3190 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3191else 3192 USE_MAINTAINER_MODE=no 3193fi 3194 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3196$as_echo "$USE_MAINTAINER_MODE" >&6; } 3197 if test $USE_MAINTAINER_MODE = yes; then 3198 MAINTAINER_MODE_TRUE= 3199 MAINTAINER_MODE_FALSE='#' 3200else 3201 MAINTAINER_MODE_TRUE='#' 3202 MAINTAINER_MODE_FALSE= 3203fi 3204 3205 MAINT=$MAINTAINER_MODE_TRUE 3206 3207 3208 3209ac_ext=c 3210ac_cpp='$CPP $CPPFLAGS' 3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3213ac_compiler_gnu=$ac_cv_c_compiler_gnu 3214if test -n "$ac_tool_prefix"; then 3215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3216set dummy ${ac_tool_prefix}gcc; ac_word=$2 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3218$as_echo_n "checking for $ac_word... " >&6; } 3219if ${ac_cv_prog_CC+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 if test -n "$CC"; then 3223 ac_cv_prog_CC="$CC" # Let the user override the test. 3224else 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 test -z "$as_dir" && as_dir=. 3230 for ac_exec_ext in '' $ac_executable_extensions; do 3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3232 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3234 break 2 3235 fi 3236done 3237 done 3238IFS=$as_save_IFS 3239 3240fi 3241fi 3242CC=$ac_cv_prog_CC 3243if test -n "$CC"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3245$as_echo "$CC" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252fi 3253if test -z "$ac_cv_prog_CC"; then 3254 ac_ct_CC=$CC 3255 # Extract the first word of "gcc", so it can be a program name with args. 3256set dummy gcc; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_ac_ct_CC+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$ac_ct_CC"; then 3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 ac_cv_prog_ac_ct_CC="gcc" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282ac_ct_CC=$ac_cv_prog_ac_ct_CC 3283if test -n "$ac_ct_CC"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3285$as_echo "$ac_ct_CC" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 if test "x$ac_ct_CC" = x; then 3292 CC="" 3293 else 3294 case $cross_compiling:$ac_tool_warned in 3295yes:) 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3298ac_tool_warned=yes ;; 3299esac 3300 CC=$ac_ct_CC 3301 fi 3302else 3303 CC="$ac_cv_prog_CC" 3304fi 3305 3306if test -z "$CC"; then 3307 if test -n "$ac_tool_prefix"; then 3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3309set dummy ${ac_tool_prefix}cc; ac_word=$2 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311$as_echo_n "checking for $ac_word... " >&6; } 3312if ${ac_cv_prog_CC+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_CC="${ac_tool_prefix}cc" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345 fi 3346fi 3347if test -z "$CC"; then 3348 # Extract the first word of "cc", so it can be a program name with args. 3349set dummy cc; ac_word=$2 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3351$as_echo_n "checking for $ac_word... " >&6; } 3352if ${ac_cv_prog_CC+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 if test -n "$CC"; then 3356 ac_cv_prog_CC="$CC" # Let the user override the test. 3357else 3358 ac_prog_rejected=no 3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH 3361do 3362 IFS=$as_save_IFS 3363 test -z "$as_dir" && as_dir=. 3364 for ac_exec_ext in '' $ac_executable_extensions; do 3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3367 ac_prog_rejected=yes 3368 continue 3369 fi 3370 ac_cv_prog_CC="cc" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378if test $ac_prog_rejected = yes; then 3379 # We found a bogon in the path, so make sure we never use it. 3380 set dummy $ac_cv_prog_CC 3381 shift 3382 if test $# != 0; then 3383 # We chose a different compiler from the bogus one. 3384 # However, it has the same basename, so the bogon will be chosen 3385 # first if we set CC to just the basename; use the full file name. 3386 shift 3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3388 fi 3389fi 3390fi 3391fi 3392CC=$ac_cv_prog_CC 3393if test -n "$CC"; then 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3395$as_echo "$CC" >&6; } 3396else 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3398$as_echo "no" >&6; } 3399fi 3400 3401 3402fi 3403if test -z "$CC"; then 3404 if test -n "$ac_tool_prefix"; then 3405 for ac_prog in cl.exe 3406 do 3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3408set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3410$as_echo_n "checking for $ac_word... " >&6; } 3411if ${ac_cv_prog_CC+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 if test -n "$CC"; then 3415 ac_cv_prog_CC="$CC" # Let the user override the test. 3416else 3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3418for as_dir in $PATH 3419do 3420 IFS=$as_save_IFS 3421 test -z "$as_dir" && as_dir=. 3422 for ac_exec_ext in '' $ac_executable_extensions; do 3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3426 break 2 3427 fi 3428done 3429 done 3430IFS=$as_save_IFS 3431 3432fi 3433fi 3434CC=$ac_cv_prog_CC 3435if test -n "$CC"; then 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3437$as_echo "$CC" >&6; } 3438else 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3440$as_echo "no" >&6; } 3441fi 3442 3443 3444 test -n "$CC" && break 3445 done 3446fi 3447if test -z "$CC"; then 3448 ac_ct_CC=$CC 3449 for ac_prog in cl.exe 3450do 3451 # Extract the first word of "$ac_prog", so it can be a program name with args. 3452set dummy $ac_prog; ac_word=$2 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3454$as_echo_n "checking for $ac_word... " >&6; } 3455if ${ac_cv_prog_ac_ct_CC+:} false; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 if test -n "$ac_ct_CC"; then 3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3460else 3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3462for as_dir in $PATH 3463do 3464 IFS=$as_save_IFS 3465 test -z "$as_dir" && as_dir=. 3466 for ac_exec_ext in '' $ac_executable_extensions; do 3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3468 ac_cv_prog_ac_ct_CC="$ac_prog" 3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3470 break 2 3471 fi 3472done 3473 done 3474IFS=$as_save_IFS 3475 3476fi 3477fi 3478ac_ct_CC=$ac_cv_prog_ac_ct_CC 3479if test -n "$ac_ct_CC"; then 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3481$as_echo "$ac_ct_CC" >&6; } 3482else 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3484$as_echo "no" >&6; } 3485fi 3486 3487 3488 test -n "$ac_ct_CC" && break 3489done 3490 3491 if test "x$ac_ct_CC" = x; then 3492 CC="" 3493 else 3494 case $cross_compiling:$ac_tool_warned in 3495yes:) 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3498ac_tool_warned=yes ;; 3499esac 3500 CC=$ac_ct_CC 3501 fi 3502fi 3503 3504fi 3505 3506 3507test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3509as_fn_error $? "no acceptable C compiler found in \$PATH 3510See \`config.log' for more details" "$LINENO" 5; } 3511 3512# Provide some information about the compiler. 3513$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3514set X $ac_compile 3515ac_compiler=$2 3516for ac_option in --version -v -V -qversion; do 3517 { { ac_try="$ac_compiler $ac_option >&5" 3518case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521esac 3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3523$as_echo "$ac_try_echo"; } >&5 3524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3525 ac_status=$? 3526 if test -s conftest.err; then 3527 sed '10a\ 3528... rest of stderr output deleted ... 3529 10q' conftest.err >conftest.er1 3530 cat conftest.er1 >&5 3531 fi 3532 rm -f conftest.er1 conftest.err 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; } 3535done 3536 3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548ac_clean_files_save=$ac_clean_files 3549ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3550# Try to create an executable without -o first, disregard a.out. 3551# It will help us diagnose broken compilers, and finding out an intuition 3552# of exeext. 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3554$as_echo_n "checking whether the C compiler works... " >&6; } 3555ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3556 3557# The possible output files: 3558ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3559 3560ac_rmfiles= 3561for ac_file in $ac_files 3562do 3563 case $ac_file in 3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3566 esac 3567done 3568rm -f $ac_rmfiles 3569 3570if { { ac_try="$ac_link_default" 3571case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574esac 3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3576$as_echo "$ac_try_echo"; } >&5 3577 (eval "$ac_link_default") 2>&5 3578 ac_status=$? 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; }; then : 3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3582# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3583# in a Makefile. We should not override ac_cv_exeext if it was cached, 3584# so that the user can short-circuit this test for compilers unknown to 3585# Autoconf. 3586for ac_file in $ac_files '' 3587do 3588 test -f "$ac_file" || continue 3589 case $ac_file in 3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3591 ;; 3592 [ab].out ) 3593 # We found the default executable, but exeext='' is most 3594 # certainly right. 3595 break;; 3596 *.* ) 3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3598 then :; else 3599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3600 fi 3601 # We set ac_cv_exeext here because the later test for it is not 3602 # safe: cross compilers may not add the suffix if given an `-o' 3603 # argument, so we may need to know it at that point already. 3604 # Even if this section looks crufty: it has the advantage of 3605 # actually working. 3606 break;; 3607 * ) 3608 break;; 3609 esac 3610done 3611test "$ac_cv_exeext" = no && ac_cv_exeext= 3612 3613else 3614 ac_file='' 3615fi 3616if test -z "$ac_file"; then : 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3618$as_echo "no" >&6; } 3619$as_echo "$as_me: failed program was:" >&5 3620sed 's/^/| /' conftest.$ac_ext >&5 3621 3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3624as_fn_error 77 "C compiler cannot create executables 3625See \`config.log' for more details" "$LINENO" 5; } 3626else 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3628$as_echo "yes" >&6; } 3629fi 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3631$as_echo_n "checking for C compiler default output file name... " >&6; } 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3633$as_echo "$ac_file" >&6; } 3634ac_exeext=$ac_cv_exeext 3635 3636rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3637ac_clean_files=$ac_clean_files_save 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3639$as_echo_n "checking for suffix of executables... " >&6; } 3640if { { ac_try="$ac_link" 3641case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644esac 3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3646$as_echo "$ac_try_echo"; } >&5 3647 (eval "$ac_link") 2>&5 3648 ac_status=$? 3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3650 test $ac_status = 0; }; then : 3651 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3652# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3653# work properly (i.e., refer to `conftest.exe'), while it won't with 3654# `rm'. 3655for ac_file in conftest.exe conftest conftest.*; do 3656 test -f "$ac_file" || continue 3657 case $ac_file in 3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3660 break;; 3661 * ) break;; 3662 esac 3663done 3664else 3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3667as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3668See \`config.log' for more details" "$LINENO" 5; } 3669fi 3670rm -f conftest conftest$ac_cv_exeext 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3672$as_echo "$ac_cv_exeext" >&6; } 3673 3674rm -f conftest.$ac_ext 3675EXEEXT=$ac_cv_exeext 3676ac_exeext=$EXEEXT 3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679#include <stdio.h> 3680int 3681main () 3682{ 3683FILE *f = fopen ("conftest.out", "w"); 3684 return ferror (f) || fclose (f) != 0; 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690ac_clean_files="$ac_clean_files conftest.out" 3691# Check that the compiler produces executables we can run. If not, either 3692# the compiler is broken, or we cross compile. 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3694$as_echo_n "checking whether we are cross compiling... " >&6; } 3695if test "$cross_compiling" != yes; then 3696 { { ac_try="$ac_link" 3697case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702$as_echo "$ac_try_echo"; } >&5 3703 (eval "$ac_link") 2>&5 3704 ac_status=$? 3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 test $ac_status = 0; } 3707 if { ac_try='./conftest$ac_cv_exeext' 3708 { { case "(($ac_try" in 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3710 *) ac_try_echo=$ac_try;; 3711esac 3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3713$as_echo "$ac_try_echo"; } >&5 3714 (eval "$ac_try") 2>&5 3715 ac_status=$? 3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3717 test $ac_status = 0; }; }; then 3718 cross_compiling=no 3719 else 3720 if test "$cross_compiling" = maybe; then 3721 cross_compiling=yes 3722 else 3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3725as_fn_error $? "cannot run C compiled programs. 3726If you meant to cross compile, use \`--host'. 3727See \`config.log' for more details" "$LINENO" 5; } 3728 fi 3729 fi 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3732$as_echo "$cross_compiling" >&6; } 3733 3734rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3735ac_clean_files=$ac_clean_files_save 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3737$as_echo_n "checking for suffix of object files... " >&6; } 3738if ${ac_cv_objext+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main () 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752rm -f conftest.o conftest.obj 3753if { { ac_try="$ac_compile" 3754case "(($ac_try" in 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3756 *) ac_try_echo=$ac_try;; 3757esac 3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3759$as_echo "$ac_try_echo"; } >&5 3760 (eval "$ac_compile") 2>&5 3761 ac_status=$? 3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3763 test $ac_status = 0; }; then : 3764 for ac_file in conftest.o conftest.obj conftest.*; do 3765 test -f "$ac_file" || continue; 3766 case $ac_file in 3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3769 break;; 3770 esac 3771done 3772else 3773 $as_echo "$as_me: failed program was:" >&5 3774sed 's/^/| /' conftest.$ac_ext >&5 3775 3776{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3778as_fn_error $? "cannot compute suffix of object files: cannot compile 3779See \`config.log' for more details" "$LINENO" 5; } 3780fi 3781rm -f conftest.$ac_cv_objext conftest.$ac_ext 3782fi 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3784$as_echo "$ac_cv_objext" >&6; } 3785OBJEXT=$ac_cv_objext 3786ac_objext=$OBJEXT 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3788$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3789if ${ac_cv_c_compiler_gnu+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793/* end confdefs.h. */ 3794 3795int 3796main () 3797{ 3798#ifndef __GNUC__ 3799 choke me 3800#endif 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806if ac_fn_c_try_compile "$LINENO"; then : 3807 ac_compiler_gnu=yes 3808else 3809 ac_compiler_gnu=no 3810fi 3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3812ac_cv_c_compiler_gnu=$ac_compiler_gnu 3813 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3816$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3817if test $ac_compiler_gnu = yes; then 3818 GCC=yes 3819else 3820 GCC= 3821fi 3822ac_test_CFLAGS=${CFLAGS+set} 3823ac_save_CFLAGS=$CFLAGS 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3825$as_echo_n "checking whether $CC accepts -g... " >&6; } 3826if ${ac_cv_prog_cc_g+:} false; then : 3827 $as_echo_n "(cached) " >&6 3828else 3829 ac_save_c_werror_flag=$ac_c_werror_flag 3830 ac_c_werror_flag=yes 3831 ac_cv_prog_cc_g=no 3832 CFLAGS="-g" 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835 3836int 3837main () 3838{ 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_cv_prog_cc_g=yes 3846else 3847 CFLAGS="" 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850 3851int 3852main () 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859if ac_fn_c_try_compile "$LINENO"; then : 3860 3861else 3862 ac_c_werror_flag=$ac_save_c_werror_flag 3863 CFLAGS="-g" 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866 3867int 3868main () 3869{ 3870 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875if ac_fn_c_try_compile "$LINENO"; then : 3876 ac_cv_prog_cc_g=yes 3877fi 3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3879fi 3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3881fi 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3883 ac_c_werror_flag=$ac_save_c_werror_flag 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3886$as_echo "$ac_cv_prog_cc_g" >&6; } 3887if test "$ac_test_CFLAGS" = set; then 3888 CFLAGS=$ac_save_CFLAGS 3889elif test $ac_cv_prog_cc_g = yes; then 3890 if test "$GCC" = yes; then 3891 CFLAGS="-g -O2" 3892 else 3893 CFLAGS="-g" 3894 fi 3895else 3896 if test "$GCC" = yes; then 3897 CFLAGS="-O2" 3898 else 3899 CFLAGS= 3900 fi 3901fi 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3903$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3904if ${ac_cv_prog_cc_c89+:} false; then : 3905 $as_echo_n "(cached) " >&6 3906else 3907 ac_cv_prog_cc_c89=no 3908ac_save_CC=$CC 3909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911#include <stdarg.h> 3912#include <stdio.h> 3913struct stat; 3914/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3915struct buf { int x; }; 3916FILE * (*rcsopen) (struct buf *, struct stat *, int); 3917static char *e (p, i) 3918 char **p; 3919 int i; 3920{ 3921 return p[i]; 3922} 3923static char *f (char * (*g) (char **, int), char **p, ...) 3924{ 3925 char *s; 3926 va_list v; 3927 va_start (v,p); 3928 s = g (p, va_arg (v,int)); 3929 va_end (v); 3930 return s; 3931} 3932 3933/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3934 function prototypes and stuff, but not '\xHH' hex character constants. 3935 These don't provoke an error unfortunately, instead are silently treated 3936 as 'x'. The following induces an error, until -std is added to get 3937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3938 array size at least. It's necessary to write '\x00'==0 to get something 3939 that's true only with -std. */ 3940int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3941 3942/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3943 inside strings and character constants. */ 3944#define FOO(x) 'x' 3945int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3946 3947int test (int i, double x); 3948struct s1 {int (*f) (int a);}; 3949struct s2 {int (*f) (double a);}; 3950int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3951int argc; 3952char **argv; 3953int 3954main () 3955{ 3956return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3963do 3964 CC="$ac_save_CC $ac_arg" 3965 if ac_fn_c_try_compile "$LINENO"; then : 3966 ac_cv_prog_cc_c89=$ac_arg 3967fi 3968rm -f core conftest.err conftest.$ac_objext 3969 test "x$ac_cv_prog_cc_c89" != "xno" && break 3970done 3971rm -f conftest.$ac_ext 3972CC=$ac_save_CC 3973 3974fi 3975# AC_CACHE_VAL 3976case "x$ac_cv_prog_cc_c89" in 3977 x) 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3979$as_echo "none needed" >&6; } ;; 3980 xno) 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3982$as_echo "unsupported" >&6; } ;; 3983 *) 3984 CC="$CC $ac_cv_prog_cc_c89" 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3986$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3987esac 3988if test "x$ac_cv_prog_cc_c89" != xno; then : 3989 3990fi 3991 3992ac_ext=c 3993ac_cpp='$CPP $CPPFLAGS' 3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3996ac_compiler_gnu=$ac_cv_c_compiler_gnu 3997 3998ac_ext=c 3999ac_cpp='$CPP $CPPFLAGS' 4000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4002ac_compiler_gnu=$ac_cv_c_compiler_gnu 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4004$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4005if ${am_cv_prog_cc_c_o+:} false; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010 4011int 4012main () 4013{ 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019 # Make sure it works both with $CC and with simple cc. 4020 # Following AC_PROG_CC_C_O, we do the test twice because some 4021 # compilers refuse to overwrite an existing .o file with -o, 4022 # though they will create one. 4023 am_cv_prog_cc_c_o=yes 4024 for am_i in 1 2; do 4025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4027 ac_status=$? 4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4029 (exit $ac_status); } \ 4030 && test -f conftest2.$ac_objext; then 4031 : OK 4032 else 4033 am_cv_prog_cc_c_o=no 4034 break 4035 fi 4036 done 4037 rm -f core conftest* 4038 unset am_i 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4041$as_echo "$am_cv_prog_cc_c_o" >&6; } 4042if test "$am_cv_prog_cc_c_o" != yes; then 4043 # Losing compiler, so override with the script. 4044 # FIXME: It is wrong to rewrite CC. 4045 # But if we don't then we get into trouble of one sort or another. 4046 # A longer-term fix would be to have automake use am__CC in this case, 4047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4048 CC="$am_aux_dir/compile $CC" 4049fi 4050ac_ext=c 4051ac_cpp='$CPP $CPPFLAGS' 4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4054ac_compiler_gnu=$ac_cv_c_compiler_gnu 4055 4056DEPDIR="${am__leading_dot}deps" 4057 4058ac_config_commands="$ac_config_commands depfiles" 4059 4060 4061am_make=${MAKE-make} 4062cat > confinc << 'END' 4063am__doit: 4064 @echo this is the am__doit target 4065.PHONY: am__doit 4066END 4067# If we don't find an include directive, just comment out the code. 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4069$as_echo_n "checking for style of include used by $am_make... " >&6; } 4070am__include="#" 4071am__quote= 4072_am_result=none 4073# First try GNU make style include. 4074echo "include confinc" > confmf 4075# Ignore all kinds of additional output from 'make'. 4076case `$am_make -s -f confmf 2> /dev/null` in #( 4077*the\ am__doit\ target*) 4078 am__include=include 4079 am__quote= 4080 _am_result=GNU 4081 ;; 4082esac 4083# Now try BSD make style include. 4084if test "$am__include" = "#"; then 4085 echo '.include "confinc"' > confmf 4086 case `$am_make -s -f confmf 2> /dev/null` in #( 4087 *the\ am__doit\ target*) 4088 am__include=.include 4089 am__quote="\"" 4090 _am_result=BSD 4091 ;; 4092 esac 4093fi 4094 4095 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4097$as_echo "$_am_result" >&6; } 4098rm -f confinc confmf 4099 4100# Check whether --enable-dependency-tracking was given. 4101if test "${enable_dependency_tracking+set}" = set; then : 4102 enableval=$enable_dependency_tracking; 4103fi 4104 4105if test "x$enable_dependency_tracking" != xno; then 4106 am_depcomp="$ac_aux_dir/depcomp" 4107 AMDEPBACKSLASH='\' 4108 am__nodep='_no' 4109fi 4110 if test "x$enable_dependency_tracking" != xno; then 4111 AMDEP_TRUE= 4112 AMDEP_FALSE='#' 4113else 4114 AMDEP_TRUE='#' 4115 AMDEP_FALSE= 4116fi 4117 4118 4119 4120depcc="$CC" am_compiler_list= 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4123$as_echo_n "checking dependency style of $depcc... " >&6; } 4124if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4128 # We make a subdir and do the tests there. Otherwise we can end up 4129 # making bogus files that we don't know about and never remove. For 4130 # instance it was reported that on HP-UX the gcc test will end up 4131 # making a dummy file named 'D' -- because '-MD' means "put the output 4132 # in D". 4133 rm -rf conftest.dir 4134 mkdir conftest.dir 4135 # Copy depcomp to subdir because otherwise we won't find it if we're 4136 # using a relative directory. 4137 cp "$am_depcomp" conftest.dir 4138 cd conftest.dir 4139 # We will build objects and dependencies in a subdirectory because 4140 # it helps to detect inapplicable dependency modes. For instance 4141 # both Tru64's cc and ICC support -MD to output dependencies as a 4142 # side effect of compilation, but ICC will put the dependencies in 4143 # the current directory while Tru64 will put them in the object 4144 # directory. 4145 mkdir sub 4146 4147 am_cv_CC_dependencies_compiler_type=none 4148 if test "$am_compiler_list" = ""; then 4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4150 fi 4151 am__universal=false 4152 case " $depcc " in #( 4153 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4154 esac 4155 4156 for depmode in $am_compiler_list; do 4157 # Setup a source with many dependencies, because some compilers 4158 # like to wrap large dependency lists on column 80 (with \), and 4159 # we should not choose a depcomp mode which is confused by this. 4160 # 4161 # We need to recreate these files for each test, as the compiler may 4162 # overwrite some of them when testing with obscure command lines. 4163 # This happens at least with the AIX C compiler. 4164 : > sub/conftest.c 4165 for i in 1 2 3 4 5 6; do 4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4168 # Solaris 10 /bin/sh. 4169 echo '/* dummy */' > sub/conftst$i.h 4170 done 4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4172 4173 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4174 # mode. It turns out that the SunPro C++ compiler does not properly 4175 # handle '-M -o', and we need to detect this. Also, some Intel 4176 # versions had trouble with output in subdirs. 4177 am__obj=sub/conftest.${OBJEXT-o} 4178 am__minus_obj="-o $am__obj" 4179 case $depmode in 4180 gcc) 4181 # This depmode causes a compiler race in universal mode. 4182 test "$am__universal" = false || continue 4183 ;; 4184 nosideeffect) 4185 # After this tag, mechanisms are not by side-effect, so they'll 4186 # only be used when explicitly requested. 4187 if test "x$enable_dependency_tracking" = xyes; then 4188 continue 4189 else 4190 break 4191 fi 4192 ;; 4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4194 # This compiler won't grok '-c -o', but also, the minuso test has 4195 # not run yet. These depmodes are late enough in the game, and 4196 # so weak that their functioning should not be impacted. 4197 am__obj=conftest.${OBJEXT-o} 4198 am__minus_obj= 4199 ;; 4200 none) break ;; 4201 esac 4202 if depmode=$depmode \ 4203 source=sub/conftest.c object=$am__obj \ 4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4206 >/dev/null 2>conftest.err && 4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4211 # icc doesn't choke on unknown options, it will just issue warnings 4212 # or remarks (even with -Werror). So we grep stderr for any message 4213 # that says an option was ignored or not supported. 4214 # When given -MP, icc 7.0 and 7.1 complain thusly: 4215 # icc: Command line warning: ignoring option '-M'; no argument required 4216 # The diagnosis changed in icc 8.0: 4217 # icc: Command line remark: option '-MP' not supported 4218 if (grep 'ignoring option' conftest.err || 4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4220 am_cv_CC_dependencies_compiler_type=$depmode 4221 break 4222 fi 4223 fi 4224 done 4225 4226 cd .. 4227 rm -rf conftest.dir 4228else 4229 am_cv_CC_dependencies_compiler_type=none 4230fi 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4234$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4236 4237 if 4238 test "x$enable_dependency_tracking" != xno \ 4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4240 am__fastdepCC_TRUE= 4241 am__fastdepCC_FALSE='#' 4242else 4243 am__fastdepCC_TRUE='#' 4244 am__fastdepCC_FALSE= 4245fi 4246 4247 4248ac_ext=cpp 4249ac_cpp='$CXXCPP $CPPFLAGS' 4250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4253if test -z "$CXX"; then 4254 if test -n "$CCC"; then 4255 CXX=$CCC 4256 else 4257 if test -n "$ac_tool_prefix"; then 4258 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4259 do 4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4263$as_echo_n "checking for $ac_word... " >&6; } 4264if ${ac_cv_prog_CXX+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if test -n "$CXX"; then 4268 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4269else 4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH 4272do 4273 IFS=$as_save_IFS 4274 test -z "$as_dir" && as_dir=. 4275 for ac_exec_ext in '' $ac_executable_extensions; do 4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4277 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4279 break 2 4280 fi 4281done 4282 done 4283IFS=$as_save_IFS 4284 4285fi 4286fi 4287CXX=$ac_cv_prog_CXX 4288if test -n "$CXX"; then 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4290$as_echo "$CXX" >&6; } 4291else 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4293$as_echo "no" >&6; } 4294fi 4295 4296 4297 test -n "$CXX" && break 4298 done 4299fi 4300if test -z "$CXX"; then 4301 ac_ct_CXX=$CXX 4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4303do 4304 # Extract the first word of "$ac_prog", so it can be a program name with args. 4305set dummy $ac_prog; ac_word=$2 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4307$as_echo_n "checking for $ac_word... " >&6; } 4308if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 if test -n "$ac_ct_CXX"; then 4312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4313else 4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4315for as_dir in $PATH 4316do 4317 IFS=$as_save_IFS 4318 test -z "$as_dir" && as_dir=. 4319 for ac_exec_ext in '' $ac_executable_extensions; do 4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4321 ac_cv_prog_ac_ct_CXX="$ac_prog" 4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4323 break 2 4324 fi 4325done 4326 done 4327IFS=$as_save_IFS 4328 4329fi 4330fi 4331ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4332if test -n "$ac_ct_CXX"; then 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4334$as_echo "$ac_ct_CXX" >&6; } 4335else 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4337$as_echo "no" >&6; } 4338fi 4339 4340 4341 test -n "$ac_ct_CXX" && break 4342done 4343 4344 if test "x$ac_ct_CXX" = x; then 4345 CXX="g++" 4346 else 4347 case $cross_compiling:$ac_tool_warned in 4348yes:) 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4351ac_tool_warned=yes ;; 4352esac 4353 CXX=$ac_ct_CXX 4354 fi 4355fi 4356 4357 fi 4358fi 4359# Provide some information about the compiler. 4360$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4361set X $ac_compile 4362ac_compiler=$2 4363for ac_option in --version -v -V -qversion; do 4364 { { ac_try="$ac_compiler $ac_option >&5" 4365case "(($ac_try" in 4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4367 *) ac_try_echo=$ac_try;; 4368esac 4369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4370$as_echo "$ac_try_echo"; } >&5 4371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4372 ac_status=$? 4373 if test -s conftest.err; then 4374 sed '10a\ 4375... rest of stderr output deleted ... 4376 10q' conftest.err >conftest.er1 4377 cat conftest.er1 >&5 4378 fi 4379 rm -f conftest.er1 conftest.err 4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4381 test $ac_status = 0; } 4382done 4383 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4385$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4386if ${ac_cv_cxx_compiler_gnu+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391 4392int 4393main () 4394{ 4395#ifndef __GNUC__ 4396 choke me 4397#endif 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403if ac_fn_cxx_try_compile "$LINENO"; then : 4404 ac_compiler_gnu=yes 4405else 4406 ac_compiler_gnu=no 4407fi 4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4409ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4410 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4413$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4414if test $ac_compiler_gnu = yes; then 4415 GXX=yes 4416else 4417 GXX= 4418fi 4419ac_test_CXXFLAGS=${CXXFLAGS+set} 4420ac_save_CXXFLAGS=$CXXFLAGS 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4422$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4423if ${ac_cv_prog_cxx_g+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425else 4426 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4427 ac_cxx_werror_flag=yes 4428 ac_cv_prog_cxx_g=no 4429 CXXFLAGS="-g" 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431/* end confdefs.h. */ 4432 4433int 4434main () 4435{ 4436 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441if ac_fn_cxx_try_compile "$LINENO"; then : 4442 ac_cv_prog_cxx_g=yes 4443else 4444 CXXFLAGS="" 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448int 4449main () 4450{ 4451 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456if ac_fn_cxx_try_compile "$LINENO"; then : 4457 4458else 4459 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4460 CXXFLAGS="-g" 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462/* end confdefs.h. */ 4463 4464int 4465main () 4466{ 4467 4468 ; 4469 return 0; 4470} 4471_ACEOF 4472if ac_fn_cxx_try_compile "$LINENO"; then : 4473 ac_cv_prog_cxx_g=yes 4474fi 4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4476fi 4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4478fi 4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4481fi 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4483$as_echo "$ac_cv_prog_cxx_g" >&6; } 4484if test "$ac_test_CXXFLAGS" = set; then 4485 CXXFLAGS=$ac_save_CXXFLAGS 4486elif test $ac_cv_prog_cxx_g = yes; then 4487 if test "$GXX" = yes; then 4488 CXXFLAGS="-g -O2" 4489 else 4490 CXXFLAGS="-g" 4491 fi 4492else 4493 if test "$GXX" = yes; then 4494 CXXFLAGS="-O2" 4495 else 4496 CXXFLAGS= 4497 fi 4498fi 4499ac_ext=c 4500ac_cpp='$CPP $CPPFLAGS' 4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_compiler_gnu=$ac_cv_c_compiler_gnu 4504 4505depcc="$CXX" am_compiler_list= 4506 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4508$as_echo_n "checking dependency style of $depcc... " >&6; } 4509if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4513 # We make a subdir and do the tests there. Otherwise we can end up 4514 # making bogus files that we don't know about and never remove. For 4515 # instance it was reported that on HP-UX the gcc test will end up 4516 # making a dummy file named 'D' -- because '-MD' means "put the output 4517 # in D". 4518 rm -rf conftest.dir 4519 mkdir conftest.dir 4520 # Copy depcomp to subdir because otherwise we won't find it if we're 4521 # using a relative directory. 4522 cp "$am_depcomp" conftest.dir 4523 cd conftest.dir 4524 # We will build objects and dependencies in a subdirectory because 4525 # it helps to detect inapplicable dependency modes. For instance 4526 # both Tru64's cc and ICC support -MD to output dependencies as a 4527 # side effect of compilation, but ICC will put the dependencies in 4528 # the current directory while Tru64 will put them in the object 4529 # directory. 4530 mkdir sub 4531 4532 am_cv_CXX_dependencies_compiler_type=none 4533 if test "$am_compiler_list" = ""; then 4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4535 fi 4536 am__universal=false 4537 case " $depcc " in #( 4538 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4539 esac 4540 4541 for depmode in $am_compiler_list; do 4542 # Setup a source with many dependencies, because some compilers 4543 # like to wrap large dependency lists on column 80 (with \), and 4544 # we should not choose a depcomp mode which is confused by this. 4545 # 4546 # We need to recreate these files for each test, as the compiler may 4547 # overwrite some of them when testing with obscure command lines. 4548 # This happens at least with the AIX C compiler. 4549 : > sub/conftest.c 4550 for i in 1 2 3 4 5 6; do 4551 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4553 # Solaris 10 /bin/sh. 4554 echo '/* dummy */' > sub/conftst$i.h 4555 done 4556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4557 4558 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4559 # mode. It turns out that the SunPro C++ compiler does not properly 4560 # handle '-M -o', and we need to detect this. Also, some Intel 4561 # versions had trouble with output in subdirs. 4562 am__obj=sub/conftest.${OBJEXT-o} 4563 am__minus_obj="-o $am__obj" 4564 case $depmode in 4565 gcc) 4566 # This depmode causes a compiler race in universal mode. 4567 test "$am__universal" = false || continue 4568 ;; 4569 nosideeffect) 4570 # After this tag, mechanisms are not by side-effect, so they'll 4571 # only be used when explicitly requested. 4572 if test "x$enable_dependency_tracking" = xyes; then 4573 continue 4574 else 4575 break 4576 fi 4577 ;; 4578 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4579 # This compiler won't grok '-c -o', but also, the minuso test has 4580 # not run yet. These depmodes are late enough in the game, and 4581 # so weak that their functioning should not be impacted. 4582 am__obj=conftest.${OBJEXT-o} 4583 am__minus_obj= 4584 ;; 4585 none) break ;; 4586 esac 4587 if depmode=$depmode \ 4588 source=sub/conftest.c object=$am__obj \ 4589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4591 >/dev/null 2>conftest.err && 4592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4596 # icc doesn't choke on unknown options, it will just issue warnings 4597 # or remarks (even with -Werror). So we grep stderr for any message 4598 # that says an option was ignored or not supported. 4599 # When given -MP, icc 7.0 and 7.1 complain thusly: 4600 # icc: Command line warning: ignoring option '-M'; no argument required 4601 # The diagnosis changed in icc 8.0: 4602 # icc: Command line remark: option '-MP' not supported 4603 if (grep 'ignoring option' conftest.err || 4604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4605 am_cv_CXX_dependencies_compiler_type=$depmode 4606 break 4607 fi 4608 fi 4609 done 4610 4611 cd .. 4612 rm -rf conftest.dir 4613else 4614 am_cv_CXX_dependencies_compiler_type=none 4615fi 4616 4617fi 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4619$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4620CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4621 4622 if 4623 test "x$enable_dependency_tracking" != xno \ 4624 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4625 am__fastdepCXX_TRUE= 4626 am__fastdepCXX_FALSE='#' 4627else 4628 am__fastdepCXX_TRUE='#' 4629 am__fastdepCXX_FALSE= 4630fi 4631 4632 4633# AC_PROG_LIBTOOL 4634ac_config_files="$ac_config_files Makefile" 4635 4636 4637if test "${multilib}" = "yes"; then 4638 multilib_arg="--enable-multilib" 4639else 4640 multilib_arg= 4641fi 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 4644$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 4645# Check whether --enable-version-specific-runtime-libs was given. 4646if test "${enable_version_specific_runtime_libs+set}" = set; then : 4647 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 4648 yes) enable_version_specific_runtime_libs=yes ;; 4649 no) enable_version_specific_runtime_libs=no ;; 4650 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs 4651" "$LINENO" 5;; 4652 esac 4653else 4654 enable_version_specific_runtime_libs=no 4655fi 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 4658$as_echo "$enable_version_specific_runtime_libs" >&6; } 4659 4660 4661# Check whether --with-toolexeclibdir was given. 4662if test "${with_toolexeclibdir+set}" = set; then : 4663 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 4664 /) 4665 ;; 4666 */) 4667 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 4668 ;; 4669esac 4670else 4671 with_toolexeclibdir=no 4672fi 4673 4674 4675 4676# Calculate toolexeclibdir 4677# Also toolexecdir, though it's only used in toolexeclibdir 4678case ${enable_version_specific_runtime_libs} in 4679 yes) 4680 # Need the gcc compiler version to know where to install libraries 4681 # and header files if --enable-version-specific-runtime-libs option 4682 # is selected. 4683 toolexecdir='$(libdir)/gcc/$(target_alias)' 4684 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 4685 ;; 4686 no) 4687 if test -n "$with_cross_host" && 4688 test x"$with_cross_host" != x"no"; then 4689 # Install a library built with a cross compiler in tooldir, not libdir. 4690 toolexecdir='$(exec_prefix)/$(target_alias)' 4691 case ${with_toolexeclibdir} in 4692 no) 4693 toolexeclibdir='$(toolexecdir)/lib' 4694 ;; 4695 *) 4696 toolexeclibdir=${with_toolexeclibdir} 4697 ;; 4698 esac 4699 else 4700 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 4701 toolexeclibdir='$(libdir)' 4702 fi 4703 multi_os_directory=`$CC -print-multi-os-directory` 4704 case $multi_os_directory in 4705 .) ;; # Avoid trailing /. 4706 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 4707 esac 4708 ;; 4709esac 4710 4711# Set config_dir based on the target. config_dir specifies where to get 4712# target-specific files. The generic implementation is incomplete, but 4713# contains information on what's needed 4714case "${target}" in 4715 4716 x86_64-*-*) 4717 config_dir="x86" 4718 ;; 4719 4720 i?86-*-*) 4721 config_dir="x86" 4722 ;; 4723 4724 *) 4725 config_dir="generic" 4726 ;; 4727 4728esac 4729 4730 4731# We have linker scripts for appropriate operating systems 4732linux_linker_script=no 4733case "${host}" in 4734 *-*-linux*) 4735 linux_linker_script=yes 4736 ;; 4737esac 4738 if test "$linux_linker_script" = "yes"; then 4739 LINUX_LINKER_SCRIPT_TRUE= 4740 LINUX_LINKER_SCRIPT_FALSE='#' 4741else 4742 LINUX_LINKER_SCRIPT_TRUE='#' 4743 LINUX_LINKER_SCRIPT_FALSE= 4744fi 4745 4746 4747mac_linker_script=no 4748case "${host}" in 4749 *-*-apple*) 4750 mac_linker_script=yes 4751 ;; 4752esac 4753 if test "$mac_linker_script" = "yes"; then 4754 MAC_LINKER_SCRIPT_TRUE= 4755 MAC_LINKER_SCRIPT_FALSE='#' 4756else 4757 MAC_LINKER_SCRIPT_TRUE='#' 4758 MAC_LINKER_SCRIPT_FALSE= 4759fi 4760 4761 4762enable_dlopen=yes 4763 4764 4765 4766case `pwd` in 4767 *\ * | *\ *) 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4769$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4770esac 4771 4772 4773 4774macro_version='2.2.7a' 4775macro_revision='1.3134' 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789ltmain="$ac_aux_dir/ltmain.sh" 4790 4791# Backslashify metacharacters that are still active within 4792# double-quoted strings. 4793sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4794 4795# Same as above, but do not quote variable references. 4796double_quote_subst='s/\(["`\\]\)/\\\1/g' 4797 4798# Sed substitution to delay expansion of an escaped shell variable in a 4799# double_quote_subst'ed string. 4800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4801 4802# Sed substitution to delay expansion of an escaped single quote. 4803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4804 4805# Sed substitution to avoid accidental globbing in evaled expressions 4806no_glob_subst='s/\*/\\\*/g' 4807 4808ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4810ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4811 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4813$as_echo_n "checking how to print strings... " >&6; } 4814# Test print first, because it will be a builtin if present. 4815if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4817 ECHO='print -r --' 4818elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4819 ECHO='printf %s\n' 4820else 4821 # Use this function as a fallback that always works. 4822 func_fallback_echo () 4823 { 4824 eval 'cat <<_LTECHO_EOF 4825$1 4826_LTECHO_EOF' 4827 } 4828 ECHO='func_fallback_echo' 4829fi 4830 4831# func_echo_all arg... 4832# Invoke $ECHO with all args, space-separated. 4833func_echo_all () 4834{ 4835 $ECHO "" 4836} 4837 4838case "$ECHO" in 4839 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4840$as_echo "printf" >&6; } ;; 4841 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4842$as_echo "print -r" >&6; } ;; 4843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4844$as_echo "cat" >&6; } ;; 4845esac 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4861$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4862if ${ac_cv_path_SED+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4866 for ac_i in 1 2 3 4 5 6 7; do 4867 ac_script="$ac_script$as_nl$ac_script" 4868 done 4869 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4870 { ac_script=; unset ac_script;} 4871 if test -z "$SED"; then 4872 ac_path_SED_found=false 4873 # Loop through the user's path and test for each of PROGNAME-LIST 4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_prog in sed gsed; do 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4882 as_fn_executable_p "$ac_path_SED" || continue 4883# Check for GNU ac_path_SED and select it if it is found. 4884 # Check for GNU $ac_path_SED 4885case `"$ac_path_SED" --version 2>&1` in 4886*GNU*) 4887 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4888*) 4889 ac_count=0 4890 $as_echo_n 0123456789 >"conftest.in" 4891 while : 4892 do 4893 cat "conftest.in" "conftest.in" >"conftest.tmp" 4894 mv "conftest.tmp" "conftest.in" 4895 cp "conftest.in" "conftest.nl" 4896 $as_echo '' >> "conftest.nl" 4897 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4899 as_fn_arith $ac_count + 1 && ac_count=$as_val 4900 if test $ac_count -gt ${ac_path_SED_max-0}; then 4901 # Best one so far, save it but keep looking for a better one 4902 ac_cv_path_SED="$ac_path_SED" 4903 ac_path_SED_max=$ac_count 4904 fi 4905 # 10*(2^10) chars as input seems more than enough 4906 test $ac_count -gt 10 && break 4907 done 4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4909esac 4910 4911 $ac_path_SED_found && break 3 4912 done 4913 done 4914 done 4915IFS=$as_save_IFS 4916 if test -z "$ac_cv_path_SED"; then 4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4918 fi 4919else 4920 ac_cv_path_SED=$SED 4921fi 4922 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4925$as_echo "$ac_cv_path_SED" >&6; } 4926 SED="$ac_cv_path_SED" 4927 rm -f conftest.sed 4928 4929test -z "$SED" && SED=sed 4930Xsed="$SED -e 1s/^X//" 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4943$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4944if ${ac_cv_path_GREP+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 if test -z "$GREP"; then 4948 ac_path_GREP_found=false 4949 # Loop through the user's path and test for each of PROGNAME-LIST 4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4952do 4953 IFS=$as_save_IFS 4954 test -z "$as_dir" && as_dir=. 4955 for ac_prog in grep ggrep; do 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4958 as_fn_executable_p "$ac_path_GREP" || continue 4959# Check for GNU ac_path_GREP and select it if it is found. 4960 # Check for GNU $ac_path_GREP 4961case `"$ac_path_GREP" --version 2>&1` in 4962*GNU*) 4963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4964*) 4965 ac_count=0 4966 $as_echo_n 0123456789 >"conftest.in" 4967 while : 4968 do 4969 cat "conftest.in" "conftest.in" >"conftest.tmp" 4970 mv "conftest.tmp" "conftest.in" 4971 cp "conftest.in" "conftest.nl" 4972 $as_echo 'GREP' >> "conftest.nl" 4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4975 as_fn_arith $ac_count + 1 && ac_count=$as_val 4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4977 # Best one so far, save it but keep looking for a better one 4978 ac_cv_path_GREP="$ac_path_GREP" 4979 ac_path_GREP_max=$ac_count 4980 fi 4981 # 10*(2^10) chars as input seems more than enough 4982 test $ac_count -gt 10 && break 4983 done 4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4985esac 4986 4987 $ac_path_GREP_found && break 3 4988 done 4989 done 4990 done 4991IFS=$as_save_IFS 4992 if test -z "$ac_cv_path_GREP"; then 4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4994 fi 4995else 4996 ac_cv_path_GREP=$GREP 4997fi 4998 4999fi 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5001$as_echo "$ac_cv_path_GREP" >&6; } 5002 GREP="$ac_cv_path_GREP" 5003 5004 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5006$as_echo_n "checking for egrep... " >&6; } 5007if ${ac_cv_path_EGREP+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5011 then ac_cv_path_EGREP="$GREP -E" 5012 else 5013 if test -z "$EGREP"; then 5014 ac_path_EGREP_found=false 5015 # Loop through the user's path and test for each of PROGNAME-LIST 5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5018do 5019 IFS=$as_save_IFS 5020 test -z "$as_dir" && as_dir=. 5021 for ac_prog in egrep; do 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5024 as_fn_executable_p "$ac_path_EGREP" || continue 5025# Check for GNU ac_path_EGREP and select it if it is found. 5026 # Check for GNU $ac_path_EGREP 5027case `"$ac_path_EGREP" --version 2>&1` in 5028*GNU*) 5029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5030*) 5031 ac_count=0 5032 $as_echo_n 0123456789 >"conftest.in" 5033 while : 5034 do 5035 cat "conftest.in" "conftest.in" >"conftest.tmp" 5036 mv "conftest.tmp" "conftest.in" 5037 cp "conftest.in" "conftest.nl" 5038 $as_echo 'EGREP' >> "conftest.nl" 5039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5041 as_fn_arith $ac_count + 1 && ac_count=$as_val 5042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5043 # Best one so far, save it but keep looking for a better one 5044 ac_cv_path_EGREP="$ac_path_EGREP" 5045 ac_path_EGREP_max=$ac_count 5046 fi 5047 # 10*(2^10) chars as input seems more than enough 5048 test $ac_count -gt 10 && break 5049 done 5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5051esac 5052 5053 $ac_path_EGREP_found && break 3 5054 done 5055 done 5056 done 5057IFS=$as_save_IFS 5058 if test -z "$ac_cv_path_EGREP"; then 5059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5060 fi 5061else 5062 ac_cv_path_EGREP=$EGREP 5063fi 5064 5065 fi 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5068$as_echo "$ac_cv_path_EGREP" >&6; } 5069 EGREP="$ac_cv_path_EGREP" 5070 5071 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5073$as_echo_n "checking for fgrep... " >&6; } 5074if ${ac_cv_path_FGREP+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5078 then ac_cv_path_FGREP="$GREP -F" 5079 else 5080 if test -z "$FGREP"; then 5081 ac_path_FGREP_found=false 5082 # Loop through the user's path and test for each of PROGNAME-LIST 5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5085do 5086 IFS=$as_save_IFS 5087 test -z "$as_dir" && as_dir=. 5088 for ac_prog in fgrep; do 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5091 as_fn_executable_p "$ac_path_FGREP" || continue 5092# Check for GNU ac_path_FGREP and select it if it is found. 5093 # Check for GNU $ac_path_FGREP 5094case `"$ac_path_FGREP" --version 2>&1` in 5095*GNU*) 5096 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5097*) 5098 ac_count=0 5099 $as_echo_n 0123456789 >"conftest.in" 5100 while : 5101 do 5102 cat "conftest.in" "conftest.in" >"conftest.tmp" 5103 mv "conftest.tmp" "conftest.in" 5104 cp "conftest.in" "conftest.nl" 5105 $as_echo 'FGREP' >> "conftest.nl" 5106 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5108 as_fn_arith $ac_count + 1 && ac_count=$as_val 5109 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5110 # Best one so far, save it but keep looking for a better one 5111 ac_cv_path_FGREP="$ac_path_FGREP" 5112 ac_path_FGREP_max=$ac_count 5113 fi 5114 # 10*(2^10) chars as input seems more than enough 5115 test $ac_count -gt 10 && break 5116 done 5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5118esac 5119 5120 $ac_path_FGREP_found && break 3 5121 done 5122 done 5123 done 5124IFS=$as_save_IFS 5125 if test -z "$ac_cv_path_FGREP"; then 5126 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5127 fi 5128else 5129 ac_cv_path_FGREP=$FGREP 5130fi 5131 5132 fi 5133fi 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5135$as_echo "$ac_cv_path_FGREP" >&6; } 5136 FGREP="$ac_cv_path_FGREP" 5137 5138 5139test -z "$GREP" && GREP=grep 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159# Check whether --with-gnu-ld was given. 5160if test "${with_gnu_ld+set}" = set; then : 5161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5162else 5163 with_gnu_ld=no 5164fi 5165 5166ac_prog=ld 5167if test "$GCC" = yes; then 5168 # Check if gcc -print-prog-name=ld gives a path. 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5170$as_echo_n "checking for ld used by $CC... " >&6; } 5171 case $host in 5172 *-*-mingw*) 5173 # gcc leaves a trailing carriage return which upsets mingw 5174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5175 *) 5176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5177 esac 5178 case $ac_prog in 5179 # Accept absolute paths. 5180 [\\/]* | ?:[\\/]*) 5181 re_direlt='/[^/][^/]*/\.\./' 5182 # Canonicalize the pathname of ld 5183 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5186 done 5187 test -z "$LD" && LD="$ac_prog" 5188 ;; 5189 "") 5190 # If it fails, then pretend we aren't using GCC. 5191 ac_prog=ld 5192 ;; 5193 *) 5194 # If it is relative, then search for the first ld in PATH. 5195 with_gnu_ld=unknown 5196 ;; 5197 esac 5198elif test "$with_gnu_ld" = yes; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5200$as_echo_n "checking for GNU ld... " >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5203$as_echo_n "checking for non-GNU ld... " >&6; } 5204fi 5205if ${lt_cv_path_LD+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -z "$LD"; then 5209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5210 for ac_dir in $PATH; do 5211 IFS="$lt_save_ifs" 5212 test -z "$ac_dir" && ac_dir=. 5213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5214 lt_cv_path_LD="$ac_dir/$ac_prog" 5215 # Check to see if the program is GNU ld. I'd rather use --version, 5216 # but apparently some variants of GNU ld only accept -v. 5217 # Break only if it was the GNU/non-GNU ld that we prefer. 5218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5219 *GNU* | *'with BFD'*) 5220 test "$with_gnu_ld" != no && break 5221 ;; 5222 *) 5223 test "$with_gnu_ld" != yes && break 5224 ;; 5225 esac 5226 fi 5227 done 5228 IFS="$lt_save_ifs" 5229else 5230 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5231fi 5232fi 5233 5234LD="$lt_cv_path_LD" 5235if test -n "$LD"; then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5237$as_echo "$LD" >&6; } 5238else 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240$as_echo "no" >&6; } 5241fi 5242test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5244$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5245if ${lt_cv_prog_gnu_ld+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5249case `$LD -v 2>&1 </dev/null` in 5250*GNU* | *'with BFD'*) 5251 lt_cv_prog_gnu_ld=yes 5252 ;; 5253*) 5254 lt_cv_prog_gnu_ld=no 5255 ;; 5256esac 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5259$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5260with_gnu_ld=$lt_cv_prog_gnu_ld 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5271$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5272if ${lt_cv_path_NM+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 if test -n "$NM"; then 5276 # Let the user override the test. 5277 lt_cv_path_NM="$NM" 5278else 5279 lt_nm_to_check="${ac_tool_prefix}nm" 5280 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5281 lt_nm_to_check="$lt_nm_to_check nm" 5282 fi 5283 for lt_tmp_nm in $lt_nm_to_check; do 5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5285 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5286 IFS="$lt_save_ifs" 5287 test -z "$ac_dir" && ac_dir=. 5288 tmp_nm="$ac_dir/$lt_tmp_nm" 5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5290 # Check to see if the nm accepts a BSD-compat flag. 5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5292 # nm: unknown option "B" ignored 5293 # Tru64's nm complains that /dev/null is an invalid object file 5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5295 */dev/null* | *'Invalid file or object type'*) 5296 lt_cv_path_NM="$tmp_nm -B" 5297 break 5298 ;; 5299 *) 5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5301 */dev/null*) 5302 lt_cv_path_NM="$tmp_nm -p" 5303 break 5304 ;; 5305 *) 5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5307 continue # so that we can try to find one that supports BSD flags 5308 ;; 5309 esac 5310 ;; 5311 esac 5312 fi 5313 done 5314 IFS="$lt_save_ifs" 5315 done 5316 : ${lt_cv_path_NM=no} 5317fi 5318fi 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5320$as_echo "$lt_cv_path_NM" >&6; } 5321if test "$lt_cv_path_NM" != "no"; then 5322 NM="$lt_cv_path_NM" 5323else 5324 # Didn't find any BSD compatible name lister, look for dumpbin. 5325 if test -n "$DUMPBIN"; then : 5326 # Let the user override the test. 5327 else 5328 if test -n "$ac_tool_prefix"; then 5329 for ac_prog in dumpbin "link -dump" 5330 do 5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5332set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_prog_DUMPBIN+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test -n "$DUMPBIN"; then 5339 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5340else 5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5348 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356fi 5357fi 5358DUMPBIN=$ac_cv_prog_DUMPBIN 5359if test -n "$DUMPBIN"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5361$as_echo "$DUMPBIN" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366 5367 5368 test -n "$DUMPBIN" && break 5369 done 5370fi 5371if test -z "$DUMPBIN"; then 5372 ac_ct_DUMPBIN=$DUMPBIN 5373 for ac_prog in dumpbin "link -dump" 5374do 5375 # Extract the first word of "$ac_prog", so it can be a program name with args. 5376set dummy $ac_prog; ac_word=$2 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5378$as_echo_n "checking for $ac_word... " >&6; } 5379if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 if test -n "$ac_ct_DUMPBIN"; then 5383 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5384else 5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386for as_dir in $PATH 5387do 5388 IFS=$as_save_IFS 5389 test -z "$as_dir" && as_dir=. 5390 for ac_exec_ext in '' $ac_executable_extensions; do 5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5392 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5394 break 2 5395 fi 5396done 5397 done 5398IFS=$as_save_IFS 5399 5400fi 5401fi 5402ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5403if test -n "$ac_ct_DUMPBIN"; then 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5405$as_echo "$ac_ct_DUMPBIN" >&6; } 5406else 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5408$as_echo "no" >&6; } 5409fi 5410 5411 5412 test -n "$ac_ct_DUMPBIN" && break 5413done 5414 5415 if test "x$ac_ct_DUMPBIN" = x; then 5416 DUMPBIN=":" 5417 else 5418 case $cross_compiling:$ac_tool_warned in 5419yes:) 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5422ac_tool_warned=yes ;; 5423esac 5424 DUMPBIN=$ac_ct_DUMPBIN 5425 fi 5426fi 5427 5428 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5429 *COFF*) 5430 DUMPBIN="$DUMPBIN -symbols" 5431 ;; 5432 *) 5433 DUMPBIN=: 5434 ;; 5435 esac 5436 fi 5437 5438 if test "$DUMPBIN" != ":"; then 5439 NM="$DUMPBIN" 5440 fi 5441fi 5442test -z "$NM" && NM=nm 5443 5444 5445 5446 5447 5448 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5450$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5451if ${lt_cv_nm_interface+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 lt_cv_nm_interface="BSD nm" 5455 echo "int some_variable = 0;" > conftest.$ac_ext 5456 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5457 (eval "$ac_compile" 2>conftest.err) 5458 cat conftest.err >&5 5459 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5460 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5461 cat conftest.err >&5 5462 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5463 cat conftest.out >&5 5464 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5465 lt_cv_nm_interface="MS dumpbin" 5466 fi 5467 rm -f conftest* 5468fi 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5470$as_echo "$lt_cv_nm_interface" >&6; } 5471 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5473$as_echo_n "checking whether ln -s works... " >&6; } 5474LN_S=$as_ln_s 5475if test "$LN_S" = "ln -s"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5477$as_echo "yes" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5480$as_echo "no, using $LN_S" >&6; } 5481fi 5482 5483# find the maximum length of command line arguments 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5485$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5486if ${lt_cv_sys_max_cmd_len+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 i=0 5490 teststring="ABCD" 5491 5492 case $build_os in 5493 msdosdjgpp*) 5494 # On DJGPP, this test can blow up pretty badly due to problems in libc 5495 # (any single argument exceeding 2000 bytes causes a buffer overrun 5496 # during glob expansion). Even if it were fixed, the result of this 5497 # check would be larger than it should be. 5498 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5499 ;; 5500 5501 gnu*) 5502 # Under GNU Hurd, this test is not required because there is 5503 # no limit to the length of command line arguments. 5504 # Libtool will interpret -1 as no limit whatsoever 5505 lt_cv_sys_max_cmd_len=-1; 5506 ;; 5507 5508 cygwin* | mingw* | cegcc*) 5509 # On Win9x/ME, this test blows up -- it succeeds, but takes 5510 # about 5 minutes as the teststring grows exponentially. 5511 # Worse, since 9x/ME are not pre-emptively multitasking, 5512 # you end up with a "frozen" computer, even though with patience 5513 # the test eventually succeeds (with a max line length of 256k). 5514 # Instead, let's just punt: use the minimum linelength reported by 5515 # all of the supported platforms: 8192 (on NT/2K/XP). 5516 lt_cv_sys_max_cmd_len=8192; 5517 ;; 5518 5519 mint*) 5520 # On MiNT this can take a long time and run out of memory. 5521 lt_cv_sys_max_cmd_len=8192; 5522 ;; 5523 5524 amigaos*) 5525 # On AmigaOS with pdksh, this test takes hours, literally. 5526 # So we just punt and use a minimum line length of 8192. 5527 lt_cv_sys_max_cmd_len=8192; 5528 ;; 5529 5530 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5531 # This has been around since 386BSD, at least. Likely further. 5532 if test -x /sbin/sysctl; then 5533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5534 elif test -x /usr/sbin/sysctl; then 5535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5536 else 5537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5538 fi 5539 # And add a safety zone 5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5542 ;; 5543 5544 interix*) 5545 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5546 lt_cv_sys_max_cmd_len=196608 5547 ;; 5548 5549 osf*) 5550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5552 # nice to cause kernel panics so lets avoid the loop below. 5553 # First set a reasonable default. 5554 lt_cv_sys_max_cmd_len=16384 5555 # 5556 if test -x /sbin/sysconfig; then 5557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5558 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5559 esac 5560 fi 5561 ;; 5562 sco3.2v5*) 5563 lt_cv_sys_max_cmd_len=102400 5564 ;; 5565 sysv5* | sco5v6* | sysv4.2uw2*) 5566 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5567 if test -n "$kargmax"; then 5568 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5569 else 5570 lt_cv_sys_max_cmd_len=32768 5571 fi 5572 ;; 5573 *) 5574 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5575 if test -n "$lt_cv_sys_max_cmd_len"; then 5576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5578 else 5579 # Make teststring a little bigger before we do anything with it. 5580 # a 1K string should be a reasonable start. 5581 for i in 1 2 3 4 5 6 7 8 ; do 5582 teststring=$teststring$teststring 5583 done 5584 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5585 # If test is not a shell built-in, we'll probably end up computing a 5586 # maximum length that is only half of the actual maximum length, but 5587 # we can't tell. 5588 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5589 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5590 test $i != 17 # 1/2 MB should be enough 5591 do 5592 i=`expr $i + 1` 5593 teststring=$teststring$teststring 5594 done 5595 # Only check the string length outside the loop. 5596 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5597 teststring= 5598 # Add a significant safety factor because C++ compilers can tack on 5599 # massive amounts of additional arguments before passing them to the 5600 # linker. It appears as though 1/2 is a usable value. 5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5602 fi 5603 ;; 5604 esac 5605 5606fi 5607 5608if test -n $lt_cv_sys_max_cmd_len ; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5610$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5611else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5613$as_echo "none" >&6; } 5614fi 5615max_cmd_len=$lt_cv_sys_max_cmd_len 5616 5617 5618 5619 5620 5621 5622: ${CP="cp -f"} 5623: ${MV="mv -f"} 5624: ${RM="rm -f"} 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5627$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5628# Try some XSI features 5629xsi_shell=no 5630( _lt_dummy="a/b/c" 5631 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5632 = c,a/b,, \ 5633 && eval 'test $(( 1 + 1 )) -eq 2 \ 5634 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5635 && xsi_shell=yes 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5637$as_echo "$xsi_shell" >&6; } 5638 5639 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5641$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5642lt_shell_append=no 5643( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5644 >/dev/null 2>&1 \ 5645 && lt_shell_append=yes 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5647$as_echo "$lt_shell_append" >&6; } 5648 5649 5650if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5651 lt_unset=unset 5652else 5653 lt_unset=false 5654fi 5655 5656 5657 5658 5659 5660# test EBCDIC or ASCII 5661case `echo X|tr X '\101'` in 5662 A) # ASCII based system 5663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5664 lt_SP2NL='tr \040 \012' 5665 lt_NL2SP='tr \015\012 \040\040' 5666 ;; 5667 *) # EBCDIC based system 5668 lt_SP2NL='tr \100 \n' 5669 lt_NL2SP='tr \r\n \100\100' 5670 ;; 5671esac 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5682$as_echo_n "checking for $LD option to reload object files... " >&6; } 5683if ${lt_cv_ld_reload_flag+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 lt_cv_ld_reload_flag='-r' 5687fi 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5689$as_echo "$lt_cv_ld_reload_flag" >&6; } 5690reload_flag=$lt_cv_ld_reload_flag 5691case $reload_flag in 5692"" | " "*) ;; 5693*) reload_flag=" $reload_flag" ;; 5694esac 5695reload_cmds='$LD$reload_flag -o $output$reload_objs' 5696case $host_os in 5697 darwin*) 5698 if test "$GCC" = yes; then 5699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5700 else 5701 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5702 fi 5703 ;; 5704esac 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714if test -n "$ac_tool_prefix"; then 5715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5716set dummy ${ac_tool_prefix}objdump; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_OBJDUMP+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$OBJDUMP"; then 5723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742OBJDUMP=$ac_cv_prog_OBJDUMP 5743if test -n "$OBJDUMP"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5745$as_echo "$OBJDUMP" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$ac_cv_prog_OBJDUMP"; then 5754 ac_ct_OBJDUMP=$OBJDUMP 5755 # Extract the first word of "objdump", so it can be a program name with args. 5756set dummy objdump; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_OBJDUMP"; then 5763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5783if test -n "$ac_ct_OBJDUMP"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5785$as_echo "$ac_ct_OBJDUMP" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 if test "x$ac_ct_OBJDUMP" = x; then 5792 OBJDUMP="false" 5793 else 5794 case $cross_compiling:$ac_tool_warned in 5795yes:) 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5798ac_tool_warned=yes ;; 5799esac 5800 OBJDUMP=$ac_ct_OBJDUMP 5801 fi 5802else 5803 OBJDUMP="$ac_cv_prog_OBJDUMP" 5804fi 5805 5806test -z "$OBJDUMP" && OBJDUMP=objdump 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5817$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5818if ${lt_cv_deplibs_check_method+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 lt_cv_file_magic_cmd='$MAGIC_CMD' 5822lt_cv_file_magic_test_file= 5823lt_cv_deplibs_check_method='unknown' 5824# Need to set the preceding variable on all platforms that support 5825# interlibrary dependencies. 5826# 'none' -- dependencies not supported. 5827# `unknown' -- same as none, but documents that we really don't know. 5828# 'pass_all' -- all dependencies passed with no checks. 5829# 'test_compile' -- check by making test program. 5830# 'file_magic [[regex]]' -- check by looking for files in library path 5831# which responds to the $file_magic_cmd with a given extended regex. 5832# If you have `file' or equivalent on your system and you're not sure 5833# whether `pass_all' will *always* work, you probably want this one. 5834 5835case $host_os in 5836aix[4-9]*) 5837 lt_cv_deplibs_check_method=pass_all 5838 ;; 5839 5840beos*) 5841 lt_cv_deplibs_check_method=pass_all 5842 ;; 5843 5844bsdi[45]*) 5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5846 lt_cv_file_magic_cmd='/usr/bin/file -L' 5847 lt_cv_file_magic_test_file=/shlib/libc.so 5848 ;; 5849 5850cygwin*) 5851 # func_win32_libid is a shell function defined in ltmain.sh 5852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5853 lt_cv_file_magic_cmd='func_win32_libid' 5854 ;; 5855 5856mingw* | pw32*) 5857 # Base MSYS/MinGW do not provide the 'file' command needed by 5858 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5859 # unless we find 'file', for example because we are cross-compiling. 5860 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5861 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5863 lt_cv_file_magic_cmd='func_win32_libid' 5864 else 5865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5866 lt_cv_file_magic_cmd='$OBJDUMP -f' 5867 fi 5868 ;; 5869 5870cegcc*) 5871 # use the weaker test based on 'objdump'. See mingw*. 5872 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5873 lt_cv_file_magic_cmd='$OBJDUMP -f' 5874 ;; 5875 5876darwin* | rhapsody*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 5880freebsd* | dragonfly*) 5881 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5882 case $host_cpu in 5883 i*86 ) 5884 # Not sure whether the presence of OpenBSD here was a mistake. 5885 # Let's accept both of them until this is cleared up. 5886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5887 lt_cv_file_magic_cmd=/usr/bin/file 5888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5889 ;; 5890 esac 5891 else 5892 lt_cv_deplibs_check_method=pass_all 5893 fi 5894 ;; 5895 5896gnu*) 5897 lt_cv_deplibs_check_method=pass_all 5898 ;; 5899 5900haiku*) 5901 lt_cv_deplibs_check_method=pass_all 5902 ;; 5903 5904hpux10.20* | hpux11*) 5905 lt_cv_file_magic_cmd=/usr/bin/file 5906 case $host_cpu in 5907 ia64*) 5908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5909 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5910 ;; 5911 hppa*64*) 5912 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]' 5913 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5914 ;; 5915 *) 5916 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5917 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5918 ;; 5919 esac 5920 ;; 5921 5922interix[3-9]*) 5923 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5925 ;; 5926 5927irix5* | irix6* | nonstopux*) 5928 case $LD in 5929 *-32|*"-32 ") libmagic=32-bit;; 5930 *-n32|*"-n32 ") libmagic=N32;; 5931 *-64|*"-64 ") libmagic=64-bit;; 5932 *) libmagic=never-match;; 5933 esac 5934 lt_cv_deplibs_check_method=pass_all 5935 ;; 5936 5937# This must be Linux ELF. 5938linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5939 lt_cv_deplibs_check_method=pass_all 5940 ;; 5941 5942netbsd*) 5943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5945 else 5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5947 fi 5948 ;; 5949 5950newos6*) 5951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5952 lt_cv_file_magic_cmd=/usr/bin/file 5953 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5954 ;; 5955 5956*nto* | *qnx*) 5957 lt_cv_deplibs_check_method=pass_all 5958 ;; 5959 5960openbsd*) 5961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5963 else 5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5965 fi 5966 ;; 5967 5968osf3* | osf4* | osf5*) 5969 lt_cv_deplibs_check_method=pass_all 5970 ;; 5971 5972rdos*) 5973 lt_cv_deplibs_check_method=pass_all 5974 ;; 5975 5976solaris*) 5977 lt_cv_deplibs_check_method=pass_all 5978 ;; 5979 5980sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983 5984sysv4 | sysv4.3*) 5985 case $host_vendor in 5986 motorola) 5987 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]' 5988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5989 ;; 5990 ncr) 5991 lt_cv_deplibs_check_method=pass_all 5992 ;; 5993 sequent) 5994 lt_cv_file_magic_cmd='/bin/file' 5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5996 ;; 5997 sni) 5998 lt_cv_file_magic_cmd='/bin/file' 5999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6000 lt_cv_file_magic_test_file=/lib/libc.so 6001 ;; 6002 siemens) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 pc) 6006 lt_cv_deplibs_check_method=pass_all 6007 ;; 6008 esac 6009 ;; 6010 6011tpf*) 6012 lt_cv_deplibs_check_method=pass_all 6013 ;; 6014esac 6015 6016fi 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6018$as_echo "$lt_cv_deplibs_check_method" >&6; } 6019file_magic_cmd=$lt_cv_file_magic_cmd 6020deplibs_check_method=$lt_cv_deplibs_check_method 6021test -z "$deplibs_check_method" && deplibs_check_method=unknown 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034if test -n "$ac_tool_prefix"; then 6035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6036set dummy ${ac_tool_prefix}ar; ac_word=$2 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038$as_echo_n "checking for $ac_word... " >&6; } 6039if ${ac_cv_prog_AR+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 if test -n "$AR"; then 6043 ac_cv_prog_AR="$AR" # Let the user override the test. 6044else 6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046for as_dir in $PATH 6047do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6052 ac_cv_prog_AR="${ac_tool_prefix}ar" 6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056done 6057 done 6058IFS=$as_save_IFS 6059 6060fi 6061fi 6062AR=$ac_cv_prog_AR 6063if test -n "$AR"; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6065$as_echo "$AR" >&6; } 6066else 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068$as_echo "no" >&6; } 6069fi 6070 6071 6072fi 6073if test -z "$ac_cv_prog_AR"; then 6074 ac_ct_AR=$AR 6075 # Extract the first word of "ar", so it can be a program name with args. 6076set dummy ar; ac_word=$2 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078$as_echo_n "checking for $ac_word... " >&6; } 6079if ${ac_cv_prog_ac_ct_AR+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 if test -n "$ac_ct_AR"; then 6083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6084else 6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6086for as_dir in $PATH 6087do 6088 IFS=$as_save_IFS 6089 test -z "$as_dir" && as_dir=. 6090 for ac_exec_ext in '' $ac_executable_extensions; do 6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6092 ac_cv_prog_ac_ct_AR="ar" 6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6094 break 2 6095 fi 6096done 6097 done 6098IFS=$as_save_IFS 6099 6100fi 6101fi 6102ac_ct_AR=$ac_cv_prog_ac_ct_AR 6103if test -n "$ac_ct_AR"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6105$as_echo "$ac_ct_AR" >&6; } 6106else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108$as_echo "no" >&6; } 6109fi 6110 6111 if test "x$ac_ct_AR" = x; then 6112 AR="false" 6113 else 6114 case $cross_compiling:$ac_tool_warned in 6115yes:) 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6118ac_tool_warned=yes ;; 6119esac 6120 AR=$ac_ct_AR 6121 fi 6122else 6123 AR="$ac_cv_prog_AR" 6124fi 6125 6126test -z "$AR" && AR=ar 6127test -z "$AR_FLAGS" && AR_FLAGS=cru 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139if test -n "$ac_tool_prefix"; then 6140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6141set dummy ${ac_tool_prefix}strip; ac_word=$2 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143$as_echo_n "checking for $ac_word... " >&6; } 6144if ${ac_cv_prog_STRIP+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146else 6147 if test -n "$STRIP"; then 6148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 test -z "$as_dir" && as_dir=. 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6157 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162 done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167STRIP=$ac_cv_prog_STRIP 6168if test -n "$STRIP"; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6170$as_echo "$STRIP" >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175 6176 6177fi 6178if test -z "$ac_cv_prog_STRIP"; then 6179 ac_ct_STRIP=$STRIP 6180 # Extract the first word of "strip", so it can be a program name with args. 6181set dummy strip; ac_word=$2 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6183$as_echo_n "checking for $ac_word... " >&6; } 6184if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 if test -n "$ac_ct_STRIP"; then 6188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6189else 6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6191for as_dir in $PATH 6192do 6193 IFS=$as_save_IFS 6194 test -z "$as_dir" && as_dir=. 6195 for ac_exec_ext in '' $ac_executable_extensions; do 6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6197 ac_cv_prog_ac_ct_STRIP="strip" 6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6199 break 2 6200 fi 6201done 6202 done 6203IFS=$as_save_IFS 6204 6205fi 6206fi 6207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6208if test -n "$ac_ct_STRIP"; then 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6210$as_echo "$ac_ct_STRIP" >&6; } 6211else 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6213$as_echo "no" >&6; } 6214fi 6215 6216 if test "x$ac_ct_STRIP" = x; then 6217 STRIP=":" 6218 else 6219 case $cross_compiling:$ac_tool_warned in 6220yes:) 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6223ac_tool_warned=yes ;; 6224esac 6225 STRIP=$ac_ct_STRIP 6226 fi 6227else 6228 STRIP="$ac_cv_prog_STRIP" 6229fi 6230 6231test -z "$STRIP" && STRIP=: 6232 6233 6234 6235 6236 6237 6238if test -n "$ac_tool_prefix"; then 6239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6240set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6242$as_echo_n "checking for $ac_word... " >&6; } 6243if ${ac_cv_prog_RANLIB+:} false; then : 6244 $as_echo_n "(cached) " >&6 6245else 6246 if test -n "$RANLIB"; then 6247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6248else 6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250for as_dir in $PATH 6251do 6252 IFS=$as_save_IFS 6253 test -z "$as_dir" && as_dir=. 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260done 6261 done 6262IFS=$as_save_IFS 6263 6264fi 6265fi 6266RANLIB=$ac_cv_prog_RANLIB 6267if test -n "$RANLIB"; then 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6269$as_echo "$RANLIB" >&6; } 6270else 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6272$as_echo "no" >&6; } 6273fi 6274 6275 6276fi 6277if test -z "$ac_cv_prog_RANLIB"; then 6278 ac_ct_RANLIB=$RANLIB 6279 # Extract the first word of "ranlib", so it can be a program name with args. 6280set dummy ranlib; ac_word=$2 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6282$as_echo_n "checking for $ac_word... " >&6; } 6283if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 if test -n "$ac_ct_RANLIB"; then 6287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6288else 6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6290for as_dir in $PATH 6291do 6292 IFS=$as_save_IFS 6293 test -z "$as_dir" && as_dir=. 6294 for ac_exec_ext in '' $ac_executable_extensions; do 6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6296 ac_cv_prog_ac_ct_RANLIB="ranlib" 6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6298 break 2 6299 fi 6300done 6301 done 6302IFS=$as_save_IFS 6303 6304fi 6305fi 6306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6307if test -n "$ac_ct_RANLIB"; then 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6309$as_echo "$ac_ct_RANLIB" >&6; } 6310else 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6312$as_echo "no" >&6; } 6313fi 6314 6315 if test "x$ac_ct_RANLIB" = x; then 6316 RANLIB=":" 6317 else 6318 case $cross_compiling:$ac_tool_warned in 6319yes:) 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6322ac_tool_warned=yes ;; 6323esac 6324 RANLIB=$ac_ct_RANLIB 6325 fi 6326else 6327 RANLIB="$ac_cv_prog_RANLIB" 6328fi 6329 6330test -z "$RANLIB" && RANLIB=: 6331 6332 6333 6334 6335 6336 6337# Determine commands to create old-style static archives. 6338old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6339old_postinstall_cmds='chmod 644 $oldlib' 6340old_postuninstall_cmds= 6341 6342if test -n "$RANLIB"; then 6343 case $host_os in 6344 openbsd*) 6345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6346 ;; 6347 *) 6348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6349 ;; 6350 esac 6351 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6352fi 6353 6354case $host_os in 6355 darwin*) 6356 lock_old_archive_extraction=yes ;; 6357 *) 6358 lock_old_archive_extraction=no ;; 6359esac 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399# If no C compiler was specified, use CC. 6400LTCC=${LTCC-"$CC"} 6401 6402# If no C compiler flags were specified, use CFLAGS. 6403LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6404 6405# Allow CC to be a program name with arguments. 6406compiler=$CC 6407 6408 6409# Check for command to grab the raw symbol name followed by C symbol from nm. 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6411$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6412if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 6416# These are sane defaults that work on at least a few old systems. 6417# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6418 6419# Character class describing NM global symbol codes. 6420symcode='[BCDEGRST]' 6421 6422# Regexp to match symbols that can be accessed directly from C. 6423sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6424 6425# Define system-specific variables. 6426case $host_os in 6427aix*) 6428 symcode='[BCDT]' 6429 ;; 6430cygwin* | mingw* | pw32* | cegcc*) 6431 symcode='[ABCDGISTW]' 6432 ;; 6433hpux*) 6434 if test "$host_cpu" = ia64; then 6435 symcode='[ABCDEGRST]' 6436 fi 6437 ;; 6438irix* | nonstopux*) 6439 symcode='[BCDEGRST]' 6440 ;; 6441osf*) 6442 symcode='[BCDEGQRST]' 6443 ;; 6444solaris*) 6445 symcode='[BDRT]' 6446 ;; 6447sco3.2v5*) 6448 symcode='[DT]' 6449 ;; 6450sysv4.2uw2*) 6451 symcode='[DT]' 6452 ;; 6453sysv5* | sco5v6* | unixware* | OpenUNIX*) 6454 symcode='[ABDT]' 6455 ;; 6456sysv4) 6457 symcode='[DFNSTU]' 6458 ;; 6459esac 6460 6461# If we're using GNU nm, then use its standard symbol codes. 6462case `$NM -V 2>&1` in 6463*GNU* | *'with BFD'*) 6464 symcode='[ABCDGIRSTW]' ;; 6465esac 6466 6467# Transform an extracted symbol line into a proper C declaration. 6468# Some systems (esp. on ia64) link data and code symbols differently, 6469# so use this general approach. 6470lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6471 6472# Transform an extracted symbol line into symbol name and symbol address 6473lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6474lt_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'" 6475 6476# Handle CRLF in mingw tool chain 6477opt_cr= 6478case $build_os in 6479mingw*) 6480 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6481 ;; 6482esac 6483 6484# Try without a prefix underscore, then with it. 6485for ac_symprfx in "" "_"; do 6486 6487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6488 symxfrm="\\1 $ac_symprfx\\2 \\2" 6489 6490 # Write the raw and C identifiers. 6491 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6492 # Fake it for dumpbin and say T for any non-static function 6493 # and D for any global variable. 6494 # Also find C++ and __fastcall symbols from MSVC++, 6495 # which start with @ or ?. 6496 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6497" {last_section=section; section=\$ 3};"\ 6498" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6499" \$ 0!~/External *\|/{next};"\ 6500" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6501" {if(hide[section]) next};"\ 6502" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6503" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6504" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6505" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6506" ' prfx=^$ac_symprfx" 6507 else 6508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6509 fi 6510 6511 # Check to see that the pipe works correctly. 6512 pipe_works=no 6513 6514 rm -f conftest* 6515 cat > conftest.$ac_ext <<_LT_EOF 6516#ifdef __cplusplus 6517extern "C" { 6518#endif 6519char nm_test_var; 6520void nm_test_func(void); 6521void nm_test_func(void){} 6522#ifdef __cplusplus 6523} 6524#endif 6525int main(){nm_test_var='a';nm_test_func();return(0);} 6526_LT_EOF 6527 6528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6529 (eval $ac_compile) 2>&5 6530 ac_status=$? 6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6532 test $ac_status = 0; }; then 6533 # Now try to grab the symbols. 6534 nlist=conftest.nm 6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6536 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6537 ac_status=$? 6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6539 test $ac_status = 0; } && test -s "$nlist"; then 6540 # Try sorting and uniquifying the output. 6541 if sort "$nlist" | uniq > "$nlist"T; then 6542 mv -f "$nlist"T "$nlist" 6543 else 6544 rm -f "$nlist"T 6545 fi 6546 6547 # Make sure that we snagged all the symbols we need. 6548 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6549 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6550 cat <<_LT_EOF > conftest.$ac_ext 6551#ifdef __cplusplus 6552extern "C" { 6553#endif 6554 6555_LT_EOF 6556 # Now generate the symbol file. 6557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6558 6559 cat <<_LT_EOF >> conftest.$ac_ext 6560 6561/* The mapping between symbol names and symbols. */ 6562const struct { 6563 const char *name; 6564 void *address; 6565} 6566lt__PROGRAM__LTX_preloaded_symbols[] = 6567{ 6568 { "@PROGRAM@", (void *) 0 }, 6569_LT_EOF 6570 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6571 cat <<\_LT_EOF >> conftest.$ac_ext 6572 {0, (void *) 0} 6573}; 6574 6575/* This works around a problem in FreeBSD linker */ 6576#ifdef FREEBSD_WORKAROUND 6577static const void *lt_preloaded_setup() { 6578 return lt__PROGRAM__LTX_preloaded_symbols; 6579} 6580#endif 6581 6582#ifdef __cplusplus 6583} 6584#endif 6585_LT_EOF 6586 # Now try linking the two files. 6587 mv conftest.$ac_objext conftstm.$ac_objext 6588 lt_save_LIBS="$LIBS" 6589 lt_save_CFLAGS="$CFLAGS" 6590 LIBS="conftstm.$ac_objext" 6591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6593 (eval $ac_link) 2>&5 6594 ac_status=$? 6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6596 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6597 pipe_works=yes 6598 fi 6599 LIBS="$lt_save_LIBS" 6600 CFLAGS="$lt_save_CFLAGS" 6601 else 6602 echo "cannot find nm_test_func in $nlist" >&5 6603 fi 6604 else 6605 echo "cannot find nm_test_var in $nlist" >&5 6606 fi 6607 else 6608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6609 fi 6610 else 6611 echo "$progname: failed program was:" >&5 6612 cat conftest.$ac_ext >&5 6613 fi 6614 rm -rf conftest* conftst* 6615 6616 # Do not use the global_symbol_pipe unless it works. 6617 if test "$pipe_works" = yes; then 6618 break 6619 else 6620 lt_cv_sys_global_symbol_pipe= 6621 fi 6622done 6623 6624fi 6625 6626if test -z "$lt_cv_sys_global_symbol_pipe"; then 6627 lt_cv_sys_global_symbol_to_cdecl= 6628fi 6629if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6631$as_echo "failed" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6634$as_echo "ok" >&6; } 6635fi 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659# Check whether --enable-libtool-lock was given. 6660if test "${enable_libtool_lock+set}" = set; then : 6661 enableval=$enable_libtool_lock; 6662fi 6663 6664test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6665 6666# Some flags need to be propagated to the compiler or linker for good 6667# libtool support. 6668case $host in 6669ia64-*-hpux*) 6670 # Find out which ABI we are using. 6671 echo 'int i;' > conftest.$ac_ext 6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6673 (eval $ac_compile) 2>&5 6674 ac_status=$? 6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6676 test $ac_status = 0; }; then 6677 case `/usr/bin/file conftest.$ac_objext` in 6678 *ELF-32*) 6679 HPUX_IA64_MODE="32" 6680 ;; 6681 *ELF-64*) 6682 HPUX_IA64_MODE="64" 6683 ;; 6684 esac 6685 fi 6686 rm -rf conftest* 6687 ;; 6688*-*-irix6*) 6689 # Find out which ABI we are using. 6690 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6692 (eval $ac_compile) 2>&5 6693 ac_status=$? 6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6695 test $ac_status = 0; }; then 6696 if test "$lt_cv_prog_gnu_ld" = yes; then 6697 case `/usr/bin/file conftest.$ac_objext` in 6698 *32-bit*) 6699 LD="${LD-ld} -melf32bsmip" 6700 ;; 6701 *N32*) 6702 LD="${LD-ld} -melf32bmipn32" 6703 ;; 6704 *64-bit*) 6705 LD="${LD-ld} -melf64bmip" 6706 ;; 6707 esac 6708 else 6709 case `/usr/bin/file conftest.$ac_objext` in 6710 *32-bit*) 6711 LD="${LD-ld} -32" 6712 ;; 6713 *N32*) 6714 LD="${LD-ld} -n32" 6715 ;; 6716 *64-bit*) 6717 LD="${LD-ld} -64" 6718 ;; 6719 esac 6720 fi 6721 fi 6722 rm -rf conftest* 6723 ;; 6724 6725x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6726s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6727 # Find out which ABI we are using. 6728 echo 'int i;' > conftest.$ac_ext 6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6730 (eval $ac_compile) 2>&5 6731 ac_status=$? 6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6733 test $ac_status = 0; }; then 6734 case `/usr/bin/file conftest.o` in 6735 *32-bit*) 6736 case $host in 6737 x86_64-*kfreebsd*-gnu) 6738 LD="${LD-ld} -m elf_i386_fbsd" 6739 ;; 6740 x86_64-*linux*) 6741 case `/usr/bin/file conftest.o` in 6742 *x86-64*) 6743 LD="${LD-ld} -m elf32_x86_64" 6744 ;; 6745 *) 6746 LD="${LD-ld} -m elf_i386" 6747 ;; 6748 esac 6749 ;; 6750 powerpc64le-*linux*) 6751 LD="${LD-ld} -m elf32lppclinux" 6752 ;; 6753 powerpc64-*linux*) 6754 LD="${LD-ld} -m elf32ppclinux" 6755 ;; 6756 s390x-*linux*) 6757 LD="${LD-ld} -m elf_s390" 6758 ;; 6759 sparc64-*linux*) 6760 LD="${LD-ld} -m elf32_sparc" 6761 ;; 6762 esac 6763 ;; 6764 *64-bit*) 6765 case $host in 6766 x86_64-*kfreebsd*-gnu) 6767 LD="${LD-ld} -m elf_x86_64_fbsd" 6768 ;; 6769 x86_64-*linux*) 6770 LD="${LD-ld} -m elf_x86_64" 6771 ;; 6772 powerpcle-*linux*) 6773 LD="${LD-ld} -m elf64lppc" 6774 ;; 6775 powerpc-*linux*) 6776 LD="${LD-ld} -m elf64ppc" 6777 ;; 6778 s390*-*linux*|s390*-*tpf*) 6779 LD="${LD-ld} -m elf64_s390" 6780 ;; 6781 sparc*-*linux*) 6782 LD="${LD-ld} -m elf64_sparc" 6783 ;; 6784 esac 6785 ;; 6786 esac 6787 fi 6788 rm -rf conftest* 6789 ;; 6790 6791*-*-sco3.2v5*) 6792 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6793 SAVE_CFLAGS="$CFLAGS" 6794 CFLAGS="$CFLAGS -belf" 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6796$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6797if ${lt_cv_cc_needs_belf+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 ac_ext=c 6801ac_cpp='$CPP $CPPFLAGS' 6802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6804ac_compiler_gnu=$ac_cv_c_compiler_gnu 6805 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808 6809int 6810main () 6811{ 6812 6813 ; 6814 return 0; 6815} 6816_ACEOF 6817if ac_fn_c_try_link "$LINENO"; then : 6818 lt_cv_cc_needs_belf=yes 6819else 6820 lt_cv_cc_needs_belf=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext \ 6823 conftest$ac_exeext conftest.$ac_ext 6824 ac_ext=c 6825ac_cpp='$CPP $CPPFLAGS' 6826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6828ac_compiler_gnu=$ac_cv_c_compiler_gnu 6829 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6832$as_echo "$lt_cv_cc_needs_belf" >&6; } 6833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6835 CFLAGS="$SAVE_CFLAGS" 6836 fi 6837 ;; 6838sparc*-*solaris*) 6839 # Find out which ABI we are using. 6840 echo 'int i;' > conftest.$ac_ext 6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6842 (eval $ac_compile) 2>&5 6843 ac_status=$? 6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6845 test $ac_status = 0; }; then 6846 case `/usr/bin/file conftest.o` in 6847 *64-bit*) 6848 case $lt_cv_prog_gnu_ld in 6849 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6850 *) 6851 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6852 LD="${LD-ld} -64" 6853 fi 6854 ;; 6855 esac 6856 ;; 6857 esac 6858 fi 6859 rm -rf conftest* 6860 ;; 6861esac 6862 6863need_locks="$enable_libtool_lock" 6864 6865 6866 case $host_os in 6867 rhapsody* | darwin*) 6868 if test -n "$ac_tool_prefix"; then 6869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6870set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6872$as_echo_n "checking for $ac_word... " >&6; } 6873if ${ac_cv_prog_DSYMUTIL+:} false; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 if test -n "$DSYMUTIL"; then 6877 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6878else 6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6880for as_dir in $PATH 6881do 6882 IFS=$as_save_IFS 6883 test -z "$as_dir" && as_dir=. 6884 for ac_exec_ext in '' $ac_executable_extensions; do 6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6886 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6888 break 2 6889 fi 6890done 6891 done 6892IFS=$as_save_IFS 6893 6894fi 6895fi 6896DSYMUTIL=$ac_cv_prog_DSYMUTIL 6897if test -n "$DSYMUTIL"; then 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6899$as_echo "$DSYMUTIL" >&6; } 6900else 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6902$as_echo "no" >&6; } 6903fi 6904 6905 6906fi 6907if test -z "$ac_cv_prog_DSYMUTIL"; then 6908 ac_ct_DSYMUTIL=$DSYMUTIL 6909 # Extract the first word of "dsymutil", so it can be a program name with args. 6910set dummy dsymutil; ac_word=$2 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6912$as_echo_n "checking for $ac_word... " >&6; } 6913if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 if test -n "$ac_ct_DSYMUTIL"; then 6917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6918else 6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6920for as_dir in $PATH 6921do 6922 IFS=$as_save_IFS 6923 test -z "$as_dir" && as_dir=. 6924 for ac_exec_ext in '' $ac_executable_extensions; do 6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6928 break 2 6929 fi 6930done 6931 done 6932IFS=$as_save_IFS 6933 6934fi 6935fi 6936ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6937if test -n "$ac_ct_DSYMUTIL"; then 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6939$as_echo "$ac_ct_DSYMUTIL" >&6; } 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6942$as_echo "no" >&6; } 6943fi 6944 6945 if test "x$ac_ct_DSYMUTIL" = x; then 6946 DSYMUTIL=":" 6947 else 6948 case $cross_compiling:$ac_tool_warned in 6949yes:) 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6952ac_tool_warned=yes ;; 6953esac 6954 DSYMUTIL=$ac_ct_DSYMUTIL 6955 fi 6956else 6957 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6958fi 6959 6960 if test -n "$ac_tool_prefix"; then 6961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6962set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6964$as_echo_n "checking for $ac_word... " >&6; } 6965if ${ac_cv_prog_NMEDIT+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 if test -n "$NMEDIT"; then 6969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6970else 6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6972for as_dir in $PATH 6973do 6974 IFS=$as_save_IFS 6975 test -z "$as_dir" && as_dir=. 6976 for ac_exec_ext in '' $ac_executable_extensions; do 6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6978 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6980 break 2 6981 fi 6982done 6983 done 6984IFS=$as_save_IFS 6985 6986fi 6987fi 6988NMEDIT=$ac_cv_prog_NMEDIT 6989if test -n "$NMEDIT"; then 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6991$as_echo "$NMEDIT" >&6; } 6992else 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6994$as_echo "no" >&6; } 6995fi 6996 6997 6998fi 6999if test -z "$ac_cv_prog_NMEDIT"; then 7000 ac_ct_NMEDIT=$NMEDIT 7001 # Extract the first word of "nmedit", so it can be a program name with args. 7002set dummy nmedit; ac_word=$2 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7004$as_echo_n "checking for $ac_word... " >&6; } 7005if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7006 $as_echo_n "(cached) " >&6 7007else 7008 if test -n "$ac_ct_NMEDIT"; then 7009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7010else 7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7012for as_dir in $PATH 7013do 7014 IFS=$as_save_IFS 7015 test -z "$as_dir" && as_dir=. 7016 for ac_exec_ext in '' $ac_executable_extensions; do 7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7018 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7020 break 2 7021 fi 7022done 7023 done 7024IFS=$as_save_IFS 7025 7026fi 7027fi 7028ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7029if test -n "$ac_ct_NMEDIT"; then 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7031$as_echo "$ac_ct_NMEDIT" >&6; } 7032else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034$as_echo "no" >&6; } 7035fi 7036 7037 if test "x$ac_ct_NMEDIT" = x; then 7038 NMEDIT=":" 7039 else 7040 case $cross_compiling:$ac_tool_warned in 7041yes:) 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7044ac_tool_warned=yes ;; 7045esac 7046 NMEDIT=$ac_ct_NMEDIT 7047 fi 7048else 7049 NMEDIT="$ac_cv_prog_NMEDIT" 7050fi 7051 7052 if test -n "$ac_tool_prefix"; then 7053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7054set dummy ${ac_tool_prefix}lipo; ac_word=$2 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7056$as_echo_n "checking for $ac_word... " >&6; } 7057if ${ac_cv_prog_LIPO+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 if test -n "$LIPO"; then 7061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7062else 7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7064for as_dir in $PATH 7065do 7066 IFS=$as_save_IFS 7067 test -z "$as_dir" && as_dir=. 7068 for ac_exec_ext in '' $ac_executable_extensions; do 7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7072 break 2 7073 fi 7074done 7075 done 7076IFS=$as_save_IFS 7077 7078fi 7079fi 7080LIPO=$ac_cv_prog_LIPO 7081if test -n "$LIPO"; then 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7083$as_echo "$LIPO" >&6; } 7084else 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7086$as_echo "no" >&6; } 7087fi 7088 7089 7090fi 7091if test -z "$ac_cv_prog_LIPO"; then 7092 ac_ct_LIPO=$LIPO 7093 # Extract the first word of "lipo", so it can be a program name with args. 7094set dummy lipo; ac_word=$2 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7096$as_echo_n "checking for $ac_word... " >&6; } 7097if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 if test -n "$ac_ct_LIPO"; then 7101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7102else 7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_prog_ac_ct_LIPO="lipo" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114done 7115 done 7116IFS=$as_save_IFS 7117 7118fi 7119fi 7120ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7121if test -n "$ac_ct_LIPO"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7123$as_echo "$ac_ct_LIPO" >&6; } 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126$as_echo "no" >&6; } 7127fi 7128 7129 if test "x$ac_ct_LIPO" = x; then 7130 LIPO=":" 7131 else 7132 case $cross_compiling:$ac_tool_warned in 7133yes:) 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7136ac_tool_warned=yes ;; 7137esac 7138 LIPO=$ac_ct_LIPO 7139 fi 7140else 7141 LIPO="$ac_cv_prog_LIPO" 7142fi 7143 7144 if test -n "$ac_tool_prefix"; then 7145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7146set dummy ${ac_tool_prefix}otool; ac_word=$2 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7148$as_echo_n "checking for $ac_word... " >&6; } 7149if ${ac_cv_prog_OTOOL+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 if test -n "$OTOOL"; then 7153 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7154else 7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156for as_dir in $PATH 7157do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7162 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166done 7167 done 7168IFS=$as_save_IFS 7169 7170fi 7171fi 7172OTOOL=$ac_cv_prog_OTOOL 7173if test -n "$OTOOL"; then 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7175$as_echo "$OTOOL" >&6; } 7176else 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7178$as_echo "no" >&6; } 7179fi 7180 7181 7182fi 7183if test -z "$ac_cv_prog_OTOOL"; then 7184 ac_ct_OTOOL=$OTOOL 7185 # Extract the first word of "otool", so it can be a program name with args. 7186set dummy otool; ac_word=$2 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7188$as_echo_n "checking for $ac_word... " >&6; } 7189if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 if test -n "$ac_ct_OTOOL"; then 7193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7194else 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH 7197do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7202 ac_cv_prog_ac_ct_OTOOL="otool" 7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7204 break 2 7205 fi 7206done 7207 done 7208IFS=$as_save_IFS 7209 7210fi 7211fi 7212ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7213if test -n "$ac_ct_OTOOL"; then 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7215$as_echo "$ac_ct_OTOOL" >&6; } 7216else 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7218$as_echo "no" >&6; } 7219fi 7220 7221 if test "x$ac_ct_OTOOL" = x; then 7222 OTOOL=":" 7223 else 7224 case $cross_compiling:$ac_tool_warned in 7225yes:) 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7228ac_tool_warned=yes ;; 7229esac 7230 OTOOL=$ac_ct_OTOOL 7231 fi 7232else 7233 OTOOL="$ac_cv_prog_OTOOL" 7234fi 7235 7236 if test -n "$ac_tool_prefix"; then 7237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7238set dummy ${ac_tool_prefix}otool64; ac_word=$2 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7240$as_echo_n "checking for $ac_word... " >&6; } 7241if ${ac_cv_prog_OTOOL64+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 if test -n "$OTOOL64"; then 7245 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7246else 7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7248for as_dir in $PATH 7249do 7250 IFS=$as_save_IFS 7251 test -z "$as_dir" && as_dir=. 7252 for ac_exec_ext in '' $ac_executable_extensions; do 7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7254 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7256 break 2 7257 fi 7258done 7259 done 7260IFS=$as_save_IFS 7261 7262fi 7263fi 7264OTOOL64=$ac_cv_prog_OTOOL64 7265if test -n "$OTOOL64"; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7267$as_echo "$OTOOL64" >&6; } 7268else 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7270$as_echo "no" >&6; } 7271fi 7272 7273 7274fi 7275if test -z "$ac_cv_prog_OTOOL64"; then 7276 ac_ct_OTOOL64=$OTOOL64 7277 # Extract the first word of "otool64", so it can be a program name with args. 7278set dummy otool64; ac_word=$2 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7280$as_echo_n "checking for $ac_word... " >&6; } 7281if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 if test -n "$ac_ct_OTOOL64"; then 7285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7286else 7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7294 ac_cv_prog_ac_ct_OTOOL64="otool64" 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302fi 7303fi 7304ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7305if test -n "$ac_ct_OTOOL64"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7307$as_echo "$ac_ct_OTOOL64" >&6; } 7308else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 if test "x$ac_ct_OTOOL64" = x; then 7314 OTOOL64=":" 7315 else 7316 case $cross_compiling:$ac_tool_warned in 7317yes:) 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7320ac_tool_warned=yes ;; 7321esac 7322 OTOOL64=$ac_ct_OTOOL64 7323 fi 7324else 7325 OTOOL64="$ac_cv_prog_OTOOL64" 7326fi 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7355$as_echo_n "checking for -single_module linker flag... " >&6; } 7356if ${lt_cv_apple_cc_single_mod+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 lt_cv_apple_cc_single_mod=no 7360 if test -z "${LT_MULTI_MODULE}"; then 7361 # By default we will add the -single_module flag. You can override 7362 # by either setting the environment variable LT_MULTI_MODULE 7363 # non-empty at configure time, or by adding -multi_module to the 7364 # link flags. 7365 rm -rf libconftest.dylib* 7366 echo "int foo(void){return 1;}" > conftest.c 7367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7368-dynamiclib -Wl,-single_module conftest.c" >&5 7369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7371 _lt_result=$? 7372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7373 lt_cv_apple_cc_single_mod=yes 7374 else 7375 cat conftest.err >&5 7376 fi 7377 rm -rf libconftest.dylib* 7378 rm -f conftest.* 7379 fi 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7382$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7384$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7385if ${lt_cv_ld_exported_symbols_list+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 lt_cv_ld_exported_symbols_list=no 7389 save_LDFLAGS=$LDFLAGS 7390 echo "_main" > conftest.sym 7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394 7395int 7396main () 7397{ 7398 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_link "$LINENO"; then : 7404 lt_cv_ld_exported_symbols_list=yes 7405else 7406 lt_cv_ld_exported_symbols_list=no 7407fi 7408rm -f core conftest.err conftest.$ac_objext \ 7409 conftest$ac_exeext conftest.$ac_ext 7410 LDFLAGS="$save_LDFLAGS" 7411 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7414$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7416$as_echo_n "checking for -force_load linker flag... " >&6; } 7417if ${lt_cv_ld_force_load+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 lt_cv_ld_force_load=no 7421 cat > conftest.c << _LT_EOF 7422int forced_loaded() { return 2;} 7423_LT_EOF 7424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7426 echo "$AR cru libconftest.a conftest.o" >&5 7427 $AR cru libconftest.a conftest.o 2>&5 7428 cat > conftest.c << _LT_EOF 7429int main() { return 0;} 7430_LT_EOF 7431 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7432 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7433 _lt_result=$? 7434 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7435 lt_cv_ld_force_load=yes 7436 else 7437 cat conftest.err >&5 7438 fi 7439 rm -f conftest.err libconftest.a conftest conftest.c 7440 rm -rf conftest.dSYM 7441 7442fi 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7444$as_echo "$lt_cv_ld_force_load" >&6; } 7445 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7446 # build without first building modern cctools / linker. 7447 case $host_cpu-$host_os in 7448 *-rhapsody* | *-darwin1.[012]) 7449 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7450 *-darwin1.*) 7451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7452 *-darwin*) 7453 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7454 # deployment target is forced to an earlier version. 7455 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7456 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7457 ;; 7458 10.[012][,.]*) 7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7460 ;; 7461 *) 7462 ;; 7463 esac 7464 ;; 7465 esac 7466 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7467 _lt_dar_single_mod='$single_module' 7468 fi 7469 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7470 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7471 else 7472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7473 fi 7474 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7475 _lt_dsymutil='~$DSYMUTIL $lib || :' 7476 else 7477 _lt_dsymutil= 7478 fi 7479 ;; 7480 esac 7481 7482ac_ext=c 7483ac_cpp='$CPP $CPPFLAGS' 7484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7486ac_compiler_gnu=$ac_cv_c_compiler_gnu 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7488$as_echo_n "checking how to run the C preprocessor... " >&6; } 7489# On Suns, sometimes $CPP names a directory. 7490if test -n "$CPP" && test -d "$CPP"; then 7491 CPP= 7492fi 7493if test -z "$CPP"; then 7494 if ${ac_cv_prog_CPP+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496else 7497 # Double quotes because CPP needs to be expanded 7498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7499 do 7500 ac_preproc_ok=false 7501for ac_c_preproc_warn_flag in '' yes 7502do 7503 # Use a header file that comes with gcc, so configuring glibc 7504 # with a fresh cross-compiler works. 7505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7506 # <limits.h> exists even on freestanding compilers. 7507 # On the NeXT, cc -E runs the code through the compiler's parser, 7508 # not just through cpp. "Syntax error" is here to catch this case. 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511#ifdef __STDC__ 7512# include <limits.h> 7513#else 7514# include <assert.h> 7515#endif 7516 Syntax error 7517_ACEOF 7518if ac_fn_c_try_cpp "$LINENO"; then : 7519 7520else 7521 # Broken: fails on valid input. 7522continue 7523fi 7524rm -f conftest.err conftest.i conftest.$ac_ext 7525 7526 # OK, works on sane cases. Now check whether nonexistent headers 7527 # can be detected and how. 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530#include <ac_nonexistent.h> 7531_ACEOF 7532if ac_fn_c_try_cpp "$LINENO"; then : 7533 # Broken: success on invalid input. 7534continue 7535else 7536 # Passes both tests. 7537ac_preproc_ok=: 7538break 7539fi 7540rm -f conftest.err conftest.i conftest.$ac_ext 7541 7542done 7543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7544rm -f conftest.i conftest.err conftest.$ac_ext 7545if $ac_preproc_ok; then : 7546 break 7547fi 7548 7549 done 7550 ac_cv_prog_CPP=$CPP 7551 7552fi 7553 CPP=$ac_cv_prog_CPP 7554else 7555 ac_cv_prog_CPP=$CPP 7556fi 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7558$as_echo "$CPP" >&6; } 7559ac_preproc_ok=false 7560for ac_c_preproc_warn_flag in '' yes 7561do 7562 # Use a header file that comes with gcc, so configuring glibc 7563 # with a fresh cross-compiler works. 7564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7565 # <limits.h> exists even on freestanding compilers. 7566 # On the NeXT, cc -E runs the code through the compiler's parser, 7567 # not just through cpp. "Syntax error" is here to catch this case. 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570#ifdef __STDC__ 7571# include <limits.h> 7572#else 7573# include <assert.h> 7574#endif 7575 Syntax error 7576_ACEOF 7577if ac_fn_c_try_cpp "$LINENO"; then : 7578 7579else 7580 # Broken: fails on valid input. 7581continue 7582fi 7583rm -f conftest.err conftest.i conftest.$ac_ext 7584 7585 # OK, works on sane cases. Now check whether nonexistent headers 7586 # can be detected and how. 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589#include <ac_nonexistent.h> 7590_ACEOF 7591if ac_fn_c_try_cpp "$LINENO"; then : 7592 # Broken: success on invalid input. 7593continue 7594else 7595 # Passes both tests. 7596ac_preproc_ok=: 7597break 7598fi 7599rm -f conftest.err conftest.i conftest.$ac_ext 7600 7601done 7602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7603rm -f conftest.i conftest.err conftest.$ac_ext 7604if $ac_preproc_ok; then : 7605 7606else 7607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7609as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7610See \`config.log' for more details" "$LINENO" 5; } 7611fi 7612 7613ac_ext=c 7614ac_cpp='$CPP $CPPFLAGS' 7615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7617ac_compiler_gnu=$ac_cv_c_compiler_gnu 7618 7619 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7621$as_echo_n "checking for ANSI C header files... " >&6; } 7622if ${ac_cv_header_stdc+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627#include <stdlib.h> 7628#include <stdarg.h> 7629#include <string.h> 7630#include <float.h> 7631 7632int 7633main () 7634{ 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO"; then : 7641 ac_cv_header_stdc=yes 7642else 7643 ac_cv_header_stdc=no 7644fi 7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646 7647if test $ac_cv_header_stdc = yes; then 7648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651#include <string.h> 7652 7653_ACEOF 7654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7655 $EGREP "memchr" >/dev/null 2>&1; then : 7656 7657else 7658 ac_cv_header_stdc=no 7659fi 7660rm -f conftest* 7661 7662fi 7663 7664if test $ac_cv_header_stdc = yes; then 7665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668#include <stdlib.h> 7669 7670_ACEOF 7671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7672 $EGREP "free" >/dev/null 2>&1; then : 7673 7674else 7675 ac_cv_header_stdc=no 7676fi 7677rm -f conftest* 7678 7679fi 7680 7681if test $ac_cv_header_stdc = yes; then 7682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7683 if test "$cross_compiling" = yes; then : 7684 : 7685else 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688#include <ctype.h> 7689#include <stdlib.h> 7690#if ((' ' & 0x0FF) == 0x020) 7691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7693#else 7694# define ISLOWER(c) \ 7695 (('a' <= (c) && (c) <= 'i') \ 7696 || ('j' <= (c) && (c) <= 'r') \ 7697 || ('s' <= (c) && (c) <= 'z')) 7698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7699#endif 7700 7701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7702int 7703main () 7704{ 7705 int i; 7706 for (i = 0; i < 256; i++) 7707 if (XOR (islower (i), ISLOWER (i)) 7708 || toupper (i) != TOUPPER (i)) 7709 return 2; 7710 return 0; 7711} 7712_ACEOF 7713if ac_fn_c_try_run "$LINENO"; then : 7714 7715else 7716 ac_cv_header_stdc=no 7717fi 7718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7719 conftest.$ac_objext conftest.beam conftest.$ac_ext 7720fi 7721 7722fi 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7725$as_echo "$ac_cv_header_stdc" >&6; } 7726if test $ac_cv_header_stdc = yes; then 7727 7728$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7729 7730fi 7731 7732# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7734 inttypes.h stdint.h unistd.h 7735do : 7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7738" 7739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7740 cat >>confdefs.h <<_ACEOF 7741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7742_ACEOF 7743 7744fi 7745 7746done 7747 7748 7749for ac_header in dlfcn.h 7750do : 7751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7752" 7753if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7754 cat >>confdefs.h <<_ACEOF 7755#define HAVE_DLFCN_H 1 7756_ACEOF 7757 7758fi 7759 7760done 7761 7762 7763 7764 7765 7766 7767# Set options 7768 7769 7770 7771 7772 enable_win32_dll=no 7773 7774 7775 # Check whether --enable-shared was given. 7776if test "${enable_shared+set}" = set; then : 7777 enableval=$enable_shared; p=${PACKAGE-default} 7778 case $enableval in 7779 yes) enable_shared=yes ;; 7780 no) enable_shared=no ;; 7781 *) 7782 enable_shared=no 7783 # Look at the argument we got. We use all the common list separators. 7784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7785 for pkg in $enableval; do 7786 IFS="$lt_save_ifs" 7787 if test "X$pkg" = "X$p"; then 7788 enable_shared=yes 7789 fi 7790 done 7791 IFS="$lt_save_ifs" 7792 ;; 7793 esac 7794else 7795 enable_shared=yes 7796fi 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 # Check whether --enable-static was given. 7807if test "${enable_static+set}" = set; then : 7808 enableval=$enable_static; p=${PACKAGE-default} 7809 case $enableval in 7810 yes) enable_static=yes ;; 7811 no) enable_static=no ;; 7812 *) 7813 enable_static=no 7814 # Look at the argument we got. We use all the common list separators. 7815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7816 for pkg in $enableval; do 7817 IFS="$lt_save_ifs" 7818 if test "X$pkg" = "X$p"; then 7819 enable_static=yes 7820 fi 7821 done 7822 IFS="$lt_save_ifs" 7823 ;; 7824 esac 7825else 7826 enable_static=yes 7827fi 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838# Check whether --with-pic was given. 7839if test "${with_pic+set}" = set; then : 7840 withval=$with_pic; pic_mode="$withval" 7841else 7842 pic_mode=default 7843fi 7844 7845 7846test -z "$pic_mode" && pic_mode=default 7847 7848 7849 7850 7851 7852 7853 7854 # Check whether --enable-fast-install was given. 7855if test "${enable_fast_install+set}" = set; then : 7856 enableval=$enable_fast_install; p=${PACKAGE-default} 7857 case $enableval in 7858 yes) enable_fast_install=yes ;; 7859 no) enable_fast_install=no ;; 7860 *) 7861 enable_fast_install=no 7862 # Look at the argument we got. We use all the common list separators. 7863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7864 for pkg in $enableval; do 7865 IFS="$lt_save_ifs" 7866 if test "X$pkg" = "X$p"; then 7867 enable_fast_install=yes 7868 fi 7869 done 7870 IFS="$lt_save_ifs" 7871 ;; 7872 esac 7873else 7874 enable_fast_install=yes 7875fi 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887# This can be used to rebuild libtool when needed 7888LIBTOOL_DEPS="$ltmain" 7889 7890# Always use our own libtool. 7891LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918test -z "$LN_S" && LN_S="ln -s" 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933if test -n "${ZSH_VERSION+set}" ; then 7934 setopt NO_GLOB_SUBST 7935fi 7936 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7938$as_echo_n "checking for objdir... " >&6; } 7939if ${lt_cv_objdir+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941else 7942 rm -f .libs 2>/dev/null 7943mkdir .libs 2>/dev/null 7944if test -d .libs; then 7945 lt_cv_objdir=.libs 7946else 7947 # MS-DOS does not allow filenames that begin with a dot. 7948 lt_cv_objdir=_libs 7949fi 7950rmdir .libs 2>/dev/null 7951fi 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7953$as_echo "$lt_cv_objdir" >&6; } 7954objdir=$lt_cv_objdir 7955 7956 7957 7958 7959 7960cat >>confdefs.h <<_ACEOF 7961#define LT_OBJDIR "$lt_cv_objdir/" 7962_ACEOF 7963 7964 7965 7966 7967case $host_os in 7968aix3*) 7969 # AIX sometimes has problems with the GCC collect2 program. For some 7970 # reason, if we set the COLLECT_NAMES environment variable, the problems 7971 # vanish in a puff of smoke. 7972 if test "X${COLLECT_NAMES+set}" != Xset; then 7973 COLLECT_NAMES= 7974 export COLLECT_NAMES 7975 fi 7976 ;; 7977esac 7978 7979# Global variables: 7980ofile=libtool 7981can_build_shared=yes 7982 7983# All known linkers require a `.a' archive for static linking (except MSVC, 7984# which needs '.lib'). 7985libext=a 7986 7987with_gnu_ld="$lt_cv_prog_gnu_ld" 7988 7989old_CC="$CC" 7990old_CFLAGS="$CFLAGS" 7991 7992# Set sane defaults for various variables 7993test -z "$CC" && CC=cc 7994test -z "$LTCC" && LTCC=$CC 7995test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7996test -z "$LD" && LD=ld 7997test -z "$ac_objext" && ac_objext=o 7998 7999for cc_temp in $compiler""; do 8000 case $cc_temp in 8001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8003 \-*) ;; 8004 *) break;; 8005 esac 8006done 8007cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8008 8009 8010# Only perform the check for file, if the check method requires it 8011test -z "$MAGIC_CMD" && MAGIC_CMD=file 8012case $deplibs_check_method in 8013file_magic*) 8014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8016$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8017if ${lt_cv_path_MAGIC_CMD+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 case $MAGIC_CMD in 8021[\\/*] | ?:[\\/]*) 8022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8023 ;; 8024*) 8025 lt_save_MAGIC_CMD="$MAGIC_CMD" 8026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8028 for ac_dir in $ac_dummy; do 8029 IFS="$lt_save_ifs" 8030 test -z "$ac_dir" && ac_dir=. 8031 if test -f $ac_dir/${ac_tool_prefix}file; then 8032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8033 if test -n "$file_magic_test_file"; then 8034 case $deplibs_check_method in 8035 "file_magic "*) 8036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8039 $EGREP "$file_magic_regex" > /dev/null; then 8040 : 8041 else 8042 cat <<_LT_EOF 1>&2 8043 8044*** Warning: the command libtool uses to detect shared libraries, 8045*** $file_magic_cmd, produces output that libtool cannot recognize. 8046*** The result is that libtool may fail to recognize shared libraries 8047*** as such. This will affect the creation of libtool libraries that 8048*** depend on shared libraries, but programs linked with such libtool 8049*** libraries will work regardless of this problem. Nevertheless, you 8050*** may want to report the problem to your system manager and/or to 8051*** bug-libtool@gnu.org 8052 8053_LT_EOF 8054 fi ;; 8055 esac 8056 fi 8057 break 8058 fi 8059 done 8060 IFS="$lt_save_ifs" 8061 MAGIC_CMD="$lt_save_MAGIC_CMD" 8062 ;; 8063esac 8064fi 8065 8066MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8067if test -n "$MAGIC_CMD"; then 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8069$as_echo "$MAGIC_CMD" >&6; } 8070else 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8072$as_echo "no" >&6; } 8073fi 8074 8075 8076 8077 8078 8079if test -z "$lt_cv_path_MAGIC_CMD"; then 8080 if test -n "$ac_tool_prefix"; then 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8082$as_echo_n "checking for file... " >&6; } 8083if ${lt_cv_path_MAGIC_CMD+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 case $MAGIC_CMD in 8087[\\/*] | ?:[\\/]*) 8088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8089 ;; 8090*) 8091 lt_save_MAGIC_CMD="$MAGIC_CMD" 8092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8094 for ac_dir in $ac_dummy; do 8095 IFS="$lt_save_ifs" 8096 test -z "$ac_dir" && ac_dir=. 8097 if test -f $ac_dir/file; then 8098 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8099 if test -n "$file_magic_test_file"; then 8100 case $deplibs_check_method in 8101 "file_magic "*) 8102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8105 $EGREP "$file_magic_regex" > /dev/null; then 8106 : 8107 else 8108 cat <<_LT_EOF 1>&2 8109 8110*** Warning: the command libtool uses to detect shared libraries, 8111*** $file_magic_cmd, produces output that libtool cannot recognize. 8112*** The result is that libtool may fail to recognize shared libraries 8113*** as such. This will affect the creation of libtool libraries that 8114*** depend on shared libraries, but programs linked with such libtool 8115*** libraries will work regardless of this problem. Nevertheless, you 8116*** may want to report the problem to your system manager and/or to 8117*** bug-libtool@gnu.org 8118 8119_LT_EOF 8120 fi ;; 8121 esac 8122 fi 8123 break 8124 fi 8125 done 8126 IFS="$lt_save_ifs" 8127 MAGIC_CMD="$lt_save_MAGIC_CMD" 8128 ;; 8129esac 8130fi 8131 8132MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8133if test -n "$MAGIC_CMD"; then 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8135$as_echo "$MAGIC_CMD" >&6; } 8136else 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138$as_echo "no" >&6; } 8139fi 8140 8141 8142 else 8143 MAGIC_CMD=: 8144 fi 8145fi 8146 8147 fi 8148 ;; 8149esac 8150 8151# Use C for the default configuration in the libtool script 8152 8153lt_save_CC="$CC" 8154ac_ext=c 8155ac_cpp='$CPP $CPPFLAGS' 8156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8158ac_compiler_gnu=$ac_cv_c_compiler_gnu 8159 8160 8161# Source file extension for C test sources. 8162ac_ext=c 8163 8164# Object file extension for compiled C test sources. 8165objext=o 8166objext=$objext 8167 8168# Code to be used in simple compile tests 8169lt_simple_compile_test_code="int some_variable = 0;" 8170 8171# Code to be used in simple link tests 8172lt_simple_link_test_code='int main(){return(0);}' 8173 8174 8175 8176 8177 8178 8179 8180# If no C compiler was specified, use CC. 8181LTCC=${LTCC-"$CC"} 8182 8183# If no C compiler flags were specified, use CFLAGS. 8184LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8185 8186# Allow CC to be a program name with arguments. 8187compiler=$CC 8188 8189# Save the default compiler, since it gets overwritten when the other 8190# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8191compiler_DEFAULT=$CC 8192 8193# save warnings/boilerplate of simple test code 8194ac_outfile=conftest.$ac_objext 8195echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8197_lt_compiler_boilerplate=`cat conftest.err` 8198$RM conftest* 8199 8200ac_outfile=conftest.$ac_objext 8201echo "$lt_simple_link_test_code" >conftest.$ac_ext 8202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8203_lt_linker_boilerplate=`cat conftest.err` 8204$RM -r conftest* 8205 8206 8207## CAVEAT EMPTOR: 8208## There is no encapsulation within the following macros, do not change 8209## the running order or otherwise move them around unless you know exactly 8210## what you are doing... 8211if test -n "$compiler"; then 8212 8213lt_prog_compiler_no_builtin_flag= 8214 8215if test "$GCC" = yes; then 8216 case $cc_basename in 8217 nvcc*) 8218 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8219 *) 8220 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8221 esac 8222 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8224$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8225if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 lt_cv_prog_compiler_rtti_exceptions=no 8229 ac_outfile=conftest.$ac_objext 8230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8231 lt_compiler_flag="-fno-rtti -fno-exceptions" 8232 # Insert the option either (1) after the last *FLAGS variable, or 8233 # (2) before a word containing "conftest.", or (3) at the end. 8234 # Note that $ac_compile itself does not contain backslashes and begins 8235 # with a dollar sign (not a hyphen), so the echo should work correctly. 8236 # The option is referenced via a variable to avoid confusing sed. 8237 lt_compile=`echo "$ac_compile" | $SED \ 8238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8240 -e 's:$: $lt_compiler_flag:'` 8241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8242 (eval "$lt_compile" 2>conftest.err) 8243 ac_status=$? 8244 cat conftest.err >&5 8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8246 if (exit $ac_status) && test -s "$ac_outfile"; then 8247 # The compiler can only warn and ignore the option if not recognized 8248 # So say no if there are warnings other than the usual output. 8249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8252 lt_cv_prog_compiler_rtti_exceptions=yes 8253 fi 8254 fi 8255 $RM conftest* 8256 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8259$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8260 8261if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8262 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8263else 8264 : 8265fi 8266 8267fi 8268 8269 8270 8271 8272 8273 8274 lt_prog_compiler_wl= 8275lt_prog_compiler_pic= 8276lt_prog_compiler_static= 8277 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8279$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8280 8281 if test "$GCC" = yes; then 8282 lt_prog_compiler_wl='-Wl,' 8283 lt_prog_compiler_static='-static' 8284 8285 case $host_os in 8286 aix*) 8287 # All AIX code is PIC. 8288 if test "$host_cpu" = ia64; then 8289 # AIX 5 now supports IA64 processor 8290 lt_prog_compiler_static='-Bstatic' 8291 fi 8292 lt_prog_compiler_pic='-fPIC' 8293 ;; 8294 8295 amigaos*) 8296 case $host_cpu in 8297 powerpc) 8298 # see comment about AmigaOS4 .so support 8299 lt_prog_compiler_pic='-fPIC' 8300 ;; 8301 m68k) 8302 # FIXME: we need at least 68020 code to build shared libraries, but 8303 # adding the `-m68020' flag to GCC prevents building anything better, 8304 # like `-m68040'. 8305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8306 ;; 8307 esac 8308 ;; 8309 8310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8311 # PIC is the default for these OSes. 8312 ;; 8313 8314 mingw* | cygwin* | pw32* | os2* | cegcc*) 8315 # This hack is so that the source file can tell whether it is being 8316 # built for inclusion in a dll (and should export symbols for example). 8317 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8318 # (--disable-auto-import) libraries 8319 lt_prog_compiler_pic='-DDLL_EXPORT' 8320 ;; 8321 8322 darwin* | rhapsody*) 8323 # PIC is the default on this platform 8324 # Common symbols not allowed in MH_DYLIB files 8325 lt_prog_compiler_pic='-fno-common' 8326 ;; 8327 8328 haiku*) 8329 # PIC is the default for Haiku. 8330 # The "-static" flag exists, but is broken. 8331 lt_prog_compiler_static= 8332 ;; 8333 8334 hpux*) 8335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8337 # sets the default TLS model and affects inlining. 8338 case $host_cpu in 8339 hppa*64*) 8340 # +Z the default 8341 ;; 8342 *) 8343 lt_prog_compiler_pic='-fPIC' 8344 ;; 8345 esac 8346 ;; 8347 8348 interix[3-9]*) 8349 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8350 # Instead, we relocate shared libraries at runtime. 8351 ;; 8352 8353 msdosdjgpp*) 8354 # Just because we use GCC doesn't mean we suddenly get shared libraries 8355 # on systems that don't support them. 8356 lt_prog_compiler_can_build_shared=no 8357 enable_shared=no 8358 ;; 8359 8360 *nto* | *qnx*) 8361 # QNX uses GNU C++, but need to define -shared option too, otherwise 8362 # it will coredump. 8363 lt_prog_compiler_pic='-fPIC -shared' 8364 ;; 8365 8366 sysv4*MP*) 8367 if test -d /usr/nec; then 8368 lt_prog_compiler_pic=-Kconform_pic 8369 fi 8370 ;; 8371 8372 *) 8373 lt_prog_compiler_pic='-fPIC' 8374 ;; 8375 esac 8376 8377 case $cc_basename in 8378 nvcc*) # Cuda Compiler Driver 2.2 8379 lt_prog_compiler_wl='-Xlinker ' 8380 lt_prog_compiler_pic='-Xcompiler -fPIC' 8381 ;; 8382 esac 8383 else 8384 # PORTME Check for flag to pass linker flags through the system compiler. 8385 case $host_os in 8386 aix*) 8387 lt_prog_compiler_wl='-Wl,' 8388 if test "$host_cpu" = ia64; then 8389 # AIX 5 now supports IA64 processor 8390 lt_prog_compiler_static='-Bstatic' 8391 else 8392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8393 fi 8394 ;; 8395 8396 mingw* | cygwin* | pw32* | os2* | cegcc*) 8397 # This hack is so that the source file can tell whether it is being 8398 # built for inclusion in a dll (and should export symbols for example). 8399 lt_prog_compiler_pic='-DDLL_EXPORT' 8400 ;; 8401 8402 hpux9* | hpux10* | hpux11*) 8403 lt_prog_compiler_wl='-Wl,' 8404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8405 # not for PA HP-UX. 8406 case $host_cpu in 8407 hppa*64*|ia64*) 8408 # +Z the default 8409 ;; 8410 *) 8411 lt_prog_compiler_pic='+Z' 8412 ;; 8413 esac 8414 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8415 lt_prog_compiler_static='${wl}-a ${wl}archive' 8416 ;; 8417 8418 irix5* | irix6* | nonstopux*) 8419 lt_prog_compiler_wl='-Wl,' 8420 # PIC (with -KPIC) is the default. 8421 lt_prog_compiler_static='-non_shared' 8422 ;; 8423 8424 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8425 case $cc_basename in 8426 # old Intel for x86_64 which still supported -KPIC. 8427 ecc*) 8428 lt_prog_compiler_wl='-Wl,' 8429 lt_prog_compiler_pic='-KPIC' 8430 lt_prog_compiler_static='-static' 8431 ;; 8432 # icc used to be incompatible with GCC. 8433 # ICC 10 doesn't accept -KPIC any more. 8434 icc* | ifort*) 8435 lt_prog_compiler_wl='-Wl,' 8436 lt_prog_compiler_pic='-fPIC' 8437 lt_prog_compiler_static='-static' 8438 ;; 8439 # Lahey Fortran 8.1. 8440 lf95*) 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='--shared' 8443 lt_prog_compiler_static='--static' 8444 ;; 8445 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8446 # Portland Group compilers (*not* the Pentium gcc compiler, 8447 # which looks to be a dead project) 8448 lt_prog_compiler_wl='-Wl,' 8449 lt_prog_compiler_pic='-fpic' 8450 lt_prog_compiler_static='-Bstatic' 8451 ;; 8452 ccc*) 8453 lt_prog_compiler_wl='-Wl,' 8454 # All Alpha code is PIC. 8455 lt_prog_compiler_static='-non_shared' 8456 ;; 8457 xl* | bgxl* | bgf* | mpixl*) 8458 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-qpic' 8461 lt_prog_compiler_static='-qstaticlink' 8462 ;; 8463 *) 8464 case `$CC -V 2>&1 | sed 5q` in 8465 *Sun\ F* | *Sun*Fortran*) 8466 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8467 lt_prog_compiler_pic='-KPIC' 8468 lt_prog_compiler_static='-Bstatic' 8469 lt_prog_compiler_wl='' 8470 ;; 8471 *Sun\ C*) 8472 # Sun C 5.9 8473 lt_prog_compiler_pic='-KPIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 lt_prog_compiler_wl='-Wl,' 8476 ;; 8477 esac 8478 ;; 8479 esac 8480 ;; 8481 8482 newsos6) 8483 lt_prog_compiler_pic='-KPIC' 8484 lt_prog_compiler_static='-Bstatic' 8485 ;; 8486 8487 *nto* | *qnx*) 8488 # QNX uses GNU C++, but need to define -shared option too, otherwise 8489 # it will coredump. 8490 lt_prog_compiler_pic='-fPIC -shared' 8491 ;; 8492 8493 osf3* | osf4* | osf5*) 8494 lt_prog_compiler_wl='-Wl,' 8495 # All OSF/1 code is PIC. 8496 lt_prog_compiler_static='-non_shared' 8497 ;; 8498 8499 rdos*) 8500 lt_prog_compiler_static='-non_shared' 8501 ;; 8502 8503 solaris*) 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 case $cc_basename in 8507 f77* | f90* | f95*) 8508 lt_prog_compiler_wl='-Qoption ld ';; 8509 *) 8510 lt_prog_compiler_wl='-Wl,';; 8511 esac 8512 ;; 8513 8514 sunos4*) 8515 lt_prog_compiler_wl='-Qoption ld ' 8516 lt_prog_compiler_pic='-PIC' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 8520 sysv4 | sysv4.2uw2* | sysv4.3*) 8521 lt_prog_compiler_wl='-Wl,' 8522 lt_prog_compiler_pic='-KPIC' 8523 lt_prog_compiler_static='-Bstatic' 8524 ;; 8525 8526 sysv4*MP*) 8527 if test -d /usr/nec ;then 8528 lt_prog_compiler_pic='-Kconform_pic' 8529 lt_prog_compiler_static='-Bstatic' 8530 fi 8531 ;; 8532 8533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8534 lt_prog_compiler_wl='-Wl,' 8535 lt_prog_compiler_pic='-KPIC' 8536 lt_prog_compiler_static='-Bstatic' 8537 ;; 8538 8539 unicos*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_can_build_shared=no 8542 ;; 8543 8544 uts4*) 8545 lt_prog_compiler_pic='-pic' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 8549 *) 8550 lt_prog_compiler_can_build_shared=no 8551 ;; 8552 esac 8553 fi 8554 8555case $host_os in 8556 # For platforms which do not support PIC, -DPIC is meaningless: 8557 *djgpp*) 8558 lt_prog_compiler_pic= 8559 ;; 8560 *) 8561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8562 ;; 8563esac 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8565$as_echo "$lt_prog_compiler_pic" >&6; } 8566 8567 8568 8569 8570 8571 8572# 8573# Check to make sure the PIC flag actually works. 8574# 8575if test -n "$lt_prog_compiler_pic"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8577$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8578if ${lt_cv_prog_compiler_pic_works+:} false; then : 8579 $as_echo_n "(cached) " >&6 8580else 8581 lt_cv_prog_compiler_pic_works=no 8582 ac_outfile=conftest.$ac_objext 8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8585 # Insert the option either (1) after the last *FLAGS variable, or 8586 # (2) before a word containing "conftest.", or (3) at the end. 8587 # Note that $ac_compile itself does not contain backslashes and begins 8588 # with a dollar sign (not a hyphen), so the echo should work correctly. 8589 # The option is referenced via a variable to avoid confusing sed. 8590 lt_compile=`echo "$ac_compile" | $SED \ 8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8593 -e 's:$: $lt_compiler_flag:'` 8594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8595 (eval "$lt_compile" 2>conftest.err) 8596 ac_status=$? 8597 cat conftest.err >&5 8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8599 if (exit $ac_status) && test -s "$ac_outfile"; then 8600 # The compiler can only warn and ignore the option if not recognized 8601 # So say no if there are warnings other than the usual output. 8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8605 lt_cv_prog_compiler_pic_works=yes 8606 fi 8607 fi 8608 $RM conftest* 8609 8610fi 8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8612$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8613 8614if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8615 case $lt_prog_compiler_pic in 8616 "" | " "*) ;; 8617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8618 esac 8619else 8620 lt_prog_compiler_pic= 8621 lt_prog_compiler_can_build_shared=no 8622fi 8623 8624fi 8625 8626 8627 8628 8629 8630 8631# 8632# Check to make sure the static flag actually works. 8633# 8634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8636$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8637if ${lt_cv_prog_compiler_static_works+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 lt_cv_prog_compiler_static_works=no 8641 save_LDFLAGS="$LDFLAGS" 8642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8643 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8645 # The linker can only warn and ignore the option if not recognized 8646 # So say no if there are warnings 8647 if test -s conftest.err; then 8648 # Append any errors to the config.log. 8649 cat conftest.err 1>&5 8650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8652 if diff conftest.exp conftest.er2 >/dev/null; then 8653 lt_cv_prog_compiler_static_works=yes 8654 fi 8655 else 8656 lt_cv_prog_compiler_static_works=yes 8657 fi 8658 fi 8659 $RM -r conftest* 8660 LDFLAGS="$save_LDFLAGS" 8661 8662fi 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8664$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8665 8666if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8667 : 8668else 8669 lt_prog_compiler_static= 8670fi 8671 8672 8673 8674 8675 8676 8677 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8680if ${lt_cv_prog_compiler_c_o+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682else 8683 lt_cv_prog_compiler_c_o=no 8684 $RM -r conftest 2>/dev/null 8685 mkdir conftest 8686 cd conftest 8687 mkdir out 8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8689 8690 lt_compiler_flag="-o out/conftest2.$ac_objext" 8691 # Insert the option either (1) after the last *FLAGS variable, or 8692 # (2) before a word containing "conftest.", or (3) at the end. 8693 # Note that $ac_compile itself does not contain backslashes and begins 8694 # with a dollar sign (not a hyphen), so the echo should work correctly. 8695 lt_compile=`echo "$ac_compile" | $SED \ 8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8698 -e 's:$: $lt_compiler_flag:'` 8699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8700 (eval "$lt_compile" 2>out/conftest.err) 8701 ac_status=$? 8702 cat out/conftest.err >&5 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8705 then 8706 # The compiler can only warn and ignore the option if not recognized 8707 # So say no if there are warnings 8708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8711 lt_cv_prog_compiler_c_o=yes 8712 fi 8713 fi 8714 chmod u+w . 2>&5 8715 $RM conftest* 8716 # SGI C++ compiler will create directory out/ii_files/ for 8717 # template instantiation 8718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8719 $RM out/* && rmdir out 8720 cd .. 8721 $RM -r conftest 8722 $RM conftest* 8723 8724fi 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8726$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8727 8728 8729 8730 8731 8732 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8735if ${lt_cv_prog_compiler_c_o+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 lt_cv_prog_compiler_c_o=no 8739 $RM -r conftest 2>/dev/null 8740 mkdir conftest 8741 cd conftest 8742 mkdir out 8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8744 8745 lt_compiler_flag="-o out/conftest2.$ac_objext" 8746 # Insert the option either (1) after the last *FLAGS variable, or 8747 # (2) before a word containing "conftest.", or (3) at the end. 8748 # Note that $ac_compile itself does not contain backslashes and begins 8749 # with a dollar sign (not a hyphen), so the echo should work correctly. 8750 lt_compile=`echo "$ac_compile" | $SED \ 8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8753 -e 's:$: $lt_compiler_flag:'` 8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8755 (eval "$lt_compile" 2>out/conftest.err) 8756 ac_status=$? 8757 cat out/conftest.err >&5 8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8760 then 8761 # The compiler can only warn and ignore the option if not recognized 8762 # So say no if there are warnings 8763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8766 lt_cv_prog_compiler_c_o=yes 8767 fi 8768 fi 8769 chmod u+w . 2>&5 8770 $RM conftest* 8771 # SGI C++ compiler will create directory out/ii_files/ for 8772 # template instantiation 8773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8774 $RM out/* && rmdir out 8775 cd .. 8776 $RM -r conftest 8777 $RM conftest* 8778 8779fi 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8781$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8782 8783 8784 8785 8786hard_links="nottested" 8787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8788 # do not overwrite the value of need_locks provided by the user 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8790$as_echo_n "checking if we can lock with hard links... " >&6; } 8791 hard_links=yes 8792 $RM conftest* 8793 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8794 touch conftest.a 8795 ln conftest.a conftest.b 2>&5 || hard_links=no 8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8798$as_echo "$hard_links" >&6; } 8799 if test "$hard_links" = no; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8801$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8802 need_locks=warn 8803 fi 8804else 8805 need_locks=no 8806fi 8807 8808 8809 8810 8811 8812 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8815 8816 runpath_var= 8817 allow_undefined_flag= 8818 always_export_symbols=no 8819 archive_cmds= 8820 archive_expsym_cmds= 8821 compiler_needs_object=no 8822 enable_shared_with_static_runtimes=no 8823 export_dynamic_flag_spec= 8824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8825 hardcode_automatic=no 8826 hardcode_direct=no 8827 hardcode_direct_absolute=no 8828 hardcode_libdir_flag_spec= 8829 hardcode_libdir_flag_spec_ld= 8830 hardcode_libdir_separator= 8831 hardcode_minus_L=no 8832 hardcode_shlibpath_var=unsupported 8833 inherit_rpath=no 8834 link_all_deplibs=unknown 8835 module_cmds= 8836 module_expsym_cmds= 8837 old_archive_from_new_cmds= 8838 old_archive_from_expsyms_cmds= 8839 thread_safe_flag_spec= 8840 whole_archive_flag_spec= 8841 # include_expsyms should be a list of space-separated symbols to be *always* 8842 # included in the symbol list 8843 include_expsyms= 8844 # exclude_expsyms can be an extended regexp of symbols to exclude 8845 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8847 # as well as any symbol that contains `d'. 8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8850 # platforms (ab)use it in PIC code, but their linkers get confused if 8851 # the symbol is explicitly referenced. Since portable code cannot 8852 # rely on this symbol name, it's probably fine to never include it in 8853 # preloaded symbol tables. 8854 # Exclude shared library initialization/finalization symbols. 8855 extract_expsyms_cmds= 8856 8857 case $host_os in 8858 cygwin* | mingw* | pw32* | cegcc*) 8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8860 # When not using gcc, we currently assume that we are using 8861 # Microsoft Visual C++. 8862 if test "$GCC" != yes; then 8863 with_gnu_ld=no 8864 fi 8865 ;; 8866 interix*) 8867 # we just hope/assume this is gcc and not c89 (= MSVC++) 8868 with_gnu_ld=yes 8869 ;; 8870 openbsd*) 8871 with_gnu_ld=no 8872 ;; 8873 esac 8874 8875 ld_shlibs=yes 8876 8877 # On some targets, GNU ld is compatible enough with the native linker 8878 # that we're better off using the native interface for both. 8879 lt_use_gnu_ld_interface=no 8880 if test "$with_gnu_ld" = yes; then 8881 case $host_os in 8882 aix*) 8883 # The AIX port of GNU ld has always aspired to compatibility 8884 # with the native linker. However, as the warning in the GNU ld 8885 # block says, versions before 2.19.5* couldn't really create working 8886 # shared libraries, regardless of the interface used. 8887 case `$LD -v 2>&1` in 8888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8890 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8891 *) 8892 lt_use_gnu_ld_interface=yes 8893 ;; 8894 esac 8895 ;; 8896 *) 8897 lt_use_gnu_ld_interface=yes 8898 ;; 8899 esac 8900 fi 8901 8902 if test "$lt_use_gnu_ld_interface" = yes; then 8903 # If archive_cmds runs LD, not CC, wlarc should be empty 8904 wlarc='${wl}' 8905 8906 # Set some defaults for GNU ld with shared library support. These 8907 # are reset later if shared libraries are not supported. Putting them 8908 # here allows them to be overridden if necessary. 8909 runpath_var=LD_RUN_PATH 8910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8911 export_dynamic_flag_spec='${wl}--export-dynamic' 8912 # ancient GNU ld didn't support --whole-archive et. al. 8913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8915 else 8916 whole_archive_flag_spec= 8917 fi 8918 supports_anon_versioning=no 8919 case `$LD -v 2>&1` in 8920 *GNU\ gold*) supports_anon_versioning=yes ;; 8921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8924 *\ 2.11.*) ;; # other 2.11 versions 8925 *) supports_anon_versioning=yes ;; 8926 esac 8927 8928 # See if GNU ld supports shared libraries. 8929 case $host_os in 8930 aix[3-9]*) 8931 # On AIX/PPC, the GNU linker is very broken 8932 if test "$host_cpu" != ia64; then 8933 ld_shlibs=no 8934 cat <<_LT_EOF 1>&2 8935 8936*** Warning: the GNU linker, at least up to release 2.19, is reported 8937*** to be unable to reliably create shared libraries on AIX. 8938*** Therefore, libtool is disabling shared libraries support. If you 8939*** really care for shared libraries, you may want to install binutils 8940*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8941*** You will then need to restart the configuration process. 8942 8943_LT_EOF 8944 fi 8945 ;; 8946 8947 amigaos*) 8948 case $host_cpu in 8949 powerpc) 8950 # see comment about AmigaOS4 .so support 8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8952 archive_expsym_cmds='' 8953 ;; 8954 m68k) 8955 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)' 8956 hardcode_libdir_flag_spec='-L$libdir' 8957 hardcode_minus_L=yes 8958 ;; 8959 esac 8960 ;; 8961 8962 beos*) 8963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8964 allow_undefined_flag=unsupported 8965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8966 # support --undefined. This deserves some investigation. FIXME 8967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8968 else 8969 ld_shlibs=no 8970 fi 8971 ;; 8972 8973 cygwin* | mingw* | pw32* | cegcc*) 8974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8975 # as there is no search path for DLLs. 8976 hardcode_libdir_flag_spec='-L$libdir' 8977 export_dynamic_flag_spec='${wl}--export-all-symbols' 8978 allow_undefined_flag=unsupported 8979 always_export_symbols=no 8980 enable_shared_with_static_runtimes=yes 8981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8982 8983 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8985 # If the export-symbols file already is a .def file (1st line 8986 # is EXPORTS), use it as is; otherwise, prepend... 8987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8988 cp $export_symbols $output_objdir/$soname.def; 8989 else 8990 echo EXPORTS > $output_objdir/$soname.def; 8991 cat $export_symbols >> $output_objdir/$soname.def; 8992 fi~ 8993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8994 else 8995 ld_shlibs=no 8996 fi 8997 ;; 8998 8999 haiku*) 9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9001 link_all_deplibs=yes 9002 ;; 9003 9004 interix[3-9]*) 9005 hardcode_direct=no 9006 hardcode_shlibpath_var=no 9007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9008 export_dynamic_flag_spec='${wl}-E' 9009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9010 # Instead, shared libraries are loaded at an image base (0x10000000 by 9011 # default) and relocated if they conflict, which is a slow very memory 9012 # consuming and fragmenting process. To avoid this, we pick a random, 9013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9014 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9016 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' 9017 ;; 9018 9019 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 9020 tmp_diet=no 9021 if test "$host_os" = linux-dietlibc; then 9022 case $cc_basename in 9023 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9024 esac 9025 fi 9026 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9027 && test "$tmp_diet" = no 9028 then 9029 tmp_addflag=' $pic_flag' 9030 tmp_sharedflag='-shared' 9031 case $cc_basename,$host_cpu in 9032 pgcc*) # Portland Group C compiler 9033 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' 9034 tmp_addflag=' $pic_flag' 9035 ;; 9036 pgf77* | pgf90* | pgf95* | pgfortran*) 9037 # Portland Group f77 and f90 compilers 9038 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' 9039 tmp_addflag=' $pic_flag -Mnomain' ;; 9040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9041 tmp_addflag=' -i_dynamic' ;; 9042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9043 tmp_addflag=' -i_dynamic -nofor_main' ;; 9044 ifc* | ifort*) # Intel Fortran compiler 9045 tmp_addflag=' -nofor_main' ;; 9046 lf95*) # Lahey Fortran 8.1 9047 whole_archive_flag_spec= 9048 tmp_sharedflag='--shared' ;; 9049 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9050 tmp_sharedflag='-qmkshrobj' 9051 tmp_addflag= ;; 9052 nvcc*) # Cuda Compiler Driver 2.2 9053 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' 9054 compiler_needs_object=yes 9055 ;; 9056 esac 9057 case `$CC -V 2>&1 | sed 5q` in 9058 *Sun\ C*) # Sun C 5.9 9059 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' 9060 compiler_needs_object=yes 9061 tmp_sharedflag='-G' ;; 9062 *Sun\ F*) # Sun Fortran 8.3 9063 tmp_sharedflag='-G' ;; 9064 esac 9065 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9066 9067 if test "x$supports_anon_versioning" = xyes; then 9068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9070 echo "local: *; };" >> $output_objdir/$libname.ver~ 9071 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9072 fi 9073 9074 case $cc_basename in 9075 xlf* | bgf* | bgxlf* | mpixlf*) 9076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9077 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9078 hardcode_libdir_flag_spec= 9079 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9080 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9081 if test "x$supports_anon_versioning" = xyes; then 9082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9084 echo "local: *; };" >> $output_objdir/$libname.ver~ 9085 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9086 fi 9087 ;; 9088 esac 9089 else 9090 ld_shlibs=no 9091 fi 9092 ;; 9093 9094 netbsd*) 9095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9096 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9097 wlarc= 9098 else 9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9101 fi 9102 ;; 9103 9104 solaris*) 9105 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9106 ld_shlibs=no 9107 cat <<_LT_EOF 1>&2 9108 9109*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9110*** create shared libraries on Solaris systems. Therefore, libtool 9111*** is disabling shared libraries support. We urge you to upgrade GNU 9112*** binutils to release 2.9.1 or newer. Another option is to modify 9113*** your PATH or compiler configuration so that the native linker is 9114*** used, and then restart. 9115 9116_LT_EOF 9117 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9120 else 9121 ld_shlibs=no 9122 fi 9123 ;; 9124 9125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9126 case `$LD -v 2>&1` in 9127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9128 ld_shlibs=no 9129 cat <<_LT_EOF 1>&2 9130 9131*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9132*** reliably create shared libraries on SCO systems. Therefore, libtool 9133*** is disabling shared libraries support. We urge you to upgrade GNU 9134*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9135*** your PATH or compiler configuration so that the native linker is 9136*** used, and then restart. 9137 9138_LT_EOF 9139 ;; 9140 *) 9141 # For security reasons, it is highly recommended that you always 9142 # use absolute paths for naming shared libraries, and exclude the 9143 # DT_RUNPATH tag from executables and libraries. But doing so 9144 # requires that you compile everything twice, which is a pain. 9145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9149 else 9150 ld_shlibs=no 9151 fi 9152 ;; 9153 esac 9154 ;; 9155 9156 sunos4*) 9157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9158 wlarc= 9159 hardcode_direct=yes 9160 hardcode_shlibpath_var=no 9161 ;; 9162 9163 *) 9164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9167 else 9168 ld_shlibs=no 9169 fi 9170 ;; 9171 esac 9172 9173 if test "$ld_shlibs" = no; then 9174 runpath_var= 9175 hardcode_libdir_flag_spec= 9176 export_dynamic_flag_spec= 9177 whole_archive_flag_spec= 9178 fi 9179 else 9180 # PORTME fill in a description of your system's linker (not GNU ld) 9181 case $host_os in 9182 aix3*) 9183 allow_undefined_flag=unsupported 9184 always_export_symbols=yes 9185 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' 9186 # Note: this linker hardcodes the directories in LIBPATH if there 9187 # are no directories specified by -L. 9188 hardcode_minus_L=yes 9189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9190 # Neither direct hardcoding nor static linking is supported with a 9191 # broken collect2. 9192 hardcode_direct=unsupported 9193 fi 9194 ;; 9195 9196 aix[4-9]*) 9197 if test "$host_cpu" = ia64; then 9198 # On IA64, the linker does run time linking by default, so we don't 9199 # have to do anything special. 9200 aix_use_runtimelinking=no 9201 exp_sym_flag='-Bexport' 9202 no_entry_flag="" 9203 else 9204 # If we're using GNU nm, then we don't want the "-C" option. 9205 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9206 # Also, AIX nm treats weak defined symbols like other global 9207 # defined symbols, whereas GNU nm marks them as "W". 9208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9209 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' 9210 else 9211 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' 9212 fi 9213 aix_use_runtimelinking=no 9214 9215 # Test if we are trying to use run time linking or normal 9216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9217 # need to do runtime linking. 9218 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9219 for ld_flag in $LDFLAGS; do 9220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9221 aix_use_runtimelinking=yes 9222 break 9223 fi 9224 done 9225 ;; 9226 esac 9227 9228 exp_sym_flag='-bexport' 9229 no_entry_flag='-bnoentry' 9230 fi 9231 9232 # When large executables or shared objects are built, AIX ld can 9233 # have problems creating the table of contents. If linking a library 9234 # or program results in "error TOC overflow" add -mminimal-toc to 9235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9237 9238 archive_cmds='' 9239 hardcode_direct=yes 9240 hardcode_direct_absolute=yes 9241 hardcode_libdir_separator=':' 9242 link_all_deplibs=yes 9243 file_list_spec='${wl}-f,' 9244 9245 if test "$GCC" = yes; then 9246 case $host_os in aix4.[012]|aix4.[012].*) 9247 # We only want to do this on AIX 4.2 and lower, the check 9248 # below for broken collect2 doesn't work under 4.3+ 9249 collect2name=`${CC} -print-prog-name=collect2` 9250 if test -f "$collect2name" && 9251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9252 then 9253 # We have reworked collect2 9254 : 9255 else 9256 # We have old collect2 9257 hardcode_direct=unsupported 9258 # It fails to find uninstalled libraries when the uninstalled 9259 # path is not listed in the libpath. Setting hardcode_minus_L 9260 # to unsupported forces relinking 9261 hardcode_minus_L=yes 9262 hardcode_libdir_flag_spec='-L$libdir' 9263 hardcode_libdir_separator= 9264 fi 9265 ;; 9266 esac 9267 shared_flag='-shared' 9268 if test "$aix_use_runtimelinking" = yes; then 9269 shared_flag="$shared_flag "'${wl}-G' 9270 fi 9271 else 9272 # not using gcc 9273 if test "$host_cpu" = ia64; then 9274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9275 # chokes on -Wl,-G. The following line is correct: 9276 shared_flag='-G' 9277 else 9278 if test "$aix_use_runtimelinking" = yes; then 9279 shared_flag='${wl}-G' 9280 else 9281 shared_flag='${wl}-bM:SRE' 9282 fi 9283 fi 9284 fi 9285 9286 export_dynamic_flag_spec='${wl}-bexpall' 9287 # It seems that -bexpall does not export symbols beginning with 9288 # underscore (_), so it is better to generate a list of symbols to export. 9289 always_export_symbols=yes 9290 if test "$aix_use_runtimelinking" = yes; then 9291 # Warning - without using the other runtime loading flags (-brtl), 9292 # -berok will link without error, but may produce a broken library. 9293 allow_undefined_flag='-berok' 9294 # Determine the default libpath from the value encoded in an 9295 # empty executable. 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298 9299int 9300main () 9301{ 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307if ac_fn_c_try_link "$LINENO"; then : 9308 9309lt_aix_libpath_sed=' 9310 /Import File Strings/,/^$/ { 9311 /^0/ { 9312 s/^0 *\(.*\)$/\1/ 9313 p 9314 } 9315 }' 9316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9317# Check for a 64-bit object if we didn't find anything. 9318if test -z "$aix_libpath"; then 9319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9320fi 9321fi 9322rm -f core conftest.err conftest.$ac_objext \ 9323 conftest$ac_exeext conftest.$ac_ext 9324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9325 9326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9327 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" 9328 else 9329 if test "$host_cpu" = ia64; then 9330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9331 allow_undefined_flag="-z nodefs" 9332 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" 9333 else 9334 # Determine the default libpath from the value encoded in an 9335 # empty executable. 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338 9339int 9340main () 9341{ 9342 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347if ac_fn_c_try_link "$LINENO"; then : 9348 9349lt_aix_libpath_sed=' 9350 /Import File Strings/,/^$/ { 9351 /^0/ { 9352 s/^0 *\(.*\)$/\1/ 9353 p 9354 } 9355 }' 9356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9357# Check for a 64-bit object if we didn't find anything. 9358if test -z "$aix_libpath"; then 9359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9360fi 9361fi 9362rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9365 9366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9367 # Warning - without using the other run time loading flags, 9368 # -berok will link without error, but may produce a broken library. 9369 no_undefined_flag=' ${wl}-bernotok' 9370 allow_undefined_flag=' ${wl}-berok' 9371 if test "$with_gnu_ld" = yes; then 9372 # We only use this code for GNU lds that support --whole-archive. 9373 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9374 else 9375 # Exported symbols can be pulled into shared objects from archives 9376 whole_archive_flag_spec='$convenience' 9377 fi 9378 archive_cmds_need_lc=yes 9379 # This is similar to how AIX traditionally builds its shared libraries. 9380 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' 9381 fi 9382 fi 9383 ;; 9384 9385 amigaos*) 9386 case $host_cpu in 9387 powerpc) 9388 # see comment about AmigaOS4 .so support 9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9390 archive_expsym_cmds='' 9391 ;; 9392 m68k) 9393 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)' 9394 hardcode_libdir_flag_spec='-L$libdir' 9395 hardcode_minus_L=yes 9396 ;; 9397 esac 9398 ;; 9399 9400 bsdi[45]*) 9401 export_dynamic_flag_spec=-rdynamic 9402 ;; 9403 9404 cygwin* | mingw* | pw32* | cegcc*) 9405 # When not using gcc, we currently assume that we are using 9406 # Microsoft Visual C++. 9407 # hardcode_libdir_flag_spec is actually meaningless, as there is 9408 # no search path for DLLs. 9409 hardcode_libdir_flag_spec=' ' 9410 allow_undefined_flag=unsupported 9411 # Tell ltmain to make .lib files, not .a files. 9412 libext=lib 9413 # Tell ltmain to make .dll files, not .so files. 9414 shrext_cmds=".dll" 9415 # FIXME: Setting linknames here is a bad hack. 9416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9417 # The linker will automatically build a .lib file if we build a DLL. 9418 old_archive_from_new_cmds='true' 9419 # FIXME: Should let the user specify the lib program. 9420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9421 fix_srcfile_path='`cygpath -w "$srcfile"`' 9422 enable_shared_with_static_runtimes=yes 9423 ;; 9424 9425 darwin* | rhapsody*) 9426 9427 9428 archive_cmds_need_lc=no 9429 hardcode_direct=no 9430 hardcode_automatic=yes 9431 hardcode_shlibpath_var=unsupported 9432 if test "$lt_cv_ld_force_load" = "yes"; then 9433 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\"`' 9434 else 9435 whole_archive_flag_spec='' 9436 fi 9437 link_all_deplibs=yes 9438 allow_undefined_flag="$_lt_dar_allow_undefined" 9439 case $cc_basename in 9440 ifort*) _lt_dar_can_shared=yes ;; 9441 *) _lt_dar_can_shared=$GCC ;; 9442 esac 9443 if test "$_lt_dar_can_shared" = "yes"; then 9444 output_verbose_link_cmd=func_echo_all 9445 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9446 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9447 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}" 9448 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}" 9449 9450 else 9451 ld_shlibs=no 9452 fi 9453 9454 ;; 9455 9456 dgux*) 9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9458 hardcode_libdir_flag_spec='-L$libdir' 9459 hardcode_shlibpath_var=no 9460 ;; 9461 9462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9463 # support. Future versions do this automatically, but an explicit c++rt0.o 9464 # does not break anything, and helps significantly (at the cost of a little 9465 # extra space). 9466 freebsd2.2*) 9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9468 hardcode_libdir_flag_spec='-R$libdir' 9469 hardcode_direct=yes 9470 hardcode_shlibpath_var=no 9471 ;; 9472 9473 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9474 freebsd2.*) 9475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9476 hardcode_direct=yes 9477 hardcode_minus_L=yes 9478 hardcode_shlibpath_var=no 9479 ;; 9480 9481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9482 freebsd* | dragonfly*) 9483 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9484 hardcode_libdir_flag_spec='-R$libdir' 9485 hardcode_direct=yes 9486 hardcode_shlibpath_var=no 9487 ;; 9488 9489 hpux9*) 9490 if test "$GCC" = yes; then 9491 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' 9492 else 9493 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' 9494 fi 9495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9496 hardcode_libdir_separator=: 9497 hardcode_direct=yes 9498 9499 # hardcode_minus_L: Not really in the search PATH, 9500 # but as the default location of the library. 9501 hardcode_minus_L=yes 9502 export_dynamic_flag_spec='${wl}-E' 9503 ;; 9504 9505 hpux10*) 9506 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9507 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9508 else 9509 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9510 fi 9511 if test "$with_gnu_ld" = no; then 9512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9513 hardcode_libdir_flag_spec_ld='+b $libdir' 9514 hardcode_libdir_separator=: 9515 hardcode_direct=yes 9516 hardcode_direct_absolute=yes 9517 export_dynamic_flag_spec='${wl}-E' 9518 # hardcode_minus_L: Not really in the search PATH, 9519 # but as the default location of the library. 9520 hardcode_minus_L=yes 9521 fi 9522 ;; 9523 9524 hpux11*) 9525 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9526 case $host_cpu in 9527 hppa*64*) 9528 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9529 ;; 9530 ia64*) 9531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9532 ;; 9533 *) 9534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9535 ;; 9536 esac 9537 else 9538 case $host_cpu in 9539 hppa*64*) 9540 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9541 ;; 9542 ia64*) 9543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9544 ;; 9545 *) 9546 9547 # Older versions of the 11.00 compiler do not understand -b yet 9548 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9550$as_echo_n "checking if $CC understands -b... " >&6; } 9551if ${lt_cv_prog_compiler__b+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 lt_cv_prog_compiler__b=no 9555 save_LDFLAGS="$LDFLAGS" 9556 LDFLAGS="$LDFLAGS -b" 9557 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9558 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9559 # The linker can only warn and ignore the option if not recognized 9560 # So say no if there are warnings 9561 if test -s conftest.err; then 9562 # Append any errors to the config.log. 9563 cat conftest.err 1>&5 9564 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9566 if diff conftest.exp conftest.er2 >/dev/null; then 9567 lt_cv_prog_compiler__b=yes 9568 fi 9569 else 9570 lt_cv_prog_compiler__b=yes 9571 fi 9572 fi 9573 $RM -r conftest* 9574 LDFLAGS="$save_LDFLAGS" 9575 9576fi 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9578$as_echo "$lt_cv_prog_compiler__b" >&6; } 9579 9580if test x"$lt_cv_prog_compiler__b" = xyes; then 9581 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9582else 9583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9584fi 9585 9586 ;; 9587 esac 9588 fi 9589 if test "$with_gnu_ld" = no; then 9590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9591 hardcode_libdir_separator=: 9592 9593 case $host_cpu in 9594 hppa*64*|ia64*) 9595 hardcode_direct=no 9596 hardcode_shlibpath_var=no 9597 ;; 9598 *) 9599 hardcode_direct=yes 9600 hardcode_direct_absolute=yes 9601 export_dynamic_flag_spec='${wl}-E' 9602 9603 # hardcode_minus_L: Not really in the search PATH, 9604 # but as the default location of the library. 9605 hardcode_minus_L=yes 9606 ;; 9607 esac 9608 fi 9609 ;; 9610 9611 irix5* | irix6* | nonstopux*) 9612 if test "$GCC" = yes; then 9613 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' 9614 # Try to use the -exported_symbol ld option, if it does not 9615 # work, assume that -exports_file does not work either and 9616 # implicitly export all symbols. 9617 save_LDFLAGS="$LDFLAGS" 9618 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9620/* end confdefs.h. */ 9621int foo(void) {} 9622_ACEOF 9623if ac_fn_c_try_link "$LINENO"; then : 9624 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' 9625 9626fi 9627rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext conftest.$ac_ext 9629 LDFLAGS="$save_LDFLAGS" 9630 else 9631 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' 9632 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' 9633 fi 9634 archive_cmds_need_lc='no' 9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9636 hardcode_libdir_separator=: 9637 inherit_rpath=yes 9638 link_all_deplibs=yes 9639 ;; 9640 9641 netbsd*) 9642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9644 else 9645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9646 fi 9647 hardcode_libdir_flag_spec='-R$libdir' 9648 hardcode_direct=yes 9649 hardcode_shlibpath_var=no 9650 ;; 9651 9652 newsos6) 9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9654 hardcode_direct=yes 9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9656 hardcode_libdir_separator=: 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 *nto* | *qnx*) 9661 ;; 9662 9663 openbsd*) 9664 if test -f /usr/libexec/ld.so; then 9665 hardcode_direct=yes 9666 hardcode_shlibpath_var=no 9667 hardcode_direct_absolute=yes 9668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9672 export_dynamic_flag_spec='${wl}-E' 9673 else 9674 case $host_os in 9675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9677 hardcode_libdir_flag_spec='-R$libdir' 9678 ;; 9679 *) 9680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9682 ;; 9683 esac 9684 fi 9685 else 9686 ld_shlibs=no 9687 fi 9688 ;; 9689 9690 os2*) 9691 hardcode_libdir_flag_spec='-L$libdir' 9692 hardcode_minus_L=yes 9693 allow_undefined_flag=unsupported 9694 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' 9695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9696 ;; 9697 9698 osf3*) 9699 if test "$GCC" = yes; then 9700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9701 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' 9702 else 9703 allow_undefined_flag=' -expect_unresolved \*' 9704 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' 9705 fi 9706 archive_cmds_need_lc='no' 9707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9708 hardcode_libdir_separator=: 9709 ;; 9710 9711 osf4* | osf5*) # as osf3* with the addition of -msym flag 9712 if test "$GCC" = yes; then 9713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9714 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' 9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9716 else 9717 allow_undefined_flag=' -expect_unresolved \*' 9718 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' 9719 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~ 9720 $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' 9721 9722 # Both c and cxx compiler support -rpath directly 9723 hardcode_libdir_flag_spec='-rpath $libdir' 9724 fi 9725 archive_cmds_need_lc='no' 9726 hardcode_libdir_separator=: 9727 ;; 9728 9729 solaris*) 9730 no_undefined_flag=' -z defs' 9731 if test "$GCC" = yes; then 9732 wlarc='${wl}' 9733 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9735 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9736 else 9737 case `$CC -V 2>&1` in 9738 *"Compilers 5.0"*) 9739 wlarc='' 9740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9743 ;; 9744 *) 9745 wlarc='${wl}' 9746 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9749 ;; 9750 esac 9751 fi 9752 hardcode_libdir_flag_spec='-R$libdir' 9753 hardcode_shlibpath_var=no 9754 case $host_os in 9755 solaris2.[0-5] | solaris2.[0-5].*) ;; 9756 *) 9757 # The compiler driver will combine and reorder linker options, 9758 # but understands `-z linker_flag'. GCC discards it without `$wl', 9759 # but is careful enough not to reorder. 9760 # Supported since Solaris 2.6 (maybe 2.5.1?) 9761 if test "$GCC" = yes; then 9762 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9763 else 9764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9765 fi 9766 ;; 9767 esac 9768 link_all_deplibs=yes 9769 ;; 9770 9771 sunos4*) 9772 if test "x$host_vendor" = xsequent; then 9773 # Use $CC to link under sequent, because it throws in some extra .o 9774 # files that make .init and .fini sections work. 9775 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9776 else 9777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9778 fi 9779 hardcode_libdir_flag_spec='-L$libdir' 9780 hardcode_direct=yes 9781 hardcode_minus_L=yes 9782 hardcode_shlibpath_var=no 9783 ;; 9784 9785 sysv4) 9786 case $host_vendor in 9787 sni) 9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9789 hardcode_direct=yes # is this really true??? 9790 ;; 9791 siemens) 9792 ## LD is ld it makes a PLAMLIB 9793 ## CC just makes a GrossModule. 9794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9795 reload_cmds='$CC -r -o $output$reload_objs' 9796 hardcode_direct=no 9797 ;; 9798 motorola) 9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9801 ;; 9802 esac 9803 runpath_var='LD_RUN_PATH' 9804 hardcode_shlibpath_var=no 9805 ;; 9806 9807 sysv4.3*) 9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9809 hardcode_shlibpath_var=no 9810 export_dynamic_flag_spec='-Bexport' 9811 ;; 9812 9813 sysv4*MP*) 9814 if test -d /usr/nec; then 9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9816 hardcode_shlibpath_var=no 9817 runpath_var=LD_RUN_PATH 9818 hardcode_runpath_var=yes 9819 ld_shlibs=yes 9820 fi 9821 ;; 9822 9823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9824 no_undefined_flag='${wl}-z,text' 9825 archive_cmds_need_lc=no 9826 hardcode_shlibpath_var=no 9827 runpath_var='LD_RUN_PATH' 9828 9829 if test "$GCC" = yes; then 9830 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9832 else 9833 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9835 fi 9836 ;; 9837 9838 sysv5* | sco3.2v5* | sco5v6*) 9839 # Note: We can NOT use -z defs as we might desire, because we do not 9840 # link with -lc, and that would cause any symbols used from libc to 9841 # always be unresolved, which means just about no library would 9842 # ever link correctly. If we're not using GNU ld we use -z text 9843 # though, which does catch some bad symbols but isn't as heavy-handed 9844 # as -z defs. 9845 no_undefined_flag='${wl}-z,text' 9846 allow_undefined_flag='${wl}-z,nodefs' 9847 archive_cmds_need_lc=no 9848 hardcode_shlibpath_var=no 9849 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9850 hardcode_libdir_separator=':' 9851 link_all_deplibs=yes 9852 export_dynamic_flag_spec='${wl}-Bexport' 9853 runpath_var='LD_RUN_PATH' 9854 9855 if test "$GCC" = yes; then 9856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9858 else 9859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9861 fi 9862 ;; 9863 9864 uts4*) 9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9866 hardcode_libdir_flag_spec='-L$libdir' 9867 hardcode_shlibpath_var=no 9868 ;; 9869 9870 *) 9871 ld_shlibs=no 9872 ;; 9873 esac 9874 9875 if test x$host_vendor = xsni; then 9876 case $host in 9877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9878 export_dynamic_flag_spec='${wl}-Blargedynsym' 9879 ;; 9880 esac 9881 fi 9882 fi 9883 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9885$as_echo "$ld_shlibs" >&6; } 9886test "$ld_shlibs" = no && can_build_shared=no 9887 9888with_gnu_ld=$with_gnu_ld 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904# 9905# Do we need to explicitly link libc? 9906# 9907case "x$archive_cmds_need_lc" in 9908x|xyes) 9909 # Assume -lc should be added 9910 archive_cmds_need_lc=yes 9911 9912 if test "$enable_shared" = yes && test "$GCC" = yes; then 9913 case $archive_cmds in 9914 *'~'*) 9915 # FIXME: we may have to deal with multi-command sequences. 9916 ;; 9917 '$CC '*) 9918 # Test whether the compiler implicitly links with -lc since on some 9919 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9920 # to ld, don't add -lc before -lgcc. 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9922$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9923if ${lt_cv_archive_cmds_need_lc+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925else 9926 $RM conftest* 9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9928 9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9930 (eval $ac_compile) 2>&5 9931 ac_status=$? 9932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9933 test $ac_status = 0; } 2>conftest.err; then 9934 soname=conftest 9935 lib=conftest 9936 libobjs=conftest.$ac_objext 9937 deplibs= 9938 wl=$lt_prog_compiler_wl 9939 pic_flag=$lt_prog_compiler_pic 9940 compiler_flags=-v 9941 linker_flags=-v 9942 verstring= 9943 output_objdir=. 9944 libname=conftest 9945 lt_save_allow_undefined_flag=$allow_undefined_flag 9946 allow_undefined_flag= 9947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9948 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9949 ac_status=$? 9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9951 test $ac_status = 0; } 9952 then 9953 lt_cv_archive_cmds_need_lc=no 9954 else 9955 lt_cv_archive_cmds_need_lc=yes 9956 fi 9957 allow_undefined_flag=$lt_save_allow_undefined_flag 9958 else 9959 cat conftest.err 1>&5 9960 fi 9961 $RM conftest* 9962 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9965$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9966 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9967 ;; 9968 esac 9969 fi 9970 ;; 9971esac 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10130$as_echo_n "checking dynamic linker characteristics... " >&6; } 10131 10132if test "$GCC" = yes; then 10133 case $host_os in 10134 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10135 *) lt_awk_arg="/^libraries:/" ;; 10136 esac 10137 case $host_os in 10138 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10139 *) lt_sed_strip_eq="s,=/,/,g" ;; 10140 esac 10141 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10142 case $lt_search_path_spec in 10143 *\;*) 10144 # if the path contains ";" then we assume it to be the separator 10145 # otherwise default to the standard path separator (i.e. ":") - it is 10146 # assumed that no part of a normal pathname contains ";" but that should 10147 # okay in the real world where ";" in dirpaths is itself problematic. 10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10149 ;; 10150 *) 10151 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10152 ;; 10153 esac 10154 # Ok, now we have the path, separated by spaces, we can step through it 10155 # and add multilib dir if necessary. 10156 lt_tmp_lt_search_path_spec= 10157 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10158 for lt_sys_path in $lt_search_path_spec; do 10159 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10161 else 10162 test -d "$lt_sys_path" && \ 10163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10164 fi 10165 done 10166 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10167BEGIN {RS=" "; FS="/|\n";} { 10168 lt_foo=""; 10169 lt_count=0; 10170 for (lt_i = NF; lt_i > 0; lt_i--) { 10171 if ($lt_i != "" && $lt_i != ".") { 10172 if ($lt_i == "..") { 10173 lt_count++; 10174 } else { 10175 if (lt_count == 0) { 10176 lt_foo="/" $lt_i lt_foo; 10177 } else { 10178 lt_count--; 10179 } 10180 } 10181 } 10182 } 10183 if (lt_foo != "") { lt_freq[lt_foo]++; } 10184 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10185}'` 10186 # AWK program above erroneously prepends '/' to C:/dos/paths 10187 # for these hosts. 10188 case $host_os in 10189 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10190 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10191 esac 10192 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10193else 10194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10195fi 10196library_names_spec= 10197libname_spec='lib$name' 10198soname_spec= 10199shrext_cmds=".so" 10200postinstall_cmds= 10201postuninstall_cmds= 10202finish_cmds= 10203finish_eval= 10204shlibpath_var= 10205shlibpath_overrides_runpath=unknown 10206version_type=none 10207dynamic_linker="$host_os ld.so" 10208sys_lib_dlsearch_path_spec="/lib /usr/lib" 10209need_lib_prefix=unknown 10210hardcode_into_libs=no 10211 10212# when you set need_version to no, make sure it does not cause -set_version 10213# flags to be left without arguments 10214need_version=unknown 10215 10216case $host_os in 10217aix3*) 10218 version_type=linux 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10220 shlibpath_var=LIBPATH 10221 10222 # AIX 3 has no versioning support, so we append a major version to the name. 10223 soname_spec='${libname}${release}${shared_ext}$major' 10224 ;; 10225 10226aix[4-9]*) 10227 version_type=linux 10228 need_lib_prefix=no 10229 need_version=no 10230 hardcode_into_libs=yes 10231 if test "$host_cpu" = ia64; then 10232 # AIX 5 supports IA64 10233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10234 shlibpath_var=LD_LIBRARY_PATH 10235 else 10236 # With GCC up to 2.95.x, collect2 would create an import file 10237 # for dependence libraries. The import file would start with 10238 # the line `#! .'. This would cause the generated library to 10239 # depend on `.', always an invalid library. This was fixed in 10240 # development snapshots of GCC prior to 3.0. 10241 case $host_os in 10242 aix4 | aix4.[01] | aix4.[01].*) 10243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10244 echo ' yes ' 10245 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10246 : 10247 else 10248 can_build_shared=no 10249 fi 10250 ;; 10251 esac 10252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10253 # soname into executable. Probably we can add versioning support to 10254 # collect2, so additional links can be useful in future. 10255 if test "$aix_use_runtimelinking" = yes; then 10256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10257 # instead of lib<name>.a to let people know that these are not 10258 # typical AIX shared libraries. 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10260 else 10261 # We preserve .a as extension for shared libraries through AIX4.2 10262 # and later when we are not doing run time linking. 10263 library_names_spec='${libname}${release}.a $libname.a' 10264 soname_spec='${libname}${release}${shared_ext}$major' 10265 fi 10266 shlibpath_var=LIBPATH 10267 fi 10268 ;; 10269 10270amigaos*) 10271 case $host_cpu in 10272 powerpc) 10273 # Since July 2007 AmigaOS4 officially supports .so libraries. 10274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10276 ;; 10277 m68k) 10278 library_names_spec='$libname.ixlibrary $libname.a' 10279 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10280 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' 10281 ;; 10282 esac 10283 ;; 10284 10285beos*) 10286 library_names_spec='${libname}${shared_ext}' 10287 dynamic_linker="$host_os ld.so" 10288 shlibpath_var=LIBRARY_PATH 10289 ;; 10290 10291bsdi[45]*) 10292 version_type=linux 10293 need_version=no 10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10295 soname_spec='${libname}${release}${shared_ext}$major' 10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10297 shlibpath_var=LD_LIBRARY_PATH 10298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10300 # the default ld.so.conf also contains /usr/contrib/lib and 10301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10302 # libtool to hard-code these into programs 10303 ;; 10304 10305cygwin* | mingw* | pw32* | cegcc*) 10306 version_type=windows 10307 shrext_cmds=".dll" 10308 need_version=no 10309 need_lib_prefix=no 10310 10311 case $GCC,$host_os in 10312 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10313 library_names_spec='$libname.dll.a' 10314 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10315 postinstall_cmds='base_file=`basename \${file}`~ 10316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10317 dldir=$destdir/`dirname \$dlpath`~ 10318 test -d \$dldir || mkdir -p \$dldir~ 10319 $install_prog $dir/$dlname \$dldir/$dlname~ 10320 chmod a+x \$dldir/$dlname~ 10321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10323 fi' 10324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10325 dlpath=$dir/\$dldll~ 10326 $RM \$dlpath' 10327 shlibpath_overrides_runpath=yes 10328 10329 case $host_os in 10330 cygwin*) 10331 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10333 10334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10335 ;; 10336 mingw* | cegcc*) 10337 # MinGW DLLs use traditional 'lib' prefix 10338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10339 ;; 10340 pw32*) 10341 # pw32 DLLs use 'pw' prefix rather than 'lib' 10342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10343 ;; 10344 esac 10345 ;; 10346 10347 *) 10348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10349 ;; 10350 esac 10351 dynamic_linker='Win32 ld.exe' 10352 # FIXME: first we should search . and the directory the executable is in 10353 shlibpath_var=PATH 10354 ;; 10355 10356darwin* | rhapsody*) 10357 dynamic_linker="$host_os dyld" 10358 version_type=darwin 10359 need_lib_prefix=no 10360 need_version=no 10361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10362 soname_spec='${libname}${release}${major}$shared_ext' 10363 shlibpath_overrides_runpath=yes 10364 shlibpath_var=DYLD_LIBRARY_PATH 10365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10366 10367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10369 ;; 10370 10371dgux*) 10372 version_type=linux 10373 need_lib_prefix=no 10374 need_version=no 10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10376 soname_spec='${libname}${release}${shared_ext}$major' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 ;; 10379 10380freebsd* | dragonfly*) 10381 # DragonFly does not have aout. When/if they implement a new 10382 # versioning mechanism, adjust this. 10383 if test -x /usr/bin/objformat; then 10384 objformat=`/usr/bin/objformat` 10385 else 10386 case $host_os in 10387 freebsd[23].*) objformat=aout ;; 10388 *) objformat=elf ;; 10389 esac 10390 fi 10391 version_type=freebsd-$objformat 10392 case $version_type in 10393 freebsd-elf*) 10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10395 need_version=no 10396 need_lib_prefix=no 10397 ;; 10398 freebsd-*) 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10400 need_version=yes 10401 ;; 10402 esac 10403 shlibpath_var=LD_LIBRARY_PATH 10404 case $host_os in 10405 freebsd2.*) 10406 shlibpath_overrides_runpath=yes 10407 ;; 10408 freebsd3.[01]* | freebsdelf3.[01]*) 10409 shlibpath_overrides_runpath=yes 10410 hardcode_into_libs=yes 10411 ;; 10412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10414 shlibpath_overrides_runpath=no 10415 hardcode_into_libs=yes 10416 ;; 10417 *) # from 4.6 on, and DragonFly 10418 shlibpath_overrides_runpath=yes 10419 hardcode_into_libs=yes 10420 ;; 10421 esac 10422 ;; 10423 10424haiku*) 10425 version_type=linux 10426 need_lib_prefix=no 10427 need_version=no 10428 dynamic_linker="$host_os runtime_loader" 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 shlibpath_var=LIBRARY_PATH 10432 shlibpath_overrides_runpath=yes 10433 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10434 hardcode_into_libs=yes 10435 ;; 10436 10437hpux9* | hpux10* | hpux11*) 10438 # Give a soname corresponding to the major version so that dld.sl refuses to 10439 # link against other versions. 10440 version_type=sunos 10441 need_lib_prefix=no 10442 need_version=no 10443 case $host_cpu in 10444 ia64*) 10445 shrext_cmds='.so' 10446 hardcode_into_libs=yes 10447 dynamic_linker="$host_os dld.so" 10448 shlibpath_var=LD_LIBRARY_PATH 10449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10451 soname_spec='${libname}${release}${shared_ext}$major' 10452 if test "X$HPUX_IA64_MODE" = X32; then 10453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10454 else 10455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10456 fi 10457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10458 ;; 10459 hppa*64*) 10460 shrext_cmds='.sl' 10461 hardcode_into_libs=yes 10462 dynamic_linker="$host_os dld.sl" 10463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10466 soname_spec='${libname}${release}${shared_ext}$major' 10467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10469 ;; 10470 *) 10471 shrext_cmds='.sl' 10472 dynamic_linker="$host_os dld.sl" 10473 shlibpath_var=SHLIB_PATH 10474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10476 soname_spec='${libname}${release}${shared_ext}$major' 10477 ;; 10478 esac 10479 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10480 postinstall_cmds='chmod 555 $lib' 10481 # or fails outright, so override atomically: 10482 install_override_mode=555 10483 ;; 10484 10485interix[3-9]*) 10486 version_type=linux 10487 need_lib_prefix=no 10488 need_version=no 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10490 soname_spec='${libname}${release}${shared_ext}$major' 10491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10492 shlibpath_var=LD_LIBRARY_PATH 10493 shlibpath_overrides_runpath=no 10494 hardcode_into_libs=yes 10495 ;; 10496 10497irix5* | irix6* | nonstopux*) 10498 case $host_os in 10499 nonstopux*) version_type=nonstopux ;; 10500 *) 10501 if test "$lt_cv_prog_gnu_ld" = yes; then 10502 version_type=linux 10503 else 10504 version_type=irix 10505 fi ;; 10506 esac 10507 need_lib_prefix=no 10508 need_version=no 10509 soname_spec='${libname}${release}${shared_ext}$major' 10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10511 case $host_os in 10512 irix5* | nonstopux*) 10513 libsuff= shlibsuff= 10514 ;; 10515 *) 10516 case $LD in # libtool.m4 will add one of these switches to LD 10517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10518 libsuff= shlibsuff= libmagic=32-bit;; 10519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10520 libsuff=32 shlibsuff=N32 libmagic=N32;; 10521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10522 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10523 *) libsuff= shlibsuff= libmagic=never-match;; 10524 esac 10525 ;; 10526 esac 10527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10528 shlibpath_overrides_runpath=no 10529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10531 hardcode_into_libs=yes 10532 ;; 10533 10534# No shared lib support for Linux oldld, aout, or coff. 10535linux*oldld* | linux*aout* | linux*coff*) 10536 dynamic_linker=no 10537 ;; 10538 10539# This must be Linux ELF. 10540 10541# uclinux* changes (here and below) have been submitted to the libtool 10542# project, but have not yet been accepted: they are GCC-local changes 10543# for the time being. (See 10544# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10545linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10546 version_type=linux 10547 need_lib_prefix=no 10548 need_version=no 10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10550 soname_spec='${libname}${release}${shared_ext}$major' 10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 shlibpath_overrides_runpath=no 10554 10555 # Some binutils ld are patched to set DT_RUNPATH 10556 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 lt_cv_shlibpath_overrides_runpath=no 10560 save_LDFLAGS=$LDFLAGS 10561 save_libdir=$libdir 10562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566 10567int 10568main () 10569{ 10570 10571 ; 10572 return 0; 10573} 10574_ACEOF 10575if ac_fn_c_try_link "$LINENO"; then : 10576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10577 lt_cv_shlibpath_overrides_runpath=yes 10578fi 10579fi 10580rm -f core conftest.err conftest.$ac_objext \ 10581 conftest$ac_exeext conftest.$ac_ext 10582 LDFLAGS=$save_LDFLAGS 10583 libdir=$save_libdir 10584 10585fi 10586 10587 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10588 10589 # This implies no fast_install, which is unacceptable. 10590 # Some rework will be needed to allow for fast_install 10591 # before this can be enabled. 10592 hardcode_into_libs=yes 10593 10594 # Append ld.so.conf contents to the search path 10595 if test -f /etc/ld.so.conf; then 10596 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' ' '` 10597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10598 fi 10599 10600 # We used to test for /lib/ld.so.1 and disable shared libraries on 10601 # powerpc, because MkLinux only supported shared libraries with the 10602 # GNU dynamic linker. Since this was broken with cross compilers, 10603 # most powerpc-linux boxes support dynamic linking these days and 10604 # people can always --disable-shared, the test was removed, and we 10605 # assume the GNU/Linux dynamic linker is in use. 10606 dynamic_linker='GNU/Linux ld.so' 10607 ;; 10608 10609netbsd*) 10610 version_type=sunos 10611 need_lib_prefix=no 10612 need_version=no 10613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10616 dynamic_linker='NetBSD (a.out) ld.so' 10617 else 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 dynamic_linker='NetBSD ld.elf_so' 10621 fi 10622 shlibpath_var=LD_LIBRARY_PATH 10623 shlibpath_overrides_runpath=yes 10624 hardcode_into_libs=yes 10625 ;; 10626 10627newsos6) 10628 version_type=linux 10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 shlibpath_overrides_runpath=yes 10632 ;; 10633 10634*nto* | *qnx*) 10635 version_type=qnx 10636 need_lib_prefix=no 10637 need_version=no 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10639 soname_spec='${libname}${release}${shared_ext}$major' 10640 shlibpath_var=LD_LIBRARY_PATH 10641 shlibpath_overrides_runpath=no 10642 hardcode_into_libs=yes 10643 dynamic_linker='ldqnx.so' 10644 ;; 10645 10646openbsd*) 10647 version_type=sunos 10648 sys_lib_dlsearch_path_spec="/usr/lib" 10649 need_lib_prefix=no 10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10651 case $host_os in 10652 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10653 *) need_version=no ;; 10654 esac 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10657 shlibpath_var=LD_LIBRARY_PATH 10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10659 case $host_os in 10660 openbsd2.[89] | openbsd2.[89].*) 10661 shlibpath_overrides_runpath=no 10662 ;; 10663 *) 10664 shlibpath_overrides_runpath=yes 10665 ;; 10666 esac 10667 else 10668 shlibpath_overrides_runpath=yes 10669 fi 10670 ;; 10671 10672os2*) 10673 libname_spec='$name' 10674 shrext_cmds=".dll" 10675 need_lib_prefix=no 10676 library_names_spec='$libname${shared_ext} $libname.a' 10677 dynamic_linker='OS/2 ld.exe' 10678 shlibpath_var=LIBPATH 10679 ;; 10680 10681osf3* | osf4* | osf5*) 10682 version_type=osf 10683 need_lib_prefix=no 10684 need_version=no 10685 soname_spec='${libname}${release}${shared_ext}$major' 10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10687 shlibpath_var=LD_LIBRARY_PATH 10688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10690 ;; 10691 10692rdos*) 10693 dynamic_linker=no 10694 ;; 10695 10696solaris*) 10697 version_type=linux 10698 need_lib_prefix=no 10699 need_version=no 10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10701 soname_spec='${libname}${release}${shared_ext}$major' 10702 shlibpath_var=LD_LIBRARY_PATH 10703 shlibpath_overrides_runpath=yes 10704 hardcode_into_libs=yes 10705 # ldd complains unless libraries are executable 10706 postinstall_cmds='chmod +x $lib' 10707 ;; 10708 10709sunos4*) 10710 version_type=sunos 10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10713 shlibpath_var=LD_LIBRARY_PATH 10714 shlibpath_overrides_runpath=yes 10715 if test "$with_gnu_ld" = yes; then 10716 need_lib_prefix=no 10717 fi 10718 need_version=yes 10719 ;; 10720 10721sysv4 | sysv4.3*) 10722 version_type=linux 10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10724 soname_spec='${libname}${release}${shared_ext}$major' 10725 shlibpath_var=LD_LIBRARY_PATH 10726 case $host_vendor in 10727 sni) 10728 shlibpath_overrides_runpath=no 10729 need_lib_prefix=no 10730 runpath_var=LD_RUN_PATH 10731 ;; 10732 siemens) 10733 need_lib_prefix=no 10734 ;; 10735 motorola) 10736 need_lib_prefix=no 10737 need_version=no 10738 shlibpath_overrides_runpath=no 10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10740 ;; 10741 esac 10742 ;; 10743 10744sysv4*MP*) 10745 if test -d /usr/nec ;then 10746 version_type=linux 10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10748 soname_spec='$libname${shared_ext}.$major' 10749 shlibpath_var=LD_LIBRARY_PATH 10750 fi 10751 ;; 10752 10753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10754 version_type=freebsd-elf 10755 need_lib_prefix=no 10756 need_version=no 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 shlibpath_overrides_runpath=yes 10761 hardcode_into_libs=yes 10762 if test "$with_gnu_ld" = yes; then 10763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10764 else 10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10766 case $host_os in 10767 sco3.2v5*) 10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10769 ;; 10770 esac 10771 fi 10772 sys_lib_dlsearch_path_spec='/usr/lib' 10773 ;; 10774 10775tpf*) 10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10777 version_type=linux 10778 need_lib_prefix=no 10779 need_version=no 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10781 shlibpath_var=LD_LIBRARY_PATH 10782 shlibpath_overrides_runpath=no 10783 hardcode_into_libs=yes 10784 ;; 10785 10786uts4*) 10787 version_type=linux 10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10789 soname_spec='${libname}${release}${shared_ext}$major' 10790 shlibpath_var=LD_LIBRARY_PATH 10791 ;; 10792 10793*) 10794 dynamic_linker=no 10795 ;; 10796esac 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10798$as_echo "$dynamic_linker" >&6; } 10799test "$dynamic_linker" = no && can_build_shared=no 10800 10801variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10802if test "$GCC" = yes; then 10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10804fi 10805 10806if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10808fi 10809if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10811fi 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10905$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10906hardcode_action= 10907if test -n "$hardcode_libdir_flag_spec" || 10908 test -n "$runpath_var" || 10909 test "X$hardcode_automatic" = "Xyes" ; then 10910 10911 # We can hardcode non-existent directories. 10912 if test "$hardcode_direct" != no && 10913 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10914 # have to relink, otherwise we might link with an installed library 10915 # when we should be linking with a yet-to-be-installed one 10916 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10917 test "$hardcode_minus_L" != no; then 10918 # Linking always hardcodes the temporary library directory. 10919 hardcode_action=relink 10920 else 10921 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10922 hardcode_action=immediate 10923 fi 10924else 10925 # We cannot hardcode anything, or else we can only hardcode existing 10926 # directories. 10927 hardcode_action=unsupported 10928fi 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10930$as_echo "$hardcode_action" >&6; } 10931 10932if test "$hardcode_action" = relink || 10933 test "$inherit_rpath" = yes; then 10934 # Fast installation is not supported 10935 enable_fast_install=no 10936elif test "$shlibpath_overrides_runpath" = yes || 10937 test "$enable_shared" = no; then 10938 # Fast installation is not necessary 10939 enable_fast_install=needless 10940fi 10941 10942 10943 10944 10945 10946 10947 if test "x$enable_dlopen" != xyes; then 10948 enable_dlopen=unknown 10949 enable_dlopen_self=unknown 10950 enable_dlopen_self_static=unknown 10951else 10952 lt_cv_dlopen=no 10953 lt_cv_dlopen_libs= 10954 10955 case $host_os in 10956 beos*) 10957 lt_cv_dlopen="load_add_on" 10958 lt_cv_dlopen_libs= 10959 lt_cv_dlopen_self=yes 10960 ;; 10961 10962 mingw* | pw32* | cegcc*) 10963 lt_cv_dlopen="LoadLibrary" 10964 lt_cv_dlopen_libs= 10965 ;; 10966 10967 cygwin*) 10968 lt_cv_dlopen="dlopen" 10969 lt_cv_dlopen_libs= 10970 ;; 10971 10972 darwin*) 10973 # if libdl is installed we need to link against it 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10975$as_echo_n "checking for dlopen in -ldl... " >&6; } 10976if ${ac_cv_lib_dl_dlopen+:} false; then : 10977 $as_echo_n "(cached) " >&6 10978else 10979 ac_check_lib_save_LIBS=$LIBS 10980LIBS="-ldl $LIBS" 10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10982/* end confdefs.h. */ 10983 10984/* Override any GCC internal prototype to avoid an error. 10985 Use char because int might match the return type of a GCC 10986 builtin and then its argument prototype would still apply. */ 10987#ifdef __cplusplus 10988extern "C" 10989#endif 10990char dlopen (); 10991int 10992main () 10993{ 10994return dlopen (); 10995 ; 10996 return 0; 10997} 10998_ACEOF 10999if ac_fn_c_try_link "$LINENO"; then : 11000 ac_cv_lib_dl_dlopen=yes 11001else 11002 ac_cv_lib_dl_dlopen=no 11003fi 11004rm -f core conftest.err conftest.$ac_objext \ 11005 conftest$ac_exeext conftest.$ac_ext 11006LIBS=$ac_check_lib_save_LIBS 11007fi 11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11009$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11010if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11012else 11013 11014 lt_cv_dlopen="dyld" 11015 lt_cv_dlopen_libs= 11016 lt_cv_dlopen_self=yes 11017 11018fi 11019 11020 ;; 11021 11022 *) 11023 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11024if test "x$ac_cv_func_shl_load" = xyes; then : 11025 lt_cv_dlopen="shl_load" 11026else 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11028$as_echo_n "checking for shl_load in -ldld... " >&6; } 11029if ${ac_cv_lib_dld_shl_load+:} false; then : 11030 $as_echo_n "(cached) " >&6 11031else 11032 ac_check_lib_save_LIBS=$LIBS 11033LIBS="-ldld $LIBS" 11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11035/* end confdefs.h. */ 11036 11037/* Override any GCC internal prototype to avoid an error. 11038 Use char because int might match the return type of a GCC 11039 builtin and then its argument prototype would still apply. */ 11040#ifdef __cplusplus 11041extern "C" 11042#endif 11043char shl_load (); 11044int 11045main () 11046{ 11047return shl_load (); 11048 ; 11049 return 0; 11050} 11051_ACEOF 11052if ac_fn_c_try_link "$LINENO"; then : 11053 ac_cv_lib_dld_shl_load=yes 11054else 11055 ac_cv_lib_dld_shl_load=no 11056fi 11057rm -f core conftest.err conftest.$ac_objext \ 11058 conftest$ac_exeext conftest.$ac_ext 11059LIBS=$ac_check_lib_save_LIBS 11060fi 11061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11062$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11063if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11064 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11065else 11066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11067if test "x$ac_cv_func_dlopen" = xyes; then : 11068 lt_cv_dlopen="dlopen" 11069else 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11071$as_echo_n "checking for dlopen in -ldl... " >&6; } 11072if ${ac_cv_lib_dl_dlopen+:} false; then : 11073 $as_echo_n "(cached) " >&6 11074else 11075 ac_check_lib_save_LIBS=$LIBS 11076LIBS="-ldl $LIBS" 11077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11078/* end confdefs.h. */ 11079 11080/* Override any GCC internal prototype to avoid an error. 11081 Use char because int might match the return type of a GCC 11082 builtin and then its argument prototype would still apply. */ 11083#ifdef __cplusplus 11084extern "C" 11085#endif 11086char dlopen (); 11087int 11088main () 11089{ 11090return dlopen (); 11091 ; 11092 return 0; 11093} 11094_ACEOF 11095if ac_fn_c_try_link "$LINENO"; then : 11096 ac_cv_lib_dl_dlopen=yes 11097else 11098 ac_cv_lib_dl_dlopen=no 11099fi 11100rm -f core conftest.err conftest.$ac_objext \ 11101 conftest$ac_exeext conftest.$ac_ext 11102LIBS=$ac_check_lib_save_LIBS 11103fi 11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11105$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11106if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11108else 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11110$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11111if ${ac_cv_lib_svld_dlopen+:} false; then : 11112 $as_echo_n "(cached) " >&6 11113else 11114 ac_check_lib_save_LIBS=$LIBS 11115LIBS="-lsvld $LIBS" 11116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11117/* end confdefs.h. */ 11118 11119/* Override any GCC internal prototype to avoid an error. 11120 Use char because int might match the return type of a GCC 11121 builtin and then its argument prototype would still apply. */ 11122#ifdef __cplusplus 11123extern "C" 11124#endif 11125char dlopen (); 11126int 11127main () 11128{ 11129return dlopen (); 11130 ; 11131 return 0; 11132} 11133_ACEOF 11134if ac_fn_c_try_link "$LINENO"; then : 11135 ac_cv_lib_svld_dlopen=yes 11136else 11137 ac_cv_lib_svld_dlopen=no 11138fi 11139rm -f core conftest.err conftest.$ac_objext \ 11140 conftest$ac_exeext conftest.$ac_ext 11141LIBS=$ac_check_lib_save_LIBS 11142fi 11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11144$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11145if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11147else 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11149$as_echo_n "checking for dld_link in -ldld... " >&6; } 11150if ${ac_cv_lib_dld_dld_link+:} false; then : 11151 $as_echo_n "(cached) " >&6 11152else 11153 ac_check_lib_save_LIBS=$LIBS 11154LIBS="-ldld $LIBS" 11155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157 11158/* Override any GCC internal prototype to avoid an error. 11159 Use char because int might match the return type of a GCC 11160 builtin and then its argument prototype would still apply. */ 11161#ifdef __cplusplus 11162extern "C" 11163#endif 11164char dld_link (); 11165int 11166main () 11167{ 11168return dld_link (); 11169 ; 11170 return 0; 11171} 11172_ACEOF 11173if ac_fn_c_try_link "$LINENO"; then : 11174 ac_cv_lib_dld_dld_link=yes 11175else 11176 ac_cv_lib_dld_dld_link=no 11177fi 11178rm -f core conftest.err conftest.$ac_objext \ 11179 conftest$ac_exeext conftest.$ac_ext 11180LIBS=$ac_check_lib_save_LIBS 11181fi 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11183$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11184if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11186fi 11187 11188 11189fi 11190 11191 11192fi 11193 11194 11195fi 11196 11197 11198fi 11199 11200 11201fi 11202 11203 ;; 11204 esac 11205 11206 if test "x$lt_cv_dlopen" != xno; then 11207 enable_dlopen=yes 11208 else 11209 enable_dlopen=no 11210 fi 11211 11212 case $lt_cv_dlopen in 11213 dlopen) 11214 save_CPPFLAGS="$CPPFLAGS" 11215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11216 11217 save_LDFLAGS="$LDFLAGS" 11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11219 11220 save_LIBS="$LIBS" 11221 LIBS="$lt_cv_dlopen_libs $LIBS" 11222 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11224$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11225if ${lt_cv_dlopen_self+:} false; then : 11226 $as_echo_n "(cached) " >&6 11227else 11228 if test "$cross_compiling" = yes; then : 11229 lt_cv_dlopen_self=cross 11230else 11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11232 lt_status=$lt_dlunknown 11233 cat > conftest.$ac_ext <<_LT_EOF 11234#line 11244 "configure" 11235#include "confdefs.h" 11236 11237#if HAVE_DLFCN_H 11238#include <dlfcn.h> 11239#endif 11240 11241#include <stdio.h> 11242 11243#ifdef RTLD_GLOBAL 11244# define LT_DLGLOBAL RTLD_GLOBAL 11245#else 11246# ifdef DL_GLOBAL 11247# define LT_DLGLOBAL DL_GLOBAL 11248# else 11249# define LT_DLGLOBAL 0 11250# endif 11251#endif 11252 11253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11254 find out it does not work in some platform. */ 11255#ifndef LT_DLLAZY_OR_NOW 11256# ifdef RTLD_LAZY 11257# define LT_DLLAZY_OR_NOW RTLD_LAZY 11258# else 11259# ifdef DL_LAZY 11260# define LT_DLLAZY_OR_NOW DL_LAZY 11261# else 11262# ifdef RTLD_NOW 11263# define LT_DLLAZY_OR_NOW RTLD_NOW 11264# else 11265# ifdef DL_NOW 11266# define LT_DLLAZY_OR_NOW DL_NOW 11267# else 11268# define LT_DLLAZY_OR_NOW 0 11269# endif 11270# endif 11271# endif 11272# endif 11273#endif 11274 11275/* When -fvisbility=hidden is used, assume the code has been annotated 11276 correspondingly for the symbols needed. */ 11277#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11278void fnord () __attribute__((visibility("default"))); 11279#endif 11280 11281void fnord () { int i=42; } 11282int main () 11283{ 11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11285 int status = $lt_dlunknown; 11286 11287 if (self) 11288 { 11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11290 else 11291 { 11292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11293 else puts (dlerror ()); 11294 } 11295 /* dlclose (self); */ 11296 } 11297 else 11298 puts (dlerror ()); 11299 11300 return status; 11301} 11302_LT_EOF 11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11304 (eval $ac_link) 2>&5 11305 ac_status=$? 11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11308 (./conftest; exit; ) >&5 2>/dev/null 11309 lt_status=$? 11310 case x$lt_status in 11311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11314 esac 11315 else : 11316 # compilation failed 11317 lt_cv_dlopen_self=no 11318 fi 11319fi 11320rm -fr conftest* 11321 11322 11323fi 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11325$as_echo "$lt_cv_dlopen_self" >&6; } 11326 11327 if test "x$lt_cv_dlopen_self" = xyes; then 11328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11330$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11331if ${lt_cv_dlopen_self_static+:} false; then : 11332 $as_echo_n "(cached) " >&6 11333else 11334 if test "$cross_compiling" = yes; then : 11335 lt_cv_dlopen_self_static=cross 11336else 11337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11338 lt_status=$lt_dlunknown 11339 cat > conftest.$ac_ext <<_LT_EOF 11340#line 11350 "configure" 11341#include "confdefs.h" 11342 11343#if HAVE_DLFCN_H 11344#include <dlfcn.h> 11345#endif 11346 11347#include <stdio.h> 11348 11349#ifdef RTLD_GLOBAL 11350# define LT_DLGLOBAL RTLD_GLOBAL 11351#else 11352# ifdef DL_GLOBAL 11353# define LT_DLGLOBAL DL_GLOBAL 11354# else 11355# define LT_DLGLOBAL 0 11356# endif 11357#endif 11358 11359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11360 find out it does not work in some platform. */ 11361#ifndef LT_DLLAZY_OR_NOW 11362# ifdef RTLD_LAZY 11363# define LT_DLLAZY_OR_NOW RTLD_LAZY 11364# else 11365# ifdef DL_LAZY 11366# define LT_DLLAZY_OR_NOW DL_LAZY 11367# else 11368# ifdef RTLD_NOW 11369# define LT_DLLAZY_OR_NOW RTLD_NOW 11370# else 11371# ifdef DL_NOW 11372# define LT_DLLAZY_OR_NOW DL_NOW 11373# else 11374# define LT_DLLAZY_OR_NOW 0 11375# endif 11376# endif 11377# endif 11378# endif 11379#endif 11380 11381/* When -fvisbility=hidden is used, assume the code has been annotated 11382 correspondingly for the symbols needed. */ 11383#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11384void fnord () __attribute__((visibility("default"))); 11385#endif 11386 11387void fnord () { int i=42; } 11388int main () 11389{ 11390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11391 int status = $lt_dlunknown; 11392 11393 if (self) 11394 { 11395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11396 else 11397 { 11398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11399 else puts (dlerror ()); 11400 } 11401 /* dlclose (self); */ 11402 } 11403 else 11404 puts (dlerror ()); 11405 11406 return status; 11407} 11408_LT_EOF 11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11410 (eval $ac_link) 2>&5 11411 ac_status=$? 11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11414 (./conftest; exit; ) >&5 2>/dev/null 11415 lt_status=$? 11416 case x$lt_status in 11417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11419 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11420 esac 11421 else : 11422 # compilation failed 11423 lt_cv_dlopen_self_static=no 11424 fi 11425fi 11426rm -fr conftest* 11427 11428 11429fi 11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11431$as_echo "$lt_cv_dlopen_self_static" >&6; } 11432 fi 11433 11434 CPPFLAGS="$save_CPPFLAGS" 11435 LDFLAGS="$save_LDFLAGS" 11436 LIBS="$save_LIBS" 11437 ;; 11438 esac 11439 11440 case $lt_cv_dlopen_self in 11441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11442 *) enable_dlopen_self=unknown ;; 11443 esac 11444 11445 case $lt_cv_dlopen_self_static in 11446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11447 *) enable_dlopen_self_static=unknown ;; 11448 esac 11449fi 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467striplib= 11468old_striplib= 11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11470$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11471if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11472 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11473 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11475$as_echo "yes" >&6; } 11476else 11477# FIXME - insert some real tests, host_os isn't really good enough 11478 case $host_os in 11479 darwin*) 11480 if test -n "$STRIP" ; then 11481 striplib="$STRIP -x" 11482 old_striplib="$STRIP -S" 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11484$as_echo "yes" >&6; } 11485 else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11487$as_echo "no" >&6; } 11488 fi 11489 ;; 11490 *) 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11492$as_echo "no" >&6; } 11493 ;; 11494 esac 11495fi 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 # Report which library types will actually be built 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11510$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11512$as_echo "$can_build_shared" >&6; } 11513 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11515$as_echo_n "checking whether to build shared libraries... " >&6; } 11516 test "$can_build_shared" = "no" && enable_shared=no 11517 11518 # On AIX, shared libraries and static libraries use the same namespace, and 11519 # are all built from PIC. 11520 case $host_os in 11521 aix3*) 11522 test "$enable_shared" = yes && enable_static=no 11523 if test -n "$RANLIB"; then 11524 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11525 postinstall_cmds='$RANLIB $lib' 11526 fi 11527 ;; 11528 11529 aix[4-9]*) 11530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11531 test "$enable_shared" = yes && enable_static=no 11532 fi 11533 ;; 11534 esac 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11536$as_echo "$enable_shared" >&6; } 11537 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11539$as_echo_n "checking whether to build static libraries... " >&6; } 11540 # Make sure either enable_shared or enable_static is yes. 11541 test "$enable_shared" = yes || enable_static=yes 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11543$as_echo "$enable_static" >&6; } 11544 11545 11546 11547 11548fi 11549ac_ext=c 11550ac_cpp='$CPP $CPPFLAGS' 11551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11553ac_compiler_gnu=$ac_cv_c_compiler_gnu 11554 11555CC="$lt_save_CC" 11556 11557 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11558 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11559 (test "X$CXX" != "Xg++"))) ; then 11560 ac_ext=cpp 11561ac_cpp='$CXXCPP $CPPFLAGS' 11562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11566$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11567if test -z "$CXXCPP"; then 11568 if ${ac_cv_prog_CXXCPP+:} false; then : 11569 $as_echo_n "(cached) " >&6 11570else 11571 # Double quotes because CXXCPP needs to be expanded 11572 for CXXCPP in "$CXX -E" "/lib/cpp" 11573 do 11574 ac_preproc_ok=false 11575for ac_cxx_preproc_warn_flag in '' yes 11576do 11577 # Use a header file that comes with gcc, so configuring glibc 11578 # with a fresh cross-compiler works. 11579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11580 # <limits.h> exists even on freestanding compilers. 11581 # On the NeXT, cc -E runs the code through the compiler's parser, 11582 # not just through cpp. "Syntax error" is here to catch this case. 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584/* end confdefs.h. */ 11585#ifdef __STDC__ 11586# include <limits.h> 11587#else 11588# include <assert.h> 11589#endif 11590 Syntax error 11591_ACEOF 11592if ac_fn_cxx_try_cpp "$LINENO"; then : 11593 11594else 11595 # Broken: fails on valid input. 11596continue 11597fi 11598rm -f conftest.err conftest.i conftest.$ac_ext 11599 11600 # OK, works on sane cases. Now check whether nonexistent headers 11601 # can be detected and how. 11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604#include <ac_nonexistent.h> 11605_ACEOF 11606if ac_fn_cxx_try_cpp "$LINENO"; then : 11607 # Broken: success on invalid input. 11608continue 11609else 11610 # Passes both tests. 11611ac_preproc_ok=: 11612break 11613fi 11614rm -f conftest.err conftest.i conftest.$ac_ext 11615 11616done 11617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11618rm -f conftest.i conftest.err conftest.$ac_ext 11619if $ac_preproc_ok; then : 11620 break 11621fi 11622 11623 done 11624 ac_cv_prog_CXXCPP=$CXXCPP 11625 11626fi 11627 CXXCPP=$ac_cv_prog_CXXCPP 11628else 11629 ac_cv_prog_CXXCPP=$CXXCPP 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11632$as_echo "$CXXCPP" >&6; } 11633ac_preproc_ok=false 11634for ac_cxx_preproc_warn_flag in '' yes 11635do 11636 # Use a header file that comes with gcc, so configuring glibc 11637 # with a fresh cross-compiler works. 11638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11639 # <limits.h> exists even on freestanding compilers. 11640 # On the NeXT, cc -E runs the code through the compiler's parser, 11641 # not just through cpp. "Syntax error" is here to catch this case. 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643/* end confdefs.h. */ 11644#ifdef __STDC__ 11645# include <limits.h> 11646#else 11647# include <assert.h> 11648#endif 11649 Syntax error 11650_ACEOF 11651if ac_fn_cxx_try_cpp "$LINENO"; then : 11652 11653else 11654 # Broken: fails on valid input. 11655continue 11656fi 11657rm -f conftest.err conftest.i conftest.$ac_ext 11658 11659 # OK, works on sane cases. Now check whether nonexistent headers 11660 # can be detected and how. 11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11662/* end confdefs.h. */ 11663#include <ac_nonexistent.h> 11664_ACEOF 11665if ac_fn_cxx_try_cpp "$LINENO"; then : 11666 # Broken: success on invalid input. 11667continue 11668else 11669 # Passes both tests. 11670ac_preproc_ok=: 11671break 11672fi 11673rm -f conftest.err conftest.i conftest.$ac_ext 11674 11675done 11676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11677rm -f conftest.i conftest.err conftest.$ac_ext 11678if $ac_preproc_ok; then : 11679 11680else 11681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11683as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11684See \`config.log' for more details" "$LINENO" 5; } 11685fi 11686 11687ac_ext=c 11688ac_cpp='$CPP $CPPFLAGS' 11689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11691ac_compiler_gnu=$ac_cv_c_compiler_gnu 11692 11693else 11694 _lt_caught_CXX_error=yes 11695fi 11696 11697ac_ext=cpp 11698ac_cpp='$CXXCPP $CPPFLAGS' 11699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11702 11703archive_cmds_need_lc_CXX=no 11704allow_undefined_flag_CXX= 11705always_export_symbols_CXX=no 11706archive_expsym_cmds_CXX= 11707compiler_needs_object_CXX=no 11708export_dynamic_flag_spec_CXX= 11709hardcode_direct_CXX=no 11710hardcode_direct_absolute_CXX=no 11711hardcode_libdir_flag_spec_CXX= 11712hardcode_libdir_flag_spec_ld_CXX= 11713hardcode_libdir_separator_CXX= 11714hardcode_minus_L_CXX=no 11715hardcode_shlibpath_var_CXX=unsupported 11716hardcode_automatic_CXX=no 11717inherit_rpath_CXX=no 11718module_cmds_CXX= 11719module_expsym_cmds_CXX= 11720link_all_deplibs_CXX=unknown 11721old_archive_cmds_CXX=$old_archive_cmds 11722reload_flag_CXX=$reload_flag 11723reload_cmds_CXX=$reload_cmds 11724no_undefined_flag_CXX= 11725whole_archive_flag_spec_CXX= 11726enable_shared_with_static_runtimes_CXX=no 11727 11728# Source file extension for C++ test sources. 11729ac_ext=cpp 11730 11731# Object file extension for compiled C++ test sources. 11732objext=o 11733objext_CXX=$objext 11734 11735# No sense in running all these tests if we already determined that 11736# the CXX compiler isn't working. Some variables (like enable_shared) 11737# are currently assumed to apply to all compilers on this platform, 11738# and will be corrupted by setting them based on a non-working compiler. 11739if test "$_lt_caught_CXX_error" != yes; then 11740 # Code to be used in simple compile tests 11741 lt_simple_compile_test_code="int some_variable = 0;" 11742 11743 # Code to be used in simple link tests 11744 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11745 11746 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11747 11748 11749 11750 11751 11752 11753# If no C compiler was specified, use CC. 11754LTCC=${LTCC-"$CC"} 11755 11756# If no C compiler flags were specified, use CFLAGS. 11757LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11758 11759# Allow CC to be a program name with arguments. 11760compiler=$CC 11761 11762 11763 # save warnings/boilerplate of simple test code 11764 ac_outfile=conftest.$ac_objext 11765echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11766eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11767_lt_compiler_boilerplate=`cat conftest.err` 11768$RM conftest* 11769 11770 ac_outfile=conftest.$ac_objext 11771echo "$lt_simple_link_test_code" >conftest.$ac_ext 11772eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11773_lt_linker_boilerplate=`cat conftest.err` 11774$RM -r conftest* 11775 11776 11777 # Allow CC to be a program name with arguments. 11778 lt_save_CC=$CC 11779 lt_save_LD=$LD 11780 lt_save_GCC=$GCC 11781 GCC=$GXX 11782 lt_save_with_gnu_ld=$with_gnu_ld 11783 lt_save_path_LD=$lt_cv_path_LD 11784 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11785 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11786 else 11787 $as_unset lt_cv_prog_gnu_ld 11788 fi 11789 if test -n "${lt_cv_path_LDCXX+set}"; then 11790 lt_cv_path_LD=$lt_cv_path_LDCXX 11791 else 11792 $as_unset lt_cv_path_LD 11793 fi 11794 test -z "${LDCXX+set}" || LD=$LDCXX 11795 CC=${CXX-"c++"} 11796 compiler=$CC 11797 compiler_CXX=$CC 11798 for cc_temp in $compiler""; do 11799 case $cc_temp in 11800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11802 \-*) ;; 11803 *) break;; 11804 esac 11805done 11806cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11807 11808 11809 if test -n "$compiler"; then 11810 # We don't want -fno-exception when compiling C++ code, so set the 11811 # no_builtin_flag separately 11812 if test "$GXX" = yes; then 11813 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11814 else 11815 lt_prog_compiler_no_builtin_flag_CXX= 11816 fi 11817 11818 if test "$GXX" = yes; then 11819 # Set up default GNU C++ configuration 11820 11821 11822 11823# Check whether --with-gnu-ld was given. 11824if test "${with_gnu_ld+set}" = set; then : 11825 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11826else 11827 with_gnu_ld=no 11828fi 11829 11830ac_prog=ld 11831if test "$GCC" = yes; then 11832 # Check if gcc -print-prog-name=ld gives a path. 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11834$as_echo_n "checking for ld used by $CC... " >&6; } 11835 case $host in 11836 *-*-mingw*) 11837 # gcc leaves a trailing carriage return which upsets mingw 11838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11839 *) 11840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11841 esac 11842 case $ac_prog in 11843 # Accept absolute paths. 11844 [\\/]* | ?:[\\/]*) 11845 re_direlt='/[^/][^/]*/\.\./' 11846 # Canonicalize the pathname of ld 11847 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11848 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11849 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11850 done 11851 test -z "$LD" && LD="$ac_prog" 11852 ;; 11853 "") 11854 # If it fails, then pretend we aren't using GCC. 11855 ac_prog=ld 11856 ;; 11857 *) 11858 # If it is relative, then search for the first ld in PATH. 11859 with_gnu_ld=unknown 11860 ;; 11861 esac 11862elif test "$with_gnu_ld" = yes; then 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11864$as_echo_n "checking for GNU ld... " >&6; } 11865else 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11867$as_echo_n "checking for non-GNU ld... " >&6; } 11868fi 11869if ${lt_cv_path_LD+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 if test -z "$LD"; then 11873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11874 for ac_dir in $PATH; do 11875 IFS="$lt_save_ifs" 11876 test -z "$ac_dir" && ac_dir=. 11877 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11878 lt_cv_path_LD="$ac_dir/$ac_prog" 11879 # Check to see if the program is GNU ld. I'd rather use --version, 11880 # but apparently some variants of GNU ld only accept -v. 11881 # Break only if it was the GNU/non-GNU ld that we prefer. 11882 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11883 *GNU* | *'with BFD'*) 11884 test "$with_gnu_ld" != no && break 11885 ;; 11886 *) 11887 test "$with_gnu_ld" != yes && break 11888 ;; 11889 esac 11890 fi 11891 done 11892 IFS="$lt_save_ifs" 11893else 11894 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11895fi 11896fi 11897 11898LD="$lt_cv_path_LD" 11899if test -n "$LD"; then 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11901$as_echo "$LD" >&6; } 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11904$as_echo "no" >&6; } 11905fi 11906test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11908$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11909if ${lt_cv_prog_gnu_ld+:} false; then : 11910 $as_echo_n "(cached) " >&6 11911else 11912 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11913case `$LD -v 2>&1 </dev/null` in 11914*GNU* | *'with BFD'*) 11915 lt_cv_prog_gnu_ld=yes 11916 ;; 11917*) 11918 lt_cv_prog_gnu_ld=no 11919 ;; 11920esac 11921fi 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11923$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11924with_gnu_ld=$lt_cv_prog_gnu_ld 11925 11926 11927 11928 11929 11930 11931 11932 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11933 # archiving commands below assume that GNU ld is being used. 11934 if test "$with_gnu_ld" = yes; then 11935 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11936 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' 11937 11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11940 11941 # If archive_cmds runs LD, not CC, wlarc should be empty 11942 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11943 # investigate it a little bit more. (MM) 11944 wlarc='${wl}' 11945 11946 # ancient GNU ld didn't support --whole-archive et. al. 11947 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11948 $GREP 'no-whole-archive' > /dev/null; then 11949 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11950 else 11951 whole_archive_flag_spec_CXX= 11952 fi 11953 else 11954 with_gnu_ld=no 11955 wlarc= 11956 11957 # A generic and very simple default shared library creation 11958 # command for GNU C++ for the case where it uses the native 11959 # linker, instead of GNU ld. If possible, this setting should 11960 # overridden to take advantage of the native linker features on 11961 # the platform it is being used on. 11962 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11963 fi 11964 11965 # Commands to make compiler produce verbose output that lists 11966 # what "hidden" libraries, object files and flags are used when 11967 # linking a shared library. 11968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11969 11970 else 11971 GXX=no 11972 with_gnu_ld=no 11973 wlarc= 11974 fi 11975 11976 # PORTME: fill in a description of your system's C++ link characteristics 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11978$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11979 ld_shlibs_CXX=yes 11980 case $host_os in 11981 aix3*) 11982 # FIXME: insert proper C++ library support 11983 ld_shlibs_CXX=no 11984 ;; 11985 aix[4-9]*) 11986 if test "$host_cpu" = ia64; then 11987 # On IA64, the linker does run time linking by default, so we don't 11988 # have to do anything special. 11989 aix_use_runtimelinking=no 11990 exp_sym_flag='-Bexport' 11991 no_entry_flag="" 11992 else 11993 aix_use_runtimelinking=no 11994 11995 # Test if we are trying to use run time linking or normal 11996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11997 # need to do runtime linking. 11998 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11999 for ld_flag in $LDFLAGS; do 12000 case $ld_flag in 12001 *-brtl*) 12002 aix_use_runtimelinking=yes 12003 break 12004 ;; 12005 esac 12006 done 12007 ;; 12008 esac 12009 12010 exp_sym_flag='-bexport' 12011 no_entry_flag='-bnoentry' 12012 fi 12013 12014 # When large executables or shared objects are built, AIX ld can 12015 # have problems creating the table of contents. If linking a library 12016 # or program results in "error TOC overflow" add -mminimal-toc to 12017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12019 12020 archive_cmds_CXX='' 12021 hardcode_direct_CXX=yes 12022 hardcode_direct_absolute_CXX=yes 12023 hardcode_libdir_separator_CXX=':' 12024 link_all_deplibs_CXX=yes 12025 file_list_spec_CXX='${wl}-f,' 12026 12027 if test "$GXX" = yes; then 12028 case $host_os in aix4.[012]|aix4.[012].*) 12029 # We only want to do this on AIX 4.2 and lower, the check 12030 # below for broken collect2 doesn't work under 4.3+ 12031 collect2name=`${CC} -print-prog-name=collect2` 12032 if test -f "$collect2name" && 12033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12034 then 12035 # We have reworked collect2 12036 : 12037 else 12038 # We have old collect2 12039 hardcode_direct_CXX=unsupported 12040 # It fails to find uninstalled libraries when the uninstalled 12041 # path is not listed in the libpath. Setting hardcode_minus_L 12042 # to unsupported forces relinking 12043 hardcode_minus_L_CXX=yes 12044 hardcode_libdir_flag_spec_CXX='-L$libdir' 12045 hardcode_libdir_separator_CXX= 12046 fi 12047 esac 12048 shared_flag='-shared' 12049 if test "$aix_use_runtimelinking" = yes; then 12050 shared_flag="$shared_flag "'${wl}-G' 12051 fi 12052 else 12053 # not using gcc 12054 if test "$host_cpu" = ia64; then 12055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12056 # chokes on -Wl,-G. The following line is correct: 12057 shared_flag='-G' 12058 else 12059 if test "$aix_use_runtimelinking" = yes; then 12060 shared_flag='${wl}-G' 12061 else 12062 shared_flag='${wl}-bM:SRE' 12063 fi 12064 fi 12065 fi 12066 12067 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12068 # It seems that -bexpall does not export symbols beginning with 12069 # underscore (_), so it is better to generate a list of symbols to 12070 # export. 12071 always_export_symbols_CXX=yes 12072 if test "$aix_use_runtimelinking" = yes; then 12073 # Warning - without using the other runtime loading flags (-brtl), 12074 # -berok will link without error, but may produce a broken library. 12075 allow_undefined_flag_CXX='-berok' 12076 # Determine the default libpath from the value encoded in an empty 12077 # executable. 12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080 12081int 12082main () 12083{ 12084 12085 ; 12086 return 0; 12087} 12088_ACEOF 12089if ac_fn_cxx_try_link "$LINENO"; then : 12090 12091lt_aix_libpath_sed=' 12092 /Import File Strings/,/^$/ { 12093 /^0/ { 12094 s/^0 *\(.*\)$/\1/ 12095 p 12096 } 12097 }' 12098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12099# Check for a 64-bit object if we didn't find anything. 12100if test -z "$aix_libpath"; then 12101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12102fi 12103fi 12104rm -f core conftest.err conftest.$ac_objext \ 12105 conftest$ac_exeext conftest.$ac_ext 12106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12107 12108 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12109 12110 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" 12111 else 12112 if test "$host_cpu" = ia64; then 12113 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12114 allow_undefined_flag_CXX="-z nodefs" 12115 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" 12116 else 12117 # Determine the default libpath from the value encoded in an 12118 # empty executable. 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12120/* end confdefs.h. */ 12121 12122int 12123main () 12124{ 12125 12126 ; 12127 return 0; 12128} 12129_ACEOF 12130if ac_fn_cxx_try_link "$LINENO"; then : 12131 12132lt_aix_libpath_sed=' 12133 /Import File Strings/,/^$/ { 12134 /^0/ { 12135 s/^0 *\(.*\)$/\1/ 12136 p 12137 } 12138 }' 12139aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12140# Check for a 64-bit object if we didn't find anything. 12141if test -z "$aix_libpath"; then 12142 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12143fi 12144fi 12145rm -f core conftest.err conftest.$ac_objext \ 12146 conftest$ac_exeext conftest.$ac_ext 12147if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12148 12149 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12150 # Warning - without using the other run time loading flags, 12151 # -berok will link without error, but may produce a broken library. 12152 no_undefined_flag_CXX=' ${wl}-bernotok' 12153 allow_undefined_flag_CXX=' ${wl}-berok' 12154 if test "$with_gnu_ld" = yes; then 12155 # We only use this code for GNU lds that support --whole-archive. 12156 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12157 else 12158 # Exported symbols can be pulled into shared objects from archives 12159 whole_archive_flag_spec_CXX='$convenience' 12160 fi 12161 archive_cmds_need_lc_CXX=yes 12162 # This is similar to how AIX traditionally builds its shared 12163 # libraries. 12164 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' 12165 fi 12166 fi 12167 ;; 12168 12169 beos*) 12170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12171 allow_undefined_flag_CXX=unsupported 12172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12173 # support --undefined. This deserves some investigation. FIXME 12174 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12175 else 12176 ld_shlibs_CXX=no 12177 fi 12178 ;; 12179 12180 chorus*) 12181 case $cc_basename in 12182 *) 12183 # FIXME: insert proper C++ library support 12184 ld_shlibs_CXX=no 12185 ;; 12186 esac 12187 ;; 12188 12189 cygwin* | mingw* | pw32* | cegcc*) 12190 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12191 # as there is no search path for DLLs. 12192 hardcode_libdir_flag_spec_CXX='-L$libdir' 12193 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12194 allow_undefined_flag_CXX=unsupported 12195 always_export_symbols_CXX=no 12196 enable_shared_with_static_runtimes_CXX=yes 12197 12198 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12199 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' 12200 # If the export-symbols file already is a .def file (1st line 12201 # is EXPORTS), use it as is; otherwise, prepend... 12202 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12203 cp $export_symbols $output_objdir/$soname.def; 12204 else 12205 echo EXPORTS > $output_objdir/$soname.def; 12206 cat $export_symbols >> $output_objdir/$soname.def; 12207 fi~ 12208 $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' 12209 else 12210 ld_shlibs_CXX=no 12211 fi 12212 ;; 12213 darwin* | rhapsody*) 12214 12215 12216 archive_cmds_need_lc_CXX=no 12217 hardcode_direct_CXX=no 12218 hardcode_automatic_CXX=yes 12219 hardcode_shlibpath_var_CXX=unsupported 12220 if test "$lt_cv_ld_force_load" = "yes"; then 12221 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\"`' 12222 else 12223 whole_archive_flag_spec_CXX='' 12224 fi 12225 link_all_deplibs_CXX=yes 12226 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12227 case $cc_basename in 12228 ifort*) _lt_dar_can_shared=yes ;; 12229 *) _lt_dar_can_shared=$GCC ;; 12230 esac 12231 if test "$_lt_dar_can_shared" = "yes"; then 12232 output_verbose_link_cmd=func_echo_all 12233 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}" 12234 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12235 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}" 12236 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}" 12237 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12238 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}" 12239 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}" 12240 fi 12241 12242 else 12243 ld_shlibs_CXX=no 12244 fi 12245 12246 ;; 12247 12248 dgux*) 12249 case $cc_basename in 12250 ec++*) 12251 # FIXME: insert proper C++ library support 12252 ld_shlibs_CXX=no 12253 ;; 12254 ghcx*) 12255 # Green Hills C++ Compiler 12256 # FIXME: insert proper C++ library support 12257 ld_shlibs_CXX=no 12258 ;; 12259 *) 12260 # FIXME: insert proper C++ library support 12261 ld_shlibs_CXX=no 12262 ;; 12263 esac 12264 ;; 12265 12266 freebsd2.*) 12267 # C++ shared libraries reported to be fairly broken before 12268 # switch to ELF 12269 ld_shlibs_CXX=no 12270 ;; 12271 12272 freebsd-elf*) 12273 archive_cmds_need_lc_CXX=no 12274 ;; 12275 12276 freebsd* | dragonfly*) 12277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12278 # conventions 12279 ld_shlibs_CXX=yes 12280 ;; 12281 12282 gnu*) 12283 ;; 12284 12285 haiku*) 12286 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12287 link_all_deplibs_CXX=yes 12288 ;; 12289 12290 hpux9*) 12291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12292 hardcode_libdir_separator_CXX=: 12293 export_dynamic_flag_spec_CXX='${wl}-E' 12294 hardcode_direct_CXX=yes 12295 hardcode_minus_L_CXX=yes # Not in the search PATH, 12296 # but as the default 12297 # location of the library. 12298 12299 case $cc_basename in 12300 CC*) 12301 # FIXME: insert proper C++ library support 12302 ld_shlibs_CXX=no 12303 ;; 12304 aCC*) 12305 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' 12306 # Commands to make compiler produce verbose output that lists 12307 # what "hidden" libraries, object files and flags are used when 12308 # linking a shared library. 12309 # 12310 # There doesn't appear to be a way to prevent this compiler from 12311 # explicitly linking system object files so we need to strip them 12312 # from the output so that they don't get included in the library 12313 # dependencies. 12314 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"' 12315 ;; 12316 *) 12317 if test "$GXX" = yes; then 12318 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' 12319 else 12320 # FIXME: insert proper C++ library support 12321 ld_shlibs_CXX=no 12322 fi 12323 ;; 12324 esac 12325 ;; 12326 12327 hpux10*|hpux11*) 12328 if test $with_gnu_ld = no; then 12329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12330 hardcode_libdir_separator_CXX=: 12331 12332 case $host_cpu in 12333 hppa*64*|ia64*) 12334 ;; 12335 *) 12336 export_dynamic_flag_spec_CXX='${wl}-E' 12337 ;; 12338 esac 12339 fi 12340 case $host_cpu in 12341 hppa*64*|ia64*) 12342 hardcode_direct_CXX=no 12343 hardcode_shlibpath_var_CXX=no 12344 ;; 12345 *) 12346 hardcode_direct_CXX=yes 12347 hardcode_direct_absolute_CXX=yes 12348 hardcode_minus_L_CXX=yes # Not in the search PATH, 12349 # but as the default 12350 # location of the library. 12351 ;; 12352 esac 12353 12354 case $cc_basename in 12355 CC*) 12356 # FIXME: insert proper C++ library support 12357 ld_shlibs_CXX=no 12358 ;; 12359 aCC*) 12360 case $host_cpu in 12361 hppa*64*) 12362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12363 ;; 12364 ia64*) 12365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12366 ;; 12367 *) 12368 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12369 ;; 12370 esac 12371 # Commands to make compiler produce verbose output that lists 12372 # what "hidden" libraries, object files and flags are used when 12373 # linking a shared library. 12374 # 12375 # There doesn't appear to be a way to prevent this compiler from 12376 # explicitly linking system object files so we need to strip them 12377 # from the output so that they don't get included in the library 12378 # dependencies. 12379 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"' 12380 ;; 12381 *) 12382 if test "$GXX" = yes; then 12383 if test $with_gnu_ld = no; then 12384 case $host_cpu in 12385 hppa*64*) 12386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12387 ;; 12388 ia64*) 12389 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12390 ;; 12391 *) 12392 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' 12393 ;; 12394 esac 12395 fi 12396 else 12397 # FIXME: insert proper C++ library support 12398 ld_shlibs_CXX=no 12399 fi 12400 ;; 12401 esac 12402 ;; 12403 12404 interix[3-9]*) 12405 hardcode_direct_CXX=no 12406 hardcode_shlibpath_var_CXX=no 12407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12408 export_dynamic_flag_spec_CXX='${wl}-E' 12409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12410 # Instead, shared libraries are loaded at an image base (0x10000000 by 12411 # default) and relocated if they conflict, which is a slow very memory 12412 # consuming and fragmenting process. To avoid this, we pick a random, 12413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12414 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12415 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' 12416 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' 12417 ;; 12418 irix5* | irix6*) 12419 case $cc_basename in 12420 CC*) 12421 # SGI C++ 12422 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' 12423 12424 # Archives containing C++ object files must be created using 12425 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12426 # necessary to make sure instantiated templates are included 12427 # in the archive. 12428 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12429 ;; 12430 *) 12431 if test "$GXX" = yes; then 12432 if test "$with_gnu_ld" = no; then 12433 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' 12434 else 12435 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' 12436 fi 12437 fi 12438 link_all_deplibs_CXX=yes 12439 ;; 12440 esac 12441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12442 hardcode_libdir_separator_CXX=: 12443 inherit_rpath_CXX=yes 12444 ;; 12445 12446 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12447 case $cc_basename in 12448 KCC*) 12449 # Kuck and Associates, Inc. (KAI) C++ Compiler 12450 12451 # KCC will only create a shared library if the output file 12452 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12453 # to its proper name (with version) after linking. 12454 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' 12455 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' 12456 # Commands to make compiler produce verbose output that lists 12457 # what "hidden" libraries, object files and flags are used when 12458 # linking a shared library. 12459 # 12460 # There doesn't appear to be a way to prevent this compiler from 12461 # explicitly linking system object files so we need to strip them 12462 # from the output so that they don't get included in the library 12463 # dependencies. 12464 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"' 12465 12466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12468 12469 # Archives containing C++ object files must be created using 12470 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12471 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12472 ;; 12473 icpc* | ecpc* ) 12474 # Intel C++ 12475 with_gnu_ld=yes 12476 # version 8.0 and above of icpc choke on multiply defined symbols 12477 # if we add $predep_objects and $postdep_objects, however 7.1 and 12478 # earlier do not add the objects themselves. 12479 case `$CC -V 2>&1` in 12480 *"Version 7."*) 12481 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12482 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' 12483 ;; 12484 *) # Version 8.0 or newer 12485 tmp_idyn= 12486 case $host_cpu in 12487 ia64*) tmp_idyn=' -i_dynamic';; 12488 esac 12489 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12490 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' 12491 ;; 12492 esac 12493 archive_cmds_need_lc_CXX=no 12494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12496 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12497 ;; 12498 pgCC* | pgcpp*) 12499 # Portland Group C++ compiler 12500 case `$CC -V` in 12501 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12502 prelink_cmds_CXX='tpldir=Template.dir~ 12503 rm -rf $tpldir~ 12504 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12505 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12506 old_archive_cmds_CXX='tpldir=Template.dir~ 12507 rm -rf $tpldir~ 12508 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12509 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12510 $RANLIB $oldlib' 12511 archive_cmds_CXX='tpldir=Template.dir~ 12512 rm -rf $tpldir~ 12513 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12514 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12515 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12516 rm -rf $tpldir~ 12517 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12518 $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' 12519 ;; 12520 *) # Version 6 and above use weak symbols 12521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12522 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' 12523 ;; 12524 esac 12525 12526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12528 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' 12529 ;; 12530 cxx*) 12531 # Compaq C++ 12532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12533 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' 12534 12535 runpath_var=LD_RUN_PATH 12536 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12537 hardcode_libdir_separator_CXX=: 12538 12539 # Commands to make compiler produce verbose output that lists 12540 # what "hidden" libraries, object files and flags are used when 12541 # linking a shared library. 12542 # 12543 # There doesn't appear to be a way to prevent this compiler from 12544 # explicitly linking system object files so we need to strip them 12545 # from the output so that they don't get included in the library 12546 # dependencies. 12547 output_verbose_link_cmd='templist=`$CC -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' 12548 ;; 12549 xl* | mpixl* | bgxl*) 12550 # IBM XL 8.0 on PPC, with GNU ld 12551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12553 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12554 if test "x$supports_anon_versioning" = xyes; then 12555 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12557 echo "local: *; };" >> $output_objdir/$libname.ver~ 12558 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12559 fi 12560 ;; 12561 *) 12562 case `$CC -V 2>&1 | sed 5q` in 12563 *Sun\ C*) 12564 # Sun C++ 5.9 12565 no_undefined_flag_CXX=' -zdefs' 12566 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12567 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' 12568 hardcode_libdir_flag_spec_CXX='-R$libdir' 12569 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' 12570 compiler_needs_object_CXX=yes 12571 12572 # Not sure whether something based on 12573 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12574 # would be better. 12575 output_verbose_link_cmd='func_echo_all' 12576 12577 # Archives containing C++ object files must be created using 12578 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12579 # necessary to make sure instantiated templates are included 12580 # in the archive. 12581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12582 ;; 12583 esac 12584 ;; 12585 esac 12586 ;; 12587 12588 lynxos*) 12589 # FIXME: insert proper C++ library support 12590 ld_shlibs_CXX=no 12591 ;; 12592 12593 m88k*) 12594 # FIXME: insert proper C++ library support 12595 ld_shlibs_CXX=no 12596 ;; 12597 12598 mvs*) 12599 case $cc_basename in 12600 cxx*) 12601 # FIXME: insert proper C++ library support 12602 ld_shlibs_CXX=no 12603 ;; 12604 *) 12605 # FIXME: insert proper C++ library support 12606 ld_shlibs_CXX=no 12607 ;; 12608 esac 12609 ;; 12610 12611 netbsd*) 12612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12614 wlarc= 12615 hardcode_libdir_flag_spec_CXX='-R$libdir' 12616 hardcode_direct_CXX=yes 12617 hardcode_shlibpath_var_CXX=no 12618 fi 12619 # Workaround some broken pre-1.5 toolchains 12620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12621 ;; 12622 12623 *nto* | *qnx*) 12624 ld_shlibs_CXX=yes 12625 ;; 12626 12627 openbsd2*) 12628 # C++ shared libraries are fairly broken 12629 ld_shlibs_CXX=no 12630 ;; 12631 12632 openbsd*) 12633 if test -f /usr/libexec/ld.so; then 12634 hardcode_direct_CXX=yes 12635 hardcode_shlibpath_var_CXX=no 12636 hardcode_direct_absolute_CXX=yes 12637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12641 export_dynamic_flag_spec_CXX='${wl}-E' 12642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12643 fi 12644 output_verbose_link_cmd=func_echo_all 12645 else 12646 ld_shlibs_CXX=no 12647 fi 12648 ;; 12649 12650 osf3* | osf4* | osf5*) 12651 case $cc_basename in 12652 KCC*) 12653 # Kuck and Associates, Inc. (KAI) C++ Compiler 12654 12655 # KCC will only create a shared library if the output file 12656 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12657 # to its proper name (with version) after linking. 12658 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' 12659 12660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12661 hardcode_libdir_separator_CXX=: 12662 12663 # Archives containing C++ object files must be created using 12664 # the KAI C++ compiler. 12665 case $host in 12666 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12667 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12668 esac 12669 ;; 12670 RCC*) 12671 # Rational C++ 2.4.1 12672 # FIXME: insert proper C++ library support 12673 ld_shlibs_CXX=no 12674 ;; 12675 cxx*) 12676 case $host in 12677 osf3*) 12678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12679 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' 12680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12681 ;; 12682 *) 12683 allow_undefined_flag_CXX=' -expect_unresolved \*' 12684 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' 12685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12686 echo "-hidden">> $lib.exp~ 12687 $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~ 12688 $RM $lib.exp' 12689 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12690 ;; 12691 esac 12692 12693 hardcode_libdir_separator_CXX=: 12694 12695 # Commands to make compiler produce verbose output that lists 12696 # what "hidden" libraries, object files and flags are used when 12697 # linking a shared library. 12698 # 12699 # There doesn't appear to be a way to prevent this compiler from 12700 # explicitly linking system object files so we need to strip them 12701 # from the output so that they don't get included in the library 12702 # dependencies. 12703 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"' 12704 ;; 12705 *) 12706 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12708 case $host in 12709 osf3*) 12710 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' 12711 ;; 12712 *) 12713 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' 12714 ;; 12715 esac 12716 12717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12718 hardcode_libdir_separator_CXX=: 12719 12720 # Commands to make compiler produce verbose output that lists 12721 # what "hidden" libraries, object files and flags are used when 12722 # linking a shared library. 12723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12724 12725 else 12726 # FIXME: insert proper C++ library support 12727 ld_shlibs_CXX=no 12728 fi 12729 ;; 12730 esac 12731 ;; 12732 12733 psos*) 12734 # FIXME: insert proper C++ library support 12735 ld_shlibs_CXX=no 12736 ;; 12737 12738 sunos4*) 12739 case $cc_basename in 12740 CC*) 12741 # Sun C++ 4.x 12742 # FIXME: insert proper C++ library support 12743 ld_shlibs_CXX=no 12744 ;; 12745 lcc*) 12746 # Lucid 12747 # FIXME: insert proper C++ library support 12748 ld_shlibs_CXX=no 12749 ;; 12750 *) 12751 # FIXME: insert proper C++ library support 12752 ld_shlibs_CXX=no 12753 ;; 12754 esac 12755 ;; 12756 12757 solaris*) 12758 case $cc_basename in 12759 CC*) 12760 # Sun C++ 4.2, 5.x and Centerline C++ 12761 archive_cmds_need_lc_CXX=yes 12762 no_undefined_flag_CXX=' -zdefs' 12763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12765 $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' 12766 12767 hardcode_libdir_flag_spec_CXX='-R$libdir' 12768 hardcode_shlibpath_var_CXX=no 12769 case $host_os in 12770 solaris2.[0-5] | solaris2.[0-5].*) ;; 12771 *) 12772 # The compiler driver will combine and reorder linker options, 12773 # but understands `-z linker_flag'. 12774 # Supported since Solaris 2.6 (maybe 2.5.1?) 12775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12776 ;; 12777 esac 12778 link_all_deplibs_CXX=yes 12779 12780 output_verbose_link_cmd='func_echo_all' 12781 12782 # Archives containing C++ object files must be created using 12783 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12784 # necessary to make sure instantiated templates are included 12785 # in the archive. 12786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12787 ;; 12788 gcx*) 12789 # Green Hills C++ Compiler 12790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12791 12792 # The C++ compiler must be used to create the archive. 12793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12794 ;; 12795 *) 12796 # GNU C++ compiler with Solaris linker 12797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12799 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12800 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12801 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12802 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12803 12804 # Commands to make compiler produce verbose output that lists 12805 # what "hidden" libraries, object files and flags are used when 12806 # linking a shared library. 12807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12808 else 12809 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12810 # platform. 12811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12814 12815 # Commands to make compiler produce verbose output that lists 12816 # what "hidden" libraries, object files and flags are used when 12817 # linking a shared library. 12818 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12819 fi 12820 12821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12822 case $host_os in 12823 solaris2.[0-5] | solaris2.[0-5].*) ;; 12824 *) 12825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12826 ;; 12827 esac 12828 fi 12829 ;; 12830 esac 12831 ;; 12832 12833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12834 no_undefined_flag_CXX='${wl}-z,text' 12835 archive_cmds_need_lc_CXX=no 12836 hardcode_shlibpath_var_CXX=no 12837 runpath_var='LD_RUN_PATH' 12838 12839 case $cc_basename in 12840 CC*) 12841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12843 ;; 12844 *) 12845 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12846 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12847 ;; 12848 esac 12849 ;; 12850 12851 sysv5* | sco3.2v5* | sco5v6*) 12852 # Note: We can NOT use -z defs as we might desire, because we do not 12853 # link with -lc, and that would cause any symbols used from libc to 12854 # always be unresolved, which means just about no library would 12855 # ever link correctly. If we're not using GNU ld we use -z text 12856 # though, which does catch some bad symbols but isn't as heavy-handed 12857 # as -z defs. 12858 no_undefined_flag_CXX='${wl}-z,text' 12859 allow_undefined_flag_CXX='${wl}-z,nodefs' 12860 archive_cmds_need_lc_CXX=no 12861 hardcode_shlibpath_var_CXX=no 12862 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12863 hardcode_libdir_separator_CXX=':' 12864 link_all_deplibs_CXX=yes 12865 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12866 runpath_var='LD_RUN_PATH' 12867 12868 case $cc_basename in 12869 CC*) 12870 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12871 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12872 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12873 '"$old_archive_cmds_CXX" 12874 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12875 '"$reload_cmds_CXX" 12876 ;; 12877 *) 12878 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12879 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12880 ;; 12881 esac 12882 ;; 12883 12884 tandem*) 12885 case $cc_basename in 12886 NCC*) 12887 # NonStop-UX NCC 3.20 12888 # FIXME: insert proper C++ library support 12889 ld_shlibs_CXX=no 12890 ;; 12891 *) 12892 # FIXME: insert proper C++ library support 12893 ld_shlibs_CXX=no 12894 ;; 12895 esac 12896 ;; 12897 12898 vxworks*) 12899 # FIXME: insert proper C++ library support 12900 ld_shlibs_CXX=no 12901 ;; 12902 12903 *) 12904 # FIXME: insert proper C++ library support 12905 ld_shlibs_CXX=no 12906 ;; 12907 esac 12908 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12910$as_echo "$ld_shlibs_CXX" >&6; } 12911 test "$ld_shlibs_CXX" = no && can_build_shared=no 12912 12913 GCC_CXX="$GXX" 12914 LD_CXX="$LD" 12915 12916 ## CAVEAT EMPTOR: 12917 ## There is no encapsulation within the following macros, do not change 12918 ## the running order or otherwise move them around unless you know exactly 12919 ## what you are doing... 12920 # Dependencies to place before and after the object being linked: 12921predep_objects_CXX= 12922postdep_objects_CXX= 12923predeps_CXX= 12924postdeps_CXX= 12925compiler_lib_search_path_CXX= 12926 12927cat > conftest.$ac_ext <<_LT_EOF 12928class Foo 12929{ 12930public: 12931 Foo (void) { a = 0; } 12932private: 12933 int a; 12934}; 12935_LT_EOF 12936 12937if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12938 (eval $ac_compile) 2>&5 12939 ac_status=$? 12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12941 test $ac_status = 0; }; then 12942 # Parse the compiler output and extract the necessary 12943 # objects, libraries and library flags. 12944 12945 # Sentinel used to keep track of whether or not we are before 12946 # the conftest object file. 12947 pre_test_object_deps_done=no 12948 12949 for p in `eval "$output_verbose_link_cmd"`; do 12950 case $p in 12951 12952 -L* | -R* | -l*) 12953 # Some compilers place space between "-{L,R}" and the path. 12954 # Remove the space. 12955 if test $p = "-L" || 12956 test $p = "-R"; then 12957 prev=$p 12958 continue 12959 else 12960 prev= 12961 fi 12962 12963 if test "$pre_test_object_deps_done" = no; then 12964 case $p in 12965 -L* | -R*) 12966 # Internal compiler library paths should come after those 12967 # provided the user. The postdeps already come after the 12968 # user supplied libs so there is no need to process them. 12969 if test -z "$compiler_lib_search_path_CXX"; then 12970 compiler_lib_search_path_CXX="${prev}${p}" 12971 else 12972 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12973 fi 12974 ;; 12975 # The "-l" case would never come before the object being 12976 # linked, so don't bother handling this case. 12977 esac 12978 else 12979 if test -z "$postdeps_CXX"; then 12980 postdeps_CXX="${prev}${p}" 12981 else 12982 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12983 fi 12984 fi 12985 ;; 12986 12987 *.$objext) 12988 # This assumes that the test object file only shows up 12989 # once in the compiler output. 12990 if test "$p" = "conftest.$objext"; then 12991 pre_test_object_deps_done=yes 12992 continue 12993 fi 12994 12995 if test "$pre_test_object_deps_done" = no; then 12996 if test -z "$predep_objects_CXX"; then 12997 predep_objects_CXX="$p" 12998 else 12999 predep_objects_CXX="$predep_objects_CXX $p" 13000 fi 13001 else 13002 if test -z "$postdep_objects_CXX"; then 13003 postdep_objects_CXX="$p" 13004 else 13005 postdep_objects_CXX="$postdep_objects_CXX $p" 13006 fi 13007 fi 13008 ;; 13009 13010 *) ;; # Ignore the rest. 13011 13012 esac 13013 done 13014 13015 # Clean up. 13016 rm -f a.out a.exe 13017else 13018 echo "libtool.m4: error: problem compiling CXX test program" 13019fi 13020 13021$RM -f confest.$objext 13022 13023# PORTME: override above test on systems where it is broken 13024case $host_os in 13025interix[3-9]*) 13026 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13027 # hack all around it, let's just trust "g++" to DTRT. 13028 predep_objects_CXX= 13029 postdep_objects_CXX= 13030 postdeps_CXX= 13031 ;; 13032 13033linux*) 13034 case `$CC -V 2>&1 | sed 5q` in 13035 *Sun\ C*) 13036 # Sun C++ 5.9 13037 13038 # The more standards-conforming stlport4 library is 13039 # incompatible with the Cstd library. Avoid specifying 13040 # it if it's in CXXFLAGS. Ignore libCrun as 13041 # -library=stlport4 depends on it. 13042 case " $CXX $CXXFLAGS " in 13043 *" -library=stlport4 "*) 13044 solaris_use_stlport4=yes 13045 ;; 13046 esac 13047 13048 if test "$solaris_use_stlport4" != yes; then 13049 postdeps_CXX='-library=Cstd -library=Crun' 13050 fi 13051 ;; 13052 esac 13053 ;; 13054 13055solaris*) 13056 case $cc_basename in 13057 CC*) 13058 # The more standards-conforming stlport4 library is 13059 # incompatible with the Cstd library. Avoid specifying 13060 # it if it's in CXXFLAGS. Ignore libCrun as 13061 # -library=stlport4 depends on it. 13062 case " $CXX $CXXFLAGS " in 13063 *" -library=stlport4 "*) 13064 solaris_use_stlport4=yes 13065 ;; 13066 esac 13067 13068 # Adding this requires a known-good setup of shared libraries for 13069 # Sun compiler versions before 5.6, else PIC objects from an old 13070 # archive will be linked into the output, leading to subtle bugs. 13071 if test "$solaris_use_stlport4" != yes; then 13072 postdeps_CXX='-library=Cstd -library=Crun' 13073 fi 13074 ;; 13075 esac 13076 ;; 13077esac 13078 13079 13080case " $postdeps_CXX " in 13081*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13082esac 13083 compiler_lib_search_dirs_CXX= 13084if test -n "${compiler_lib_search_path_CXX}"; then 13085 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13086fi 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 lt_prog_compiler_wl_CXX= 13119lt_prog_compiler_pic_CXX= 13120lt_prog_compiler_static_CXX= 13121 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13123$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13124 13125 # C++ specific cases for pic, static, wl, etc. 13126 if test "$GXX" = yes; then 13127 lt_prog_compiler_wl_CXX='-Wl,' 13128 lt_prog_compiler_static_CXX='-static' 13129 13130 case $host_os in 13131 aix*) 13132 # All AIX code is PIC. 13133 if test "$host_cpu" = ia64; then 13134 # AIX 5 now supports IA64 processor 13135 lt_prog_compiler_static_CXX='-Bstatic' 13136 fi 13137 lt_prog_compiler_pic_CXX='-fPIC' 13138 ;; 13139 13140 amigaos*) 13141 case $host_cpu in 13142 powerpc) 13143 # see comment about AmigaOS4 .so support 13144 lt_prog_compiler_pic_CXX='-fPIC' 13145 ;; 13146 m68k) 13147 # FIXME: we need at least 68020 code to build shared libraries, but 13148 # adding the `-m68020' flag to GCC prevents building anything better, 13149 # like `-m68040'. 13150 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13151 ;; 13152 esac 13153 ;; 13154 13155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13156 # PIC is the default for these OSes. 13157 ;; 13158 mingw* | cygwin* | os2* | pw32* | cegcc*) 13159 # This hack is so that the source file can tell whether it is being 13160 # built for inclusion in a dll (and should export symbols for example). 13161 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13162 # (--disable-auto-import) libraries 13163 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13164 ;; 13165 darwin* | rhapsody*) 13166 # PIC is the default on this platform 13167 # Common symbols not allowed in MH_DYLIB files 13168 lt_prog_compiler_pic_CXX='-fno-common' 13169 ;; 13170 *djgpp*) 13171 # DJGPP does not support shared libraries at all 13172 lt_prog_compiler_pic_CXX= 13173 ;; 13174 haiku*) 13175 # PIC is the default for Haiku. 13176 # The "-static" flag exists, but is broken. 13177 lt_prog_compiler_static_CXX= 13178 ;; 13179 interix[3-9]*) 13180 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13181 # Instead, we relocate shared libraries at runtime. 13182 ;; 13183 sysv4*MP*) 13184 if test -d /usr/nec; then 13185 lt_prog_compiler_pic_CXX=-Kconform_pic 13186 fi 13187 ;; 13188 hpux*) 13189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13191 # sets the default TLS model and affects inlining. 13192 case $host_cpu in 13193 hppa*64*) 13194 ;; 13195 *) 13196 lt_prog_compiler_pic_CXX='-fPIC' 13197 ;; 13198 esac 13199 ;; 13200 *qnx* | *nto*) 13201 # QNX uses GNU C++, but need to define -shared option too, otherwise 13202 # it will coredump. 13203 lt_prog_compiler_pic_CXX='-fPIC -shared' 13204 ;; 13205 *) 13206 lt_prog_compiler_pic_CXX='-fPIC' 13207 ;; 13208 esac 13209 else 13210 case $host_os in 13211 aix[4-9]*) 13212 # All AIX code is PIC. 13213 if test "$host_cpu" = ia64; then 13214 # AIX 5 now supports IA64 processor 13215 lt_prog_compiler_static_CXX='-Bstatic' 13216 else 13217 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13218 fi 13219 ;; 13220 chorus*) 13221 case $cc_basename in 13222 cxch68*) 13223 # Green Hills C++ Compiler 13224 # _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" 13225 ;; 13226 esac 13227 ;; 13228 dgux*) 13229 case $cc_basename in 13230 ec++*) 13231 lt_prog_compiler_pic_CXX='-KPIC' 13232 ;; 13233 ghcx*) 13234 # Green Hills C++ Compiler 13235 lt_prog_compiler_pic_CXX='-pic' 13236 ;; 13237 *) 13238 ;; 13239 esac 13240 ;; 13241 freebsd* | dragonfly*) 13242 # FreeBSD uses GNU C++ 13243 ;; 13244 hpux9* | hpux10* | hpux11*) 13245 case $cc_basename in 13246 CC*) 13247 lt_prog_compiler_wl_CXX='-Wl,' 13248 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13249 if test "$host_cpu" != ia64; then 13250 lt_prog_compiler_pic_CXX='+Z' 13251 fi 13252 ;; 13253 aCC*) 13254 lt_prog_compiler_wl_CXX='-Wl,' 13255 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13256 case $host_cpu in 13257 hppa*64*|ia64*) 13258 # +Z the default 13259 ;; 13260 *) 13261 lt_prog_compiler_pic_CXX='+Z' 13262 ;; 13263 esac 13264 ;; 13265 *) 13266 ;; 13267 esac 13268 ;; 13269 interix*) 13270 # This is c89, which is MS Visual C++ (no shared libs) 13271 # Anyone wants to do a port? 13272 ;; 13273 irix5* | irix6* | nonstopux*) 13274 case $cc_basename in 13275 CC*) 13276 lt_prog_compiler_wl_CXX='-Wl,' 13277 lt_prog_compiler_static_CXX='-non_shared' 13278 # CC pic flag -KPIC is the default. 13279 ;; 13280 *) 13281 ;; 13282 esac 13283 ;; 13284 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13285 case $cc_basename in 13286 KCC*) 13287 # KAI C++ Compiler 13288 lt_prog_compiler_wl_CXX='--backend -Wl,' 13289 lt_prog_compiler_pic_CXX='-fPIC' 13290 ;; 13291 ecpc* ) 13292 # old Intel C++ for x86_64 which still supported -KPIC. 13293 lt_prog_compiler_wl_CXX='-Wl,' 13294 lt_prog_compiler_pic_CXX='-KPIC' 13295 lt_prog_compiler_static_CXX='-static' 13296 ;; 13297 icpc* ) 13298 # Intel C++, used to be incompatible with GCC. 13299 # ICC 10 doesn't accept -KPIC any more. 13300 lt_prog_compiler_wl_CXX='-Wl,' 13301 lt_prog_compiler_pic_CXX='-fPIC' 13302 lt_prog_compiler_static_CXX='-static' 13303 ;; 13304 pgCC* | pgcpp*) 13305 # Portland Group C++ compiler 13306 lt_prog_compiler_wl_CXX='-Wl,' 13307 lt_prog_compiler_pic_CXX='-fpic' 13308 lt_prog_compiler_static_CXX='-Bstatic' 13309 ;; 13310 cxx*) 13311 # Compaq C++ 13312 # Make sure the PIC flag is empty. It appears that all Alpha 13313 # Linux and Compaq Tru64 Unix objects are PIC. 13314 lt_prog_compiler_pic_CXX= 13315 lt_prog_compiler_static_CXX='-non_shared' 13316 ;; 13317 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13318 # IBM XL 8.0, 9.0 on PPC and BlueGene 13319 lt_prog_compiler_wl_CXX='-Wl,' 13320 lt_prog_compiler_pic_CXX='-qpic' 13321 lt_prog_compiler_static_CXX='-qstaticlink' 13322 ;; 13323 *) 13324 case `$CC -V 2>&1 | sed 5q` in 13325 *Sun\ C*) 13326 # Sun C++ 5.9 13327 lt_prog_compiler_pic_CXX='-KPIC' 13328 lt_prog_compiler_static_CXX='-Bstatic' 13329 lt_prog_compiler_wl_CXX='-Qoption ld ' 13330 ;; 13331 esac 13332 ;; 13333 esac 13334 ;; 13335 lynxos*) 13336 ;; 13337 m88k*) 13338 ;; 13339 mvs*) 13340 case $cc_basename in 13341 cxx*) 13342 lt_prog_compiler_pic_CXX='-W c,exportall' 13343 ;; 13344 *) 13345 ;; 13346 esac 13347 ;; 13348 netbsd*) 13349 ;; 13350 *qnx* | *nto*) 13351 # QNX uses GNU C++, but need to define -shared option too, otherwise 13352 # it will coredump. 13353 lt_prog_compiler_pic_CXX='-fPIC -shared' 13354 ;; 13355 osf3* | osf4* | osf5*) 13356 case $cc_basename in 13357 KCC*) 13358 lt_prog_compiler_wl_CXX='--backend -Wl,' 13359 ;; 13360 RCC*) 13361 # Rational C++ 2.4.1 13362 lt_prog_compiler_pic_CXX='-pic' 13363 ;; 13364 cxx*) 13365 # Digital/Compaq C++ 13366 lt_prog_compiler_wl_CXX='-Wl,' 13367 # Make sure the PIC flag is empty. It appears that all Alpha 13368 # Linux and Compaq Tru64 Unix objects are PIC. 13369 lt_prog_compiler_pic_CXX= 13370 lt_prog_compiler_static_CXX='-non_shared' 13371 ;; 13372 *) 13373 ;; 13374 esac 13375 ;; 13376 psos*) 13377 ;; 13378 solaris*) 13379 case $cc_basename in 13380 CC*) 13381 # Sun C++ 4.2, 5.x and Centerline C++ 13382 lt_prog_compiler_pic_CXX='-KPIC' 13383 lt_prog_compiler_static_CXX='-Bstatic' 13384 lt_prog_compiler_wl_CXX='-Qoption ld ' 13385 ;; 13386 gcx*) 13387 # Green Hills C++ Compiler 13388 lt_prog_compiler_pic_CXX='-PIC' 13389 ;; 13390 *) 13391 ;; 13392 esac 13393 ;; 13394 sunos4*) 13395 case $cc_basename in 13396 CC*) 13397 # Sun C++ 4.x 13398 lt_prog_compiler_pic_CXX='-pic' 13399 lt_prog_compiler_static_CXX='-Bstatic' 13400 ;; 13401 lcc*) 13402 # Lucid 13403 lt_prog_compiler_pic_CXX='-pic' 13404 ;; 13405 *) 13406 ;; 13407 esac 13408 ;; 13409 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13410 case $cc_basename in 13411 CC*) 13412 lt_prog_compiler_wl_CXX='-Wl,' 13413 lt_prog_compiler_pic_CXX='-KPIC' 13414 lt_prog_compiler_static_CXX='-Bstatic' 13415 ;; 13416 esac 13417 ;; 13418 tandem*) 13419 case $cc_basename in 13420 NCC*) 13421 # NonStop-UX NCC 3.20 13422 lt_prog_compiler_pic_CXX='-KPIC' 13423 ;; 13424 *) 13425 ;; 13426 esac 13427 ;; 13428 vxworks*) 13429 ;; 13430 *) 13431 lt_prog_compiler_can_build_shared_CXX=no 13432 ;; 13433 esac 13434 fi 13435 13436case $host_os in 13437 # For platforms which do not support PIC, -DPIC is meaningless: 13438 *djgpp*) 13439 lt_prog_compiler_pic_CXX= 13440 ;; 13441 *) 13442 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13443 ;; 13444esac 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13446$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13447 13448 13449 13450# 13451# Check to make sure the PIC flag actually works. 13452# 13453if test -n "$lt_prog_compiler_pic_CXX"; then 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13455$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13456if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 lt_cv_prog_compiler_pic_works_CXX=no 13460 ac_outfile=conftest.$ac_objext 13461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13462 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13463 # Insert the option either (1) after the last *FLAGS variable, or 13464 # (2) before a word containing "conftest.", or (3) at the end. 13465 # Note that $ac_compile itself does not contain backslashes and begins 13466 # with a dollar sign (not a hyphen), so the echo should work correctly. 13467 # The option is referenced via a variable to avoid confusing sed. 13468 lt_compile=`echo "$ac_compile" | $SED \ 13469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13471 -e 's:$: $lt_compiler_flag:'` 13472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13473 (eval "$lt_compile" 2>conftest.err) 13474 ac_status=$? 13475 cat conftest.err >&5 13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13477 if (exit $ac_status) && test -s "$ac_outfile"; then 13478 # The compiler can only warn and ignore the option if not recognized 13479 # So say no if there are warnings other than the usual output. 13480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13483 lt_cv_prog_compiler_pic_works_CXX=yes 13484 fi 13485 fi 13486 $RM conftest* 13487 13488fi 13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13490$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13491 13492if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13493 case $lt_prog_compiler_pic_CXX in 13494 "" | " "*) ;; 13495 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13496 esac 13497else 13498 lt_prog_compiler_pic_CXX= 13499 lt_prog_compiler_can_build_shared_CXX=no 13500fi 13501 13502fi 13503 13504 13505 13506# 13507# Check to make sure the static flag actually works. 13508# 13509wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13511$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13512if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13513 $as_echo_n "(cached) " >&6 13514else 13515 lt_cv_prog_compiler_static_works_CXX=no 13516 save_LDFLAGS="$LDFLAGS" 13517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13518 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13520 # The linker can only warn and ignore the option if not recognized 13521 # So say no if there are warnings 13522 if test -s conftest.err; then 13523 # Append any errors to the config.log. 13524 cat conftest.err 1>&5 13525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13527 if diff conftest.exp conftest.er2 >/dev/null; then 13528 lt_cv_prog_compiler_static_works_CXX=yes 13529 fi 13530 else 13531 lt_cv_prog_compiler_static_works_CXX=yes 13532 fi 13533 fi 13534 $RM -r conftest* 13535 LDFLAGS="$save_LDFLAGS" 13536 13537fi 13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13539$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13540 13541if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13542 : 13543else 13544 lt_prog_compiler_static_CXX= 13545fi 13546 13547 13548 13549 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13551$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13552if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13553 $as_echo_n "(cached) " >&6 13554else 13555 lt_cv_prog_compiler_c_o_CXX=no 13556 $RM -r conftest 2>/dev/null 13557 mkdir conftest 13558 cd conftest 13559 mkdir out 13560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13561 13562 lt_compiler_flag="-o out/conftest2.$ac_objext" 13563 # Insert the option either (1) after the last *FLAGS variable, or 13564 # (2) before a word containing "conftest.", or (3) at the end. 13565 # Note that $ac_compile itself does not contain backslashes and begins 13566 # with a dollar sign (not a hyphen), so the echo should work correctly. 13567 lt_compile=`echo "$ac_compile" | $SED \ 13568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13570 -e 's:$: $lt_compiler_flag:'` 13571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13572 (eval "$lt_compile" 2>out/conftest.err) 13573 ac_status=$? 13574 cat out/conftest.err >&5 13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13576 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13577 then 13578 # The compiler can only warn and ignore the option if not recognized 13579 # So say no if there are warnings 13580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13583 lt_cv_prog_compiler_c_o_CXX=yes 13584 fi 13585 fi 13586 chmod u+w . 2>&5 13587 $RM conftest* 13588 # SGI C++ compiler will create directory out/ii_files/ for 13589 # template instantiation 13590 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13591 $RM out/* && rmdir out 13592 cd .. 13593 $RM -r conftest 13594 $RM conftest* 13595 13596fi 13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13598$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13599 13600 13601 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13604if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13605 $as_echo_n "(cached) " >&6 13606else 13607 lt_cv_prog_compiler_c_o_CXX=no 13608 $RM -r conftest 2>/dev/null 13609 mkdir conftest 13610 cd conftest 13611 mkdir out 13612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13613 13614 lt_compiler_flag="-o out/conftest2.$ac_objext" 13615 # Insert the option either (1) after the last *FLAGS variable, or 13616 # (2) before a word containing "conftest.", or (3) at the end. 13617 # Note that $ac_compile itself does not contain backslashes and begins 13618 # with a dollar sign (not a hyphen), so the echo should work correctly. 13619 lt_compile=`echo "$ac_compile" | $SED \ 13620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13622 -e 's:$: $lt_compiler_flag:'` 13623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13624 (eval "$lt_compile" 2>out/conftest.err) 13625 ac_status=$? 13626 cat out/conftest.err >&5 13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13628 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13629 then 13630 # The compiler can only warn and ignore the option if not recognized 13631 # So say no if there are warnings 13632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13635 lt_cv_prog_compiler_c_o_CXX=yes 13636 fi 13637 fi 13638 chmod u+w . 2>&5 13639 $RM conftest* 13640 # SGI C++ compiler will create directory out/ii_files/ for 13641 # template instantiation 13642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13643 $RM out/* && rmdir out 13644 cd .. 13645 $RM -r conftest 13646 $RM conftest* 13647 13648fi 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13650$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13651 13652 13653 13654 13655hard_links="nottested" 13656if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13657 # do not overwrite the value of need_locks provided by the user 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13659$as_echo_n "checking if we can lock with hard links... " >&6; } 13660 hard_links=yes 13661 $RM conftest* 13662 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13663 touch conftest.a 13664 ln conftest.a conftest.b 2>&5 || hard_links=no 13665 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13667$as_echo "$hard_links" >&6; } 13668 if test "$hard_links" = no; then 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13670$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13671 need_locks=warn 13672 fi 13673else 13674 need_locks=no 13675fi 13676 13677 13678 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13680$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13681 13682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13683 case $host_os in 13684 aix[4-9]*) 13685 # If we're using GNU nm, then we don't want the "-C" option. 13686 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13687 # Also, AIX nm treats weak defined symbols like other global defined 13688 # symbols, whereas GNU nm marks them as "W". 13689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13690 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' 13691 else 13692 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' 13693 fi 13694 ;; 13695 pw32*) 13696 export_symbols_cmds_CXX="$ltdll_cmds" 13697 ;; 13698 cygwin* | mingw* | cegcc*) 13699 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' 13700 ;; 13701 *) 13702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13703 ;; 13704 esac 13705 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13706 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13708$as_echo "$ld_shlibs_CXX" >&6; } 13709test "$ld_shlibs_CXX" = no && can_build_shared=no 13710 13711with_gnu_ld_CXX=$with_gnu_ld 13712 13713 13714 13715 13716 13717 13718# 13719# Do we need to explicitly link libc? 13720# 13721case "x$archive_cmds_need_lc_CXX" in 13722x|xyes) 13723 # Assume -lc should be added 13724 archive_cmds_need_lc_CXX=yes 13725 13726 if test "$enable_shared" = yes && test "$GCC" = yes; then 13727 case $archive_cmds_CXX in 13728 *'~'*) 13729 # FIXME: we may have to deal with multi-command sequences. 13730 ;; 13731 '$CC '*) 13732 # Test whether the compiler implicitly links with -lc since on some 13733 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13734 # to ld, don't add -lc before -lgcc. 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13736$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13737if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 13738 $as_echo_n "(cached) " >&6 13739else 13740 $RM conftest* 13741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13742 13743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13744 (eval $ac_compile) 2>&5 13745 ac_status=$? 13746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13747 test $ac_status = 0; } 2>conftest.err; then 13748 soname=conftest 13749 lib=conftest 13750 libobjs=conftest.$ac_objext 13751 deplibs= 13752 wl=$lt_prog_compiler_wl_CXX 13753 pic_flag=$lt_prog_compiler_pic_CXX 13754 compiler_flags=-v 13755 linker_flags=-v 13756 verstring= 13757 output_objdir=. 13758 libname=conftest 13759 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13760 allow_undefined_flag_CXX= 13761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13762 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13763 ac_status=$? 13764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13765 test $ac_status = 0; } 13766 then 13767 lt_cv_archive_cmds_need_lc_CXX=no 13768 else 13769 lt_cv_archive_cmds_need_lc_CXX=yes 13770 fi 13771 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13772 else 13773 cat conftest.err 1>&5 13774 fi 13775 $RM conftest* 13776 13777fi 13778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13779$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13780 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13781 ;; 13782 esac 13783 fi 13784 ;; 13785esac 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13851$as_echo_n "checking dynamic linker characteristics... " >&6; } 13852 13853library_names_spec= 13854libname_spec='lib$name' 13855soname_spec= 13856shrext_cmds=".so" 13857postinstall_cmds= 13858postuninstall_cmds= 13859finish_cmds= 13860finish_eval= 13861shlibpath_var= 13862shlibpath_overrides_runpath=unknown 13863version_type=none 13864dynamic_linker="$host_os ld.so" 13865sys_lib_dlsearch_path_spec="/lib /usr/lib" 13866need_lib_prefix=unknown 13867hardcode_into_libs=no 13868 13869# when you set need_version to no, make sure it does not cause -set_version 13870# flags to be left without arguments 13871need_version=unknown 13872 13873case $host_os in 13874aix3*) 13875 version_type=linux 13876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13877 shlibpath_var=LIBPATH 13878 13879 # AIX 3 has no versioning support, so we append a major version to the name. 13880 soname_spec='${libname}${release}${shared_ext}$major' 13881 ;; 13882 13883aix[4-9]*) 13884 version_type=linux 13885 need_lib_prefix=no 13886 need_version=no 13887 hardcode_into_libs=yes 13888 if test "$host_cpu" = ia64; then 13889 # AIX 5 supports IA64 13890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13891 shlibpath_var=LD_LIBRARY_PATH 13892 else 13893 # With GCC up to 2.95.x, collect2 would create an import file 13894 # for dependence libraries. The import file would start with 13895 # the line `#! .'. This would cause the generated library to 13896 # depend on `.', always an invalid library. This was fixed in 13897 # development snapshots of GCC prior to 3.0. 13898 case $host_os in 13899 aix4 | aix4.[01] | aix4.[01].*) 13900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13901 echo ' yes ' 13902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13903 : 13904 else 13905 can_build_shared=no 13906 fi 13907 ;; 13908 esac 13909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13910 # soname into executable. Probably we can add versioning support to 13911 # collect2, so additional links can be useful in future. 13912 if test "$aix_use_runtimelinking" = yes; then 13913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13914 # instead of lib<name>.a to let people know that these are not 13915 # typical AIX shared libraries. 13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13917 else 13918 # We preserve .a as extension for shared libraries through AIX4.2 13919 # and later when we are not doing run time linking. 13920 library_names_spec='${libname}${release}.a $libname.a' 13921 soname_spec='${libname}${release}${shared_ext}$major' 13922 fi 13923 shlibpath_var=LIBPATH 13924 fi 13925 ;; 13926 13927amigaos*) 13928 case $host_cpu in 13929 powerpc) 13930 # Since July 2007 AmigaOS4 officially supports .so libraries. 13931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13933 ;; 13934 m68k) 13935 library_names_spec='$libname.ixlibrary $libname.a' 13936 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13937 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' 13938 ;; 13939 esac 13940 ;; 13941 13942beos*) 13943 library_names_spec='${libname}${shared_ext}' 13944 dynamic_linker="$host_os ld.so" 13945 shlibpath_var=LIBRARY_PATH 13946 ;; 13947 13948bsdi[45]*) 13949 version_type=linux 13950 need_version=no 13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13952 soname_spec='${libname}${release}${shared_ext}$major' 13953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13954 shlibpath_var=LD_LIBRARY_PATH 13955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13957 # the default ld.so.conf also contains /usr/contrib/lib and 13958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13959 # libtool to hard-code these into programs 13960 ;; 13961 13962cygwin* | mingw* | pw32* | cegcc*) 13963 version_type=windows 13964 shrext_cmds=".dll" 13965 need_version=no 13966 need_lib_prefix=no 13967 13968 case $GCC,$host_os in 13969 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13970 library_names_spec='$libname.dll.a' 13971 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13972 postinstall_cmds='base_file=`basename \${file}`~ 13973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13974 dldir=$destdir/`dirname \$dlpath`~ 13975 test -d \$dldir || mkdir -p \$dldir~ 13976 $install_prog $dir/$dlname \$dldir/$dlname~ 13977 chmod a+x \$dldir/$dlname~ 13978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13980 fi' 13981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13982 dlpath=$dir/\$dldll~ 13983 $RM \$dlpath' 13984 shlibpath_overrides_runpath=yes 13985 13986 case $host_os in 13987 cygwin*) 13988 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13990 13991 ;; 13992 mingw* | cegcc*) 13993 # MinGW DLLs use traditional 'lib' prefix 13994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13995 ;; 13996 pw32*) 13997 # pw32 DLLs use 'pw' prefix rather than 'lib' 13998 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13999 ;; 14000 esac 14001 ;; 14002 14003 *) 14004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14005 ;; 14006 esac 14007 dynamic_linker='Win32 ld.exe' 14008 # FIXME: first we should search . and the directory the executable is in 14009 shlibpath_var=PATH 14010 ;; 14011 14012darwin* | rhapsody*) 14013 dynamic_linker="$host_os dyld" 14014 version_type=darwin 14015 need_lib_prefix=no 14016 need_version=no 14017 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14018 soname_spec='${libname}${release}${major}$shared_ext' 14019 shlibpath_overrides_runpath=yes 14020 shlibpath_var=DYLD_LIBRARY_PATH 14021 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14022 14023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14024 ;; 14025 14026dgux*) 14027 version_type=linux 14028 need_lib_prefix=no 14029 need_version=no 14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14031 soname_spec='${libname}${release}${shared_ext}$major' 14032 shlibpath_var=LD_LIBRARY_PATH 14033 ;; 14034 14035freebsd* | dragonfly*) 14036 # DragonFly does not have aout. When/if they implement a new 14037 # versioning mechanism, adjust this. 14038 if test -x /usr/bin/objformat; then 14039 objformat=`/usr/bin/objformat` 14040 else 14041 case $host_os in 14042 freebsd[23].*) objformat=aout ;; 14043 *) objformat=elf ;; 14044 esac 14045 fi 14046 version_type=freebsd-$objformat 14047 case $version_type in 14048 freebsd-elf*) 14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14050 need_version=no 14051 need_lib_prefix=no 14052 ;; 14053 freebsd-*) 14054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14055 need_version=yes 14056 ;; 14057 esac 14058 shlibpath_var=LD_LIBRARY_PATH 14059 case $host_os in 14060 freebsd2.*) 14061 shlibpath_overrides_runpath=yes 14062 ;; 14063 freebsd3.[01]* | freebsdelf3.[01]*) 14064 shlibpath_overrides_runpath=yes 14065 hardcode_into_libs=yes 14066 ;; 14067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14069 shlibpath_overrides_runpath=no 14070 hardcode_into_libs=yes 14071 ;; 14072 *) # from 4.6 on, and DragonFly 14073 shlibpath_overrides_runpath=yes 14074 hardcode_into_libs=yes 14075 ;; 14076 esac 14077 ;; 14078 14079gnu*) 14080 version_type=linux 14081 need_lib_prefix=no 14082 need_version=no 14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14084 soname_spec='${libname}${release}${shared_ext}$major' 14085 shlibpath_var=LD_LIBRARY_PATH 14086 hardcode_into_libs=yes 14087 ;; 14088 14089haiku*) 14090 version_type=linux 14091 need_lib_prefix=no 14092 need_version=no 14093 dynamic_linker="$host_os runtime_loader" 14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14095 soname_spec='${libname}${release}${shared_ext}$major' 14096 shlibpath_var=LIBRARY_PATH 14097 shlibpath_overrides_runpath=yes 14098 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14099 hardcode_into_libs=yes 14100 ;; 14101 14102hpux9* | hpux10* | hpux11*) 14103 # Give a soname corresponding to the major version so that dld.sl refuses to 14104 # link against other versions. 14105 version_type=sunos 14106 need_lib_prefix=no 14107 need_version=no 14108 case $host_cpu in 14109 ia64*) 14110 shrext_cmds='.so' 14111 hardcode_into_libs=yes 14112 dynamic_linker="$host_os dld.so" 14113 shlibpath_var=LD_LIBRARY_PATH 14114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14116 soname_spec='${libname}${release}${shared_ext}$major' 14117 if test "X$HPUX_IA64_MODE" = X32; then 14118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14119 else 14120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14121 fi 14122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14123 ;; 14124 hppa*64*) 14125 shrext_cmds='.sl' 14126 hardcode_into_libs=yes 14127 dynamic_linker="$host_os dld.sl" 14128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14131 soname_spec='${libname}${release}${shared_ext}$major' 14132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14134 ;; 14135 *) 14136 shrext_cmds='.sl' 14137 dynamic_linker="$host_os dld.sl" 14138 shlibpath_var=SHLIB_PATH 14139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14141 soname_spec='${libname}${release}${shared_ext}$major' 14142 ;; 14143 esac 14144 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14145 postinstall_cmds='chmod 555 $lib' 14146 # or fails outright, so override atomically: 14147 install_override_mode=555 14148 ;; 14149 14150interix[3-9]*) 14151 version_type=linux 14152 need_lib_prefix=no 14153 need_version=no 14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14155 soname_spec='${libname}${release}${shared_ext}$major' 14156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14157 shlibpath_var=LD_LIBRARY_PATH 14158 shlibpath_overrides_runpath=no 14159 hardcode_into_libs=yes 14160 ;; 14161 14162irix5* | irix6* | nonstopux*) 14163 case $host_os in 14164 nonstopux*) version_type=nonstopux ;; 14165 *) 14166 if test "$lt_cv_prog_gnu_ld" = yes; then 14167 version_type=linux 14168 else 14169 version_type=irix 14170 fi ;; 14171 esac 14172 need_lib_prefix=no 14173 need_version=no 14174 soname_spec='${libname}${release}${shared_ext}$major' 14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14176 case $host_os in 14177 irix5* | nonstopux*) 14178 libsuff= shlibsuff= 14179 ;; 14180 *) 14181 case $LD in # libtool.m4 will add one of these switches to LD 14182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14183 libsuff= shlibsuff= libmagic=32-bit;; 14184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14185 libsuff=32 shlibsuff=N32 libmagic=N32;; 14186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14187 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14188 *) libsuff= shlibsuff= libmagic=never-match;; 14189 esac 14190 ;; 14191 esac 14192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14193 shlibpath_overrides_runpath=no 14194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14196 hardcode_into_libs=yes 14197 ;; 14198 14199# No shared lib support for Linux oldld, aout, or coff. 14200linux*oldld* | linux*aout* | linux*coff*) 14201 dynamic_linker=no 14202 ;; 14203 14204# This must be Linux ELF. 14205 14206# uclinux* changes (here and below) have been submitted to the libtool 14207# project, but have not yet been accepted: they are GCC-local changes 14208# for the time being. (See 14209# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 14210linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14211 version_type=linux 14212 need_lib_prefix=no 14213 need_version=no 14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14215 soname_spec='${libname}${release}${shared_ext}$major' 14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14217 shlibpath_var=LD_LIBRARY_PATH 14218 shlibpath_overrides_runpath=no 14219 14220 # Some binutils ld are patched to set DT_RUNPATH 14221 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14222 $as_echo_n "(cached) " >&6 14223else 14224 lt_cv_shlibpath_overrides_runpath=no 14225 save_LDFLAGS=$LDFLAGS 14226 save_libdir=$libdir 14227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231 14232int 14233main () 14234{ 14235 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240if ac_fn_cxx_try_link "$LINENO"; then : 14241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14242 lt_cv_shlibpath_overrides_runpath=yes 14243fi 14244fi 14245rm -f core conftest.err conftest.$ac_objext \ 14246 conftest$ac_exeext conftest.$ac_ext 14247 LDFLAGS=$save_LDFLAGS 14248 libdir=$save_libdir 14249 14250fi 14251 14252 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14253 14254 # This implies no fast_install, which is unacceptable. 14255 # Some rework will be needed to allow for fast_install 14256 # before this can be enabled. 14257 hardcode_into_libs=yes 14258 14259 # Append ld.so.conf contents to the search path 14260 if test -f /etc/ld.so.conf; then 14261 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' ' '` 14262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14263 fi 14264 14265 # We used to test for /lib/ld.so.1 and disable shared libraries on 14266 # powerpc, because MkLinux only supported shared libraries with the 14267 # GNU dynamic linker. Since this was broken with cross compilers, 14268 # most powerpc-linux boxes support dynamic linking these days and 14269 # people can always --disable-shared, the test was removed, and we 14270 # assume the GNU/Linux dynamic linker is in use. 14271 dynamic_linker='GNU/Linux ld.so' 14272 ;; 14273 14274netbsd*) 14275 version_type=sunos 14276 need_lib_prefix=no 14277 need_version=no 14278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14281 dynamic_linker='NetBSD (a.out) ld.so' 14282 else 14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14284 soname_spec='${libname}${release}${shared_ext}$major' 14285 dynamic_linker='NetBSD ld.elf_so' 14286 fi 14287 shlibpath_var=LD_LIBRARY_PATH 14288 shlibpath_overrides_runpath=yes 14289 hardcode_into_libs=yes 14290 ;; 14291 14292newsos6) 14293 version_type=linux 14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14295 shlibpath_var=LD_LIBRARY_PATH 14296 shlibpath_overrides_runpath=yes 14297 ;; 14298 14299*nto* | *qnx*) 14300 version_type=qnx 14301 need_lib_prefix=no 14302 need_version=no 14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14304 soname_spec='${libname}${release}${shared_ext}$major' 14305 shlibpath_var=LD_LIBRARY_PATH 14306 shlibpath_overrides_runpath=no 14307 hardcode_into_libs=yes 14308 dynamic_linker='ldqnx.so' 14309 ;; 14310 14311openbsd*) 14312 version_type=sunos 14313 sys_lib_dlsearch_path_spec="/usr/lib" 14314 need_lib_prefix=no 14315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14316 case $host_os in 14317 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14318 *) need_version=no ;; 14319 esac 14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14322 shlibpath_var=LD_LIBRARY_PATH 14323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14324 case $host_os in 14325 openbsd2.[89] | openbsd2.[89].*) 14326 shlibpath_overrides_runpath=no 14327 ;; 14328 *) 14329 shlibpath_overrides_runpath=yes 14330 ;; 14331 esac 14332 else 14333 shlibpath_overrides_runpath=yes 14334 fi 14335 ;; 14336 14337os2*) 14338 libname_spec='$name' 14339 shrext_cmds=".dll" 14340 need_lib_prefix=no 14341 library_names_spec='$libname${shared_ext} $libname.a' 14342 dynamic_linker='OS/2 ld.exe' 14343 shlibpath_var=LIBPATH 14344 ;; 14345 14346osf3* | osf4* | osf5*) 14347 version_type=osf 14348 need_lib_prefix=no 14349 need_version=no 14350 soname_spec='${libname}${release}${shared_ext}$major' 14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14352 shlibpath_var=LD_LIBRARY_PATH 14353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14355 ;; 14356 14357rdos*) 14358 dynamic_linker=no 14359 ;; 14360 14361solaris*) 14362 version_type=linux 14363 need_lib_prefix=no 14364 need_version=no 14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14366 soname_spec='${libname}${release}${shared_ext}$major' 14367 shlibpath_var=LD_LIBRARY_PATH 14368 shlibpath_overrides_runpath=yes 14369 hardcode_into_libs=yes 14370 # ldd complains unless libraries are executable 14371 postinstall_cmds='chmod +x $lib' 14372 ;; 14373 14374sunos4*) 14375 version_type=sunos 14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14378 shlibpath_var=LD_LIBRARY_PATH 14379 shlibpath_overrides_runpath=yes 14380 if test "$with_gnu_ld" = yes; then 14381 need_lib_prefix=no 14382 fi 14383 need_version=yes 14384 ;; 14385 14386sysv4 | sysv4.3*) 14387 version_type=linux 14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14389 soname_spec='${libname}${release}${shared_ext}$major' 14390 shlibpath_var=LD_LIBRARY_PATH 14391 case $host_vendor in 14392 sni) 14393 shlibpath_overrides_runpath=no 14394 need_lib_prefix=no 14395 runpath_var=LD_RUN_PATH 14396 ;; 14397 siemens) 14398 need_lib_prefix=no 14399 ;; 14400 motorola) 14401 need_lib_prefix=no 14402 need_version=no 14403 shlibpath_overrides_runpath=no 14404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14405 ;; 14406 esac 14407 ;; 14408 14409sysv4*MP*) 14410 if test -d /usr/nec ;then 14411 version_type=linux 14412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14413 soname_spec='$libname${shared_ext}.$major' 14414 shlibpath_var=LD_LIBRARY_PATH 14415 fi 14416 ;; 14417 14418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14419 version_type=freebsd-elf 14420 need_lib_prefix=no 14421 need_version=no 14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14423 soname_spec='${libname}${release}${shared_ext}$major' 14424 shlibpath_var=LD_LIBRARY_PATH 14425 shlibpath_overrides_runpath=yes 14426 hardcode_into_libs=yes 14427 if test "$with_gnu_ld" = yes; then 14428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14429 else 14430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14431 case $host_os in 14432 sco3.2v5*) 14433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14434 ;; 14435 esac 14436 fi 14437 sys_lib_dlsearch_path_spec='/usr/lib' 14438 ;; 14439 14440tpf*) 14441 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14442 version_type=linux 14443 need_lib_prefix=no 14444 need_version=no 14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14446 shlibpath_var=LD_LIBRARY_PATH 14447 shlibpath_overrides_runpath=no 14448 hardcode_into_libs=yes 14449 ;; 14450 14451uts4*) 14452 version_type=linux 14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14454 soname_spec='${libname}${release}${shared_ext}$major' 14455 shlibpath_var=LD_LIBRARY_PATH 14456 ;; 14457 14458*) 14459 dynamic_linker=no 14460 ;; 14461esac 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14463$as_echo "$dynamic_linker" >&6; } 14464test "$dynamic_linker" = no && can_build_shared=no 14465 14466variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14467if test "$GCC" = yes; then 14468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14469fi 14470 14471if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14472 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14473fi 14474if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14476fi 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14516$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14517hardcode_action_CXX= 14518if test -n "$hardcode_libdir_flag_spec_CXX" || 14519 test -n "$runpath_var_CXX" || 14520 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14521 14522 # We can hardcode non-existent directories. 14523 if test "$hardcode_direct_CXX" != no && 14524 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14525 # have to relink, otherwise we might link with an installed library 14526 # when we should be linking with a yet-to-be-installed one 14527 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14528 test "$hardcode_minus_L_CXX" != no; then 14529 # Linking always hardcodes the temporary library directory. 14530 hardcode_action_CXX=relink 14531 else 14532 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14533 hardcode_action_CXX=immediate 14534 fi 14535else 14536 # We cannot hardcode anything, or else we can only hardcode existing 14537 # directories. 14538 hardcode_action_CXX=unsupported 14539fi 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14541$as_echo "$hardcode_action_CXX" >&6; } 14542 14543if test "$hardcode_action_CXX" = relink || 14544 test "$inherit_rpath_CXX" = yes; then 14545 # Fast installation is not supported 14546 enable_fast_install=no 14547elif test "$shlibpath_overrides_runpath" = yes || 14548 test "$enable_shared" = no; then 14549 # Fast installation is not necessary 14550 enable_fast_install=needless 14551fi 14552 14553 14554 14555 14556 14557 14558 14559 fi # test -n "$compiler" 14560 14561 CC=$lt_save_CC 14562 LDCXX=$LD 14563 LD=$lt_save_LD 14564 GCC=$lt_save_GCC 14565 with_gnu_ld=$lt_save_with_gnu_ld 14566 lt_cv_path_LDCXX=$lt_cv_path_LD 14567 lt_cv_path_LD=$lt_save_path_LD 14568 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14569 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14570fi # test "$_lt_caught_CXX_error" != yes 14571 14572ac_ext=c 14573ac_cpp='$CPP $CPPFLAGS' 14574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14576ac_compiler_gnu=$ac_cv_c_compiler_gnu 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 ac_config_commands="$ac_config_commands libtool" 14591 14592 14593 14594 14595# Only expand once: 14596 14597 14598 14599 14600 14601ac_config_headers="$ac_config_headers target-config.h" 14602 14603 14604# The cast to long int works around a bug in the HP C Compiler 14605# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14606# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14607# This bug is HP SR number 8606223364. 14608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14609$as_echo_n "checking size of int... " >&6; } 14610if ${ac_cv_sizeof_int+:} false; then : 14611 $as_echo_n "(cached) " >&6 14612else 14613 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14614 14615else 14616 if test "$ac_cv_type_int" = yes; then 14617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14619as_fn_error 77 "cannot compute sizeof (int) 14620See \`config.log' for more details" "$LINENO" 5; } 14621 else 14622 ac_cv_sizeof_int=0 14623 fi 14624fi 14625 14626fi 14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14628$as_echo "$ac_cv_sizeof_int" >&6; } 14629 14630 14631 14632cat >>confdefs.h <<_ACEOF 14633#define SIZEOF_INT $ac_cv_sizeof_int 14634_ACEOF 14635 14636 14637# The cast to long int works around a bug in the HP C Compiler 14638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14640# This bug is HP SR number 8606223364. 14641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 14642$as_echo_n "checking size of void*... " >&6; } 14643if ${ac_cv_sizeof_voidp+:} false; then : 14644 $as_echo_n "(cached) " >&6 14645else 14646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 14647 14648else 14649 if test "$ac_cv_type_voidp" = yes; then 14650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14652as_fn_error 77 "cannot compute sizeof (void*) 14653See \`config.log' for more details" "$LINENO" 5; } 14654 else 14655 ac_cv_sizeof_voidp=0 14656 fi 14657fi 14658 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 14661$as_echo "$ac_cv_sizeof_voidp" >&6; } 14662 14663 14664 14665cat >>confdefs.h <<_ACEOF 14666#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 14667_ACEOF 14668 14669 14670 14671# Determine what GCC version number to use in filesystem paths. 14672 14673 get_gcc_base_ver="cat" 14674 14675# Check whether --with-gcc-major-version-only was given. 14676if test "${with_gcc_major_version_only+set}" = set; then : 14677 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 14678 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 14679 fi 14680 14681fi 14682 14683 14684 14685 14686# Must be last 14687cat >confcache <<\_ACEOF 14688# This file is a shell script that caches the results of configure 14689# tests run on this system so they can be shared between configure 14690# scripts and configure runs, see configure's option --config-cache. 14691# It is not useful on other systems. If it contains results you don't 14692# want to keep, you may remove or edit it. 14693# 14694# config.status only pays attention to the cache file if you give it 14695# the --recheck option to rerun configure. 14696# 14697# `ac_cv_env_foo' variables (set or unset) will be overridden when 14698# loading this file, other *unset* `ac_cv_foo' will be assigned the 14699# following values. 14700 14701_ACEOF 14702 14703# The following way of writing the cache mishandles newlines in values, 14704# but we know of no workaround that is simple, portable, and efficient. 14705# So, we kill variables containing newlines. 14706# Ultrix sh set writes to stderr and can't be redirected directly, 14707# and sets the high bit in the cache file unless we assign to the vars. 14708( 14709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14710 eval ac_val=\$$ac_var 14711 case $ac_val in #( 14712 *${as_nl}*) 14713 case $ac_var in #( 14714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14715$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14716 esac 14717 case $ac_var in #( 14718 _ | IFS | as_nl) ;; #( 14719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14720 *) { eval $ac_var=; unset $ac_var;} ;; 14721 esac ;; 14722 esac 14723 done 14724 14725 (set) 2>&1 | 14726 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14727 *${as_nl}ac_space=\ *) 14728 # `set' does not quote correctly, so add quotes: double-quote 14729 # substitution turns \\\\ into \\, and sed turns \\ into \. 14730 sed -n \ 14731 "s/'/'\\\\''/g; 14732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14733 ;; #( 14734 *) 14735 # `set' quotes correctly as required by POSIX, so do not add quotes. 14736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14737 ;; 14738 esac | 14739 sort 14740) | 14741 sed ' 14742 /^ac_cv_env_/b end 14743 t clear 14744 :clear 14745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14746 t end 14747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14748 :end' >>confcache 14749if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14750 if test -w "$cache_file"; then 14751 if test "x$cache_file" != "x/dev/null"; then 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14753$as_echo "$as_me: updating cache $cache_file" >&6;} 14754 if test ! -f "$cache_file" || test -h "$cache_file"; then 14755 cat confcache >"$cache_file" 14756 else 14757 case $cache_file in #( 14758 */* | ?:*) 14759 mv -f confcache "$cache_file"$$ && 14760 mv -f "$cache_file"$$ "$cache_file" ;; #( 14761 *) 14762 mv -f confcache "$cache_file" ;; 14763 esac 14764 fi 14765 fi 14766 else 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14768$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14769 fi 14770fi 14771rm -f confcache 14772 14773test "x$prefix" = xNONE && prefix=$ac_default_prefix 14774# Let make expand exec_prefix. 14775test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14776 14777DEFS=-DHAVE_CONFIG_H 14778 14779ac_libobjs= 14780ac_ltlibobjs= 14781U= 14782for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14783 # 1. Remove the extension, and $U if already installed. 14784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14785 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14787 # will be set to the directory where LIBOBJS objects are built. 14788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14790done 14791LIBOBJS=$ac_libobjs 14792 14793LTLIBOBJS=$ac_ltlibobjs 14794 14795 14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14797$as_echo_n "checking that generated files are newer than configure... " >&6; } 14798 if test -n "$am_sleep_pid"; then 14799 # Hide warnings about reused PIDs. 14800 wait $am_sleep_pid 2>/dev/null 14801 fi 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14803$as_echo "done" >&6; } 14804 if test -n "$EXEEXT"; then 14805 am__EXEEXT_TRUE= 14806 am__EXEEXT_FALSE='#' 14807else 14808 am__EXEEXT_TRUE='#' 14809 am__EXEEXT_FALSE= 14810fi 14811 14812if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14813 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14814Usually this means the macro was only invoked conditionally." "$LINENO" 5 14815fi 14816if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14817 as_fn_error $? "conditional \"AMDEP\" was never defined. 14818Usually this means the macro was only invoked conditionally." "$LINENO" 5 14819fi 14820if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14821 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14822Usually this means the macro was only invoked conditionally." "$LINENO" 5 14823fi 14824if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14825 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 14826Usually this means the macro was only invoked conditionally." "$LINENO" 5 14827fi 14828if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then 14829 as_fn_error $? "conditional \"LINUX_LINKER_SCRIPT\" was never defined. 14830Usually this means the macro was only invoked conditionally." "$LINENO" 5 14831fi 14832if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then 14833 as_fn_error $? "conditional \"MAC_LINKER_SCRIPT\" was never defined. 14834Usually this means the macro was only invoked conditionally." "$LINENO" 5 14835fi 14836 14837: "${CONFIG_STATUS=./config.status}" 14838ac_write_fail=0 14839ac_clean_files_save=$ac_clean_files 14840ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14841{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14842$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14843as_write_fail=0 14844cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14845#! $SHELL 14846# Generated by $as_me. 14847# Run this file to recreate the current configuration. 14848# Compiler output produced by configure, useful for debugging 14849# configure, is in config.log if it exists. 14850 14851debug=false 14852ac_cs_recheck=false 14853ac_cs_silent=false 14854 14855SHELL=\${CONFIG_SHELL-$SHELL} 14856export SHELL 14857_ASEOF 14858cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14859## -------------------- ## 14860## M4sh Initialization. ## 14861## -------------------- ## 14862 14863# Be more Bourne compatible 14864DUALCASE=1; export DUALCASE # for MKS sh 14865if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14866 emulate sh 14867 NULLCMD=: 14868 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14869 # is contrary to our usage. Disable this feature. 14870 alias -g '${1+"$@"}'='"$@"' 14871 setopt NO_GLOB_SUBST 14872else 14873 case `(set -o) 2>/dev/null` in #( 14874 *posix*) : 14875 set -o posix ;; #( 14876 *) : 14877 ;; 14878esac 14879fi 14880 14881 14882as_nl=' 14883' 14884export as_nl 14885# Printing a long string crashes Solaris 7 /usr/bin/printf. 14886as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14887as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14889# Prefer a ksh shell builtin over an external printf program on Solaris, 14890# but without wasting forks for bash or zsh. 14891if test -z "$BASH_VERSION$ZSH_VERSION" \ 14892 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14893 as_echo='print -r --' 14894 as_echo_n='print -rn --' 14895elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14896 as_echo='printf %s\n' 14897 as_echo_n='printf %s' 14898else 14899 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14900 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14901 as_echo_n='/usr/ucb/echo -n' 14902 else 14903 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14904 as_echo_n_body='eval 14905 arg=$1; 14906 case $arg in #( 14907 *"$as_nl"*) 14908 expr "X$arg" : "X\\(.*\\)$as_nl"; 14909 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14910 esac; 14911 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14912 ' 14913 export as_echo_n_body 14914 as_echo_n='sh -c $as_echo_n_body as_echo' 14915 fi 14916 export as_echo_body 14917 as_echo='sh -c $as_echo_body as_echo' 14918fi 14919 14920# The user is always right. 14921if test "${PATH_SEPARATOR+set}" != set; then 14922 PATH_SEPARATOR=: 14923 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14924 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14925 PATH_SEPARATOR=';' 14926 } 14927fi 14928 14929 14930# IFS 14931# We need space, tab and new line, in precisely that order. Quoting is 14932# there to prevent editors from complaining about space-tab. 14933# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14934# splitting by setting IFS to empty value.) 14935IFS=" "" $as_nl" 14936 14937# Find who we are. Look in the path if we contain no directory separator. 14938as_myself= 14939case $0 in #(( 14940 *[\\/]* ) as_myself=$0 ;; 14941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14942for as_dir in $PATH 14943do 14944 IFS=$as_save_IFS 14945 test -z "$as_dir" && as_dir=. 14946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14947 done 14948IFS=$as_save_IFS 14949 14950 ;; 14951esac 14952# We did not find ourselves, most probably we were run as `sh COMMAND' 14953# in which case we are not to be found in the path. 14954if test "x$as_myself" = x; then 14955 as_myself=$0 14956fi 14957if test ! -f "$as_myself"; then 14958 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14959 exit 1 14960fi 14961 14962# Unset variables that we do not need and which cause bugs (e.g. in 14963# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14964# suppresses any "Segmentation fault" message there. '((' could 14965# trigger a bug in pdksh 5.2.14. 14966for as_var in BASH_ENV ENV MAIL MAILPATH 14967do eval test x\${$as_var+set} = xset \ 14968 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14969done 14970PS1='$ ' 14971PS2='> ' 14972PS4='+ ' 14973 14974# NLS nuisances. 14975LC_ALL=C 14976export LC_ALL 14977LANGUAGE=C 14978export LANGUAGE 14979 14980# CDPATH. 14981(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14982 14983 14984# as_fn_error STATUS ERROR [LINENO LOG_FD] 14985# ---------------------------------------- 14986# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14987# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14988# script with STATUS, using 1 if that was 0. 14989as_fn_error () 14990{ 14991 as_status=$1; test $as_status -eq 0 && as_status=1 14992 if test "$4"; then 14993 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14994 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14995 fi 14996 $as_echo "$as_me: error: $2" >&2 14997 as_fn_exit $as_status 14998} # as_fn_error 14999 15000 15001# as_fn_set_status STATUS 15002# ----------------------- 15003# Set $? to STATUS, without forking. 15004as_fn_set_status () 15005{ 15006 return $1 15007} # as_fn_set_status 15008 15009# as_fn_exit STATUS 15010# ----------------- 15011# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15012as_fn_exit () 15013{ 15014 set +e 15015 as_fn_set_status $1 15016 exit $1 15017} # as_fn_exit 15018 15019# as_fn_unset VAR 15020# --------------- 15021# Portably unset VAR. 15022as_fn_unset () 15023{ 15024 { eval $1=; unset $1;} 15025} 15026as_unset=as_fn_unset 15027# as_fn_append VAR VALUE 15028# ---------------------- 15029# Append the text in VALUE to the end of the definition contained in VAR. Take 15030# advantage of any shell optimizations that allow amortized linear growth over 15031# repeated appends, instead of the typical quadratic growth present in naive 15032# implementations. 15033if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15034 eval 'as_fn_append () 15035 { 15036 eval $1+=\$2 15037 }' 15038else 15039 as_fn_append () 15040 { 15041 eval $1=\$$1\$2 15042 } 15043fi # as_fn_append 15044 15045# as_fn_arith ARG... 15046# ------------------ 15047# Perform arithmetic evaluation on the ARGs, and store the result in the 15048# global $as_val. Take advantage of shells that can avoid forks. The arguments 15049# must be portable across $(()) and expr. 15050if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15051 eval 'as_fn_arith () 15052 { 15053 as_val=$(( $* )) 15054 }' 15055else 15056 as_fn_arith () 15057 { 15058 as_val=`expr "$@" || test $? -eq 1` 15059 } 15060fi # as_fn_arith 15061 15062 15063if expr a : '\(a\)' >/dev/null 2>&1 && 15064 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15065 as_expr=expr 15066else 15067 as_expr=false 15068fi 15069 15070if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15071 as_basename=basename 15072else 15073 as_basename=false 15074fi 15075 15076if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15077 as_dirname=dirname 15078else 15079 as_dirname=false 15080fi 15081 15082as_me=`$as_basename -- "$0" || 15083$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15084 X"$0" : 'X\(//\)$' \| \ 15085 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15086$as_echo X/"$0" | 15087 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15088 s//\1/ 15089 q 15090 } 15091 /^X\/\(\/\/\)$/{ 15092 s//\1/ 15093 q 15094 } 15095 /^X\/\(\/\).*/{ 15096 s//\1/ 15097 q 15098 } 15099 s/.*/./; q'` 15100 15101# Avoid depending upon Character Ranges. 15102as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15103as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15104as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15105as_cr_digits='0123456789' 15106as_cr_alnum=$as_cr_Letters$as_cr_digits 15107 15108ECHO_C= ECHO_N= ECHO_T= 15109case `echo -n x` in #((((( 15110-n*) 15111 case `echo 'xy\c'` in 15112 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15113 xy) ECHO_C='\c';; 15114 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15115 ECHO_T=' ';; 15116 esac;; 15117*) 15118 ECHO_N='-n';; 15119esac 15120 15121rm -f conf$$ conf$$.exe conf$$.file 15122if test -d conf$$.dir; then 15123 rm -f conf$$.dir/conf$$.file 15124else 15125 rm -f conf$$.dir 15126 mkdir conf$$.dir 2>/dev/null 15127fi 15128if (echo >conf$$.file) 2>/dev/null; then 15129 if ln -s conf$$.file conf$$ 2>/dev/null; then 15130 as_ln_s='ln -s' 15131 # ... but there are two gotchas: 15132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15134 # In both cases, we have to default to `cp -pR'. 15135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15136 as_ln_s='cp -pR' 15137 elif ln conf$$.file conf$$ 2>/dev/null; then 15138 as_ln_s=ln 15139 else 15140 as_ln_s='cp -pR' 15141 fi 15142else 15143 as_ln_s='cp -pR' 15144fi 15145rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15146rmdir conf$$.dir 2>/dev/null 15147 15148 15149# as_fn_mkdir_p 15150# ------------- 15151# Create "$as_dir" as a directory, including parents if necessary. 15152as_fn_mkdir_p () 15153{ 15154 15155 case $as_dir in #( 15156 -*) as_dir=./$as_dir;; 15157 esac 15158 test -d "$as_dir" || eval $as_mkdir_p || { 15159 as_dirs= 15160 while :; do 15161 case $as_dir in #( 15162 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15163 *) as_qdir=$as_dir;; 15164 esac 15165 as_dirs="'$as_qdir' $as_dirs" 15166 as_dir=`$as_dirname -- "$as_dir" || 15167$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15168 X"$as_dir" : 'X\(//\)[^/]' \| \ 15169 X"$as_dir" : 'X\(//\)$' \| \ 15170 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15171$as_echo X"$as_dir" | 15172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15173 s//\1/ 15174 q 15175 } 15176 /^X\(\/\/\)[^/].*/{ 15177 s//\1/ 15178 q 15179 } 15180 /^X\(\/\/\)$/{ 15181 s//\1/ 15182 q 15183 } 15184 /^X\(\/\).*/{ 15185 s//\1/ 15186 q 15187 } 15188 s/.*/./; q'` 15189 test -d "$as_dir" && break 15190 done 15191 test -z "$as_dirs" || eval "mkdir $as_dirs" 15192 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15193 15194 15195} # as_fn_mkdir_p 15196if mkdir -p . 2>/dev/null; then 15197 as_mkdir_p='mkdir -p "$as_dir"' 15198else 15199 test -d ./-p && rmdir ./-p 15200 as_mkdir_p=false 15201fi 15202 15203 15204# as_fn_executable_p FILE 15205# ----------------------- 15206# Test if FILE is an executable regular file. 15207as_fn_executable_p () 15208{ 15209 test -f "$1" && test -x "$1" 15210} # as_fn_executable_p 15211as_test_x='test -x' 15212as_executable_p=as_fn_executable_p 15213 15214# Sed expression to map a string onto a valid CPP name. 15215as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15216 15217# Sed expression to map a string onto a valid variable name. 15218as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15219 15220 15221exec 6>&1 15222## ----------------------------------- ## 15223## Main body of $CONFIG_STATUS script. ## 15224## ----------------------------------- ## 15225_ASEOF 15226test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15227 15228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15229# Save the log message, to keep $0 and so on meaningful, and to 15230# report actual input values of CONFIG_FILES etc. instead of their 15231# values after options handling. 15232ac_log=" 15233This file was extended by phsa HSAIL runtime library $as_me 1.0, which was 15234generated by GNU Autoconf 2.69. Invocation command line was 15235 15236 CONFIG_FILES = $CONFIG_FILES 15237 CONFIG_HEADERS = $CONFIG_HEADERS 15238 CONFIG_LINKS = $CONFIG_LINKS 15239 CONFIG_COMMANDS = $CONFIG_COMMANDS 15240 $ $0 $@ 15241 15242on `(hostname || uname -n) 2>/dev/null | sed 1q` 15243" 15244 15245_ACEOF 15246 15247case $ac_config_files in *" 15248"*) set x $ac_config_files; shift; ac_config_files=$*;; 15249esac 15250 15251case $ac_config_headers in *" 15252"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15253esac 15254 15255 15256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15257# Files that config.status was made for. 15258config_files="$ac_config_files" 15259config_headers="$ac_config_headers" 15260config_commands="$ac_config_commands" 15261 15262_ACEOF 15263 15264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15265ac_cs_usage="\ 15266\`$as_me' instantiates files and other configuration actions 15267from templates according to the current configuration. Unless the files 15268and actions are specified as TAGs, all are instantiated by default. 15269 15270Usage: $0 [OPTION]... [TAG]... 15271 15272 -h, --help print this help, then exit 15273 -V, --version print version number and configuration settings, then exit 15274 --config print configuration, then exit 15275 -q, --quiet, --silent 15276 do not print progress messages 15277 -d, --debug don't remove temporary files 15278 --recheck update $as_me by reconfiguring in the same conditions 15279 --file=FILE[:TEMPLATE] 15280 instantiate the configuration file FILE 15281 --header=FILE[:TEMPLATE] 15282 instantiate the configuration header FILE 15283 15284Configuration files: 15285$config_files 15286 15287Configuration headers: 15288$config_headers 15289 15290Configuration commands: 15291$config_commands 15292 15293Report bugs to <pekka.jaaskelainen@parmance.com>." 15294 15295_ACEOF 15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15297ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15298ac_cs_version="\\ 15299phsa HSAIL runtime library config.status 1.0 15300configured by $0, generated by GNU Autoconf 2.69, 15301 with options \\"\$ac_cs_config\\" 15302 15303Copyright (C) 2012 Free Software Foundation, Inc. 15304This config.status script is free software; the Free Software Foundation 15305gives unlimited permission to copy, distribute and modify it." 15306 15307ac_pwd='$ac_pwd' 15308srcdir='$srcdir' 15309INSTALL='$INSTALL' 15310MKDIR_P='$MKDIR_P' 15311AWK='$AWK' 15312test -n "\$AWK" || AWK=awk 15313_ACEOF 15314 15315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15316# The default lists apply if the user does not specify any file. 15317ac_need_defaults=: 15318while test $# != 0 15319do 15320 case $1 in 15321 --*=?*) 15322 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15324 ac_shift=: 15325 ;; 15326 --*=) 15327 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15328 ac_optarg= 15329 ac_shift=: 15330 ;; 15331 *) 15332 ac_option=$1 15333 ac_optarg=$2 15334 ac_shift=shift 15335 ;; 15336 esac 15337 15338 case $ac_option in 15339 # Handling of the options. 15340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15341 ac_cs_recheck=: ;; 15342 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15343 $as_echo "$ac_cs_version"; exit ;; 15344 --config | --confi | --conf | --con | --co | --c ) 15345 $as_echo "$ac_cs_config"; exit ;; 15346 --debug | --debu | --deb | --de | --d | -d ) 15347 debug=: ;; 15348 --file | --fil | --fi | --f ) 15349 $ac_shift 15350 case $ac_optarg in 15351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15352 '') as_fn_error $? "missing file argument" ;; 15353 esac 15354 as_fn_append CONFIG_FILES " '$ac_optarg'" 15355 ac_need_defaults=false;; 15356 --header | --heade | --head | --hea ) 15357 $ac_shift 15358 case $ac_optarg in 15359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15360 esac 15361 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15362 ac_need_defaults=false;; 15363 --he | --h) 15364 # Conflict between --help and --header 15365 as_fn_error $? "ambiguous option: \`$1' 15366Try \`$0 --help' for more information.";; 15367 --help | --hel | -h ) 15368 $as_echo "$ac_cs_usage"; exit ;; 15369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15370 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15371 ac_cs_silent=: ;; 15372 15373 # This is an error. 15374 -*) as_fn_error $? "unrecognized option: \`$1' 15375Try \`$0 --help' for more information." ;; 15376 15377 *) as_fn_append ac_config_targets " $1" 15378 ac_need_defaults=false ;; 15379 15380 esac 15381 shift 15382done 15383 15384ac_configure_extra_args= 15385 15386if $ac_cs_silent; then 15387 exec 6>/dev/null 15388 ac_configure_extra_args="$ac_configure_extra_args --silent" 15389fi 15390 15391_ACEOF 15392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15393if \$ac_cs_recheck; then 15394 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15395 shift 15396 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15397 CONFIG_SHELL='$SHELL' 15398 export CONFIG_SHELL 15399 exec "\$@" 15400fi 15401 15402_ACEOF 15403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15404exec 5>>config.log 15405{ 15406 echo 15407 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15408## Running $as_me. ## 15409_ASBOX 15410 $as_echo "$ac_log" 15411} >&5 15412 15413_ACEOF 15414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15415# 15416# INIT-COMMANDS 15417# 15418AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15419 15420 15421# The HP-UX ksh and POSIX shell print the target directory to stdout 15422# if CDPATH is set. 15423(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15424 15425sed_quote_subst='$sed_quote_subst' 15426double_quote_subst='$double_quote_subst' 15427delay_variable_subst='$delay_variable_subst' 15428macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15429macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15430enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15431enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15432pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15433enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15434SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15435ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15436host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15437host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15438host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15439build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15440build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15441build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15442SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15443Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15444GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15445EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15446FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15447LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15448NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15449LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15450max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15451ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15452exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15453lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15454lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15455lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15456reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15457reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15458OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15459deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15460file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15461AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15462AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15463STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15464RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15465old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15466old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15467old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15468lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15469CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15470CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15471compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15472GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15473lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15474lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15475lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15476lt_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"`' 15477objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15478MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15479lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15480lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15481lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15482lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15483lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15484need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15485DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15486NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15487LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15488OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15489OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15490libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15491shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15492extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15493archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15494enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15495export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15496whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15497compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15498old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15499old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15500archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15501archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15502module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15503module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15504with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15505allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15506no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15507hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15508hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15509hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15510hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15511hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15512hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15513hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15514hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15515inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15516link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15517fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15518always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15519export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15520exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15521include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15522prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15523file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15524variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15525need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15526need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15527version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15528runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15529shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15530shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15531libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15532library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15533soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15534install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15535postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15536postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15537finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15538finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15539hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15540sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15541sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15542hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15543enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15544enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15545enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15546old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15547striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15548compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15549predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15550postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15551predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15552postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15553compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15554LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15555reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15556reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15557old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15558compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15559GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15560lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15561lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15562lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15563lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15564lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15565archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15566enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15567export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15568whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15569compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15570old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15571old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15572archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15573archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15574module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15575module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15576with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15577allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15578no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15579hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15580hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15581hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15582hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15583hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15584hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15585hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15586hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15587inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15588link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15589fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15590always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15591export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15592exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15593include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15594prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15595file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15596hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15597compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15598predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15599postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15600predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15601postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15602compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15603 15604LTCC='$LTCC' 15605LTCFLAGS='$LTCFLAGS' 15606compiler='$compiler_DEFAULT' 15607 15608# A function that is used when there is no print builtin or printf. 15609func_fallback_echo () 15610{ 15611 eval 'cat <<_LTECHO_EOF 15612\$1 15613_LTECHO_EOF' 15614} 15615 15616# Quote evaled strings. 15617for var in SHELL \ 15618ECHO \ 15619SED \ 15620GREP \ 15621EGREP \ 15622FGREP \ 15623LD \ 15624NM \ 15625LN_S \ 15626lt_SP2NL \ 15627lt_NL2SP \ 15628reload_flag \ 15629OBJDUMP \ 15630deplibs_check_method \ 15631file_magic_cmd \ 15632AR \ 15633AR_FLAGS \ 15634STRIP \ 15635RANLIB \ 15636CC \ 15637CFLAGS \ 15638compiler \ 15639lt_cv_sys_global_symbol_pipe \ 15640lt_cv_sys_global_symbol_to_cdecl \ 15641lt_cv_sys_global_symbol_to_c_name_address \ 15642lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15643lt_prog_compiler_no_builtin_flag \ 15644lt_prog_compiler_wl \ 15645lt_prog_compiler_pic \ 15646lt_prog_compiler_static \ 15647lt_cv_prog_compiler_c_o \ 15648need_locks \ 15649DSYMUTIL \ 15650NMEDIT \ 15651LIPO \ 15652OTOOL \ 15653OTOOL64 \ 15654shrext_cmds \ 15655export_dynamic_flag_spec \ 15656whole_archive_flag_spec \ 15657compiler_needs_object \ 15658with_gnu_ld \ 15659allow_undefined_flag \ 15660no_undefined_flag \ 15661hardcode_libdir_flag_spec \ 15662hardcode_libdir_flag_spec_ld \ 15663hardcode_libdir_separator \ 15664fix_srcfile_path \ 15665exclude_expsyms \ 15666include_expsyms \ 15667file_list_spec \ 15668variables_saved_for_relink \ 15669libname_spec \ 15670library_names_spec \ 15671soname_spec \ 15672install_override_mode \ 15673finish_eval \ 15674old_striplib \ 15675striplib \ 15676compiler_lib_search_dirs \ 15677predep_objects \ 15678postdep_objects \ 15679predeps \ 15680postdeps \ 15681compiler_lib_search_path \ 15682LD_CXX \ 15683reload_flag_CXX \ 15684compiler_CXX \ 15685lt_prog_compiler_no_builtin_flag_CXX \ 15686lt_prog_compiler_wl_CXX \ 15687lt_prog_compiler_pic_CXX \ 15688lt_prog_compiler_static_CXX \ 15689lt_cv_prog_compiler_c_o_CXX \ 15690export_dynamic_flag_spec_CXX \ 15691whole_archive_flag_spec_CXX \ 15692compiler_needs_object_CXX \ 15693with_gnu_ld_CXX \ 15694allow_undefined_flag_CXX \ 15695no_undefined_flag_CXX \ 15696hardcode_libdir_flag_spec_CXX \ 15697hardcode_libdir_flag_spec_ld_CXX \ 15698hardcode_libdir_separator_CXX \ 15699fix_srcfile_path_CXX \ 15700exclude_expsyms_CXX \ 15701include_expsyms_CXX \ 15702file_list_spec_CXX \ 15703compiler_lib_search_dirs_CXX \ 15704predep_objects_CXX \ 15705postdep_objects_CXX \ 15706predeps_CXX \ 15707postdeps_CXX \ 15708compiler_lib_search_path_CXX; do 15709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15710 *[\\\\\\\`\\"\\\$]*) 15711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15712 ;; 15713 *) 15714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15715 ;; 15716 esac 15717done 15718 15719# Double-quote double-evaled strings. 15720for var in reload_cmds \ 15721old_postinstall_cmds \ 15722old_postuninstall_cmds \ 15723old_archive_cmds \ 15724extract_expsyms_cmds \ 15725old_archive_from_new_cmds \ 15726old_archive_from_expsyms_cmds \ 15727archive_cmds \ 15728archive_expsym_cmds \ 15729module_cmds \ 15730module_expsym_cmds \ 15731export_symbols_cmds \ 15732prelink_cmds \ 15733postinstall_cmds \ 15734postuninstall_cmds \ 15735finish_cmds \ 15736sys_lib_search_path_spec \ 15737sys_lib_dlsearch_path_spec \ 15738reload_cmds_CXX \ 15739old_archive_cmds_CXX \ 15740old_archive_from_new_cmds_CXX \ 15741old_archive_from_expsyms_cmds_CXX \ 15742archive_cmds_CXX \ 15743archive_expsym_cmds_CXX \ 15744module_cmds_CXX \ 15745module_expsym_cmds_CXX \ 15746export_symbols_cmds_CXX \ 15747prelink_cmds_CXX; do 15748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15749 *[\\\\\\\`\\"\\\$]*) 15750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15751 ;; 15752 *) 15753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15754 ;; 15755 esac 15756done 15757 15758ac_aux_dir='$ac_aux_dir' 15759xsi_shell='$xsi_shell' 15760lt_shell_append='$lt_shell_append' 15761 15762# See if we are running on zsh, and set the options which allow our 15763# commands through without removal of \ escapes INIT. 15764if test -n "\${ZSH_VERSION+set}" ; then 15765 setopt NO_GLOB_SUBST 15766fi 15767 15768 15769 PACKAGE='$PACKAGE' 15770 VERSION='$VERSION' 15771 TIMESTAMP='$TIMESTAMP' 15772 RM='$RM' 15773 ofile='$ofile' 15774 15775 15776 15777 15778 15779 15780_ACEOF 15781 15782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15783 15784# Handling of arguments. 15785for ac_config_target in $ac_config_targets 15786do 15787 case $ac_config_target in 15788 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15790 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15791 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;; 15792 15793 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15794 esac 15795done 15796 15797 15798# If the user did not use the arguments to specify the items to instantiate, 15799# then the envvar interface is used. Set only those that are not. 15800# We use the long form for the default assignment because of an extremely 15801# bizarre bug on SunOS 4.1.3. 15802if $ac_need_defaults; then 15803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15806fi 15807 15808# Have a temporary directory for convenience. Make it in the build tree 15809# simply because there is no reason against having it here, and in addition, 15810# creating and moving files from /tmp can sometimes cause problems. 15811# Hook for its removal unless debugging. 15812# Note that there is a small window in which the directory will not be cleaned: 15813# after its creation but before its name has been assigned to `$tmp'. 15814$debug || 15815{ 15816 tmp= ac_tmp= 15817 trap 'exit_status=$? 15818 : "${ac_tmp:=$tmp}" 15819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15820' 0 15821 trap 'as_fn_exit 1' 1 2 13 15 15822} 15823# Create a (secure) tmp directory for tmp files. 15824 15825{ 15826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15827 test -d "$tmp" 15828} || 15829{ 15830 tmp=./conf$$-$RANDOM 15831 (umask 077 && mkdir "$tmp") 15832} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15833ac_tmp=$tmp 15834 15835# Set up the scripts for CONFIG_FILES section. 15836# No need to generate them if there are no CONFIG_FILES. 15837# This happens for instance with `./config.status config.h'. 15838if test -n "$CONFIG_FILES"; then 15839 15840 15841ac_cr=`echo X | tr X '\015'` 15842# On cygwin, bash can eat \r inside `` if the user requested igncr. 15843# But we know of no other shell where ac_cr would be empty at this 15844# point, so we can use a bashism as a fallback. 15845if test "x$ac_cr" = x; then 15846 eval ac_cr=\$\'\\r\' 15847fi 15848ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15849if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15850 ac_cs_awk_cr='\\r' 15851else 15852 ac_cs_awk_cr=$ac_cr 15853fi 15854 15855echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15856_ACEOF 15857 15858 15859{ 15860 echo "cat >conf$$subs.awk <<_ACEOF" && 15861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15862 echo "_ACEOF" 15863} >conf$$subs.sh || 15864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15865ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15866ac_delim='%!_!# ' 15867for ac_last_try in false false false false false :; do 15868 . ./conf$$subs.sh || 15869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15870 15871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15872 if test $ac_delim_n = $ac_delim_num; then 15873 break 15874 elif $ac_last_try; then 15875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15876 else 15877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15878 fi 15879done 15880rm -f conf$$subs.sh 15881 15882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15883cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15884_ACEOF 15885sed -n ' 15886h 15887s/^/S["/; s/!.*/"]=/ 15888p 15889g 15890s/^[^!]*!// 15891:repl 15892t repl 15893s/'"$ac_delim"'$// 15894t delim 15895:nl 15896h 15897s/\(.\{148\}\)..*/\1/ 15898t more1 15899s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15900p 15901n 15902b repl 15903:more1 15904s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15905p 15906g 15907s/.\{148\}// 15908t nl 15909:delim 15910h 15911s/\(.\{148\}\)..*/\1/ 15912t more2 15913s/["\\]/\\&/g; s/^/"/; s/$/"/ 15914p 15915b 15916:more2 15917s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15918p 15919g 15920s/.\{148\}// 15921t delim 15922' <conf$$subs.awk | sed ' 15923/^[^""]/{ 15924 N 15925 s/\n// 15926} 15927' >>$CONFIG_STATUS || ac_write_fail=1 15928rm -f conf$$subs.awk 15929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15930_ACAWK 15931cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15932 for (key in S) S_is_set[key] = 1 15933 FS = "" 15934 15935} 15936{ 15937 line = $ 0 15938 nfields = split(line, field, "@") 15939 substed = 0 15940 len = length(field[1]) 15941 for (i = 2; i < nfields; i++) { 15942 key = field[i] 15943 keylen = length(key) 15944 if (S_is_set[key]) { 15945 value = S[key] 15946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15947 len += length(value) + length(field[++i]) 15948 substed = 1 15949 } else 15950 len += 1 + keylen 15951 } 15952 15953 print line 15954} 15955 15956_ACAWK 15957_ACEOF 15958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15959if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15961else 15962 cat 15963fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15964 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15965_ACEOF 15966 15967# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15968# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15969# trailing colons and then remove the whole line if VPATH becomes empty 15970# (actually we leave an empty line to preserve line numbers). 15971if test "x$srcdir" = x.; then 15972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15973h 15974s/// 15975s/^/:/ 15976s/[ ]*$/:/ 15977s/:\$(srcdir):/:/g 15978s/:\${srcdir}:/:/g 15979s/:@srcdir@:/:/g 15980s/^:*// 15981s/:*$// 15982x 15983s/\(=[ ]*\).*/\1/ 15984G 15985s/\n// 15986s/^[^=]*=[ ]*$// 15987}' 15988fi 15989 15990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15991fi # test -n "$CONFIG_FILES" 15992 15993# Set up the scripts for CONFIG_HEADERS section. 15994# No need to generate them if there are no CONFIG_HEADERS. 15995# This happens for instance with `./config.status Makefile'. 15996if test -n "$CONFIG_HEADERS"; then 15997cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15998BEGIN { 15999_ACEOF 16000 16001# Transform confdefs.h into an awk script `defines.awk', embedded as 16002# here-document in config.status, that substitutes the proper values into 16003# config.h.in to produce config.h. 16004 16005# Create a delimiter string that does not exist in confdefs.h, to ease 16006# handling of long lines. 16007ac_delim='%!_!# ' 16008for ac_last_try in false false :; do 16009 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16010 if test -z "$ac_tt"; then 16011 break 16012 elif $ac_last_try; then 16013 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16014 else 16015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16016 fi 16017done 16018 16019# For the awk script, D is an array of macro values keyed by name, 16020# likewise P contains macro parameters if any. Preserve backslash 16021# newline sequences. 16022 16023ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16024sed -n ' 16025s/.\{148\}/&'"$ac_delim"'/g 16026t rset 16027:rset 16028s/^[ ]*#[ ]*define[ ][ ]*/ / 16029t def 16030d 16031:def 16032s/\\$// 16033t bsnl 16034s/["\\]/\\&/g 16035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16036D["\1"]=" \3"/p 16037s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16038d 16039:bsnl 16040s/["\\]/\\&/g 16041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16042D["\1"]=" \3\\\\\\n"\\/p 16043t cont 16044s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16045t cont 16046d 16047:cont 16048n 16049s/.\{148\}/&'"$ac_delim"'/g 16050t clear 16051:clear 16052s/\\$// 16053t bsnlc 16054s/["\\]/\\&/g; s/^/"/; s/$/"/p 16055d 16056:bsnlc 16057s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16058b cont 16059' <confdefs.h | sed ' 16060s/'"$ac_delim"'/"\\\ 16061"/g' >>$CONFIG_STATUS || ac_write_fail=1 16062 16063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16064 for (key in D) D_is_set[key] = 1 16065 FS = "" 16066} 16067/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16068 line = \$ 0 16069 split(line, arg, " ") 16070 if (arg[1] == "#") { 16071 defundef = arg[2] 16072 mac1 = arg[3] 16073 } else { 16074 defundef = substr(arg[1], 2) 16075 mac1 = arg[2] 16076 } 16077 split(mac1, mac2, "(") #) 16078 macro = mac2[1] 16079 prefix = substr(line, 1, index(line, defundef) - 1) 16080 if (D_is_set[macro]) { 16081 # Preserve the white space surrounding the "#". 16082 print prefix "define", macro P[macro] D[macro] 16083 next 16084 } else { 16085 # Replace #undef with comments. This is necessary, for example, 16086 # in the case of _POSIX_SOURCE, which is predefined and required 16087 # on some systems where configure will not decide to define it. 16088 if (defundef == "undef") { 16089 print "/*", prefix defundef, macro, "*/" 16090 next 16091 } 16092 } 16093} 16094{ print } 16095_ACAWK 16096_ACEOF 16097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16098 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16099fi # test -n "$CONFIG_HEADERS" 16100 16101 16102eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16103shift 16104for ac_tag 16105do 16106 case $ac_tag in 16107 :[FHLC]) ac_mode=$ac_tag; continue;; 16108 esac 16109 case $ac_mode$ac_tag in 16110 :[FHL]*:*);; 16111 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16112 :[FH]-) ac_tag=-:-;; 16113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16114 esac 16115 ac_save_IFS=$IFS 16116 IFS=: 16117 set x $ac_tag 16118 IFS=$ac_save_IFS 16119 shift 16120 ac_file=$1 16121 shift 16122 16123 case $ac_mode in 16124 :L) ac_source=$1;; 16125 :[FH]) 16126 ac_file_inputs= 16127 for ac_f 16128 do 16129 case $ac_f in 16130 -) ac_f="$ac_tmp/stdin";; 16131 *) # Look for the file first in the build tree, then in the source tree 16132 # (if the path is not absolute). The absolute path cannot be DOS-style, 16133 # because $ac_f cannot contain `:'. 16134 test -f "$ac_f" || 16135 case $ac_f in 16136 [\\/$]*) false;; 16137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16138 esac || 16139 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16140 esac 16141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16142 as_fn_append ac_file_inputs " '$ac_f'" 16143 done 16144 16145 # Let's still pretend it is `configure' which instantiates (i.e., don't 16146 # use $as_me), people would be surprised to read: 16147 # /* config.h. Generated by config.status. */ 16148 configure_input='Generated from '` 16149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16150 `' by configure.' 16151 if test x"$ac_file" != x-; then 16152 configure_input="$ac_file. $configure_input" 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16154$as_echo "$as_me: creating $ac_file" >&6;} 16155 fi 16156 # Neutralize special characters interpreted by sed in replacement strings. 16157 case $configure_input in #( 16158 *\&* | *\|* | *\\* ) 16159 ac_sed_conf_input=`$as_echo "$configure_input" | 16160 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16161 *) ac_sed_conf_input=$configure_input;; 16162 esac 16163 16164 case $ac_tag in 16165 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16167 esac 16168 ;; 16169 esac 16170 16171 ac_dir=`$as_dirname -- "$ac_file" || 16172$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16173 X"$ac_file" : 'X\(//\)[^/]' \| \ 16174 X"$ac_file" : 'X\(//\)$' \| \ 16175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16176$as_echo X"$ac_file" | 16177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16178 s//\1/ 16179 q 16180 } 16181 /^X\(\/\/\)[^/].*/{ 16182 s//\1/ 16183 q 16184 } 16185 /^X\(\/\/\)$/{ 16186 s//\1/ 16187 q 16188 } 16189 /^X\(\/\).*/{ 16190 s//\1/ 16191 q 16192 } 16193 s/.*/./; q'` 16194 as_dir="$ac_dir"; as_fn_mkdir_p 16195 ac_builddir=. 16196 16197case "$ac_dir" in 16198.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16199*) 16200 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16201 # A ".." for each directory in $ac_dir_suffix. 16202 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16203 case $ac_top_builddir_sub in 16204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16206 esac ;; 16207esac 16208ac_abs_top_builddir=$ac_pwd 16209ac_abs_builddir=$ac_pwd$ac_dir_suffix 16210# for backward compatibility: 16211ac_top_builddir=$ac_top_build_prefix 16212 16213case $srcdir in 16214 .) # We are building in place. 16215 ac_srcdir=. 16216 ac_top_srcdir=$ac_top_builddir_sub 16217 ac_abs_top_srcdir=$ac_pwd ;; 16218 [\\/]* | ?:[\\/]* ) # Absolute name. 16219 ac_srcdir=$srcdir$ac_dir_suffix; 16220 ac_top_srcdir=$srcdir 16221 ac_abs_top_srcdir=$srcdir ;; 16222 *) # Relative name. 16223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16224 ac_top_srcdir=$ac_top_build_prefix$srcdir 16225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16226esac 16227ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16228 16229 16230 case $ac_mode in 16231 :F) 16232 # 16233 # CONFIG_FILE 16234 # 16235 16236 case $INSTALL in 16237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16239 esac 16240 ac_MKDIR_P=$MKDIR_P 16241 case $MKDIR_P in 16242 [\\/$]* | ?:[\\/]* ) ;; 16243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16244 esac 16245_ACEOF 16246 16247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16248# If the template does not know about datarootdir, expand it. 16249# FIXME: This hack should be removed a few years after 2.60. 16250ac_datarootdir_hack=; ac_datarootdir_seen= 16251ac_sed_dataroot=' 16252/datarootdir/ { 16253 p 16254 q 16255} 16256/@datadir@/p 16257/@docdir@/p 16258/@infodir@/p 16259/@localedir@/p 16260/@mandir@/p' 16261case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16262*datarootdir*) ac_datarootdir_seen=yes;; 16263*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16265$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16266_ACEOF 16267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16268 ac_datarootdir_hack=' 16269 s&@datadir@&$datadir&g 16270 s&@docdir@&$docdir&g 16271 s&@infodir@&$infodir&g 16272 s&@localedir@&$localedir&g 16273 s&@mandir@&$mandir&g 16274 s&\\\${datarootdir}&$datarootdir&g' ;; 16275esac 16276_ACEOF 16277 16278# Neutralize VPATH when `$srcdir' = `.'. 16279# Shell code in configure.ac might set extrasub. 16280# FIXME: do we really want to maintain this feature? 16281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16282ac_sed_extra="$ac_vpsub 16283$extrasub 16284_ACEOF 16285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16286:t 16287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16288s|@configure_input@|$ac_sed_conf_input|;t t 16289s&@top_builddir@&$ac_top_builddir_sub&;t t 16290s&@top_build_prefix@&$ac_top_build_prefix&;t t 16291s&@srcdir@&$ac_srcdir&;t t 16292s&@abs_srcdir@&$ac_abs_srcdir&;t t 16293s&@top_srcdir@&$ac_top_srcdir&;t t 16294s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16295s&@builddir@&$ac_builddir&;t t 16296s&@abs_builddir@&$ac_abs_builddir&;t t 16297s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16298s&@INSTALL@&$ac_INSTALL&;t t 16299s&@MKDIR_P@&$ac_MKDIR_P&;t t 16300$ac_datarootdir_hack 16301" 16302eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16303 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16304 16305test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16308 "$ac_tmp/out"`; test -z "$ac_out"; } && 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16310which seems to be undefined. Please make sure it is defined" >&5 16311$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16312which seems to be undefined. Please make sure it is defined" >&2;} 16313 16314 rm -f "$ac_tmp/stdin" 16315 case $ac_file in 16316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16318 esac \ 16319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16320 ;; 16321 :H) 16322 # 16323 # CONFIG_HEADER 16324 # 16325 if test x"$ac_file" != x-; then 16326 { 16327 $as_echo "/* $configure_input */" \ 16328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16329 } >"$ac_tmp/config.h" \ 16330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16331 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16333$as_echo "$as_me: $ac_file is unchanged" >&6;} 16334 else 16335 rm -f "$ac_file" 16336 mv "$ac_tmp/config.h" "$ac_file" \ 16337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16338 fi 16339 else 16340 $as_echo "/* $configure_input */" \ 16341 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16342 || as_fn_error $? "could not create -" "$LINENO" 5 16343 fi 16344# Compute "$ac_file"'s index in $config_headers. 16345_am_arg="$ac_file" 16346_am_stamp_count=1 16347for _am_header in $config_headers :; do 16348 case $_am_header in 16349 $_am_arg | $_am_arg:* ) 16350 break ;; 16351 * ) 16352 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16353 esac 16354done 16355echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16356$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16357 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16358 X"$_am_arg" : 'X\(//\)$' \| \ 16359 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16360$as_echo X"$_am_arg" | 16361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16362 s//\1/ 16363 q 16364 } 16365 /^X\(\/\/\)[^/].*/{ 16366 s//\1/ 16367 q 16368 } 16369 /^X\(\/\/\)$/{ 16370 s//\1/ 16371 q 16372 } 16373 /^X\(\/\).*/{ 16374 s//\1/ 16375 q 16376 } 16377 s/.*/./; q'`/stamp-h$_am_stamp_count 16378 ;; 16379 16380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16381$as_echo "$as_me: executing $ac_file commands" >&6;} 16382 ;; 16383 esac 16384 16385 16386 case $ac_file$ac_mode in 16387 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16388 # Older Autoconf quotes --file arguments for eval, but not when files 16389 # are listed without --file. Let's play safe and only enable the eval 16390 # if we detect the quoting. 16391 case $CONFIG_FILES in 16392 *\'*) eval set x "$CONFIG_FILES" ;; 16393 *) set x $CONFIG_FILES ;; 16394 esac 16395 shift 16396 for mf 16397 do 16398 # Strip MF so we end up with the name of the file. 16399 mf=`echo "$mf" | sed -e 's/:.*$//'` 16400 # Check whether this is an Automake generated Makefile or not. 16401 # We used to match only the files named 'Makefile.in', but 16402 # some people rename them; so instead we look at the file content. 16403 # Grep'ing the first line is not enough: some people post-process 16404 # each Makefile.in and add a new line on top of each file to say so. 16405 # Grep'ing the whole file is not good either: AIX grep has a line 16406 # limit of 2048, but all sed's we know have understand at least 4000. 16407 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16408 dirpart=`$as_dirname -- "$mf" || 16409$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16410 X"$mf" : 'X\(//\)[^/]' \| \ 16411 X"$mf" : 'X\(//\)$' \| \ 16412 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16413$as_echo X"$mf" | 16414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16415 s//\1/ 16416 q 16417 } 16418 /^X\(\/\/\)[^/].*/{ 16419 s//\1/ 16420 q 16421 } 16422 /^X\(\/\/\)$/{ 16423 s//\1/ 16424 q 16425 } 16426 /^X\(\/\).*/{ 16427 s//\1/ 16428 q 16429 } 16430 s/.*/./; q'` 16431 else 16432 continue 16433 fi 16434 # Extract the definition of DEPDIR, am__include, and am__quote 16435 # from the Makefile without running 'make'. 16436 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16437 test -z "$DEPDIR" && continue 16438 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16439 test -z "$am__include" && continue 16440 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16441 # Find all dependency output files, they are included files with 16442 # $(DEPDIR) in their names. We invoke sed twice because it is the 16443 # simplest approach to changing $(DEPDIR) to its actual value in the 16444 # expansion. 16445 for file in `sed -n " 16446 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16447 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16448 # Make sure the directory exists. 16449 test -f "$dirpart/$file" && continue 16450 fdir=`$as_dirname -- "$file" || 16451$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16452 X"$file" : 'X\(//\)[^/]' \| \ 16453 X"$file" : 'X\(//\)$' \| \ 16454 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16455$as_echo X"$file" | 16456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16457 s//\1/ 16458 q 16459 } 16460 /^X\(\/\/\)[^/].*/{ 16461 s//\1/ 16462 q 16463 } 16464 /^X\(\/\/\)$/{ 16465 s//\1/ 16466 q 16467 } 16468 /^X\(\/\).*/{ 16469 s//\1/ 16470 q 16471 } 16472 s/.*/./; q'` 16473 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16474 # echo "creating $dirpart/$file" 16475 echo '# dummy' > "$dirpart/$file" 16476 done 16477 done 16478} 16479 ;; 16480 "libtool":C) 16481 16482 # See if we are running on zsh, and set the options which allow our 16483 # commands through without removal of \ escapes. 16484 if test -n "${ZSH_VERSION+set}" ; then 16485 setopt NO_GLOB_SUBST 16486 fi 16487 16488 cfgfile="${ofile}T" 16489 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16490 $RM "$cfgfile" 16491 16492 cat <<_LT_EOF >> "$cfgfile" 16493#! $SHELL 16494 16495# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16496# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16498# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16499# 16500# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16501# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16502# Written by Gordon Matzigkeit, 1996 16503# 16504# This file is part of GNU Libtool. 16505# 16506# GNU Libtool is free software; you can redistribute it and/or 16507# modify it under the terms of the GNU General Public License as 16508# published by the Free Software Foundation; either version 2 of 16509# the License, or (at your option) any later version. 16510# 16511# As a special exception to the GNU General Public License, 16512# if you distribute this file as part of a program or library that 16513# is built using GNU Libtool, you may include this file under the 16514# same distribution terms that you use for the rest of that program. 16515# 16516# GNU Libtool is distributed in the hope that it will be useful, 16517# but WITHOUT ANY WARRANTY; without even the implied warranty of 16518# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16519# GNU General Public License for more details. 16520# 16521# You should have received a copy of the GNU General Public License 16522# along with GNU Libtool; see the file COPYING. If not, a copy 16523# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16524# obtained by writing to the Free Software Foundation, Inc., 16525# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16526 16527 16528# The names of the tagged configurations supported by this script. 16529available_tags="CXX " 16530 16531# ### BEGIN LIBTOOL CONFIG 16532 16533# Which release of libtool.m4 was used? 16534macro_version=$macro_version 16535macro_revision=$macro_revision 16536 16537# Whether or not to build shared libraries. 16538build_libtool_libs=$enable_shared 16539 16540# Whether or not to build static libraries. 16541build_old_libs=$enable_static 16542 16543# What type of objects to build. 16544pic_mode=$pic_mode 16545 16546# Whether or not to optimize for fast installation. 16547fast_install=$enable_fast_install 16548 16549# Shell to use when invoking shell scripts. 16550SHELL=$lt_SHELL 16551 16552# An echo program that protects backslashes. 16553ECHO=$lt_ECHO 16554 16555# The host system. 16556host_alias=$host_alias 16557host=$host 16558host_os=$host_os 16559 16560# The build system. 16561build_alias=$build_alias 16562build=$build 16563build_os=$build_os 16564 16565# A sed program that does not truncate output. 16566SED=$lt_SED 16567 16568# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16569Xsed="\$SED -e 1s/^X//" 16570 16571# A grep program that handles long lines. 16572GREP=$lt_GREP 16573 16574# An ERE matcher. 16575EGREP=$lt_EGREP 16576 16577# A literal string matcher. 16578FGREP=$lt_FGREP 16579 16580# A BSD- or MS-compatible name lister. 16581NM=$lt_NM 16582 16583# Whether we need soft or hard links. 16584LN_S=$lt_LN_S 16585 16586# What is the maximum length of a command? 16587max_cmd_len=$max_cmd_len 16588 16589# Object file suffix (normally "o"). 16590objext=$ac_objext 16591 16592# Executable file suffix (normally ""). 16593exeext=$exeext 16594 16595# whether the shell understands "unset". 16596lt_unset=$lt_unset 16597 16598# turn spaces into newlines. 16599SP2NL=$lt_lt_SP2NL 16600 16601# turn newlines into spaces. 16602NL2SP=$lt_lt_NL2SP 16603 16604# An object symbol dumper. 16605OBJDUMP=$lt_OBJDUMP 16606 16607# Method to check whether dependent libraries are shared objects. 16608deplibs_check_method=$lt_deplibs_check_method 16609 16610# Command to use when deplibs_check_method == "file_magic". 16611file_magic_cmd=$lt_file_magic_cmd 16612 16613# The archiver. 16614AR=$lt_AR 16615AR_FLAGS=$lt_AR_FLAGS 16616 16617# A symbol stripping program. 16618STRIP=$lt_STRIP 16619 16620# Commands used to install an old-style archive. 16621RANLIB=$lt_RANLIB 16622old_postinstall_cmds=$lt_old_postinstall_cmds 16623old_postuninstall_cmds=$lt_old_postuninstall_cmds 16624 16625# Whether to use a lock for old archive extraction. 16626lock_old_archive_extraction=$lock_old_archive_extraction 16627 16628# A C compiler. 16629LTCC=$lt_CC 16630 16631# LTCC compiler flags. 16632LTCFLAGS=$lt_CFLAGS 16633 16634# Take the output of nm and produce a listing of raw symbols and C names. 16635global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16636 16637# Transform the output of nm in a proper C declaration. 16638global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16639 16640# Transform the output of nm in a C name address pair. 16641global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16642 16643# Transform the output of nm in a C name address pair when lib prefix is needed. 16644global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16645 16646# The name of the directory that contains temporary libtool files. 16647objdir=$objdir 16648 16649# Used to examine libraries when file_magic_cmd begins with "file". 16650MAGIC_CMD=$MAGIC_CMD 16651 16652# Must we lock files when doing compilation? 16653need_locks=$lt_need_locks 16654 16655# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16656DSYMUTIL=$lt_DSYMUTIL 16657 16658# Tool to change global to local symbols on Mac OS X. 16659NMEDIT=$lt_NMEDIT 16660 16661# Tool to manipulate fat objects and archives on Mac OS X. 16662LIPO=$lt_LIPO 16663 16664# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16665OTOOL=$lt_OTOOL 16666 16667# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16668OTOOL64=$lt_OTOOL64 16669 16670# Old archive suffix (normally "a"). 16671libext=$libext 16672 16673# Shared library suffix (normally ".so"). 16674shrext_cmds=$lt_shrext_cmds 16675 16676# The commands to extract the exported symbol list from a shared archive. 16677extract_expsyms_cmds=$lt_extract_expsyms_cmds 16678 16679# Variables whose values should be saved in libtool wrapper scripts and 16680# restored at link time. 16681variables_saved_for_relink=$lt_variables_saved_for_relink 16682 16683# Do we need the "lib" prefix for modules? 16684need_lib_prefix=$need_lib_prefix 16685 16686# Do we need a version for libraries? 16687need_version=$need_version 16688 16689# Library versioning type. 16690version_type=$version_type 16691 16692# Shared library runtime path variable. 16693runpath_var=$runpath_var 16694 16695# Shared library path variable. 16696shlibpath_var=$shlibpath_var 16697 16698# Is shlibpath searched before the hard-coded library search path? 16699shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16700 16701# Format of library name prefix. 16702libname_spec=$lt_libname_spec 16703 16704# List of archive names. First name is the real one, the rest are links. 16705# The last name is the one that the linker finds with -lNAME 16706library_names_spec=$lt_library_names_spec 16707 16708# The coded name of the library, if different from the real name. 16709soname_spec=$lt_soname_spec 16710 16711# Permission mode override for installation of shared libraries. 16712install_override_mode=$lt_install_override_mode 16713 16714# Command to use after installation of a shared archive. 16715postinstall_cmds=$lt_postinstall_cmds 16716 16717# Command to use after uninstallation of a shared archive. 16718postuninstall_cmds=$lt_postuninstall_cmds 16719 16720# Commands used to finish a libtool library installation in a directory. 16721finish_cmds=$lt_finish_cmds 16722 16723# As "finish_cmds", except a single script fragment to be evaled but 16724# not shown. 16725finish_eval=$lt_finish_eval 16726 16727# Whether we should hardcode library paths into libraries. 16728hardcode_into_libs=$hardcode_into_libs 16729 16730# Compile-time system search path for libraries. 16731sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16732 16733# Run-time system search path for libraries. 16734sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16735 16736# Whether dlopen is supported. 16737dlopen_support=$enable_dlopen 16738 16739# Whether dlopen of programs is supported. 16740dlopen_self=$enable_dlopen_self 16741 16742# Whether dlopen of statically linked programs is supported. 16743dlopen_self_static=$enable_dlopen_self_static 16744 16745# Commands to strip libraries. 16746old_striplib=$lt_old_striplib 16747striplib=$lt_striplib 16748 16749 16750# The linker used to build libraries. 16751LD=$lt_LD 16752 16753# How to create reloadable object files. 16754reload_flag=$lt_reload_flag 16755reload_cmds=$lt_reload_cmds 16756 16757# Commands used to build an old-style archive. 16758old_archive_cmds=$lt_old_archive_cmds 16759 16760# A language specific compiler. 16761CC=$lt_compiler 16762 16763# Is the compiler the GNU compiler? 16764with_gcc=$GCC 16765 16766# Compiler flag to turn off builtin functions. 16767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16768 16769# How to pass a linker flag through the compiler. 16770wl=$lt_lt_prog_compiler_wl 16771 16772# Additional compiler flags for building library objects. 16773pic_flag=$lt_lt_prog_compiler_pic 16774 16775# Compiler flag to prevent dynamic linking. 16776link_static_flag=$lt_lt_prog_compiler_static 16777 16778# Does compiler simultaneously support -c and -o options? 16779compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16780 16781# Whether or not to add -lc for building shared libraries. 16782build_libtool_need_lc=$archive_cmds_need_lc 16783 16784# Whether or not to disallow shared libs when runtime libs are static. 16785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16786 16787# Compiler flag to allow reflexive dlopens. 16788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16789 16790# Compiler flag to generate shared objects directly from archives. 16791whole_archive_flag_spec=$lt_whole_archive_flag_spec 16792 16793# Whether the compiler copes with passing no objects directly. 16794compiler_needs_object=$lt_compiler_needs_object 16795 16796# Create an old-style archive from a shared archive. 16797old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16798 16799# Create a temporary old-style archive to link instead of a shared archive. 16800old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16801 16802# Commands used to build a shared archive. 16803archive_cmds=$lt_archive_cmds 16804archive_expsym_cmds=$lt_archive_expsym_cmds 16805 16806# Commands used to build a loadable module if different from building 16807# a shared archive. 16808module_cmds=$lt_module_cmds 16809module_expsym_cmds=$lt_module_expsym_cmds 16810 16811# Whether we are building with GNU ld or not. 16812with_gnu_ld=$lt_with_gnu_ld 16813 16814# Flag that allows shared libraries with undefined symbols to be built. 16815allow_undefined_flag=$lt_allow_undefined_flag 16816 16817# Flag that enforces no undefined symbols. 16818no_undefined_flag=$lt_no_undefined_flag 16819 16820# Flag to hardcode \$libdir into a binary during linking. 16821# This must work even if \$libdir does not exist 16822hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16823 16824# If ld is used when linking, flag to hardcode \$libdir into a binary 16825# during linking. This must work even if \$libdir does not exist. 16826hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16827 16828# Whether we need a single "-rpath" flag with a separated argument. 16829hardcode_libdir_separator=$lt_hardcode_libdir_separator 16830 16831# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16832# DIR into the resulting binary. 16833hardcode_direct=$hardcode_direct 16834 16835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16836# DIR into the resulting binary and the resulting library dependency is 16837# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16838# library is relocated. 16839hardcode_direct_absolute=$hardcode_direct_absolute 16840 16841# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16842# into the resulting binary. 16843hardcode_minus_L=$hardcode_minus_L 16844 16845# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16846# into the resulting binary. 16847hardcode_shlibpath_var=$hardcode_shlibpath_var 16848 16849# Set to "yes" if building a shared library automatically hardcodes DIR 16850# into the library and all subsequent libraries and executables linked 16851# against it. 16852hardcode_automatic=$hardcode_automatic 16853 16854# Set to yes if linker adds runtime paths of dependent libraries 16855# to runtime path list. 16856inherit_rpath=$inherit_rpath 16857 16858# Whether libtool must link a program against all its dependency libraries. 16859link_all_deplibs=$link_all_deplibs 16860 16861# Fix the shell variable \$srcfile for the compiler. 16862fix_srcfile_path=$lt_fix_srcfile_path 16863 16864# Set to "yes" if exported symbols are required. 16865always_export_symbols=$always_export_symbols 16866 16867# The commands to list exported symbols. 16868export_symbols_cmds=$lt_export_symbols_cmds 16869 16870# Symbols that should not be listed in the preloaded symbols. 16871exclude_expsyms=$lt_exclude_expsyms 16872 16873# Symbols that must always be exported. 16874include_expsyms=$lt_include_expsyms 16875 16876# Commands necessary for linking programs (against libraries) with templates. 16877prelink_cmds=$lt_prelink_cmds 16878 16879# Specify filename containing input files. 16880file_list_spec=$lt_file_list_spec 16881 16882# How to hardcode a shared library path into an executable. 16883hardcode_action=$hardcode_action 16884 16885# The directories searched by this compiler when creating a shared library. 16886compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16887 16888# Dependencies to place before and after the objects being linked to 16889# create a shared library. 16890predep_objects=$lt_predep_objects 16891postdep_objects=$lt_postdep_objects 16892predeps=$lt_predeps 16893postdeps=$lt_postdeps 16894 16895# The library search path used internally by the compiler when linking 16896# a shared library. 16897compiler_lib_search_path=$lt_compiler_lib_search_path 16898 16899# ### END LIBTOOL CONFIG 16900 16901_LT_EOF 16902 16903 case $host_os in 16904 aix3*) 16905 cat <<\_LT_EOF >> "$cfgfile" 16906# AIX sometimes has problems with the GCC collect2 program. For some 16907# reason, if we set the COLLECT_NAMES environment variable, the problems 16908# vanish in a puff of smoke. 16909if test "X${COLLECT_NAMES+set}" != Xset; then 16910 COLLECT_NAMES= 16911 export COLLECT_NAMES 16912fi 16913_LT_EOF 16914 ;; 16915 esac 16916 16917 16918ltmain="$ac_aux_dir/ltmain.sh" 16919 16920 16921 # We use sed instead of cat because bash on DJGPP gets confused if 16922 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16923 # text mode, it properly converts lines to CR/LF. This bash problem 16924 # is reportedly fixed, but why not run on old versions too? 16925 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16926 || (rm -f "$cfgfile"; exit 1) 16927 16928 case $xsi_shell in 16929 yes) 16930 cat << \_LT_EOF >> "$cfgfile" 16931 16932# func_dirname file append nondir_replacement 16933# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16934# otherwise set result to NONDIR_REPLACEMENT. 16935func_dirname () 16936{ 16937 case ${1} in 16938 */*) func_dirname_result="${1%/*}${2}" ;; 16939 * ) func_dirname_result="${3}" ;; 16940 esac 16941} 16942 16943# func_basename file 16944func_basename () 16945{ 16946 func_basename_result="${1##*/}" 16947} 16948 16949# func_dirname_and_basename file append nondir_replacement 16950# perform func_basename and func_dirname in a single function 16951# call: 16952# dirname: Compute the dirname of FILE. If nonempty, 16953# add APPEND to the result, otherwise set result 16954# to NONDIR_REPLACEMENT. 16955# value returned in "$func_dirname_result" 16956# basename: Compute filename of FILE. 16957# value retuned in "$func_basename_result" 16958# Implementation must be kept synchronized with func_dirname 16959# and func_basename. For efficiency, we do not delegate to 16960# those functions but instead duplicate the functionality here. 16961func_dirname_and_basename () 16962{ 16963 case ${1} in 16964 */*) func_dirname_result="${1%/*}${2}" ;; 16965 * ) func_dirname_result="${3}" ;; 16966 esac 16967 func_basename_result="${1##*/}" 16968} 16969 16970# func_stripname prefix suffix name 16971# strip PREFIX and SUFFIX off of NAME. 16972# PREFIX and SUFFIX must not contain globbing or regex special 16973# characters, hashes, percent signs, but SUFFIX may contain a leading 16974# dot (in which case that matches only a dot). 16975func_stripname () 16976{ 16977 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16978 # positional parameters, so assign one to ordinary parameter first. 16979 func_stripname_result=${3} 16980 func_stripname_result=${func_stripname_result#"${1}"} 16981 func_stripname_result=${func_stripname_result%"${2}"} 16982} 16983 16984# func_opt_split 16985func_opt_split () 16986{ 16987 func_opt_split_opt=${1%%=*} 16988 func_opt_split_arg=${1#*=} 16989} 16990 16991# func_lo2o object 16992func_lo2o () 16993{ 16994 case ${1} in 16995 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16996 *) func_lo2o_result=${1} ;; 16997 esac 16998} 16999 17000# func_xform libobj-or-source 17001func_xform () 17002{ 17003 func_xform_result=${1%.*}.lo 17004} 17005 17006# func_arith arithmetic-term... 17007func_arith () 17008{ 17009 func_arith_result=$(( $* )) 17010} 17011 17012# func_len string 17013# STRING may not start with a hyphen. 17014func_len () 17015{ 17016 func_len_result=${#1} 17017} 17018 17019_LT_EOF 17020 ;; 17021 *) # Bourne compatible functions. 17022 cat << \_LT_EOF >> "$cfgfile" 17023 17024# func_dirname file append nondir_replacement 17025# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17026# otherwise set result to NONDIR_REPLACEMENT. 17027func_dirname () 17028{ 17029 # Extract subdirectory from the argument. 17030 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17031 if test "X$func_dirname_result" = "X${1}"; then 17032 func_dirname_result="${3}" 17033 else 17034 func_dirname_result="$func_dirname_result${2}" 17035 fi 17036} 17037 17038# func_basename file 17039func_basename () 17040{ 17041 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17042} 17043 17044 17045# func_stripname prefix suffix name 17046# strip PREFIX and SUFFIX off of NAME. 17047# PREFIX and SUFFIX must not contain globbing or regex special 17048# characters, hashes, percent signs, but SUFFIX may contain a leading 17049# dot (in which case that matches only a dot). 17050# func_strip_suffix prefix name 17051func_stripname () 17052{ 17053 case ${2} in 17054 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17055 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17056 esac 17057} 17058 17059# sed scripts: 17060my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17061my_sed_long_arg='1s/^-[^=]*=//' 17062 17063# func_opt_split 17064func_opt_split () 17065{ 17066 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17067 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17068} 17069 17070# func_lo2o object 17071func_lo2o () 17072{ 17073 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17074} 17075 17076# func_xform libobj-or-source 17077func_xform () 17078{ 17079 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17080} 17081 17082# func_arith arithmetic-term... 17083func_arith () 17084{ 17085 func_arith_result=`expr "$@"` 17086} 17087 17088# func_len string 17089# STRING may not start with a hyphen. 17090func_len () 17091{ 17092 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17093} 17094 17095_LT_EOF 17096esac 17097 17098case $lt_shell_append in 17099 yes) 17100 cat << \_LT_EOF >> "$cfgfile" 17101 17102# func_append var value 17103# Append VALUE to the end of shell variable VAR. 17104func_append () 17105{ 17106 eval "$1+=\$2" 17107} 17108_LT_EOF 17109 ;; 17110 *) 17111 cat << \_LT_EOF >> "$cfgfile" 17112 17113# func_append var value 17114# Append VALUE to the end of shell variable VAR. 17115func_append () 17116{ 17117 eval "$1=\$$1\$2" 17118} 17119 17120_LT_EOF 17121 ;; 17122 esac 17123 17124 17125 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17126 || (rm -f "$cfgfile"; exit 1) 17127 17128 mv -f "$cfgfile" "$ofile" || 17129 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17130 chmod +x "$ofile" 17131 17132 17133 cat <<_LT_EOF >> "$ofile" 17134 17135# ### BEGIN LIBTOOL TAG CONFIG: CXX 17136 17137# The linker used to build libraries. 17138LD=$lt_LD_CXX 17139 17140# How to create reloadable object files. 17141reload_flag=$lt_reload_flag_CXX 17142reload_cmds=$lt_reload_cmds_CXX 17143 17144# Commands used to build an old-style archive. 17145old_archive_cmds=$lt_old_archive_cmds_CXX 17146 17147# A language specific compiler. 17148CC=$lt_compiler_CXX 17149 17150# Is the compiler the GNU compiler? 17151with_gcc=$GCC_CXX 17152 17153# Compiler flag to turn off builtin functions. 17154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17155 17156# How to pass a linker flag through the compiler. 17157wl=$lt_lt_prog_compiler_wl_CXX 17158 17159# Additional compiler flags for building library objects. 17160pic_flag=$lt_lt_prog_compiler_pic_CXX 17161 17162# Compiler flag to prevent dynamic linking. 17163link_static_flag=$lt_lt_prog_compiler_static_CXX 17164 17165# Does compiler simultaneously support -c and -o options? 17166compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17167 17168# Whether or not to add -lc for building shared libraries. 17169build_libtool_need_lc=$archive_cmds_need_lc_CXX 17170 17171# Whether or not to disallow shared libs when runtime libs are static. 17172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17173 17174# Compiler flag to allow reflexive dlopens. 17175export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17176 17177# Compiler flag to generate shared objects directly from archives. 17178whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17179 17180# Whether the compiler copes with passing no objects directly. 17181compiler_needs_object=$lt_compiler_needs_object_CXX 17182 17183# Create an old-style archive from a shared archive. 17184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17185 17186# Create a temporary old-style archive to link instead of a shared archive. 17187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17188 17189# Commands used to build a shared archive. 17190archive_cmds=$lt_archive_cmds_CXX 17191archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17192 17193# Commands used to build a loadable module if different from building 17194# a shared archive. 17195module_cmds=$lt_module_cmds_CXX 17196module_expsym_cmds=$lt_module_expsym_cmds_CXX 17197 17198# Whether we are building with GNU ld or not. 17199with_gnu_ld=$lt_with_gnu_ld_CXX 17200 17201# Flag that allows shared libraries with undefined symbols to be built. 17202allow_undefined_flag=$lt_allow_undefined_flag_CXX 17203 17204# Flag that enforces no undefined symbols. 17205no_undefined_flag=$lt_no_undefined_flag_CXX 17206 17207# Flag to hardcode \$libdir into a binary during linking. 17208# This must work even if \$libdir does not exist 17209hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17210 17211# If ld is used when linking, flag to hardcode \$libdir into a binary 17212# during linking. This must work even if \$libdir does not exist. 17213hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17214 17215# Whether we need a single "-rpath" flag with a separated argument. 17216hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17217 17218# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17219# DIR into the resulting binary. 17220hardcode_direct=$hardcode_direct_CXX 17221 17222# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17223# DIR into the resulting binary and the resulting library dependency is 17224# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17225# library is relocated. 17226hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17227 17228# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17229# into the resulting binary. 17230hardcode_minus_L=$hardcode_minus_L_CXX 17231 17232# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17233# into the resulting binary. 17234hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17235 17236# Set to "yes" if building a shared library automatically hardcodes DIR 17237# into the library and all subsequent libraries and executables linked 17238# against it. 17239hardcode_automatic=$hardcode_automatic_CXX 17240 17241# Set to yes if linker adds runtime paths of dependent libraries 17242# to runtime path list. 17243inherit_rpath=$inherit_rpath_CXX 17244 17245# Whether libtool must link a program against all its dependency libraries. 17246link_all_deplibs=$link_all_deplibs_CXX 17247 17248# Fix the shell variable \$srcfile for the compiler. 17249fix_srcfile_path=$lt_fix_srcfile_path_CXX 17250 17251# Set to "yes" if exported symbols are required. 17252always_export_symbols=$always_export_symbols_CXX 17253 17254# The commands to list exported symbols. 17255export_symbols_cmds=$lt_export_symbols_cmds_CXX 17256 17257# Symbols that should not be listed in the preloaded symbols. 17258exclude_expsyms=$lt_exclude_expsyms_CXX 17259 17260# Symbols that must always be exported. 17261include_expsyms=$lt_include_expsyms_CXX 17262 17263# Commands necessary for linking programs (against libraries) with templates. 17264prelink_cmds=$lt_prelink_cmds_CXX 17265 17266# Specify filename containing input files. 17267file_list_spec=$lt_file_list_spec_CXX 17268 17269# How to hardcode a shared library path into an executable. 17270hardcode_action=$hardcode_action_CXX 17271 17272# The directories searched by this compiler when creating a shared library. 17273compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17274 17275# Dependencies to place before and after the objects being linked to 17276# create a shared library. 17277predep_objects=$lt_predep_objects_CXX 17278postdep_objects=$lt_postdep_objects_CXX 17279predeps=$lt_predeps_CXX 17280postdeps=$lt_postdeps_CXX 17281 17282# The library search path used internally by the compiler when linking 17283# a shared library. 17284compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17285 17286# ### END LIBTOOL TAG CONFIG: CXX 17287_LT_EOF 17288 17289 ;; 17290 17291 esac 17292done # for ac_tag 17293 17294 17295as_fn_exit 0 17296_ACEOF 17297ac_clean_files=$ac_clean_files_save 17298 17299test $ac_write_fail = 0 || 17300 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17301 17302 17303# configure is writing to config.log, and then calls config.status. 17304# config.status does its own redirection, appending to config.log. 17305# Unfortunately, on DOS this fails, as config.log is still kept open 17306# by configure, so config.status won't be able to write to it; its 17307# output is simply discarded. So we exec the FD to /dev/null, 17308# effectively closing config.log, so it can be properly (re)opened and 17309# appended to by config.status. When coming back to configure, we 17310# need to make the FD available again. 17311if test "$no_create" != yes; then 17312 ac_cs_success=: 17313 ac_config_status_args= 17314 test "$silent" = yes && 17315 ac_config_status_args="$ac_config_status_args --quiet" 17316 exec 5>/dev/null 17317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17318 exec 5>>config.log 17319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17320 # would make configure fail if this is the last instruction. 17321 $ac_cs_success || as_fn_exit 1 17322fi 17323if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17325$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17326fi 17327 17328