1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for dragon 1.5.5. 4# 5# Report bugs to <lemke@lemke-it.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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and lemke@lemke-it.com 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: 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='dragon' 592PACKAGE_TARNAME='dragon' 593PACKAGE_VERSION='1.5.5' 594PACKAGE_STRING='dragon 1.5.5' 595PACKAGE_BUGREPORT='lemke@lemke-it.com' 596PACKAGE_URL='' 597 598ac_unique_file="config.h.in" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBTOOL_DEPS 639CXXCPP 640LT_SYS_LIBRARY_PATH 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646MANIFEST_TOOL 647RANLIB 648DLLTOOL 649OBJDUMP 650NM 651ac_ct_DUMPBIN 652DUMPBIN 653LD 654FGREP 655SED 656host_os 657host_vendor 658host_cpu 659host 660build_os 661build_vendor 662build_cpu 663build 664LIBTOOL 665LIBOBJS 666EGREP 667GREP 668LFC_LIBS 669LFC_CFLAGS 670ac_ct_AR 671AR 672LN_S 673CPP 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677ac_ct_CC 678CFLAGS 679CC 680am__fastdepCXX_FALSE 681am__fastdepCXX_TRUE 682CXXDEPMODE 683am__nodep 684AMDEPBACKSLASH 685AMDEP_FALSE 686AMDEP_TRUE 687am__quote 688am__include 689DEPDIR 690OBJEXT 691EXEEXT 692ac_ct_CXX 693CPPFLAGS 694LDFLAGS 695CXXFLAGS 696CXX 697AM_BACKSLASH 698AM_DEFAULT_VERBOSITY 699AM_DEFAULT_V 700AM_V 701am__untar 702am__tar 703AMTAR 704am__leading_dot 705SET_MAKE 706AWK 707mkdir_p 708MKDIR_P 709INSTALL_STRIP_PROGRAM 710STRIP 711install_sh 712MAKEINFO 713AUTOHEADER 714AUTOMAKE 715AUTOCONF 716ACLOCAL 717VERSION 718PACKAGE 719CYGPATH_W 720am__isrc 721INSTALL_DATA 722INSTALL_SCRIPT 723INSTALL_PROGRAM 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_silent_rules 766enable_dependency_tracking 767with_lfc_include_path 768with_lfc_lib_path 769enable_shared 770enable_static 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777' 778 ac_precious_vars='build_alias 779host_alias 780target_alias 781CXX 782CXXFLAGS 783LDFLAGS 784LIBS 785CPPFLAGS 786CCC 787CC 788CFLAGS 789CPP 790LT_SYS_LIBRARY_PATH 791CXXCPP' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250fi 1251 1252ac_tool_prefix= 1253test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255test "$silent" = yes && exec 6>/dev/null 1256 1257 1258ac_pwd=`pwd` && test -n "$ac_pwd" && 1259ac_ls_di=`ls -di .` && 1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 as_fn_error $? "working directory cannot be determined" 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 as_fn_error $? "pwd does not report name of working directory" 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$as_myself" || 1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1273 X"$as_myself" : 'X\(//\)$' \| \ 1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1275$as_echo X"$as_myself" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures dragon 1.5.5 to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking ...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/dragon] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389Program names: 1390 --program-prefix=PREFIX prepend PREFIX to installed program names 1391 --program-suffix=SUFFIX append SUFFIX to installed program names 1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397_ACEOF 1398fi 1399 1400if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of dragon 1.5.5:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406Optional Features: 1407 --disable-option-checking ignore unrecognized --enable/--with options 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --enable-silent-rules less verbose build output (undo: "make V=1") 1411 --disable-silent-rules verbose build output (undo: "make V=0") 1412 --enable-dependency-tracking 1413 do not reject slow dependency extractors 1414 --disable-dependency-tracking 1415 speeds up one-time build 1416 --enable-shared[=PKGS] build shared libraries [default=yes] 1417 --enable-static[=PKGS] build static libraries [default=yes] 1418 --enable-fast-install[=PKGS] 1419 optimize for fast installation [default=yes] 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 1422Optional Packages: 1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1425 --with-lfc-include-path location of the LFC headers, defaults to 1426 /usr/local/include/lfcbase 1427 --with-lfc-lib-path location of the LFC libraries 1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1429 both] 1430 --with-aix-soname=aix|svr4|both 1431 shared library versioning (aka "SONAME") variant to 1432 provide on AIX, [default=aix]. 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1435 compiler's sysroot if not specified). 1436 1437Some influential environment variables: 1438 CXX C++ compiler command 1439 CXXFLAGS C++ compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 CPP C preprocessor 1448 LT_SYS_LIBRARY_PATH 1449 User-defined run-time library search path. 1450 CXXCPP C++ preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <lemke@lemke-it.com>. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for guested configure. 1502 if test -f "$ac_srcdir/configure.gnu"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1505 elif test -f "$ac_srcdir/configure"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure" --help=recursive 1508 else 1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1510 fi || ac_status=$? 1511 cd "$ac_pwd" || { ac_status=$?; break; } 1512 done 1513fi 1514 1515test -n "$ac_init_help" && exit $ac_status 1516if $ac_init_version; then 1517 cat <<\_ACEOF 1518dragon configure 1.5.5 1519generated by GNU Autoconf 2.69 1520 1521Copyright (C) 2012 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527 1528## ------------------------ ## 1529## Autoconf initialization. ## 1530## ------------------------ ## 1531 1532# ac_fn_cxx_try_compile LINENO 1533# ---------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_cxx_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_cxx_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568} # ac_fn_cxx_try_compile 1569 1570# ac_fn_c_try_compile LINENO 1571# -------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_compile 1607 1608# ac_fn_c_try_cpp LINENO 1609# ---------------------- 1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_cpp () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if { { ac_try="$ac_cpp conftest.$ac_ext" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } > conftest.i && { 1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_cpp 1644 1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1648# the include files in INCLUDES and setting the cache variable VAR 1649# accordingly. 1650ac_fn_c_check_header_mongrel () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if eval \${$3+:} false; then : 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if eval \${$3+:} false; then : 1657 $as_echo_n "(cached) " >&6 1658fi 1659eval ac_res=\$$3 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661$as_echo "$ac_res" >&6; } 1662else 1663 # Is the header compilable? 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1665$as_echo_n "checking $2 usability... " >&6; } 1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 ac_header_compiler=yes 1673else 1674 ac_header_compiler=no 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1678$as_echo "$ac_header_compiler" >&6; } 1679 1680# Is the header present? 1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1682$as_echo_n "checking $2 presence... " >&6; } 1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_cpp "$LINENO"; then : 1688 ac_header_preproc=yes 1689else 1690 ac_header_preproc=no 1691fi 1692rm -f conftest.err conftest.i conftest.$ac_ext 1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1694$as_echo "$ac_header_preproc" >&6; } 1695 1696# So? What about this header? 1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1698 yes:no: ) 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1703 ;; 1704 no:yes:* ) 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1715( $as_echo "## --------------------------------- ## 1716## Report this to lemke@lemke-it.com ## 1717## --------------------------------- ##" 1718 ) | sed "s/^/$as_me: WARNING: /" >&2 1719 ;; 1720esac 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725else 1726 eval "$3=\$ac_header_compiler" 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731fi 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_header_mongrel 1735 1736# ac_fn_c_try_run LINENO 1737# ---------------------- 1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1739# that executables *can* be run. 1740ac_fn_c_try_run () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { { ac_try="$ac_link" 1744case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_link") 2>&5 1751 ac_status=$? 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1754 { { case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_try") 2>&5 1761 ac_status=$? 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; }; }; then : 1764 ac_retval=0 1765else 1766 $as_echo "$as_me: program exited with status $ac_status" >&5 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=$ac_status 1771fi 1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 as_fn_set_status $ac_retval 1775 1776} # ac_fn_c_try_run 1777 1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1779# ------------------------------------------------------- 1780# Tests whether HEADER exists and can be compiled using the include files in 1781# INCLUDES, setting the cache variable VAR accordingly. 1782ac_fn_c_check_header_compile () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792$4 1793#include <$2> 1794_ACEOF 1795if ac_fn_c_try_compile "$LINENO"; then : 1796 eval "$3=yes" 1797else 1798 eval "$3=no" 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801fi 1802eval ac_res=\$$3 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804$as_echo "$ac_res" >&6; } 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 1807} # ac_fn_c_check_header_compile 1808 1809# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1810# ------------------------------------------- 1811# Tests whether TYPE exists after having included INCLUDES, setting cache 1812# variable VAR accordingly. 1813ac_fn_c_check_type () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if eval \${$3+:} false; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 eval "$3=no" 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825int 1826main () 1827{ 1828if (sizeof ($2)) 1829 return 0; 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837$4 1838int 1839main () 1840{ 1841if (sizeof (($2))) 1842 return 0; 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO"; then : 1848 1849else 1850 eval "$3=yes" 1851fi 1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_type 1862 1863# ac_fn_c_try_link LINENO 1864# ----------------------- 1865# Try to link conftest.$ac_ext, and return whether this succeeded. 1866ac_fn_c_try_link () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 rm -f conftest.$ac_objext conftest$ac_exeext 1870 if { { ac_try="$ac_link" 1871case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874esac 1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876$as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_link") 2>conftest.err 1878 ac_status=$? 1879 if test -s conftest.err; then 1880 grep -v '^ *+' conftest.err >conftest.er1 1881 cat conftest.er1 >&5 1882 mv -f conftest.er1 conftest.err 1883 fi 1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; } && { 1886 test -z "$ac_c_werror_flag" || 1887 test ! -s conftest.err 1888 } && test -s conftest$ac_exeext && { 1889 test "$cross_compiling" = yes || 1890 test -x conftest$ac_exeext 1891 }; then : 1892 ac_retval=0 1893else 1894 $as_echo "$as_me: failed program was:" >&5 1895sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=1 1898fi 1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1901 # interfere with the next link command; also delete a directory that is 1902 # left behind by Apple's compiler. We do this before executing the actions. 1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 as_fn_set_status $ac_retval 1906 1907} # ac_fn_c_try_link 1908 1909# ac_fn_c_check_func LINENO FUNC VAR 1910# ---------------------------------- 1911# Tests whether FUNC exists, setting the cache variable VAR accordingly 1912ac_fn_c_check_func () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1916$as_echo_n "checking for $2... " >&6; } 1917if eval \${$3+:} false; then : 1918 $as_echo_n "(cached) " >&6 1919else 1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1924#define $2 innocuous_$2 1925 1926/* System header to define __stub macros and hopefully few prototypes, 1927 which can conflict with char $2 (); below. 1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1929 <limits.h> exists even on freestanding compilers. */ 1930 1931#ifdef __STDC__ 1932# include <limits.h> 1933#else 1934# include <assert.h> 1935#endif 1936 1937#undef $2 1938 1939/* Override any GCC internal prototype to avoid an error. 1940 Use char because int might match the return type of a GCC 1941 builtin and then its argument prototype would still apply. */ 1942#ifdef __cplusplus 1943extern "C" 1944#endif 1945char $2 (); 1946/* The GNU C library defines this for functions which it implements 1947 to always fail with ENOSYS. Some functions are actually named 1948 something starting with __ and the normal name is an alias. */ 1949#if defined __stub_$2 || defined __stub___$2 1950choke me 1951#endif 1952 1953int 1954main () 1955{ 1956return $2 (); 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_link "$LINENO"; then : 1962 eval "$3=yes" 1963else 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext \ 1967 conftest$ac_exeext conftest.$ac_ext 1968fi 1969eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971$as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_func 1975 1976# ac_fn_cxx_try_cpp LINENO 1977# ------------------------ 1978# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1979ac_fn_cxx_try_cpp () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if { { ac_try="$ac_cpp conftest.$ac_ext" 1983case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988$as_echo "$ac_try_echo"; } >&5 1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1990 ac_status=$? 1991 if test -s conftest.err; then 1992 grep -v '^ *+' conftest.err >conftest.er1 1993 cat conftest.er1 >&5 1994 mv -f conftest.er1 conftest.err 1995 fi 1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1997 test $ac_status = 0; } > conftest.i && { 1998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1999 test ! -s conftest.err 2000 }; then : 2001 ac_retval=0 2002else 2003 $as_echo "$as_me: failed program was:" >&5 2004sed 's/^/| /' conftest.$ac_ext >&5 2005 2006 ac_retval=1 2007fi 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 as_fn_set_status $ac_retval 2010 2011} # ac_fn_cxx_try_cpp 2012 2013# ac_fn_cxx_try_link LINENO 2014# ------------------------- 2015# Try to link conftest.$ac_ext, and return whether this succeeded. 2016ac_fn_cxx_try_link () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 rm -f conftest.$ac_objext conftest$ac_exeext 2020 if { { ac_try="$ac_link" 2021case "(($ac_try" in 2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2023 *) ac_try_echo=$ac_try;; 2024esac 2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2026$as_echo "$ac_try_echo"; } >&5 2027 (eval "$ac_link") 2>conftest.err 2028 ac_status=$? 2029 if test -s conftest.err; then 2030 grep -v '^ *+' conftest.err >conftest.er1 2031 cat conftest.er1 >&5 2032 mv -f conftest.er1 conftest.err 2033 fi 2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2035 test $ac_status = 0; } && { 2036 test -z "$ac_cxx_werror_flag" || 2037 test ! -s conftest.err 2038 } && test -s conftest$ac_exeext && { 2039 test "$cross_compiling" = yes || 2040 test -x conftest$ac_exeext 2041 }; then : 2042 ac_retval=0 2043else 2044 $as_echo "$as_me: failed program was:" >&5 2045sed 's/^/| /' conftest.$ac_ext >&5 2046 2047 ac_retval=1 2048fi 2049 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2050 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2051 # interfere with the next link command; also delete a directory that is 2052 # left behind by Apple's compiler. We do this before executing the actions. 2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 as_fn_set_status $ac_retval 2056 2057} # ac_fn_cxx_try_link 2058cat >config.log <<_ACEOF 2059This file contains any messages produced by compilers while 2060running configure, to aid debugging if configure makes a mistake. 2061 2062It was created by dragon $as_me 1.5.5, which was 2063generated by GNU Autoconf 2.69. Invocation command line was 2064 2065 $ $0 $@ 2066 2067_ACEOF 2068exec 5>>config.log 2069{ 2070cat <<_ASUNAME 2071## --------- ## 2072## Platform. ## 2073## --------- ## 2074 2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2076uname -m = `(uname -m) 2>/dev/null || echo unknown` 2077uname -r = `(uname -r) 2>/dev/null || echo unknown` 2078uname -s = `(uname -s) 2>/dev/null || echo unknown` 2079uname -v = `(uname -v) 2>/dev/null || echo unknown` 2080 2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2082/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2083 2084/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2085/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2087/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2088/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2089/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2090/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2091 2092_ASUNAME 2093 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH 2096do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 $as_echo "PATH: $as_dir" 2100 done 2101IFS=$as_save_IFS 2102 2103} >&5 2104 2105cat >&5 <<_ACEOF 2106 2107 2108## ----------- ## 2109## Core tests. ## 2110## ----------- ## 2111 2112_ACEOF 2113 2114 2115# Keep a trace of the command line. 2116# Strip out --no-create and --no-recursion so they do not pile up. 2117# Strip out --silent because we don't want to record it for future runs. 2118# Also quote any args containing shell meta-characters. 2119# Make two passes to allow for proper duplicate-argument suppression. 2120ac_configure_args= 2121ac_configure_args0= 2122ac_configure_args1= 2123ac_must_keep_next=false 2124for ac_pass in 1 2 2125do 2126 for ac_arg 2127 do 2128 case $ac_arg in 2129 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2131 | -silent | --silent | --silen | --sile | --sil) 2132 continue ;; 2133 *\'*) 2134 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2135 esac 2136 case $ac_pass in 2137 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2138 2) 2139 as_fn_append ac_configure_args1 " '$ac_arg'" 2140 if test $ac_must_keep_next = true; then 2141 ac_must_keep_next=false # Got value, back to normal. 2142 else 2143 case $ac_arg in 2144 *=* | --config-cache | -C | -disable-* | --disable-* \ 2145 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2146 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2147 | -with-* | --with-* | -without-* | --without-* | --x) 2148 case "$ac_configure_args0 " in 2149 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2150 esac 2151 ;; 2152 -* ) ac_must_keep_next=true ;; 2153 esac 2154 fi 2155 as_fn_append ac_configure_args " '$ac_arg'" 2156 ;; 2157 esac 2158 done 2159done 2160{ ac_configure_args0=; unset ac_configure_args0;} 2161{ ac_configure_args1=; unset ac_configure_args1;} 2162 2163# When interrupted or exit'd, cleanup temporary files, and complete 2164# config.log. We remove comments because anyway the quotes in there 2165# would cause problems or look ugly. 2166# WARNING: Use '\'' to represent an apostrophe within the trap. 2167# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2168trap 'exit_status=$? 2169 # Save into config.log some information that might help in debugging. 2170 { 2171 echo 2172 2173 $as_echo "## ---------------- ## 2174## Cache variables. ## 2175## ---------------- ##" 2176 echo 2177 # The following way of writing the cache mishandles newlines in values, 2178( 2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2180 eval ac_val=\$$ac_var 2181 case $ac_val in #( 2182 *${as_nl}*) 2183 case $ac_var in #( 2184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2186 esac 2187 case $ac_var in #( 2188 _ | IFS | as_nl) ;; #( 2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2190 *) { eval $ac_var=; unset $ac_var;} ;; 2191 esac ;; 2192 esac 2193 done 2194 (set) 2>&1 | 2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2196 *${as_nl}ac_space=\ *) 2197 sed -n \ 2198 "s/'\''/'\''\\\\'\'''\''/g; 2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2200 ;; #( 2201 *) 2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2203 ;; 2204 esac | 2205 sort 2206) 2207 echo 2208 2209 $as_echo "## ----------------- ## 2210## Output variables. ## 2211## ----------------- ##" 2212 echo 2213 for ac_var in $ac_subst_vars 2214 do 2215 eval ac_val=\$$ac_var 2216 case $ac_val in 2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2218 esac 2219 $as_echo "$ac_var='\''$ac_val'\''" 2220 done | sort 2221 echo 2222 2223 if test -n "$ac_subst_files"; then 2224 $as_echo "## ------------------- ## 2225## File substitutions. ## 2226## ------------------- ##" 2227 echo 2228 for ac_var in $ac_subst_files 2229 do 2230 eval ac_val=\$$ac_var 2231 case $ac_val in 2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2233 esac 2234 $as_echo "$ac_var='\''$ac_val'\''" 2235 done | sort 2236 echo 2237 fi 2238 2239 if test -s confdefs.h; then 2240 $as_echo "## ----------- ## 2241## confdefs.h. ## 2242## ----------- ##" 2243 echo 2244 cat confdefs.h 2245 echo 2246 fi 2247 test "$ac_signal" != 0 && 2248 $as_echo "$as_me: caught signal $ac_signal" 2249 $as_echo "$as_me: exit $exit_status" 2250 } >&5 2251 rm -f core *.core core.conftest.* && 2252 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2253 exit $exit_status 2254' 0 2255for ac_signal in 1 2 13 15; do 2256 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2257done 2258ac_signal=0 2259 2260# confdefs.h avoids OS command line length limits that DEFS can exceed. 2261rm -f -r conftest* confdefs.h 2262 2263$as_echo "/* confdefs.h */" > confdefs.h 2264 2265# Predefined preprocessor variables. 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_NAME "$PACKAGE_NAME" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2273_ACEOF 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE_VERSION "$PACKAGE_VERSION" 2277_ACEOF 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE_STRING "$PACKAGE_STRING" 2281_ACEOF 2282 2283cat >>confdefs.h <<_ACEOF 2284#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2285_ACEOF 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_URL "$PACKAGE_URL" 2289_ACEOF 2290 2291 2292# Let the site file select an alternate cache file if it wants to. 2293# Prefer an explicitly selected file to automatically selected ones. 2294ac_site_file1=NONE 2295ac_site_file2=NONE 2296if test -n "$CONFIG_SITE"; then 2297 # We do not want a PATH search for config.site. 2298 case $CONFIG_SITE in #(( 2299 -*) ac_site_file1=./$CONFIG_SITE;; 2300 */*) ac_site_file1=$CONFIG_SITE;; 2301 *) ac_site_file1=./$CONFIG_SITE;; 2302 esac 2303elif test "x$prefix" != xNONE; then 2304 ac_site_file1=$prefix/share/config.site 2305 ac_site_file2=$prefix/etc/config.site 2306else 2307 ac_site_file1=$ac_default_prefix/share/config.site 2308 ac_site_file2=$ac_default_prefix/etc/config.site 2309fi 2310for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2311do 2312 test "x$ac_site_file" = xNONE && continue 2313 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2315$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2316 sed 's/^/| /' "$ac_site_file" >&5 2317 . "$ac_site_file" \ 2318 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2320as_fn_error $? "failed to load site script $ac_site_file 2321See \`config.log' for more details" "$LINENO" 5; } 2322 fi 2323done 2324 2325if test -r "$cache_file"; then 2326 # Some versions of bash will fail to source /dev/null (special files 2327 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2328 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2330$as_echo "$as_me: loading cache $cache_file" >&6;} 2331 case $cache_file in 2332 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2333 *) . "./$cache_file";; 2334 esac 2335 fi 2336else 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2338$as_echo "$as_me: creating cache $cache_file" >&6;} 2339 >$cache_file 2340fi 2341 2342# Check that the precious variables saved in the cache have kept the same 2343# value. 2344ac_cache_corrupted=false 2345for ac_var in $ac_precious_vars; do 2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2347 eval ac_new_set=\$ac_env_${ac_var}_set 2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2349 eval ac_new_val=\$ac_env_${ac_var}_value 2350 case $ac_old_set,$ac_new_set in 2351 set,) 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2354 ac_cache_corrupted=: ;; 2355 ,set) 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2358 ac_cache_corrupted=: ;; 2359 ,);; 2360 *) 2361 if test "x$ac_old_val" != "x$ac_new_val"; then 2362 # differences in whitespace do not lead to failure. 2363 ac_old_val_w=`echo x $ac_old_val` 2364 ac_new_val_w=`echo x $ac_new_val` 2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2368 ac_cache_corrupted=: 2369 else 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2372 eval $ac_var=\$ac_old_val 2373 fi 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2375$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2377$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2378 fi;; 2379 esac 2380 # Pass precious variables to config.status. 2381 if test "$ac_new_set" = set; then 2382 case $ac_new_val in 2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2384 *) ac_arg=$ac_var=$ac_new_val ;; 2385 esac 2386 case " $ac_configure_args " in 2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2389 esac 2390 fi 2391done 2392if $ac_cache_corrupted; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2398fi 2399## -------------------- ## 2400## Main body of script. ## 2401## -------------------- ## 2402 2403ac_ext=c 2404ac_cpp='$CPP $CPPFLAGS' 2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2407ac_compiler_gnu=$ac_cv_c_compiler_gnu 2408 2409 2410am__api_version='1.13' 2411 2412ac_aux_dir= 2413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2414 if test -f "$ac_dir/install-sh"; then 2415 ac_aux_dir=$ac_dir 2416 ac_install_sh="$ac_aux_dir/install-sh -c" 2417 break 2418 elif test -f "$ac_dir/install.sh"; then 2419 ac_aux_dir=$ac_dir 2420 ac_install_sh="$ac_aux_dir/install.sh -c" 2421 break 2422 elif test -f "$ac_dir/shtool"; then 2423 ac_aux_dir=$ac_dir 2424 ac_install_sh="$ac_aux_dir/shtool install -c" 2425 break 2426 fi 2427done 2428if test -z "$ac_aux_dir"; then 2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2430fi 2431 2432# These three variables are undocumented and unsupported, 2433# and are intended to be withdrawn in a future Autoconf release. 2434# They can cause serious problems if a builder's source tree is in a directory 2435# whose full name contains unusual characters. 2436ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2437ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2438ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2439 2440 2441# Find a good install program. We prefer a C program (faster), 2442# so one script is as good as another. But avoid the broken or 2443# incompatible versions: 2444# SysV /etc/install, /usr/sbin/install 2445# SunOS /usr/etc/install 2446# IRIX /sbin/install 2447# AIX /bin/install 2448# AmigaOS /C/install, which installs bootblocks on floppy discs 2449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2450# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2452# OS/2's system install, which has a completely different semantic 2453# ./install, which can be erroneously created by make from ./install.sh. 2454# Reject install programs that cannot install multiple files. 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2456$as_echo_n "checking for a BSD-compatible install... " >&6; } 2457if test -z "$INSTALL"; then 2458if ${ac_cv_path_install+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 # Account for people who put trailing slashes in PATH elements. 2467case $as_dir/ in #(( 2468 ./ | .// | /[cC]/* | \ 2469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2471 /usr/ucb/* ) ;; 2472 *) 2473 # OSF1 and SCO ODT 3.0 have their own names for install. 2474 # Don't use installbsd from OSF since it installs stuff as root 2475 # by default. 2476 for ac_prog in ginstall scoinst install; do 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2479 if test $ac_prog = install && 2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2481 # AIX install. It has an incompatible calling convention. 2482 : 2483 elif test $ac_prog = install && 2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2485 # program-specific install script used by HP pwplus--don't use. 2486 : 2487 else 2488 rm -rf conftest.one conftest.two conftest.dir 2489 echo one > conftest.one 2490 echo two > conftest.two 2491 mkdir conftest.dir 2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2493 test -s conftest.one && test -s conftest.two && 2494 test -s conftest.dir/conftest.one && 2495 test -s conftest.dir/conftest.two 2496 then 2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2498 break 3 2499 fi 2500 fi 2501 fi 2502 done 2503 done 2504 ;; 2505esac 2506 2507 done 2508IFS=$as_save_IFS 2509 2510rm -rf conftest.one conftest.two conftest.dir 2511 2512fi 2513 if test "${ac_cv_path_install+set}" = set; then 2514 INSTALL=$ac_cv_path_install 2515 else 2516 # As a last resort, use the slow shell script. Don't cache a 2517 # value for INSTALL within a source directory, because that will 2518 # break other packages using the cache if that directory is 2519 # removed, or if the value is a relative name. 2520 INSTALL=$ac_install_sh 2521 fi 2522fi 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2524$as_echo "$INSTALL" >&6; } 2525 2526# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2527# It thinks the first close brace ends the variable substitution. 2528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2529 2530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2531 2532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2533 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2535$as_echo_n "checking whether build environment is sane... " >&6; } 2536# Reject unsafe characters in $srcdir or the absolute working directory 2537# name. Accept space and tab only in the latter. 2538am_lf=' 2539' 2540case `pwd` in 2541 *[\\\"\#\$\&\'\`$am_lf]*) 2542 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2543esac 2544case $srcdir in 2545 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2546 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2547esac 2548 2549# Do 'set' in a subshell so we don't clobber the current shell's 2550# arguments. Must try -L first in case configure is actually a 2551# symlink; some systems play weird games with the mod time of symlinks 2552# (eg FreeBSD returns the mod time of the symlink's containing 2553# directory). 2554if ( 2555 am_has_slept=no 2556 for am_try in 1 2; do 2557 echo "timestamp, slept: $am_has_slept" > conftest.file 2558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2559 if test "$*" = "X"; then 2560 # -L didn't work. 2561 set X `ls -t "$srcdir/configure" conftest.file` 2562 fi 2563 if test "$*" != "X $srcdir/configure conftest.file" \ 2564 && test "$*" != "X conftest.file $srcdir/configure"; then 2565 2566 # If neither matched, then we have a broken ls. This can happen 2567 # if, for instance, CONFIG_SHELL is bash and it inherits a 2568 # broken ls alias from the environment. This has actually 2569 # happened. Such a system could not be considered "sane". 2570 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2571 alias in your environment" "$LINENO" 5 2572 fi 2573 if test "$2" = conftest.file || test $am_try -eq 2; then 2574 break 2575 fi 2576 # Just in case. 2577 sleep 1 2578 am_has_slept=yes 2579 done 2580 test "$2" = conftest.file 2581 ) 2582then 2583 # Ok. 2584 : 2585else 2586 as_fn_error $? "newly created file is older than distributed files! 2587Check your system clock" "$LINENO" 5 2588fi 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2590$as_echo "yes" >&6; } 2591# If we didn't sleep, we still need to ensure time stamps of config.status and 2592# generated files are strictly newer. 2593am_sleep_pid= 2594if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2595 ( sleep 1 ) & 2596 am_sleep_pid=$! 2597fi 2598 2599rm -f conftest.file 2600 2601test "$program_prefix" != NONE && 2602 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2603# Use a double $ so make ignores it. 2604test "$program_suffix" != NONE && 2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2606# Double any \ or $. 2607# By default was `s,x,x', remove it if useless. 2608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2610 2611# expand $ac_aux_dir to an absolute path 2612am_aux_dir=`cd $ac_aux_dir && pwd` 2613 2614if test x"${MISSING+set}" != xset; then 2615 case $am_aux_dir in 2616 *\ * | *\ *) 2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2618 *) 2619 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2620 esac 2621fi 2622# Use eval to expand $SHELL 2623if eval "$MISSING --is-lightweight"; then 2624 am_missing_run="$MISSING " 2625else 2626 am_missing_run= 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2628$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2629fi 2630 2631if test x"${install_sh}" != xset; then 2632 case $am_aux_dir in 2633 *\ * | *\ *) 2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2635 *) 2636 install_sh="\${SHELL} $am_aux_dir/install-sh" 2637 esac 2638fi 2639 2640# Installed binaries are usually stripped using 'strip' when the user 2641# run "make install-strip". However 'strip' might not be the right 2642# tool to use in cross-compilation environments, therefore Automake 2643# will honor the 'STRIP' environment variable to overrule this program. 2644if test "$cross_compiling" != no; then 2645 if test -n "$ac_tool_prefix"; then 2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2647set dummy ${ac_tool_prefix}strip; ac_word=$2 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2649$as_echo_n "checking for $ac_word... " >&6; } 2650if ${ac_cv_prog_STRIP+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test -n "$STRIP"; then 2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673STRIP=$ac_cv_prog_STRIP 2674if test -n "$STRIP"; then 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2676$as_echo "$STRIP" >&6; } 2677else 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679$as_echo "no" >&6; } 2680fi 2681 2682 2683fi 2684if test -z "$ac_cv_prog_STRIP"; then 2685 ac_ct_STRIP=$STRIP 2686 # Extract the first word of "strip", so it can be a program name with args. 2687set dummy strip; ac_word=$2 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2689$as_echo_n "checking for $ac_word... " >&6; } 2690if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test -n "$ac_ct_STRIP"; then 2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2703 ac_cv_prog_ac_ct_STRIP="strip" 2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2714if test -n "$ac_ct_STRIP"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2716$as_echo "$ac_ct_STRIP" >&6; } 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720fi 2721 2722 if test "x$ac_ct_STRIP" = x; then 2723 STRIP=":" 2724 else 2725 case $cross_compiling:$ac_tool_warned in 2726yes:) 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2729ac_tool_warned=yes ;; 2730esac 2731 STRIP=$ac_ct_STRIP 2732 fi 2733else 2734 STRIP="$ac_cv_prog_STRIP" 2735fi 2736 2737fi 2738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2742if test -z "$MKDIR_P"; then 2743 if ${ac_cv_path_mkdir+:} false; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_prog in mkdir gmkdir; do 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2755 'mkdir (GNU coreutils) '* | \ 2756 'mkdir (coreutils) '* | \ 2757 'mkdir (fileutils) '4.1*) 2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2759 break 3;; 2760 esac 2761 done 2762 done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767 2768 test -d ./--version && rmdir ./--version 2769 if test "${ac_cv_path_mkdir+set}" = set; then 2770 MKDIR_P="$ac_cv_path_mkdir -p" 2771 else 2772 # As a last resort, use the slow shell script. Don't cache a 2773 # value for MKDIR_P within a source directory, because that will 2774 # break other packages using the cache if that directory is 2775 # removed, or if the value is a relative name. 2776 MKDIR_P="$ac_install_sh -d" 2777 fi 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2780$as_echo "$MKDIR_P" >&6; } 2781 2782for ac_prog in gawk mawk nawk awk 2783do 2784 # Extract the first word of "$ac_prog", so it can be a program name with args. 2785set dummy $ac_prog; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_AWK+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$AWK"; then 2792 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_AWK="$ac_prog" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811AWK=$ac_cv_prog_AWK 2812if test -n "$AWK"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2814$as_echo "$AWK" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821 test -n "$AWK" && break 2822done 2823 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2825$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2826set x ${MAKE-make} 2827ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2828if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 cat >conftest.make <<\_ACEOF 2832SHELL = /bin/sh 2833all: 2834 @echo '@@@%%%=$(MAKE)=@@@%%%' 2835_ACEOF 2836# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2837case `${MAKE-make} -f conftest.make 2>/dev/null` in 2838 *@@@%%%=?*=@@@%%%*) 2839 eval ac_cv_prog_make_${ac_make}_set=yes;; 2840 *) 2841 eval ac_cv_prog_make_${ac_make}_set=no;; 2842esac 2843rm -f conftest.make 2844fi 2845if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2847$as_echo "yes" >&6; } 2848 SET_MAKE= 2849else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851$as_echo "no" >&6; } 2852 SET_MAKE="MAKE=${MAKE-make}" 2853fi 2854 2855rm -rf .tst 2>/dev/null 2856mkdir .tst 2>/dev/null 2857if test -d .tst; then 2858 am__leading_dot=. 2859else 2860 am__leading_dot=_ 2861fi 2862rmdir .tst 2>/dev/null 2863 2864# Check whether --enable-silent-rules was given. 2865if test "${enable_silent_rules+set}" = set; then : 2866 enableval=$enable_silent_rules; 2867fi 2868 2869case $enable_silent_rules in # ((( 2870 yes) AM_DEFAULT_VERBOSITY=0;; 2871 no) AM_DEFAULT_VERBOSITY=1;; 2872 *) AM_DEFAULT_VERBOSITY=1;; 2873esac 2874am_make=${MAKE-make} 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2876$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2877if ${am_cv_make_support_nested_variables+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if $as_echo 'TRUE=$(BAR$(V)) 2881BAR0=false 2882BAR1=true 2883V=1 2884am__doit: 2885 @$(TRUE) 2886.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2887 am_cv_make_support_nested_variables=yes 2888else 2889 am_cv_make_support_nested_variables=no 2890fi 2891fi 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2893$as_echo "$am_cv_make_support_nested_variables" >&6; } 2894if test $am_cv_make_support_nested_variables = yes; then 2895 AM_V='$(V)' 2896 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2897else 2898 AM_V=$AM_DEFAULT_VERBOSITY 2899 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2900fi 2901AM_BACKSLASH='\' 2902 2903if test "`cd $srcdir && pwd`" != "`pwd`"; then 2904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2905 # is not polluted with repeated "-I." 2906 am__isrc=' -I$(srcdir)' 2907 # test to see if srcdir already configured 2908 if test -f $srcdir/config.status; then 2909 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2910 fi 2911fi 2912 2913# test whether we have cygpath 2914if test -z "$CYGPATH_W"; then 2915 if (cygpath --version) >/dev/null 2>/dev/null; then 2916 CYGPATH_W='cygpath -w' 2917 else 2918 CYGPATH_W=echo 2919 fi 2920fi 2921 2922 2923# Define the identity of the package. 2924 PACKAGE='dragon' 2925 VERSION='1.5.5' 2926 2927 2928cat >>confdefs.h <<_ACEOF 2929#define PACKAGE "$PACKAGE" 2930_ACEOF 2931 2932 2933cat >>confdefs.h <<_ACEOF 2934#define VERSION "$VERSION" 2935_ACEOF 2936 2937# Some tools Automake needs. 2938 2939ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2940 2941 2942AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2943 2944 2945AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2946 2947 2948AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2949 2950 2951MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2952 2953# For better backward compatibility. To be removed once Automake 1.9.x 2954# dies out for good. For more background, see: 2955# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2956# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2957mkdir_p='$(MKDIR_P)' 2958 2959# We need awk for the "check" target. The system "awk" is bad on 2960# some platforms. 2961# Always define AMTAR for backward compatibility. Yes, it's still used 2962# in the wild :-( We should find a proper way to deprecate it ... 2963AMTAR='$${TAR-tar}' 2964 2965am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2966 2967 2968 2969 2970 2971 2972ac_config_headers="$ac_config_headers config.h" 2973 2974 2975 2976 2977# Checks for programs. 2978ac_ext=cpp 2979ac_cpp='$CXXCPP $CPPFLAGS' 2980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2983if test -z "$CXX"; then 2984 if test -n "$CCC"; then 2985 CXX=$CCC 2986 else 2987 if test -n "$ac_tool_prefix"; then 2988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2989 do 2990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2991set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993$as_echo_n "checking for $ac_word... " >&6; } 2994if ${ac_cv_prog_CXX+:} false; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 if test -n "$CXX"; then 2998 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3007 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017CXX=$ac_cv_prog_CXX 3018if test -n "$CXX"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3020$as_echo "$CXX" >&6; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023$as_echo "no" >&6; } 3024fi 3025 3026 3027 test -n "$CXX" && break 3028 done 3029fi 3030if test -z "$CXX"; then 3031 ac_ct_CXX=$CXX 3032 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3033do 3034 # Extract the first word of "$ac_prog", so it can be a program name with args. 3035set dummy $ac_prog; ac_word=$2 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037$as_echo_n "checking for $ac_word... " >&6; } 3038if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test -n "$ac_ct_CXX"; then 3042 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 test -z "$as_dir" && as_dir=. 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3051 ac_cv_prog_ac_ct_CXX="$ac_prog" 3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 break 2 3054 fi 3055done 3056 done 3057IFS=$as_save_IFS 3058 3059fi 3060fi 3061ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3062if test -n "$ac_ct_CXX"; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3064$as_echo "$ac_ct_CXX" >&6; } 3065else 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068fi 3069 3070 3071 test -n "$ac_ct_CXX" && break 3072done 3073 3074 if test "x$ac_ct_CXX" = x; then 3075 CXX="g++" 3076 else 3077 case $cross_compiling:$ac_tool_warned in 3078yes:) 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3081ac_tool_warned=yes ;; 3082esac 3083 CXX=$ac_ct_CXX 3084 fi 3085fi 3086 3087 fi 3088fi 3089# Provide some information about the compiler. 3090$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3091set X $ac_compile 3092ac_compiler=$2 3093for ac_option in --version -v -V -qversion; do 3094 { { ac_try="$ac_compiler $ac_option >&5" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3100$as_echo "$ac_try_echo"; } >&5 3101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3102 ac_status=$? 3103 if test -s conftest.err; then 3104 sed '10a\ 3105... rest of stderr output deleted ... 3106 10q' conftest.err >conftest.er1 3107 cat conftest.er1 >&5 3108 fi 3109 rm -f conftest.er1 conftest.err 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; } 3112done 3113 3114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116 3117int 3118main () 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125ac_clean_files_save=$ac_clean_files 3126ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3127# Try to create an executable without -o first, disregard a.out. 3128# It will help us diagnose broken compilers, and finding out an intuition 3129# of exeext. 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3131$as_echo_n "checking whether the C++ compiler works... " >&6; } 3132ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3133 3134# The possible output files: 3135ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3136 3137ac_rmfiles= 3138for ac_file in $ac_files 3139do 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3142 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3143 esac 3144done 3145rm -f $ac_rmfiles 3146 3147if { { ac_try="$ac_link_default" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3153$as_echo "$ac_try_echo"; } >&5 3154 (eval "$ac_link_default") 2>&5 3155 ac_status=$? 3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3157 test $ac_status = 0; }; then : 3158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3159# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3160# in a Makefile. We should not override ac_cv_exeext if it was cached, 3161# so that the user can short-circuit this test for compilers unknown to 3162# Autoconf. 3163for ac_file in $ac_files '' 3164do 3165 test -f "$ac_file" || continue 3166 case $ac_file in 3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3168 ;; 3169 [ab].out ) 3170 # We found the default executable, but exeext='' is most 3171 # certainly right. 3172 break;; 3173 *.* ) 3174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3175 then :; else 3176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3177 fi 3178 # We set ac_cv_exeext here because the later test for it is not 3179 # safe: cross compilers may not add the suffix if given an `-o' 3180 # argument, so we may need to know it at that point already. 3181 # Even if this section looks crufty: it has the advantage of 3182 # actually working. 3183 break;; 3184 * ) 3185 break;; 3186 esac 3187done 3188test "$ac_cv_exeext" = no && ac_cv_exeext= 3189 3190else 3191 ac_file='' 3192fi 3193if test -z "$ac_file"; then : 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3195$as_echo "no" >&6; } 3196$as_echo "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error 77 "C++ compiler cannot create executables 3202See \`config.log' for more details" "$LINENO" 5; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3205$as_echo "yes" >&6; } 3206fi 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3208$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3210$as_echo "$ac_file" >&6; } 3211ac_exeext=$ac_cv_exeext 3212 3213rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3214ac_clean_files=$ac_clean_files_save 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3216$as_echo_n "checking for suffix of executables... " >&6; } 3217if { { ac_try="$ac_link" 3218case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3223$as_echo "$ac_try_echo"; } >&5 3224 (eval "$ac_link") 2>&5 3225 ac_status=$? 3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3227 test $ac_status = 0; }; then : 3228 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3230# work properly (i.e., refer to `conftest.exe'), while it won't with 3231# `rm'. 3232for ac_file in conftest.exe conftest conftest.*; do 3233 test -f "$ac_file" || continue 3234 case $ac_file in 3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3237 break;; 3238 * ) break;; 3239 esac 3240done 3241else 3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3245See \`config.log' for more details" "$LINENO" 5; } 3246fi 3247rm -f conftest conftest$ac_cv_exeext 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3249$as_echo "$ac_cv_exeext" >&6; } 3250 3251rm -f conftest.$ac_ext 3252EXEEXT=$ac_cv_exeext 3253ac_exeext=$EXEEXT 3254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3255/* end confdefs.h. */ 3256#include <stdio.h> 3257int 3258main () 3259{ 3260FILE *f = fopen ("conftest.out", "w"); 3261 return ferror (f) || fclose (f) != 0; 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267ac_clean_files="$ac_clean_files conftest.out" 3268# Check that the compiler produces executables we can run. If not, either 3269# the compiler is broken, or we cross compile. 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3271$as_echo_n "checking whether we are cross compiling... " >&6; } 3272if test "$cross_compiling" != yes; then 3273 { { ac_try="$ac_link" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279$as_echo "$ac_try_echo"; } >&5 3280 (eval "$ac_link") 2>&5 3281 ac_status=$? 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; } 3284 if { ac_try='./conftest$ac_cv_exeext' 3285 { { case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3290$as_echo "$ac_try_echo"; } >&5 3291 (eval "$ac_try") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; }; }; then 3295 cross_compiling=no 3296 else 3297 if test "$cross_compiling" = maybe; then 3298 cross_compiling=yes 3299 else 3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302as_fn_error $? "cannot run C++ compiled programs. 3303If you meant to cross compile, use \`--host'. 3304See \`config.log' for more details" "$LINENO" 5; } 3305 fi 3306 fi 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3309$as_echo "$cross_compiling" >&6; } 3310 3311rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3312ac_clean_files=$ac_clean_files_save 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3314$as_echo_n "checking for suffix of object files... " >&6; } 3315if ${ac_cv_objext+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3319/* end confdefs.h. */ 3320 3321int 3322main () 3323{ 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329rm -f conftest.o conftest.obj 3330if { { ac_try="$ac_compile" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336$as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_compile") 2>&5 3338 ac_status=$? 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; }; then : 3341 for ac_file in conftest.o conftest.obj conftest.*; do 3342 test -f "$ac_file" || continue; 3343 case $ac_file in 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3346 break;; 3347 esac 3348done 3349else 3350 $as_echo "$as_me: failed program was:" >&5 3351sed 's/^/| /' conftest.$ac_ext >&5 3352 3353{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "cannot compute suffix of object files: cannot compile 3356See \`config.log' for more details" "$LINENO" 5; } 3357fi 3358rm -f conftest.$ac_cv_objext conftest.$ac_ext 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3361$as_echo "$ac_cv_objext" >&6; } 3362OBJEXT=$ac_cv_objext 3363ac_objext=$OBJEXT 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3365$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3366if ${ac_cv_cxx_compiler_gnu+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375#ifndef __GNUC__ 3376 choke me 3377#endif 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383if ac_fn_cxx_try_compile "$LINENO"; then : 3384 ac_compiler_gnu=yes 3385else 3386 ac_compiler_gnu=no 3387fi 3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3389ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3390 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3393$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3394if test $ac_compiler_gnu = yes; then 3395 GXX=yes 3396else 3397 GXX= 3398fi 3399ac_test_CXXFLAGS=${CXXFLAGS+set} 3400ac_save_CXXFLAGS=$CXXFLAGS 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3402$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3403if ${ac_cv_prog_cxx_g+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405else 3406 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3407 ac_cxx_werror_flag=yes 3408 ac_cv_prog_cxx_g=no 3409 CXXFLAGS="-g" 3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412 3413int 3414main () 3415{ 3416 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421if ac_fn_cxx_try_compile "$LINENO"; then : 3422 ac_cv_prog_cxx_g=yes 3423else 3424 CXXFLAGS="" 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436if ac_fn_cxx_try_compile "$LINENO"; then : 3437 3438else 3439 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3440 CXXFLAGS="-g" 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443 3444int 3445main () 3446{ 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_cxx_try_compile "$LINENO"; then : 3453 ac_cv_prog_cxx_g=yes 3454fi 3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3456fi 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458fi 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3463$as_echo "$ac_cv_prog_cxx_g" >&6; } 3464if test "$ac_test_CXXFLAGS" = set; then 3465 CXXFLAGS=$ac_save_CXXFLAGS 3466elif test $ac_cv_prog_cxx_g = yes; then 3467 if test "$GXX" = yes; then 3468 CXXFLAGS="-g -O2" 3469 else 3470 CXXFLAGS="-g" 3471 fi 3472else 3473 if test "$GXX" = yes; then 3474 CXXFLAGS="-O2" 3475 else 3476 CXXFLAGS= 3477 fi 3478fi 3479ac_ext=c 3480ac_cpp='$CPP $CPPFLAGS' 3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3483ac_compiler_gnu=$ac_cv_c_compiler_gnu 3484DEPDIR="${am__leading_dot}deps" 3485 3486ac_config_commands="$ac_config_commands depfiles" 3487 3488 3489am_make=${MAKE-make} 3490cat > confinc << 'END' 3491am__doit: 3492 @echo this is the am__doit target 3493.PHONY: am__doit 3494END 3495# If we don't find an include directive, just comment out the code. 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3497$as_echo_n "checking for style of include used by $am_make... " >&6; } 3498am__include="#" 3499am__quote= 3500_am_result=none 3501# First try GNU make style include. 3502echo "include confinc" > confmf 3503# Ignore all kinds of additional output from 'make'. 3504case `$am_make -s -f confmf 2> /dev/null` in #( 3505*the\ am__doit\ target*) 3506 am__include=include 3507 am__quote= 3508 _am_result=GNU 3509 ;; 3510esac 3511# Now try BSD make style include. 3512if test "$am__include" = "#"; then 3513 echo '.include "confinc"' > confmf 3514 case `$am_make -s -f confmf 2> /dev/null` in #( 3515 *the\ am__doit\ target*) 3516 am__include=.include 3517 am__quote="\"" 3518 _am_result=BSD 3519 ;; 3520 esac 3521fi 3522 3523 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3525$as_echo "$_am_result" >&6; } 3526rm -f confinc confmf 3527 3528# Check whether --enable-dependency-tracking was given. 3529if test "${enable_dependency_tracking+set}" = set; then : 3530 enableval=$enable_dependency_tracking; 3531fi 3532 3533if test "x$enable_dependency_tracking" != xno; then 3534 am_depcomp="$ac_aux_dir/depcomp" 3535 AMDEPBACKSLASH='\' 3536 am__nodep='_no' 3537fi 3538 if test "x$enable_dependency_tracking" != xno; then 3539 AMDEP_TRUE= 3540 AMDEP_FALSE='#' 3541else 3542 AMDEP_TRUE='#' 3543 AMDEP_FALSE= 3544fi 3545 3546 3547 3548depcc="$CXX" am_compiler_list= 3549 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3551$as_echo_n "checking dependency style of $depcc... " >&6; } 3552if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3556 # We make a subdir and do the tests there. Otherwise we can end up 3557 # making bogus files that we don't know about and never remove. For 3558 # instance it was reported that on HP-UX the gcc test will end up 3559 # making a dummy file named 'D' -- because '-MD' means "put the output 3560 # in D". 3561 rm -rf conftest.dir 3562 mkdir conftest.dir 3563 # Copy depcomp to subdir because otherwise we won't find it if we're 3564 # using a relative directory. 3565 cp "$am_depcomp" conftest.dir 3566 cd conftest.dir 3567 # We will build objects and dependencies in a subdirectory because 3568 # it helps to detect inapplicable dependency modes. For instance 3569 # both Tru64's cc and ICC support -MD to output dependencies as a 3570 # side effect of compilation, but ICC will put the dependencies in 3571 # the current directory while Tru64 will put them in the object 3572 # directory. 3573 mkdir sub 3574 3575 am_cv_CXX_dependencies_compiler_type=none 3576 if test "$am_compiler_list" = ""; then 3577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3578 fi 3579 am__universal=false 3580 case " $depcc " in #( 3581 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3582 esac 3583 3584 for depmode in $am_compiler_list; do 3585 # Setup a source with many dependencies, because some compilers 3586 # like to wrap large dependency lists on column 80 (with \), and 3587 # we should not choose a depcomp mode which is confused by this. 3588 # 3589 # We need to recreate these files for each test, as the compiler may 3590 # overwrite some of them when testing with obscure command lines. 3591 # This happens at least with the AIX C compiler. 3592 : > sub/conftest.c 3593 for i in 1 2 3 4 5 6; do 3594 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3595 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3596 # Solaris 10 /bin/sh. 3597 echo '/* dummy */' > sub/conftst$i.h 3598 done 3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3600 3601 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3602 # mode. It turns out that the SunPro C++ compiler does not properly 3603 # handle '-M -o', and we need to detect this. Also, some Intel 3604 # versions had trouble with output in subdirs. 3605 am__obj=sub/conftest.${OBJEXT-o} 3606 am__minus_obj="-o $am__obj" 3607 case $depmode in 3608 gcc) 3609 # This depmode causes a compiler race in universal mode. 3610 test "$am__universal" = false || continue 3611 ;; 3612 nosideeffect) 3613 # After this tag, mechanisms are not by side-effect, so they'll 3614 # only be used when explicitly requested. 3615 if test "x$enable_dependency_tracking" = xyes; then 3616 continue 3617 else 3618 break 3619 fi 3620 ;; 3621 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3622 # This compiler won't grok '-c -o', but also, the minuso test has 3623 # not run yet. These depmodes are late enough in the game, and 3624 # so weak that their functioning should not be impacted. 3625 am__obj=conftest.${OBJEXT-o} 3626 am__minus_obj= 3627 ;; 3628 none) break ;; 3629 esac 3630 if depmode=$depmode \ 3631 source=sub/conftest.c object=$am__obj \ 3632 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3633 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3634 >/dev/null 2>conftest.err && 3635 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3637 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3639 # icc doesn't choke on unknown options, it will just issue warnings 3640 # or remarks (even with -Werror). So we grep stderr for any message 3641 # that says an option was ignored or not supported. 3642 # When given -MP, icc 7.0 and 7.1 complain thusly: 3643 # icc: Command line warning: ignoring option '-M'; no argument required 3644 # The diagnosis changed in icc 8.0: 3645 # icc: Command line remark: option '-MP' not supported 3646 if (grep 'ignoring option' conftest.err || 3647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3648 am_cv_CXX_dependencies_compiler_type=$depmode 3649 break 3650 fi 3651 fi 3652 done 3653 3654 cd .. 3655 rm -rf conftest.dir 3656else 3657 am_cv_CXX_dependencies_compiler_type=none 3658fi 3659 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3662$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3663CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3664 3665 if 3666 test "x$enable_dependency_tracking" != xno \ 3667 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3668 am__fastdepCXX_TRUE= 3669 am__fastdepCXX_FALSE='#' 3670else 3671 am__fastdepCXX_TRUE='#' 3672 am__fastdepCXX_FALSE= 3673fi 3674 3675 3676for ac_prog in gawk mawk nawk awk 3677do 3678 # Extract the first word of "$ac_prog", so it can be a program name with args. 3679set dummy $ac_prog; ac_word=$2 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681$as_echo_n "checking for $ac_word... " >&6; } 3682if ${ac_cv_prog_AWK+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 if test -n "$AWK"; then 3686 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3687else 3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689for as_dir in $PATH 3690do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 ac_cv_prog_AWK="$ac_prog" 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700 done 3701IFS=$as_save_IFS 3702 3703fi 3704fi 3705AWK=$ac_cv_prog_AWK 3706if test -n "$AWK"; then 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3708$as_echo "$AWK" >&6; } 3709else 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3711$as_echo "no" >&6; } 3712fi 3713 3714 3715 test -n "$AWK" && break 3716done 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723if test -n "$ac_tool_prefix"; then 3724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3725set dummy ${ac_tool_prefix}gcc; ac_word=$2 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3727$as_echo_n "checking for $ac_word... " >&6; } 3728if ${ac_cv_prog_CC+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 if test -n "$CC"; then 3732 ac_cv_prog_CC="$CC" # Let the user override the test. 3733else 3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735for as_dir in $PATH 3736do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3741 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3743 break 2 3744 fi 3745done 3746 done 3747IFS=$as_save_IFS 3748 3749fi 3750fi 3751CC=$ac_cv_prog_CC 3752if test -n "$CC"; then 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3754$as_echo "$CC" >&6; } 3755else 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3757$as_echo "no" >&6; } 3758fi 3759 3760 3761fi 3762if test -z "$ac_cv_prog_CC"; then 3763 ac_ct_CC=$CC 3764 # Extract the first word of "gcc", so it can be a program name with args. 3765set dummy gcc; ac_word=$2 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767$as_echo_n "checking for $ac_word... " >&6; } 3768if ${ac_cv_prog_ac_ct_CC+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 if test -n "$ac_ct_CC"; then 3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3773else 3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3775for as_dir in $PATH 3776do 3777 IFS=$as_save_IFS 3778 test -z "$as_dir" && as_dir=. 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3781 ac_cv_prog_ac_ct_CC="gcc" 3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785done 3786 done 3787IFS=$as_save_IFS 3788 3789fi 3790fi 3791ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792if test -n "$ac_ct_CC"; then 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794$as_echo "$ac_ct_CC" >&6; } 3795else 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797$as_echo "no" >&6; } 3798fi 3799 3800 if test "x$ac_ct_CC" = x; then 3801 CC="" 3802 else 3803 case $cross_compiling:$ac_tool_warned in 3804yes:) 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3807ac_tool_warned=yes ;; 3808esac 3809 CC=$ac_ct_CC 3810 fi 3811else 3812 CC="$ac_cv_prog_CC" 3813fi 3814 3815if test -z "$CC"; then 3816 if test -n "$ac_tool_prefix"; then 3817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3818set dummy ${ac_tool_prefix}cc; ac_word=$2 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3820$as_echo_n "checking for $ac_word... " >&6; } 3821if ${ac_cv_prog_CC+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 if test -n "$CC"; then 3825 ac_cv_prog_CC="$CC" # Let the user override the test. 3826else 3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3828for as_dir in $PATH 3829do 3830 IFS=$as_save_IFS 3831 test -z "$as_dir" && as_dir=. 3832 for ac_exec_ext in '' $ac_executable_extensions; do 3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3834 ac_cv_prog_CC="${ac_tool_prefix}cc" 3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3836 break 2 3837 fi 3838done 3839 done 3840IFS=$as_save_IFS 3841 3842fi 3843fi 3844CC=$ac_cv_prog_CC 3845if test -n "$CC"; then 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3847$as_echo "$CC" >&6; } 3848else 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3850$as_echo "no" >&6; } 3851fi 3852 3853 3854 fi 3855fi 3856if test -z "$CC"; then 3857 # Extract the first word of "cc", so it can be a program name with args. 3858set dummy cc; ac_word=$2 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3860$as_echo_n "checking for $ac_word... " >&6; } 3861if ${ac_cv_prog_CC+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 if test -n "$CC"; then 3865 ac_cv_prog_CC="$CC" # Let the user override the test. 3866else 3867 ac_prog_rejected=no 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3876 ac_prog_rejected=yes 3877 continue 3878 fi 3879 ac_cv_prog_CC="cc" 3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887if test $ac_prog_rejected = yes; then 3888 # We found a bogon in the path, so make sure we never use it. 3889 set dummy $ac_cv_prog_CC 3890 shift 3891 if test $# != 0; then 3892 # We chose a different compiler from the bogus one. 3893 # However, it has the same basename, so the bogon will be chosen 3894 # first if we set CC to just the basename; use the full file name. 3895 shift 3896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3897 fi 3898fi 3899fi 3900fi 3901CC=$ac_cv_prog_CC 3902if test -n "$CC"; then 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3904$as_echo "$CC" >&6; } 3905else 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3907$as_echo "no" >&6; } 3908fi 3909 3910 3911fi 3912if test -z "$CC"; then 3913 if test -n "$ac_tool_prefix"; then 3914 for ac_prog in cl.exe 3915 do 3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3917set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3919$as_echo_n "checking for $ac_word... " >&6; } 3920if ${ac_cv_prog_CC+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 if test -n "$CC"; then 3924 ac_cv_prog_CC="$CC" # Let the user override the test. 3925else 3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3927for as_dir in $PATH 3928do 3929 IFS=$as_save_IFS 3930 test -z "$as_dir" && as_dir=. 3931 for ac_exec_ext in '' $ac_executable_extensions; do 3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3935 break 2 3936 fi 3937done 3938 done 3939IFS=$as_save_IFS 3940 3941fi 3942fi 3943CC=$ac_cv_prog_CC 3944if test -n "$CC"; then 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3946$as_echo "$CC" >&6; } 3947else 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3949$as_echo "no" >&6; } 3950fi 3951 3952 3953 test -n "$CC" && break 3954 done 3955fi 3956if test -z "$CC"; then 3957 ac_ct_CC=$CC 3958 for ac_prog in cl.exe 3959do 3960 # Extract the first word of "$ac_prog", so it can be a program name with args. 3961set dummy $ac_prog; ac_word=$2 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3963$as_echo_n "checking for $ac_word... " >&6; } 3964if ${ac_cv_prog_ac_ct_CC+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 if test -n "$ac_ct_CC"; then 3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3969else 3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971for as_dir in $PATH 3972do 3973 IFS=$as_save_IFS 3974 test -z "$as_dir" && as_dir=. 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3977 ac_cv_prog_ac_ct_CC="$ac_prog" 3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3979 break 2 3980 fi 3981done 3982 done 3983IFS=$as_save_IFS 3984 3985fi 3986fi 3987ac_ct_CC=$ac_cv_prog_ac_ct_CC 3988if test -n "$ac_ct_CC"; then 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3990$as_echo "$ac_ct_CC" >&6; } 3991else 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993$as_echo "no" >&6; } 3994fi 3995 3996 3997 test -n "$ac_ct_CC" && break 3998done 3999 4000 if test "x$ac_ct_CC" = x; then 4001 CC="" 4002 else 4003 case $cross_compiling:$ac_tool_warned in 4004yes:) 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4007ac_tool_warned=yes ;; 4008esac 4009 CC=$ac_ct_CC 4010 fi 4011fi 4012 4013fi 4014 4015 4016test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4018as_fn_error $? "no acceptable C compiler found in \$PATH 4019See \`config.log' for more details" "$LINENO" 5; } 4020 4021# Provide some information about the compiler. 4022$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4023set X $ac_compile 4024ac_compiler=$2 4025for ac_option in --version -v -V -qversion; do 4026 { { ac_try="$ac_compiler $ac_option >&5" 4027case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030esac 4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032$as_echo "$ac_try_echo"; } >&5 4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4034 ac_status=$? 4035 if test -s conftest.err; then 4036 sed '10a\ 4037... rest of stderr output deleted ... 4038 10q' conftest.err >conftest.er1 4039 cat conftest.er1 >&5 4040 fi 4041 rm -f conftest.er1 conftest.err 4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; } 4044done 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4047$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4048if ${ac_cv_c_compiler_gnu+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053 4054int 4055main () 4056{ 4057#ifndef __GNUC__ 4058 choke me 4059#endif 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_c_try_compile "$LINENO"; then : 4066 ac_compiler_gnu=yes 4067else 4068 ac_compiler_gnu=no 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071ac_cv_c_compiler_gnu=$ac_compiler_gnu 4072 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4075$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4076if test $ac_compiler_gnu = yes; then 4077 GCC=yes 4078else 4079 GCC= 4080fi 4081ac_test_CFLAGS=${CFLAGS+set} 4082ac_save_CFLAGS=$CFLAGS 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4084$as_echo_n "checking whether $CC accepts -g... " >&6; } 4085if ${ac_cv_prog_cc_g+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 ac_save_c_werror_flag=$ac_c_werror_flag 4089 ac_c_werror_flag=yes 4090 ac_cv_prog_cc_g=no 4091 CFLAGS="-g" 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094 4095int 4096main () 4097{ 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_c_try_compile "$LINENO"; then : 4104 ac_cv_prog_cc_g=yes 4105else 4106 CFLAGS="" 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109 4110int 4111main () 4112{ 4113 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118if ac_fn_c_try_compile "$LINENO"; then : 4119 4120else 4121 ac_c_werror_flag=$ac_save_c_werror_flag 4122 CFLAGS="-g" 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_c_try_compile "$LINENO"; then : 4135 ac_cv_prog_cc_g=yes 4136fi 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4138fi 4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 ac_c_werror_flag=$ac_save_c_werror_flag 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4145$as_echo "$ac_cv_prog_cc_g" >&6; } 4146if test "$ac_test_CFLAGS" = set; then 4147 CFLAGS=$ac_save_CFLAGS 4148elif test $ac_cv_prog_cc_g = yes; then 4149 if test "$GCC" = yes; then 4150 CFLAGS="-g -O2" 4151 else 4152 CFLAGS="-g" 4153 fi 4154else 4155 if test "$GCC" = yes; then 4156 CFLAGS="-O2" 4157 else 4158 CFLAGS= 4159 fi 4160fi 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4162$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4163if ${ac_cv_prog_cc_c89+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 ac_cv_prog_cc_c89=no 4167ac_save_CC=$CC 4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170#include <stdarg.h> 4171#include <stdio.h> 4172struct stat; 4173/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4174struct buf { int x; }; 4175FILE * (*rcsopen) (struct buf *, struct stat *, int); 4176static char *e (p, i) 4177 char **p; 4178 int i; 4179{ 4180 return p[i]; 4181} 4182static char *f (char * (*g) (char **, int), char **p, ...) 4183{ 4184 char *s; 4185 va_list v; 4186 va_start (v,p); 4187 s = g (p, va_arg (v,int)); 4188 va_end (v); 4189 return s; 4190} 4191 4192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4193 function prototypes and stuff, but not '\xHH' hex character constants. 4194 These don't provoke an error unfortunately, instead are silently treated 4195 as 'x'. The following induces an error, until -std is added to get 4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4197 array size at least. It's necessary to write '\x00'==0 to get something 4198 that's true only with -std. */ 4199int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4200 4201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4202 inside strings and character constants. */ 4203#define FOO(x) 'x' 4204int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4205 4206int test (int i, double x); 4207struct s1 {int (*f) (int a);}; 4208struct s2 {int (*f) (double a);}; 4209int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4210int argc; 4211char **argv; 4212int 4213main () 4214{ 4215return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4222do 4223 CC="$ac_save_CC $ac_arg" 4224 if ac_fn_c_try_compile "$LINENO"; then : 4225 ac_cv_prog_cc_c89=$ac_arg 4226fi 4227rm -f core conftest.err conftest.$ac_objext 4228 test "x$ac_cv_prog_cc_c89" != "xno" && break 4229done 4230rm -f conftest.$ac_ext 4231CC=$ac_save_CC 4232 4233fi 4234# AC_CACHE_VAL 4235case "x$ac_cv_prog_cc_c89" in 4236 x) 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4238$as_echo "none needed" >&6; } ;; 4239 xno) 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4241$as_echo "unsupported" >&6; } ;; 4242 *) 4243 CC="$CC $ac_cv_prog_cc_c89" 4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4245$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4246esac 4247if test "x$ac_cv_prog_cc_c89" != xno; then : 4248 4249fi 4250 4251ac_ext=c 4252ac_cpp='$CPP $CPPFLAGS' 4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4255ac_compiler_gnu=$ac_cv_c_compiler_gnu 4256 4257depcc="$CC" am_compiler_list= 4258 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4260$as_echo_n "checking dependency style of $depcc... " >&6; } 4261if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4262 $as_echo_n "(cached) " >&6 4263else 4264 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4265 # We make a subdir and do the tests there. Otherwise we can end up 4266 # making bogus files that we don't know about and never remove. For 4267 # instance it was reported that on HP-UX the gcc test will end up 4268 # making a dummy file named 'D' -- because '-MD' means "put the output 4269 # in D". 4270 rm -rf conftest.dir 4271 mkdir conftest.dir 4272 # Copy depcomp to subdir because otherwise we won't find it if we're 4273 # using a relative directory. 4274 cp "$am_depcomp" conftest.dir 4275 cd conftest.dir 4276 # We will build objects and dependencies in a subdirectory because 4277 # it helps to detect inapplicable dependency modes. For instance 4278 # both Tru64's cc and ICC support -MD to output dependencies as a 4279 # side effect of compilation, but ICC will put the dependencies in 4280 # the current directory while Tru64 will put them in the object 4281 # directory. 4282 mkdir sub 4283 4284 am_cv_CC_dependencies_compiler_type=none 4285 if test "$am_compiler_list" = ""; then 4286 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4287 fi 4288 am__universal=false 4289 case " $depcc " in #( 4290 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4291 esac 4292 4293 for depmode in $am_compiler_list; do 4294 # Setup a source with many dependencies, because some compilers 4295 # like to wrap large dependency lists on column 80 (with \), and 4296 # we should not choose a depcomp mode which is confused by this. 4297 # 4298 # We need to recreate these files for each test, as the compiler may 4299 # overwrite some of them when testing with obscure command lines. 4300 # This happens at least with the AIX C compiler. 4301 : > sub/conftest.c 4302 for i in 1 2 3 4 5 6; do 4303 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4304 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4305 # Solaris 10 /bin/sh. 4306 echo '/* dummy */' > sub/conftst$i.h 4307 done 4308 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4309 4310 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4311 # mode. It turns out that the SunPro C++ compiler does not properly 4312 # handle '-M -o', and we need to detect this. Also, some Intel 4313 # versions had trouble with output in subdirs. 4314 am__obj=sub/conftest.${OBJEXT-o} 4315 am__minus_obj="-o $am__obj" 4316 case $depmode in 4317 gcc) 4318 # This depmode causes a compiler race in universal mode. 4319 test "$am__universal" = false || continue 4320 ;; 4321 nosideeffect) 4322 # After this tag, mechanisms are not by side-effect, so they'll 4323 # only be used when explicitly requested. 4324 if test "x$enable_dependency_tracking" = xyes; then 4325 continue 4326 else 4327 break 4328 fi 4329 ;; 4330 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4331 # This compiler won't grok '-c -o', but also, the minuso test has 4332 # not run yet. These depmodes are late enough in the game, and 4333 # so weak that their functioning should not be impacted. 4334 am__obj=conftest.${OBJEXT-o} 4335 am__minus_obj= 4336 ;; 4337 none) break ;; 4338 esac 4339 if depmode=$depmode \ 4340 source=sub/conftest.c object=$am__obj \ 4341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4342 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4343 >/dev/null 2>conftest.err && 4344 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4346 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4348 # icc doesn't choke on unknown options, it will just issue warnings 4349 # or remarks (even with -Werror). So we grep stderr for any message 4350 # that says an option was ignored or not supported. 4351 # When given -MP, icc 7.0 and 7.1 complain thusly: 4352 # icc: Command line warning: ignoring option '-M'; no argument required 4353 # The diagnosis changed in icc 8.0: 4354 # icc: Command line remark: option '-MP' not supported 4355 if (grep 'ignoring option' conftest.err || 4356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4357 am_cv_CC_dependencies_compiler_type=$depmode 4358 break 4359 fi 4360 fi 4361 done 4362 4363 cd .. 4364 rm -rf conftest.dir 4365else 4366 am_cv_CC_dependencies_compiler_type=none 4367fi 4368 4369fi 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4371$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4372CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4373 4374 if 4375 test "x$enable_dependency_tracking" != xno \ 4376 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4377 am__fastdepCC_TRUE= 4378 am__fastdepCC_FALSE='#' 4379else 4380 am__fastdepCC_TRUE='#' 4381 am__fastdepCC_FALSE= 4382fi 4383 4384 4385ac_ext=c 4386ac_cpp='$CPP $CPPFLAGS' 4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4391$as_echo_n "checking how to run the C preprocessor... " >&6; } 4392# On Suns, sometimes $CPP names a directory. 4393if test -n "$CPP" && test -d "$CPP"; then 4394 CPP= 4395fi 4396if test -z "$CPP"; then 4397 if ${ac_cv_prog_CPP+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399else 4400 # Double quotes because CPP needs to be expanded 4401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4402 do 4403 ac_preproc_ok=false 4404for ac_c_preproc_warn_flag in '' yes 4405do 4406 # Use a header file that comes with gcc, so configuring glibc 4407 # with a fresh cross-compiler works. 4408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4409 # <limits.h> exists even on freestanding compilers. 4410 # On the NeXT, cc -E runs the code through the compiler's parser, 4411 # not just through cpp. "Syntax error" is here to catch this case. 4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413/* end confdefs.h. */ 4414#ifdef __STDC__ 4415# include <limits.h> 4416#else 4417# include <assert.h> 4418#endif 4419 Syntax error 4420_ACEOF 4421if ac_fn_c_try_cpp "$LINENO"; then : 4422 4423else 4424 # Broken: fails on valid input. 4425continue 4426fi 4427rm -f conftest.err conftest.i conftest.$ac_ext 4428 4429 # OK, works on sane cases. Now check whether nonexistent headers 4430 # can be detected and how. 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432/* end confdefs.h. */ 4433#include <ac_nonexistent.h> 4434_ACEOF 4435if ac_fn_c_try_cpp "$LINENO"; then : 4436 # Broken: success on invalid input. 4437continue 4438else 4439 # Passes both tests. 4440ac_preproc_ok=: 4441break 4442fi 4443rm -f conftest.err conftest.i conftest.$ac_ext 4444 4445done 4446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4447rm -f conftest.i conftest.err conftest.$ac_ext 4448if $ac_preproc_ok; then : 4449 break 4450fi 4451 4452 done 4453 ac_cv_prog_CPP=$CPP 4454 4455fi 4456 CPP=$ac_cv_prog_CPP 4457else 4458 ac_cv_prog_CPP=$CPP 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4461$as_echo "$CPP" >&6; } 4462ac_preproc_ok=false 4463for ac_c_preproc_warn_flag in '' yes 4464do 4465 # Use a header file that comes with gcc, so configuring glibc 4466 # with a fresh cross-compiler works. 4467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4468 # <limits.h> exists even on freestanding compilers. 4469 # On the NeXT, cc -E runs the code through the compiler's parser, 4470 # not just through cpp. "Syntax error" is here to catch this case. 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472/* end confdefs.h. */ 4473#ifdef __STDC__ 4474# include <limits.h> 4475#else 4476# include <assert.h> 4477#endif 4478 Syntax error 4479_ACEOF 4480if ac_fn_c_try_cpp "$LINENO"; then : 4481 4482else 4483 # Broken: fails on valid input. 4484continue 4485fi 4486rm -f conftest.err conftest.i conftest.$ac_ext 4487 4488 # OK, works on sane cases. Now check whether nonexistent headers 4489 # can be detected and how. 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492#include <ac_nonexistent.h> 4493_ACEOF 4494if ac_fn_c_try_cpp "$LINENO"; then : 4495 # Broken: success on invalid input. 4496continue 4497else 4498 # Passes both tests. 4499ac_preproc_ok=: 4500break 4501fi 4502rm -f conftest.err conftest.i conftest.$ac_ext 4503 4504done 4505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4506rm -f conftest.i conftest.err conftest.$ac_ext 4507if $ac_preproc_ok; then : 4508 4509else 4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4512as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4513See \`config.log' for more details" "$LINENO" 5; } 4514fi 4515 4516ac_ext=c 4517ac_cpp='$CPP $CPPFLAGS' 4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4520ac_compiler_gnu=$ac_cv_c_compiler_gnu 4521 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4524$as_echo_n "checking whether ln -s works... " >&6; } 4525LN_S=$as_ln_s 4526if test "$LN_S" = "ln -s"; then 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4528$as_echo "yes" >&6; } 4529else 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4531$as_echo "no, using $LN_S" >&6; } 4532fi 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4535$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4536set x ${MAKE-make} 4537ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4538if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 cat >conftest.make <<\_ACEOF 4542SHELL = /bin/sh 4543all: 4544 @echo '@@@%%%=$(MAKE)=@@@%%%' 4545_ACEOF 4546# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4547case `${MAKE-make} -f conftest.make 2>/dev/null` in 4548 *@@@%%%=?*=@@@%%%*) 4549 eval ac_cv_prog_make_${ac_make}_set=yes;; 4550 *) 4551 eval ac_cv_prog_make_${ac_make}_set=no;; 4552esac 4553rm -f conftest.make 4554fi 4555if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4557$as_echo "yes" >&6; } 4558 SET_MAKE= 4559else 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4561$as_echo "no" >&6; } 4562 SET_MAKE="MAKE=${MAKE-make}" 4563fi 4564 4565 4566 4567if test -n "$ac_tool_prefix"; then 4568 for ac_prog in ar lib "link -lib" 4569 do 4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4571set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4573$as_echo_n "checking for $ac_word... " >&6; } 4574if ${ac_cv_prog_AR+:} false; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if test -n "$AR"; then 4578 ac_cv_prog_AR="$AR" # Let the user override the test. 4579else 4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4587 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595fi 4596fi 4597AR=$ac_cv_prog_AR 4598if test -n "$AR"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4600$as_echo "$AR" >&6; } 4601else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603$as_echo "no" >&6; } 4604fi 4605 4606 4607 test -n "$AR" && break 4608 done 4609fi 4610if test -z "$AR"; then 4611 ac_ct_AR=$AR 4612 for ac_prog in ar lib "link -lib" 4613do 4614 # Extract the first word of "$ac_prog", so it can be a program name with args. 4615set dummy $ac_prog; ac_word=$2 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4617$as_echo_n "checking for $ac_word... " >&6; } 4618if ${ac_cv_prog_ac_ct_AR+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 if test -n "$ac_ct_AR"; then 4622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4623else 4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_prog_ac_ct_AR="$ac_prog" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635done 4636 done 4637IFS=$as_save_IFS 4638 4639fi 4640fi 4641ac_ct_AR=$ac_cv_prog_ac_ct_AR 4642if test -n "$ac_ct_AR"; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4644$as_echo "$ac_ct_AR" >&6; } 4645else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648fi 4649 4650 4651 test -n "$ac_ct_AR" && break 4652done 4653 4654 if test "x$ac_ct_AR" = x; then 4655 AR="false" 4656 else 4657 case $cross_compiling:$ac_tool_warned in 4658yes:) 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4661ac_tool_warned=yes ;; 4662esac 4663 AR=$ac_ct_AR 4664 fi 4665fi 4666 4667: ${AR=ar} 4668 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4670$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4671if ${am_cv_ar_interface+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 am_cv_ar_interface=ar 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677int some_variable = 0; 4678_ACEOF 4679if ac_fn_c_try_compile "$LINENO"; then : 4680 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4682 (eval $am_ar_try) 2>&5 4683 ac_status=$? 4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4685 test $ac_status = 0; } 4686 if test "$ac_status" -eq 0; then 4687 am_cv_ar_interface=ar 4688 else 4689 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4691 (eval $am_ar_try) 2>&5 4692 ac_status=$? 4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4694 test $ac_status = 0; } 4695 if test "$ac_status" -eq 0; then 4696 am_cv_ar_interface=lib 4697 else 4698 am_cv_ar_interface=unknown 4699 fi 4700 fi 4701 rm -f conftest.lib libconftest.a 4702 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4705 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4708$as_echo "$am_cv_ar_interface" >&6; } 4709 4710case $am_cv_ar_interface in 4711ar) 4712 ;; 4713lib) 4714 # Microsoft lib, so override with the ar-lib wrapper script. 4715 # FIXME: It is wrong to rewrite AR. 4716 # But if we don't then we get into trouble of one sort or another. 4717 # A longer-term fix would be to have automake use am__AR in this case, 4718 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4719 # similar. 4720 AR="$am_aux_dir/ar-lib $AR" 4721 ;; 4722unknown) 4723 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4724 ;; 4725esac 4726 4727 4728 4729# Get lfc library and include locations 4730 4731# Check whether --with-lfc-include-path was given. 4732if test "${with_lfc_include_path+set}" = set; then : 4733 withval=$with_lfc_include_path; LFC_CFLAGS="-I$withval" 4734else 4735 LFC_CFLAGS='-I/usr/local/include' 4736fi 4737 4738 4739 4740 4741# Check whether --with-lfc-lib-path was given. 4742if test "${with_lfc_lib_path+set}" = set; then : 4743 withval=$with_lfc_lib_path; LFC_LIBS="-L$withval" 4744else 4745 LFC_LIBS='-L/usr/local/lib' 4746fi 4747 4748 4749 4750LDFLAGS="$LDFLAGS $LFC_LIBS" 4751CFLAGS="$CFLAGS $LFC_CFLAGS" 4752 4753# Checks for header files. 4754 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4756$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4757if ${ac_cv_path_GREP+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -z "$GREP"; then 4761 ac_path_GREP_found=false 4762 # Loop through the user's path and test for each of PROGNAME-LIST 4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_prog in grep ggrep; do 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4771 as_fn_executable_p "$ac_path_GREP" || continue 4772# Check for GNU ac_path_GREP and select it if it is found. 4773 # Check for GNU $ac_path_GREP 4774case `"$ac_path_GREP" --version 2>&1` in 4775*GNU*) 4776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4777*) 4778 ac_count=0 4779 $as_echo_n 0123456789 >"conftest.in" 4780 while : 4781 do 4782 cat "conftest.in" "conftest.in" >"conftest.tmp" 4783 mv "conftest.tmp" "conftest.in" 4784 cp "conftest.in" "conftest.nl" 4785 $as_echo 'GREP' >> "conftest.nl" 4786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4788 as_fn_arith $ac_count + 1 && ac_count=$as_val 4789 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4790 # Best one so far, save it but keep looking for a better one 4791 ac_cv_path_GREP="$ac_path_GREP" 4792 ac_path_GREP_max=$ac_count 4793 fi 4794 # 10*(2^10) chars as input seems more than enough 4795 test $ac_count -gt 10 && break 4796 done 4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4798esac 4799 4800 $ac_path_GREP_found && break 3 4801 done 4802 done 4803 done 4804IFS=$as_save_IFS 4805 if test -z "$ac_cv_path_GREP"; then 4806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4807 fi 4808else 4809 ac_cv_path_GREP=$GREP 4810fi 4811 4812fi 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4814$as_echo "$ac_cv_path_GREP" >&6; } 4815 GREP="$ac_cv_path_GREP" 4816 4817 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4819$as_echo_n "checking for egrep... " >&6; } 4820if ${ac_cv_path_EGREP+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4824 then ac_cv_path_EGREP="$GREP -E" 4825 else 4826 if test -z "$EGREP"; then 4827 ac_path_EGREP_found=false 4828 # Loop through the user's path and test for each of PROGNAME-LIST 4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4830for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4831do 4832 IFS=$as_save_IFS 4833 test -z "$as_dir" && as_dir=. 4834 for ac_prog in egrep; do 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4837 as_fn_executable_p "$ac_path_EGREP" || continue 4838# Check for GNU ac_path_EGREP and select it if it is found. 4839 # Check for GNU $ac_path_EGREP 4840case `"$ac_path_EGREP" --version 2>&1` in 4841*GNU*) 4842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4843*) 4844 ac_count=0 4845 $as_echo_n 0123456789 >"conftest.in" 4846 while : 4847 do 4848 cat "conftest.in" "conftest.in" >"conftest.tmp" 4849 mv "conftest.tmp" "conftest.in" 4850 cp "conftest.in" "conftest.nl" 4851 $as_echo 'EGREP' >> "conftest.nl" 4852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4854 as_fn_arith $ac_count + 1 && ac_count=$as_val 4855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4856 # Best one so far, save it but keep looking for a better one 4857 ac_cv_path_EGREP="$ac_path_EGREP" 4858 ac_path_EGREP_max=$ac_count 4859 fi 4860 # 10*(2^10) chars as input seems more than enough 4861 test $ac_count -gt 10 && break 4862 done 4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4864esac 4865 4866 $ac_path_EGREP_found && break 3 4867 done 4868 done 4869 done 4870IFS=$as_save_IFS 4871 if test -z "$ac_cv_path_EGREP"; then 4872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4873 fi 4874else 4875 ac_cv_path_EGREP=$EGREP 4876fi 4877 4878 fi 4879fi 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4881$as_echo "$ac_cv_path_EGREP" >&6; } 4882 EGREP="$ac_cv_path_EGREP" 4883 4884 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4886$as_echo_n "checking for ANSI C header files... " >&6; } 4887if ${ac_cv_header_stdc+:} false; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891/* end confdefs.h. */ 4892#include <stdlib.h> 4893#include <stdarg.h> 4894#include <string.h> 4895#include <float.h> 4896 4897int 4898main () 4899{ 4900 4901 ; 4902 return 0; 4903} 4904_ACEOF 4905if ac_fn_c_try_compile "$LINENO"; then : 4906 ac_cv_header_stdc=yes 4907else 4908 ac_cv_header_stdc=no 4909fi 4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4911 4912if test $ac_cv_header_stdc = yes; then 4913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915/* end confdefs.h. */ 4916#include <string.h> 4917 4918_ACEOF 4919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4920 $EGREP "memchr" >/dev/null 2>&1; then : 4921 4922else 4923 ac_cv_header_stdc=no 4924fi 4925rm -f conftest* 4926 4927fi 4928 4929if test $ac_cv_header_stdc = yes; then 4930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933#include <stdlib.h> 4934 4935_ACEOF 4936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4937 $EGREP "free" >/dev/null 2>&1; then : 4938 4939else 4940 ac_cv_header_stdc=no 4941fi 4942rm -f conftest* 4943 4944fi 4945 4946if test $ac_cv_header_stdc = yes; then 4947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4948 if test "$cross_compiling" = yes; then : 4949 : 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953#include <ctype.h> 4954#include <stdlib.h> 4955#if ((' ' & 0x0FF) == 0x020) 4956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4958#else 4959# define ISLOWER(c) \ 4960 (('a' <= (c) && (c) <= 'i') \ 4961 || ('j' <= (c) && (c) <= 'r') \ 4962 || ('s' <= (c) && (c) <= 'z')) 4963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4964#endif 4965 4966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4967int 4968main () 4969{ 4970 int i; 4971 for (i = 0; i < 256; i++) 4972 if (XOR (islower (i), ISLOWER (i)) 4973 || toupper (i) != TOUPPER (i)) 4974 return 2; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_c_try_run "$LINENO"; then : 4979 4980else 4981 ac_cv_header_stdc=no 4982fi 4983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4984 conftest.$ac_objext conftest.beam conftest.$ac_ext 4985fi 4986 4987fi 4988fi 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4990$as_echo "$ac_cv_header_stdc" >&6; } 4991if test $ac_cv_header_stdc = yes; then 4992 4993$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4994 4995fi 4996 4997# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4999 inttypes.h stdint.h unistd.h 5000do : 5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5002ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5003" 5004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5005 cat >>confdefs.h <<_ACEOF 5006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5007_ACEOF 5008 5009fi 5010 5011done 5012 5013 5014for ac_header in stdlib.h 5015do : 5016 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5017if test "x$ac_cv_header_stdlib_h" = xyes; then : 5018 cat >>confdefs.h <<_ACEOF 5019#define HAVE_STDLIB_H 1 5020_ACEOF 5021 5022fi 5023 5024done 5025 5026 5027# Checks for typedefs, structures, and compiler characteristics. 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 5029$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 5030if ${ac_cv_header_stdbool_h+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035 5036 #include <stdbool.h> 5037 #ifndef bool 5038 "error: bool is not defined" 5039 #endif 5040 #ifndef false 5041 "error: false is not defined" 5042 #endif 5043 #if false 5044 "error: false is not 0" 5045 #endif 5046 #ifndef true 5047 "error: true is not defined" 5048 #endif 5049 #if true != 1 5050 "error: true is not 1" 5051 #endif 5052 #ifndef __bool_true_false_are_defined 5053 "error: __bool_true_false_are_defined is not defined" 5054 #endif 5055 5056 struct s { _Bool s: 1; _Bool t; } s; 5057 5058 char a[true == 1 ? 1 : -1]; 5059 char b[false == 0 ? 1 : -1]; 5060 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5061 char d[(bool) 0.5 == true ? 1 : -1]; 5062 /* See body of main program for 'e'. */ 5063 char f[(_Bool) 0.0 == false ? 1 : -1]; 5064 char g[true]; 5065 char h[sizeof (_Bool)]; 5066 char i[sizeof s.t]; 5067 enum { j = false, k = true, l = false * true, m = true * 256 }; 5068 /* The following fails for 5069 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 5070 _Bool n[m]; 5071 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 5072 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 5073 /* Catch a bug in an HP-UX C compiler. See 5074 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 5075 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 5076 */ 5077 _Bool q = true; 5078 _Bool *pq = &q; 5079 5080int 5081main () 5082{ 5083 5084 bool e = &s; 5085 *pq |= q; 5086 *pq |= ! q; 5087 /* Refer to every declared value, to avoid compiler optimizations. */ 5088 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5089 + !m + !n + !o + !p + !q + !pq); 5090 5091 ; 5092 return 0; 5093} 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO"; then : 5096 ac_cv_header_stdbool_h=yes 5097else 5098 ac_cv_header_stdbool_h=no 5099fi 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 5103$as_echo "$ac_cv_header_stdbool_h" >&6; } 5104 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 5105if test "x$ac_cv_type__Bool" = xyes; then : 5106 5107cat >>confdefs.h <<_ACEOF 5108#define HAVE__BOOL 1 5109_ACEOF 5110 5111 5112fi 5113 5114 5115 5116# Checks for library functions. 5117for ac_header in stdlib.h 5118do : 5119 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5120if test "x$ac_cv_header_stdlib_h" = xyes; then : 5121 cat >>confdefs.h <<_ACEOF 5122#define HAVE_STDLIB_H 1 5123_ACEOF 5124 5125fi 5126 5127done 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 5130$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 5131if ${ac_cv_func_malloc_0_nonnull+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test "$cross_compiling" = yes; then : 5135 ac_cv_func_malloc_0_nonnull=no 5136else 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5140# include <stdlib.h> 5141#else 5142char *malloc (); 5143#endif 5144 5145int 5146main () 5147{ 5148return ! malloc (0); 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153if ac_fn_c_try_run "$LINENO"; then : 5154 ac_cv_func_malloc_0_nonnull=yes 5155else 5156 ac_cv_func_malloc_0_nonnull=no 5157fi 5158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5159 conftest.$ac_objext conftest.beam conftest.$ac_ext 5160fi 5161 5162fi 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 5164$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 5165if test $ac_cv_func_malloc_0_nonnull = yes; then : 5166 5167$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 5168 5169else 5170 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 5171 5172 case " $LIBOBJS " in 5173 *" malloc.$ac_objext "* ) ;; 5174 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 5175 ;; 5176esac 5177 5178 5179$as_echo "#define malloc rpl_malloc" >>confdefs.h 5180 5181fi 5182 5183 5184for ac_header in stdlib.h 5185do : 5186 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5187if test "x$ac_cv_header_stdlib_h" = xyes; then : 5188 cat >>confdefs.h <<_ACEOF 5189#define HAVE_STDLIB_H 1 5190_ACEOF 5191 5192fi 5193 5194done 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 5197$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 5198if ${ac_cv_func_realloc_0_nonnull+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if test "$cross_compiling" = yes; then : 5202 ac_cv_func_realloc_0_nonnull=no 5203else 5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5205/* end confdefs.h. */ 5206#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5207# include <stdlib.h> 5208#else 5209char *realloc (); 5210#endif 5211 5212int 5213main () 5214{ 5215return ! realloc (0, 0); 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220if ac_fn_c_try_run "$LINENO"; then : 5221 ac_cv_func_realloc_0_nonnull=yes 5222else 5223 ac_cv_func_realloc_0_nonnull=no 5224fi 5225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5226 conftest.$ac_objext conftest.beam conftest.$ac_ext 5227fi 5228 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 5231$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 5232if test $ac_cv_func_realloc_0_nonnull = yes; then : 5233 5234$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 5235 5236else 5237 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 5238 5239 case " $LIBOBJS " in 5240 *" realloc.$ac_objext "* ) ;; 5241 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 5242 ;; 5243esac 5244 5245 5246$as_echo "#define realloc rpl_realloc" >>confdefs.h 5247 5248fi 5249 5250 5251 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 5253$as_echo_n "checking for main in -lws2_32... " >&6; } 5254if ${ac_cv_lib_ws2_32_main+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 ac_check_lib_save_LIBS=$LIBS 5258LIBS="-lws2_32 $LIBS" 5259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261 5262 5263int 5264main () 5265{ 5266return main (); 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271if ac_fn_c_try_link "$LINENO"; then : 5272 ac_cv_lib_ws2_32_main=yes 5273else 5274 ac_cv_lib_ws2_32_main=no 5275fi 5276rm -f core conftest.err conftest.$ac_objext \ 5277 conftest$ac_exeext conftest.$ac_ext 5278LIBS=$ac_check_lib_save_LIBS 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 5281$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 5282if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 5283 cat >>confdefs.h <<_ACEOF 5284#define HAVE_LIBWS2_32 1 5285_ACEOF 5286 5287 LIBS="-lws2_32 $LIBS" 5288 5289fi 5290 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 5292$as_echo_n "checking for main in -lcrypt... " >&6; } 5293if ${ac_cv_lib_crypt_main+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 ac_check_lib_save_LIBS=$LIBS 5297LIBS="-lcrypt $LIBS" 5298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5299/* end confdefs.h. */ 5300 5301 5302int 5303main () 5304{ 5305return main (); 5306 ; 5307 return 0; 5308} 5309_ACEOF 5310if ac_fn_c_try_link "$LINENO"; then : 5311 ac_cv_lib_crypt_main=yes 5312else 5313 ac_cv_lib_crypt_main=no 5314fi 5315rm -f core conftest.err conftest.$ac_objext \ 5316 conftest$ac_exeext conftest.$ac_ext 5317LIBS=$ac_check_lib_save_LIBS 5318fi 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 5320$as_echo "$ac_cv_lib_crypt_main" >&6; } 5321if test "x$ac_cv_lib_crypt_main" = xyes; then : 5322 cat >>confdefs.h <<_ACEOF 5323#define HAVE_LIBCRYPT 1 5324_ACEOF 5325 5326 LIBS="-lcrypt $LIBS" 5327 5328fi 5329 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5 5331$as_echo_n "checking for main in -lrt... " >&6; } 5332if ${ac_cv_lib_rt_main+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334else 5335 ac_check_lib_save_LIBS=$LIBS 5336LIBS="-lrt $LIBS" 5337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338/* end confdefs.h. */ 5339 5340 5341int 5342main () 5343{ 5344return main (); 5345 ; 5346 return 0; 5347} 5348_ACEOF 5349if ac_fn_c_try_link "$LINENO"; then : 5350 ac_cv_lib_rt_main=yes 5351else 5352 ac_cv_lib_rt_main=no 5353fi 5354rm -f core conftest.err conftest.$ac_objext \ 5355 conftest$ac_exeext conftest.$ac_ext 5356LIBS=$ac_check_lib_save_LIBS 5357fi 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5 5359$as_echo "$ac_cv_lib_rt_main" >&6; } 5360if test "x$ac_cv_lib_rt_main" = xyes; then : 5361 cat >>confdefs.h <<_ACEOF 5362#define HAVE_LIBRT 1 5363_ACEOF 5364 5365 LIBS="-lrt $LIBS" 5366 5367fi 5368 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llfcbase" >&5 5370$as_echo_n "checking for main in -llfcbase... " >&6; } 5371if ${ac_cv_lib_lfcbase_main+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 ac_check_lib_save_LIBS=$LIBS 5375LIBS="-llfcbase $LIBS" 5376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378 5379 5380int 5381main () 5382{ 5383return main (); 5384 ; 5385 return 0; 5386} 5387_ACEOF 5388if ac_fn_c_try_link "$LINENO"; then : 5389 ac_cv_lib_lfcbase_main=yes 5390else 5391 ac_cv_lib_lfcbase_main=no 5392fi 5393rm -f core conftest.err conftest.$ac_objext \ 5394 conftest$ac_exeext conftest.$ac_ext 5395LIBS=$ac_check_lib_save_LIBS 5396fi 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lfcbase_main" >&5 5398$as_echo "$ac_cv_lib_lfcbase_main" >&6; } 5399if test "x$ac_cv_lib_lfcbase_main" = xyes; then : 5400 cat >>confdefs.h <<_ACEOF 5401#define HAVE_LIBLFCBASE 1 5402_ACEOF 5403 5404 LIBS="-llfcbase $LIBS" 5405 5406fi 5407 5408# AC_CHECK_LIB([lfcxml], [main]) 5409 5410ac_config_files="$ac_config_files Makefile src/Makefile samples/Makefile" 5411 5412 5413case `pwd` in 5414 *\ * | *\ *) 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5416$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5417esac 5418 5419 5420 5421macro_version='2.4.6' 5422macro_revision='2.4.6' 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436ltmain=$ac_aux_dir/ltmain.sh 5437 5438# Make sure we can run config.sub. 5439$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5440 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5441 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5443$as_echo_n "checking build system type... " >&6; } 5444if ${ac_cv_build+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 ac_build_alias=$build_alias 5448test "x$ac_build_alias" = x && 5449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5450test "x$ac_build_alias" = x && 5451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5452ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5454 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5457$as_echo "$ac_cv_build" >&6; } 5458case $ac_cv_build in 5459*-*-*) ;; 5460*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5461esac 5462build=$ac_cv_build 5463ac_save_IFS=$IFS; IFS='-' 5464set x $ac_cv_build 5465shift 5466build_cpu=$1 5467build_vendor=$2 5468shift; shift 5469# Remember, the first character of IFS is used to create $*, 5470# except with old shells: 5471build_os=$* 5472IFS=$ac_save_IFS 5473case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5477$as_echo_n "checking host system type... " >&6; } 5478if ${ac_cv_host+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 if test "x$host_alias" = x; then 5482 ac_cv_host=$ac_cv_build 5483else 5484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5486fi 5487 5488fi 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5490$as_echo "$ac_cv_host" >&6; } 5491case $ac_cv_host in 5492*-*-*) ;; 5493*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5494esac 5495host=$ac_cv_host 5496ac_save_IFS=$IFS; IFS='-' 5497set x $ac_cv_host 5498shift 5499host_cpu=$1 5500host_vendor=$2 5501shift; shift 5502# Remember, the first character of IFS is used to create $*, 5503# except with old shells: 5504host_os=$* 5505IFS=$ac_save_IFS 5506case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5507 5508 5509# Backslashify metacharacters that are still active within 5510# double-quoted strings. 5511sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5512 5513# Same as above, but do not quote variable references. 5514double_quote_subst='s/\(["`\\]\)/\\\1/g' 5515 5516# Sed substitution to delay expansion of an escaped shell variable in a 5517# double_quote_subst'ed string. 5518delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5519 5520# Sed substitution to delay expansion of an escaped single quote. 5521delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5522 5523# Sed substitution to avoid accidental globbing in evaled expressions 5524no_glob_subst='s/\*/\\\*/g' 5525 5526ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5527ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5528ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5529 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5531$as_echo_n "checking how to print strings... " >&6; } 5532# Test print first, because it will be a builtin if present. 5533if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5534 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5535 ECHO='print -r --' 5536elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5537 ECHO='printf %s\n' 5538else 5539 # Use this function as a fallback that always works. 5540 func_fallback_echo () 5541 { 5542 eval 'cat <<_LTECHO_EOF 5543$1 5544_LTECHO_EOF' 5545 } 5546 ECHO='func_fallback_echo' 5547fi 5548 5549# func_echo_all arg... 5550# Invoke $ECHO with all args, space-separated. 5551func_echo_all () 5552{ 5553 $ECHO "" 5554} 5555 5556case $ECHO in 5557 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5558$as_echo "printf" >&6; } ;; 5559 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5560$as_echo "print -r" >&6; } ;; 5561 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5562$as_echo "cat" >&6; } ;; 5563esac 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5579$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5580if ${ac_cv_path_SED+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5584 for ac_i in 1 2 3 4 5 6 7; do 5585 ac_script="$ac_script$as_nl$ac_script" 5586 done 5587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5588 { ac_script=; unset ac_script;} 5589 if test -z "$SED"; then 5590 ac_path_SED_found=false 5591 # Loop through the user's path and test for each of PROGNAME-LIST 5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_prog in sed gsed; do 5598 for ac_exec_ext in '' $ac_executable_extensions; do 5599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5600 as_fn_executable_p "$ac_path_SED" || continue 5601# Check for GNU ac_path_SED and select it if it is found. 5602 # Check for GNU $ac_path_SED 5603case `"$ac_path_SED" --version 2>&1` in 5604*GNU*) 5605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5606*) 5607 ac_count=0 5608 $as_echo_n 0123456789 >"conftest.in" 5609 while : 5610 do 5611 cat "conftest.in" "conftest.in" >"conftest.tmp" 5612 mv "conftest.tmp" "conftest.in" 5613 cp "conftest.in" "conftest.nl" 5614 $as_echo '' >> "conftest.nl" 5615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5617 as_fn_arith $ac_count + 1 && ac_count=$as_val 5618 if test $ac_count -gt ${ac_path_SED_max-0}; then 5619 # Best one so far, save it but keep looking for a better one 5620 ac_cv_path_SED="$ac_path_SED" 5621 ac_path_SED_max=$ac_count 5622 fi 5623 # 10*(2^10) chars as input seems more than enough 5624 test $ac_count -gt 10 && break 5625 done 5626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5627esac 5628 5629 $ac_path_SED_found && break 3 5630 done 5631 done 5632 done 5633IFS=$as_save_IFS 5634 if test -z "$ac_cv_path_SED"; then 5635 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5636 fi 5637else 5638 ac_cv_path_SED=$SED 5639fi 5640 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5643$as_echo "$ac_cv_path_SED" >&6; } 5644 SED="$ac_cv_path_SED" 5645 rm -f conftest.sed 5646 5647test -z "$SED" && SED=sed 5648Xsed="$SED -e 1s/^X//" 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5661$as_echo_n "checking for fgrep... " >&6; } 5662if ${ac_cv_path_FGREP+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5666 then ac_cv_path_FGREP="$GREP -F" 5667 else 5668 if test -z "$FGREP"; then 5669 ac_path_FGREP_found=false 5670 # Loop through the user's path and test for each of PROGNAME-LIST 5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_prog in fgrep; do 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5679 as_fn_executable_p "$ac_path_FGREP" || continue 5680# Check for GNU ac_path_FGREP and select it if it is found. 5681 # Check for GNU $ac_path_FGREP 5682case `"$ac_path_FGREP" --version 2>&1` in 5683*GNU*) 5684 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5685*) 5686 ac_count=0 5687 $as_echo_n 0123456789 >"conftest.in" 5688 while : 5689 do 5690 cat "conftest.in" "conftest.in" >"conftest.tmp" 5691 mv "conftest.tmp" "conftest.in" 5692 cp "conftest.in" "conftest.nl" 5693 $as_echo 'FGREP' >> "conftest.nl" 5694 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5696 as_fn_arith $ac_count + 1 && ac_count=$as_val 5697 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5698 # Best one so far, save it but keep looking for a better one 5699 ac_cv_path_FGREP="$ac_path_FGREP" 5700 ac_path_FGREP_max=$ac_count 5701 fi 5702 # 10*(2^10) chars as input seems more than enough 5703 test $ac_count -gt 10 && break 5704 done 5705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5706esac 5707 5708 $ac_path_FGREP_found && break 3 5709 done 5710 done 5711 done 5712IFS=$as_save_IFS 5713 if test -z "$ac_cv_path_FGREP"; then 5714 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5715 fi 5716else 5717 ac_cv_path_FGREP=$FGREP 5718fi 5719 5720 fi 5721fi 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5723$as_echo "$ac_cv_path_FGREP" >&6; } 5724 FGREP="$ac_cv_path_FGREP" 5725 5726 5727test -z "$GREP" && GREP=grep 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747# Check whether --with-gnu-ld was given. 5748if test "${with_gnu_ld+set}" = set; then : 5749 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5750else 5751 with_gnu_ld=no 5752fi 5753 5754ac_prog=ld 5755if test yes = "$GCC"; then 5756 # Check if gcc -print-prog-name=ld gives a path. 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5758$as_echo_n "checking for ld used by $CC... " >&6; } 5759 case $host in 5760 *-*-mingw*) 5761 # gcc leaves a trailing carriage return, which upsets mingw 5762 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5763 *) 5764 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5765 esac 5766 case $ac_prog in 5767 # Accept absolute paths. 5768 [\\/]* | ?:[\\/]*) 5769 re_direlt='/[^/][^/]*/\.\./' 5770 # Canonicalize the pathname of ld 5771 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5772 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5773 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5774 done 5775 test -z "$LD" && LD=$ac_prog 5776 ;; 5777 "") 5778 # If it fails, then pretend we aren't using GCC. 5779 ac_prog=ld 5780 ;; 5781 *) 5782 # If it is relative, then search for the first ld in PATH. 5783 with_gnu_ld=unknown 5784 ;; 5785 esac 5786elif test yes = "$with_gnu_ld"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5788$as_echo_n "checking for GNU ld... " >&6; } 5789else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5791$as_echo_n "checking for non-GNU ld... " >&6; } 5792fi 5793if ${lt_cv_path_LD+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 if test -z "$LD"; then 5797 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5798 for ac_dir in $PATH; do 5799 IFS=$lt_save_ifs 5800 test -z "$ac_dir" && ac_dir=. 5801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5802 lt_cv_path_LD=$ac_dir/$ac_prog 5803 # Check to see if the program is GNU ld. I'd rather use --version, 5804 # but apparently some variants of GNU ld only accept -v. 5805 # Break only if it was the GNU/non-GNU ld that we prefer. 5806 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5807 *GNU* | *'with BFD'*) 5808 test no != "$with_gnu_ld" && break 5809 ;; 5810 *) 5811 test yes != "$with_gnu_ld" && break 5812 ;; 5813 esac 5814 fi 5815 done 5816 IFS=$lt_save_ifs 5817else 5818 lt_cv_path_LD=$LD # Let the user override the test with a path. 5819fi 5820fi 5821 5822LD=$lt_cv_path_LD 5823if test -n "$LD"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5825$as_echo "$LD" >&6; } 5826else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828$as_echo "no" >&6; } 5829fi 5830test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5832$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5833if ${lt_cv_prog_gnu_ld+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5837case `$LD -v 2>&1 </dev/null` in 5838*GNU* | *'with BFD'*) 5839 lt_cv_prog_gnu_ld=yes 5840 ;; 5841*) 5842 lt_cv_prog_gnu_ld=no 5843 ;; 5844esac 5845fi 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5847$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5848with_gnu_ld=$lt_cv_prog_gnu_ld 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5859$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5860if ${lt_cv_path_NM+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862else 5863 if test -n "$NM"; then 5864 # Let the user override the test. 5865 lt_cv_path_NM=$NM 5866else 5867 lt_nm_to_check=${ac_tool_prefix}nm 5868 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5869 lt_nm_to_check="$lt_nm_to_check nm" 5870 fi 5871 for lt_tmp_nm in $lt_nm_to_check; do 5872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5873 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5874 IFS=$lt_save_ifs 5875 test -z "$ac_dir" && ac_dir=. 5876 tmp_nm=$ac_dir/$lt_tmp_nm 5877 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5878 # Check to see if the nm accepts a BSD-compat flag. 5879 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5880 # nm: unknown option "B" ignored 5881 # Tru64's nm complains that /dev/null is an invalid object file 5882 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5883 case $build_os in 5884 mingw*) lt_bad_file=conftest.nm/nofile ;; 5885 *) lt_bad_file=/dev/null ;; 5886 esac 5887 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5888 *$lt_bad_file* | *'Invalid file or object type'*) 5889 lt_cv_path_NM="$tmp_nm -B" 5890 break 2 5891 ;; 5892 *) 5893 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5894 */dev/null*) 5895 lt_cv_path_NM="$tmp_nm -p" 5896 break 2 5897 ;; 5898 *) 5899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5900 continue # so that we can try to find one that supports BSD flags 5901 ;; 5902 esac 5903 ;; 5904 esac 5905 fi 5906 done 5907 IFS=$lt_save_ifs 5908 done 5909 : ${lt_cv_path_NM=no} 5910fi 5911fi 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5913$as_echo "$lt_cv_path_NM" >&6; } 5914if test no != "$lt_cv_path_NM"; then 5915 NM=$lt_cv_path_NM 5916else 5917 # Didn't find any BSD compatible name lister, look for dumpbin. 5918 if test -n "$DUMPBIN"; then : 5919 # Let the user override the test. 5920 else 5921 if test -n "$ac_tool_prefix"; then 5922 for ac_prog in dumpbin "link -dump" 5923 do 5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5925set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if ${ac_cv_prog_DUMPBIN+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$DUMPBIN"; then 5932 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951DUMPBIN=$ac_cv_prog_DUMPBIN 5952if test -n "$DUMPBIN"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5954$as_echo "$DUMPBIN" >&6; } 5955else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 5961 test -n "$DUMPBIN" && break 5962 done 5963fi 5964if test -z "$DUMPBIN"; then 5965 ac_ct_DUMPBIN=$DUMPBIN 5966 for ac_prog in dumpbin "link -dump" 5967do 5968 # Extract the first word of "$ac_prog", so it can be a program name with args. 5969set dummy $ac_prog; ac_word=$2 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$ac_ct_DUMPBIN"; then 5976 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5985 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990 done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5996if test -n "$ac_ct_DUMPBIN"; then 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5998$as_echo "$ac_ct_DUMPBIN" >&6; } 5999else 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 6005 test -n "$ac_ct_DUMPBIN" && break 6006done 6007 6008 if test "x$ac_ct_DUMPBIN" = x; then 6009 DUMPBIN=":" 6010 else 6011 case $cross_compiling:$ac_tool_warned in 6012yes:) 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6015ac_tool_warned=yes ;; 6016esac 6017 DUMPBIN=$ac_ct_DUMPBIN 6018 fi 6019fi 6020 6021 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6022 *COFF*) 6023 DUMPBIN="$DUMPBIN -symbols -headers" 6024 ;; 6025 *) 6026 DUMPBIN=: 6027 ;; 6028 esac 6029 fi 6030 6031 if test : != "$DUMPBIN"; then 6032 NM=$DUMPBIN 6033 fi 6034fi 6035test -z "$NM" && NM=nm 6036 6037 6038 6039 6040 6041 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6043$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6044if ${lt_cv_nm_interface+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 lt_cv_nm_interface="BSD nm" 6048 echo "int some_variable = 0;" > conftest.$ac_ext 6049 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6050 (eval "$ac_compile" 2>conftest.err) 6051 cat conftest.err >&5 6052 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6053 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6054 cat conftest.err >&5 6055 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6056 cat conftest.out >&5 6057 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6058 lt_cv_nm_interface="MS dumpbin" 6059 fi 6060 rm -f conftest* 6061fi 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6063$as_echo "$lt_cv_nm_interface" >&6; } 6064 6065# find the maximum length of command line arguments 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6067$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6068if ${lt_cv_sys_max_cmd_len+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 i=0 6072 teststring=ABCD 6073 6074 case $build_os in 6075 msdosdjgpp*) 6076 # On DJGPP, this test can blow up pretty badly due to problems in libc 6077 # (any single argument exceeding 2000 bytes causes a buffer overrun 6078 # during glob expansion). Even if it were fixed, the result of this 6079 # check would be larger than it should be. 6080 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6081 ;; 6082 6083 gnu*) 6084 # Under GNU Hurd, this test is not required because there is 6085 # no limit to the length of command line arguments. 6086 # Libtool will interpret -1 as no limit whatsoever 6087 lt_cv_sys_max_cmd_len=-1; 6088 ;; 6089 6090 cygwin* | mingw* | cegcc*) 6091 # On Win9x/ME, this test blows up -- it succeeds, but takes 6092 # about 5 minutes as the teststring grows exponentially. 6093 # Worse, since 9x/ME are not pre-emptively multitasking, 6094 # you end up with a "frozen" computer, even though with patience 6095 # the test eventually succeeds (with a max line length of 256k). 6096 # Instead, let's just punt: use the minimum linelength reported by 6097 # all of the supported platforms: 8192 (on NT/2K/XP). 6098 lt_cv_sys_max_cmd_len=8192; 6099 ;; 6100 6101 mint*) 6102 # On MiNT this can take a long time and run out of memory. 6103 lt_cv_sys_max_cmd_len=8192; 6104 ;; 6105 6106 amigaos*) 6107 # On AmigaOS with pdksh, this test takes hours, literally. 6108 # So we just punt and use a minimum line length of 8192. 6109 lt_cv_sys_max_cmd_len=8192; 6110 ;; 6111 6112 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6113 # This has been around since 386BSD, at least. Likely further. 6114 if test -x /sbin/sysctl; then 6115 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6116 elif test -x /usr/sbin/sysctl; then 6117 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6118 else 6119 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6120 fi 6121 # And add a safety zone 6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6124 ;; 6125 6126 interix*) 6127 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6128 lt_cv_sys_max_cmd_len=196608 6129 ;; 6130 6131 os2*) 6132 # The test takes a long time on OS/2. 6133 lt_cv_sys_max_cmd_len=8192 6134 ;; 6135 6136 osf*) 6137 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6138 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6139 # nice to cause kernel panics so lets avoid the loop below. 6140 # First set a reasonable default. 6141 lt_cv_sys_max_cmd_len=16384 6142 # 6143 if test -x /sbin/sysconfig; then 6144 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6145 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6146 esac 6147 fi 6148 ;; 6149 sco3.2v5*) 6150 lt_cv_sys_max_cmd_len=102400 6151 ;; 6152 sysv5* | sco5v6* | sysv4.2uw2*) 6153 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6154 if test -n "$kargmax"; then 6155 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6156 else 6157 lt_cv_sys_max_cmd_len=32768 6158 fi 6159 ;; 6160 *) 6161 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6162 if test -n "$lt_cv_sys_max_cmd_len" && \ 6163 test undefined != "$lt_cv_sys_max_cmd_len"; then 6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6166 else 6167 # Make teststring a little bigger before we do anything with it. 6168 # a 1K string should be a reasonable start. 6169 for i in 1 2 3 4 5 6 7 8; do 6170 teststring=$teststring$teststring 6171 done 6172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6173 # If test is not a shell built-in, we'll probably end up computing a 6174 # maximum length that is only half of the actual maximum length, but 6175 # we can't tell. 6176 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6177 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6178 test 17 != "$i" # 1/2 MB should be enough 6179 do 6180 i=`expr $i + 1` 6181 teststring=$teststring$teststring 6182 done 6183 # Only check the string length outside the loop. 6184 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6185 teststring= 6186 # Add a significant safety factor because C++ compilers can tack on 6187 # massive amounts of additional arguments before passing them to the 6188 # linker. It appears as though 1/2 is a usable value. 6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6190 fi 6191 ;; 6192 esac 6193 6194fi 6195 6196if test -n "$lt_cv_sys_max_cmd_len"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6198$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6199else 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6201$as_echo "none" >&6; } 6202fi 6203max_cmd_len=$lt_cv_sys_max_cmd_len 6204 6205 6206 6207 6208 6209 6210: ${CP="cp -f"} 6211: ${MV="mv -f"} 6212: ${RM="rm -f"} 6213 6214if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6215 lt_unset=unset 6216else 6217 lt_unset=false 6218fi 6219 6220 6221 6222 6223 6224# test EBCDIC or ASCII 6225case `echo X|tr X '\101'` in 6226 A) # ASCII based system 6227 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6228 lt_SP2NL='tr \040 \012' 6229 lt_NL2SP='tr \015\012 \040\040' 6230 ;; 6231 *) # EBCDIC based system 6232 lt_SP2NL='tr \100 \n' 6233 lt_NL2SP='tr \r\n \100\100' 6234 ;; 6235esac 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6246$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6247if ${lt_cv_to_host_file_cmd+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 case $host in 6251 *-*-mingw* ) 6252 case $build in 6253 *-*-mingw* ) # actually msys 6254 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6255 ;; 6256 *-*-cygwin* ) 6257 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6258 ;; 6259 * ) # otherwise, assume *nix 6260 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6261 ;; 6262 esac 6263 ;; 6264 *-*-cygwin* ) 6265 case $build in 6266 *-*-mingw* ) # actually msys 6267 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6268 ;; 6269 *-*-cygwin* ) 6270 lt_cv_to_host_file_cmd=func_convert_file_noop 6271 ;; 6272 * ) # otherwise, assume *nix 6273 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6274 ;; 6275 esac 6276 ;; 6277 * ) # unhandled hosts (and "normal" native builds) 6278 lt_cv_to_host_file_cmd=func_convert_file_noop 6279 ;; 6280esac 6281 6282fi 6283 6284to_host_file_cmd=$lt_cv_to_host_file_cmd 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6286$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6287 6288 6289 6290 6291 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6293$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6294if ${lt_cv_to_tool_file_cmd+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 #assume ordinary cross tools, or native build. 6298lt_cv_to_tool_file_cmd=func_convert_file_noop 6299case $host in 6300 *-*-mingw* ) 6301 case $build in 6302 *-*-mingw* ) # actually msys 6303 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6304 ;; 6305 esac 6306 ;; 6307esac 6308 6309fi 6310 6311to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6313$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6314 6315 6316 6317 6318 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6320$as_echo_n "checking for $LD option to reload object files... " >&6; } 6321if ${lt_cv_ld_reload_flag+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 lt_cv_ld_reload_flag='-r' 6325fi 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6327$as_echo "$lt_cv_ld_reload_flag" >&6; } 6328reload_flag=$lt_cv_ld_reload_flag 6329case $reload_flag in 6330"" | " "*) ;; 6331*) reload_flag=" $reload_flag" ;; 6332esac 6333reload_cmds='$LD$reload_flag -o $output$reload_objs' 6334case $host_os in 6335 cygwin* | mingw* | pw32* | cegcc*) 6336 if test yes != "$GCC"; then 6337 reload_cmds=false 6338 fi 6339 ;; 6340 darwin*) 6341 if test yes = "$GCC"; then 6342 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6343 else 6344 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6345 fi 6346 ;; 6347esac 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357if test -n "$ac_tool_prefix"; then 6358 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6359set dummy ${ac_tool_prefix}objdump; ac_word=$2 6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6361$as_echo_n "checking for $ac_word... " >&6; } 6362if ${ac_cv_prog_OBJDUMP+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 if test -n "$OBJDUMP"; then 6366 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6367else 6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6369for as_dir in $PATH 6370do 6371 IFS=$as_save_IFS 6372 test -z "$as_dir" && as_dir=. 6373 for ac_exec_ext in '' $ac_executable_extensions; do 6374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6375 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6377 break 2 6378 fi 6379done 6380 done 6381IFS=$as_save_IFS 6382 6383fi 6384fi 6385OBJDUMP=$ac_cv_prog_OBJDUMP 6386if test -n "$OBJDUMP"; then 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6388$as_echo "$OBJDUMP" >&6; } 6389else 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6391$as_echo "no" >&6; } 6392fi 6393 6394 6395fi 6396if test -z "$ac_cv_prog_OBJDUMP"; then 6397 ac_ct_OBJDUMP=$OBJDUMP 6398 # Extract the first word of "objdump", so it can be a program name with args. 6399set dummy objdump; ac_word=$2 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6401$as_echo_n "checking for $ac_word... " >&6; } 6402if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 if test -n "$ac_ct_OBJDUMP"; then 6406 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6407else 6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6409for as_dir in $PATH 6410do 6411 IFS=$as_save_IFS 6412 test -z "$as_dir" && as_dir=. 6413 for ac_exec_ext in '' $ac_executable_extensions; do 6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6415 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6417 break 2 6418 fi 6419done 6420 done 6421IFS=$as_save_IFS 6422 6423fi 6424fi 6425ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6426if test -n "$ac_ct_OBJDUMP"; then 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6428$as_echo "$ac_ct_OBJDUMP" >&6; } 6429else 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6431$as_echo "no" >&6; } 6432fi 6433 6434 if test "x$ac_ct_OBJDUMP" = x; then 6435 OBJDUMP="false" 6436 else 6437 case $cross_compiling:$ac_tool_warned in 6438yes:) 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6441ac_tool_warned=yes ;; 6442esac 6443 OBJDUMP=$ac_ct_OBJDUMP 6444 fi 6445else 6446 OBJDUMP="$ac_cv_prog_OBJDUMP" 6447fi 6448 6449test -z "$OBJDUMP" && OBJDUMP=objdump 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6460$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6461if ${lt_cv_deplibs_check_method+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 lt_cv_file_magic_cmd='$MAGIC_CMD' 6465lt_cv_file_magic_test_file= 6466lt_cv_deplibs_check_method='unknown' 6467# Need to set the preceding variable on all platforms that support 6468# interlibrary dependencies. 6469# 'none' -- dependencies not supported. 6470# 'unknown' -- same as none, but documents that we really don't know. 6471# 'pass_all' -- all dependencies passed with no checks. 6472# 'test_compile' -- check by making test program. 6473# 'file_magic [[regex]]' -- check by looking for files in library path 6474# that responds to the $file_magic_cmd with a given extended regex. 6475# If you have 'file' or equivalent on your system and you're not sure 6476# whether 'pass_all' will *always* work, you probably want this one. 6477 6478case $host_os in 6479aix[4-9]*) 6480 lt_cv_deplibs_check_method=pass_all 6481 ;; 6482 6483beos*) 6484 lt_cv_deplibs_check_method=pass_all 6485 ;; 6486 6487bsdi[45]*) 6488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6489 lt_cv_file_magic_cmd='/usr/bin/file -L' 6490 lt_cv_file_magic_test_file=/shlib/libc.so 6491 ;; 6492 6493cygwin*) 6494 # func_win32_libid is a shell function defined in ltmain.sh 6495 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6496 lt_cv_file_magic_cmd='func_win32_libid' 6497 ;; 6498 6499mingw* | pw32*) 6500 # Base MSYS/MinGW do not provide the 'file' command needed by 6501 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6502 # unless we find 'file', for example because we are cross-compiling. 6503 if ( file / ) >/dev/null 2>&1; then 6504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6505 lt_cv_file_magic_cmd='func_win32_libid' 6506 else 6507 # Keep this pattern in sync with the one in func_win32_libid. 6508 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6509 lt_cv_file_magic_cmd='$OBJDUMP -f' 6510 fi 6511 ;; 6512 6513cegcc*) 6514 # use the weaker test based on 'objdump'. See mingw*. 6515 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6516 lt_cv_file_magic_cmd='$OBJDUMP -f' 6517 ;; 6518 6519darwin* | rhapsody*) 6520 lt_cv_deplibs_check_method=pass_all 6521 ;; 6522 6523freebsd* | dragonfly*) 6524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6525 case $host_cpu in 6526 i*86 ) 6527 # Not sure whether the presence of OpenBSD here was a mistake. 6528 # Let's accept both of them until this is cleared up. 6529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6530 lt_cv_file_magic_cmd=/usr/bin/file 6531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6532 ;; 6533 esac 6534 else 6535 lt_cv_deplibs_check_method=pass_all 6536 fi 6537 ;; 6538 6539haiku*) 6540 lt_cv_deplibs_check_method=pass_all 6541 ;; 6542 6543hpux10.20* | hpux11*) 6544 lt_cv_file_magic_cmd=/usr/bin/file 6545 case $host_cpu in 6546 ia64*) 6547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6548 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6549 ;; 6550 hppa*64*) 6551 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]' 6552 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6553 ;; 6554 *) 6555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6556 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6557 ;; 6558 esac 6559 ;; 6560 6561interix[3-9]*) 6562 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6564 ;; 6565 6566irix5* | irix6* | nonstopux*) 6567 case $LD in 6568 *-32|*"-32 ") libmagic=32-bit;; 6569 *-n32|*"-n32 ") libmagic=N32;; 6570 *-64|*"-64 ") libmagic=64-bit;; 6571 *) libmagic=never-match;; 6572 esac 6573 lt_cv_deplibs_check_method=pass_all 6574 ;; 6575 6576# This must be glibc/ELF. 6577linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6578 lt_cv_deplibs_check_method=pass_all 6579 ;; 6580 6581netbsd*) 6582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6584 else 6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6586 fi 6587 ;; 6588 6589newos6*) 6590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6591 lt_cv_file_magic_cmd=/usr/bin/file 6592 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6593 ;; 6594 6595*nto* | *qnx*) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 6599openbsd* | bitrig*) 6600 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6602 else 6603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6604 fi 6605 ;; 6606 6607osf3* | osf4* | osf5*) 6608 lt_cv_deplibs_check_method=pass_all 6609 ;; 6610 6611rdos*) 6612 lt_cv_deplibs_check_method=pass_all 6613 ;; 6614 6615solaris*) 6616 lt_cv_deplibs_check_method=pass_all 6617 ;; 6618 6619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6620 lt_cv_deplibs_check_method=pass_all 6621 ;; 6622 6623sysv4 | sysv4.3*) 6624 case $host_vendor in 6625 motorola) 6626 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]' 6627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6628 ;; 6629 ncr) 6630 lt_cv_deplibs_check_method=pass_all 6631 ;; 6632 sequent) 6633 lt_cv_file_magic_cmd='/bin/file' 6634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6635 ;; 6636 sni) 6637 lt_cv_file_magic_cmd='/bin/file' 6638 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6639 lt_cv_file_magic_test_file=/lib/libc.so 6640 ;; 6641 siemens) 6642 lt_cv_deplibs_check_method=pass_all 6643 ;; 6644 pc) 6645 lt_cv_deplibs_check_method=pass_all 6646 ;; 6647 esac 6648 ;; 6649 6650tpf*) 6651 lt_cv_deplibs_check_method=pass_all 6652 ;; 6653os2*) 6654 lt_cv_deplibs_check_method=pass_all 6655 ;; 6656esac 6657 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6660$as_echo "$lt_cv_deplibs_check_method" >&6; } 6661 6662file_magic_glob= 6663want_nocaseglob=no 6664if test "$build" = "$host"; then 6665 case $host_os in 6666 mingw* | pw32*) 6667 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6668 want_nocaseglob=yes 6669 else 6670 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6671 fi 6672 ;; 6673 esac 6674fi 6675 6676file_magic_cmd=$lt_cv_file_magic_cmd 6677deplibs_check_method=$lt_cv_deplibs_check_method 6678test -z "$deplibs_check_method" && deplibs_check_method=unknown 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701if test -n "$ac_tool_prefix"; then 6702 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6703set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6705$as_echo_n "checking for $ac_word... " >&6; } 6706if ${ac_cv_prog_DLLTOOL+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 if test -n "$DLLTOOL"; then 6710 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6711else 6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713for as_dir in $PATH 6714do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6719 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723done 6724 done 6725IFS=$as_save_IFS 6726 6727fi 6728fi 6729DLLTOOL=$ac_cv_prog_DLLTOOL 6730if test -n "$DLLTOOL"; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6732$as_echo "$DLLTOOL" >&6; } 6733else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735$as_echo "no" >&6; } 6736fi 6737 6738 6739fi 6740if test -z "$ac_cv_prog_DLLTOOL"; then 6741 ac_ct_DLLTOOL=$DLLTOOL 6742 # Extract the first word of "dlltool", so it can be a program name with args. 6743set dummy dlltool; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$ac_ct_DLLTOOL"; then 6750 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6770if test -n "$ac_ct_DLLTOOL"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6772$as_echo "$ac_ct_DLLTOOL" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 if test "x$ac_ct_DLLTOOL" = x; then 6779 DLLTOOL="false" 6780 else 6781 case $cross_compiling:$ac_tool_warned in 6782yes:) 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6785ac_tool_warned=yes ;; 6786esac 6787 DLLTOOL=$ac_ct_DLLTOOL 6788 fi 6789else 6790 DLLTOOL="$ac_cv_prog_DLLTOOL" 6791fi 6792 6793test -z "$DLLTOOL" && DLLTOOL=dlltool 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6805$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6806if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 lt_cv_sharedlib_from_linklib_cmd='unknown' 6810 6811case $host_os in 6812cygwin* | mingw* | pw32* | cegcc*) 6813 # two different shell functions defined in ltmain.sh; 6814 # decide which one to use based on capabilities of $DLLTOOL 6815 case `$DLLTOOL --help 2>&1` in 6816 *--identify-strict*) 6817 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6818 ;; 6819 *) 6820 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6821 ;; 6822 esac 6823 ;; 6824*) 6825 # fallback: assume linklib IS sharedlib 6826 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6827 ;; 6828esac 6829 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6832$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6833sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6834test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6835 6836 6837 6838 6839 6840 6841 6842if test -n "$ac_tool_prefix"; then 6843 for ac_prog in ar 6844 do 6845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6846set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if ${ac_cv_prog_AR+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test -n "$AR"; then 6853 ac_cv_prog_AR="$AR" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866done 6867 done 6868IFS=$as_save_IFS 6869 6870fi 6871fi 6872AR=$ac_cv_prog_AR 6873if test -n "$AR"; then 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6875$as_echo "$AR" >&6; } 6876else 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 6882 test -n "$AR" && break 6883 done 6884fi 6885if test -z "$AR"; then 6886 ac_ct_AR=$AR 6887 for ac_prog in ar 6888do 6889 # Extract the first word of "$ac_prog", so it can be a program name with args. 6890set dummy $ac_prog; ac_word=$2 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6892$as_echo_n "checking for $ac_word... " >&6; } 6893if ${ac_cv_prog_ac_ct_AR+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 if test -n "$ac_ct_AR"; then 6897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6898else 6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6900for as_dir in $PATH 6901do 6902 IFS=$as_save_IFS 6903 test -z "$as_dir" && as_dir=. 6904 for ac_exec_ext in '' $ac_executable_extensions; do 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6906 ac_cv_prog_ac_ct_AR="$ac_prog" 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6908 break 2 6909 fi 6910done 6911 done 6912IFS=$as_save_IFS 6913 6914fi 6915fi 6916ac_ct_AR=$ac_cv_prog_ac_ct_AR 6917if test -n "$ac_ct_AR"; then 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6919$as_echo "$ac_ct_AR" >&6; } 6920else 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6922$as_echo "no" >&6; } 6923fi 6924 6925 6926 test -n "$ac_ct_AR" && break 6927done 6928 6929 if test "x$ac_ct_AR" = x; then 6930 AR="false" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933yes:) 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6936ac_tool_warned=yes ;; 6937esac 6938 AR=$ac_ct_AR 6939 fi 6940fi 6941 6942: ${AR=ar} 6943: ${AR_FLAGS=cru} 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6956$as_echo_n "checking for archiver @FILE support... " >&6; } 6957if ${lt_cv_ar_at_file+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 lt_cv_ar_at_file=no 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963 6964int 6965main () 6966{ 6967 6968 ; 6969 return 0; 6970} 6971_ACEOF 6972if ac_fn_c_try_compile "$LINENO"; then : 6973 echo conftest.$ac_objext > conftest.lst 6974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6976 (eval $lt_ar_try) 2>&5 6977 ac_status=$? 6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6979 test $ac_status = 0; } 6980 if test 0 -eq "$ac_status"; then 6981 # Ensure the archiver fails upon bogus file names. 6982 rm -f conftest.$ac_objext libconftest.a 6983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6984 (eval $lt_ar_try) 2>&5 6985 ac_status=$? 6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6987 test $ac_status = 0; } 6988 if test 0 -ne "$ac_status"; then 6989 lt_cv_ar_at_file=@ 6990 fi 6991 fi 6992 rm -f conftest.* libconftest.a 6993 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6996 6997fi 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6999$as_echo "$lt_cv_ar_at_file" >&6; } 7000 7001if test no = "$lt_cv_ar_at_file"; then 7002 archiver_list_spec= 7003else 7004 archiver_list_spec=$lt_cv_ar_at_file 7005fi 7006 7007 7008 7009 7010 7011 7012 7013if test -n "$ac_tool_prefix"; then 7014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7015set dummy ${ac_tool_prefix}strip; ac_word=$2 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7017$as_echo_n "checking for $ac_word... " >&6; } 7018if ${ac_cv_prog_STRIP+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020else 7021 if test -n "$STRIP"; then 7022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7023else 7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025for as_dir in $PATH 7026do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7033 break 2 7034 fi 7035done 7036 done 7037IFS=$as_save_IFS 7038 7039fi 7040fi 7041STRIP=$ac_cv_prog_STRIP 7042if test -n "$STRIP"; then 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7044$as_echo "$STRIP" >&6; } 7045else 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7047$as_echo "no" >&6; } 7048fi 7049 7050 7051fi 7052if test -z "$ac_cv_prog_STRIP"; then 7053 ac_ct_STRIP=$STRIP 7054 # Extract the first word of "strip", so it can be a program name with args. 7055set dummy strip; ac_word=$2 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7057$as_echo_n "checking for $ac_word... " >&6; } 7058if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 if test -n "$ac_ct_STRIP"; then 7062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7063else 7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7065for as_dir in $PATH 7066do 7067 IFS=$as_save_IFS 7068 test -z "$as_dir" && as_dir=. 7069 for ac_exec_ext in '' $ac_executable_extensions; do 7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7071 ac_cv_prog_ac_ct_STRIP="strip" 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7073 break 2 7074 fi 7075done 7076 done 7077IFS=$as_save_IFS 7078 7079fi 7080fi 7081ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7082if test -n "$ac_ct_STRIP"; then 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7084$as_echo "$ac_ct_STRIP" >&6; } 7085else 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7087$as_echo "no" >&6; } 7088fi 7089 7090 if test "x$ac_ct_STRIP" = x; then 7091 STRIP=":" 7092 else 7093 case $cross_compiling:$ac_tool_warned in 7094yes:) 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7097ac_tool_warned=yes ;; 7098esac 7099 STRIP=$ac_ct_STRIP 7100 fi 7101else 7102 STRIP="$ac_cv_prog_STRIP" 7103fi 7104 7105test -z "$STRIP" && STRIP=: 7106 7107 7108 7109 7110 7111 7112if test -n "$ac_tool_prefix"; then 7113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7114set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7116$as_echo_n "checking for $ac_word... " >&6; } 7117if ${ac_cv_prog_RANLIB+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 if test -n "$RANLIB"; then 7121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7122else 7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7124for as_dir in $PATH 7125do 7126 IFS=$as_save_IFS 7127 test -z "$as_dir" && as_dir=. 7128 for ac_exec_ext in '' $ac_executable_extensions; do 7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7132 break 2 7133 fi 7134done 7135 done 7136IFS=$as_save_IFS 7137 7138fi 7139fi 7140RANLIB=$ac_cv_prog_RANLIB 7141if test -n "$RANLIB"; then 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7143$as_echo "$RANLIB" >&6; } 7144else 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7146$as_echo "no" >&6; } 7147fi 7148 7149 7150fi 7151if test -z "$ac_cv_prog_RANLIB"; then 7152 ac_ct_RANLIB=$RANLIB 7153 # Extract the first word of "ranlib", so it can be a program name with args. 7154set dummy ranlib; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$ac_ct_RANLIB"; then 7161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7170 ac_cv_prog_ac_ct_RANLIB="ranlib" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7181if test -n "$ac_ct_RANLIB"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7183$as_echo "$ac_ct_RANLIB" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 if test "x$ac_ct_RANLIB" = x; then 7190 RANLIB=":" 7191 else 7192 case $cross_compiling:$ac_tool_warned in 7193yes:) 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7196ac_tool_warned=yes ;; 7197esac 7198 RANLIB=$ac_ct_RANLIB 7199 fi 7200else 7201 RANLIB="$ac_cv_prog_RANLIB" 7202fi 7203 7204test -z "$RANLIB" && RANLIB=: 7205 7206 7207 7208 7209 7210 7211# Determine commands to create old-style static archives. 7212old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7213old_postinstall_cmds='chmod 644 $oldlib' 7214old_postuninstall_cmds= 7215 7216if test -n "$RANLIB"; then 7217 case $host_os in 7218 bitrig* | openbsd*) 7219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7220 ;; 7221 *) 7222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7223 ;; 7224 esac 7225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7226fi 7227 7228case $host_os in 7229 darwin*) 7230 lock_old_archive_extraction=yes ;; 7231 *) 7232 lock_old_archive_extraction=no ;; 7233esac 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273# If no C compiler was specified, use CC. 7274LTCC=${LTCC-"$CC"} 7275 7276# If no C compiler flags were specified, use CFLAGS. 7277LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7278 7279# Allow CC to be a program name with arguments. 7280compiler=$CC 7281 7282 7283# Check for command to grab the raw symbol name followed by C symbol from nm. 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7285$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7286if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 7290# These are sane defaults that work on at least a few old systems. 7291# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7292 7293# Character class describing NM global symbol codes. 7294symcode='[BCDEGRST]' 7295 7296# Regexp to match symbols that can be accessed directly from C. 7297sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7298 7299# Define system-specific variables. 7300case $host_os in 7301aix*) 7302 symcode='[BCDT]' 7303 ;; 7304cygwin* | mingw* | pw32* | cegcc*) 7305 symcode='[ABCDGISTW]' 7306 ;; 7307hpux*) 7308 if test ia64 = "$host_cpu"; then 7309 symcode='[ABCDEGRST]' 7310 fi 7311 ;; 7312irix* | nonstopux*) 7313 symcode='[BCDEGRST]' 7314 ;; 7315osf*) 7316 symcode='[BCDEGQRST]' 7317 ;; 7318solaris*) 7319 symcode='[BDRT]' 7320 ;; 7321sco3.2v5*) 7322 symcode='[DT]' 7323 ;; 7324sysv4.2uw2*) 7325 symcode='[DT]' 7326 ;; 7327sysv5* | sco5v6* | unixware* | OpenUNIX*) 7328 symcode='[ABDT]' 7329 ;; 7330sysv4) 7331 symcode='[DFNSTU]' 7332 ;; 7333esac 7334 7335# If we're using GNU nm, then use its standard symbol codes. 7336case `$NM -V 2>&1` in 7337*GNU* | *'with BFD'*) 7338 symcode='[ABCDGIRSTW]' ;; 7339esac 7340 7341if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7342 # Gets list of data symbols to import. 7343 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7344 # Adjust the below global symbol transforms to fixup imported variables. 7345 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7346 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7347 lt_c_name_lib_hook="\ 7348 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7349 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7350else 7351 # Disable hooks by default. 7352 lt_cv_sys_global_symbol_to_import= 7353 lt_cdecl_hook= 7354 lt_c_name_hook= 7355 lt_c_name_lib_hook= 7356fi 7357 7358# Transform an extracted symbol line into a proper C declaration. 7359# Some systems (esp. on ia64) link data and code symbols differently, 7360# so use this general approach. 7361lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7362$lt_cdecl_hook\ 7363" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7364" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7365 7366# Transform an extracted symbol line into symbol name and symbol address 7367lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7368$lt_c_name_hook\ 7369" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7370" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7371 7372# Transform an extracted symbol line into symbol name with lib prefix and 7373# symbol address. 7374lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7375$lt_c_name_lib_hook\ 7376" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7377" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7378" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7379 7380# Handle CRLF in mingw tool chain 7381opt_cr= 7382case $build_os in 7383mingw*) 7384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7385 ;; 7386esac 7387 7388# Try without a prefix underscore, then with it. 7389for ac_symprfx in "" "_"; do 7390 7391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7392 symxfrm="\\1 $ac_symprfx\\2 \\2" 7393 7394 # Write the raw and C identifiers. 7395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7396 # Fake it for dumpbin and say T for any non-static function, 7397 # D for any global variable and I for any imported variable. 7398 # Also find C++ and __fastcall symbols from MSVC++, 7399 # which start with @ or ?. 7400 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7401" {last_section=section; section=\$ 3};"\ 7402" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7403" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7404" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7405" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7406" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7407" \$ 0!~/External *\|/{next};"\ 7408" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7409" {if(hide[section]) next};"\ 7410" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7411" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7412" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7413" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7414" ' prfx=^$ac_symprfx" 7415 else 7416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7417 fi 7418 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7419 7420 # Check to see that the pipe works correctly. 7421 pipe_works=no 7422 7423 rm -f conftest* 7424 cat > conftest.$ac_ext <<_LT_EOF 7425#ifdef __cplusplus 7426extern "C" { 7427#endif 7428char nm_test_var; 7429void nm_test_func(void); 7430void nm_test_func(void){} 7431#ifdef __cplusplus 7432} 7433#endif 7434int main(){nm_test_var='a';nm_test_func();return(0);} 7435_LT_EOF 7436 7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7438 (eval $ac_compile) 2>&5 7439 ac_status=$? 7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7441 test $ac_status = 0; }; then 7442 # Now try to grab the symbols. 7443 nlist=conftest.nm 7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7446 ac_status=$? 7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7448 test $ac_status = 0; } && test -s "$nlist"; then 7449 # Try sorting and uniquifying the output. 7450 if sort "$nlist" | uniq > "$nlist"T; then 7451 mv -f "$nlist"T "$nlist" 7452 else 7453 rm -f "$nlist"T 7454 fi 7455 7456 # Make sure that we snagged all the symbols we need. 7457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7459 cat <<_LT_EOF > conftest.$ac_ext 7460/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7461#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7462/* DATA imports from DLLs on WIN32 can't be const, because runtime 7463 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7464# define LT_DLSYM_CONST 7465#elif defined __osf__ 7466/* This system does not cope well with relocations in const data. */ 7467# define LT_DLSYM_CONST 7468#else 7469# define LT_DLSYM_CONST const 7470#endif 7471 7472#ifdef __cplusplus 7473extern "C" { 7474#endif 7475 7476_LT_EOF 7477 # Now generate the symbol file. 7478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7479 7480 cat <<_LT_EOF >> conftest.$ac_ext 7481 7482/* The mapping between symbol names and symbols. */ 7483LT_DLSYM_CONST struct { 7484 const char *name; 7485 void *address; 7486} 7487lt__PROGRAM__LTX_preloaded_symbols[] = 7488{ 7489 { "@PROGRAM@", (void *) 0 }, 7490_LT_EOF 7491 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7492 cat <<\_LT_EOF >> conftest.$ac_ext 7493 {0, (void *) 0} 7494}; 7495 7496/* This works around a problem in FreeBSD linker */ 7497#ifdef FREEBSD_WORKAROUND 7498static const void *lt_preloaded_setup() { 7499 return lt__PROGRAM__LTX_preloaded_symbols; 7500} 7501#endif 7502 7503#ifdef __cplusplus 7504} 7505#endif 7506_LT_EOF 7507 # Now try linking the two files. 7508 mv conftest.$ac_objext conftstm.$ac_objext 7509 lt_globsym_save_LIBS=$LIBS 7510 lt_globsym_save_CFLAGS=$CFLAGS 7511 LIBS=conftstm.$ac_objext 7512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7514 (eval $ac_link) 2>&5 7515 ac_status=$? 7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7517 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7518 pipe_works=yes 7519 fi 7520 LIBS=$lt_globsym_save_LIBS 7521 CFLAGS=$lt_globsym_save_CFLAGS 7522 else 7523 echo "cannot find nm_test_func in $nlist" >&5 7524 fi 7525 else 7526 echo "cannot find nm_test_var in $nlist" >&5 7527 fi 7528 else 7529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7530 fi 7531 else 7532 echo "$progname: failed program was:" >&5 7533 cat conftest.$ac_ext >&5 7534 fi 7535 rm -rf conftest* conftst* 7536 7537 # Do not use the global_symbol_pipe unless it works. 7538 if test yes = "$pipe_works"; then 7539 break 7540 else 7541 lt_cv_sys_global_symbol_pipe= 7542 fi 7543done 7544 7545fi 7546 7547if test -z "$lt_cv_sys_global_symbol_pipe"; then 7548 lt_cv_sys_global_symbol_to_cdecl= 7549fi 7550if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7552$as_echo "failed" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7555$as_echo "ok" >&6; } 7556fi 7557 7558# Response file support. 7559if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7560 nm_file_list_spec='@' 7561elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7562 nm_file_list_spec='@' 7563fi 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7602$as_echo_n "checking for sysroot... " >&6; } 7603 7604# Check whether --with-sysroot was given. 7605if test "${with_sysroot+set}" = set; then : 7606 withval=$with_sysroot; 7607else 7608 with_sysroot=no 7609fi 7610 7611 7612lt_sysroot= 7613case $with_sysroot in #( 7614 yes) 7615 if test yes = "$GCC"; then 7616 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7617 fi 7618 ;; #( 7619 /*) 7620 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7621 ;; #( 7622 no|'') 7623 ;; #( 7624 *) 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7626$as_echo "$with_sysroot" >&6; } 7627 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7628 ;; 7629esac 7630 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7632$as_echo "${lt_sysroot:-no}" >&6; } 7633 7634 7635 7636 7637 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7639$as_echo_n "checking for a working dd... " >&6; } 7640if ${ac_cv_path_lt_DD+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 printf 0123456789abcdef0123456789abcdef >conftest.i 7644cat conftest.i conftest.i >conftest2.i 7645: ${lt_DD:=$DD} 7646if test -z "$lt_DD"; then 7647 ac_path_lt_DD_found=false 7648 # Loop through the user's path and test for each of PROGNAME-LIST 7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650for as_dir in $PATH 7651do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_prog in dd; do 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7657 as_fn_executable_p "$ac_path_lt_DD" || continue 7658if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7659 cmp -s conftest.i conftest.out \ 7660 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7661fi 7662 $ac_path_lt_DD_found && break 3 7663 done 7664 done 7665 done 7666IFS=$as_save_IFS 7667 if test -z "$ac_cv_path_lt_DD"; then 7668 : 7669 fi 7670else 7671 ac_cv_path_lt_DD=$lt_DD 7672fi 7673 7674rm -f conftest.i conftest2.i conftest.out 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7677$as_echo "$ac_cv_path_lt_DD" >&6; } 7678 7679 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7681$as_echo_n "checking how to truncate binary pipes... " >&6; } 7682if ${lt_cv_truncate_bin+:} false; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 printf 0123456789abcdef0123456789abcdef >conftest.i 7686cat conftest.i conftest.i >conftest2.i 7687lt_cv_truncate_bin= 7688if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7689 cmp -s conftest.i conftest.out \ 7690 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7691fi 7692rm -f conftest.i conftest2.i conftest.out 7693test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7694fi 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7696$as_echo "$lt_cv_truncate_bin" >&6; } 7697 7698 7699 7700 7701 7702 7703 7704# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7705func_cc_basename () 7706{ 7707 for cc_temp in $*""; do 7708 case $cc_temp in 7709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7711 \-*) ;; 7712 *) break;; 7713 esac 7714 done 7715 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7716} 7717 7718# Check whether --enable-libtool-lock was given. 7719if test "${enable_libtool_lock+set}" = set; then : 7720 enableval=$enable_libtool_lock; 7721fi 7722 7723test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7724 7725# Some flags need to be propagated to the compiler or linker for good 7726# libtool support. 7727case $host in 7728ia64-*-hpux*) 7729 # Find out what ABI is being produced by ac_compile, and set mode 7730 # options accordingly. 7731 echo 'int i;' > conftest.$ac_ext 7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7733 (eval $ac_compile) 2>&5 7734 ac_status=$? 7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7736 test $ac_status = 0; }; then 7737 case `/usr/bin/file conftest.$ac_objext` in 7738 *ELF-32*) 7739 HPUX_IA64_MODE=32 7740 ;; 7741 *ELF-64*) 7742 HPUX_IA64_MODE=64 7743 ;; 7744 esac 7745 fi 7746 rm -rf conftest* 7747 ;; 7748*-*-irix6*) 7749 # Find out what ABI is being produced by ac_compile, and set linker 7750 # options accordingly. 7751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7753 (eval $ac_compile) 2>&5 7754 ac_status=$? 7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7756 test $ac_status = 0; }; then 7757 if test yes = "$lt_cv_prog_gnu_ld"; then 7758 case `/usr/bin/file conftest.$ac_objext` in 7759 *32-bit*) 7760 LD="${LD-ld} -melf32bsmip" 7761 ;; 7762 *N32*) 7763 LD="${LD-ld} -melf32bmipn32" 7764 ;; 7765 *64-bit*) 7766 LD="${LD-ld} -melf64bmip" 7767 ;; 7768 esac 7769 else 7770 case `/usr/bin/file conftest.$ac_objext` in 7771 *32-bit*) 7772 LD="${LD-ld} -32" 7773 ;; 7774 *N32*) 7775 LD="${LD-ld} -n32" 7776 ;; 7777 *64-bit*) 7778 LD="${LD-ld} -64" 7779 ;; 7780 esac 7781 fi 7782 fi 7783 rm -rf conftest* 7784 ;; 7785 7786mips64*-*linux*) 7787 # Find out what ABI is being produced by ac_compile, and set linker 7788 # options accordingly. 7789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7791 (eval $ac_compile) 2>&5 7792 ac_status=$? 7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7794 test $ac_status = 0; }; then 7795 emul=elf 7796 case `/usr/bin/file conftest.$ac_objext` in 7797 *32-bit*) 7798 emul="${emul}32" 7799 ;; 7800 *64-bit*) 7801 emul="${emul}64" 7802 ;; 7803 esac 7804 case `/usr/bin/file conftest.$ac_objext` in 7805 *MSB*) 7806 emul="${emul}btsmip" 7807 ;; 7808 *LSB*) 7809 emul="${emul}ltsmip" 7810 ;; 7811 esac 7812 case `/usr/bin/file conftest.$ac_objext` in 7813 *N32*) 7814 emul="${emul}n32" 7815 ;; 7816 esac 7817 LD="${LD-ld} -m $emul" 7818 fi 7819 rm -rf conftest* 7820 ;; 7821 7822x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7823s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7824 # Find out what ABI is being produced by ac_compile, and set linker 7825 # options accordingly. Note that the listed cases only cover the 7826 # situations where additional linker options are needed (such as when 7827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7828 # vice versa); the common cases where no linker options are needed do 7829 # not appear in the list. 7830 echo 'int i;' > conftest.$ac_ext 7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7832 (eval $ac_compile) 2>&5 7833 ac_status=$? 7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7835 test $ac_status = 0; }; then 7836 case `/usr/bin/file conftest.o` in 7837 *32-bit*) 7838 case $host in 7839 x86_64-*kfreebsd*-gnu) 7840 LD="${LD-ld} -m elf_i386_fbsd" 7841 ;; 7842 x86_64-*linux*) 7843 case `/usr/bin/file conftest.o` in 7844 *x86-64*) 7845 LD="${LD-ld} -m elf32_x86_64" 7846 ;; 7847 *) 7848 LD="${LD-ld} -m elf_i386" 7849 ;; 7850 esac 7851 ;; 7852 powerpc64le-*linux*) 7853 LD="${LD-ld} -m elf32lppclinux" 7854 ;; 7855 powerpc64-*linux*) 7856 LD="${LD-ld} -m elf32ppclinux" 7857 ;; 7858 s390x-*linux*) 7859 LD="${LD-ld} -m elf_s390" 7860 ;; 7861 sparc64-*linux*) 7862 LD="${LD-ld} -m elf32_sparc" 7863 ;; 7864 esac 7865 ;; 7866 *64-bit*) 7867 case $host in 7868 x86_64-*kfreebsd*-gnu) 7869 LD="${LD-ld} -m elf_x86_64_fbsd" 7870 ;; 7871 x86_64-*linux*) 7872 LD="${LD-ld} -m elf_x86_64" 7873 ;; 7874 powerpcle-*linux*) 7875 LD="${LD-ld} -m elf64lppc" 7876 ;; 7877 powerpc-*linux*) 7878 LD="${LD-ld} -m elf64ppc" 7879 ;; 7880 s390*-*linux*|s390*-*tpf*) 7881 LD="${LD-ld} -m elf64_s390" 7882 ;; 7883 sparc*-*linux*) 7884 LD="${LD-ld} -m elf64_sparc" 7885 ;; 7886 esac 7887 ;; 7888 esac 7889 fi 7890 rm -rf conftest* 7891 ;; 7892 7893*-*-sco3.2v5*) 7894 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7895 SAVE_CFLAGS=$CFLAGS 7896 CFLAGS="$CFLAGS -belf" 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7898$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7899if ${lt_cv_cc_needs_belf+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 ac_ext=c 7903ac_cpp='$CPP $CPPFLAGS' 7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7906ac_compiler_gnu=$ac_cv_c_compiler_gnu 7907 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910 7911int 7912main () 7913{ 7914 7915 ; 7916 return 0; 7917} 7918_ACEOF 7919if ac_fn_c_try_link "$LINENO"; then : 7920 lt_cv_cc_needs_belf=yes 7921else 7922 lt_cv_cc_needs_belf=no 7923fi 7924rm -f core conftest.err conftest.$ac_objext \ 7925 conftest$ac_exeext conftest.$ac_ext 7926 ac_ext=c 7927ac_cpp='$CPP $CPPFLAGS' 7928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7930ac_compiler_gnu=$ac_cv_c_compiler_gnu 7931 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7934$as_echo "$lt_cv_cc_needs_belf" >&6; } 7935 if test yes != "$lt_cv_cc_needs_belf"; then 7936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7937 CFLAGS=$SAVE_CFLAGS 7938 fi 7939 ;; 7940*-*solaris*) 7941 # Find out what ABI is being produced by ac_compile, and set linker 7942 # options accordingly. 7943 echo 'int i;' > conftest.$ac_ext 7944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7945 (eval $ac_compile) 2>&5 7946 ac_status=$? 7947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7948 test $ac_status = 0; }; then 7949 case `/usr/bin/file conftest.o` in 7950 *64-bit*) 7951 case $lt_cv_prog_gnu_ld in 7952 yes*) 7953 case $host in 7954 i?86-*-solaris*|x86_64-*-solaris*) 7955 LD="${LD-ld} -m elf_x86_64" 7956 ;; 7957 sparc*-*-solaris*) 7958 LD="${LD-ld} -m elf64_sparc" 7959 ;; 7960 esac 7961 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7962 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7963 LD=${LD-ld}_sol2 7964 fi 7965 ;; 7966 *) 7967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7968 LD="${LD-ld} -64" 7969 fi 7970 ;; 7971 esac 7972 ;; 7973 esac 7974 fi 7975 rm -rf conftest* 7976 ;; 7977esac 7978 7979need_locks=$enable_libtool_lock 7980 7981if test -n "$ac_tool_prefix"; then 7982 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7983set dummy ${ac_tool_prefix}mt; ac_word=$2 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985$as_echo_n "checking for $ac_word... " >&6; } 7986if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 if test -n "$MANIFEST_TOOL"; then 7990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7991else 7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993for as_dir in $PATH 7994do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003done 8004 done 8005IFS=$as_save_IFS 8006 8007fi 8008fi 8009MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8010if test -n "$MANIFEST_TOOL"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8012$as_echo "$MANIFEST_TOOL" >&6; } 8013else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015$as_echo "no" >&6; } 8016fi 8017 8018 8019fi 8020if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8022 # Extract the first word of "mt", so it can be a program name with args. 8023set dummy mt; ac_word=$2 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025$as_echo_n "checking for $ac_word... " >&6; } 8026if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 if test -n "$ac_ct_MANIFEST_TOOL"; then 8030 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8031else 8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033for as_dir in $PATH 8034do 8035 IFS=$as_save_IFS 8036 test -z "$as_dir" && as_dir=. 8037 for ac_exec_ext in '' $ac_executable_extensions; do 8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8041 break 2 8042 fi 8043done 8044 done 8045IFS=$as_save_IFS 8046 8047fi 8048fi 8049ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8050if test -n "$ac_ct_MANIFEST_TOOL"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8052$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8053else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055$as_echo "no" >&6; } 8056fi 8057 8058 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8059 MANIFEST_TOOL=":" 8060 else 8061 case $cross_compiling:$ac_tool_warned in 8062yes:) 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8065ac_tool_warned=yes ;; 8066esac 8067 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8068 fi 8069else 8070 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8071fi 8072 8073test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8075$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8076if ${lt_cv_path_mainfest_tool+:} false; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 lt_cv_path_mainfest_tool=no 8080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8082 cat conftest.err >&5 8083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8084 lt_cv_path_mainfest_tool=yes 8085 fi 8086 rm -f conftest* 8087fi 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8089$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8090if test yes != "$lt_cv_path_mainfest_tool"; then 8091 MANIFEST_TOOL=: 8092fi 8093 8094 8095 8096 8097 8098 8099 case $host_os in 8100 rhapsody* | darwin*) 8101 if test -n "$ac_tool_prefix"; then 8102 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8103set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105$as_echo_n "checking for $ac_word... " >&6; } 8106if ${ac_cv_prog_DSYMUTIL+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if test -n "$DSYMUTIL"; then 8110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8119 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123done 8124 done 8125IFS=$as_save_IFS 8126 8127fi 8128fi 8129DSYMUTIL=$ac_cv_prog_DSYMUTIL 8130if test -n "$DSYMUTIL"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8132$as_echo "$DSYMUTIL" >&6; } 8133else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135$as_echo "no" >&6; } 8136fi 8137 8138 8139fi 8140if test -z "$ac_cv_prog_DSYMUTIL"; then 8141 ac_ct_DSYMUTIL=$DSYMUTIL 8142 # Extract the first word of "dsymutil", so it can be a program name with args. 8143set dummy dsymutil; ac_word=$2 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145$as_echo_n "checking for $ac_word... " >&6; } 8146if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 if test -n "$ac_ct_DSYMUTIL"; then 8150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi 8168fi 8169ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8170if test -n "$ac_ct_DSYMUTIL"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8172$as_echo "$ac_ct_DSYMUTIL" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 if test "x$ac_ct_DSYMUTIL" = x; then 8179 DSYMUTIL=":" 8180 else 8181 case $cross_compiling:$ac_tool_warned in 8182yes:) 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8185ac_tool_warned=yes ;; 8186esac 8187 DSYMUTIL=$ac_ct_DSYMUTIL 8188 fi 8189else 8190 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8191fi 8192 8193 if test -n "$ac_tool_prefix"; then 8194 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8195set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197$as_echo_n "checking for $ac_word... " >&6; } 8198if ${ac_cv_prog_NMEDIT+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 if test -n "$NMEDIT"; then 8202 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8203else 8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8205for as_dir in $PATH 8206do 8207 IFS=$as_save_IFS 8208 test -z "$as_dir" && as_dir=. 8209 for ac_exec_ext in '' $ac_executable_extensions; do 8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8211 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8213 break 2 8214 fi 8215done 8216 done 8217IFS=$as_save_IFS 8218 8219fi 8220fi 8221NMEDIT=$ac_cv_prog_NMEDIT 8222if test -n "$NMEDIT"; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8224$as_echo "$NMEDIT" >&6; } 8225else 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8227$as_echo "no" >&6; } 8228fi 8229 8230 8231fi 8232if test -z "$ac_cv_prog_NMEDIT"; then 8233 ac_ct_NMEDIT=$NMEDIT 8234 # Extract the first word of "nmedit", so it can be a program name with args. 8235set dummy nmedit; ac_word=$2 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8237$as_echo_n "checking for $ac_word... " >&6; } 8238if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 if test -n "$ac_ct_NMEDIT"; then 8242 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8243else 8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245for as_dir in $PATH 8246do 8247 IFS=$as_save_IFS 8248 test -z "$as_dir" && as_dir=. 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8251 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255done 8256 done 8257IFS=$as_save_IFS 8258 8259fi 8260fi 8261ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8262if test -n "$ac_ct_NMEDIT"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8264$as_echo "$ac_ct_NMEDIT" >&6; } 8265else 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267$as_echo "no" >&6; } 8268fi 8269 8270 if test "x$ac_ct_NMEDIT" = x; then 8271 NMEDIT=":" 8272 else 8273 case $cross_compiling:$ac_tool_warned in 8274yes:) 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8277ac_tool_warned=yes ;; 8278esac 8279 NMEDIT=$ac_ct_NMEDIT 8280 fi 8281else 8282 NMEDIT="$ac_cv_prog_NMEDIT" 8283fi 8284 8285 if test -n "$ac_tool_prefix"; then 8286 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8287set dummy ${ac_tool_prefix}lipo; ac_word=$2 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8289$as_echo_n "checking for $ac_word... " >&6; } 8290if ${ac_cv_prog_LIPO+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 if test -n "$LIPO"; then 8294 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8295else 8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297for as_dir in $PATH 8298do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8303 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307done 8308 done 8309IFS=$as_save_IFS 8310 8311fi 8312fi 8313LIPO=$ac_cv_prog_LIPO 8314if test -n "$LIPO"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8316$as_echo "$LIPO" >&6; } 8317else 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8319$as_echo "no" >&6; } 8320fi 8321 8322 8323fi 8324if test -z "$ac_cv_prog_LIPO"; then 8325 ac_ct_LIPO=$LIPO 8326 # Extract the first word of "lipo", so it can be a program name with args. 8327set dummy lipo; ac_word=$2 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8329$as_echo_n "checking for $ac_word... " >&6; } 8330if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 if test -n "$ac_ct_LIPO"; then 8334 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8335else 8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8337for as_dir in $PATH 8338do 8339 IFS=$as_save_IFS 8340 test -z "$as_dir" && as_dir=. 8341 for ac_exec_ext in '' $ac_executable_extensions; do 8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8343 ac_cv_prog_ac_ct_LIPO="lipo" 8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8345 break 2 8346 fi 8347done 8348 done 8349IFS=$as_save_IFS 8350 8351fi 8352fi 8353ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8354if test -n "$ac_ct_LIPO"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8356$as_echo "$ac_ct_LIPO" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 if test "x$ac_ct_LIPO" = x; then 8363 LIPO=":" 8364 else 8365 case $cross_compiling:$ac_tool_warned in 8366yes:) 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8369ac_tool_warned=yes ;; 8370esac 8371 LIPO=$ac_ct_LIPO 8372 fi 8373else 8374 LIPO="$ac_cv_prog_LIPO" 8375fi 8376 8377 if test -n "$ac_tool_prefix"; then 8378 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8379set dummy ${ac_tool_prefix}otool; ac_word=$2 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381$as_echo_n "checking for $ac_word... " >&6; } 8382if ${ac_cv_prog_OTOOL+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 if test -n "$OTOOL"; then 8386 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8387else 8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8389for as_dir in $PATH 8390do 8391 IFS=$as_save_IFS 8392 test -z "$as_dir" && as_dir=. 8393 for ac_exec_ext in '' $ac_executable_extensions; do 8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8397 break 2 8398 fi 8399done 8400 done 8401IFS=$as_save_IFS 8402 8403fi 8404fi 8405OTOOL=$ac_cv_prog_OTOOL 8406if test -n "$OTOOL"; then 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8408$as_echo "$OTOOL" >&6; } 8409else 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8411$as_echo "no" >&6; } 8412fi 8413 8414 8415fi 8416if test -z "$ac_cv_prog_OTOOL"; then 8417 ac_ct_OTOOL=$OTOOL 8418 # Extract the first word of "otool", so it can be a program name with args. 8419set dummy otool; ac_word=$2 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8421$as_echo_n "checking for $ac_word... " >&6; } 8422if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test -n "$ac_ct_OTOOL"; then 8426 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8427else 8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8429for as_dir in $PATH 8430do 8431 IFS=$as_save_IFS 8432 test -z "$as_dir" && as_dir=. 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_ac_ct_OTOOL="otool" 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439done 8440 done 8441IFS=$as_save_IFS 8442 8443fi 8444fi 8445ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8446if test -n "$ac_ct_OTOOL"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8448$as_echo "$ac_ct_OTOOL" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453 8454 if test "x$ac_ct_OTOOL" = x; then 8455 OTOOL=":" 8456 else 8457 case $cross_compiling:$ac_tool_warned in 8458yes:) 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8461ac_tool_warned=yes ;; 8462esac 8463 OTOOL=$ac_ct_OTOOL 8464 fi 8465else 8466 OTOOL="$ac_cv_prog_OTOOL" 8467fi 8468 8469 if test -n "$ac_tool_prefix"; then 8470 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8471set dummy ${ac_tool_prefix}otool64; ac_word=$2 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8473$as_echo_n "checking for $ac_word... " >&6; } 8474if ${ac_cv_prog_OTOOL64+:} false; then : 8475 $as_echo_n "(cached) " >&6 8476else 8477 if test -n "$OTOOL64"; then 8478 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8479else 8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8481for as_dir in $PATH 8482do 8483 IFS=$as_save_IFS 8484 test -z "$as_dir" && as_dir=. 8485 for ac_exec_ext in '' $ac_executable_extensions; do 8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8487 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8489 break 2 8490 fi 8491done 8492 done 8493IFS=$as_save_IFS 8494 8495fi 8496fi 8497OTOOL64=$ac_cv_prog_OTOOL64 8498if test -n "$OTOOL64"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8500$as_echo "$OTOOL64" >&6; } 8501else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503$as_echo "no" >&6; } 8504fi 8505 8506 8507fi 8508if test -z "$ac_cv_prog_OTOOL64"; then 8509 ac_ct_OTOOL64=$OTOOL64 8510 # Extract the first word of "otool64", so it can be a program name with args. 8511set dummy otool64; ac_word=$2 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8513$as_echo_n "checking for $ac_word... " >&6; } 8514if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 if test -n "$ac_ct_OTOOL64"; then 8518 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8519else 8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8521for as_dir in $PATH 8522do 8523 IFS=$as_save_IFS 8524 test -z "$as_dir" && as_dir=. 8525 for ac_exec_ext in '' $ac_executable_extensions; do 8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8527 ac_cv_prog_ac_ct_OTOOL64="otool64" 8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8529 break 2 8530 fi 8531done 8532 done 8533IFS=$as_save_IFS 8534 8535fi 8536fi 8537ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8538if test -n "$ac_ct_OTOOL64"; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8540$as_echo "$ac_ct_OTOOL64" >&6; } 8541else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8543$as_echo "no" >&6; } 8544fi 8545 8546 if test "x$ac_ct_OTOOL64" = x; then 8547 OTOOL64=":" 8548 else 8549 case $cross_compiling:$ac_tool_warned in 8550yes:) 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8553ac_tool_warned=yes ;; 8554esac 8555 OTOOL64=$ac_ct_OTOOL64 8556 fi 8557else 8558 OTOOL64="$ac_cv_prog_OTOOL64" 8559fi 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8588$as_echo_n "checking for -single_module linker flag... " >&6; } 8589if ${lt_cv_apple_cc_single_mod+:} false; then : 8590 $as_echo_n "(cached) " >&6 8591else 8592 lt_cv_apple_cc_single_mod=no 8593 if test -z "$LT_MULTI_MODULE"; then 8594 # By default we will add the -single_module flag. You can override 8595 # by either setting the environment variable LT_MULTI_MODULE 8596 # non-empty at configure time, or by adding -multi_module to the 8597 # link flags. 8598 rm -rf libconftest.dylib* 8599 echo "int foo(void){return 1;}" > conftest.c 8600 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8601-dynamiclib -Wl,-single_module conftest.c" >&5 8602 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8603 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8604 _lt_result=$? 8605 # If there is a non-empty error log, and "single_module" 8606 # appears in it, assume the flag caused a linker warning 8607 if test -s conftest.err && $GREP single_module conftest.err; then 8608 cat conftest.err >&5 8609 # Otherwise, if the output was created with a 0 exit code from 8610 # the compiler, it worked. 8611 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8612 lt_cv_apple_cc_single_mod=yes 8613 else 8614 cat conftest.err >&5 8615 fi 8616 rm -rf libconftest.dylib* 8617 rm -f conftest.* 8618 fi 8619fi 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8621$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8622 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8624$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8625if ${lt_cv_ld_exported_symbols_list+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 lt_cv_ld_exported_symbols_list=no 8629 save_LDFLAGS=$LDFLAGS 8630 echo "_main" > conftest.sym 8631 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8633/* end confdefs.h. */ 8634 8635int 8636main () 8637{ 8638 8639 ; 8640 return 0; 8641} 8642_ACEOF 8643if ac_fn_c_try_link "$LINENO"; then : 8644 lt_cv_ld_exported_symbols_list=yes 8645else 8646 lt_cv_ld_exported_symbols_list=no 8647fi 8648rm -f core conftest.err conftest.$ac_objext \ 8649 conftest$ac_exeext conftest.$ac_ext 8650 LDFLAGS=$save_LDFLAGS 8651 8652fi 8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8654$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8655 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8657$as_echo_n "checking for -force_load linker flag... " >&6; } 8658if ${lt_cv_ld_force_load+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 lt_cv_ld_force_load=no 8662 cat > conftest.c << _LT_EOF 8663int forced_loaded() { return 2;} 8664_LT_EOF 8665 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8666 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8667 echo "$AR cru libconftest.a conftest.o" >&5 8668 $AR cru libconftest.a conftest.o 2>&5 8669 echo "$RANLIB libconftest.a" >&5 8670 $RANLIB libconftest.a 2>&5 8671 cat > conftest.c << _LT_EOF 8672int main() { return 0;} 8673_LT_EOF 8674 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8675 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8676 _lt_result=$? 8677 if test -s conftest.err && $GREP force_load conftest.err; then 8678 cat conftest.err >&5 8679 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8680 lt_cv_ld_force_load=yes 8681 else 8682 cat conftest.err >&5 8683 fi 8684 rm -f conftest.err libconftest.a conftest conftest.c 8685 rm -rf conftest.dSYM 8686 8687fi 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8689$as_echo "$lt_cv_ld_force_load" >&6; } 8690 case $host_os in 8691 rhapsody* | darwin1.[012]) 8692 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8693 darwin1.*) 8694 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8695 darwin*) # darwin 5.x on 8696 # if running on 10.5 or later, the deployment target defaults 8697 # to the OS version, if on x86, and 10.4, the deployment 8698 # target defaults to 10.4. Don't you love it? 8699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8700 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8701 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8702 10.[012][,.]*) 8703 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8704 10.*) 8705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8706 esac 8707 ;; 8708 esac 8709 if test yes = "$lt_cv_apple_cc_single_mod"; then 8710 _lt_dar_single_mod='$single_module' 8711 fi 8712 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8713 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8714 else 8715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8716 fi 8717 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8718 _lt_dsymutil='~$DSYMUTIL $lib || :' 8719 else 8720 _lt_dsymutil= 8721 fi 8722 ;; 8723 esac 8724 8725# func_munge_path_list VARIABLE PATH 8726# ----------------------------------- 8727# VARIABLE is name of variable containing _space_ separated list of 8728# directories to be munged by the contents of PATH, which is string 8729# having a format: 8730# "DIR[:DIR]:" 8731# string "DIR[ DIR]" will be prepended to VARIABLE 8732# ":DIR[:DIR]" 8733# string "DIR[ DIR]" will be appended to VARIABLE 8734# "DIRP[:DIRP]::[DIRA:]DIRA" 8735# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8736# "DIRA[ DIRA]" will be appended to VARIABLE 8737# "DIR[:DIR]" 8738# VARIABLE will be replaced by "DIR[ DIR]" 8739func_munge_path_list () 8740{ 8741 case x$2 in 8742 x) 8743 ;; 8744 *:) 8745 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8746 ;; 8747 x:*) 8748 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8749 ;; 8750 *::*) 8751 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8752 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8753 ;; 8754 *) 8755 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8756 ;; 8757 esac 8758} 8759 8760for ac_header in dlfcn.h 8761do : 8762 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8763" 8764if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8765 cat >>confdefs.h <<_ACEOF 8766#define HAVE_DLFCN_H 1 8767_ACEOF 8768 8769fi 8770 8771done 8772 8773 8774 8775 8776func_stripname_cnf () 8777{ 8778 case $2 in 8779 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8780 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8781 esac 8782} # func_stripname_cnf 8783 8784 8785 8786 8787 8788# Set options 8789 8790 8791 8792 enable_dlopen=no 8793 8794 8795 enable_win32_dll=no 8796 8797 8798 # Check whether --enable-shared was given. 8799if test "${enable_shared+set}" = set; then : 8800 enableval=$enable_shared; p=${PACKAGE-default} 8801 case $enableval in 8802 yes) enable_shared=yes ;; 8803 no) enable_shared=no ;; 8804 *) 8805 enable_shared=no 8806 # Look at the argument we got. We use all the common list separators. 8807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8808 for pkg in $enableval; do 8809 IFS=$lt_save_ifs 8810 if test "X$pkg" = "X$p"; then 8811 enable_shared=yes 8812 fi 8813 done 8814 IFS=$lt_save_ifs 8815 ;; 8816 esac 8817else 8818 enable_shared=yes 8819fi 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 # Check whether --enable-static was given. 8830if test "${enable_static+set}" = set; then : 8831 enableval=$enable_static; p=${PACKAGE-default} 8832 case $enableval in 8833 yes) enable_static=yes ;; 8834 no) enable_static=no ;; 8835 *) 8836 enable_static=no 8837 # Look at the argument we got. We use all the common list separators. 8838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8839 for pkg in $enableval; do 8840 IFS=$lt_save_ifs 8841 if test "X$pkg" = "X$p"; then 8842 enable_static=yes 8843 fi 8844 done 8845 IFS=$lt_save_ifs 8846 ;; 8847 esac 8848else 8849 enable_static=yes 8850fi 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861# Check whether --with-pic was given. 8862if test "${with_pic+set}" = set; then : 8863 withval=$with_pic; lt_p=${PACKAGE-default} 8864 case $withval in 8865 yes|no) pic_mode=$withval ;; 8866 *) 8867 pic_mode=default 8868 # Look at the argument we got. We use all the common list separators. 8869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8870 for lt_pkg in $withval; do 8871 IFS=$lt_save_ifs 8872 if test "X$lt_pkg" = "X$lt_p"; then 8873 pic_mode=yes 8874 fi 8875 done 8876 IFS=$lt_save_ifs 8877 ;; 8878 esac 8879else 8880 pic_mode=default 8881fi 8882 8883 8884 8885 8886 8887 8888 8889 8890 # Check whether --enable-fast-install was given. 8891if test "${enable_fast_install+set}" = set; then : 8892 enableval=$enable_fast_install; p=${PACKAGE-default} 8893 case $enableval in 8894 yes) enable_fast_install=yes ;; 8895 no) enable_fast_install=no ;; 8896 *) 8897 enable_fast_install=no 8898 # Look at the argument we got. We use all the common list separators. 8899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8900 for pkg in $enableval; do 8901 IFS=$lt_save_ifs 8902 if test "X$pkg" = "X$p"; then 8903 enable_fast_install=yes 8904 fi 8905 done 8906 IFS=$lt_save_ifs 8907 ;; 8908 esac 8909else 8910 enable_fast_install=yes 8911fi 8912 8913 8914 8915 8916 8917 8918 8919 8920 shared_archive_member_spec= 8921case $host,$enable_shared in 8922power*-*-aix[5-9]*,yes) 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8924$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8925 8926# Check whether --with-aix-soname was given. 8927if test "${with_aix_soname+set}" = set; then : 8928 withval=$with_aix_soname; case $withval in 8929 aix|svr4|both) 8930 ;; 8931 *) 8932 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8933 ;; 8934 esac 8935 lt_cv_with_aix_soname=$with_aix_soname 8936else 8937 if ${lt_cv_with_aix_soname+:} false; then : 8938 $as_echo_n "(cached) " >&6 8939else 8940 lt_cv_with_aix_soname=aix 8941fi 8942 8943 with_aix_soname=$lt_cv_with_aix_soname 8944fi 8945 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8947$as_echo "$with_aix_soname" >&6; } 8948 if test aix != "$with_aix_soname"; then 8949 # For the AIX way of multilib, we name the shared archive member 8950 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8951 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8952 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8953 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8954 if test 64 = "${OBJECT_MODE-32}"; then 8955 shared_archive_member_spec=shr_64 8956 else 8957 shared_archive_member_spec=shr 8958 fi 8959 fi 8960 ;; 8961*) 8962 with_aix_soname=aix 8963 ;; 8964esac 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975# This can be used to rebuild libtool when needed 8976LIBTOOL_DEPS=$ltmain 8977 8978# Always use our own libtool. 8979LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010test -z "$LN_S" && LN_S="ln -s" 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025if test -n "${ZSH_VERSION+set}"; then 9026 setopt NO_GLOB_SUBST 9027fi 9028 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9030$as_echo_n "checking for objdir... " >&6; } 9031if ${lt_cv_objdir+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 rm -f .libs 2>/dev/null 9035mkdir .libs 2>/dev/null 9036if test -d .libs; then 9037 lt_cv_objdir=.libs 9038else 9039 # MS-DOS does not allow filenames that begin with a dot. 9040 lt_cv_objdir=_libs 9041fi 9042rmdir .libs 2>/dev/null 9043fi 9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9045$as_echo "$lt_cv_objdir" >&6; } 9046objdir=$lt_cv_objdir 9047 9048 9049 9050 9051 9052cat >>confdefs.h <<_ACEOF 9053#define LT_OBJDIR "$lt_cv_objdir/" 9054_ACEOF 9055 9056 9057 9058 9059case $host_os in 9060aix3*) 9061 # AIX sometimes has problems with the GCC collect2 program. For some 9062 # reason, if we set the COLLECT_NAMES environment variable, the problems 9063 # vanish in a puff of smoke. 9064 if test set != "${COLLECT_NAMES+set}"; then 9065 COLLECT_NAMES= 9066 export COLLECT_NAMES 9067 fi 9068 ;; 9069esac 9070 9071# Global variables: 9072ofile=libtool 9073can_build_shared=yes 9074 9075# All known linkers require a '.a' archive for static linking (except MSVC, 9076# which needs '.lib'). 9077libext=a 9078 9079with_gnu_ld=$lt_cv_prog_gnu_ld 9080 9081old_CC=$CC 9082old_CFLAGS=$CFLAGS 9083 9084# Set sane defaults for various variables 9085test -z "$CC" && CC=cc 9086test -z "$LTCC" && LTCC=$CC 9087test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9088test -z "$LD" && LD=ld 9089test -z "$ac_objext" && ac_objext=o 9090 9091func_cc_basename $compiler 9092cc_basename=$func_cc_basename_result 9093 9094 9095# Only perform the check for file, if the check method requires it 9096test -z "$MAGIC_CMD" && MAGIC_CMD=file 9097case $deplibs_check_method in 9098file_magic*) 9099 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9101$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9102if ${lt_cv_path_MAGIC_CMD+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 case $MAGIC_CMD in 9106[\\/*] | ?:[\\/]*) 9107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9108 ;; 9109*) 9110 lt_save_MAGIC_CMD=$MAGIC_CMD 9111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9113 for ac_dir in $ac_dummy; do 9114 IFS=$lt_save_ifs 9115 test -z "$ac_dir" && ac_dir=. 9116 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9117 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9118 if test -n "$file_magic_test_file"; then 9119 case $deplibs_check_method in 9120 "file_magic "*) 9121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9124 $EGREP "$file_magic_regex" > /dev/null; then 9125 : 9126 else 9127 cat <<_LT_EOF 1>&2 9128 9129*** Warning: the command libtool uses to detect shared libraries, 9130*** $file_magic_cmd, produces output that libtool cannot recognize. 9131*** The result is that libtool may fail to recognize shared libraries 9132*** as such. This will affect the creation of libtool libraries that 9133*** depend on shared libraries, but programs linked with such libtool 9134*** libraries will work regardless of this problem. Nevertheless, you 9135*** may want to report the problem to your system manager and/or to 9136*** bug-libtool@gnu.org 9137 9138_LT_EOF 9139 fi ;; 9140 esac 9141 fi 9142 break 9143 fi 9144 done 9145 IFS=$lt_save_ifs 9146 MAGIC_CMD=$lt_save_MAGIC_CMD 9147 ;; 9148esac 9149fi 9150 9151MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9152if test -n "$MAGIC_CMD"; then 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9154$as_echo "$MAGIC_CMD" >&6; } 9155else 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9157$as_echo "no" >&6; } 9158fi 9159 9160 9161 9162 9163 9164if test -z "$lt_cv_path_MAGIC_CMD"; then 9165 if test -n "$ac_tool_prefix"; then 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9167$as_echo_n "checking for file... " >&6; } 9168if ${lt_cv_path_MAGIC_CMD+:} false; then : 9169 $as_echo_n "(cached) " >&6 9170else 9171 case $MAGIC_CMD in 9172[\\/*] | ?:[\\/]*) 9173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9174 ;; 9175*) 9176 lt_save_MAGIC_CMD=$MAGIC_CMD 9177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9179 for ac_dir in $ac_dummy; do 9180 IFS=$lt_save_ifs 9181 test -z "$ac_dir" && ac_dir=. 9182 if test -f "$ac_dir/file"; then 9183 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9184 if test -n "$file_magic_test_file"; then 9185 case $deplibs_check_method in 9186 "file_magic "*) 9187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9188 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9190 $EGREP "$file_magic_regex" > /dev/null; then 9191 : 9192 else 9193 cat <<_LT_EOF 1>&2 9194 9195*** Warning: the command libtool uses to detect shared libraries, 9196*** $file_magic_cmd, produces output that libtool cannot recognize. 9197*** The result is that libtool may fail to recognize shared libraries 9198*** as such. This will affect the creation of libtool libraries that 9199*** depend on shared libraries, but programs linked with such libtool 9200*** libraries will work regardless of this problem. Nevertheless, you 9201*** may want to report the problem to your system manager and/or to 9202*** bug-libtool@gnu.org 9203 9204_LT_EOF 9205 fi ;; 9206 esac 9207 fi 9208 break 9209 fi 9210 done 9211 IFS=$lt_save_ifs 9212 MAGIC_CMD=$lt_save_MAGIC_CMD 9213 ;; 9214esac 9215fi 9216 9217MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9218if test -n "$MAGIC_CMD"; then 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9220$as_echo "$MAGIC_CMD" >&6; } 9221else 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9223$as_echo "no" >&6; } 9224fi 9225 9226 9227 else 9228 MAGIC_CMD=: 9229 fi 9230fi 9231 9232 fi 9233 ;; 9234esac 9235 9236# Use C for the default configuration in the libtool script 9237 9238lt_save_CC=$CC 9239ac_ext=c 9240ac_cpp='$CPP $CPPFLAGS' 9241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9243ac_compiler_gnu=$ac_cv_c_compiler_gnu 9244 9245 9246# Source file extension for C test sources. 9247ac_ext=c 9248 9249# Object file extension for compiled C test sources. 9250objext=o 9251objext=$objext 9252 9253# Code to be used in simple compile tests 9254lt_simple_compile_test_code="int some_variable = 0;" 9255 9256# Code to be used in simple link tests 9257lt_simple_link_test_code='int main(){return(0);}' 9258 9259 9260 9261 9262 9263 9264 9265# If no C compiler was specified, use CC. 9266LTCC=${LTCC-"$CC"} 9267 9268# If no C compiler flags were specified, use CFLAGS. 9269LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9270 9271# Allow CC to be a program name with arguments. 9272compiler=$CC 9273 9274# Save the default compiler, since it gets overwritten when the other 9275# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9276compiler_DEFAULT=$CC 9277 9278# save warnings/boilerplate of simple test code 9279ac_outfile=conftest.$ac_objext 9280echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9282_lt_compiler_boilerplate=`cat conftest.err` 9283$RM conftest* 9284 9285ac_outfile=conftest.$ac_objext 9286echo "$lt_simple_link_test_code" >conftest.$ac_ext 9287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9288_lt_linker_boilerplate=`cat conftest.err` 9289$RM -r conftest* 9290 9291 9292## CAVEAT EMPTOR: 9293## There is no encapsulation within the following macros, do not change 9294## the running order or otherwise move them around unless you know exactly 9295## what you are doing... 9296if test -n "$compiler"; then 9297 9298lt_prog_compiler_no_builtin_flag= 9299 9300if test yes = "$GCC"; then 9301 case $cc_basename in 9302 nvcc*) 9303 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9304 *) 9305 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9306 esac 9307 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9309$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9310if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 lt_cv_prog_compiler_rtti_exceptions=no 9314 ac_outfile=conftest.$ac_objext 9315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9316 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9317 # Insert the option either (1) after the last *FLAGS variable, or 9318 # (2) before a word containing "conftest.", or (3) at the end. 9319 # Note that $ac_compile itself does not contain backslashes and begins 9320 # with a dollar sign (not a hyphen), so the echo should work correctly. 9321 # The option is referenced via a variable to avoid confusing sed. 9322 lt_compile=`echo "$ac_compile" | $SED \ 9323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9325 -e 's:$: $lt_compiler_flag:'` 9326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9327 (eval "$lt_compile" 2>conftest.err) 9328 ac_status=$? 9329 cat conftest.err >&5 9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9331 if (exit $ac_status) && test -s "$ac_outfile"; then 9332 # The compiler can only warn and ignore the option if not recognized 9333 # So say no if there are warnings other than the usual output. 9334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9337 lt_cv_prog_compiler_rtti_exceptions=yes 9338 fi 9339 fi 9340 $RM conftest* 9341 9342fi 9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9344$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9345 9346if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9348else 9349 : 9350fi 9351 9352fi 9353 9354 9355 9356 9357 9358 9359 lt_prog_compiler_wl= 9360lt_prog_compiler_pic= 9361lt_prog_compiler_static= 9362 9363 9364 if test yes = "$GCC"; then 9365 lt_prog_compiler_wl='-Wl,' 9366 lt_prog_compiler_static='-static' 9367 9368 case $host_os in 9369 aix*) 9370 # All AIX code is PIC. 9371 if test ia64 = "$host_cpu"; then 9372 # AIX 5 now supports IA64 processor 9373 lt_prog_compiler_static='-Bstatic' 9374 fi 9375 lt_prog_compiler_pic='-fPIC' 9376 ;; 9377 9378 amigaos*) 9379 case $host_cpu in 9380 powerpc) 9381 # see comment about AmigaOS4 .so support 9382 lt_prog_compiler_pic='-fPIC' 9383 ;; 9384 m68k) 9385 # FIXME: we need at least 68020 code to build shared libraries, but 9386 # adding the '-m68020' flag to GCC prevents building anything better, 9387 # like '-m68040'. 9388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9389 ;; 9390 esac 9391 ;; 9392 9393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9394 # PIC is the default for these OSes. 9395 ;; 9396 9397 mingw* | cygwin* | pw32* | os2* | cegcc*) 9398 # This hack is so that the source file can tell whether it is being 9399 # built for inclusion in a dll (and should export symbols for example). 9400 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9401 # (--disable-auto-import) libraries 9402 lt_prog_compiler_pic='-DDLL_EXPORT' 9403 case $host_os in 9404 os2*) 9405 lt_prog_compiler_static='$wl-static' 9406 ;; 9407 esac 9408 ;; 9409 9410 darwin* | rhapsody*) 9411 # PIC is the default on this platform 9412 # Common symbols not allowed in MH_DYLIB files 9413 lt_prog_compiler_pic='-fno-common' 9414 ;; 9415 9416 haiku*) 9417 # PIC is the default for Haiku. 9418 # The "-static" flag exists, but is broken. 9419 lt_prog_compiler_static= 9420 ;; 9421 9422 hpux*) 9423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9425 # sets the default TLS model and affects inlining. 9426 case $host_cpu in 9427 hppa*64*) 9428 # +Z the default 9429 ;; 9430 *) 9431 lt_prog_compiler_pic='-fPIC' 9432 ;; 9433 esac 9434 ;; 9435 9436 interix[3-9]*) 9437 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9438 # Instead, we relocate shared libraries at runtime. 9439 ;; 9440 9441 msdosdjgpp*) 9442 # Just because we use GCC doesn't mean we suddenly get shared libraries 9443 # on systems that don't support them. 9444 lt_prog_compiler_can_build_shared=no 9445 enable_shared=no 9446 ;; 9447 9448 *nto* | *qnx*) 9449 # QNX uses GNU C++, but need to define -shared option too, otherwise 9450 # it will coredump. 9451 lt_prog_compiler_pic='-fPIC -shared' 9452 ;; 9453 9454 sysv4*MP*) 9455 if test -d /usr/nec; then 9456 lt_prog_compiler_pic=-Kconform_pic 9457 fi 9458 ;; 9459 9460 *) 9461 lt_prog_compiler_pic='-fPIC' 9462 ;; 9463 esac 9464 9465 case $cc_basename in 9466 nvcc*) # Cuda Compiler Driver 2.2 9467 lt_prog_compiler_wl='-Xlinker ' 9468 if test -n "$lt_prog_compiler_pic"; then 9469 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9470 fi 9471 ;; 9472 esac 9473 else 9474 # PORTME Check for flag to pass linker flags through the system compiler. 9475 case $host_os in 9476 aix*) 9477 lt_prog_compiler_wl='-Wl,' 9478 if test ia64 = "$host_cpu"; then 9479 # AIX 5 now supports IA64 processor 9480 lt_prog_compiler_static='-Bstatic' 9481 else 9482 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9483 fi 9484 ;; 9485 9486 darwin* | rhapsody*) 9487 # PIC is the default on this platform 9488 # Common symbols not allowed in MH_DYLIB files 9489 lt_prog_compiler_pic='-fno-common' 9490 case $cc_basename in 9491 nagfor*) 9492 # NAG Fortran compiler 9493 lt_prog_compiler_wl='-Wl,-Wl,,' 9494 lt_prog_compiler_pic='-PIC' 9495 lt_prog_compiler_static='-Bstatic' 9496 ;; 9497 esac 9498 ;; 9499 9500 mingw* | cygwin* | pw32* | os2* | cegcc*) 9501 # This hack is so that the source file can tell whether it is being 9502 # built for inclusion in a dll (and should export symbols for example). 9503 lt_prog_compiler_pic='-DDLL_EXPORT' 9504 case $host_os in 9505 os2*) 9506 lt_prog_compiler_static='$wl-static' 9507 ;; 9508 esac 9509 ;; 9510 9511 hpux9* | hpux10* | hpux11*) 9512 lt_prog_compiler_wl='-Wl,' 9513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9514 # not for PA HP-UX. 9515 case $host_cpu in 9516 hppa*64*|ia64*) 9517 # +Z the default 9518 ;; 9519 *) 9520 lt_prog_compiler_pic='+Z' 9521 ;; 9522 esac 9523 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9524 lt_prog_compiler_static='$wl-a ${wl}archive' 9525 ;; 9526 9527 irix5* | irix6* | nonstopux*) 9528 lt_prog_compiler_wl='-Wl,' 9529 # PIC (with -KPIC) is the default. 9530 lt_prog_compiler_static='-non_shared' 9531 ;; 9532 9533 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9534 case $cc_basename in 9535 # old Intel for x86_64, which still supported -KPIC. 9536 ecc*) 9537 lt_prog_compiler_wl='-Wl,' 9538 lt_prog_compiler_pic='-KPIC' 9539 lt_prog_compiler_static='-static' 9540 ;; 9541 # icc used to be incompatible with GCC. 9542 # ICC 10 doesn't accept -KPIC any more. 9543 icc* | ifort*) 9544 lt_prog_compiler_wl='-Wl,' 9545 lt_prog_compiler_pic='-fPIC' 9546 lt_prog_compiler_static='-static' 9547 ;; 9548 # Lahey Fortran 8.1. 9549 lf95*) 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_pic='--shared' 9552 lt_prog_compiler_static='--static' 9553 ;; 9554 nagfor*) 9555 # NAG Fortran compiler 9556 lt_prog_compiler_wl='-Wl,-Wl,,' 9557 lt_prog_compiler_pic='-PIC' 9558 lt_prog_compiler_static='-Bstatic' 9559 ;; 9560 tcc*) 9561 # Fabrice Bellard et al's Tiny C Compiler 9562 lt_prog_compiler_wl='-Wl,' 9563 lt_prog_compiler_pic='-fPIC' 9564 lt_prog_compiler_static='-static' 9565 ;; 9566 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9567 # Portland Group compilers (*not* the Pentium gcc compiler, 9568 # which looks to be a dead project) 9569 lt_prog_compiler_wl='-Wl,' 9570 lt_prog_compiler_pic='-fpic' 9571 lt_prog_compiler_static='-Bstatic' 9572 ;; 9573 ccc*) 9574 lt_prog_compiler_wl='-Wl,' 9575 # All Alpha code is PIC. 9576 lt_prog_compiler_static='-non_shared' 9577 ;; 9578 xl* | bgxl* | bgf* | mpixl*) 9579 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9580 lt_prog_compiler_wl='-Wl,' 9581 lt_prog_compiler_pic='-qpic' 9582 lt_prog_compiler_static='-qstaticlink' 9583 ;; 9584 *) 9585 case `$CC -V 2>&1 | sed 5q` in 9586 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9587 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9588 lt_prog_compiler_pic='-KPIC' 9589 lt_prog_compiler_static='-Bstatic' 9590 lt_prog_compiler_wl='' 9591 ;; 9592 *Sun\ F* | *Sun*Fortran*) 9593 lt_prog_compiler_pic='-KPIC' 9594 lt_prog_compiler_static='-Bstatic' 9595 lt_prog_compiler_wl='-Qoption ld ' 9596 ;; 9597 *Sun\ C*) 9598 # Sun C 5.9 9599 lt_prog_compiler_pic='-KPIC' 9600 lt_prog_compiler_static='-Bstatic' 9601 lt_prog_compiler_wl='-Wl,' 9602 ;; 9603 *Intel*\ [CF]*Compiler*) 9604 lt_prog_compiler_wl='-Wl,' 9605 lt_prog_compiler_pic='-fPIC' 9606 lt_prog_compiler_static='-static' 9607 ;; 9608 *Portland\ Group*) 9609 lt_prog_compiler_wl='-Wl,' 9610 lt_prog_compiler_pic='-fpic' 9611 lt_prog_compiler_static='-Bstatic' 9612 ;; 9613 esac 9614 ;; 9615 esac 9616 ;; 9617 9618 newsos6) 9619 lt_prog_compiler_pic='-KPIC' 9620 lt_prog_compiler_static='-Bstatic' 9621 ;; 9622 9623 *nto* | *qnx*) 9624 # QNX uses GNU C++, but need to define -shared option too, otherwise 9625 # it will coredump. 9626 lt_prog_compiler_pic='-fPIC -shared' 9627 ;; 9628 9629 osf3* | osf4* | osf5*) 9630 lt_prog_compiler_wl='-Wl,' 9631 # All OSF/1 code is PIC. 9632 lt_prog_compiler_static='-non_shared' 9633 ;; 9634 9635 rdos*) 9636 lt_prog_compiler_static='-non_shared' 9637 ;; 9638 9639 solaris*) 9640 lt_prog_compiler_pic='-KPIC' 9641 lt_prog_compiler_static='-Bstatic' 9642 case $cc_basename in 9643 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9644 lt_prog_compiler_wl='-Qoption ld ';; 9645 *) 9646 lt_prog_compiler_wl='-Wl,';; 9647 esac 9648 ;; 9649 9650 sunos4*) 9651 lt_prog_compiler_wl='-Qoption ld ' 9652 lt_prog_compiler_pic='-PIC' 9653 lt_prog_compiler_static='-Bstatic' 9654 ;; 9655 9656 sysv4 | sysv4.2uw2* | sysv4.3*) 9657 lt_prog_compiler_wl='-Wl,' 9658 lt_prog_compiler_pic='-KPIC' 9659 lt_prog_compiler_static='-Bstatic' 9660 ;; 9661 9662 sysv4*MP*) 9663 if test -d /usr/nec; then 9664 lt_prog_compiler_pic='-Kconform_pic' 9665 lt_prog_compiler_static='-Bstatic' 9666 fi 9667 ;; 9668 9669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9670 lt_prog_compiler_wl='-Wl,' 9671 lt_prog_compiler_pic='-KPIC' 9672 lt_prog_compiler_static='-Bstatic' 9673 ;; 9674 9675 unicos*) 9676 lt_prog_compiler_wl='-Wl,' 9677 lt_prog_compiler_can_build_shared=no 9678 ;; 9679 9680 uts4*) 9681 lt_prog_compiler_pic='-pic' 9682 lt_prog_compiler_static='-Bstatic' 9683 ;; 9684 9685 *) 9686 lt_prog_compiler_can_build_shared=no 9687 ;; 9688 esac 9689 fi 9690 9691case $host_os in 9692 # For platforms that do not support PIC, -DPIC is meaningless: 9693 *djgpp*) 9694 lt_prog_compiler_pic= 9695 ;; 9696 *) 9697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9698 ;; 9699esac 9700 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9702$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9703if ${lt_cv_prog_compiler_pic+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705else 9706 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9707fi 9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9709$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9710lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9711 9712# 9713# Check to make sure the PIC flag actually works. 9714# 9715if test -n "$lt_prog_compiler_pic"; then 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9717$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9718if ${lt_cv_prog_compiler_pic_works+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 lt_cv_prog_compiler_pic_works=no 9722 ac_outfile=conftest.$ac_objext 9723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9725 # Insert the option either (1) after the last *FLAGS variable, or 9726 # (2) before a word containing "conftest.", or (3) at the end. 9727 # Note that $ac_compile itself does not contain backslashes and begins 9728 # with a dollar sign (not a hyphen), so the echo should work correctly. 9729 # The option is referenced via a variable to avoid confusing sed. 9730 lt_compile=`echo "$ac_compile" | $SED \ 9731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9733 -e 's:$: $lt_compiler_flag:'` 9734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9735 (eval "$lt_compile" 2>conftest.err) 9736 ac_status=$? 9737 cat conftest.err >&5 9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9739 if (exit $ac_status) && test -s "$ac_outfile"; then 9740 # The compiler can only warn and ignore the option if not recognized 9741 # So say no if there are warnings other than the usual output. 9742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9745 lt_cv_prog_compiler_pic_works=yes 9746 fi 9747 fi 9748 $RM conftest* 9749 9750fi 9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9752$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9753 9754if test yes = "$lt_cv_prog_compiler_pic_works"; then 9755 case $lt_prog_compiler_pic in 9756 "" | " "*) ;; 9757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9758 esac 9759else 9760 lt_prog_compiler_pic= 9761 lt_prog_compiler_can_build_shared=no 9762fi 9763 9764fi 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776# 9777# Check to make sure the static flag actually works. 9778# 9779wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9781$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9782if ${lt_cv_prog_compiler_static_works+:} false; then : 9783 $as_echo_n "(cached) " >&6 9784else 9785 lt_cv_prog_compiler_static_works=no 9786 save_LDFLAGS=$LDFLAGS 9787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9788 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9790 # The linker can only warn and ignore the option if not recognized 9791 # So say no if there are warnings 9792 if test -s conftest.err; then 9793 # Append any errors to the config.log. 9794 cat conftest.err 1>&5 9795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9797 if diff conftest.exp conftest.er2 >/dev/null; then 9798 lt_cv_prog_compiler_static_works=yes 9799 fi 9800 else 9801 lt_cv_prog_compiler_static_works=yes 9802 fi 9803 fi 9804 $RM -r conftest* 9805 LDFLAGS=$save_LDFLAGS 9806 9807fi 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9809$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9810 9811if test yes = "$lt_cv_prog_compiler_static_works"; then 9812 : 9813else 9814 lt_prog_compiler_static= 9815fi 9816 9817 9818 9819 9820 9821 9822 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9825if ${lt_cv_prog_compiler_c_o+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 lt_cv_prog_compiler_c_o=no 9829 $RM -r conftest 2>/dev/null 9830 mkdir conftest 9831 cd conftest 9832 mkdir out 9833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9834 9835 lt_compiler_flag="-o out/conftest2.$ac_objext" 9836 # Insert the option either (1) after the last *FLAGS variable, or 9837 # (2) before a word containing "conftest.", or (3) at the end. 9838 # Note that $ac_compile itself does not contain backslashes and begins 9839 # with a dollar sign (not a hyphen), so the echo should work correctly. 9840 lt_compile=`echo "$ac_compile" | $SED \ 9841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9843 -e 's:$: $lt_compiler_flag:'` 9844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9845 (eval "$lt_compile" 2>out/conftest.err) 9846 ac_status=$? 9847 cat out/conftest.err >&5 9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9850 then 9851 # The compiler can only warn and ignore the option if not recognized 9852 # So say no if there are warnings 9853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9856 lt_cv_prog_compiler_c_o=yes 9857 fi 9858 fi 9859 chmod u+w . 2>&5 9860 $RM conftest* 9861 # SGI C++ compiler will create directory out/ii_files/ for 9862 # template instantiation 9863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9864 $RM out/* && rmdir out 9865 cd .. 9866 $RM -r conftest 9867 $RM conftest* 9868 9869fi 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9871$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9872 9873 9874 9875 9876 9877 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9879$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9880if ${lt_cv_prog_compiler_c_o+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 lt_cv_prog_compiler_c_o=no 9884 $RM -r conftest 2>/dev/null 9885 mkdir conftest 9886 cd conftest 9887 mkdir out 9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9889 9890 lt_compiler_flag="-o out/conftest2.$ac_objext" 9891 # Insert the option either (1) after the last *FLAGS variable, or 9892 # (2) before a word containing "conftest.", or (3) at the end. 9893 # Note that $ac_compile itself does not contain backslashes and begins 9894 # with a dollar sign (not a hyphen), so the echo should work correctly. 9895 lt_compile=`echo "$ac_compile" | $SED \ 9896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9898 -e 's:$: $lt_compiler_flag:'` 9899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9900 (eval "$lt_compile" 2>out/conftest.err) 9901 ac_status=$? 9902 cat out/conftest.err >&5 9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9904 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9905 then 9906 # The compiler can only warn and ignore the option if not recognized 9907 # So say no if there are warnings 9908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9911 lt_cv_prog_compiler_c_o=yes 9912 fi 9913 fi 9914 chmod u+w . 2>&5 9915 $RM conftest* 9916 # SGI C++ compiler will create directory out/ii_files/ for 9917 # template instantiation 9918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9919 $RM out/* && rmdir out 9920 cd .. 9921 $RM -r conftest 9922 $RM conftest* 9923 9924fi 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9926$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9927 9928 9929 9930 9931hard_links=nottested 9932if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9933 # do not overwrite the value of need_locks provided by the user 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9935$as_echo_n "checking if we can lock with hard links... " >&6; } 9936 hard_links=yes 9937 $RM conftest* 9938 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9939 touch conftest.a 9940 ln conftest.a conftest.b 2>&5 || hard_links=no 9941 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9943$as_echo "$hard_links" >&6; } 9944 if test no = "$hard_links"; then 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9946$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9947 need_locks=warn 9948 fi 9949else 9950 need_locks=no 9951fi 9952 9953 9954 9955 9956 9957 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9959$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9960 9961 runpath_var= 9962 allow_undefined_flag= 9963 always_export_symbols=no 9964 archive_cmds= 9965 archive_expsym_cmds= 9966 compiler_needs_object=no 9967 enable_shared_with_static_runtimes=no 9968 export_dynamic_flag_spec= 9969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9970 hardcode_automatic=no 9971 hardcode_direct=no 9972 hardcode_direct_absolute=no 9973 hardcode_libdir_flag_spec= 9974 hardcode_libdir_separator= 9975 hardcode_minus_L=no 9976 hardcode_shlibpath_var=unsupported 9977 inherit_rpath=no 9978 link_all_deplibs=unknown 9979 module_cmds= 9980 module_expsym_cmds= 9981 old_archive_from_new_cmds= 9982 old_archive_from_expsyms_cmds= 9983 thread_safe_flag_spec= 9984 whole_archive_flag_spec= 9985 # include_expsyms should be a list of space-separated symbols to be *always* 9986 # included in the symbol list 9987 include_expsyms= 9988 # exclude_expsyms can be an extended regexp of symbols to exclude 9989 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9990 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9991 # as well as any symbol that contains 'd'. 9992 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9994 # platforms (ab)use it in PIC code, but their linkers get confused if 9995 # the symbol is explicitly referenced. Since portable code cannot 9996 # rely on this symbol name, it's probably fine to never include it in 9997 # preloaded symbol tables. 9998 # Exclude shared library initialization/finalization symbols. 9999 extract_expsyms_cmds= 10000 10001 case $host_os in 10002 cygwin* | mingw* | pw32* | cegcc*) 10003 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10004 # When not using gcc, we currently assume that we are using 10005 # Microsoft Visual C++. 10006 if test yes != "$GCC"; then 10007 with_gnu_ld=no 10008 fi 10009 ;; 10010 interix*) 10011 # we just hope/assume this is gcc and not c89 (= MSVC++) 10012 with_gnu_ld=yes 10013 ;; 10014 openbsd* | bitrig*) 10015 with_gnu_ld=no 10016 ;; 10017 esac 10018 10019 ld_shlibs=yes 10020 10021 # On some targets, GNU ld is compatible enough with the native linker 10022 # that we're better off using the native interface for both. 10023 lt_use_gnu_ld_interface=no 10024 if test yes = "$with_gnu_ld"; then 10025 case $host_os in 10026 aix*) 10027 # The AIX port of GNU ld has always aspired to compatibility 10028 # with the native linker. However, as the warning in the GNU ld 10029 # block says, versions before 2.19.5* couldn't really create working 10030 # shared libraries, regardless of the interface used. 10031 case `$LD -v 2>&1` in 10032 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10033 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10034 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10035 *) 10036 lt_use_gnu_ld_interface=yes 10037 ;; 10038 esac 10039 ;; 10040 *) 10041 lt_use_gnu_ld_interface=yes 10042 ;; 10043 esac 10044 fi 10045 10046 if test yes = "$lt_use_gnu_ld_interface"; then 10047 # If archive_cmds runs LD, not CC, wlarc should be empty 10048 wlarc='$wl' 10049 10050 # Set some defaults for GNU ld with shared library support. These 10051 # are reset later if shared libraries are not supported. Putting them 10052 # here allows them to be overridden if necessary. 10053 runpath_var=LD_RUN_PATH 10054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10055 export_dynamic_flag_spec='$wl--export-dynamic' 10056 # ancient GNU ld didn't support --whole-archive et. al. 10057 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10058 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10059 else 10060 whole_archive_flag_spec= 10061 fi 10062 supports_anon_versioning=no 10063 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10064 *GNU\ gold*) supports_anon_versioning=yes ;; 10065 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10068 *\ 2.11.*) ;; # other 2.11 versions 10069 *) supports_anon_versioning=yes ;; 10070 esac 10071 10072 # See if GNU ld supports shared libraries. 10073 case $host_os in 10074 aix[3-9]*) 10075 # On AIX/PPC, the GNU linker is very broken 10076 if test ia64 != "$host_cpu"; then 10077 ld_shlibs=no 10078 cat <<_LT_EOF 1>&2 10079 10080*** Warning: the GNU linker, at least up to release 2.19, is reported 10081*** to be unable to reliably create shared libraries on AIX. 10082*** Therefore, libtool is disabling shared libraries support. If you 10083*** really care for shared libraries, you may want to install binutils 10084*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10085*** You will then need to restart the configuration process. 10086 10087_LT_EOF 10088 fi 10089 ;; 10090 10091 amigaos*) 10092 case $host_cpu in 10093 powerpc) 10094 # see comment about AmigaOS4 .so support 10095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10096 archive_expsym_cmds='' 10097 ;; 10098 m68k) 10099 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)' 10100 hardcode_libdir_flag_spec='-L$libdir' 10101 hardcode_minus_L=yes 10102 ;; 10103 esac 10104 ;; 10105 10106 beos*) 10107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10108 allow_undefined_flag=unsupported 10109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10110 # support --undefined. This deserves some investigation. FIXME 10111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10112 else 10113 ld_shlibs=no 10114 fi 10115 ;; 10116 10117 cygwin* | mingw* | pw32* | cegcc*) 10118 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10119 # as there is no search path for DLLs. 10120 hardcode_libdir_flag_spec='-L$libdir' 10121 export_dynamic_flag_spec='$wl--export-all-symbols' 10122 allow_undefined_flag=unsupported 10123 always_export_symbols=no 10124 enable_shared_with_static_runtimes=yes 10125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10126 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10127 10128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10130 # If the export-symbols file already is a .def file, use it as 10131 # is; otherwise, prepend EXPORTS... 10132 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10133 cp $export_symbols $output_objdir/$soname.def; 10134 else 10135 echo EXPORTS > $output_objdir/$soname.def; 10136 cat $export_symbols >> $output_objdir/$soname.def; 10137 fi~ 10138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10139 else 10140 ld_shlibs=no 10141 fi 10142 ;; 10143 10144 haiku*) 10145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10146 link_all_deplibs=yes 10147 ;; 10148 10149 os2*) 10150 hardcode_libdir_flag_spec='-L$libdir' 10151 hardcode_minus_L=yes 10152 allow_undefined_flag=unsupported 10153 shrext_cmds=.dll 10154 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10155 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10156 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10157 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10158 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10159 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10160 emximp -o $lib $output_objdir/$libname.def' 10161 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10162 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10163 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10164 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10165 prefix_cmds="$SED"~ 10166 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10167 prefix_cmds="$prefix_cmds -e 1d"; 10168 fi~ 10169 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10170 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10171 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10172 emximp -o $lib $output_objdir/$libname.def' 10173 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10174 enable_shared_with_static_runtimes=yes 10175 ;; 10176 10177 interix[3-9]*) 10178 hardcode_direct=no 10179 hardcode_shlibpath_var=no 10180 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10181 export_dynamic_flag_spec='$wl-E' 10182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10183 # Instead, shared libraries are loaded at an image base (0x10000000 by 10184 # default) and relocated if they conflict, which is a slow very memory 10185 # consuming and fragmenting process. To avoid this, we pick a random, 10186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10187 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10189 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' 10190 ;; 10191 10192 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10193 tmp_diet=no 10194 if test linux-dietlibc = "$host_os"; then 10195 case $cc_basename in 10196 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10197 esac 10198 fi 10199 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10200 && test no = "$tmp_diet" 10201 then 10202 tmp_addflag=' $pic_flag' 10203 tmp_sharedflag='-shared' 10204 case $cc_basename,$host_cpu in 10205 pgcc*) # Portland Group C compiler 10206 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' 10207 tmp_addflag=' $pic_flag' 10208 ;; 10209 pgf77* | pgf90* | pgf95* | pgfortran*) 10210 # Portland Group f77 and f90 compilers 10211 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' 10212 tmp_addflag=' $pic_flag -Mnomain' ;; 10213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10214 tmp_addflag=' -i_dynamic' ;; 10215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10216 tmp_addflag=' -i_dynamic -nofor_main' ;; 10217 ifc* | ifort*) # Intel Fortran compiler 10218 tmp_addflag=' -nofor_main' ;; 10219 lf95*) # Lahey Fortran 8.1 10220 whole_archive_flag_spec= 10221 tmp_sharedflag='--shared' ;; 10222 nagfor*) # NAGFOR 5.3 10223 tmp_sharedflag='-Wl,-shared' ;; 10224 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10225 tmp_sharedflag='-qmkshrobj' 10226 tmp_addflag= ;; 10227 nvcc*) # Cuda Compiler Driver 2.2 10228 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' 10229 compiler_needs_object=yes 10230 ;; 10231 esac 10232 case `$CC -V 2>&1 | sed 5q` in 10233 *Sun\ C*) # Sun C 5.9 10234 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' 10235 compiler_needs_object=yes 10236 tmp_sharedflag='-G' ;; 10237 *Sun\ F*) # Sun Fortran 8.3 10238 tmp_sharedflag='-G' ;; 10239 esac 10240 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10241 10242 if test yes = "$supports_anon_versioning"; then 10243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10245 echo "local: *; };" >> $output_objdir/$libname.ver~ 10246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10247 fi 10248 10249 case $cc_basename in 10250 tcc*) 10251 export_dynamic_flag_spec='-rdynamic' 10252 ;; 10253 xlf* | bgf* | bgxlf* | mpixlf*) 10254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10255 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10257 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10258 if test yes = "$supports_anon_versioning"; then 10259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10261 echo "local: *; };" >> $output_objdir/$libname.ver~ 10262 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10263 fi 10264 ;; 10265 esac 10266 else 10267 ld_shlibs=no 10268 fi 10269 ;; 10270 10271 netbsd*) 10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10274 wlarc= 10275 else 10276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10278 fi 10279 ;; 10280 10281 solaris*) 10282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10283 ld_shlibs=no 10284 cat <<_LT_EOF 1>&2 10285 10286*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10287*** create shared libraries on Solaris systems. Therefore, libtool 10288*** is disabling shared libraries support. We urge you to upgrade GNU 10289*** binutils to release 2.9.1 or newer. Another option is to modify 10290*** your PATH or compiler configuration so that the native linker is 10291*** used, and then restart. 10292 10293_LT_EOF 10294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10296 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10297 else 10298 ld_shlibs=no 10299 fi 10300 ;; 10301 10302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10303 case `$LD -v 2>&1` in 10304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10305 ld_shlibs=no 10306 cat <<_LT_EOF 1>&2 10307 10308*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10309*** reliably create shared libraries on SCO systems. Therefore, libtool 10310*** is disabling shared libraries support. We urge you to upgrade GNU 10311*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10312*** your PATH or compiler configuration so that the native linker is 10313*** used, and then restart. 10314 10315_LT_EOF 10316 ;; 10317 *) 10318 # For security reasons, it is highly recommended that you always 10319 # use absolute paths for naming shared libraries, and exclude the 10320 # DT_RUNPATH tag from executables and libraries. But doing so 10321 # requires that you compile everything twice, which is a pain. 10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10326 else 10327 ld_shlibs=no 10328 fi 10329 ;; 10330 esac 10331 ;; 10332 10333 sunos4*) 10334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10335 wlarc= 10336 hardcode_direct=yes 10337 hardcode_shlibpath_var=no 10338 ;; 10339 10340 *) 10341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10343 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10344 else 10345 ld_shlibs=no 10346 fi 10347 ;; 10348 esac 10349 10350 if test no = "$ld_shlibs"; then 10351 runpath_var= 10352 hardcode_libdir_flag_spec= 10353 export_dynamic_flag_spec= 10354 whole_archive_flag_spec= 10355 fi 10356 else 10357 # PORTME fill in a description of your system's linker (not GNU ld) 10358 case $host_os in 10359 aix3*) 10360 allow_undefined_flag=unsupported 10361 always_export_symbols=yes 10362 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' 10363 # Note: this linker hardcodes the directories in LIBPATH if there 10364 # are no directories specified by -L. 10365 hardcode_minus_L=yes 10366 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10367 # Neither direct hardcoding nor static linking is supported with a 10368 # broken collect2. 10369 hardcode_direct=unsupported 10370 fi 10371 ;; 10372 10373 aix[4-9]*) 10374 if test ia64 = "$host_cpu"; then 10375 # On IA64, the linker does run time linking by default, so we don't 10376 # have to do anything special. 10377 aix_use_runtimelinking=no 10378 exp_sym_flag='-Bexport' 10379 no_entry_flag= 10380 else 10381 # If we're using GNU nm, then we don't want the "-C" option. 10382 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10383 # Without the "-l" option, or with the "-B" option, AIX nm treats 10384 # weak defined symbols like other global defined symbols, whereas 10385 # GNU nm marks them as "W". 10386 # While the 'weak' keyword is ignored in the Export File, we need 10387 # it in the Import File for the 'aix-soname' feature, so we have 10388 # to replace the "-B" option with "-P" for AIX nm. 10389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10390 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10391 else 10392 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10393 fi 10394 aix_use_runtimelinking=no 10395 10396 # Test if we are trying to use run time linking or normal 10397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10398 # have runtime linking enabled, and use it for executables. 10399 # For shared libraries, we enable/disable runtime linking 10400 # depending on the kind of the shared library created - 10401 # when "with_aix_soname,aix_use_runtimelinking" is: 10402 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10403 # "aix,yes" lib.so shared, rtl:yes, for executables 10404 # lib.a static archive 10405 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10406 # lib.a(lib.so.V) shared, rtl:no, for executables 10407 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10408 # lib.a(lib.so.V) shared, rtl:no 10409 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10410 # lib.a static archive 10411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10412 for ld_flag in $LDFLAGS; do 10413 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10414 aix_use_runtimelinking=yes 10415 break 10416 fi 10417 done 10418 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10419 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10420 # so we don't have lib.a shared libs to link our executables. 10421 # We have to force runtime linking in this case. 10422 aix_use_runtimelinking=yes 10423 LDFLAGS="$LDFLAGS -Wl,-brtl" 10424 fi 10425 ;; 10426 esac 10427 10428 exp_sym_flag='-bexport' 10429 no_entry_flag='-bnoentry' 10430 fi 10431 10432 # When large executables or shared objects are built, AIX ld can 10433 # have problems creating the table of contents. If linking a library 10434 # or program results in "error TOC overflow" add -mminimal-toc to 10435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10437 10438 archive_cmds='' 10439 hardcode_direct=yes 10440 hardcode_direct_absolute=yes 10441 hardcode_libdir_separator=':' 10442 link_all_deplibs=yes 10443 file_list_spec='$wl-f,' 10444 case $with_aix_soname,$aix_use_runtimelinking in 10445 aix,*) ;; # traditional, no import file 10446 svr4,* | *,yes) # use import file 10447 # The Import File defines what to hardcode. 10448 hardcode_direct=no 10449 hardcode_direct_absolute=no 10450 ;; 10451 esac 10452 10453 if test yes = "$GCC"; then 10454 case $host_os in aix4.[012]|aix4.[012].*) 10455 # We only want to do this on AIX 4.2 and lower, the check 10456 # below for broken collect2 doesn't work under 4.3+ 10457 collect2name=`$CC -print-prog-name=collect2` 10458 if test -f "$collect2name" && 10459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10460 then 10461 # We have reworked collect2 10462 : 10463 else 10464 # We have old collect2 10465 hardcode_direct=unsupported 10466 # It fails to find uninstalled libraries when the uninstalled 10467 # path is not listed in the libpath. Setting hardcode_minus_L 10468 # to unsupported forces relinking 10469 hardcode_minus_L=yes 10470 hardcode_libdir_flag_spec='-L$libdir' 10471 hardcode_libdir_separator= 10472 fi 10473 ;; 10474 esac 10475 shared_flag='-shared' 10476 if test yes = "$aix_use_runtimelinking"; then 10477 shared_flag="$shared_flag "'$wl-G' 10478 fi 10479 # Need to ensure runtime linking is disabled for the traditional 10480 # shared library, or the linker may eventually find shared libraries 10481 # /with/ Import File - we do not want to mix them. 10482 shared_flag_aix='-shared' 10483 shared_flag_svr4='-shared $wl-G' 10484 else 10485 # not using gcc 10486 if test ia64 = "$host_cpu"; then 10487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10488 # chokes on -Wl,-G. The following line is correct: 10489 shared_flag='-G' 10490 else 10491 if test yes = "$aix_use_runtimelinking"; then 10492 shared_flag='$wl-G' 10493 else 10494 shared_flag='$wl-bM:SRE' 10495 fi 10496 shared_flag_aix='$wl-bM:SRE' 10497 shared_flag_svr4='$wl-G' 10498 fi 10499 fi 10500 10501 export_dynamic_flag_spec='$wl-bexpall' 10502 # It seems that -bexpall does not export symbols beginning with 10503 # underscore (_), so it is better to generate a list of symbols to export. 10504 always_export_symbols=yes 10505 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10506 # Warning - without using the other runtime loading flags (-brtl), 10507 # -berok will link without error, but may produce a broken library. 10508 allow_undefined_flag='-berok' 10509 # Determine the default libpath from the value encoded in an 10510 # empty executable. 10511 if test set = "${lt_cv_aix_libpath+set}"; then 10512 aix_libpath=$lt_cv_aix_libpath 10513else 10514 if ${lt_cv_aix_libpath_+:} false; then : 10515 $as_echo_n "(cached) " >&6 10516else 10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518/* end confdefs.h. */ 10519 10520int 10521main () 10522{ 10523 10524 ; 10525 return 0; 10526} 10527_ACEOF 10528if ac_fn_c_try_link "$LINENO"; then : 10529 10530 lt_aix_libpath_sed=' 10531 /Import File Strings/,/^$/ { 10532 /^0/ { 10533 s/^0 *\([^ ]*\) *$/\1/ 10534 p 10535 } 10536 }' 10537 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10538 # Check for a 64-bit object if we didn't find anything. 10539 if test -z "$lt_cv_aix_libpath_"; then 10540 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10541 fi 10542fi 10543rm -f core conftest.err conftest.$ac_objext \ 10544 conftest$ac_exeext conftest.$ac_ext 10545 if test -z "$lt_cv_aix_libpath_"; then 10546 lt_cv_aix_libpath_=/usr/lib:/lib 10547 fi 10548 10549fi 10550 10551 aix_libpath=$lt_cv_aix_libpath_ 10552fi 10553 10554 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10555 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10556 else 10557 if test ia64 = "$host_cpu"; then 10558 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10559 allow_undefined_flag="-z nodefs" 10560 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" 10561 else 10562 # Determine the default libpath from the value encoded in an 10563 # empty executable. 10564 if test set = "${lt_cv_aix_libpath+set}"; then 10565 aix_libpath=$lt_cv_aix_libpath 10566else 10567 if ${lt_cv_aix_libpath_+:} false; then : 10568 $as_echo_n "(cached) " >&6 10569else 10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10571/* end confdefs.h. */ 10572 10573int 10574main () 10575{ 10576 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581if ac_fn_c_try_link "$LINENO"; then : 10582 10583 lt_aix_libpath_sed=' 10584 /Import File Strings/,/^$/ { 10585 /^0/ { 10586 s/^0 *\([^ ]*\) *$/\1/ 10587 p 10588 } 10589 }' 10590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10591 # Check for a 64-bit object if we didn't find anything. 10592 if test -z "$lt_cv_aix_libpath_"; then 10593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10594 fi 10595fi 10596rm -f core conftest.err conftest.$ac_objext \ 10597 conftest$ac_exeext conftest.$ac_ext 10598 if test -z "$lt_cv_aix_libpath_"; then 10599 lt_cv_aix_libpath_=/usr/lib:/lib 10600 fi 10601 10602fi 10603 10604 aix_libpath=$lt_cv_aix_libpath_ 10605fi 10606 10607 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10608 # Warning - without using the other run time loading flags, 10609 # -berok will link without error, but may produce a broken library. 10610 no_undefined_flag=' $wl-bernotok' 10611 allow_undefined_flag=' $wl-berok' 10612 if test yes = "$with_gnu_ld"; then 10613 # We only use this code for GNU lds that support --whole-archive. 10614 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10615 else 10616 # Exported symbols can be pulled into shared objects from archives 10617 whole_archive_flag_spec='$convenience' 10618 fi 10619 archive_cmds_need_lc=yes 10620 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10621 # -brtl affects multiple linker settings, -berok does not and is overridden later 10622 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10623 if test svr4 != "$with_aix_soname"; then 10624 # This is similar to how AIX traditionally builds its shared libraries. 10625 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10626 fi 10627 if test aix != "$with_aix_soname"; then 10628 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10629 else 10630 # used by -dlpreopen to get the symbols 10631 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10632 fi 10633 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10634 fi 10635 fi 10636 ;; 10637 10638 amigaos*) 10639 case $host_cpu in 10640 powerpc) 10641 # see comment about AmigaOS4 .so support 10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10643 archive_expsym_cmds='' 10644 ;; 10645 m68k) 10646 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)' 10647 hardcode_libdir_flag_spec='-L$libdir' 10648 hardcode_minus_L=yes 10649 ;; 10650 esac 10651 ;; 10652 10653 bsdi[45]*) 10654 export_dynamic_flag_spec=-rdynamic 10655 ;; 10656 10657 cygwin* | mingw* | pw32* | cegcc*) 10658 # When not using gcc, we currently assume that we are using 10659 # Microsoft Visual C++. 10660 # hardcode_libdir_flag_spec is actually meaningless, as there is 10661 # no search path for DLLs. 10662 case $cc_basename in 10663 cl*) 10664 # Native MSVC 10665 hardcode_libdir_flag_spec=' ' 10666 allow_undefined_flag=unsupported 10667 always_export_symbols=yes 10668 file_list_spec='@' 10669 # Tell ltmain to make .lib files, not .a files. 10670 libext=lib 10671 # Tell ltmain to make .dll files, not .so files. 10672 shrext_cmds=.dll 10673 # FIXME: Setting linknames here is a bad hack. 10674 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10675 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10676 cp "$export_symbols" "$output_objdir/$soname.def"; 10677 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10678 else 10679 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10680 fi~ 10681 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10682 linknames=' 10683 # The linker will not automatically build a static lib if we build a DLL. 10684 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10685 enable_shared_with_static_runtimes=yes 10686 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10688 # Don't use ranlib 10689 old_postinstall_cmds='chmod 644 $oldlib' 10690 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10691 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10692 case $lt_outputfile in 10693 *.exe|*.EXE) ;; 10694 *) 10695 lt_outputfile=$lt_outputfile.exe 10696 lt_tool_outputfile=$lt_tool_outputfile.exe 10697 ;; 10698 esac~ 10699 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10701 $RM "$lt_outputfile.manifest"; 10702 fi' 10703 ;; 10704 *) 10705 # Assume MSVC wrapper 10706 hardcode_libdir_flag_spec=' ' 10707 allow_undefined_flag=unsupported 10708 # Tell ltmain to make .lib files, not .a files. 10709 libext=lib 10710 # Tell ltmain to make .dll files, not .so files. 10711 shrext_cmds=.dll 10712 # FIXME: Setting linknames here is a bad hack. 10713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10714 # The linker will automatically build a .lib file if we build a DLL. 10715 old_archive_from_new_cmds='true' 10716 # FIXME: Should let the user specify the lib program. 10717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10718 enable_shared_with_static_runtimes=yes 10719 ;; 10720 esac 10721 ;; 10722 10723 darwin* | rhapsody*) 10724 10725 10726 archive_cmds_need_lc=no 10727 hardcode_direct=no 10728 hardcode_automatic=yes 10729 hardcode_shlibpath_var=unsupported 10730 if test yes = "$lt_cv_ld_force_load"; then 10731 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\"`' 10732 10733 else 10734 whole_archive_flag_spec='' 10735 fi 10736 link_all_deplibs=yes 10737 allow_undefined_flag=$_lt_dar_allow_undefined 10738 case $cc_basename in 10739 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10740 *) _lt_dar_can_shared=$GCC ;; 10741 esac 10742 if test yes = "$_lt_dar_can_shared"; then 10743 output_verbose_link_cmd=func_echo_all 10744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10746 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" 10747 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" 10748 10749 else 10750 ld_shlibs=no 10751 fi 10752 10753 ;; 10754 10755 dgux*) 10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10757 hardcode_libdir_flag_spec='-L$libdir' 10758 hardcode_shlibpath_var=no 10759 ;; 10760 10761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10762 # support. Future versions do this automatically, but an explicit c++rt0.o 10763 # does not break anything, and helps significantly (at the cost of a little 10764 # extra space). 10765 freebsd2.2*) 10766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10767 hardcode_libdir_flag_spec='-R$libdir' 10768 hardcode_direct=yes 10769 hardcode_shlibpath_var=no 10770 ;; 10771 10772 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10773 freebsd2.*) 10774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10775 hardcode_direct=yes 10776 hardcode_minus_L=yes 10777 hardcode_shlibpath_var=no 10778 ;; 10779 10780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10781 freebsd* | dragonfly*) 10782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10783 hardcode_libdir_flag_spec='-R$libdir' 10784 hardcode_direct=yes 10785 hardcode_shlibpath_var=no 10786 ;; 10787 10788 hpux9*) 10789 if test yes = "$GCC"; then 10790 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10791 else 10792 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10793 fi 10794 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10795 hardcode_libdir_separator=: 10796 hardcode_direct=yes 10797 10798 # hardcode_minus_L: Not really in the search PATH, 10799 # but as the default location of the library. 10800 hardcode_minus_L=yes 10801 export_dynamic_flag_spec='$wl-E' 10802 ;; 10803 10804 hpux10*) 10805 if test yes,no = "$GCC,$with_gnu_ld"; then 10806 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10807 else 10808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10809 fi 10810 if test no = "$with_gnu_ld"; then 10811 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10812 hardcode_libdir_separator=: 10813 hardcode_direct=yes 10814 hardcode_direct_absolute=yes 10815 export_dynamic_flag_spec='$wl-E' 10816 # hardcode_minus_L: Not really in the search PATH, 10817 # but as the default location of the library. 10818 hardcode_minus_L=yes 10819 fi 10820 ;; 10821 10822 hpux11*) 10823 if test yes,no = "$GCC,$with_gnu_ld"; then 10824 case $host_cpu in 10825 hppa*64*) 10826 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10827 ;; 10828 ia64*) 10829 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10830 ;; 10831 *) 10832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10833 ;; 10834 esac 10835 else 10836 case $host_cpu in 10837 hppa*64*) 10838 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10839 ;; 10840 ia64*) 10841 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10842 ;; 10843 *) 10844 10845 # Older versions of the 11.00 compiler do not understand -b yet 10846 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10848$as_echo_n "checking if $CC understands -b... " >&6; } 10849if ${lt_cv_prog_compiler__b+:} false; then : 10850 $as_echo_n "(cached) " >&6 10851else 10852 lt_cv_prog_compiler__b=no 10853 save_LDFLAGS=$LDFLAGS 10854 LDFLAGS="$LDFLAGS -b" 10855 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10857 # The linker can only warn and ignore the option if not recognized 10858 # So say no if there are warnings 10859 if test -s conftest.err; then 10860 # Append any errors to the config.log. 10861 cat conftest.err 1>&5 10862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10864 if diff conftest.exp conftest.er2 >/dev/null; then 10865 lt_cv_prog_compiler__b=yes 10866 fi 10867 else 10868 lt_cv_prog_compiler__b=yes 10869 fi 10870 fi 10871 $RM -r conftest* 10872 LDFLAGS=$save_LDFLAGS 10873 10874fi 10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10876$as_echo "$lt_cv_prog_compiler__b" >&6; } 10877 10878if test yes = "$lt_cv_prog_compiler__b"; then 10879 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10880else 10881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10882fi 10883 10884 ;; 10885 esac 10886 fi 10887 if test no = "$with_gnu_ld"; then 10888 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10889 hardcode_libdir_separator=: 10890 10891 case $host_cpu in 10892 hppa*64*|ia64*) 10893 hardcode_direct=no 10894 hardcode_shlibpath_var=no 10895 ;; 10896 *) 10897 hardcode_direct=yes 10898 hardcode_direct_absolute=yes 10899 export_dynamic_flag_spec='$wl-E' 10900 10901 # hardcode_minus_L: Not really in the search PATH, 10902 # but as the default location of the library. 10903 hardcode_minus_L=yes 10904 ;; 10905 esac 10906 fi 10907 ;; 10908 10909 irix5* | irix6* | nonstopux*) 10910 if test yes = "$GCC"; then 10911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10912 # Try to use the -exported_symbol ld option, if it does not 10913 # work, assume that -exports_file does not work either and 10914 # implicitly export all symbols. 10915 # This should be the same for all languages, so no per-tag cache variable. 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10917$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10918if ${lt_cv_irix_exported_symbol+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920else 10921 save_LDFLAGS=$LDFLAGS 10922 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925int foo (void) { return 0; } 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 lt_cv_irix_exported_symbol=yes 10929else 10930 lt_cv_irix_exported_symbol=no 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934 LDFLAGS=$save_LDFLAGS 10935fi 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10937$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10938 if test yes = "$lt_cv_irix_exported_symbol"; then 10939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10940 fi 10941 else 10942 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' 10943 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' 10944 fi 10945 archive_cmds_need_lc='no' 10946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10947 hardcode_libdir_separator=: 10948 inherit_rpath=yes 10949 link_all_deplibs=yes 10950 ;; 10951 10952 linux*) 10953 case $cc_basename in 10954 tcc*) 10955 # Fabrice Bellard et al's Tiny C Compiler 10956 ld_shlibs=yes 10957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10958 ;; 10959 esac 10960 ;; 10961 10962 netbsd*) 10963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10965 else 10966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10967 fi 10968 hardcode_libdir_flag_spec='-R$libdir' 10969 hardcode_direct=yes 10970 hardcode_shlibpath_var=no 10971 ;; 10972 10973 newsos6) 10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10975 hardcode_direct=yes 10976 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10977 hardcode_libdir_separator=: 10978 hardcode_shlibpath_var=no 10979 ;; 10980 10981 *nto* | *qnx*) 10982 ;; 10983 10984 openbsd* | bitrig*) 10985 if test -f /usr/libexec/ld.so; then 10986 hardcode_direct=yes 10987 hardcode_shlibpath_var=no 10988 hardcode_direct_absolute=yes 10989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10992 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10993 export_dynamic_flag_spec='$wl-E' 10994 else 10995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10996 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10997 fi 10998 else 10999 ld_shlibs=no 11000 fi 11001 ;; 11002 11003 os2*) 11004 hardcode_libdir_flag_spec='-L$libdir' 11005 hardcode_minus_L=yes 11006 allow_undefined_flag=unsupported 11007 shrext_cmds=.dll 11008 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11009 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11010 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11011 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11012 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11013 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11014 emximp -o $lib $output_objdir/$libname.def' 11015 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11018 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11019 prefix_cmds="$SED"~ 11020 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11021 prefix_cmds="$prefix_cmds -e 1d"; 11022 fi~ 11023 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11024 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11025 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11026 emximp -o $lib $output_objdir/$libname.def' 11027 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11028 enable_shared_with_static_runtimes=yes 11029 ;; 11030 11031 osf3*) 11032 if test yes = "$GCC"; then 11033 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11034 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' 11035 else 11036 allow_undefined_flag=' -expect_unresolved \*' 11037 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' 11038 fi 11039 archive_cmds_need_lc='no' 11040 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11041 hardcode_libdir_separator=: 11042 ;; 11043 11044 osf4* | osf5*) # as osf3* with the addition of -msym flag 11045 if test yes = "$GCC"; then 11046 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11047 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11049 else 11050 allow_undefined_flag=' -expect_unresolved \*' 11051 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' 11052 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~ 11053 $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' 11054 11055 # Both c and cxx compiler support -rpath directly 11056 hardcode_libdir_flag_spec='-rpath $libdir' 11057 fi 11058 archive_cmds_need_lc='no' 11059 hardcode_libdir_separator=: 11060 ;; 11061 11062 solaris*) 11063 no_undefined_flag=' -z defs' 11064 if test yes = "$GCC"; then 11065 wlarc='$wl' 11066 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11068 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11069 else 11070 case `$CC -V 2>&1` in 11071 *"Compilers 5.0"*) 11072 wlarc='' 11073 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11075 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11076 ;; 11077 *) 11078 wlarc='$wl' 11079 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11081 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11082 ;; 11083 esac 11084 fi 11085 hardcode_libdir_flag_spec='-R$libdir' 11086 hardcode_shlibpath_var=no 11087 case $host_os in 11088 solaris2.[0-5] | solaris2.[0-5].*) ;; 11089 *) 11090 # The compiler driver will combine and reorder linker options, 11091 # but understands '-z linker_flag'. GCC discards it without '$wl', 11092 # but is careful enough not to reorder. 11093 # Supported since Solaris 2.6 (maybe 2.5.1?) 11094 if test yes = "$GCC"; then 11095 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11096 else 11097 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11098 fi 11099 ;; 11100 esac 11101 link_all_deplibs=yes 11102 ;; 11103 11104 sunos4*) 11105 if test sequent = "$host_vendor"; then 11106 # Use $CC to link under sequent, because it throws in some extra .o 11107 # files that make .init and .fini sections work. 11108 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11109 else 11110 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11111 fi 11112 hardcode_libdir_flag_spec='-L$libdir' 11113 hardcode_direct=yes 11114 hardcode_minus_L=yes 11115 hardcode_shlibpath_var=no 11116 ;; 11117 11118 sysv4) 11119 case $host_vendor in 11120 sni) 11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11122 hardcode_direct=yes # is this really true??? 11123 ;; 11124 siemens) 11125 ## LD is ld it makes a PLAMLIB 11126 ## CC just makes a GrossModule. 11127 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11128 reload_cmds='$CC -r -o $output$reload_objs' 11129 hardcode_direct=no 11130 ;; 11131 motorola) 11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11133 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11134 ;; 11135 esac 11136 runpath_var='LD_RUN_PATH' 11137 hardcode_shlibpath_var=no 11138 ;; 11139 11140 sysv4.3*) 11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11142 hardcode_shlibpath_var=no 11143 export_dynamic_flag_spec='-Bexport' 11144 ;; 11145 11146 sysv4*MP*) 11147 if test -d /usr/nec; then 11148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11149 hardcode_shlibpath_var=no 11150 runpath_var=LD_RUN_PATH 11151 hardcode_runpath_var=yes 11152 ld_shlibs=yes 11153 fi 11154 ;; 11155 11156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11157 no_undefined_flag='$wl-z,text' 11158 archive_cmds_need_lc=no 11159 hardcode_shlibpath_var=no 11160 runpath_var='LD_RUN_PATH' 11161 11162 if test yes = "$GCC"; then 11163 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11164 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11165 else 11166 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11167 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11168 fi 11169 ;; 11170 11171 sysv5* | sco3.2v5* | sco5v6*) 11172 # Note: We CANNOT use -z defs as we might desire, because we do not 11173 # link with -lc, and that would cause any symbols used from libc to 11174 # always be unresolved, which means just about no library would 11175 # ever link correctly. If we're not using GNU ld we use -z text 11176 # though, which does catch some bad symbols but isn't as heavy-handed 11177 # as -z defs. 11178 no_undefined_flag='$wl-z,text' 11179 allow_undefined_flag='$wl-z,nodefs' 11180 archive_cmds_need_lc=no 11181 hardcode_shlibpath_var=no 11182 hardcode_libdir_flag_spec='$wl-R,$libdir' 11183 hardcode_libdir_separator=':' 11184 link_all_deplibs=yes 11185 export_dynamic_flag_spec='$wl-Bexport' 11186 runpath_var='LD_RUN_PATH' 11187 11188 if test yes = "$GCC"; then 11189 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11190 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11191 else 11192 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11193 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11194 fi 11195 ;; 11196 11197 uts4*) 11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11199 hardcode_libdir_flag_spec='-L$libdir' 11200 hardcode_shlibpath_var=no 11201 ;; 11202 11203 *) 11204 ld_shlibs=no 11205 ;; 11206 esac 11207 11208 if test sni = "$host_vendor"; then 11209 case $host in 11210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11211 export_dynamic_flag_spec='$wl-Blargedynsym' 11212 ;; 11213 esac 11214 fi 11215 fi 11216 11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11218$as_echo "$ld_shlibs" >&6; } 11219test no = "$ld_shlibs" && can_build_shared=no 11220 11221with_gnu_ld=$with_gnu_ld 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237# 11238# Do we need to explicitly link libc? 11239# 11240case "x$archive_cmds_need_lc" in 11241x|xyes) 11242 # Assume -lc should be added 11243 archive_cmds_need_lc=yes 11244 11245 if test yes,yes = "$GCC,$enable_shared"; then 11246 case $archive_cmds in 11247 *'~'*) 11248 # FIXME: we may have to deal with multi-command sequences. 11249 ;; 11250 '$CC '*) 11251 # Test whether the compiler implicitly links with -lc since on some 11252 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11253 # to ld, don't add -lc before -lgcc. 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11255$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11256if ${lt_cv_archive_cmds_need_lc+:} false; then : 11257 $as_echo_n "(cached) " >&6 11258else 11259 $RM conftest* 11260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11261 11262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11263 (eval $ac_compile) 2>&5 11264 ac_status=$? 11265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11266 test $ac_status = 0; } 2>conftest.err; then 11267 soname=conftest 11268 lib=conftest 11269 libobjs=conftest.$ac_objext 11270 deplibs= 11271 wl=$lt_prog_compiler_wl 11272 pic_flag=$lt_prog_compiler_pic 11273 compiler_flags=-v 11274 linker_flags=-v 11275 verstring= 11276 output_objdir=. 11277 libname=conftest 11278 lt_save_allow_undefined_flag=$allow_undefined_flag 11279 allow_undefined_flag= 11280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11281 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11282 ac_status=$? 11283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11284 test $ac_status = 0; } 11285 then 11286 lt_cv_archive_cmds_need_lc=no 11287 else 11288 lt_cv_archive_cmds_need_lc=yes 11289 fi 11290 allow_undefined_flag=$lt_save_allow_undefined_flag 11291 else 11292 cat conftest.err 1>&5 11293 fi 11294 $RM conftest* 11295 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11298$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11299 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11300 ;; 11301 esac 11302 fi 11303 ;; 11304esac 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11458$as_echo_n "checking dynamic linker characteristics... " >&6; } 11459 11460if test yes = "$GCC"; then 11461 case $host_os in 11462 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11463 *) lt_awk_arg='/^libraries:/' ;; 11464 esac 11465 case $host_os in 11466 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11467 *) lt_sed_strip_eq='s|=/|/|g' ;; 11468 esac 11469 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11470 case $lt_search_path_spec in 11471 *\;*) 11472 # if the path contains ";" then we assume it to be the separator 11473 # otherwise default to the standard path separator (i.e. ":") - it is 11474 # assumed that no part of a normal pathname contains ";" but that should 11475 # okay in the real world where ";" in dirpaths is itself problematic. 11476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11477 ;; 11478 *) 11479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11480 ;; 11481 esac 11482 # Ok, now we have the path, separated by spaces, we can step through it 11483 # and add multilib dir if necessary... 11484 lt_tmp_lt_search_path_spec= 11485 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11486 # ...but if some path component already ends with the multilib dir we assume 11487 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11488 case "$lt_multi_os_dir; $lt_search_path_spec " in 11489 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11490 lt_multi_os_dir= 11491 ;; 11492 esac 11493 for lt_sys_path in $lt_search_path_spec; do 11494 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11496 elif test -n "$lt_multi_os_dir"; then 11497 test -d "$lt_sys_path" && \ 11498 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11499 fi 11500 done 11501 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11502BEGIN {RS = " "; FS = "/|\n";} { 11503 lt_foo = ""; 11504 lt_count = 0; 11505 for (lt_i = NF; lt_i > 0; lt_i--) { 11506 if ($lt_i != "" && $lt_i != ".") { 11507 if ($lt_i == "..") { 11508 lt_count++; 11509 } else { 11510 if (lt_count == 0) { 11511 lt_foo = "/" $lt_i lt_foo; 11512 } else { 11513 lt_count--; 11514 } 11515 } 11516 } 11517 } 11518 if (lt_foo != "") { lt_freq[lt_foo]++; } 11519 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11520}'` 11521 # AWK program above erroneously prepends '/' to C:/dos/paths 11522 # for these hosts. 11523 case $host_os in 11524 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11525 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11526 esac 11527 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11528else 11529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11530fi 11531library_names_spec= 11532libname_spec='lib$name' 11533soname_spec= 11534shrext_cmds=.so 11535postinstall_cmds= 11536postuninstall_cmds= 11537finish_cmds= 11538finish_eval= 11539shlibpath_var= 11540shlibpath_overrides_runpath=unknown 11541version_type=none 11542dynamic_linker="$host_os ld.so" 11543sys_lib_dlsearch_path_spec="/lib /usr/lib" 11544need_lib_prefix=unknown 11545hardcode_into_libs=no 11546 11547# when you set need_version to no, make sure it does not cause -set_version 11548# flags to be left without arguments 11549need_version=unknown 11550 11551 11552 11553case $host_os in 11554aix3*) 11555 version_type=linux # correct to gnu/linux during the next big refactor 11556 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11557 shlibpath_var=LIBPATH 11558 11559 # AIX 3 has no versioning support, so we append a major version to the name. 11560 soname_spec='$libname$release$shared_ext$major' 11561 ;; 11562 11563aix[4-9]*) 11564 version_type=linux # correct to gnu/linux during the next big refactor 11565 need_lib_prefix=no 11566 need_version=no 11567 hardcode_into_libs=yes 11568 if test ia64 = "$host_cpu"; then 11569 # AIX 5 supports IA64 11570 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11571 shlibpath_var=LD_LIBRARY_PATH 11572 else 11573 # With GCC up to 2.95.x, collect2 would create an import file 11574 # for dependence libraries. The import file would start with 11575 # the line '#! .'. This would cause the generated library to 11576 # depend on '.', always an invalid library. This was fixed in 11577 # development snapshots of GCC prior to 3.0. 11578 case $host_os in 11579 aix4 | aix4.[01] | aix4.[01].*) 11580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11581 echo ' yes ' 11582 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11583 : 11584 else 11585 can_build_shared=no 11586 fi 11587 ;; 11588 esac 11589 # Using Import Files as archive members, it is possible to support 11590 # filename-based versioning of shared library archives on AIX. While 11591 # this would work for both with and without runtime linking, it will 11592 # prevent static linking of such archives. So we do filename-based 11593 # shared library versioning with .so extension only, which is used 11594 # when both runtime linking and shared linking is enabled. 11595 # Unfortunately, runtime linking may impact performance, so we do 11596 # not want this to be the default eventually. Also, we use the 11597 # versioned .so libs for executables only if there is the -brtl 11598 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11599 # To allow for filename-based versioning support, we need to create 11600 # libNAME.so.V as an archive file, containing: 11601 # *) an Import File, referring to the versioned filename of the 11602 # archive as well as the shared archive member, telling the 11603 # bitwidth (32 or 64) of that shared object, and providing the 11604 # list of exported symbols of that shared object, eventually 11605 # decorated with the 'weak' keyword 11606 # *) the shared object with the F_LOADONLY flag set, to really avoid 11607 # it being seen by the linker. 11608 # At run time we better use the real file rather than another symlink, 11609 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11610 11611 case $with_aix_soname,$aix_use_runtimelinking in 11612 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11613 # soname into executable. Probably we can add versioning support to 11614 # collect2, so additional links can be useful in future. 11615 aix,yes) # traditional libtool 11616 dynamic_linker='AIX unversionable lib.so' 11617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11618 # instead of lib<name>.a to let people know that these are not 11619 # typical AIX shared libraries. 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11621 ;; 11622 aix,no) # traditional AIX only 11623 dynamic_linker='AIX lib.a(lib.so.V)' 11624 # We preserve .a as extension for shared libraries through AIX4.2 11625 # and later when we are not doing run time linking. 11626 library_names_spec='$libname$release.a $libname.a' 11627 soname_spec='$libname$release$shared_ext$major' 11628 ;; 11629 svr4,*) # full svr4 only 11630 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11631 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11632 # We do not specify a path in Import Files, so LIBPATH fires. 11633 shlibpath_overrides_runpath=yes 11634 ;; 11635 *,yes) # both, prefer svr4 11636 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11637 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11638 # unpreferred sharedlib libNAME.a needs extra handling 11639 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11640 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11641 # We do not specify a path in Import Files, so LIBPATH fires. 11642 shlibpath_overrides_runpath=yes 11643 ;; 11644 *,no) # both, prefer aix 11645 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11646 library_names_spec='$libname$release.a $libname.a' 11647 soname_spec='$libname$release$shared_ext$major' 11648 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11649 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11650 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11651 ;; 11652 esac 11653 shlibpath_var=LIBPATH 11654 fi 11655 ;; 11656 11657amigaos*) 11658 case $host_cpu in 11659 powerpc) 11660 # Since July 2007 AmigaOS4 officially supports .so libraries. 11661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11663 ;; 11664 m68k) 11665 library_names_spec='$libname.ixlibrary $libname.a' 11666 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11667 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11668 ;; 11669 esac 11670 ;; 11671 11672beos*) 11673 library_names_spec='$libname$shared_ext' 11674 dynamic_linker="$host_os ld.so" 11675 shlibpath_var=LIBRARY_PATH 11676 ;; 11677 11678bsdi[45]*) 11679 version_type=linux # correct to gnu/linux during the next big refactor 11680 need_version=no 11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11682 soname_spec='$libname$release$shared_ext$major' 11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11684 shlibpath_var=LD_LIBRARY_PATH 11685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11687 # the default ld.so.conf also contains /usr/contrib/lib and 11688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11689 # libtool to hard-code these into programs 11690 ;; 11691 11692cygwin* | mingw* | pw32* | cegcc*) 11693 version_type=windows 11694 shrext_cmds=.dll 11695 need_version=no 11696 need_lib_prefix=no 11697 11698 case $GCC,$cc_basename in 11699 yes,*) 11700 # gcc 11701 library_names_spec='$libname.dll.a' 11702 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11703 postinstall_cmds='base_file=`basename \$file`~ 11704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11705 dldir=$destdir/`dirname \$dlpath`~ 11706 test -d \$dldir || mkdir -p \$dldir~ 11707 $install_prog $dir/$dlname \$dldir/$dlname~ 11708 chmod a+x \$dldir/$dlname~ 11709 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11710 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11711 fi' 11712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11713 dlpath=$dir/\$dldll~ 11714 $RM \$dlpath' 11715 shlibpath_overrides_runpath=yes 11716 11717 case $host_os in 11718 cygwin*) 11719 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11720 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11721 11722 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11723 ;; 11724 mingw* | cegcc*) 11725 # MinGW DLLs use traditional 'lib' prefix 11726 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11727 ;; 11728 pw32*) 11729 # pw32 DLLs use 'pw' prefix rather than 'lib' 11730 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11731 ;; 11732 esac 11733 dynamic_linker='Win32 ld.exe' 11734 ;; 11735 11736 *,cl*) 11737 # Native MSVC 11738 libname_spec='$name' 11739 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11740 library_names_spec='$libname.dll.lib' 11741 11742 case $build_os in 11743 mingw*) 11744 sys_lib_search_path_spec= 11745 lt_save_ifs=$IFS 11746 IFS=';' 11747 for lt_path in $LIB 11748 do 11749 IFS=$lt_save_ifs 11750 # Let DOS variable expansion print the short 8.3 style file name. 11751 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11752 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11753 done 11754 IFS=$lt_save_ifs 11755 # Convert to MSYS style. 11756 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11757 ;; 11758 cygwin*) 11759 # Convert to unix form, then to dos form, then back to unix form 11760 # but this time dos style (no spaces!) so that the unix form looks 11761 # like /cygdrive/c/PROGRA~1:/cygdr... 11762 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11763 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11764 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11765 ;; 11766 *) 11767 sys_lib_search_path_spec=$LIB 11768 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11769 # It is most probably a Windows format PATH. 11770 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11771 else 11772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11773 fi 11774 # FIXME: find the short name or the path components, as spaces are 11775 # common. (e.g. "Program Files" -> "PROGRA~1") 11776 ;; 11777 esac 11778 11779 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11780 postinstall_cmds='base_file=`basename \$file`~ 11781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11782 dldir=$destdir/`dirname \$dlpath`~ 11783 test -d \$dldir || mkdir -p \$dldir~ 11784 $install_prog $dir/$dlname \$dldir/$dlname' 11785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11786 dlpath=$dir/\$dldll~ 11787 $RM \$dlpath' 11788 shlibpath_overrides_runpath=yes 11789 dynamic_linker='Win32 link.exe' 11790 ;; 11791 11792 *) 11793 # Assume MSVC wrapper 11794 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11795 dynamic_linker='Win32 ld.exe' 11796 ;; 11797 esac 11798 # FIXME: first we should search . and the directory the executable is in 11799 shlibpath_var=PATH 11800 ;; 11801 11802darwin* | rhapsody*) 11803 dynamic_linker="$host_os dyld" 11804 version_type=darwin 11805 need_lib_prefix=no 11806 need_version=no 11807 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11808 soname_spec='$libname$release$major$shared_ext' 11809 shlibpath_overrides_runpath=yes 11810 shlibpath_var=DYLD_LIBRARY_PATH 11811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11812 11813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11815 ;; 11816 11817dgux*) 11818 version_type=linux # correct to gnu/linux during the next big refactor 11819 need_lib_prefix=no 11820 need_version=no 11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11822 soname_spec='$libname$release$shared_ext$major' 11823 shlibpath_var=LD_LIBRARY_PATH 11824 ;; 11825 11826freebsd* | dragonfly*) 11827 # DragonFly does not have aout. When/if they implement a new 11828 # versioning mechanism, adjust this. 11829 if test -x /usr/bin/objformat; then 11830 objformat=`/usr/bin/objformat` 11831 else 11832 case $host_os in 11833 freebsd[23].*) objformat=aout ;; 11834 *) objformat=elf ;; 11835 esac 11836 fi 11837 version_type=freebsd-$objformat 11838 case $version_type in 11839 freebsd-elf*) 11840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11841 soname_spec='$libname$release$shared_ext$major' 11842 need_version=no 11843 need_lib_prefix=no 11844 ;; 11845 freebsd-*) 11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11847 need_version=yes 11848 ;; 11849 esac 11850 shlibpath_var=LD_LIBRARY_PATH 11851 case $host_os in 11852 freebsd2.*) 11853 shlibpath_overrides_runpath=yes 11854 ;; 11855 freebsd3.[01]* | freebsdelf3.[01]*) 11856 shlibpath_overrides_runpath=yes 11857 hardcode_into_libs=yes 11858 ;; 11859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11861 shlibpath_overrides_runpath=no 11862 hardcode_into_libs=yes 11863 ;; 11864 *) # from 4.6 on, and DragonFly 11865 shlibpath_overrides_runpath=yes 11866 hardcode_into_libs=yes 11867 ;; 11868 esac 11869 ;; 11870 11871haiku*) 11872 version_type=linux # correct to gnu/linux during the next big refactor 11873 need_lib_prefix=no 11874 need_version=no 11875 dynamic_linker="$host_os runtime_loader" 11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11877 soname_spec='$libname$release$shared_ext$major' 11878 shlibpath_var=LIBRARY_PATH 11879 shlibpath_overrides_runpath=no 11880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11881 hardcode_into_libs=yes 11882 ;; 11883 11884hpux9* | hpux10* | hpux11*) 11885 # Give a soname corresponding to the major version so that dld.sl refuses to 11886 # link against other versions. 11887 version_type=sunos 11888 need_lib_prefix=no 11889 need_version=no 11890 case $host_cpu in 11891 ia64*) 11892 shrext_cmds='.so' 11893 hardcode_into_libs=yes 11894 dynamic_linker="$host_os dld.so" 11895 shlibpath_var=LD_LIBRARY_PATH 11896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11898 soname_spec='$libname$release$shared_ext$major' 11899 if test 32 = "$HPUX_IA64_MODE"; then 11900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11901 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11902 else 11903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11904 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11905 fi 11906 ;; 11907 hppa*64*) 11908 shrext_cmds='.sl' 11909 hardcode_into_libs=yes 11910 dynamic_linker="$host_os dld.sl" 11911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11914 soname_spec='$libname$release$shared_ext$major' 11915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11917 ;; 11918 *) 11919 shrext_cmds='.sl' 11920 dynamic_linker="$host_os dld.sl" 11921 shlibpath_var=SHLIB_PATH 11922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11924 soname_spec='$libname$release$shared_ext$major' 11925 ;; 11926 esac 11927 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11928 postinstall_cmds='chmod 555 $lib' 11929 # or fails outright, so override atomically: 11930 install_override_mode=555 11931 ;; 11932 11933interix[3-9]*) 11934 version_type=linux # correct to gnu/linux during the next big refactor 11935 need_lib_prefix=no 11936 need_version=no 11937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11938 soname_spec='$libname$release$shared_ext$major' 11939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11940 shlibpath_var=LD_LIBRARY_PATH 11941 shlibpath_overrides_runpath=no 11942 hardcode_into_libs=yes 11943 ;; 11944 11945irix5* | irix6* | nonstopux*) 11946 case $host_os in 11947 nonstopux*) version_type=nonstopux ;; 11948 *) 11949 if test yes = "$lt_cv_prog_gnu_ld"; then 11950 version_type=linux # correct to gnu/linux during the next big refactor 11951 else 11952 version_type=irix 11953 fi ;; 11954 esac 11955 need_lib_prefix=no 11956 need_version=no 11957 soname_spec='$libname$release$shared_ext$major' 11958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11959 case $host_os in 11960 irix5* | nonstopux*) 11961 libsuff= shlibsuff= 11962 ;; 11963 *) 11964 case $LD in # libtool.m4 will add one of these switches to LD 11965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11966 libsuff= shlibsuff= libmagic=32-bit;; 11967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11968 libsuff=32 shlibsuff=N32 libmagic=N32;; 11969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11970 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11971 *) libsuff= shlibsuff= libmagic=never-match;; 11972 esac 11973 ;; 11974 esac 11975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11976 shlibpath_overrides_runpath=no 11977 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11978 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11979 hardcode_into_libs=yes 11980 ;; 11981 11982# No shared lib support for Linux oldld, aout, or coff. 11983linux*oldld* | linux*aout* | linux*coff*) 11984 dynamic_linker=no 11985 ;; 11986 11987linux*android*) 11988 version_type=none # Android doesn't support versioned libraries. 11989 need_lib_prefix=no 11990 need_version=no 11991 library_names_spec='$libname$release$shared_ext' 11992 soname_spec='$libname$release$shared_ext' 11993 finish_cmds= 11994 shlibpath_var=LD_LIBRARY_PATH 11995 shlibpath_overrides_runpath=yes 11996 11997 # This implies no fast_install, which is unacceptable. 11998 # Some rework will be needed to allow for fast_install 11999 # before this can be enabled. 12000 hardcode_into_libs=yes 12001 12002 dynamic_linker='Android linker' 12003 # Don't embed -rpath directories since the linker doesn't support them. 12004 hardcode_libdir_flag_spec='-L$libdir' 12005 ;; 12006 12007# This must be glibc/ELF. 12008linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12009 version_type=linux # correct to gnu/linux during the next big refactor 12010 need_lib_prefix=no 12011 need_version=no 12012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12013 soname_spec='$libname$release$shared_ext$major' 12014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12015 shlibpath_var=LD_LIBRARY_PATH 12016 shlibpath_overrides_runpath=no 12017 12018 # Some binutils ld are patched to set DT_RUNPATH 12019 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12020 $as_echo_n "(cached) " >&6 12021else 12022 lt_cv_shlibpath_overrides_runpath=no 12023 save_LDFLAGS=$LDFLAGS 12024 save_libdir=$libdir 12025 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12026 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12028/* end confdefs.h. */ 12029 12030int 12031main () 12032{ 12033 12034 ; 12035 return 0; 12036} 12037_ACEOF 12038if ac_fn_c_try_link "$LINENO"; then : 12039 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12040 lt_cv_shlibpath_overrides_runpath=yes 12041fi 12042fi 12043rm -f core conftest.err conftest.$ac_objext \ 12044 conftest$ac_exeext conftest.$ac_ext 12045 LDFLAGS=$save_LDFLAGS 12046 libdir=$save_libdir 12047 12048fi 12049 12050 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12051 12052 # This implies no fast_install, which is unacceptable. 12053 # Some rework will be needed to allow for fast_install 12054 # before this can be enabled. 12055 hardcode_into_libs=yes 12056 12057 # Ideally, we could use ldconfig to report *all* directores which are 12058 # searched for libraries, however this is still not possible. Aside from not 12059 # being certain /sbin/ldconfig is available, command 12060 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12061 # even though it is searched at run-time. Try to do the best guess by 12062 # appending ld.so.conf contents (and includes) to the search path. 12063 if test -f /etc/ld.so.conf; then 12064 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' ' '` 12065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12066 fi 12067 12068 # We used to test for /lib/ld.so.1 and disable shared libraries on 12069 # powerpc, because MkLinux only supported shared libraries with the 12070 # GNU dynamic linker. Since this was broken with cross compilers, 12071 # most powerpc-linux boxes support dynamic linking these days and 12072 # people can always --disable-shared, the test was removed, and we 12073 # assume the GNU/Linux dynamic linker is in use. 12074 dynamic_linker='GNU/Linux ld.so' 12075 ;; 12076 12077netbsd*) 12078 version_type=sunos 12079 need_lib_prefix=no 12080 need_version=no 12081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12084 dynamic_linker='NetBSD (a.out) ld.so' 12085 else 12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12087 soname_spec='$libname$release$shared_ext$major' 12088 dynamic_linker='NetBSD ld.elf_so' 12089 fi 12090 shlibpath_var=LD_LIBRARY_PATH 12091 shlibpath_overrides_runpath=yes 12092 hardcode_into_libs=yes 12093 ;; 12094 12095newsos6) 12096 version_type=linux # correct to gnu/linux during the next big refactor 12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12098 shlibpath_var=LD_LIBRARY_PATH 12099 shlibpath_overrides_runpath=yes 12100 ;; 12101 12102*nto* | *qnx*) 12103 version_type=qnx 12104 need_lib_prefix=no 12105 need_version=no 12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12107 soname_spec='$libname$release$shared_ext$major' 12108 shlibpath_var=LD_LIBRARY_PATH 12109 shlibpath_overrides_runpath=no 12110 hardcode_into_libs=yes 12111 dynamic_linker='ldqnx.so' 12112 ;; 12113 12114openbsd* | bitrig*) 12115 version_type=sunos 12116 sys_lib_dlsearch_path_spec=/usr/lib 12117 need_lib_prefix=no 12118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12119 need_version=no 12120 else 12121 need_version=yes 12122 fi 12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12125 shlibpath_var=LD_LIBRARY_PATH 12126 shlibpath_overrides_runpath=yes 12127 ;; 12128 12129os2*) 12130 libname_spec='$name' 12131 version_type=windows 12132 shrext_cmds=.dll 12133 need_version=no 12134 need_lib_prefix=no 12135 # OS/2 can only load a DLL with a base name of 8 characters or less. 12136 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12137 v=$($ECHO $release$versuffix | tr -d .-); 12138 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12139 $ECHO $n$v`$shared_ext' 12140 library_names_spec='${libname}_dll.$libext' 12141 dynamic_linker='OS/2 ld.exe' 12142 shlibpath_var=BEGINLIBPATH 12143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12145 postinstall_cmds='base_file=`basename \$file`~ 12146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12147 dldir=$destdir/`dirname \$dlpath`~ 12148 test -d \$dldir || mkdir -p \$dldir~ 12149 $install_prog $dir/$dlname \$dldir/$dlname~ 12150 chmod a+x \$dldir/$dlname~ 12151 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12152 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12153 fi' 12154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12155 dlpath=$dir/\$dldll~ 12156 $RM \$dlpath' 12157 ;; 12158 12159osf3* | osf4* | osf5*) 12160 version_type=osf 12161 need_lib_prefix=no 12162 need_version=no 12163 soname_spec='$libname$release$shared_ext$major' 12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12165 shlibpath_var=LD_LIBRARY_PATH 12166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12168 ;; 12169 12170rdos*) 12171 dynamic_linker=no 12172 ;; 12173 12174solaris*) 12175 version_type=linux # correct to gnu/linux during the next big refactor 12176 need_lib_prefix=no 12177 need_version=no 12178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12179 soname_spec='$libname$release$shared_ext$major' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 shlibpath_overrides_runpath=yes 12182 hardcode_into_libs=yes 12183 # ldd complains unless libraries are executable 12184 postinstall_cmds='chmod +x $lib' 12185 ;; 12186 12187sunos4*) 12188 version_type=sunos 12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12191 shlibpath_var=LD_LIBRARY_PATH 12192 shlibpath_overrides_runpath=yes 12193 if test yes = "$with_gnu_ld"; then 12194 need_lib_prefix=no 12195 fi 12196 need_version=yes 12197 ;; 12198 12199sysv4 | sysv4.3*) 12200 version_type=linux # correct to gnu/linux during the next big refactor 12201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12202 soname_spec='$libname$release$shared_ext$major' 12203 shlibpath_var=LD_LIBRARY_PATH 12204 case $host_vendor in 12205 sni) 12206 shlibpath_overrides_runpath=no 12207 need_lib_prefix=no 12208 runpath_var=LD_RUN_PATH 12209 ;; 12210 siemens) 12211 need_lib_prefix=no 12212 ;; 12213 motorola) 12214 need_lib_prefix=no 12215 need_version=no 12216 shlibpath_overrides_runpath=no 12217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12218 ;; 12219 esac 12220 ;; 12221 12222sysv4*MP*) 12223 if test -d /usr/nec; then 12224 version_type=linux # correct to gnu/linux during the next big refactor 12225 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12226 soname_spec='$libname$shared_ext.$major' 12227 shlibpath_var=LD_LIBRARY_PATH 12228 fi 12229 ;; 12230 12231sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12232 version_type=sco 12233 need_lib_prefix=no 12234 need_version=no 12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12236 soname_spec='$libname$release$shared_ext$major' 12237 shlibpath_var=LD_LIBRARY_PATH 12238 shlibpath_overrides_runpath=yes 12239 hardcode_into_libs=yes 12240 if test yes = "$with_gnu_ld"; then 12241 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12242 else 12243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12244 case $host_os in 12245 sco3.2v5*) 12246 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12247 ;; 12248 esac 12249 fi 12250 sys_lib_dlsearch_path_spec='/usr/lib' 12251 ;; 12252 12253tpf*) 12254 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12255 version_type=linux # correct to gnu/linux during the next big refactor 12256 need_lib_prefix=no 12257 need_version=no 12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 shlibpath_overrides_runpath=no 12261 hardcode_into_libs=yes 12262 ;; 12263 12264uts4*) 12265 version_type=linux # correct to gnu/linux during the next big refactor 12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12267 soname_spec='$libname$release$shared_ext$major' 12268 shlibpath_var=LD_LIBRARY_PATH 12269 ;; 12270 12271*) 12272 dynamic_linker=no 12273 ;; 12274esac 12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12276$as_echo "$dynamic_linker" >&6; } 12277test no = "$dynamic_linker" && can_build_shared=no 12278 12279variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12280if test yes = "$GCC"; then 12281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12282fi 12283 12284if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12285 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12286fi 12287 12288if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12289 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12290fi 12291 12292# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12293configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12294 12295# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12296func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12297 12298# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12299configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12398$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12399hardcode_action= 12400if test -n "$hardcode_libdir_flag_spec" || 12401 test -n "$runpath_var" || 12402 test yes = "$hardcode_automatic"; then 12403 12404 # We can hardcode non-existent directories. 12405 if test no != "$hardcode_direct" && 12406 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12407 # have to relink, otherwise we might link with an installed library 12408 # when we should be linking with a yet-to-be-installed one 12409 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12410 test no != "$hardcode_minus_L"; then 12411 # Linking always hardcodes the temporary library directory. 12412 hardcode_action=relink 12413 else 12414 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12415 hardcode_action=immediate 12416 fi 12417else 12418 # We cannot hardcode anything, or else we can only hardcode existing 12419 # directories. 12420 hardcode_action=unsupported 12421fi 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12423$as_echo "$hardcode_action" >&6; } 12424 12425if test relink = "$hardcode_action" || 12426 test yes = "$inherit_rpath"; then 12427 # Fast installation is not supported 12428 enable_fast_install=no 12429elif test yes = "$shlibpath_overrides_runpath" || 12430 test no = "$enable_shared"; then 12431 # Fast installation is not necessary 12432 enable_fast_install=needless 12433fi 12434 12435 12436 12437 12438 12439 12440 if test yes != "$enable_dlopen"; then 12441 enable_dlopen=unknown 12442 enable_dlopen_self=unknown 12443 enable_dlopen_self_static=unknown 12444else 12445 lt_cv_dlopen=no 12446 lt_cv_dlopen_libs= 12447 12448 case $host_os in 12449 beos*) 12450 lt_cv_dlopen=load_add_on 12451 lt_cv_dlopen_libs= 12452 lt_cv_dlopen_self=yes 12453 ;; 12454 12455 mingw* | pw32* | cegcc*) 12456 lt_cv_dlopen=LoadLibrary 12457 lt_cv_dlopen_libs= 12458 ;; 12459 12460 cygwin*) 12461 lt_cv_dlopen=dlopen 12462 lt_cv_dlopen_libs= 12463 ;; 12464 12465 darwin*) 12466 # if libdl is installed we need to link against it 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12468$as_echo_n "checking for dlopen in -ldl... " >&6; } 12469if ${ac_cv_lib_dl_dlopen+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471else 12472 ac_check_lib_save_LIBS=$LIBS 12473LIBS="-ldl $LIBS" 12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477/* Override any GCC internal prototype to avoid an error. 12478 Use char because int might match the return type of a GCC 12479 builtin and then its argument prototype would still apply. */ 12480#ifdef __cplusplus 12481extern "C" 12482#endif 12483char dlopen (); 12484int 12485main () 12486{ 12487return dlopen (); 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492if ac_fn_c_try_link "$LINENO"; then : 12493 ac_cv_lib_dl_dlopen=yes 12494else 12495 ac_cv_lib_dl_dlopen=no 12496fi 12497rm -f core conftest.err conftest.$ac_objext \ 12498 conftest$ac_exeext conftest.$ac_ext 12499LIBS=$ac_check_lib_save_LIBS 12500fi 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12502$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12503if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12504 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12505else 12506 12507 lt_cv_dlopen=dyld 12508 lt_cv_dlopen_libs= 12509 lt_cv_dlopen_self=yes 12510 12511fi 12512 12513 ;; 12514 12515 tpf*) 12516 # Don't try to run any link tests for TPF. We know it's impossible 12517 # because TPF is a cross-compiler, and we know how we open DSOs. 12518 lt_cv_dlopen=dlopen 12519 lt_cv_dlopen_libs= 12520 lt_cv_dlopen_self=no 12521 ;; 12522 12523 *) 12524 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12525if test "x$ac_cv_func_shl_load" = xyes; then : 12526 lt_cv_dlopen=shl_load 12527else 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12529$as_echo_n "checking for shl_load in -ldld... " >&6; } 12530if ${ac_cv_lib_dld_shl_load+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 ac_check_lib_save_LIBS=$LIBS 12534LIBS="-ldld $LIBS" 12535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12536/* end confdefs.h. */ 12537 12538/* Override any GCC internal prototype to avoid an error. 12539 Use char because int might match the return type of a GCC 12540 builtin and then its argument prototype would still apply. */ 12541#ifdef __cplusplus 12542extern "C" 12543#endif 12544char shl_load (); 12545int 12546main () 12547{ 12548return shl_load (); 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553if ac_fn_c_try_link "$LINENO"; then : 12554 ac_cv_lib_dld_shl_load=yes 12555else 12556 ac_cv_lib_dld_shl_load=no 12557fi 12558rm -f core conftest.err conftest.$ac_objext \ 12559 conftest$ac_exeext conftest.$ac_ext 12560LIBS=$ac_check_lib_save_LIBS 12561fi 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12563$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12564if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12565 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12566else 12567 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12568if test "x$ac_cv_func_dlopen" = xyes; then : 12569 lt_cv_dlopen=dlopen 12570else 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12572$as_echo_n "checking for dlopen in -ldl... " >&6; } 12573if ${ac_cv_lib_dl_dlopen+:} false; then : 12574 $as_echo_n "(cached) " >&6 12575else 12576 ac_check_lib_save_LIBS=$LIBS 12577LIBS="-ldl $LIBS" 12578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12579/* end confdefs.h. */ 12580 12581/* Override any GCC internal prototype to avoid an error. 12582 Use char because int might match the return type of a GCC 12583 builtin and then its argument prototype would still apply. */ 12584#ifdef __cplusplus 12585extern "C" 12586#endif 12587char dlopen (); 12588int 12589main () 12590{ 12591return dlopen (); 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596if ac_fn_c_try_link "$LINENO"; then : 12597 ac_cv_lib_dl_dlopen=yes 12598else 12599 ac_cv_lib_dl_dlopen=no 12600fi 12601rm -f core conftest.err conftest.$ac_objext \ 12602 conftest$ac_exeext conftest.$ac_ext 12603LIBS=$ac_check_lib_save_LIBS 12604fi 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12606$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12607if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12608 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12609else 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12611$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12612if ${ac_cv_lib_svld_dlopen+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 ac_check_lib_save_LIBS=$LIBS 12616LIBS="-lsvld $LIBS" 12617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12618/* end confdefs.h. */ 12619 12620/* Override any GCC internal prototype to avoid an error. 12621 Use char because int might match the return type of a GCC 12622 builtin and then its argument prototype would still apply. */ 12623#ifdef __cplusplus 12624extern "C" 12625#endif 12626char dlopen (); 12627int 12628main () 12629{ 12630return dlopen (); 12631 ; 12632 return 0; 12633} 12634_ACEOF 12635if ac_fn_c_try_link "$LINENO"; then : 12636 ac_cv_lib_svld_dlopen=yes 12637else 12638 ac_cv_lib_svld_dlopen=no 12639fi 12640rm -f core conftest.err conftest.$ac_objext \ 12641 conftest$ac_exeext conftest.$ac_ext 12642LIBS=$ac_check_lib_save_LIBS 12643fi 12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12645$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12646if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12647 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12648else 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12650$as_echo_n "checking for dld_link in -ldld... " >&6; } 12651if ${ac_cv_lib_dld_dld_link+:} false; then : 12652 $as_echo_n "(cached) " >&6 12653else 12654 ac_check_lib_save_LIBS=$LIBS 12655LIBS="-ldld $LIBS" 12656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12657/* end confdefs.h. */ 12658 12659/* Override any GCC internal prototype to avoid an error. 12660 Use char because int might match the return type of a GCC 12661 builtin and then its argument prototype would still apply. */ 12662#ifdef __cplusplus 12663extern "C" 12664#endif 12665char dld_link (); 12666int 12667main () 12668{ 12669return dld_link (); 12670 ; 12671 return 0; 12672} 12673_ACEOF 12674if ac_fn_c_try_link "$LINENO"; then : 12675 ac_cv_lib_dld_dld_link=yes 12676else 12677 ac_cv_lib_dld_dld_link=no 12678fi 12679rm -f core conftest.err conftest.$ac_objext \ 12680 conftest$ac_exeext conftest.$ac_ext 12681LIBS=$ac_check_lib_save_LIBS 12682fi 12683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12684$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12685if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12686 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12687fi 12688 12689 12690fi 12691 12692 12693fi 12694 12695 12696fi 12697 12698 12699fi 12700 12701 12702fi 12703 12704 ;; 12705 esac 12706 12707 if test no = "$lt_cv_dlopen"; then 12708 enable_dlopen=no 12709 else 12710 enable_dlopen=yes 12711 fi 12712 12713 case $lt_cv_dlopen in 12714 dlopen) 12715 save_CPPFLAGS=$CPPFLAGS 12716 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12717 12718 save_LDFLAGS=$LDFLAGS 12719 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12720 12721 save_LIBS=$LIBS 12722 LIBS="$lt_cv_dlopen_libs $LIBS" 12723 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12725$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12726if ${lt_cv_dlopen_self+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 if test yes = "$cross_compiling"; then : 12730 lt_cv_dlopen_self=cross 12731else 12732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12733 lt_status=$lt_dlunknown 12734 cat > conftest.$ac_ext <<_LT_EOF 12735#line $LINENO "configure" 12736#include "confdefs.h" 12737 12738#if HAVE_DLFCN_H 12739#include <dlfcn.h> 12740#endif 12741 12742#include <stdio.h> 12743 12744#ifdef RTLD_GLOBAL 12745# define LT_DLGLOBAL RTLD_GLOBAL 12746#else 12747# ifdef DL_GLOBAL 12748# define LT_DLGLOBAL DL_GLOBAL 12749# else 12750# define LT_DLGLOBAL 0 12751# endif 12752#endif 12753 12754/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12755 find out it does not work in some platform. */ 12756#ifndef LT_DLLAZY_OR_NOW 12757# ifdef RTLD_LAZY 12758# define LT_DLLAZY_OR_NOW RTLD_LAZY 12759# else 12760# ifdef DL_LAZY 12761# define LT_DLLAZY_OR_NOW DL_LAZY 12762# else 12763# ifdef RTLD_NOW 12764# define LT_DLLAZY_OR_NOW RTLD_NOW 12765# else 12766# ifdef DL_NOW 12767# define LT_DLLAZY_OR_NOW DL_NOW 12768# else 12769# define LT_DLLAZY_OR_NOW 0 12770# endif 12771# endif 12772# endif 12773# endif 12774#endif 12775 12776/* When -fvisibility=hidden is used, assume the code has been annotated 12777 correspondingly for the symbols needed. */ 12778#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12779int fnord () __attribute__((visibility("default"))); 12780#endif 12781 12782int fnord () { return 42; } 12783int main () 12784{ 12785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12786 int status = $lt_dlunknown; 12787 12788 if (self) 12789 { 12790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12791 else 12792 { 12793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12794 else puts (dlerror ()); 12795 } 12796 /* dlclose (self); */ 12797 } 12798 else 12799 puts (dlerror ()); 12800 12801 return status; 12802} 12803_LT_EOF 12804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12805 (eval $ac_link) 2>&5 12806 ac_status=$? 12807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12808 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12809 (./conftest; exit; ) >&5 2>/dev/null 12810 lt_status=$? 12811 case x$lt_status in 12812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12814 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12815 esac 12816 else : 12817 # compilation failed 12818 lt_cv_dlopen_self=no 12819 fi 12820fi 12821rm -fr conftest* 12822 12823 12824fi 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12826$as_echo "$lt_cv_dlopen_self" >&6; } 12827 12828 if test yes = "$lt_cv_dlopen_self"; then 12829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12831$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12832if ${lt_cv_dlopen_self_static+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834else 12835 if test yes = "$cross_compiling"; then : 12836 lt_cv_dlopen_self_static=cross 12837else 12838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12839 lt_status=$lt_dlunknown 12840 cat > conftest.$ac_ext <<_LT_EOF 12841#line $LINENO "configure" 12842#include "confdefs.h" 12843 12844#if HAVE_DLFCN_H 12845#include <dlfcn.h> 12846#endif 12847 12848#include <stdio.h> 12849 12850#ifdef RTLD_GLOBAL 12851# define LT_DLGLOBAL RTLD_GLOBAL 12852#else 12853# ifdef DL_GLOBAL 12854# define LT_DLGLOBAL DL_GLOBAL 12855# else 12856# define LT_DLGLOBAL 0 12857# endif 12858#endif 12859 12860/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12861 find out it does not work in some platform. */ 12862#ifndef LT_DLLAZY_OR_NOW 12863# ifdef RTLD_LAZY 12864# define LT_DLLAZY_OR_NOW RTLD_LAZY 12865# else 12866# ifdef DL_LAZY 12867# define LT_DLLAZY_OR_NOW DL_LAZY 12868# else 12869# ifdef RTLD_NOW 12870# define LT_DLLAZY_OR_NOW RTLD_NOW 12871# else 12872# ifdef DL_NOW 12873# define LT_DLLAZY_OR_NOW DL_NOW 12874# else 12875# define LT_DLLAZY_OR_NOW 0 12876# endif 12877# endif 12878# endif 12879# endif 12880#endif 12881 12882/* When -fvisibility=hidden is used, assume the code has been annotated 12883 correspondingly for the symbols needed. */ 12884#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12885int fnord () __attribute__((visibility("default"))); 12886#endif 12887 12888int fnord () { return 42; } 12889int main () 12890{ 12891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12892 int status = $lt_dlunknown; 12893 12894 if (self) 12895 { 12896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12897 else 12898 { 12899 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12900 else puts (dlerror ()); 12901 } 12902 /* dlclose (self); */ 12903 } 12904 else 12905 puts (dlerror ()); 12906 12907 return status; 12908} 12909_LT_EOF 12910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12911 (eval $ac_link) 2>&5 12912 ac_status=$? 12913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12914 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12915 (./conftest; exit; ) >&5 2>/dev/null 12916 lt_status=$? 12917 case x$lt_status in 12918 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12919 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12920 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12921 esac 12922 else : 12923 # compilation failed 12924 lt_cv_dlopen_self_static=no 12925 fi 12926fi 12927rm -fr conftest* 12928 12929 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12932$as_echo "$lt_cv_dlopen_self_static" >&6; } 12933 fi 12934 12935 CPPFLAGS=$save_CPPFLAGS 12936 LDFLAGS=$save_LDFLAGS 12937 LIBS=$save_LIBS 12938 ;; 12939 esac 12940 12941 case $lt_cv_dlopen_self in 12942 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12943 *) enable_dlopen_self=unknown ;; 12944 esac 12945 12946 case $lt_cv_dlopen_self_static in 12947 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12948 *) enable_dlopen_self_static=unknown ;; 12949 esac 12950fi 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968striplib= 12969old_striplib= 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12971$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12972if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12973 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12974 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12976$as_echo "yes" >&6; } 12977else 12978# FIXME - insert some real tests, host_os isn't really good enough 12979 case $host_os in 12980 darwin*) 12981 if test -n "$STRIP"; then 12982 striplib="$STRIP -x" 12983 old_striplib="$STRIP -S" 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12985$as_echo "yes" >&6; } 12986 else 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12988$as_echo "no" >&6; } 12989 fi 12990 ;; 12991 *) 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12993$as_echo "no" >&6; } 12994 ;; 12995 esac 12996fi 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 # Report what library types will actually be built 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13011$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13013$as_echo "$can_build_shared" >&6; } 13014 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13016$as_echo_n "checking whether to build shared libraries... " >&6; } 13017 test no = "$can_build_shared" && enable_shared=no 13018 13019 # On AIX, shared libraries and static libraries use the same namespace, and 13020 # are all built from PIC. 13021 case $host_os in 13022 aix3*) 13023 test yes = "$enable_shared" && enable_static=no 13024 if test -n "$RANLIB"; then 13025 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13026 postinstall_cmds='$RANLIB $lib' 13027 fi 13028 ;; 13029 13030 aix[4-9]*) 13031 if test ia64 != "$host_cpu"; then 13032 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13033 yes,aix,yes) ;; # shared object as lib.so file only 13034 yes,svr4,*) ;; # shared object as lib.so archive member only 13035 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13036 esac 13037 fi 13038 ;; 13039 esac 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13041$as_echo "$enable_shared" >&6; } 13042 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13044$as_echo_n "checking whether to build static libraries... " >&6; } 13045 # Make sure either enable_shared or enable_static is yes. 13046 test yes = "$enable_shared" || enable_static=yes 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13048$as_echo "$enable_static" >&6; } 13049 13050 13051 13052 13053fi 13054ac_ext=c 13055ac_cpp='$CPP $CPPFLAGS' 13056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13058ac_compiler_gnu=$ac_cv_c_compiler_gnu 13059 13060CC=$lt_save_CC 13061 13062 if test -n "$CXX" && ( test no != "$CXX" && 13063 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13064 (test g++ != "$CXX"))); then 13065 ac_ext=cpp 13066ac_cpp='$CXXCPP $CPPFLAGS' 13067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13071$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13072if test -z "$CXXCPP"; then 13073 if ${ac_cv_prog_CXXCPP+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075else 13076 # Double quotes because CXXCPP needs to be expanded 13077 for CXXCPP in "$CXX -E" "/lib/cpp" 13078 do 13079 ac_preproc_ok=false 13080for ac_cxx_preproc_warn_flag in '' yes 13081do 13082 # Use a header file that comes with gcc, so configuring glibc 13083 # with a fresh cross-compiler works. 13084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13085 # <limits.h> exists even on freestanding compilers. 13086 # On the NeXT, cc -E runs the code through the compiler's parser, 13087 # not just through cpp. "Syntax error" is here to catch this case. 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090#ifdef __STDC__ 13091# include <limits.h> 13092#else 13093# include <assert.h> 13094#endif 13095 Syntax error 13096_ACEOF 13097if ac_fn_cxx_try_cpp "$LINENO"; then : 13098 13099else 13100 # Broken: fails on valid input. 13101continue 13102fi 13103rm -f conftest.err conftest.i conftest.$ac_ext 13104 13105 # OK, works on sane cases. Now check whether nonexistent headers 13106 # can be detected and how. 13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13108/* end confdefs.h. */ 13109#include <ac_nonexistent.h> 13110_ACEOF 13111if ac_fn_cxx_try_cpp "$LINENO"; then : 13112 # Broken: success on invalid input. 13113continue 13114else 13115 # Passes both tests. 13116ac_preproc_ok=: 13117break 13118fi 13119rm -f conftest.err conftest.i conftest.$ac_ext 13120 13121done 13122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13123rm -f conftest.i conftest.err conftest.$ac_ext 13124if $ac_preproc_ok; then : 13125 break 13126fi 13127 13128 done 13129 ac_cv_prog_CXXCPP=$CXXCPP 13130 13131fi 13132 CXXCPP=$ac_cv_prog_CXXCPP 13133else 13134 ac_cv_prog_CXXCPP=$CXXCPP 13135fi 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13137$as_echo "$CXXCPP" >&6; } 13138ac_preproc_ok=false 13139for ac_cxx_preproc_warn_flag in '' yes 13140do 13141 # Use a header file that comes with gcc, so configuring glibc 13142 # with a fresh cross-compiler works. 13143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13144 # <limits.h> exists even on freestanding compilers. 13145 # On the NeXT, cc -E runs the code through the compiler's parser, 13146 # not just through cpp. "Syntax error" is here to catch this case. 13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13148/* end confdefs.h. */ 13149#ifdef __STDC__ 13150# include <limits.h> 13151#else 13152# include <assert.h> 13153#endif 13154 Syntax error 13155_ACEOF 13156if ac_fn_cxx_try_cpp "$LINENO"; then : 13157 13158else 13159 # Broken: fails on valid input. 13160continue 13161fi 13162rm -f conftest.err conftest.i conftest.$ac_ext 13163 13164 # OK, works on sane cases. Now check whether nonexistent headers 13165 # can be detected and how. 13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13167/* end confdefs.h. */ 13168#include <ac_nonexistent.h> 13169_ACEOF 13170if ac_fn_cxx_try_cpp "$LINENO"; then : 13171 # Broken: success on invalid input. 13172continue 13173else 13174 # Passes both tests. 13175ac_preproc_ok=: 13176break 13177fi 13178rm -f conftest.err conftest.i conftest.$ac_ext 13179 13180done 13181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13182rm -f conftest.i conftest.err conftest.$ac_ext 13183if $ac_preproc_ok; then : 13184 13185else 13186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13188as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13189See \`config.log' for more details" "$LINENO" 5; } 13190fi 13191 13192ac_ext=c 13193ac_cpp='$CPP $CPPFLAGS' 13194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13196ac_compiler_gnu=$ac_cv_c_compiler_gnu 13197 13198else 13199 _lt_caught_CXX_error=yes 13200fi 13201 13202ac_ext=cpp 13203ac_cpp='$CXXCPP $CPPFLAGS' 13204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13207 13208archive_cmds_need_lc_CXX=no 13209allow_undefined_flag_CXX= 13210always_export_symbols_CXX=no 13211archive_expsym_cmds_CXX= 13212compiler_needs_object_CXX=no 13213export_dynamic_flag_spec_CXX= 13214hardcode_direct_CXX=no 13215hardcode_direct_absolute_CXX=no 13216hardcode_libdir_flag_spec_CXX= 13217hardcode_libdir_separator_CXX= 13218hardcode_minus_L_CXX=no 13219hardcode_shlibpath_var_CXX=unsupported 13220hardcode_automatic_CXX=no 13221inherit_rpath_CXX=no 13222module_cmds_CXX= 13223module_expsym_cmds_CXX= 13224link_all_deplibs_CXX=unknown 13225old_archive_cmds_CXX=$old_archive_cmds 13226reload_flag_CXX=$reload_flag 13227reload_cmds_CXX=$reload_cmds 13228no_undefined_flag_CXX= 13229whole_archive_flag_spec_CXX= 13230enable_shared_with_static_runtimes_CXX=no 13231 13232# Source file extension for C++ test sources. 13233ac_ext=cpp 13234 13235# Object file extension for compiled C++ test sources. 13236objext=o 13237objext_CXX=$objext 13238 13239# No sense in running all these tests if we already determined that 13240# the CXX compiler isn't working. Some variables (like enable_shared) 13241# are currently assumed to apply to all compilers on this platform, 13242# and will be corrupted by setting them based on a non-working compiler. 13243if test yes != "$_lt_caught_CXX_error"; then 13244 # Code to be used in simple compile tests 13245 lt_simple_compile_test_code="int some_variable = 0;" 13246 13247 # Code to be used in simple link tests 13248 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13249 13250 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13251 13252 13253 13254 13255 13256 13257# If no C compiler was specified, use CC. 13258LTCC=${LTCC-"$CC"} 13259 13260# If no C compiler flags were specified, use CFLAGS. 13261LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13262 13263# Allow CC to be a program name with arguments. 13264compiler=$CC 13265 13266 13267 # save warnings/boilerplate of simple test code 13268 ac_outfile=conftest.$ac_objext 13269echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13270eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13271_lt_compiler_boilerplate=`cat conftest.err` 13272$RM conftest* 13273 13274 ac_outfile=conftest.$ac_objext 13275echo "$lt_simple_link_test_code" >conftest.$ac_ext 13276eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13277_lt_linker_boilerplate=`cat conftest.err` 13278$RM -r conftest* 13279 13280 13281 # Allow CC to be a program name with arguments. 13282 lt_save_CC=$CC 13283 lt_save_CFLAGS=$CFLAGS 13284 lt_save_LD=$LD 13285 lt_save_GCC=$GCC 13286 GCC=$GXX 13287 lt_save_with_gnu_ld=$with_gnu_ld 13288 lt_save_path_LD=$lt_cv_path_LD 13289 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13290 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13291 else 13292 $as_unset lt_cv_prog_gnu_ld 13293 fi 13294 if test -n "${lt_cv_path_LDCXX+set}"; then 13295 lt_cv_path_LD=$lt_cv_path_LDCXX 13296 else 13297 $as_unset lt_cv_path_LD 13298 fi 13299 test -z "${LDCXX+set}" || LD=$LDCXX 13300 CC=${CXX-"c++"} 13301 CFLAGS=$CXXFLAGS 13302 compiler=$CC 13303 compiler_CXX=$CC 13304 func_cc_basename $compiler 13305cc_basename=$func_cc_basename_result 13306 13307 13308 if test -n "$compiler"; then 13309 # We don't want -fno-exception when compiling C++ code, so set the 13310 # no_builtin_flag separately 13311 if test yes = "$GXX"; then 13312 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13313 else 13314 lt_prog_compiler_no_builtin_flag_CXX= 13315 fi 13316 13317 if test yes = "$GXX"; then 13318 # Set up default GNU C++ configuration 13319 13320 13321 13322# Check whether --with-gnu-ld was given. 13323if test "${with_gnu_ld+set}" = set; then : 13324 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13325else 13326 with_gnu_ld=no 13327fi 13328 13329ac_prog=ld 13330if test yes = "$GCC"; then 13331 # Check if gcc -print-prog-name=ld gives a path. 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13333$as_echo_n "checking for ld used by $CC... " >&6; } 13334 case $host in 13335 *-*-mingw*) 13336 # gcc leaves a trailing carriage return, which upsets mingw 13337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13338 *) 13339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13340 esac 13341 case $ac_prog in 13342 # Accept absolute paths. 13343 [\\/]* | ?:[\\/]*) 13344 re_direlt='/[^/][^/]*/\.\./' 13345 # Canonicalize the pathname of ld 13346 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13347 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13348 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13349 done 13350 test -z "$LD" && LD=$ac_prog 13351 ;; 13352 "") 13353 # If it fails, then pretend we aren't using GCC. 13354 ac_prog=ld 13355 ;; 13356 *) 13357 # If it is relative, then search for the first ld in PATH. 13358 with_gnu_ld=unknown 13359 ;; 13360 esac 13361elif test yes = "$with_gnu_ld"; then 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13363$as_echo_n "checking for GNU ld... " >&6; } 13364else 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13366$as_echo_n "checking for non-GNU ld... " >&6; } 13367fi 13368if ${lt_cv_path_LD+:} false; then : 13369 $as_echo_n "(cached) " >&6 13370else 13371 if test -z "$LD"; then 13372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13373 for ac_dir in $PATH; do 13374 IFS=$lt_save_ifs 13375 test -z "$ac_dir" && ac_dir=. 13376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13377 lt_cv_path_LD=$ac_dir/$ac_prog 13378 # Check to see if the program is GNU ld. I'd rather use --version, 13379 # but apparently some variants of GNU ld only accept -v. 13380 # Break only if it was the GNU/non-GNU ld that we prefer. 13381 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13382 *GNU* | *'with BFD'*) 13383 test no != "$with_gnu_ld" && break 13384 ;; 13385 *) 13386 test yes != "$with_gnu_ld" && break 13387 ;; 13388 esac 13389 fi 13390 done 13391 IFS=$lt_save_ifs 13392else 13393 lt_cv_path_LD=$LD # Let the user override the test with a path. 13394fi 13395fi 13396 13397LD=$lt_cv_path_LD 13398if test -n "$LD"; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13400$as_echo "$LD" >&6; } 13401else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13403$as_echo "no" >&6; } 13404fi 13405test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13407$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13408if ${lt_cv_prog_gnu_ld+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410else 13411 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13412case `$LD -v 2>&1 </dev/null` in 13413*GNU* | *'with BFD'*) 13414 lt_cv_prog_gnu_ld=yes 13415 ;; 13416*) 13417 lt_cv_prog_gnu_ld=no 13418 ;; 13419esac 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13422$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13423with_gnu_ld=$lt_cv_prog_gnu_ld 13424 13425 13426 13427 13428 13429 13430 13431 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13432 # archiving commands below assume that GNU ld is being used. 13433 if test yes = "$with_gnu_ld"; then 13434 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13435 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' 13436 13437 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13438 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13439 13440 # If archive_cmds runs LD, not CC, wlarc should be empty 13441 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13442 # investigate it a little bit more. (MM) 13443 wlarc='$wl' 13444 13445 # ancient GNU ld didn't support --whole-archive et. al. 13446 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13447 $GREP 'no-whole-archive' > /dev/null; then 13448 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13449 else 13450 whole_archive_flag_spec_CXX= 13451 fi 13452 else 13453 with_gnu_ld=no 13454 wlarc= 13455 13456 # A generic and very simple default shared library creation 13457 # command for GNU C++ for the case where it uses the native 13458 # linker, instead of GNU ld. If possible, this setting should 13459 # overridden to take advantage of the native linker features on 13460 # the platform it is being used on. 13461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13462 fi 13463 13464 # Commands to make compiler produce verbose output that lists 13465 # what "hidden" libraries, object files and flags are used when 13466 # linking a shared library. 13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13468 13469 else 13470 GXX=no 13471 with_gnu_ld=no 13472 wlarc= 13473 fi 13474 13475 # PORTME: fill in a description of your system's C++ link characteristics 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13477$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13478 ld_shlibs_CXX=yes 13479 case $host_os in 13480 aix3*) 13481 # FIXME: insert proper C++ library support 13482 ld_shlibs_CXX=no 13483 ;; 13484 aix[4-9]*) 13485 if test ia64 = "$host_cpu"; then 13486 # On IA64, the linker does run time linking by default, so we don't 13487 # have to do anything special. 13488 aix_use_runtimelinking=no 13489 exp_sym_flag='-Bexport' 13490 no_entry_flag= 13491 else 13492 aix_use_runtimelinking=no 13493 13494 # Test if we are trying to use run time linking or normal 13495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13496 # have runtime linking enabled, and use it for executables. 13497 # For shared libraries, we enable/disable runtime linking 13498 # depending on the kind of the shared library created - 13499 # when "with_aix_soname,aix_use_runtimelinking" is: 13500 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13501 # "aix,yes" lib.so shared, rtl:yes, for executables 13502 # lib.a static archive 13503 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13504 # lib.a(lib.so.V) shared, rtl:no, for executables 13505 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13506 # lib.a(lib.so.V) shared, rtl:no 13507 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13508 # lib.a static archive 13509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13510 for ld_flag in $LDFLAGS; do 13511 case $ld_flag in 13512 *-brtl*) 13513 aix_use_runtimelinking=yes 13514 break 13515 ;; 13516 esac 13517 done 13518 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13519 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13520 # so we don't have lib.a shared libs to link our executables. 13521 # We have to force runtime linking in this case. 13522 aix_use_runtimelinking=yes 13523 LDFLAGS="$LDFLAGS -Wl,-brtl" 13524 fi 13525 ;; 13526 esac 13527 13528 exp_sym_flag='-bexport' 13529 no_entry_flag='-bnoentry' 13530 fi 13531 13532 # When large executables or shared objects are built, AIX ld can 13533 # have problems creating the table of contents. If linking a library 13534 # or program results in "error TOC overflow" add -mminimal-toc to 13535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13537 13538 archive_cmds_CXX='' 13539 hardcode_direct_CXX=yes 13540 hardcode_direct_absolute_CXX=yes 13541 hardcode_libdir_separator_CXX=':' 13542 link_all_deplibs_CXX=yes 13543 file_list_spec_CXX='$wl-f,' 13544 case $with_aix_soname,$aix_use_runtimelinking in 13545 aix,*) ;; # no import file 13546 svr4,* | *,yes) # use import file 13547 # The Import File defines what to hardcode. 13548 hardcode_direct_CXX=no 13549 hardcode_direct_absolute_CXX=no 13550 ;; 13551 esac 13552 13553 if test yes = "$GXX"; then 13554 case $host_os in aix4.[012]|aix4.[012].*) 13555 # We only want to do this on AIX 4.2 and lower, the check 13556 # below for broken collect2 doesn't work under 4.3+ 13557 collect2name=`$CC -print-prog-name=collect2` 13558 if test -f "$collect2name" && 13559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13560 then 13561 # We have reworked collect2 13562 : 13563 else 13564 # We have old collect2 13565 hardcode_direct_CXX=unsupported 13566 # It fails to find uninstalled libraries when the uninstalled 13567 # path is not listed in the libpath. Setting hardcode_minus_L 13568 # to unsupported forces relinking 13569 hardcode_minus_L_CXX=yes 13570 hardcode_libdir_flag_spec_CXX='-L$libdir' 13571 hardcode_libdir_separator_CXX= 13572 fi 13573 esac 13574 shared_flag='-shared' 13575 if test yes = "$aix_use_runtimelinking"; then 13576 shared_flag=$shared_flag' $wl-G' 13577 fi 13578 # Need to ensure runtime linking is disabled for the traditional 13579 # shared library, or the linker may eventually find shared libraries 13580 # /with/ Import File - we do not want to mix them. 13581 shared_flag_aix='-shared' 13582 shared_flag_svr4='-shared $wl-G' 13583 else 13584 # not using gcc 13585 if test ia64 = "$host_cpu"; then 13586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13587 # chokes on -Wl,-G. The following line is correct: 13588 shared_flag='-G' 13589 else 13590 if test yes = "$aix_use_runtimelinking"; then 13591 shared_flag='$wl-G' 13592 else 13593 shared_flag='$wl-bM:SRE' 13594 fi 13595 shared_flag_aix='$wl-bM:SRE' 13596 shared_flag_svr4='$wl-G' 13597 fi 13598 fi 13599 13600 export_dynamic_flag_spec_CXX='$wl-bexpall' 13601 # It seems that -bexpall does not export symbols beginning with 13602 # underscore (_), so it is better to generate a list of symbols to 13603 # export. 13604 always_export_symbols_CXX=yes 13605 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13606 # Warning - without using the other runtime loading flags (-brtl), 13607 # -berok will link without error, but may produce a broken library. 13608 # The "-G" linker flag allows undefined symbols. 13609 no_undefined_flag_CXX='-bernotok' 13610 # Determine the default libpath from the value encoded in an empty 13611 # executable. 13612 if test set = "${lt_cv_aix_libpath+set}"; then 13613 aix_libpath=$lt_cv_aix_libpath 13614else 13615 if ${lt_cv_aix_libpath__CXX+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617else 13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13619/* end confdefs.h. */ 13620 13621int 13622main () 13623{ 13624 13625 ; 13626 return 0; 13627} 13628_ACEOF 13629if ac_fn_cxx_try_link "$LINENO"; then : 13630 13631 lt_aix_libpath_sed=' 13632 /Import File Strings/,/^$/ { 13633 /^0/ { 13634 s/^0 *\([^ ]*\) *$/\1/ 13635 p 13636 } 13637 }' 13638 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13639 # Check for a 64-bit object if we didn't find anything. 13640 if test -z "$lt_cv_aix_libpath__CXX"; then 13641 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13642 fi 13643fi 13644rm -f core conftest.err conftest.$ac_objext \ 13645 conftest$ac_exeext conftest.$ac_ext 13646 if test -z "$lt_cv_aix_libpath__CXX"; then 13647 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13648 fi 13649 13650fi 13651 13652 aix_libpath=$lt_cv_aix_libpath__CXX 13653fi 13654 13655 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13656 13657 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13658 else 13659 if test ia64 = "$host_cpu"; then 13660 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13661 allow_undefined_flag_CXX="-z nodefs" 13662 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" 13663 else 13664 # Determine the default libpath from the value encoded in an 13665 # empty executable. 13666 if test set = "${lt_cv_aix_libpath+set}"; then 13667 aix_libpath=$lt_cv_aix_libpath 13668else 13669 if ${lt_cv_aix_libpath__CXX+:} false; then : 13670 $as_echo_n "(cached) " >&6 13671else 13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13673/* end confdefs.h. */ 13674 13675int 13676main () 13677{ 13678 13679 ; 13680 return 0; 13681} 13682_ACEOF 13683if ac_fn_cxx_try_link "$LINENO"; then : 13684 13685 lt_aix_libpath_sed=' 13686 /Import File Strings/,/^$/ { 13687 /^0/ { 13688 s/^0 *\([^ ]*\) *$/\1/ 13689 p 13690 } 13691 }' 13692 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13693 # Check for a 64-bit object if we didn't find anything. 13694 if test -z "$lt_cv_aix_libpath__CXX"; then 13695 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13696 fi 13697fi 13698rm -f core conftest.err conftest.$ac_objext \ 13699 conftest$ac_exeext conftest.$ac_ext 13700 if test -z "$lt_cv_aix_libpath__CXX"; then 13701 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13702 fi 13703 13704fi 13705 13706 aix_libpath=$lt_cv_aix_libpath__CXX 13707fi 13708 13709 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13710 # Warning - without using the other run time loading flags, 13711 # -berok will link without error, but may produce a broken library. 13712 no_undefined_flag_CXX=' $wl-bernotok' 13713 allow_undefined_flag_CXX=' $wl-berok' 13714 if test yes = "$with_gnu_ld"; then 13715 # We only use this code for GNU lds that support --whole-archive. 13716 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13717 else 13718 # Exported symbols can be pulled into shared objects from archives 13719 whole_archive_flag_spec_CXX='$convenience' 13720 fi 13721 archive_cmds_need_lc_CXX=yes 13722 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13723 # -brtl affects multiple linker settings, -berok does not and is overridden later 13724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13725 if test svr4 != "$with_aix_soname"; then 13726 # This is similar to how AIX traditionally builds its shared 13727 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13728 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13729 fi 13730 if test aix != "$with_aix_soname"; then 13731 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13732 else 13733 # used by -dlpreopen to get the symbols 13734 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13735 fi 13736 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13737 fi 13738 fi 13739 ;; 13740 13741 beos*) 13742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13743 allow_undefined_flag_CXX=unsupported 13744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13745 # support --undefined. This deserves some investigation. FIXME 13746 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13747 else 13748 ld_shlibs_CXX=no 13749 fi 13750 ;; 13751 13752 chorus*) 13753 case $cc_basename in 13754 *) 13755 # FIXME: insert proper C++ library support 13756 ld_shlibs_CXX=no 13757 ;; 13758 esac 13759 ;; 13760 13761 cygwin* | mingw* | pw32* | cegcc*) 13762 case $GXX,$cc_basename in 13763 ,cl* | no,cl*) 13764 # Native MSVC 13765 # hardcode_libdir_flag_spec is actually meaningless, as there is 13766 # no search path for DLLs. 13767 hardcode_libdir_flag_spec_CXX=' ' 13768 allow_undefined_flag_CXX=unsupported 13769 always_export_symbols_CXX=yes 13770 file_list_spec_CXX='@' 13771 # Tell ltmain to make .lib files, not .a files. 13772 libext=lib 13773 # Tell ltmain to make .dll files, not .so files. 13774 shrext_cmds=.dll 13775 # FIXME: Setting linknames here is a bad hack. 13776 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13777 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13778 cp "$export_symbols" "$output_objdir/$soname.def"; 13779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13780 else 13781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13782 fi~ 13783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13784 linknames=' 13785 # The linker will not automatically build a static lib if we build a DLL. 13786 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13787 enable_shared_with_static_runtimes_CXX=yes 13788 # Don't use ranlib 13789 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13790 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13791 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13792 case $lt_outputfile in 13793 *.exe|*.EXE) ;; 13794 *) 13795 lt_outputfile=$lt_outputfile.exe 13796 lt_tool_outputfile=$lt_tool_outputfile.exe 13797 ;; 13798 esac~ 13799 func_to_tool_file "$lt_outputfile"~ 13800 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13801 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13802 $RM "$lt_outputfile.manifest"; 13803 fi' 13804 ;; 13805 *) 13806 # g++ 13807 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13808 # as there is no search path for DLLs. 13809 hardcode_libdir_flag_spec_CXX='-L$libdir' 13810 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13811 allow_undefined_flag_CXX=unsupported 13812 always_export_symbols_CXX=no 13813 enable_shared_with_static_runtimes_CXX=yes 13814 13815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13816 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' 13817 # If the export-symbols file already is a .def file, use it as 13818 # is; otherwise, prepend EXPORTS... 13819 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13820 cp $export_symbols $output_objdir/$soname.def; 13821 else 13822 echo EXPORTS > $output_objdir/$soname.def; 13823 cat $export_symbols >> $output_objdir/$soname.def; 13824 fi~ 13825 $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' 13826 else 13827 ld_shlibs_CXX=no 13828 fi 13829 ;; 13830 esac 13831 ;; 13832 darwin* | rhapsody*) 13833 13834 13835 archive_cmds_need_lc_CXX=no 13836 hardcode_direct_CXX=no 13837 hardcode_automatic_CXX=yes 13838 hardcode_shlibpath_var_CXX=unsupported 13839 if test yes = "$lt_cv_ld_force_load"; then 13840 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\"`' 13841 13842 else 13843 whole_archive_flag_spec_CXX='' 13844 fi 13845 link_all_deplibs_CXX=yes 13846 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13847 case $cc_basename in 13848 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13849 *) _lt_dar_can_shared=$GCC ;; 13850 esac 13851 if test yes = "$_lt_dar_can_shared"; then 13852 output_verbose_link_cmd=func_echo_all 13853 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" 13854 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13855 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" 13856 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" 13857 if test yes != "$lt_cv_apple_cc_single_mod"; then 13858 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" 13859 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" 13860 fi 13861 13862 else 13863 ld_shlibs_CXX=no 13864 fi 13865 13866 ;; 13867 13868 os2*) 13869 hardcode_libdir_flag_spec_CXX='-L$libdir' 13870 hardcode_minus_L_CXX=yes 13871 allow_undefined_flag_CXX=unsupported 13872 shrext_cmds=.dll 13873 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13876 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13877 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13879 emximp -o $lib $output_objdir/$libname.def' 13880 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13884 prefix_cmds="$SED"~ 13885 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13886 prefix_cmds="$prefix_cmds -e 1d"; 13887 fi~ 13888 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13889 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13890 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13891 emximp -o $lib $output_objdir/$libname.def' 13892 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13893 enable_shared_with_static_runtimes_CXX=yes 13894 ;; 13895 13896 dgux*) 13897 case $cc_basename in 13898 ec++*) 13899 # FIXME: insert proper C++ library support 13900 ld_shlibs_CXX=no 13901 ;; 13902 ghcx*) 13903 # Green Hills C++ Compiler 13904 # FIXME: insert proper C++ library support 13905 ld_shlibs_CXX=no 13906 ;; 13907 *) 13908 # FIXME: insert proper C++ library support 13909 ld_shlibs_CXX=no 13910 ;; 13911 esac 13912 ;; 13913 13914 freebsd2.*) 13915 # C++ shared libraries reported to be fairly broken before 13916 # switch to ELF 13917 ld_shlibs_CXX=no 13918 ;; 13919 13920 freebsd-elf*) 13921 archive_cmds_need_lc_CXX=no 13922 ;; 13923 13924 freebsd* | dragonfly*) 13925 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13926 # conventions 13927 ld_shlibs_CXX=yes 13928 ;; 13929 13930 haiku*) 13931 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13932 link_all_deplibs_CXX=yes 13933 ;; 13934 13935 hpux9*) 13936 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13937 hardcode_libdir_separator_CXX=: 13938 export_dynamic_flag_spec_CXX='$wl-E' 13939 hardcode_direct_CXX=yes 13940 hardcode_minus_L_CXX=yes # Not in the search PATH, 13941 # but as the default 13942 # location of the library. 13943 13944 case $cc_basename in 13945 CC*) 13946 # FIXME: insert proper C++ library support 13947 ld_shlibs_CXX=no 13948 ;; 13949 aCC*) 13950 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13951 # Commands to make compiler produce verbose output that lists 13952 # what "hidden" libraries, object files and flags are used when 13953 # linking a shared library. 13954 # 13955 # There doesn't appear to be a way to prevent this compiler from 13956 # explicitly linking system object files so we need to strip them 13957 # from the output so that they don't get included in the library 13958 # dependencies. 13959 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"' 13960 ;; 13961 *) 13962 if test yes = "$GXX"; then 13963 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13964 else 13965 # FIXME: insert proper C++ library support 13966 ld_shlibs_CXX=no 13967 fi 13968 ;; 13969 esac 13970 ;; 13971 13972 hpux10*|hpux11*) 13973 if test no = "$with_gnu_ld"; then 13974 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13975 hardcode_libdir_separator_CXX=: 13976 13977 case $host_cpu in 13978 hppa*64*|ia64*) 13979 ;; 13980 *) 13981 export_dynamic_flag_spec_CXX='$wl-E' 13982 ;; 13983 esac 13984 fi 13985 case $host_cpu in 13986 hppa*64*|ia64*) 13987 hardcode_direct_CXX=no 13988 hardcode_shlibpath_var_CXX=no 13989 ;; 13990 *) 13991 hardcode_direct_CXX=yes 13992 hardcode_direct_absolute_CXX=yes 13993 hardcode_minus_L_CXX=yes # Not in the search PATH, 13994 # but as the default 13995 # location of the library. 13996 ;; 13997 esac 13998 13999 case $cc_basename in 14000 CC*) 14001 # FIXME: insert proper C++ library support 14002 ld_shlibs_CXX=no 14003 ;; 14004 aCC*) 14005 case $host_cpu in 14006 hppa*64*) 14007 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14008 ;; 14009 ia64*) 14010 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14011 ;; 14012 *) 14013 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14014 ;; 14015 esac 14016 # Commands to make compiler produce verbose output that lists 14017 # what "hidden" libraries, object files and flags are used when 14018 # linking a shared library. 14019 # 14020 # There doesn't appear to be a way to prevent this compiler from 14021 # explicitly linking system object files so we need to strip them 14022 # from the output so that they don't get included in the library 14023 # dependencies. 14024 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"' 14025 ;; 14026 *) 14027 if test yes = "$GXX"; then 14028 if test no = "$with_gnu_ld"; then 14029 case $host_cpu in 14030 hppa*64*) 14031 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14032 ;; 14033 ia64*) 14034 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14035 ;; 14036 *) 14037 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14038 ;; 14039 esac 14040 fi 14041 else 14042 # FIXME: insert proper C++ library support 14043 ld_shlibs_CXX=no 14044 fi 14045 ;; 14046 esac 14047 ;; 14048 14049 interix[3-9]*) 14050 hardcode_direct_CXX=no 14051 hardcode_shlibpath_var_CXX=no 14052 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14053 export_dynamic_flag_spec_CXX='$wl-E' 14054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14055 # Instead, shared libraries are loaded at an image base (0x10000000 by 14056 # default) and relocated if they conflict, which is a slow very memory 14057 # consuming and fragmenting process. To avoid this, we pick a random, 14058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14059 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14060 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' 14061 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' 14062 ;; 14063 irix5* | irix6*) 14064 case $cc_basename in 14065 CC*) 14066 # SGI C++ 14067 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' 14068 14069 # Archives containing C++ object files must be created using 14070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14071 # necessary to make sure instantiated templates are included 14072 # in the archive. 14073 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14074 ;; 14075 *) 14076 if test yes = "$GXX"; then 14077 if test no = "$with_gnu_ld"; then 14078 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14079 else 14080 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14081 fi 14082 fi 14083 link_all_deplibs_CXX=yes 14084 ;; 14085 esac 14086 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14087 hardcode_libdir_separator_CXX=: 14088 inherit_rpath_CXX=yes 14089 ;; 14090 14091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14092 case $cc_basename in 14093 KCC*) 14094 # Kuck and Associates, Inc. (KAI) C++ Compiler 14095 14096 # KCC will only create a shared library if the output file 14097 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14098 # to its proper name (with version) after linking. 14099 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' 14100 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' 14101 # Commands to make compiler produce verbose output that lists 14102 # what "hidden" libraries, object files and flags are used when 14103 # linking a shared library. 14104 # 14105 # There doesn't appear to be a way to prevent this compiler from 14106 # explicitly linking system object files so we need to strip them 14107 # from the output so that they don't get included in the library 14108 # dependencies. 14109 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"' 14110 14111 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14112 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14113 14114 # Archives containing C++ object files must be created using 14115 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14117 ;; 14118 icpc* | ecpc* ) 14119 # Intel C++ 14120 with_gnu_ld=yes 14121 # version 8.0 and above of icpc choke on multiply defined symbols 14122 # if we add $predep_objects and $postdep_objects, however 7.1 and 14123 # earlier do not add the objects themselves. 14124 case `$CC -V 2>&1` in 14125 *"Version 7."*) 14126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14127 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' 14128 ;; 14129 *) # Version 8.0 or newer 14130 tmp_idyn= 14131 case $host_cpu in 14132 ia64*) tmp_idyn=' -i_dynamic';; 14133 esac 14134 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14135 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' 14136 ;; 14137 esac 14138 archive_cmds_need_lc_CXX=no 14139 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14140 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14141 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14142 ;; 14143 pgCC* | pgcpp*) 14144 # Portland Group C++ compiler 14145 case `$CC -V` in 14146 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14147 prelink_cmds_CXX='tpldir=Template.dir~ 14148 rm -rf $tpldir~ 14149 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14150 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14151 old_archive_cmds_CXX='tpldir=Template.dir~ 14152 rm -rf $tpldir~ 14153 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14154 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14155 $RANLIB $oldlib' 14156 archive_cmds_CXX='tpldir=Template.dir~ 14157 rm -rf $tpldir~ 14158 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14159 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14160 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14161 rm -rf $tpldir~ 14162 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14163 $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' 14164 ;; 14165 *) # Version 6 and above use weak symbols 14166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14167 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' 14168 ;; 14169 esac 14170 14171 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14172 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14173 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' 14174 ;; 14175 cxx*) 14176 # Compaq C++ 14177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14178 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' 14179 14180 runpath_var=LD_RUN_PATH 14181 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14182 hardcode_libdir_separator_CXX=: 14183 14184 # Commands to make compiler produce verbose output that lists 14185 # what "hidden" libraries, object files and flags are used when 14186 # linking a shared library. 14187 # 14188 # There doesn't appear to be a way to prevent this compiler from 14189 # explicitly linking system object files so we need to strip them 14190 # from the output so that they don't get included in the library 14191 # dependencies. 14192 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' 14193 ;; 14194 xl* | mpixl* | bgxl*) 14195 # IBM XL 8.0 on PPC, with GNU ld 14196 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14197 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14198 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14199 if test yes = "$supports_anon_versioning"; then 14200 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14202 echo "local: *; };" >> $output_objdir/$libname.ver~ 14203 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14204 fi 14205 ;; 14206 *) 14207 case `$CC -V 2>&1 | sed 5q` in 14208 *Sun\ C*) 14209 # Sun C++ 5.9 14210 no_undefined_flag_CXX=' -zdefs' 14211 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14212 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' 14213 hardcode_libdir_flag_spec_CXX='-R$libdir' 14214 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' 14215 compiler_needs_object_CXX=yes 14216 14217 # Not sure whether something based on 14218 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14219 # would be better. 14220 output_verbose_link_cmd='func_echo_all' 14221 14222 # Archives containing C++ object files must be created using 14223 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14224 # necessary to make sure instantiated templates are included 14225 # in the archive. 14226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14227 ;; 14228 esac 14229 ;; 14230 esac 14231 ;; 14232 14233 lynxos*) 14234 # FIXME: insert proper C++ library support 14235 ld_shlibs_CXX=no 14236 ;; 14237 14238 m88k*) 14239 # FIXME: insert proper C++ library support 14240 ld_shlibs_CXX=no 14241 ;; 14242 14243 mvs*) 14244 case $cc_basename in 14245 cxx*) 14246 # FIXME: insert proper C++ library support 14247 ld_shlibs_CXX=no 14248 ;; 14249 *) 14250 # FIXME: insert proper C++ library support 14251 ld_shlibs_CXX=no 14252 ;; 14253 esac 14254 ;; 14255 14256 netbsd*) 14257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14258 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14259 wlarc= 14260 hardcode_libdir_flag_spec_CXX='-R$libdir' 14261 hardcode_direct_CXX=yes 14262 hardcode_shlibpath_var_CXX=no 14263 fi 14264 # Workaround some broken pre-1.5 toolchains 14265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14266 ;; 14267 14268 *nto* | *qnx*) 14269 ld_shlibs_CXX=yes 14270 ;; 14271 14272 openbsd* | bitrig*) 14273 if test -f /usr/libexec/ld.so; then 14274 hardcode_direct_CXX=yes 14275 hardcode_shlibpath_var_CXX=no 14276 hardcode_direct_absolute_CXX=yes 14277 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14280 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14281 export_dynamic_flag_spec_CXX='$wl-E' 14282 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14283 fi 14284 output_verbose_link_cmd=func_echo_all 14285 else 14286 ld_shlibs_CXX=no 14287 fi 14288 ;; 14289 14290 osf3* | osf4* | osf5*) 14291 case $cc_basename in 14292 KCC*) 14293 # Kuck and Associates, Inc. (KAI) C++ Compiler 14294 14295 # KCC will only create a shared library if the output file 14296 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14297 # to its proper name (with version) after linking. 14298 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' 14299 14300 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14301 hardcode_libdir_separator_CXX=: 14302 14303 # Archives containing C++ object files must be created using 14304 # the KAI C++ compiler. 14305 case $host in 14306 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14307 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14308 esac 14309 ;; 14310 RCC*) 14311 # Rational C++ 2.4.1 14312 # FIXME: insert proper C++ library support 14313 ld_shlibs_CXX=no 14314 ;; 14315 cxx*) 14316 case $host in 14317 osf3*) 14318 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14319 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' 14320 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14321 ;; 14322 *) 14323 allow_undefined_flag_CXX=' -expect_unresolved \*' 14324 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' 14325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14326 echo "-hidden">> $lib.exp~ 14327 $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~ 14328 $RM $lib.exp' 14329 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14330 ;; 14331 esac 14332 14333 hardcode_libdir_separator_CXX=: 14334 14335 # Commands to make compiler produce verbose output that lists 14336 # what "hidden" libraries, object files and flags are used when 14337 # linking a shared library. 14338 # 14339 # There doesn't appear to be a way to prevent this compiler from 14340 # explicitly linking system object files so we need to strip them 14341 # from the output so that they don't get included in the library 14342 # dependencies. 14343 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"' 14344 ;; 14345 *) 14346 if test yes,no = "$GXX,$with_gnu_ld"; then 14347 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14348 case $host in 14349 osf3*) 14350 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' 14351 ;; 14352 *) 14353 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14354 ;; 14355 esac 14356 14357 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14358 hardcode_libdir_separator_CXX=: 14359 14360 # Commands to make compiler produce verbose output that lists 14361 # what "hidden" libraries, object files and flags are used when 14362 # linking a shared library. 14363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14364 14365 else 14366 # FIXME: insert proper C++ library support 14367 ld_shlibs_CXX=no 14368 fi 14369 ;; 14370 esac 14371 ;; 14372 14373 psos*) 14374 # FIXME: insert proper C++ library support 14375 ld_shlibs_CXX=no 14376 ;; 14377 14378 sunos4*) 14379 case $cc_basename in 14380 CC*) 14381 # Sun C++ 4.x 14382 # FIXME: insert proper C++ library support 14383 ld_shlibs_CXX=no 14384 ;; 14385 lcc*) 14386 # Lucid 14387 # FIXME: insert proper C++ library support 14388 ld_shlibs_CXX=no 14389 ;; 14390 *) 14391 # FIXME: insert proper C++ library support 14392 ld_shlibs_CXX=no 14393 ;; 14394 esac 14395 ;; 14396 14397 solaris*) 14398 case $cc_basename in 14399 CC* | sunCC*) 14400 # Sun C++ 4.2, 5.x and Centerline C++ 14401 archive_cmds_need_lc_CXX=yes 14402 no_undefined_flag_CXX=' -zdefs' 14403 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14405 $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' 14406 14407 hardcode_libdir_flag_spec_CXX='-R$libdir' 14408 hardcode_shlibpath_var_CXX=no 14409 case $host_os in 14410 solaris2.[0-5] | solaris2.[0-5].*) ;; 14411 *) 14412 # The compiler driver will combine and reorder linker options, 14413 # but understands '-z linker_flag'. 14414 # Supported since Solaris 2.6 (maybe 2.5.1?) 14415 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14416 ;; 14417 esac 14418 link_all_deplibs_CXX=yes 14419 14420 output_verbose_link_cmd='func_echo_all' 14421 14422 # Archives containing C++ object files must be created using 14423 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14424 # necessary to make sure instantiated templates are included 14425 # in the archive. 14426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14427 ;; 14428 gcx*) 14429 # Green Hills C++ Compiler 14430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14431 14432 # The C++ compiler must be used to create the archive. 14433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14434 ;; 14435 *) 14436 # GNU C++ compiler with Solaris linker 14437 if test yes,no = "$GXX,$with_gnu_ld"; then 14438 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14439 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14440 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14441 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14442 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14443 14444 # Commands to make compiler produce verbose output that lists 14445 # what "hidden" libraries, object files and flags are used when 14446 # linking a shared library. 14447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14448 else 14449 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14450 # platform. 14451 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14452 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14453 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14454 14455 # Commands to make compiler produce verbose output that lists 14456 # what "hidden" libraries, object files and flags are used when 14457 # linking a shared library. 14458 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14459 fi 14460 14461 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14462 case $host_os in 14463 solaris2.[0-5] | solaris2.[0-5].*) ;; 14464 *) 14465 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14466 ;; 14467 esac 14468 fi 14469 ;; 14470 esac 14471 ;; 14472 14473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14474 no_undefined_flag_CXX='$wl-z,text' 14475 archive_cmds_need_lc_CXX=no 14476 hardcode_shlibpath_var_CXX=no 14477 runpath_var='LD_RUN_PATH' 14478 14479 case $cc_basename in 14480 CC*) 14481 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14482 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14483 ;; 14484 *) 14485 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14486 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14487 ;; 14488 esac 14489 ;; 14490 14491 sysv5* | sco3.2v5* | sco5v6*) 14492 # Note: We CANNOT use -z defs as we might desire, because we do not 14493 # link with -lc, and that would cause any symbols used from libc to 14494 # always be unresolved, which means just about no library would 14495 # ever link correctly. If we're not using GNU ld we use -z text 14496 # though, which does catch some bad symbols but isn't as heavy-handed 14497 # as -z defs. 14498 no_undefined_flag_CXX='$wl-z,text' 14499 allow_undefined_flag_CXX='$wl-z,nodefs' 14500 archive_cmds_need_lc_CXX=no 14501 hardcode_shlibpath_var_CXX=no 14502 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14503 hardcode_libdir_separator_CXX=':' 14504 link_all_deplibs_CXX=yes 14505 export_dynamic_flag_spec_CXX='$wl-Bexport' 14506 runpath_var='LD_RUN_PATH' 14507 14508 case $cc_basename in 14509 CC*) 14510 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14511 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14512 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14513 '"$old_archive_cmds_CXX" 14514 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14515 '"$reload_cmds_CXX" 14516 ;; 14517 *) 14518 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14519 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14520 ;; 14521 esac 14522 ;; 14523 14524 tandem*) 14525 case $cc_basename in 14526 NCC*) 14527 # NonStop-UX NCC 3.20 14528 # FIXME: insert proper C++ library support 14529 ld_shlibs_CXX=no 14530 ;; 14531 *) 14532 # FIXME: insert proper C++ library support 14533 ld_shlibs_CXX=no 14534 ;; 14535 esac 14536 ;; 14537 14538 vxworks*) 14539 # FIXME: insert proper C++ library support 14540 ld_shlibs_CXX=no 14541 ;; 14542 14543 *) 14544 # FIXME: insert proper C++ library support 14545 ld_shlibs_CXX=no 14546 ;; 14547 esac 14548 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14550$as_echo "$ld_shlibs_CXX" >&6; } 14551 test no = "$ld_shlibs_CXX" && can_build_shared=no 14552 14553 GCC_CXX=$GXX 14554 LD_CXX=$LD 14555 14556 ## CAVEAT EMPTOR: 14557 ## There is no encapsulation within the following macros, do not change 14558 ## the running order or otherwise move them around unless you know exactly 14559 ## what you are doing... 14560 # Dependencies to place before and after the object being linked: 14561predep_objects_CXX= 14562postdep_objects_CXX= 14563predeps_CXX= 14564postdeps_CXX= 14565compiler_lib_search_path_CXX= 14566 14567cat > conftest.$ac_ext <<_LT_EOF 14568class Foo 14569{ 14570public: 14571 Foo (void) { a = 0; } 14572private: 14573 int a; 14574}; 14575_LT_EOF 14576 14577 14578_lt_libdeps_save_CFLAGS=$CFLAGS 14579case "$CC $CFLAGS " in #( 14580*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14581*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14582*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14583esac 14584 14585if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14586 (eval $ac_compile) 2>&5 14587 ac_status=$? 14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14589 test $ac_status = 0; }; then 14590 # Parse the compiler output and extract the necessary 14591 # objects, libraries and library flags. 14592 14593 # Sentinel used to keep track of whether or not we are before 14594 # the conftest object file. 14595 pre_test_object_deps_done=no 14596 14597 for p in `eval "$output_verbose_link_cmd"`; do 14598 case $prev$p in 14599 14600 -L* | -R* | -l*) 14601 # Some compilers place space between "-{L,R}" and the path. 14602 # Remove the space. 14603 if test x-L = "$p" || 14604 test x-R = "$p"; then 14605 prev=$p 14606 continue 14607 fi 14608 14609 # Expand the sysroot to ease extracting the directories later. 14610 if test -z "$prev"; then 14611 case $p in 14612 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14613 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14614 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14615 esac 14616 fi 14617 case $p in 14618 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14619 esac 14620 if test no = "$pre_test_object_deps_done"; then 14621 case $prev in 14622 -L | -R) 14623 # Internal compiler library paths should come after those 14624 # provided the user. The postdeps already come after the 14625 # user supplied libs so there is no need to process them. 14626 if test -z "$compiler_lib_search_path_CXX"; then 14627 compiler_lib_search_path_CXX=$prev$p 14628 else 14629 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14630 fi 14631 ;; 14632 # The "-l" case would never come before the object being 14633 # linked, so don't bother handling this case. 14634 esac 14635 else 14636 if test -z "$postdeps_CXX"; then 14637 postdeps_CXX=$prev$p 14638 else 14639 postdeps_CXX="${postdeps_CXX} $prev$p" 14640 fi 14641 fi 14642 prev= 14643 ;; 14644 14645 *.lto.$objext) ;; # Ignore GCC LTO objects 14646 *.$objext) 14647 # This assumes that the test object file only shows up 14648 # once in the compiler output. 14649 if test "$p" = "conftest.$objext"; then 14650 pre_test_object_deps_done=yes 14651 continue 14652 fi 14653 14654 if test no = "$pre_test_object_deps_done"; then 14655 if test -z "$predep_objects_CXX"; then 14656 predep_objects_CXX=$p 14657 else 14658 predep_objects_CXX="$predep_objects_CXX $p" 14659 fi 14660 else 14661 if test -z "$postdep_objects_CXX"; then 14662 postdep_objects_CXX=$p 14663 else 14664 postdep_objects_CXX="$postdep_objects_CXX $p" 14665 fi 14666 fi 14667 ;; 14668 14669 *) ;; # Ignore the rest. 14670 14671 esac 14672 done 14673 14674 # Clean up. 14675 rm -f a.out a.exe 14676else 14677 echo "libtool.m4: error: problem compiling CXX test program" 14678fi 14679 14680$RM -f confest.$objext 14681CFLAGS=$_lt_libdeps_save_CFLAGS 14682 14683# PORTME: override above test on systems where it is broken 14684case $host_os in 14685interix[3-9]*) 14686 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14687 # hack all around it, let's just trust "g++" to DTRT. 14688 predep_objects_CXX= 14689 postdep_objects_CXX= 14690 postdeps_CXX= 14691 ;; 14692esac 14693 14694 14695case " $postdeps_CXX " in 14696*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14697esac 14698 compiler_lib_search_dirs_CXX= 14699if test -n "${compiler_lib_search_path_CXX}"; then 14700 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14701fi 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 lt_prog_compiler_wl_CXX= 14734lt_prog_compiler_pic_CXX= 14735lt_prog_compiler_static_CXX= 14736 14737 14738 # C++ specific cases for pic, static, wl, etc. 14739 if test yes = "$GXX"; then 14740 lt_prog_compiler_wl_CXX='-Wl,' 14741 lt_prog_compiler_static_CXX='-static' 14742 14743 case $host_os in 14744 aix*) 14745 # All AIX code is PIC. 14746 if test ia64 = "$host_cpu"; then 14747 # AIX 5 now supports IA64 processor 14748 lt_prog_compiler_static_CXX='-Bstatic' 14749 fi 14750 lt_prog_compiler_pic_CXX='-fPIC' 14751 ;; 14752 14753 amigaos*) 14754 case $host_cpu in 14755 powerpc) 14756 # see comment about AmigaOS4 .so support 14757 lt_prog_compiler_pic_CXX='-fPIC' 14758 ;; 14759 m68k) 14760 # FIXME: we need at least 68020 code to build shared libraries, but 14761 # adding the '-m68020' flag to GCC prevents building anything better, 14762 # like '-m68040'. 14763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14764 ;; 14765 esac 14766 ;; 14767 14768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14769 # PIC is the default for these OSes. 14770 ;; 14771 mingw* | cygwin* | os2* | pw32* | cegcc*) 14772 # This hack is so that the source file can tell whether it is being 14773 # built for inclusion in a dll (and should export symbols for example). 14774 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14775 # (--disable-auto-import) libraries 14776 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14777 case $host_os in 14778 os2*) 14779 lt_prog_compiler_static_CXX='$wl-static' 14780 ;; 14781 esac 14782 ;; 14783 darwin* | rhapsody*) 14784 # PIC is the default on this platform 14785 # Common symbols not allowed in MH_DYLIB files 14786 lt_prog_compiler_pic_CXX='-fno-common' 14787 ;; 14788 *djgpp*) 14789 # DJGPP does not support shared libraries at all 14790 lt_prog_compiler_pic_CXX= 14791 ;; 14792 haiku*) 14793 # PIC is the default for Haiku. 14794 # The "-static" flag exists, but is broken. 14795 lt_prog_compiler_static_CXX= 14796 ;; 14797 interix[3-9]*) 14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14799 # Instead, we relocate shared libraries at runtime. 14800 ;; 14801 sysv4*MP*) 14802 if test -d /usr/nec; then 14803 lt_prog_compiler_pic_CXX=-Kconform_pic 14804 fi 14805 ;; 14806 hpux*) 14807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14809 # sets the default TLS model and affects inlining. 14810 case $host_cpu in 14811 hppa*64*) 14812 ;; 14813 *) 14814 lt_prog_compiler_pic_CXX='-fPIC' 14815 ;; 14816 esac 14817 ;; 14818 *qnx* | *nto*) 14819 # QNX uses GNU C++, but need to define -shared option too, otherwise 14820 # it will coredump. 14821 lt_prog_compiler_pic_CXX='-fPIC -shared' 14822 ;; 14823 *) 14824 lt_prog_compiler_pic_CXX='-fPIC' 14825 ;; 14826 esac 14827 else 14828 case $host_os in 14829 aix[4-9]*) 14830 # All AIX code is PIC. 14831 if test ia64 = "$host_cpu"; then 14832 # AIX 5 now supports IA64 processor 14833 lt_prog_compiler_static_CXX='-Bstatic' 14834 else 14835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14836 fi 14837 ;; 14838 chorus*) 14839 case $cc_basename in 14840 cxch68*) 14841 # Green Hills C++ Compiler 14842 # _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" 14843 ;; 14844 esac 14845 ;; 14846 mingw* | cygwin* | os2* | pw32* | cegcc*) 14847 # This hack is so that the source file can tell whether it is being 14848 # built for inclusion in a dll (and should export symbols for example). 14849 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14850 ;; 14851 dgux*) 14852 case $cc_basename in 14853 ec++*) 14854 lt_prog_compiler_pic_CXX='-KPIC' 14855 ;; 14856 ghcx*) 14857 # Green Hills C++ Compiler 14858 lt_prog_compiler_pic_CXX='-pic' 14859 ;; 14860 *) 14861 ;; 14862 esac 14863 ;; 14864 freebsd* | dragonfly*) 14865 # FreeBSD uses GNU C++ 14866 ;; 14867 hpux9* | hpux10* | hpux11*) 14868 case $cc_basename in 14869 CC*) 14870 lt_prog_compiler_wl_CXX='-Wl,' 14871 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14872 if test ia64 != "$host_cpu"; then 14873 lt_prog_compiler_pic_CXX='+Z' 14874 fi 14875 ;; 14876 aCC*) 14877 lt_prog_compiler_wl_CXX='-Wl,' 14878 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14879 case $host_cpu in 14880 hppa*64*|ia64*) 14881 # +Z the default 14882 ;; 14883 *) 14884 lt_prog_compiler_pic_CXX='+Z' 14885 ;; 14886 esac 14887 ;; 14888 *) 14889 ;; 14890 esac 14891 ;; 14892 interix*) 14893 # This is c89, which is MS Visual C++ (no shared libs) 14894 # Anyone wants to do a port? 14895 ;; 14896 irix5* | irix6* | nonstopux*) 14897 case $cc_basename in 14898 CC*) 14899 lt_prog_compiler_wl_CXX='-Wl,' 14900 lt_prog_compiler_static_CXX='-non_shared' 14901 # CC pic flag -KPIC is the default. 14902 ;; 14903 *) 14904 ;; 14905 esac 14906 ;; 14907 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14908 case $cc_basename in 14909 KCC*) 14910 # KAI C++ Compiler 14911 lt_prog_compiler_wl_CXX='--backend -Wl,' 14912 lt_prog_compiler_pic_CXX='-fPIC' 14913 ;; 14914 ecpc* ) 14915 # old Intel C++ for x86_64, which still supported -KPIC. 14916 lt_prog_compiler_wl_CXX='-Wl,' 14917 lt_prog_compiler_pic_CXX='-KPIC' 14918 lt_prog_compiler_static_CXX='-static' 14919 ;; 14920 icpc* ) 14921 # Intel C++, used to be incompatible with GCC. 14922 # ICC 10 doesn't accept -KPIC any more. 14923 lt_prog_compiler_wl_CXX='-Wl,' 14924 lt_prog_compiler_pic_CXX='-fPIC' 14925 lt_prog_compiler_static_CXX='-static' 14926 ;; 14927 pgCC* | pgcpp*) 14928 # Portland Group C++ compiler 14929 lt_prog_compiler_wl_CXX='-Wl,' 14930 lt_prog_compiler_pic_CXX='-fpic' 14931 lt_prog_compiler_static_CXX='-Bstatic' 14932 ;; 14933 cxx*) 14934 # Compaq C++ 14935 # Make sure the PIC flag is empty. It appears that all Alpha 14936 # Linux and Compaq Tru64 Unix objects are PIC. 14937 lt_prog_compiler_pic_CXX= 14938 lt_prog_compiler_static_CXX='-non_shared' 14939 ;; 14940 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14941 # IBM XL 8.0, 9.0 on PPC and BlueGene 14942 lt_prog_compiler_wl_CXX='-Wl,' 14943 lt_prog_compiler_pic_CXX='-qpic' 14944 lt_prog_compiler_static_CXX='-qstaticlink' 14945 ;; 14946 *) 14947 case `$CC -V 2>&1 | sed 5q` in 14948 *Sun\ C*) 14949 # Sun C++ 5.9 14950 lt_prog_compiler_pic_CXX='-KPIC' 14951 lt_prog_compiler_static_CXX='-Bstatic' 14952 lt_prog_compiler_wl_CXX='-Qoption ld ' 14953 ;; 14954 esac 14955 ;; 14956 esac 14957 ;; 14958 lynxos*) 14959 ;; 14960 m88k*) 14961 ;; 14962 mvs*) 14963 case $cc_basename in 14964 cxx*) 14965 lt_prog_compiler_pic_CXX='-W c,exportall' 14966 ;; 14967 *) 14968 ;; 14969 esac 14970 ;; 14971 netbsd*) 14972 ;; 14973 *qnx* | *nto*) 14974 # QNX uses GNU C++, but need to define -shared option too, otherwise 14975 # it will coredump. 14976 lt_prog_compiler_pic_CXX='-fPIC -shared' 14977 ;; 14978 osf3* | osf4* | osf5*) 14979 case $cc_basename in 14980 KCC*) 14981 lt_prog_compiler_wl_CXX='--backend -Wl,' 14982 ;; 14983 RCC*) 14984 # Rational C++ 2.4.1 14985 lt_prog_compiler_pic_CXX='-pic' 14986 ;; 14987 cxx*) 14988 # Digital/Compaq C++ 14989 lt_prog_compiler_wl_CXX='-Wl,' 14990 # Make sure the PIC flag is empty. It appears that all Alpha 14991 # Linux and Compaq Tru64 Unix objects are PIC. 14992 lt_prog_compiler_pic_CXX= 14993 lt_prog_compiler_static_CXX='-non_shared' 14994 ;; 14995 *) 14996 ;; 14997 esac 14998 ;; 14999 psos*) 15000 ;; 15001 solaris*) 15002 case $cc_basename in 15003 CC* | sunCC*) 15004 # Sun C++ 4.2, 5.x and Centerline C++ 15005 lt_prog_compiler_pic_CXX='-KPIC' 15006 lt_prog_compiler_static_CXX='-Bstatic' 15007 lt_prog_compiler_wl_CXX='-Qoption ld ' 15008 ;; 15009 gcx*) 15010 # Green Hills C++ Compiler 15011 lt_prog_compiler_pic_CXX='-PIC' 15012 ;; 15013 *) 15014 ;; 15015 esac 15016 ;; 15017 sunos4*) 15018 case $cc_basename in 15019 CC*) 15020 # Sun C++ 4.x 15021 lt_prog_compiler_pic_CXX='-pic' 15022 lt_prog_compiler_static_CXX='-Bstatic' 15023 ;; 15024 lcc*) 15025 # Lucid 15026 lt_prog_compiler_pic_CXX='-pic' 15027 ;; 15028 *) 15029 ;; 15030 esac 15031 ;; 15032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15033 case $cc_basename in 15034 CC*) 15035 lt_prog_compiler_wl_CXX='-Wl,' 15036 lt_prog_compiler_pic_CXX='-KPIC' 15037 lt_prog_compiler_static_CXX='-Bstatic' 15038 ;; 15039 esac 15040 ;; 15041 tandem*) 15042 case $cc_basename in 15043 NCC*) 15044 # NonStop-UX NCC 3.20 15045 lt_prog_compiler_pic_CXX='-KPIC' 15046 ;; 15047 *) 15048 ;; 15049 esac 15050 ;; 15051 vxworks*) 15052 ;; 15053 *) 15054 lt_prog_compiler_can_build_shared_CXX=no 15055 ;; 15056 esac 15057 fi 15058 15059case $host_os in 15060 # For platforms that do not support PIC, -DPIC is meaningless: 15061 *djgpp*) 15062 lt_prog_compiler_pic_CXX= 15063 ;; 15064 *) 15065 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15066 ;; 15067esac 15068 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15070$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15071if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15075fi 15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15077$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15078lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15079 15080# 15081# Check to make sure the PIC flag actually works. 15082# 15083if test -n "$lt_prog_compiler_pic_CXX"; then 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15085$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15086if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15087 $as_echo_n "(cached) " >&6 15088else 15089 lt_cv_prog_compiler_pic_works_CXX=no 15090 ac_outfile=conftest.$ac_objext 15091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15092 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15093 # Insert the option either (1) after the last *FLAGS variable, or 15094 # (2) before a word containing "conftest.", or (3) at the end. 15095 # Note that $ac_compile itself does not contain backslashes and begins 15096 # with a dollar sign (not a hyphen), so the echo should work correctly. 15097 # The option is referenced via a variable to avoid confusing sed. 15098 lt_compile=`echo "$ac_compile" | $SED \ 15099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15101 -e 's:$: $lt_compiler_flag:'` 15102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15103 (eval "$lt_compile" 2>conftest.err) 15104 ac_status=$? 15105 cat conftest.err >&5 15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15107 if (exit $ac_status) && test -s "$ac_outfile"; then 15108 # The compiler can only warn and ignore the option if not recognized 15109 # So say no if there are warnings other than the usual output. 15110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15113 lt_cv_prog_compiler_pic_works_CXX=yes 15114 fi 15115 fi 15116 $RM conftest* 15117 15118fi 15119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15120$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15121 15122if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15123 case $lt_prog_compiler_pic_CXX in 15124 "" | " "*) ;; 15125 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15126 esac 15127else 15128 lt_prog_compiler_pic_CXX= 15129 lt_prog_compiler_can_build_shared_CXX=no 15130fi 15131 15132fi 15133 15134 15135 15136 15137 15138# 15139# Check to make sure the static flag actually works. 15140# 15141wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15143$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15144if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15145 $as_echo_n "(cached) " >&6 15146else 15147 lt_cv_prog_compiler_static_works_CXX=no 15148 save_LDFLAGS=$LDFLAGS 15149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15150 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15152 # The linker can only warn and ignore the option if not recognized 15153 # So say no if there are warnings 15154 if test -s conftest.err; then 15155 # Append any errors to the config.log. 15156 cat conftest.err 1>&5 15157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15159 if diff conftest.exp conftest.er2 >/dev/null; then 15160 lt_cv_prog_compiler_static_works_CXX=yes 15161 fi 15162 else 15163 lt_cv_prog_compiler_static_works_CXX=yes 15164 fi 15165 fi 15166 $RM -r conftest* 15167 LDFLAGS=$save_LDFLAGS 15168 15169fi 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15171$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15172 15173if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15174 : 15175else 15176 lt_prog_compiler_static_CXX= 15177fi 15178 15179 15180 15181 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15184if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15185 $as_echo_n "(cached) " >&6 15186else 15187 lt_cv_prog_compiler_c_o_CXX=no 15188 $RM -r conftest 2>/dev/null 15189 mkdir conftest 15190 cd conftest 15191 mkdir out 15192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15193 15194 lt_compiler_flag="-o out/conftest2.$ac_objext" 15195 # Insert the option either (1) after the last *FLAGS variable, or 15196 # (2) before a word containing "conftest.", or (3) at the end. 15197 # Note that $ac_compile itself does not contain backslashes and begins 15198 # with a dollar sign (not a hyphen), so the echo should work correctly. 15199 lt_compile=`echo "$ac_compile" | $SED \ 15200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15202 -e 's:$: $lt_compiler_flag:'` 15203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15204 (eval "$lt_compile" 2>out/conftest.err) 15205 ac_status=$? 15206 cat out/conftest.err >&5 15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15208 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15209 then 15210 # The compiler can only warn and ignore the option if not recognized 15211 # So say no if there are warnings 15212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15215 lt_cv_prog_compiler_c_o_CXX=yes 15216 fi 15217 fi 15218 chmod u+w . 2>&5 15219 $RM conftest* 15220 # SGI C++ compiler will create directory out/ii_files/ for 15221 # template instantiation 15222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15223 $RM out/* && rmdir out 15224 cd .. 15225 $RM -r conftest 15226 $RM conftest* 15227 15228fi 15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15230$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15231 15232 15233 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15235$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15236if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15237 $as_echo_n "(cached) " >&6 15238else 15239 lt_cv_prog_compiler_c_o_CXX=no 15240 $RM -r conftest 2>/dev/null 15241 mkdir conftest 15242 cd conftest 15243 mkdir out 15244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15245 15246 lt_compiler_flag="-o out/conftest2.$ac_objext" 15247 # Insert the option either (1) after the last *FLAGS variable, or 15248 # (2) before a word containing "conftest.", or (3) at the end. 15249 # Note that $ac_compile itself does not contain backslashes and begins 15250 # with a dollar sign (not a hyphen), so the echo should work correctly. 15251 lt_compile=`echo "$ac_compile" | $SED \ 15252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15254 -e 's:$: $lt_compiler_flag:'` 15255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15256 (eval "$lt_compile" 2>out/conftest.err) 15257 ac_status=$? 15258 cat out/conftest.err >&5 15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15260 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15261 then 15262 # The compiler can only warn and ignore the option if not recognized 15263 # So say no if there are warnings 15264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15267 lt_cv_prog_compiler_c_o_CXX=yes 15268 fi 15269 fi 15270 chmod u+w . 2>&5 15271 $RM conftest* 15272 # SGI C++ compiler will create directory out/ii_files/ for 15273 # template instantiation 15274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15275 $RM out/* && rmdir out 15276 cd .. 15277 $RM -r conftest 15278 $RM conftest* 15279 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15282$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15283 15284 15285 15286 15287hard_links=nottested 15288if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15289 # do not overwrite the value of need_locks provided by the user 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15291$as_echo_n "checking if we can lock with hard links... " >&6; } 15292 hard_links=yes 15293 $RM conftest* 15294 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15295 touch conftest.a 15296 ln conftest.a conftest.b 2>&5 || hard_links=no 15297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15299$as_echo "$hard_links" >&6; } 15300 if test no = "$hard_links"; then 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15302$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15303 need_locks=warn 15304 fi 15305else 15306 need_locks=no 15307fi 15308 15309 15310 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15312$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15313 15314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15315 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15316 case $host_os in 15317 aix[4-9]*) 15318 # If we're using GNU nm, then we don't want the "-C" option. 15319 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15320 # Without the "-l" option, or with the "-B" option, AIX nm treats 15321 # weak defined symbols like other global defined symbols, whereas 15322 # GNU nm marks them as "W". 15323 # While the 'weak' keyword is ignored in the Export File, we need 15324 # it in the Import File for the 'aix-soname' feature, so we have 15325 # to replace the "-B" option with "-P" for AIX nm. 15326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15327 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15328 else 15329 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15330 fi 15331 ;; 15332 pw32*) 15333 export_symbols_cmds_CXX=$ltdll_cmds 15334 ;; 15335 cygwin* | mingw* | cegcc*) 15336 case $cc_basename in 15337 cl*) 15338 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15339 ;; 15340 *) 15341 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15342 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15343 ;; 15344 esac 15345 ;; 15346 *) 15347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15348 ;; 15349 esac 15350 15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15352$as_echo "$ld_shlibs_CXX" >&6; } 15353test no = "$ld_shlibs_CXX" && can_build_shared=no 15354 15355with_gnu_ld_CXX=$with_gnu_ld 15356 15357 15358 15359 15360 15361 15362# 15363# Do we need to explicitly link libc? 15364# 15365case "x$archive_cmds_need_lc_CXX" in 15366x|xyes) 15367 # Assume -lc should be added 15368 archive_cmds_need_lc_CXX=yes 15369 15370 if test yes,yes = "$GCC,$enable_shared"; then 15371 case $archive_cmds_CXX in 15372 *'~'*) 15373 # FIXME: we may have to deal with multi-command sequences. 15374 ;; 15375 '$CC '*) 15376 # Test whether the compiler implicitly links with -lc since on some 15377 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15378 # to ld, don't add -lc before -lgcc. 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15380$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15381if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15382 $as_echo_n "(cached) " >&6 15383else 15384 $RM conftest* 15385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15386 15387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15388 (eval $ac_compile) 2>&5 15389 ac_status=$? 15390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15391 test $ac_status = 0; } 2>conftest.err; then 15392 soname=conftest 15393 lib=conftest 15394 libobjs=conftest.$ac_objext 15395 deplibs= 15396 wl=$lt_prog_compiler_wl_CXX 15397 pic_flag=$lt_prog_compiler_pic_CXX 15398 compiler_flags=-v 15399 linker_flags=-v 15400 verstring= 15401 output_objdir=. 15402 libname=conftest 15403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15404 allow_undefined_flag_CXX= 15405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15407 ac_status=$? 15408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15409 test $ac_status = 0; } 15410 then 15411 lt_cv_archive_cmds_need_lc_CXX=no 15412 else 15413 lt_cv_archive_cmds_need_lc_CXX=yes 15414 fi 15415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15416 else 15417 cat conftest.err 1>&5 15418 fi 15419 $RM conftest* 15420 15421fi 15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15423$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15424 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15425 ;; 15426 esac 15427 fi 15428 ;; 15429esac 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15493$as_echo_n "checking dynamic linker characteristics... " >&6; } 15494 15495library_names_spec= 15496libname_spec='lib$name' 15497soname_spec= 15498shrext_cmds=.so 15499postinstall_cmds= 15500postuninstall_cmds= 15501finish_cmds= 15502finish_eval= 15503shlibpath_var= 15504shlibpath_overrides_runpath=unknown 15505version_type=none 15506dynamic_linker="$host_os ld.so" 15507sys_lib_dlsearch_path_spec="/lib /usr/lib" 15508need_lib_prefix=unknown 15509hardcode_into_libs=no 15510 15511# when you set need_version to no, make sure it does not cause -set_version 15512# flags to be left without arguments 15513need_version=unknown 15514 15515 15516 15517case $host_os in 15518aix3*) 15519 version_type=linux # correct to gnu/linux during the next big refactor 15520 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15521 shlibpath_var=LIBPATH 15522 15523 # AIX 3 has no versioning support, so we append a major version to the name. 15524 soname_spec='$libname$release$shared_ext$major' 15525 ;; 15526 15527aix[4-9]*) 15528 version_type=linux # correct to gnu/linux during the next big refactor 15529 need_lib_prefix=no 15530 need_version=no 15531 hardcode_into_libs=yes 15532 if test ia64 = "$host_cpu"; then 15533 # AIX 5 supports IA64 15534 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 else 15537 # With GCC up to 2.95.x, collect2 would create an import file 15538 # for dependence libraries. The import file would start with 15539 # the line '#! .'. This would cause the generated library to 15540 # depend on '.', always an invalid library. This was fixed in 15541 # development snapshots of GCC prior to 3.0. 15542 case $host_os in 15543 aix4 | aix4.[01] | aix4.[01].*) 15544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15545 echo ' yes ' 15546 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15547 : 15548 else 15549 can_build_shared=no 15550 fi 15551 ;; 15552 esac 15553 # Using Import Files as archive members, it is possible to support 15554 # filename-based versioning of shared library archives on AIX. While 15555 # this would work for both with and without runtime linking, it will 15556 # prevent static linking of such archives. So we do filename-based 15557 # shared library versioning with .so extension only, which is used 15558 # when both runtime linking and shared linking is enabled. 15559 # Unfortunately, runtime linking may impact performance, so we do 15560 # not want this to be the default eventually. Also, we use the 15561 # versioned .so libs for executables only if there is the -brtl 15562 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15563 # To allow for filename-based versioning support, we need to create 15564 # libNAME.so.V as an archive file, containing: 15565 # *) an Import File, referring to the versioned filename of the 15566 # archive as well as the shared archive member, telling the 15567 # bitwidth (32 or 64) of that shared object, and providing the 15568 # list of exported symbols of that shared object, eventually 15569 # decorated with the 'weak' keyword 15570 # *) the shared object with the F_LOADONLY flag set, to really avoid 15571 # it being seen by the linker. 15572 # At run time we better use the real file rather than another symlink, 15573 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15574 15575 case $with_aix_soname,$aix_use_runtimelinking in 15576 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15577 # soname into executable. Probably we can add versioning support to 15578 # collect2, so additional links can be useful in future. 15579 aix,yes) # traditional libtool 15580 dynamic_linker='AIX unversionable lib.so' 15581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15582 # instead of lib<name>.a to let people know that these are not 15583 # typical AIX shared libraries. 15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15585 ;; 15586 aix,no) # traditional AIX only 15587 dynamic_linker='AIX lib.a(lib.so.V)' 15588 # We preserve .a as extension for shared libraries through AIX4.2 15589 # and later when we are not doing run time linking. 15590 library_names_spec='$libname$release.a $libname.a' 15591 soname_spec='$libname$release$shared_ext$major' 15592 ;; 15593 svr4,*) # full svr4 only 15594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15596 # We do not specify a path in Import Files, so LIBPATH fires. 15597 shlibpath_overrides_runpath=yes 15598 ;; 15599 *,yes) # both, prefer svr4 15600 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15601 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15602 # unpreferred sharedlib libNAME.a needs extra handling 15603 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15604 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15605 # We do not specify a path in Import Files, so LIBPATH fires. 15606 shlibpath_overrides_runpath=yes 15607 ;; 15608 *,no) # both, prefer aix 15609 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15610 library_names_spec='$libname$release.a $libname.a' 15611 soname_spec='$libname$release$shared_ext$major' 15612 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15613 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15614 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15615 ;; 15616 esac 15617 shlibpath_var=LIBPATH 15618 fi 15619 ;; 15620 15621amigaos*) 15622 case $host_cpu in 15623 powerpc) 15624 # Since July 2007 AmigaOS4 officially supports .so libraries. 15625 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15627 ;; 15628 m68k) 15629 library_names_spec='$libname.ixlibrary $libname.a' 15630 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15631 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 15632 ;; 15633 esac 15634 ;; 15635 15636beos*) 15637 library_names_spec='$libname$shared_ext' 15638 dynamic_linker="$host_os ld.so" 15639 shlibpath_var=LIBRARY_PATH 15640 ;; 15641 15642bsdi[45]*) 15643 version_type=linux # correct to gnu/linux during the next big refactor 15644 need_version=no 15645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15646 soname_spec='$libname$release$shared_ext$major' 15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15651 # the default ld.so.conf also contains /usr/contrib/lib and 15652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15653 # libtool to hard-code these into programs 15654 ;; 15655 15656cygwin* | mingw* | pw32* | cegcc*) 15657 version_type=windows 15658 shrext_cmds=.dll 15659 need_version=no 15660 need_lib_prefix=no 15661 15662 case $GCC,$cc_basename in 15663 yes,*) 15664 # gcc 15665 library_names_spec='$libname.dll.a' 15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15667 postinstall_cmds='base_file=`basename \$file`~ 15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15669 dldir=$destdir/`dirname \$dlpath`~ 15670 test -d \$dldir || mkdir -p \$dldir~ 15671 $install_prog $dir/$dlname \$dldir/$dlname~ 15672 chmod a+x \$dldir/$dlname~ 15673 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15674 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15675 fi' 15676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15677 dlpath=$dir/\$dldll~ 15678 $RM \$dlpath' 15679 shlibpath_overrides_runpath=yes 15680 15681 case $host_os in 15682 cygwin*) 15683 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15684 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15685 15686 ;; 15687 mingw* | cegcc*) 15688 # MinGW DLLs use traditional 'lib' prefix 15689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15690 ;; 15691 pw32*) 15692 # pw32 DLLs use 'pw' prefix rather than 'lib' 15693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15694 ;; 15695 esac 15696 dynamic_linker='Win32 ld.exe' 15697 ;; 15698 15699 *,cl*) 15700 # Native MSVC 15701 libname_spec='$name' 15702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15703 library_names_spec='$libname.dll.lib' 15704 15705 case $build_os in 15706 mingw*) 15707 sys_lib_search_path_spec= 15708 lt_save_ifs=$IFS 15709 IFS=';' 15710 for lt_path in $LIB 15711 do 15712 IFS=$lt_save_ifs 15713 # Let DOS variable expansion print the short 8.3 style file name. 15714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15716 done 15717 IFS=$lt_save_ifs 15718 # Convert to MSYS style. 15719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15720 ;; 15721 cygwin*) 15722 # Convert to unix form, then to dos form, then back to unix form 15723 # but this time dos style (no spaces!) so that the unix form looks 15724 # like /cygdrive/c/PROGRA~1:/cygdr... 15725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15728 ;; 15729 *) 15730 sys_lib_search_path_spec=$LIB 15731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15732 # It is most probably a Windows format PATH. 15733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15734 else 15735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15736 fi 15737 # FIXME: find the short name or the path components, as spaces are 15738 # common. (e.g. "Program Files" -> "PROGRA~1") 15739 ;; 15740 esac 15741 15742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15743 postinstall_cmds='base_file=`basename \$file`~ 15744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15745 dldir=$destdir/`dirname \$dlpath`~ 15746 test -d \$dldir || mkdir -p \$dldir~ 15747 $install_prog $dir/$dlname \$dldir/$dlname' 15748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15749 dlpath=$dir/\$dldll~ 15750 $RM \$dlpath' 15751 shlibpath_overrides_runpath=yes 15752 dynamic_linker='Win32 link.exe' 15753 ;; 15754 15755 *) 15756 # Assume MSVC wrapper 15757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15758 dynamic_linker='Win32 ld.exe' 15759 ;; 15760 esac 15761 # FIXME: first we should search . and the directory the executable is in 15762 shlibpath_var=PATH 15763 ;; 15764 15765darwin* | rhapsody*) 15766 dynamic_linker="$host_os dyld" 15767 version_type=darwin 15768 need_lib_prefix=no 15769 need_version=no 15770 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15771 soname_spec='$libname$release$major$shared_ext' 15772 shlibpath_overrides_runpath=yes 15773 shlibpath_var=DYLD_LIBRARY_PATH 15774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15775 15776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15777 ;; 15778 15779dgux*) 15780 version_type=linux # correct to gnu/linux during the next big refactor 15781 need_lib_prefix=no 15782 need_version=no 15783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15784 soname_spec='$libname$release$shared_ext$major' 15785 shlibpath_var=LD_LIBRARY_PATH 15786 ;; 15787 15788freebsd* | dragonfly*) 15789 # DragonFly does not have aout. When/if they implement a new 15790 # versioning mechanism, adjust this. 15791 if test -x /usr/bin/objformat; then 15792 objformat=`/usr/bin/objformat` 15793 else 15794 case $host_os in 15795 freebsd[23].*) objformat=aout ;; 15796 *) objformat=elf ;; 15797 esac 15798 fi 15799 version_type=freebsd-$objformat 15800 case $version_type in 15801 freebsd-elf*) 15802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15803 soname_spec='$libname$release$shared_ext$major' 15804 need_version=no 15805 need_lib_prefix=no 15806 ;; 15807 freebsd-*) 15808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15809 need_version=yes 15810 ;; 15811 esac 15812 shlibpath_var=LD_LIBRARY_PATH 15813 case $host_os in 15814 freebsd2.*) 15815 shlibpath_overrides_runpath=yes 15816 ;; 15817 freebsd3.[01]* | freebsdelf3.[01]*) 15818 shlibpath_overrides_runpath=yes 15819 hardcode_into_libs=yes 15820 ;; 15821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15823 shlibpath_overrides_runpath=no 15824 hardcode_into_libs=yes 15825 ;; 15826 *) # from 4.6 on, and DragonFly 15827 shlibpath_overrides_runpath=yes 15828 hardcode_into_libs=yes 15829 ;; 15830 esac 15831 ;; 15832 15833haiku*) 15834 version_type=linux # correct to gnu/linux during the next big refactor 15835 need_lib_prefix=no 15836 need_version=no 15837 dynamic_linker="$host_os runtime_loader" 15838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15839 soname_spec='$libname$release$shared_ext$major' 15840 shlibpath_var=LIBRARY_PATH 15841 shlibpath_overrides_runpath=no 15842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15843 hardcode_into_libs=yes 15844 ;; 15845 15846hpux9* | hpux10* | hpux11*) 15847 # Give a soname corresponding to the major version so that dld.sl refuses to 15848 # link against other versions. 15849 version_type=sunos 15850 need_lib_prefix=no 15851 need_version=no 15852 case $host_cpu in 15853 ia64*) 15854 shrext_cmds='.so' 15855 hardcode_into_libs=yes 15856 dynamic_linker="$host_os dld.so" 15857 shlibpath_var=LD_LIBRARY_PATH 15858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15860 soname_spec='$libname$release$shared_ext$major' 15861 if test 32 = "$HPUX_IA64_MODE"; then 15862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15863 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15864 else 15865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15866 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15867 fi 15868 ;; 15869 hppa*64*) 15870 shrext_cmds='.sl' 15871 hardcode_into_libs=yes 15872 dynamic_linker="$host_os dld.sl" 15873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15876 soname_spec='$libname$release$shared_ext$major' 15877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15879 ;; 15880 *) 15881 shrext_cmds='.sl' 15882 dynamic_linker="$host_os dld.sl" 15883 shlibpath_var=SHLIB_PATH 15884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15886 soname_spec='$libname$release$shared_ext$major' 15887 ;; 15888 esac 15889 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15890 postinstall_cmds='chmod 555 $lib' 15891 # or fails outright, so override atomically: 15892 install_override_mode=555 15893 ;; 15894 15895interix[3-9]*) 15896 version_type=linux # correct to gnu/linux during the next big refactor 15897 need_lib_prefix=no 15898 need_version=no 15899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15900 soname_spec='$libname$release$shared_ext$major' 15901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15902 shlibpath_var=LD_LIBRARY_PATH 15903 shlibpath_overrides_runpath=no 15904 hardcode_into_libs=yes 15905 ;; 15906 15907irix5* | irix6* | nonstopux*) 15908 case $host_os in 15909 nonstopux*) version_type=nonstopux ;; 15910 *) 15911 if test yes = "$lt_cv_prog_gnu_ld"; then 15912 version_type=linux # correct to gnu/linux during the next big refactor 15913 else 15914 version_type=irix 15915 fi ;; 15916 esac 15917 need_lib_prefix=no 15918 need_version=no 15919 soname_spec='$libname$release$shared_ext$major' 15920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15921 case $host_os in 15922 irix5* | nonstopux*) 15923 libsuff= shlibsuff= 15924 ;; 15925 *) 15926 case $LD in # libtool.m4 will add one of these switches to LD 15927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15928 libsuff= shlibsuff= libmagic=32-bit;; 15929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15930 libsuff=32 shlibsuff=N32 libmagic=N32;; 15931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15932 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15933 *) libsuff= shlibsuff= libmagic=never-match;; 15934 esac 15935 ;; 15936 esac 15937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15938 shlibpath_overrides_runpath=no 15939 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15940 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15941 hardcode_into_libs=yes 15942 ;; 15943 15944# No shared lib support for Linux oldld, aout, or coff. 15945linux*oldld* | linux*aout* | linux*coff*) 15946 dynamic_linker=no 15947 ;; 15948 15949linux*android*) 15950 version_type=none # Android doesn't support versioned libraries. 15951 need_lib_prefix=no 15952 need_version=no 15953 library_names_spec='$libname$release$shared_ext' 15954 soname_spec='$libname$release$shared_ext' 15955 finish_cmds= 15956 shlibpath_var=LD_LIBRARY_PATH 15957 shlibpath_overrides_runpath=yes 15958 15959 # This implies no fast_install, which is unacceptable. 15960 # Some rework will be needed to allow for fast_install 15961 # before this can be enabled. 15962 hardcode_into_libs=yes 15963 15964 dynamic_linker='Android linker' 15965 # Don't embed -rpath directories since the linker doesn't support them. 15966 hardcode_libdir_flag_spec_CXX='-L$libdir' 15967 ;; 15968 15969# This must be glibc/ELF. 15970linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15971 version_type=linux # correct to gnu/linux during the next big refactor 15972 need_lib_prefix=no 15973 need_version=no 15974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15975 soname_spec='$libname$release$shared_ext$major' 15976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15977 shlibpath_var=LD_LIBRARY_PATH 15978 shlibpath_overrides_runpath=no 15979 15980 # Some binutils ld are patched to set DT_RUNPATH 15981 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15982 $as_echo_n "(cached) " >&6 15983else 15984 lt_cv_shlibpath_overrides_runpath=no 15985 save_LDFLAGS=$LDFLAGS 15986 save_libdir=$libdir 15987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991 15992int 15993main () 15994{ 15995 15996 ; 15997 return 0; 15998} 15999_ACEOF 16000if ac_fn_cxx_try_link "$LINENO"; then : 16001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16002 lt_cv_shlibpath_overrides_runpath=yes 16003fi 16004fi 16005rm -f core conftest.err conftest.$ac_objext \ 16006 conftest$ac_exeext conftest.$ac_ext 16007 LDFLAGS=$save_LDFLAGS 16008 libdir=$save_libdir 16009 16010fi 16011 16012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16013 16014 # This implies no fast_install, which is unacceptable. 16015 # Some rework will be needed to allow for fast_install 16016 # before this can be enabled. 16017 hardcode_into_libs=yes 16018 16019 # Ideally, we could use ldconfig to report *all* directores which are 16020 # searched for libraries, however this is still not possible. Aside from not 16021 # being certain /sbin/ldconfig is available, command 16022 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16023 # even though it is searched at run-time. Try to do the best guess by 16024 # appending ld.so.conf contents (and includes) to the search path. 16025 if test -f /etc/ld.so.conf; then 16026 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' ' '` 16027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16028 fi 16029 16030 # We used to test for /lib/ld.so.1 and disable shared libraries on 16031 # powerpc, because MkLinux only supported shared libraries with the 16032 # GNU dynamic linker. Since this was broken with cross compilers, 16033 # most powerpc-linux boxes support dynamic linking these days and 16034 # people can always --disable-shared, the test was removed, and we 16035 # assume the GNU/Linux dynamic linker is in use. 16036 dynamic_linker='GNU/Linux ld.so' 16037 ;; 16038 16039netbsd*) 16040 version_type=sunos 16041 need_lib_prefix=no 16042 need_version=no 16043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16046 dynamic_linker='NetBSD (a.out) ld.so' 16047 else 16048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16049 soname_spec='$libname$release$shared_ext$major' 16050 dynamic_linker='NetBSD ld.elf_so' 16051 fi 16052 shlibpath_var=LD_LIBRARY_PATH 16053 shlibpath_overrides_runpath=yes 16054 hardcode_into_libs=yes 16055 ;; 16056 16057newsos6) 16058 version_type=linux # correct to gnu/linux during the next big refactor 16059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=yes 16062 ;; 16063 16064*nto* | *qnx*) 16065 version_type=qnx 16066 need_lib_prefix=no 16067 need_version=no 16068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16069 soname_spec='$libname$release$shared_ext$major' 16070 shlibpath_var=LD_LIBRARY_PATH 16071 shlibpath_overrides_runpath=no 16072 hardcode_into_libs=yes 16073 dynamic_linker='ldqnx.so' 16074 ;; 16075 16076openbsd* | bitrig*) 16077 version_type=sunos 16078 sys_lib_dlsearch_path_spec=/usr/lib 16079 need_lib_prefix=no 16080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16081 need_version=no 16082 else 16083 need_version=yes 16084 fi 16085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=yes 16089 ;; 16090 16091os2*) 16092 libname_spec='$name' 16093 version_type=windows 16094 shrext_cmds=.dll 16095 need_version=no 16096 need_lib_prefix=no 16097 # OS/2 can only load a DLL with a base name of 8 characters or less. 16098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16099 v=$($ECHO $release$versuffix | tr -d .-); 16100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16101 $ECHO $n$v`$shared_ext' 16102 library_names_spec='${libname}_dll.$libext' 16103 dynamic_linker='OS/2 ld.exe' 16104 shlibpath_var=BEGINLIBPATH 16105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16107 postinstall_cmds='base_file=`basename \$file`~ 16108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16109 dldir=$destdir/`dirname \$dlpath`~ 16110 test -d \$dldir || mkdir -p \$dldir~ 16111 $install_prog $dir/$dlname \$dldir/$dlname~ 16112 chmod a+x \$dldir/$dlname~ 16113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16115 fi' 16116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16117 dlpath=$dir/\$dldll~ 16118 $RM \$dlpath' 16119 ;; 16120 16121osf3* | osf4* | osf5*) 16122 version_type=osf 16123 need_lib_prefix=no 16124 need_version=no 16125 soname_spec='$libname$release$shared_ext$major' 16126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16130 ;; 16131 16132rdos*) 16133 dynamic_linker=no 16134 ;; 16135 16136solaris*) 16137 version_type=linux # correct to gnu/linux during the next big refactor 16138 need_lib_prefix=no 16139 need_version=no 16140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16141 soname_spec='$libname$release$shared_ext$major' 16142 shlibpath_var=LD_LIBRARY_PATH 16143 shlibpath_overrides_runpath=yes 16144 hardcode_into_libs=yes 16145 # ldd complains unless libraries are executable 16146 postinstall_cmds='chmod +x $lib' 16147 ;; 16148 16149sunos4*) 16150 version_type=sunos 16151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16153 shlibpath_var=LD_LIBRARY_PATH 16154 shlibpath_overrides_runpath=yes 16155 if test yes = "$with_gnu_ld"; then 16156 need_lib_prefix=no 16157 fi 16158 need_version=yes 16159 ;; 16160 16161sysv4 | sysv4.3*) 16162 version_type=linux # correct to gnu/linux during the next big refactor 16163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16164 soname_spec='$libname$release$shared_ext$major' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 case $host_vendor in 16167 sni) 16168 shlibpath_overrides_runpath=no 16169 need_lib_prefix=no 16170 runpath_var=LD_RUN_PATH 16171 ;; 16172 siemens) 16173 need_lib_prefix=no 16174 ;; 16175 motorola) 16176 need_lib_prefix=no 16177 need_version=no 16178 shlibpath_overrides_runpath=no 16179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16180 ;; 16181 esac 16182 ;; 16183 16184sysv4*MP*) 16185 if test -d /usr/nec; then 16186 version_type=linux # correct to gnu/linux during the next big refactor 16187 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16188 soname_spec='$libname$shared_ext.$major' 16189 shlibpath_var=LD_LIBRARY_PATH 16190 fi 16191 ;; 16192 16193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16194 version_type=sco 16195 need_lib_prefix=no 16196 need_version=no 16197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16198 soname_spec='$libname$release$shared_ext$major' 16199 shlibpath_var=LD_LIBRARY_PATH 16200 shlibpath_overrides_runpath=yes 16201 hardcode_into_libs=yes 16202 if test yes = "$with_gnu_ld"; then 16203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16204 else 16205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16206 case $host_os in 16207 sco3.2v5*) 16208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16209 ;; 16210 esac 16211 fi 16212 sys_lib_dlsearch_path_spec='/usr/lib' 16213 ;; 16214 16215tpf*) 16216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16217 version_type=linux # correct to gnu/linux during the next big refactor 16218 need_lib_prefix=no 16219 need_version=no 16220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16221 shlibpath_var=LD_LIBRARY_PATH 16222 shlibpath_overrides_runpath=no 16223 hardcode_into_libs=yes 16224 ;; 16225 16226uts4*) 16227 version_type=linux # correct to gnu/linux during the next big refactor 16228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16229 soname_spec='$libname$release$shared_ext$major' 16230 shlibpath_var=LD_LIBRARY_PATH 16231 ;; 16232 16233*) 16234 dynamic_linker=no 16235 ;; 16236esac 16237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16238$as_echo "$dynamic_linker" >&6; } 16239test no = "$dynamic_linker" && can_build_shared=no 16240 16241variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16242if test yes = "$GCC"; then 16243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16244fi 16245 16246if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16247 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16248fi 16249 16250if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16251 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16252fi 16253 16254# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16255configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16256 16257# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16258func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16259 16260# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16261configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16303$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16304hardcode_action_CXX= 16305if test -n "$hardcode_libdir_flag_spec_CXX" || 16306 test -n "$runpath_var_CXX" || 16307 test yes = "$hardcode_automatic_CXX"; then 16308 16309 # We can hardcode non-existent directories. 16310 if test no != "$hardcode_direct_CXX" && 16311 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16312 # have to relink, otherwise we might link with an installed library 16313 # when we should be linking with a yet-to-be-installed one 16314 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16315 test no != "$hardcode_minus_L_CXX"; then 16316 # Linking always hardcodes the temporary library directory. 16317 hardcode_action_CXX=relink 16318 else 16319 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16320 hardcode_action_CXX=immediate 16321 fi 16322else 16323 # We cannot hardcode anything, or else we can only hardcode existing 16324 # directories. 16325 hardcode_action_CXX=unsupported 16326fi 16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16328$as_echo "$hardcode_action_CXX" >&6; } 16329 16330if test relink = "$hardcode_action_CXX" || 16331 test yes = "$inherit_rpath_CXX"; then 16332 # Fast installation is not supported 16333 enable_fast_install=no 16334elif test yes = "$shlibpath_overrides_runpath" || 16335 test no = "$enable_shared"; then 16336 # Fast installation is not necessary 16337 enable_fast_install=needless 16338fi 16339 16340 16341 16342 16343 16344 16345 16346 fi # test -n "$compiler" 16347 16348 CC=$lt_save_CC 16349 CFLAGS=$lt_save_CFLAGS 16350 LDCXX=$LD 16351 LD=$lt_save_LD 16352 GCC=$lt_save_GCC 16353 with_gnu_ld=$lt_save_with_gnu_ld 16354 lt_cv_path_LDCXX=$lt_cv_path_LD 16355 lt_cv_path_LD=$lt_save_path_LD 16356 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16357 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16358fi # test yes != "$_lt_caught_CXX_error" 16359 16360ac_ext=c 16361ac_cpp='$CPP $CPPFLAGS' 16362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16364ac_compiler_gnu=$ac_cv_c_compiler_gnu 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 ac_config_commands="$ac_config_commands libtool" 16381 16382 16383 16384 16385# Only expand once: 16386 16387 16388 16389 16390 16391cat >confcache <<\_ACEOF 16392# This file is a shell script that caches the results of configure 16393# tests run on this system so they can be shared between configure 16394# scripts and configure runs, see configure's option --config-cache. 16395# It is not useful on other systems. If it contains results you don't 16396# want to keep, you may remove or edit it. 16397# 16398# config.status only pays attention to the cache file if you give it 16399# the --recheck option to rerun configure. 16400# 16401# `ac_cv_env_foo' variables (set or unset) will be overridden when 16402# loading this file, other *unset* `ac_cv_foo' will be assigned the 16403# following values. 16404 16405_ACEOF 16406 16407# The following way of writing the cache mishandles newlines in values, 16408# but we know of no workaround that is simple, portable, and efficient. 16409# So, we kill variables containing newlines. 16410# Ultrix sh set writes to stderr and can't be redirected directly, 16411# and sets the high bit in the cache file unless we assign to the vars. 16412( 16413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16414 eval ac_val=\$$ac_var 16415 case $ac_val in #( 16416 *${as_nl}*) 16417 case $ac_var in #( 16418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16419$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16420 esac 16421 case $ac_var in #( 16422 _ | IFS | as_nl) ;; #( 16423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16424 *) { eval $ac_var=; unset $ac_var;} ;; 16425 esac ;; 16426 esac 16427 done 16428 16429 (set) 2>&1 | 16430 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16431 *${as_nl}ac_space=\ *) 16432 # `set' does not quote correctly, so add quotes: double-quote 16433 # substitution turns \\\\ into \\, and sed turns \\ into \. 16434 sed -n \ 16435 "s/'/'\\\\''/g; 16436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16437 ;; #( 16438 *) 16439 # `set' quotes correctly as required by POSIX, so do not add quotes. 16440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16441 ;; 16442 esac | 16443 sort 16444) | 16445 sed ' 16446 /^ac_cv_env_/b end 16447 t clear 16448 :clear 16449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16450 t end 16451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16452 :end' >>confcache 16453if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16454 if test -w "$cache_file"; then 16455 if test "x$cache_file" != "x/dev/null"; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16457$as_echo "$as_me: updating cache $cache_file" >&6;} 16458 if test ! -f "$cache_file" || test -h "$cache_file"; then 16459 cat confcache >"$cache_file" 16460 else 16461 case $cache_file in #( 16462 */* | ?:*) 16463 mv -f confcache "$cache_file"$$ && 16464 mv -f "$cache_file"$$ "$cache_file" ;; #( 16465 *) 16466 mv -f confcache "$cache_file" ;; 16467 esac 16468 fi 16469 fi 16470 else 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16472$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16473 fi 16474fi 16475rm -f confcache 16476 16477test "x$prefix" = xNONE && prefix=$ac_default_prefix 16478# Let make expand exec_prefix. 16479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16480 16481DEFS=-DHAVE_CONFIG_H 16482 16483ac_libobjs= 16484ac_ltlibobjs= 16485U= 16486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16487 # 1. Remove the extension, and $U if already installed. 16488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16489 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16491 # will be set to the directory where LIBOBJS objects are built. 16492 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16493 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16494done 16495LIBOBJS=$ac_libobjs 16496 16497LTLIBOBJS=$ac_ltlibobjs 16498 16499 16500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16501$as_echo_n "checking that generated files are newer than configure... " >&6; } 16502 if test -n "$am_sleep_pid"; then 16503 # Hide warnings about reused PIDs. 16504 wait $am_sleep_pid 2>/dev/null 16505 fi 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16507$as_echo "done" >&6; } 16508 if test -n "$EXEEXT"; then 16509 am__EXEEXT_TRUE= 16510 am__EXEEXT_FALSE='#' 16511else 16512 am__EXEEXT_TRUE='#' 16513 am__EXEEXT_FALSE= 16514fi 16515 16516if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16517 as_fn_error $? "conditional \"AMDEP\" was never defined. 16518Usually this means the macro was only invoked conditionally." "$LINENO" 5 16519fi 16520if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16521 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16522Usually this means the macro was only invoked conditionally." "$LINENO" 5 16523fi 16524if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16525 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16526Usually this means the macro was only invoked conditionally." "$LINENO" 5 16527fi 16528 16529: "${CONFIG_STATUS=./config.status}" 16530ac_write_fail=0 16531ac_clean_files_save=$ac_clean_files 16532ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16533{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16534$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16535as_write_fail=0 16536cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16537#! $SHELL 16538# Generated by $as_me. 16539# Run this file to recreate the current configuration. 16540# Compiler output produced by configure, useful for debugging 16541# configure, is in config.log if it exists. 16542 16543debug=false 16544ac_cs_recheck=false 16545ac_cs_silent=false 16546 16547SHELL=\${CONFIG_SHELL-$SHELL} 16548export SHELL 16549_ASEOF 16550cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16551## -------------------- ## 16552## M4sh Initialization. ## 16553## -------------------- ## 16554 16555# Be more Bourne compatible 16556DUALCASE=1; export DUALCASE # for MKS sh 16557if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16558 emulate sh 16559 NULLCMD=: 16560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16561 # is contrary to our usage. Disable this feature. 16562 alias -g '${1+"$@"}'='"$@"' 16563 setopt NO_GLOB_SUBST 16564else 16565 case `(set -o) 2>/dev/null` in #( 16566 *posix*) : 16567 set -o posix ;; #( 16568 *) : 16569 ;; 16570esac 16571fi 16572 16573 16574as_nl=' 16575' 16576export as_nl 16577# Printing a long string crashes Solaris 7 /usr/bin/printf. 16578as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16579as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16580as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16581# Prefer a ksh shell builtin over an external printf program on Solaris, 16582# but without wasting forks for bash or zsh. 16583if test -z "$BASH_VERSION$ZSH_VERSION" \ 16584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16585 as_echo='print -r --' 16586 as_echo_n='print -rn --' 16587elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16588 as_echo='printf %s\n' 16589 as_echo_n='printf %s' 16590else 16591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16593 as_echo_n='/usr/ucb/echo -n' 16594 else 16595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16596 as_echo_n_body='eval 16597 arg=$1; 16598 case $arg in #( 16599 *"$as_nl"*) 16600 expr "X$arg" : "X\\(.*\\)$as_nl"; 16601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16602 esac; 16603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16604 ' 16605 export as_echo_n_body 16606 as_echo_n='sh -c $as_echo_n_body as_echo' 16607 fi 16608 export as_echo_body 16609 as_echo='sh -c $as_echo_body as_echo' 16610fi 16611 16612# The user is always right. 16613if test "${PATH_SEPARATOR+set}" != set; then 16614 PATH_SEPARATOR=: 16615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16617 PATH_SEPARATOR=';' 16618 } 16619fi 16620 16621 16622# IFS 16623# We need space, tab and new line, in precisely that order. Quoting is 16624# there to prevent editors from complaining about space-tab. 16625# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16626# splitting by setting IFS to empty value.) 16627IFS=" "" $as_nl" 16628 16629# Find who we are. Look in the path if we contain no directory separator. 16630as_myself= 16631case $0 in #(( 16632 *[\\/]* ) as_myself=$0 ;; 16633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16634for as_dir in $PATH 16635do 16636 IFS=$as_save_IFS 16637 test -z "$as_dir" && as_dir=. 16638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16639 done 16640IFS=$as_save_IFS 16641 16642 ;; 16643esac 16644# We did not find ourselves, most probably we were run as `sh COMMAND' 16645# in which case we are not to be found in the path. 16646if test "x$as_myself" = x; then 16647 as_myself=$0 16648fi 16649if test ! -f "$as_myself"; then 16650 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16651 exit 1 16652fi 16653 16654# Unset variables that we do not need and which cause bugs (e.g. in 16655# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16656# suppresses any "Segmentation fault" message there. '((' could 16657# trigger a bug in pdksh 5.2.14. 16658for as_var in BASH_ENV ENV MAIL MAILPATH 16659do eval test x\${$as_var+set} = xset \ 16660 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16661done 16662PS1='$ ' 16663PS2='> ' 16664PS4='+ ' 16665 16666# NLS nuisances. 16667LC_ALL=C 16668export LC_ALL 16669LANGUAGE=C 16670export LANGUAGE 16671 16672# CDPATH. 16673(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16674 16675 16676# as_fn_error STATUS ERROR [LINENO LOG_FD] 16677# ---------------------------------------- 16678# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16679# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16680# script with STATUS, using 1 if that was 0. 16681as_fn_error () 16682{ 16683 as_status=$1; test $as_status -eq 0 && as_status=1 16684 if test "$4"; then 16685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16686 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16687 fi 16688 $as_echo "$as_me: error: $2" >&2 16689 as_fn_exit $as_status 16690} # as_fn_error 16691 16692 16693# as_fn_set_status STATUS 16694# ----------------------- 16695# Set $? to STATUS, without forking. 16696as_fn_set_status () 16697{ 16698 return $1 16699} # as_fn_set_status 16700 16701# as_fn_exit STATUS 16702# ----------------- 16703# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16704as_fn_exit () 16705{ 16706 set +e 16707 as_fn_set_status $1 16708 exit $1 16709} # as_fn_exit 16710 16711# as_fn_unset VAR 16712# --------------- 16713# Portably unset VAR. 16714as_fn_unset () 16715{ 16716 { eval $1=; unset $1;} 16717} 16718as_unset=as_fn_unset 16719# as_fn_append VAR VALUE 16720# ---------------------- 16721# Append the text in VALUE to the end of the definition contained in VAR. Take 16722# advantage of any shell optimizations that allow amortized linear growth over 16723# repeated appends, instead of the typical quadratic growth present in naive 16724# implementations. 16725if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16726 eval 'as_fn_append () 16727 { 16728 eval $1+=\$2 16729 }' 16730else 16731 as_fn_append () 16732 { 16733 eval $1=\$$1\$2 16734 } 16735fi # as_fn_append 16736 16737# as_fn_arith ARG... 16738# ------------------ 16739# Perform arithmetic evaluation on the ARGs, and store the result in the 16740# global $as_val. Take advantage of shells that can avoid forks. The arguments 16741# must be portable across $(()) and expr. 16742if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16743 eval 'as_fn_arith () 16744 { 16745 as_val=$(( $* )) 16746 }' 16747else 16748 as_fn_arith () 16749 { 16750 as_val=`expr "$@" || test $? -eq 1` 16751 } 16752fi # as_fn_arith 16753 16754 16755if expr a : '\(a\)' >/dev/null 2>&1 && 16756 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16757 as_expr=expr 16758else 16759 as_expr=false 16760fi 16761 16762if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16763 as_basename=basename 16764else 16765 as_basename=false 16766fi 16767 16768if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16769 as_dirname=dirname 16770else 16771 as_dirname=false 16772fi 16773 16774as_me=`$as_basename -- "$0" || 16775$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16776 X"$0" : 'X\(//\)$' \| \ 16777 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16778$as_echo X/"$0" | 16779 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16780 s//\1/ 16781 q 16782 } 16783 /^X\/\(\/\/\)$/{ 16784 s//\1/ 16785 q 16786 } 16787 /^X\/\(\/\).*/{ 16788 s//\1/ 16789 q 16790 } 16791 s/.*/./; q'` 16792 16793# Avoid depending upon Character Ranges. 16794as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16795as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16796as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16797as_cr_digits='0123456789' 16798as_cr_alnum=$as_cr_Letters$as_cr_digits 16799 16800ECHO_C= ECHO_N= ECHO_T= 16801case `echo -n x` in #((((( 16802-n*) 16803 case `echo 'xy\c'` in 16804 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16805 xy) ECHO_C='\c';; 16806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16807 ECHO_T=' ';; 16808 esac;; 16809*) 16810 ECHO_N='-n';; 16811esac 16812 16813rm -f conf$$ conf$$.exe conf$$.file 16814if test -d conf$$.dir; then 16815 rm -f conf$$.dir/conf$$.file 16816else 16817 rm -f conf$$.dir 16818 mkdir conf$$.dir 2>/dev/null 16819fi 16820if (echo >conf$$.file) 2>/dev/null; then 16821 if ln -s conf$$.file conf$$ 2>/dev/null; then 16822 as_ln_s='ln -s' 16823 # ... but there are two gotchas: 16824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16826 # In both cases, we have to default to `cp -pR'. 16827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16828 as_ln_s='cp -pR' 16829 elif ln conf$$.file conf$$ 2>/dev/null; then 16830 as_ln_s=ln 16831 else 16832 as_ln_s='cp -pR' 16833 fi 16834else 16835 as_ln_s='cp -pR' 16836fi 16837rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16838rmdir conf$$.dir 2>/dev/null 16839 16840 16841# as_fn_mkdir_p 16842# ------------- 16843# Create "$as_dir" as a directory, including parents if necessary. 16844as_fn_mkdir_p () 16845{ 16846 16847 case $as_dir in #( 16848 -*) as_dir=./$as_dir;; 16849 esac 16850 test -d "$as_dir" || eval $as_mkdir_p || { 16851 as_dirs= 16852 while :; do 16853 case $as_dir in #( 16854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16855 *) as_qdir=$as_dir;; 16856 esac 16857 as_dirs="'$as_qdir' $as_dirs" 16858 as_dir=`$as_dirname -- "$as_dir" || 16859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16860 X"$as_dir" : 'X\(//\)[^/]' \| \ 16861 X"$as_dir" : 'X\(//\)$' \| \ 16862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16863$as_echo X"$as_dir" | 16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16865 s//\1/ 16866 q 16867 } 16868 /^X\(\/\/\)[^/].*/{ 16869 s//\1/ 16870 q 16871 } 16872 /^X\(\/\/\)$/{ 16873 s//\1/ 16874 q 16875 } 16876 /^X\(\/\).*/{ 16877 s//\1/ 16878 q 16879 } 16880 s/.*/./; q'` 16881 test -d "$as_dir" && break 16882 done 16883 test -z "$as_dirs" || eval "mkdir $as_dirs" 16884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16885 16886 16887} # as_fn_mkdir_p 16888if mkdir -p . 2>/dev/null; then 16889 as_mkdir_p='mkdir -p "$as_dir"' 16890else 16891 test -d ./-p && rmdir ./-p 16892 as_mkdir_p=false 16893fi 16894 16895 16896# as_fn_executable_p FILE 16897# ----------------------- 16898# Test if FILE is an executable regular file. 16899as_fn_executable_p () 16900{ 16901 test -f "$1" && test -x "$1" 16902} # as_fn_executable_p 16903as_test_x='test -x' 16904as_executable_p=as_fn_executable_p 16905 16906# Sed expression to map a string onto a valid CPP name. 16907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16908 16909# Sed expression to map a string onto a valid variable name. 16910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16911 16912 16913exec 6>&1 16914## ----------------------------------- ## 16915## Main body of $CONFIG_STATUS script. ## 16916## ----------------------------------- ## 16917_ASEOF 16918test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16919 16920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16921# Save the log message, to keep $0 and so on meaningful, and to 16922# report actual input values of CONFIG_FILES etc. instead of their 16923# values after options handling. 16924ac_log=" 16925This file was extended by dragon $as_me 1.5.5, which was 16926generated by GNU Autoconf 2.69. Invocation command line was 16927 16928 CONFIG_FILES = $CONFIG_FILES 16929 CONFIG_HEADERS = $CONFIG_HEADERS 16930 CONFIG_LINKS = $CONFIG_LINKS 16931 CONFIG_COMMANDS = $CONFIG_COMMANDS 16932 $ $0 $@ 16933 16934on `(hostname || uname -n) 2>/dev/null | sed 1q` 16935" 16936 16937_ACEOF 16938 16939case $ac_config_files in *" 16940"*) set x $ac_config_files; shift; ac_config_files=$*;; 16941esac 16942 16943case $ac_config_headers in *" 16944"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16945esac 16946 16947 16948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16949# Files that config.status was made for. 16950config_files="$ac_config_files" 16951config_headers="$ac_config_headers" 16952config_commands="$ac_config_commands" 16953 16954_ACEOF 16955 16956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16957ac_cs_usage="\ 16958\`$as_me' instantiates files and other configuration actions 16959from templates according to the current configuration. Unless the files 16960and actions are specified as TAGs, all are instantiated by default. 16961 16962Usage: $0 [OPTION]... [TAG]... 16963 16964 -h, --help print this help, then exit 16965 -V, --version print version number and configuration settings, then exit 16966 --config print configuration, then exit 16967 -q, --quiet, --silent 16968 do not print progress messages 16969 -d, --debug don't remove temporary files 16970 --recheck update $as_me by reconfiguring in the same conditions 16971 --file=FILE[:TEMPLATE] 16972 instantiate the configuration file FILE 16973 --header=FILE[:TEMPLATE] 16974 instantiate the configuration header FILE 16975 16976Configuration files: 16977$config_files 16978 16979Configuration headers: 16980$config_headers 16981 16982Configuration commands: 16983$config_commands 16984 16985Report bugs to <lemke@lemke-it.com>." 16986 16987_ACEOF 16988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16989ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16990ac_cs_version="\\ 16991dragon config.status 1.5.5 16992configured by $0, generated by GNU Autoconf 2.69, 16993 with options \\"\$ac_cs_config\\" 16994 16995Copyright (C) 2012 Free Software Foundation, Inc. 16996This config.status script is free software; the Free Software Foundation 16997gives unlimited permission to copy, distribute and modify it." 16998 16999ac_pwd='$ac_pwd' 17000srcdir='$srcdir' 17001INSTALL='$INSTALL' 17002MKDIR_P='$MKDIR_P' 17003AWK='$AWK' 17004test -n "\$AWK" || AWK=awk 17005_ACEOF 17006 17007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17008# The default lists apply if the user does not specify any file. 17009ac_need_defaults=: 17010while test $# != 0 17011do 17012 case $1 in 17013 --*=?*) 17014 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17015 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17016 ac_shift=: 17017 ;; 17018 --*=) 17019 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17020 ac_optarg= 17021 ac_shift=: 17022 ;; 17023 *) 17024 ac_option=$1 17025 ac_optarg=$2 17026 ac_shift=shift 17027 ;; 17028 esac 17029 17030 case $ac_option in 17031 # Handling of the options. 17032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17033 ac_cs_recheck=: ;; 17034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17035 $as_echo "$ac_cs_version"; exit ;; 17036 --config | --confi | --conf | --con | --co | --c ) 17037 $as_echo "$ac_cs_config"; exit ;; 17038 --debug | --debu | --deb | --de | --d | -d ) 17039 debug=: ;; 17040 --file | --fil | --fi | --f ) 17041 $ac_shift 17042 case $ac_optarg in 17043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17044 '') as_fn_error $? "missing file argument" ;; 17045 esac 17046 as_fn_append CONFIG_FILES " '$ac_optarg'" 17047 ac_need_defaults=false;; 17048 --header | --heade | --head | --hea ) 17049 $ac_shift 17050 case $ac_optarg in 17051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17052 esac 17053 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17054 ac_need_defaults=false;; 17055 --he | --h) 17056 # Conflict between --help and --header 17057 as_fn_error $? "ambiguous option: \`$1' 17058Try \`$0 --help' for more information.";; 17059 --help | --hel | -h ) 17060 $as_echo "$ac_cs_usage"; exit ;; 17061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17062 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17063 ac_cs_silent=: ;; 17064 17065 # This is an error. 17066 -*) as_fn_error $? "unrecognized option: \`$1' 17067Try \`$0 --help' for more information." ;; 17068 17069 *) as_fn_append ac_config_targets " $1" 17070 ac_need_defaults=false ;; 17071 17072 esac 17073 shift 17074done 17075 17076ac_configure_extra_args= 17077 17078if $ac_cs_silent; then 17079 exec 6>/dev/null 17080 ac_configure_extra_args="$ac_configure_extra_args --silent" 17081fi 17082 17083_ACEOF 17084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17085if \$ac_cs_recheck; then 17086 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17087 shift 17088 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17089 CONFIG_SHELL='$SHELL' 17090 export CONFIG_SHELL 17091 exec "\$@" 17092fi 17093 17094_ACEOF 17095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17096exec 5>>config.log 17097{ 17098 echo 17099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17100## Running $as_me. ## 17101_ASBOX 17102 $as_echo "$ac_log" 17103} >&5 17104 17105_ACEOF 17106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17107# 17108# INIT-COMMANDS 17109# 17110AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17111 17112 17113# The HP-UX ksh and POSIX shell print the target directory to stdout 17114# if CDPATH is set. 17115(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17116 17117sed_quote_subst='$sed_quote_subst' 17118double_quote_subst='$double_quote_subst' 17119delay_variable_subst='$delay_variable_subst' 17120macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17121macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17122enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17123enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17124pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17125enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17126shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17127SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17128ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17129PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17130host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17131host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17132host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17133build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17134build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17135build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17136SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17137Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17138GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17139EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17140FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17141LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17142NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17143LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17144max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17145ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17146exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17147lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17148lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17149lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17150lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17151lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17152reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17153reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17154OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17155deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17156file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17157file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17158want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17159DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17160sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17161AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17162AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17163archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17164STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17165RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17166old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17167old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17168old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17169lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17170CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17171CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17172compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17173GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17174lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17175lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17176lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17177lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17178lt_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"`' 17179lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17180nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17181lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17182lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17183objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17184MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17185lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17186lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17187lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17188lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17189lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17190need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17191MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17192DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17193NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17194LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17195OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17196OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17197libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17198shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17199extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17200archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17201enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17202export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17203whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17204compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17205old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17206old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17207archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17208archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17209module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17210module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17211with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17212allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17213no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17214hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17215hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17216hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17217hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17218hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17219hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17220hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17221inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17222link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17223always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17224export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17225exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17226include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17227prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17228postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17229file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17230variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17231need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17232need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17233version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17234runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17235shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17236shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17237libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17238library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17239soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17240install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17241postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17242postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17243finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17244finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17245hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17246sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17247configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17248configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17249hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17250enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17251enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17252enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17253old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17254striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17255compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17256predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17257postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17258predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17259postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17260compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17261LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17262reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17263reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17264old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17265compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17266GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17267lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17268lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17269lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17270lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17271lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17272archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17273enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17274export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17275whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17276compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17277old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17278old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17279archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17280archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17281module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17282module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17283with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17284allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17285no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17286hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17287hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17288hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17289hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17290hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17291hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17292hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17293inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17294link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17295always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17296export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17297exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17298include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17299prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17300postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17301file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17302hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17303compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17304predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17305postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17306predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17307postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17308compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17309 17310LTCC='$LTCC' 17311LTCFLAGS='$LTCFLAGS' 17312compiler='$compiler_DEFAULT' 17313 17314# A function that is used when there is no print builtin or printf. 17315func_fallback_echo () 17316{ 17317 eval 'cat <<_LTECHO_EOF 17318\$1 17319_LTECHO_EOF' 17320} 17321 17322# Quote evaled strings. 17323for var in SHELL \ 17324ECHO \ 17325PATH_SEPARATOR \ 17326SED \ 17327GREP \ 17328EGREP \ 17329FGREP \ 17330LD \ 17331NM \ 17332LN_S \ 17333lt_SP2NL \ 17334lt_NL2SP \ 17335reload_flag \ 17336OBJDUMP \ 17337deplibs_check_method \ 17338file_magic_cmd \ 17339file_magic_glob \ 17340want_nocaseglob \ 17341DLLTOOL \ 17342sharedlib_from_linklib_cmd \ 17343AR \ 17344AR_FLAGS \ 17345archiver_list_spec \ 17346STRIP \ 17347RANLIB \ 17348CC \ 17349CFLAGS \ 17350compiler \ 17351lt_cv_sys_global_symbol_pipe \ 17352lt_cv_sys_global_symbol_to_cdecl \ 17353lt_cv_sys_global_symbol_to_import \ 17354lt_cv_sys_global_symbol_to_c_name_address \ 17355lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17356lt_cv_nm_interface \ 17357nm_file_list_spec \ 17358lt_cv_truncate_bin \ 17359lt_prog_compiler_no_builtin_flag \ 17360lt_prog_compiler_pic \ 17361lt_prog_compiler_wl \ 17362lt_prog_compiler_static \ 17363lt_cv_prog_compiler_c_o \ 17364need_locks \ 17365MANIFEST_TOOL \ 17366DSYMUTIL \ 17367NMEDIT \ 17368LIPO \ 17369OTOOL \ 17370OTOOL64 \ 17371shrext_cmds \ 17372export_dynamic_flag_spec \ 17373whole_archive_flag_spec \ 17374compiler_needs_object \ 17375with_gnu_ld \ 17376allow_undefined_flag \ 17377no_undefined_flag \ 17378hardcode_libdir_flag_spec \ 17379hardcode_libdir_separator \ 17380exclude_expsyms \ 17381include_expsyms \ 17382file_list_spec \ 17383variables_saved_for_relink \ 17384libname_spec \ 17385library_names_spec \ 17386soname_spec \ 17387install_override_mode \ 17388finish_eval \ 17389old_striplib \ 17390striplib \ 17391compiler_lib_search_dirs \ 17392predep_objects \ 17393postdep_objects \ 17394predeps \ 17395postdeps \ 17396compiler_lib_search_path \ 17397LD_CXX \ 17398reload_flag_CXX \ 17399compiler_CXX \ 17400lt_prog_compiler_no_builtin_flag_CXX \ 17401lt_prog_compiler_pic_CXX \ 17402lt_prog_compiler_wl_CXX \ 17403lt_prog_compiler_static_CXX \ 17404lt_cv_prog_compiler_c_o_CXX \ 17405export_dynamic_flag_spec_CXX \ 17406whole_archive_flag_spec_CXX \ 17407compiler_needs_object_CXX \ 17408with_gnu_ld_CXX \ 17409allow_undefined_flag_CXX \ 17410no_undefined_flag_CXX \ 17411hardcode_libdir_flag_spec_CXX \ 17412hardcode_libdir_separator_CXX \ 17413exclude_expsyms_CXX \ 17414include_expsyms_CXX \ 17415file_list_spec_CXX \ 17416compiler_lib_search_dirs_CXX \ 17417predep_objects_CXX \ 17418postdep_objects_CXX \ 17419predeps_CXX \ 17420postdeps_CXX \ 17421compiler_lib_search_path_CXX; do 17422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17423 *[\\\\\\\`\\"\\\$]*) 17424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17425 ;; 17426 *) 17427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17428 ;; 17429 esac 17430done 17431 17432# Double-quote double-evaled strings. 17433for var in reload_cmds \ 17434old_postinstall_cmds \ 17435old_postuninstall_cmds \ 17436old_archive_cmds \ 17437extract_expsyms_cmds \ 17438old_archive_from_new_cmds \ 17439old_archive_from_expsyms_cmds \ 17440archive_cmds \ 17441archive_expsym_cmds \ 17442module_cmds \ 17443module_expsym_cmds \ 17444export_symbols_cmds \ 17445prelink_cmds \ 17446postlink_cmds \ 17447postinstall_cmds \ 17448postuninstall_cmds \ 17449finish_cmds \ 17450sys_lib_search_path_spec \ 17451configure_time_dlsearch_path \ 17452configure_time_lt_sys_library_path \ 17453reload_cmds_CXX \ 17454old_archive_cmds_CXX \ 17455old_archive_from_new_cmds_CXX \ 17456old_archive_from_expsyms_cmds_CXX \ 17457archive_cmds_CXX \ 17458archive_expsym_cmds_CXX \ 17459module_cmds_CXX \ 17460module_expsym_cmds_CXX \ 17461export_symbols_cmds_CXX \ 17462prelink_cmds_CXX \ 17463postlink_cmds_CXX; do 17464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17465 *[\\\\\\\`\\"\\\$]*) 17466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17467 ;; 17468 *) 17469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17470 ;; 17471 esac 17472done 17473 17474ac_aux_dir='$ac_aux_dir' 17475 17476# See if we are running on zsh, and set the options that allow our 17477# commands through without removal of \ escapes INIT. 17478if test -n "\${ZSH_VERSION+set}"; then 17479 setopt NO_GLOB_SUBST 17480fi 17481 17482 17483 PACKAGE='$PACKAGE' 17484 VERSION='$VERSION' 17485 RM='$RM' 17486 ofile='$ofile' 17487 17488 17489 17490 17491 17492 17493_ACEOF 17494 17495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17496 17497# Handling of arguments. 17498for ac_config_target in $ac_config_targets 17499do 17500 case $ac_config_target in 17501 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17504 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17505 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 17506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17507 17508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17509 esac 17510done 17511 17512 17513# If the user did not use the arguments to specify the items to instantiate, 17514# then the envvar interface is used. Set only those that are not. 17515# We use the long form for the default assignment because of an extremely 17516# bizarre bug on SunOS 4.1.3. 17517if $ac_need_defaults; then 17518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17521fi 17522 17523# Have a temporary directory for convenience. Make it in the build tree 17524# simply because there is no reason against having it here, and in addition, 17525# creating and moving files from /tmp can sometimes cause problems. 17526# Hook for its removal unless debugging. 17527# Note that there is a small window in which the directory will not be cleaned: 17528# after its creation but before its name has been assigned to `$tmp'. 17529$debug || 17530{ 17531 tmp= ac_tmp= 17532 trap 'exit_status=$? 17533 : "${ac_tmp:=$tmp}" 17534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17535' 0 17536 trap 'as_fn_exit 1' 1 2 13 15 17537} 17538# Create a (secure) tmp directory for tmp files. 17539 17540{ 17541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17542 test -d "$tmp" 17543} || 17544{ 17545 tmp=./conf$$-$RANDOM 17546 (umask 077 && mkdir "$tmp") 17547} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17548ac_tmp=$tmp 17549 17550# Set up the scripts for CONFIG_FILES section. 17551# No need to generate them if there are no CONFIG_FILES. 17552# This happens for instance with `./config.status config.h'. 17553if test -n "$CONFIG_FILES"; then 17554 17555 17556ac_cr=`echo X | tr X '\015'` 17557# On cygwin, bash can eat \r inside `` if the user requested igncr. 17558# But we know of no other shell where ac_cr would be empty at this 17559# point, so we can use a bashism as a fallback. 17560if test "x$ac_cr" = x; then 17561 eval ac_cr=\$\'\\r\' 17562fi 17563ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17564if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17565 ac_cs_awk_cr='\\r' 17566else 17567 ac_cs_awk_cr=$ac_cr 17568fi 17569 17570echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17571_ACEOF 17572 17573 17574{ 17575 echo "cat >conf$$subs.awk <<_ACEOF" && 17576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17577 echo "_ACEOF" 17578} >conf$$subs.sh || 17579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17580ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17581ac_delim='%!_!# ' 17582for ac_last_try in false false false false false :; do 17583 . ./conf$$subs.sh || 17584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17585 17586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17587 if test $ac_delim_n = $ac_delim_num; then 17588 break 17589 elif $ac_last_try; then 17590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17591 else 17592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17593 fi 17594done 17595rm -f conf$$subs.sh 17596 17597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17598cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17599_ACEOF 17600sed -n ' 17601h 17602s/^/S["/; s/!.*/"]=/ 17603p 17604g 17605s/^[^!]*!// 17606:repl 17607t repl 17608s/'"$ac_delim"'$// 17609t delim 17610:nl 17611h 17612s/\(.\{148\}\)..*/\1/ 17613t more1 17614s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17615p 17616n 17617b repl 17618:more1 17619s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17620p 17621g 17622s/.\{148\}// 17623t nl 17624:delim 17625h 17626s/\(.\{148\}\)..*/\1/ 17627t more2 17628s/["\\]/\\&/g; s/^/"/; s/$/"/ 17629p 17630b 17631:more2 17632s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17633p 17634g 17635s/.\{148\}// 17636t delim 17637' <conf$$subs.awk | sed ' 17638/^[^""]/{ 17639 N 17640 s/\n// 17641} 17642' >>$CONFIG_STATUS || ac_write_fail=1 17643rm -f conf$$subs.awk 17644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17645_ACAWK 17646cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17647 for (key in S) S_is_set[key] = 1 17648 FS = "" 17649 17650} 17651{ 17652 line = $ 0 17653 nfields = split(line, field, "@") 17654 substed = 0 17655 len = length(field[1]) 17656 for (i = 2; i < nfields; i++) { 17657 key = field[i] 17658 keylen = length(key) 17659 if (S_is_set[key]) { 17660 value = S[key] 17661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17662 len += length(value) + length(field[++i]) 17663 substed = 1 17664 } else 17665 len += 1 + keylen 17666 } 17667 17668 print line 17669} 17670 17671_ACAWK 17672_ACEOF 17673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17674if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17676else 17677 cat 17678fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17680_ACEOF 17681 17682# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17683# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17684# trailing colons and then remove the whole line if VPATH becomes empty 17685# (actually we leave an empty line to preserve line numbers). 17686if test "x$srcdir" = x.; then 17687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17688h 17689s/// 17690s/^/:/ 17691s/[ ]*$/:/ 17692s/:\$(srcdir):/:/g 17693s/:\${srcdir}:/:/g 17694s/:@srcdir@:/:/g 17695s/^:*// 17696s/:*$// 17697x 17698s/\(=[ ]*\).*/\1/ 17699G 17700s/\n// 17701s/^[^=]*=[ ]*$// 17702}' 17703fi 17704 17705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17706fi # test -n "$CONFIG_FILES" 17707 17708# Set up the scripts for CONFIG_HEADERS section. 17709# No need to generate them if there are no CONFIG_HEADERS. 17710# This happens for instance with `./config.status Makefile'. 17711if test -n "$CONFIG_HEADERS"; then 17712cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17713BEGIN { 17714_ACEOF 17715 17716# Transform confdefs.h into an awk script `defines.awk', embedded as 17717# here-document in config.status, that substitutes the proper values into 17718# config.h.in to produce config.h. 17719 17720# Create a delimiter string that does not exist in confdefs.h, to ease 17721# handling of long lines. 17722ac_delim='%!_!# ' 17723for ac_last_try in false false :; do 17724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17725 if test -z "$ac_tt"; then 17726 break 17727 elif $ac_last_try; then 17728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17729 else 17730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17731 fi 17732done 17733 17734# For the awk script, D is an array of macro values keyed by name, 17735# likewise P contains macro parameters if any. Preserve backslash 17736# newline sequences. 17737 17738ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17739sed -n ' 17740s/.\{148\}/&'"$ac_delim"'/g 17741t rset 17742:rset 17743s/^[ ]*#[ ]*define[ ][ ]*/ / 17744t def 17745d 17746:def 17747s/\\$// 17748t bsnl 17749s/["\\]/\\&/g 17750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17751D["\1"]=" \3"/p 17752s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17753d 17754:bsnl 17755s/["\\]/\\&/g 17756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17757D["\1"]=" \3\\\\\\n"\\/p 17758t cont 17759s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17760t cont 17761d 17762:cont 17763n 17764s/.\{148\}/&'"$ac_delim"'/g 17765t clear 17766:clear 17767s/\\$// 17768t bsnlc 17769s/["\\]/\\&/g; s/^/"/; s/$/"/p 17770d 17771:bsnlc 17772s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17773b cont 17774' <confdefs.h | sed ' 17775s/'"$ac_delim"'/"\\\ 17776"/g' >>$CONFIG_STATUS || ac_write_fail=1 17777 17778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17779 for (key in D) D_is_set[key] = 1 17780 FS = "" 17781} 17782/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17783 line = \$ 0 17784 split(line, arg, " ") 17785 if (arg[1] == "#") { 17786 defundef = arg[2] 17787 mac1 = arg[3] 17788 } else { 17789 defundef = substr(arg[1], 2) 17790 mac1 = arg[2] 17791 } 17792 split(mac1, mac2, "(") #) 17793 macro = mac2[1] 17794 prefix = substr(line, 1, index(line, defundef) - 1) 17795 if (D_is_set[macro]) { 17796 # Preserve the white space surrounding the "#". 17797 print prefix "define", macro P[macro] D[macro] 17798 next 17799 } else { 17800 # Replace #undef with comments. This is necessary, for example, 17801 # in the case of _POSIX_SOURCE, which is predefined and required 17802 # on some systems where configure will not decide to define it. 17803 if (defundef == "undef") { 17804 print "/*", prefix defundef, macro, "*/" 17805 next 17806 } 17807 } 17808} 17809{ print } 17810_ACAWK 17811_ACEOF 17812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17814fi # test -n "$CONFIG_HEADERS" 17815 17816 17817eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17818shift 17819for ac_tag 17820do 17821 case $ac_tag in 17822 :[FHLC]) ac_mode=$ac_tag; continue;; 17823 esac 17824 case $ac_mode$ac_tag in 17825 :[FHL]*:*);; 17826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17827 :[FH]-) ac_tag=-:-;; 17828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17829 esac 17830 ac_save_IFS=$IFS 17831 IFS=: 17832 set x $ac_tag 17833 IFS=$ac_save_IFS 17834 shift 17835 ac_file=$1 17836 shift 17837 17838 case $ac_mode in 17839 :L) ac_source=$1;; 17840 :[FH]) 17841 ac_file_inputs= 17842 for ac_f 17843 do 17844 case $ac_f in 17845 -) ac_f="$ac_tmp/stdin";; 17846 *) # Look for the file first in the build tree, then in the source tree 17847 # (if the path is not absolute). The absolute path cannot be DOS-style, 17848 # because $ac_f cannot contain `:'. 17849 test -f "$ac_f" || 17850 case $ac_f in 17851 [\\/$]*) false;; 17852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17853 esac || 17854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17855 esac 17856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17857 as_fn_append ac_file_inputs " '$ac_f'" 17858 done 17859 17860 # Let's still pretend it is `configure' which instantiates (i.e., don't 17861 # use $as_me), people would be surprised to read: 17862 # /* config.h. Generated by config.status. */ 17863 configure_input='Generated from '` 17864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17865 `' by configure.' 17866 if test x"$ac_file" != x-; then 17867 configure_input="$ac_file. $configure_input" 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17869$as_echo "$as_me: creating $ac_file" >&6;} 17870 fi 17871 # Neutralize special characters interpreted by sed in replacement strings. 17872 case $configure_input in #( 17873 *\&* | *\|* | *\\* ) 17874 ac_sed_conf_input=`$as_echo "$configure_input" | 17875 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17876 *) ac_sed_conf_input=$configure_input;; 17877 esac 17878 17879 case $ac_tag in 17880 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17882 esac 17883 ;; 17884 esac 17885 17886 ac_dir=`$as_dirname -- "$ac_file" || 17887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17888 X"$ac_file" : 'X\(//\)[^/]' \| \ 17889 X"$ac_file" : 'X\(//\)$' \| \ 17890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17891$as_echo X"$ac_file" | 17892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17893 s//\1/ 17894 q 17895 } 17896 /^X\(\/\/\)[^/].*/{ 17897 s//\1/ 17898 q 17899 } 17900 /^X\(\/\/\)$/{ 17901 s//\1/ 17902 q 17903 } 17904 /^X\(\/\).*/{ 17905 s//\1/ 17906 q 17907 } 17908 s/.*/./; q'` 17909 as_dir="$ac_dir"; as_fn_mkdir_p 17910 ac_builddir=. 17911 17912case "$ac_dir" in 17913.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17914*) 17915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17916 # A ".." for each directory in $ac_dir_suffix. 17917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17918 case $ac_top_builddir_sub in 17919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17921 esac ;; 17922esac 17923ac_abs_top_builddir=$ac_pwd 17924ac_abs_builddir=$ac_pwd$ac_dir_suffix 17925# for backward compatibility: 17926ac_top_builddir=$ac_top_build_prefix 17927 17928case $srcdir in 17929 .) # We are building in place. 17930 ac_srcdir=. 17931 ac_top_srcdir=$ac_top_builddir_sub 17932 ac_abs_top_srcdir=$ac_pwd ;; 17933 [\\/]* | ?:[\\/]* ) # Absolute name. 17934 ac_srcdir=$srcdir$ac_dir_suffix; 17935 ac_top_srcdir=$srcdir 17936 ac_abs_top_srcdir=$srcdir ;; 17937 *) # Relative name. 17938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17939 ac_top_srcdir=$ac_top_build_prefix$srcdir 17940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17941esac 17942ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17943 17944 17945 case $ac_mode in 17946 :F) 17947 # 17948 # CONFIG_FILE 17949 # 17950 17951 case $INSTALL in 17952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17954 esac 17955 ac_MKDIR_P=$MKDIR_P 17956 case $MKDIR_P in 17957 [\\/$]* | ?:[\\/]* ) ;; 17958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17959 esac 17960_ACEOF 17961 17962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17963# If the template does not know about datarootdir, expand it. 17964# FIXME: This hack should be removed a few years after 2.60. 17965ac_datarootdir_hack=; ac_datarootdir_seen= 17966ac_sed_dataroot=' 17967/datarootdir/ { 17968 p 17969 q 17970} 17971/@datadir@/p 17972/@docdir@/p 17973/@infodir@/p 17974/@localedir@/p 17975/@mandir@/p' 17976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17977*datarootdir*) ac_datarootdir_seen=yes;; 17978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17981_ACEOF 17982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17983 ac_datarootdir_hack=' 17984 s&@datadir@&$datadir&g 17985 s&@docdir@&$docdir&g 17986 s&@infodir@&$infodir&g 17987 s&@localedir@&$localedir&g 17988 s&@mandir@&$mandir&g 17989 s&\\\${datarootdir}&$datarootdir&g' ;; 17990esac 17991_ACEOF 17992 17993# Neutralize VPATH when `$srcdir' = `.'. 17994# Shell code in configure.ac might set extrasub. 17995# FIXME: do we really want to maintain this feature? 17996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17997ac_sed_extra="$ac_vpsub 17998$extrasub 17999_ACEOF 18000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18001:t 18002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18003s|@configure_input@|$ac_sed_conf_input|;t t 18004s&@top_builddir@&$ac_top_builddir_sub&;t t 18005s&@top_build_prefix@&$ac_top_build_prefix&;t t 18006s&@srcdir@&$ac_srcdir&;t t 18007s&@abs_srcdir@&$ac_abs_srcdir&;t t 18008s&@top_srcdir@&$ac_top_srcdir&;t t 18009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18010s&@builddir@&$ac_builddir&;t t 18011s&@abs_builddir@&$ac_abs_builddir&;t t 18012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18013s&@INSTALL@&$ac_INSTALL&;t t 18014s&@MKDIR_P@&$ac_MKDIR_P&;t t 18015$ac_datarootdir_hack 18016" 18017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18019 18020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18023 "$ac_tmp/out"`; test -z "$ac_out"; } && 18024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18025which seems to be undefined. Please make sure it is defined" >&5 18026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18027which seems to be undefined. Please make sure it is defined" >&2;} 18028 18029 rm -f "$ac_tmp/stdin" 18030 case $ac_file in 18031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18033 esac \ 18034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18035 ;; 18036 :H) 18037 # 18038 # CONFIG_HEADER 18039 # 18040 if test x"$ac_file" != x-; then 18041 { 18042 $as_echo "/* $configure_input */" \ 18043 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18044 } >"$ac_tmp/config.h" \ 18045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18046 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18048$as_echo "$as_me: $ac_file is unchanged" >&6;} 18049 else 18050 rm -f "$ac_file" 18051 mv "$ac_tmp/config.h" "$ac_file" \ 18052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18053 fi 18054 else 18055 $as_echo "/* $configure_input */" \ 18056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18057 || as_fn_error $? "could not create -" "$LINENO" 5 18058 fi 18059# Compute "$ac_file"'s index in $config_headers. 18060_am_arg="$ac_file" 18061_am_stamp_count=1 18062for _am_header in $config_headers :; do 18063 case $_am_header in 18064 $_am_arg | $_am_arg:* ) 18065 break ;; 18066 * ) 18067 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18068 esac 18069done 18070echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18071$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18072 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18073 X"$_am_arg" : 'X\(//\)$' \| \ 18074 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18075$as_echo X"$_am_arg" | 18076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18077 s//\1/ 18078 q 18079 } 18080 /^X\(\/\/\)[^/].*/{ 18081 s//\1/ 18082 q 18083 } 18084 /^X\(\/\/\)$/{ 18085 s//\1/ 18086 q 18087 } 18088 /^X\(\/\).*/{ 18089 s//\1/ 18090 q 18091 } 18092 s/.*/./; q'`/stamp-h$_am_stamp_count 18093 ;; 18094 18095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18096$as_echo "$as_me: executing $ac_file commands" >&6;} 18097 ;; 18098 esac 18099 18100 18101 case $ac_file$ac_mode in 18102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18103 # Older Autoconf quotes --file arguments for eval, but not when files 18104 # are listed without --file. Let's play safe and only enable the eval 18105 # if we detect the quoting. 18106 case $CONFIG_FILES in 18107 *\'*) eval set x "$CONFIG_FILES" ;; 18108 *) set x $CONFIG_FILES ;; 18109 esac 18110 shift 18111 for mf 18112 do 18113 # Strip MF so we end up with the name of the file. 18114 mf=`echo "$mf" | sed -e 's/:.*$//'` 18115 # Check whether this is an Automake generated Makefile or not. 18116 # We used to match only the files named 'Makefile.in', but 18117 # some people rename them; so instead we look at the file content. 18118 # Grep'ing the first line is not enough: some people post-process 18119 # each Makefile.in and add a new line on top of each file to say so. 18120 # Grep'ing the whole file is not good either: AIX grep has a line 18121 # limit of 2048, but all sed's we know have understand at least 4000. 18122 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18123 dirpart=`$as_dirname -- "$mf" || 18124$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18125 X"$mf" : 'X\(//\)[^/]' \| \ 18126 X"$mf" : 'X\(//\)$' \| \ 18127 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18128$as_echo X"$mf" | 18129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18130 s//\1/ 18131 q 18132 } 18133 /^X\(\/\/\)[^/].*/{ 18134 s//\1/ 18135 q 18136 } 18137 /^X\(\/\/\)$/{ 18138 s//\1/ 18139 q 18140 } 18141 /^X\(\/\).*/{ 18142 s//\1/ 18143 q 18144 } 18145 s/.*/./; q'` 18146 else 18147 continue 18148 fi 18149 # Extract the definition of DEPDIR, am__include, and am__quote 18150 # from the Makefile without running 'make'. 18151 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18152 test -z "$DEPDIR" && continue 18153 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18154 test -z "am__include" && continue 18155 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18156 # Find all dependency output files, they are included files with 18157 # $(DEPDIR) in their names. We invoke sed twice because it is the 18158 # simplest approach to changing $(DEPDIR) to its actual value in the 18159 # expansion. 18160 for file in `sed -n " 18161 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18162 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18163 # Make sure the directory exists. 18164 test -f "$dirpart/$file" && continue 18165 fdir=`$as_dirname -- "$file" || 18166$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18167 X"$file" : 'X\(//\)[^/]' \| \ 18168 X"$file" : 'X\(//\)$' \| \ 18169 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18170$as_echo X"$file" | 18171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18172 s//\1/ 18173 q 18174 } 18175 /^X\(\/\/\)[^/].*/{ 18176 s//\1/ 18177 q 18178 } 18179 /^X\(\/\/\)$/{ 18180 s//\1/ 18181 q 18182 } 18183 /^X\(\/\).*/{ 18184 s//\1/ 18185 q 18186 } 18187 s/.*/./; q'` 18188 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18189 # echo "creating $dirpart/$file" 18190 echo '# dummy' > "$dirpart/$file" 18191 done 18192 done 18193} 18194 ;; 18195 "libtool":C) 18196 18197 # See if we are running on zsh, and set the options that allow our 18198 # commands through without removal of \ escapes. 18199 if test -n "${ZSH_VERSION+set}"; then 18200 setopt NO_GLOB_SUBST 18201 fi 18202 18203 cfgfile=${ofile}T 18204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18205 $RM "$cfgfile" 18206 18207 cat <<_LT_EOF >> "$cfgfile" 18208#! $SHELL 18209# Generated automatically by $as_me ($PACKAGE) $VERSION 18210# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18211# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18212 18213# Provide generalized library-building support services. 18214# Written by Gordon Matzigkeit, 1996 18215 18216# Copyright (C) 2014 Free Software Foundation, Inc. 18217# This is free software; see the source for copying conditions. There is NO 18218# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18219 18220# GNU Libtool is free software; you can redistribute it and/or modify 18221# it under the terms of the GNU General Public License as published by 18222# the Free Software Foundation; either version 2 of of the License, or 18223# (at your option) any later version. 18224# 18225# As a special exception to the GNU General Public License, if you 18226# distribute this file as part of a program or library that is built 18227# using GNU Libtool, you may include this file under the same 18228# distribution terms that you use for the rest of that program. 18229# 18230# GNU Libtool is distributed in the hope that it will be useful, but 18231# WITHOUT ANY WARRANTY; without even the implied warranty of 18232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18233# GNU General Public License for more details. 18234# 18235# You should have received a copy of the GNU General Public License 18236# along with this program. If not, see <http://www.gnu.org/licenses/>. 18237 18238 18239# The names of the tagged configurations supported by this script. 18240available_tags='CXX ' 18241 18242# Configured defaults for sys_lib_dlsearch_path munging. 18243: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18244 18245# ### BEGIN LIBTOOL CONFIG 18246 18247# Which release of libtool.m4 was used? 18248macro_version=$macro_version 18249macro_revision=$macro_revision 18250 18251# Whether or not to build shared libraries. 18252build_libtool_libs=$enable_shared 18253 18254# Whether or not to build static libraries. 18255build_old_libs=$enable_static 18256 18257# What type of objects to build. 18258pic_mode=$pic_mode 18259 18260# Whether or not to optimize for fast installation. 18261fast_install=$enable_fast_install 18262 18263# Shared archive member basename,for filename based shared library versioning on AIX. 18264shared_archive_member_spec=$shared_archive_member_spec 18265 18266# Shell to use when invoking shell scripts. 18267SHELL=$lt_SHELL 18268 18269# An echo program that protects backslashes. 18270ECHO=$lt_ECHO 18271 18272# The PATH separator for the build system. 18273PATH_SEPARATOR=$lt_PATH_SEPARATOR 18274 18275# The host system. 18276host_alias=$host_alias 18277host=$host 18278host_os=$host_os 18279 18280# The build system. 18281build_alias=$build_alias 18282build=$build 18283build_os=$build_os 18284 18285# A sed program that does not truncate output. 18286SED=$lt_SED 18287 18288# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18289Xsed="\$SED -e 1s/^X//" 18290 18291# A grep program that handles long lines. 18292GREP=$lt_GREP 18293 18294# An ERE matcher. 18295EGREP=$lt_EGREP 18296 18297# A literal string matcher. 18298FGREP=$lt_FGREP 18299 18300# A BSD- or MS-compatible name lister. 18301NM=$lt_NM 18302 18303# Whether we need soft or hard links. 18304LN_S=$lt_LN_S 18305 18306# What is the maximum length of a command? 18307max_cmd_len=$max_cmd_len 18308 18309# Object file suffix (normally "o"). 18310objext=$ac_objext 18311 18312# Executable file suffix (normally ""). 18313exeext=$exeext 18314 18315# whether the shell understands "unset". 18316lt_unset=$lt_unset 18317 18318# turn spaces into newlines. 18319SP2NL=$lt_lt_SP2NL 18320 18321# turn newlines into spaces. 18322NL2SP=$lt_lt_NL2SP 18323 18324# convert \$build file names to \$host format. 18325to_host_file_cmd=$lt_cv_to_host_file_cmd 18326 18327# convert \$build files to toolchain format. 18328to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18329 18330# An object symbol dumper. 18331OBJDUMP=$lt_OBJDUMP 18332 18333# Method to check whether dependent libraries are shared objects. 18334deplibs_check_method=$lt_deplibs_check_method 18335 18336# Command to use when deplibs_check_method = "file_magic". 18337file_magic_cmd=$lt_file_magic_cmd 18338 18339# How to find potential files when deplibs_check_method = "file_magic". 18340file_magic_glob=$lt_file_magic_glob 18341 18342# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18343want_nocaseglob=$lt_want_nocaseglob 18344 18345# DLL creation program. 18346DLLTOOL=$lt_DLLTOOL 18347 18348# Command to associate shared and link libraries. 18349sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18350 18351# The archiver. 18352AR=$lt_AR 18353 18354# Flags to create an archive. 18355AR_FLAGS=$lt_AR_FLAGS 18356 18357# How to feed a file listing to the archiver. 18358archiver_list_spec=$lt_archiver_list_spec 18359 18360# A symbol stripping program. 18361STRIP=$lt_STRIP 18362 18363# Commands used to install an old-style archive. 18364RANLIB=$lt_RANLIB 18365old_postinstall_cmds=$lt_old_postinstall_cmds 18366old_postuninstall_cmds=$lt_old_postuninstall_cmds 18367 18368# Whether to use a lock for old archive extraction. 18369lock_old_archive_extraction=$lock_old_archive_extraction 18370 18371# A C compiler. 18372LTCC=$lt_CC 18373 18374# LTCC compiler flags. 18375LTCFLAGS=$lt_CFLAGS 18376 18377# Take the output of nm and produce a listing of raw symbols and C names. 18378global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18379 18380# Transform the output of nm in a proper C declaration. 18381global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18382 18383# Transform the output of nm into a list of symbols to manually relocate. 18384global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18385 18386# Transform the output of nm in a C name address pair. 18387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18388 18389# Transform the output of nm in a C name address pair when lib prefix is needed. 18390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18391 18392# The name lister interface. 18393nm_interface=$lt_lt_cv_nm_interface 18394 18395# Specify filename containing input files for \$NM. 18396nm_file_list_spec=$lt_nm_file_list_spec 18397 18398# The root where to search for dependent libraries,and where our libraries should be installed. 18399lt_sysroot=$lt_sysroot 18400 18401# Command to truncate a binary pipe. 18402lt_truncate_bin=$lt_lt_cv_truncate_bin 18403 18404# The name of the directory that contains temporary libtool files. 18405objdir=$objdir 18406 18407# Used to examine libraries when file_magic_cmd begins with "file". 18408MAGIC_CMD=$MAGIC_CMD 18409 18410# Must we lock files when doing compilation? 18411need_locks=$lt_need_locks 18412 18413# Manifest tool. 18414MANIFEST_TOOL=$lt_MANIFEST_TOOL 18415 18416# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18417DSYMUTIL=$lt_DSYMUTIL 18418 18419# Tool to change global to local symbols on Mac OS X. 18420NMEDIT=$lt_NMEDIT 18421 18422# Tool to manipulate fat objects and archives on Mac OS X. 18423LIPO=$lt_LIPO 18424 18425# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18426OTOOL=$lt_OTOOL 18427 18428# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18429OTOOL64=$lt_OTOOL64 18430 18431# Old archive suffix (normally "a"). 18432libext=$libext 18433 18434# Shared library suffix (normally ".so"). 18435shrext_cmds=$lt_shrext_cmds 18436 18437# The commands to extract the exported symbol list from a shared archive. 18438extract_expsyms_cmds=$lt_extract_expsyms_cmds 18439 18440# Variables whose values should be saved in libtool wrapper scripts and 18441# restored at link time. 18442variables_saved_for_relink=$lt_variables_saved_for_relink 18443 18444# Do we need the "lib" prefix for modules? 18445need_lib_prefix=$need_lib_prefix 18446 18447# Do we need a version for libraries? 18448need_version=$need_version 18449 18450# Library versioning type. 18451version_type=$version_type 18452 18453# Shared library runtime path variable. 18454runpath_var=$runpath_var 18455 18456# Shared library path variable. 18457shlibpath_var=$shlibpath_var 18458 18459# Is shlibpath searched before the hard-coded library search path? 18460shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18461 18462# Format of library name prefix. 18463libname_spec=$lt_libname_spec 18464 18465# List of archive names. First name is the real one, the rest are links. 18466# The last name is the one that the linker finds with -lNAME 18467library_names_spec=$lt_library_names_spec 18468 18469# The coded name of the library, if different from the real name. 18470soname_spec=$lt_soname_spec 18471 18472# Permission mode override for installation of shared libraries. 18473install_override_mode=$lt_install_override_mode 18474 18475# Command to use after installation of a shared archive. 18476postinstall_cmds=$lt_postinstall_cmds 18477 18478# Command to use after uninstallation of a shared archive. 18479postuninstall_cmds=$lt_postuninstall_cmds 18480 18481# Commands used to finish a libtool library installation in a directory. 18482finish_cmds=$lt_finish_cmds 18483 18484# As "finish_cmds", except a single script fragment to be evaled but 18485# not shown. 18486finish_eval=$lt_finish_eval 18487 18488# Whether we should hardcode library paths into libraries. 18489hardcode_into_libs=$hardcode_into_libs 18490 18491# Compile-time system search path for libraries. 18492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18493 18494# Detected run-time system search path for libraries. 18495sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18496 18497# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18498configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18499 18500# Whether dlopen is supported. 18501dlopen_support=$enable_dlopen 18502 18503# Whether dlopen of programs is supported. 18504dlopen_self=$enable_dlopen_self 18505 18506# Whether dlopen of statically linked programs is supported. 18507dlopen_self_static=$enable_dlopen_self_static 18508 18509# Commands to strip libraries. 18510old_striplib=$lt_old_striplib 18511striplib=$lt_striplib 18512 18513 18514# The linker used to build libraries. 18515LD=$lt_LD 18516 18517# How to create reloadable object files. 18518reload_flag=$lt_reload_flag 18519reload_cmds=$lt_reload_cmds 18520 18521# Commands used to build an old-style archive. 18522old_archive_cmds=$lt_old_archive_cmds 18523 18524# A language specific compiler. 18525CC=$lt_compiler 18526 18527# Is the compiler the GNU compiler? 18528with_gcc=$GCC 18529 18530# Compiler flag to turn off builtin functions. 18531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18532 18533# Additional compiler flags for building library objects. 18534pic_flag=$lt_lt_prog_compiler_pic 18535 18536# How to pass a linker flag through the compiler. 18537wl=$lt_lt_prog_compiler_wl 18538 18539# Compiler flag to prevent dynamic linking. 18540link_static_flag=$lt_lt_prog_compiler_static 18541 18542# Does compiler simultaneously support -c and -o options? 18543compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18544 18545# Whether or not to add -lc for building shared libraries. 18546build_libtool_need_lc=$archive_cmds_need_lc 18547 18548# Whether or not to disallow shared libs when runtime libs are static. 18549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18550 18551# Compiler flag to allow reflexive dlopens. 18552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18553 18554# Compiler flag to generate shared objects directly from archives. 18555whole_archive_flag_spec=$lt_whole_archive_flag_spec 18556 18557# Whether the compiler copes with passing no objects directly. 18558compiler_needs_object=$lt_compiler_needs_object 18559 18560# Create an old-style archive from a shared archive. 18561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18562 18563# Create a temporary old-style archive to link instead of a shared archive. 18564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18565 18566# Commands used to build a shared archive. 18567archive_cmds=$lt_archive_cmds 18568archive_expsym_cmds=$lt_archive_expsym_cmds 18569 18570# Commands used to build a loadable module if different from building 18571# a shared archive. 18572module_cmds=$lt_module_cmds 18573module_expsym_cmds=$lt_module_expsym_cmds 18574 18575# Whether we are building with GNU ld or not. 18576with_gnu_ld=$lt_with_gnu_ld 18577 18578# Flag that allows shared libraries with undefined symbols to be built. 18579allow_undefined_flag=$lt_allow_undefined_flag 18580 18581# Flag that enforces no undefined symbols. 18582no_undefined_flag=$lt_no_undefined_flag 18583 18584# Flag to hardcode \$libdir into a binary during linking. 18585# This must work even if \$libdir does not exist 18586hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18587 18588# Whether we need a single "-rpath" flag with a separated argument. 18589hardcode_libdir_separator=$lt_hardcode_libdir_separator 18590 18591# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18592# DIR into the resulting binary. 18593hardcode_direct=$hardcode_direct 18594 18595# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18596# DIR into the resulting binary and the resulting library dependency is 18597# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18598# library is relocated. 18599hardcode_direct_absolute=$hardcode_direct_absolute 18600 18601# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18602# into the resulting binary. 18603hardcode_minus_L=$hardcode_minus_L 18604 18605# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18606# into the resulting binary. 18607hardcode_shlibpath_var=$hardcode_shlibpath_var 18608 18609# Set to "yes" if building a shared library automatically hardcodes DIR 18610# into the library and all subsequent libraries and executables linked 18611# against it. 18612hardcode_automatic=$hardcode_automatic 18613 18614# Set to yes if linker adds runtime paths of dependent libraries 18615# to runtime path list. 18616inherit_rpath=$inherit_rpath 18617 18618# Whether libtool must link a program against all its dependency libraries. 18619link_all_deplibs=$link_all_deplibs 18620 18621# Set to "yes" if exported symbols are required. 18622always_export_symbols=$always_export_symbols 18623 18624# The commands to list exported symbols. 18625export_symbols_cmds=$lt_export_symbols_cmds 18626 18627# Symbols that should not be listed in the preloaded symbols. 18628exclude_expsyms=$lt_exclude_expsyms 18629 18630# Symbols that must always be exported. 18631include_expsyms=$lt_include_expsyms 18632 18633# Commands necessary for linking programs (against libraries) with templates. 18634prelink_cmds=$lt_prelink_cmds 18635 18636# Commands necessary for finishing linking programs. 18637postlink_cmds=$lt_postlink_cmds 18638 18639# Specify filename containing input files. 18640file_list_spec=$lt_file_list_spec 18641 18642# How to hardcode a shared library path into an executable. 18643hardcode_action=$hardcode_action 18644 18645# The directories searched by this compiler when creating a shared library. 18646compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18647 18648# Dependencies to place before and after the objects being linked to 18649# create a shared library. 18650predep_objects=$lt_predep_objects 18651postdep_objects=$lt_postdep_objects 18652predeps=$lt_predeps 18653postdeps=$lt_postdeps 18654 18655# The library search path used internally by the compiler when linking 18656# a shared library. 18657compiler_lib_search_path=$lt_compiler_lib_search_path 18658 18659# ### END LIBTOOL CONFIG 18660 18661_LT_EOF 18662 18663 cat <<'_LT_EOF' >> "$cfgfile" 18664 18665# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18666 18667# func_munge_path_list VARIABLE PATH 18668# ----------------------------------- 18669# VARIABLE is name of variable containing _space_ separated list of 18670# directories to be munged by the contents of PATH, which is string 18671# having a format: 18672# "DIR[:DIR]:" 18673# string "DIR[ DIR]" will be prepended to VARIABLE 18674# ":DIR[:DIR]" 18675# string "DIR[ DIR]" will be appended to VARIABLE 18676# "DIRP[:DIRP]::[DIRA:]DIRA" 18677# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18678# "DIRA[ DIRA]" will be appended to VARIABLE 18679# "DIR[:DIR]" 18680# VARIABLE will be replaced by "DIR[ DIR]" 18681func_munge_path_list () 18682{ 18683 case x$2 in 18684 x) 18685 ;; 18686 *:) 18687 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18688 ;; 18689 x:*) 18690 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18691 ;; 18692 *::*) 18693 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18694 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18695 ;; 18696 *) 18697 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18698 ;; 18699 esac 18700} 18701 18702 18703# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18704func_cc_basename () 18705{ 18706 for cc_temp in $*""; do 18707 case $cc_temp in 18708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18710 \-*) ;; 18711 *) break;; 18712 esac 18713 done 18714 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18715} 18716 18717 18718# ### END FUNCTIONS SHARED WITH CONFIGURE 18719 18720_LT_EOF 18721 18722 case $host_os in 18723 aix3*) 18724 cat <<\_LT_EOF >> "$cfgfile" 18725# AIX sometimes has problems with the GCC collect2 program. For some 18726# reason, if we set the COLLECT_NAMES environment variable, the problems 18727# vanish in a puff of smoke. 18728if test set != "${COLLECT_NAMES+set}"; then 18729 COLLECT_NAMES= 18730 export COLLECT_NAMES 18731fi 18732_LT_EOF 18733 ;; 18734 esac 18735 18736 18737ltmain=$ac_aux_dir/ltmain.sh 18738 18739 18740 # We use sed instead of cat because bash on DJGPP gets confused if 18741 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18742 # text mode, it properly converts lines to CR/LF. This bash problem 18743 # is reportedly fixed, but why not run on old versions too? 18744 sed '$q' "$ltmain" >> "$cfgfile" \ 18745 || (rm -f "$cfgfile"; exit 1) 18746 18747 mv -f "$cfgfile" "$ofile" || 18748 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18749 chmod +x "$ofile" 18750 18751 18752 cat <<_LT_EOF >> "$ofile" 18753 18754# ### BEGIN LIBTOOL TAG CONFIG: CXX 18755 18756# The linker used to build libraries. 18757LD=$lt_LD_CXX 18758 18759# How to create reloadable object files. 18760reload_flag=$lt_reload_flag_CXX 18761reload_cmds=$lt_reload_cmds_CXX 18762 18763# Commands used to build an old-style archive. 18764old_archive_cmds=$lt_old_archive_cmds_CXX 18765 18766# A language specific compiler. 18767CC=$lt_compiler_CXX 18768 18769# Is the compiler the GNU compiler? 18770with_gcc=$GCC_CXX 18771 18772# Compiler flag to turn off builtin functions. 18773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18774 18775# Additional compiler flags for building library objects. 18776pic_flag=$lt_lt_prog_compiler_pic_CXX 18777 18778# How to pass a linker flag through the compiler. 18779wl=$lt_lt_prog_compiler_wl_CXX 18780 18781# Compiler flag to prevent dynamic linking. 18782link_static_flag=$lt_lt_prog_compiler_static_CXX 18783 18784# Does compiler simultaneously support -c and -o options? 18785compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18786 18787# Whether or not to add -lc for building shared libraries. 18788build_libtool_need_lc=$archive_cmds_need_lc_CXX 18789 18790# Whether or not to disallow shared libs when runtime libs are static. 18791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18792 18793# Compiler flag to allow reflexive dlopens. 18794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18795 18796# Compiler flag to generate shared objects directly from archives. 18797whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18798 18799# Whether the compiler copes with passing no objects directly. 18800compiler_needs_object=$lt_compiler_needs_object_CXX 18801 18802# Create an old-style archive from a shared archive. 18803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18804 18805# Create a temporary old-style archive to link instead of a shared archive. 18806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18807 18808# Commands used to build a shared archive. 18809archive_cmds=$lt_archive_cmds_CXX 18810archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18811 18812# Commands used to build a loadable module if different from building 18813# a shared archive. 18814module_cmds=$lt_module_cmds_CXX 18815module_expsym_cmds=$lt_module_expsym_cmds_CXX 18816 18817# Whether we are building with GNU ld or not. 18818with_gnu_ld=$lt_with_gnu_ld_CXX 18819 18820# Flag that allows shared libraries with undefined symbols to be built. 18821allow_undefined_flag=$lt_allow_undefined_flag_CXX 18822 18823# Flag that enforces no undefined symbols. 18824no_undefined_flag=$lt_no_undefined_flag_CXX 18825 18826# Flag to hardcode \$libdir into a binary during linking. 18827# This must work even if \$libdir does not exist 18828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18829 18830# Whether we need a single "-rpath" flag with a separated argument. 18831hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18832 18833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18834# DIR into the resulting binary. 18835hardcode_direct=$hardcode_direct_CXX 18836 18837# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18838# DIR into the resulting binary and the resulting library dependency is 18839# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18840# library is relocated. 18841hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18842 18843# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18844# into the resulting binary. 18845hardcode_minus_L=$hardcode_minus_L_CXX 18846 18847# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18848# into the resulting binary. 18849hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18850 18851# Set to "yes" if building a shared library automatically hardcodes DIR 18852# into the library and all subsequent libraries and executables linked 18853# against it. 18854hardcode_automatic=$hardcode_automatic_CXX 18855 18856# Set to yes if linker adds runtime paths of dependent libraries 18857# to runtime path list. 18858inherit_rpath=$inherit_rpath_CXX 18859 18860# Whether libtool must link a program against all its dependency libraries. 18861link_all_deplibs=$link_all_deplibs_CXX 18862 18863# Set to "yes" if exported symbols are required. 18864always_export_symbols=$always_export_symbols_CXX 18865 18866# The commands to list exported symbols. 18867export_symbols_cmds=$lt_export_symbols_cmds_CXX 18868 18869# Symbols that should not be listed in the preloaded symbols. 18870exclude_expsyms=$lt_exclude_expsyms_CXX 18871 18872# Symbols that must always be exported. 18873include_expsyms=$lt_include_expsyms_CXX 18874 18875# Commands necessary for linking programs (against libraries) with templates. 18876prelink_cmds=$lt_prelink_cmds_CXX 18877 18878# Commands necessary for finishing linking programs. 18879postlink_cmds=$lt_postlink_cmds_CXX 18880 18881# Specify filename containing input files. 18882file_list_spec=$lt_file_list_spec_CXX 18883 18884# How to hardcode a shared library path into an executable. 18885hardcode_action=$hardcode_action_CXX 18886 18887# The directories searched by this compiler when creating a shared library. 18888compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18889 18890# Dependencies to place before and after the objects being linked to 18891# create a shared library. 18892predep_objects=$lt_predep_objects_CXX 18893postdep_objects=$lt_postdep_objects_CXX 18894predeps=$lt_predeps_CXX 18895postdeps=$lt_postdeps_CXX 18896 18897# The library search path used internally by the compiler when linking 18898# a shared library. 18899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18900 18901# ### END LIBTOOL TAG CONFIG: CXX 18902_LT_EOF 18903 18904 ;; 18905 18906 esac 18907done # for ac_tag 18908 18909 18910as_fn_exit 0 18911_ACEOF 18912ac_clean_files=$ac_clean_files_save 18913 18914test $ac_write_fail = 0 || 18915 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18916 18917 18918# configure is writing to config.log, and then calls config.status. 18919# config.status does its own redirection, appending to config.log. 18920# Unfortunately, on DOS this fails, as config.log is still kept open 18921# by configure, so config.status won't be able to write to it; its 18922# output is simply discarded. So we exec the FD to /dev/null, 18923# effectively closing config.log, so it can be properly (re)opened and 18924# appended to by config.status. When coming back to configure, we 18925# need to make the FD available again. 18926if test "$no_create" != yes; then 18927 ac_cs_success=: 18928 ac_config_status_args= 18929 test "$silent" = yes && 18930 ac_config_status_args="$ac_config_status_args --quiet" 18931 exec 5>/dev/null 18932 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18933 exec 5>>config.log 18934 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18935 # would make configure fail if this is the last instruction. 18936 $ac_cs_success || as_fn_exit 1 18937fi 18938if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18940$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18941fi 18942 18943