1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libHX 3.25. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libHX' 589PACKAGE_TARNAME='libhx' 590PACKAGE_VERSION='3.25' 591PACKAGE_STRING='libHX 3.25' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635regular_CXXFLAGS 636regular_CFLAGS 637regular_CPPFLAGS 638BUILD_DOCS_FALSE 639BUILD_DOCS_TRUE 640LYX 641B_PROC_FALSE 642B_PROC_TRUE 643libsocket_LIBS 644libpthread_LIBS 645librt_LIBS 646libdl_LIBS 647HAVE_DLFCN_H_FALSE 648HAVE_DLFCN_H_TRUE 649WITH_GNU_LD_FALSE 650WITH_GNU_LD_TRUE 651pkgconfigdir 652MINGW32_FALSE 653MINGW32_TRUE 654HAVE_CXX_FALSE 655HAVE_CXX_TRUE 656CXXCPP 657CPP 658LT_SYS_LIBRARY_PATH 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674EGREP 675GREP 676SED 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685LIBTOOL 686ac_ct_AR 687AR 688am__fastdepCXX_FALSE 689am__fastdepCXX_TRUE 690CXXDEPMODE 691ac_ct_CXX 692CXXFLAGS 693CXX 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__quote 702am__include 703DEPDIR 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711AM_BACKSLASH 712AM_DEFAULT_VERBOSITY 713AM_DEFAULT_V 714AM_V 715am__untar 716am__tar 717AMTAR 718am__leading_dot 719SET_MAKE 720AWK 721mkdir_p 722MKDIR_P 723INSTALL_STRIP_PROGRAM 724STRIP 725install_sh 726MAKEINFO 727AUTOHEADER 728AUTOMAKE 729AUTOCONF 730ACLOCAL 731VERSION 732PACKAGE 733CYGPATH_W 734am__isrc 735INSTALL_DATA 736INSTALL_SCRIPT 737INSTALL_PROGRAM 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_static 782enable_shared 783with_pic 784enable_fast_install 785with_aix_soname 786with_gnu_ld 787with_sysroot 788enable_libtool_lock 789with_pkgconfigdir 790' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797LIBS 798CPPFLAGS 799CXX 800CXXFLAGS 801CCC 802LT_SYS_LIBRARY_PATH 803CPP 804CXXCPP' 805 806 807# Initialize some variables set by options. 808ac_init_help= 809ac_init_version=false 810ac_unrecognized_opts= 811ac_unrecognized_sep= 812# The variables have the same names as the options, with 813# dashes changed to underlines. 814cache_file=/dev/null 815exec_prefix=NONE 816no_create= 817no_recursion= 818prefix=NONE 819program_prefix=NONE 820program_suffix=NONE 821program_transform_name=s,x,x, 822silent= 823site= 824srcdir= 825verbose= 826x_includes=NONE 827x_libraries=NONE 828 829# Installation directory options. 830# These are left unexpanded so users can "make install exec_prefix=/foo" 831# and all the variables that are supposed to be based on exec_prefix 832# by default will actually change. 833# Use braces instead of parens because sh, perl, etc. also accept them. 834# (The list follows the same order as the GNU Coding Standards.) 835bindir='${exec_prefix}/bin' 836sbindir='${exec_prefix}/sbin' 837libexecdir='${exec_prefix}/libexec' 838datarootdir='${prefix}/share' 839datadir='${datarootdir}' 840sysconfdir='${prefix}/etc' 841sharedstatedir='${prefix}/com' 842localstatedir='${prefix}/var' 843includedir='${prefix}/include' 844oldincludedir='/usr/include' 845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 846infodir='${datarootdir}/info' 847htmldir='${docdir}' 848dvidir='${docdir}' 849pdfdir='${docdir}' 850psdir='${docdir}' 851libdir='${exec_prefix}/lib' 852localedir='${datarootdir}/locale' 853mandir='${datarootdir}/man' 854 855ac_prev= 856ac_dashdash= 857for ac_option 858do 859 # If the previous option needs an argument, assign it. 860 if test -n "$ac_prev"; then 861 eval $ac_prev=\$ac_option 862 ac_prev= 863 continue 864 fi 865 866 case $ac_option in 867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868 *=) ac_optarg= ;; 869 *) ac_optarg=yes ;; 870 esac 871 872 # Accept the important Cygnus configure options, so we can diagnose typos. 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: $ac_useropt" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945"enable_$ac_useropt" 946"*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288$as_echo X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures libHX 3.25 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --libdir=DIR object code libraries [EPREFIX/lib] 1386 --includedir=DIR C header files [PREFIX/include] 1387 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1390 --infodir=DIR info documentation [DATAROOTDIR/info] 1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1392 --mandir=DIR man documentation [DATAROOTDIR/man] 1393 --docdir=DIR documentation root [DATAROOTDIR/doc/libhx] 1394 --htmldir=DIR html documentation [DOCDIR] 1395 --dvidir=DIR dvi documentation [DOCDIR] 1396 --pdfdir=DIR pdf documentation [DOCDIR] 1397 --psdir=DIR ps documentation [DOCDIR] 1398_ACEOF 1399 1400 cat <<\_ACEOF 1401 1402Program names: 1403 --program-prefix=PREFIX prepend PREFIX to installed program names 1404 --program-suffix=SUFFIX append SUFFIX to installed program names 1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1406 1407System types: 1408 --build=BUILD configure for building on BUILD [guessed] 1409 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1410_ACEOF 1411fi 1412 1413if test -n "$ac_init_help"; then 1414 case $ac_init_help in 1415 short | recursive ) echo "Configuration of libHX 3.25:";; 1416 esac 1417 cat <<\_ACEOF 1418 1419Optional Features: 1420 --disable-option-checking ignore unrecognized --enable/--with options 1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1423 --enable-silent-rules less verbose build output (undo: "make V=1") 1424 --disable-silent-rules verbose build output (undo: "make V=0") 1425 --enable-dependency-tracking 1426 do not reject slow dependency extractors 1427 --disable-dependency-tracking 1428 speeds up one-time build 1429 --enable-static[=PKGS] build static libraries [default=no] 1430 --enable-shared[=PKGS] build shared libraries [default=yes] 1431 --enable-fast-install[=PKGS] 1432 optimize for fast installation [default=yes] 1433 --disable-libtool-lock avoid locking (might break parallel builds) 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1439 both] 1440 --with-aix-soname=aix|svr4|both 1441 shared library versioning (aka "SONAME") variant to 1442 provide on AIX, [default=aix]. 1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1444 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1445 compiler's sysroot if not specified). 1446 --with-pkgconfigdir=PATH 1447 Path to the pkgconfig directory [[LIBDIR/pkgconfig]] 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 CXX C++ compiler command 1458 CXXFLAGS C++ compiler flags 1459 LT_SYS_LIBRARY_PATH 1460 User-defined run-time library search path. 1461 CPP C preprocessor 1462 CXXCPP C++ preprocessor 1463 1464Use these variables to override the choices made by `configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to the package provider. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530libHX configure 3.25 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_cxx_try_compile LINENO 1583# ---------------------------- 1584# Try to compile conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_cxx_try_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext 1589 if { { ac_try="$ac_compile" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_cxx_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_cxx_try_compile 1619 1620# ac_fn_c_try_link LINENO 1621# ----------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_link () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest$ac_exeext 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest$ac_exeext && { 1646 test "$cross_compiling" = yes || 1647 test -x conftest$ac_exeext 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1658 # interfere with the next link command; also delete a directory that is 1659 # left behind by Apple's compiler. We do this before executing the actions. 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_link 1665 1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1667# ------------------------------------------------------- 1668# Tests whether HEADER exists and can be compiled using the include files in 1669# INCLUDES, setting the cache variable VAR accordingly. 1670ac_fn_c_check_header_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681#include <$2> 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_cpp LINENO 1698# ---------------------- 1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_cpp () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_cpp conftest.$ac_ext" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } > conftest.i && { 1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_cpp 1733 1734# ac_fn_c_try_run LINENO 1735# ---------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1737# that executables *can* be run. 1738ac_fn_c_try_run () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1752 { { case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_try") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; }; }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: program exited with status $ac_status" >&5 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=$ac_status 1769fi 1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_run 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 1841} # ac_fn_c_check_func 1842 1843# ac_fn_cxx_try_cpp LINENO 1844# ------------------------ 1845# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1846ac_fn_cxx_try_cpp () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 if { { ac_try="$ac_cpp conftest.$ac_ext" 1850case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853esac 1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855$as_echo "$ac_try_echo"; } >&5 1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1857 ac_status=$? 1858 if test -s conftest.err; then 1859 grep -v '^ *+' conftest.err >conftest.er1 1860 cat conftest.er1 >&5 1861 mv -f conftest.er1 conftest.err 1862 fi 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1864 test $ac_status = 0; } > conftest.i && { 1865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1866 test ! -s conftest.err 1867 }; then : 1868 ac_retval=0 1869else 1870 $as_echo "$as_me: failed program was:" >&5 1871sed 's/^/| /' conftest.$ac_ext >&5 1872 1873 ac_retval=1 1874fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_cxx_try_cpp 1879 1880# ac_fn_cxx_try_link LINENO 1881# ------------------------- 1882# Try to link conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_cxx_try_link () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 rm -f conftest.$ac_objext conftest$ac_exeext 1887 if { { ac_try="$ac_link" 1888case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_link") 2>conftest.err 1895 ac_status=$? 1896 if test -s conftest.err; then 1897 grep -v '^ *+' conftest.err >conftest.er1 1898 cat conftest.er1 >&5 1899 mv -f conftest.er1 conftest.err 1900 fi 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } && { 1903 test -z "$ac_cxx_werror_flag" || 1904 test ! -s conftest.err 1905 } && test -s conftest$ac_exeext && { 1906 test "$cross_compiling" = yes || 1907 test -x conftest$ac_exeext 1908 }; then : 1909 ac_retval=0 1910else 1911 $as_echo "$as_me: failed program was:" >&5 1912sed 's/^/| /' conftest.$ac_ext >&5 1913 1914 ac_retval=1 1915fi 1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1918 # interfere with the next link command; also delete a directory that is 1919 # left behind by Apple's compiler. We do this before executing the actions. 1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 as_fn_set_status $ac_retval 1923 1924} # ac_fn_cxx_try_link 1925 1926# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1927# ------------------------------------------------------- 1928# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1929# the include files in INCLUDES and setting the cache variable VAR 1930# accordingly. 1931ac_fn_c_check_header_mongrel () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 if eval \${$3+:} false; then : 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1936$as_echo_n "checking for $2... " >&6; } 1937if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943else 1944 # Is the header compilable? 1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1946$as_echo_n "checking $2 usability... " >&6; } 1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$4 1950#include <$2> 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 ac_header_compiler=yes 1954else 1955 ac_header_compiler=no 1956fi 1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1959$as_echo "$ac_header_compiler" >&6; } 1960 1961# Is the header present? 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1963$as_echo_n "checking $2 presence... " >&6; } 1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966#include <$2> 1967_ACEOF 1968if ac_fn_c_try_cpp "$LINENO"; then : 1969 ac_header_preproc=yes 1970else 1971 ac_header_preproc=no 1972fi 1973rm -f conftest.err conftest.i conftest.$ac_ext 1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1975$as_echo "$ac_header_preproc" >&6; } 1976 1977# So? What about this header? 1978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1979 yes:no: ) 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1984 ;; 1985 no:yes:* ) 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1996 ;; 1997esac 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1999$as_echo_n "checking for $2... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002else 2003 eval "$3=\$ac_header_compiler" 2004fi 2005eval ac_res=\$$3 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007$as_echo "$ac_res" >&6; } 2008fi 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2010 2011} # ac_fn_c_check_header_mongrel 2012 2013# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2014# -------------------------------------------- 2015# Tries to find the compile-time value of EXPR in a program that includes 2016# INCLUDES, setting VAR accordingly. Returns whether the value could be 2017# computed 2018ac_fn_c_compute_int () 2019{ 2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2021 if test "$cross_compiling" = yes; then 2022 # Depending upon the size, compute the lo and hi bounds. 2023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main () 2028{ 2029static int test_array [1 - 2 * !(($2) >= 0)]; 2030test_array [0] = 0; 2031return test_array [0]; 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 ac_lo=0 ac_mid=0 2039 while :; do 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043int 2044main () 2045{ 2046static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2047test_array [0] = 0; 2048return test_array [0]; 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 ac_hi=$ac_mid; break 2056else 2057 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2058 if test $ac_lo -le $ac_mid; then 2059 ac_lo= ac_hi= 2060 break 2061 fi 2062 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2063fi 2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2065 done 2066else 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$4 2070int 2071main () 2072{ 2073static int test_array [1 - 2 * !(($2) < 0)]; 2074test_array [0] = 0; 2075return test_array [0]; 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 ac_hi=-1 ac_mid=-1 2083 while :; do 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2091test_array [0] = 0; 2092return test_array [0]; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_lo=$ac_mid; break 2100else 2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2102 if test $ac_mid -le $ac_hi; then 2103 ac_lo= ac_hi= 2104 break 2105 fi 2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109 done 2110else 2111 ac_lo= ac_hi= 2112fi 2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2114fi 2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2116# Binary search between lo and hi bounds. 2117while test "x$ac_lo" != "x$ac_hi"; do 2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122int 2123main () 2124{ 2125static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2126test_array [0] = 0; 2127return test_array [0]; 2128 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 ac_hi=$ac_mid 2135else 2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2137fi 2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2139done 2140case $ac_lo in #(( 2141?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2142'') ac_retval=1 ;; 2143esac 2144 else 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147$4 2148static long int longval () { return $2; } 2149static unsigned long int ulongval () { return $2; } 2150#include <stdio.h> 2151#include <stdlib.h> 2152int 2153main () 2154{ 2155 2156 FILE *f = fopen ("conftest.val", "w"); 2157 if (! f) 2158 return 1; 2159 if (($2) < 0) 2160 { 2161 long int i = longval (); 2162 if (i != ($2)) 2163 return 1; 2164 fprintf (f, "%ld", i); 2165 } 2166 else 2167 { 2168 unsigned long int i = ulongval (); 2169 if (i != ($2)) 2170 return 1; 2171 fprintf (f, "%lu", i); 2172 } 2173 /* Do not output a trailing newline, as this causes \r\n confusion 2174 on some platforms. */ 2175 return ferror (f) || fclose (f) != 0; 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_run "$LINENO"; then : 2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2183else 2184 ac_retval=1 2185fi 2186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2187 conftest.$ac_objext conftest.beam conftest.$ac_ext 2188rm -f conftest.val 2189 2190 fi 2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2192 as_fn_set_status $ac_retval 2193 2194} # ac_fn_c_compute_int 2195 2196# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2197# ---------------------------------------------------- 2198# Tries to find if the field MEMBER exists in type AGGR, after including 2199# INCLUDES, setting cache variable VAR accordingly. 2200ac_fn_c_check_member () 2201{ 2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2204$as_echo_n "checking for $2.$3... " >&6; } 2205if eval \${$4+:} false; then : 2206 $as_echo_n "(cached) " >&6 2207else 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210$5 2211int 2212main () 2213{ 2214static $2 ac_aggr; 2215if (ac_aggr.$3) 2216return 0; 2217 ; 2218 return 0; 2219} 2220_ACEOF 2221if ac_fn_c_try_compile "$LINENO"; then : 2222 eval "$4=yes" 2223else 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2225/* end confdefs.h. */ 2226$5 2227int 2228main () 2229{ 2230static $2 ac_aggr; 2231if (sizeof ac_aggr.$3) 2232return 0; 2233 ; 2234 return 0; 2235} 2236_ACEOF 2237if ac_fn_c_try_compile "$LINENO"; then : 2238 eval "$4=yes" 2239else 2240 eval "$4=no" 2241fi 2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2243fi 2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2245fi 2246eval ac_res=\$$4 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2248$as_echo "$ac_res" >&6; } 2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2250 2251} # ac_fn_c_check_member 2252cat >config.log <<_ACEOF 2253This file contains any messages produced by compilers while 2254running configure, to aid debugging if configure makes a mistake. 2255 2256It was created by libHX $as_me 3.25, which was 2257generated by GNU Autoconf 2.69. Invocation command line was 2258 2259 $ $0 $@ 2260 2261_ACEOF 2262exec 5>>config.log 2263{ 2264cat <<_ASUNAME 2265## --------- ## 2266## Platform. ## 2267## --------- ## 2268 2269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2270uname -m = `(uname -m) 2>/dev/null || echo unknown` 2271uname -r = `(uname -r) 2>/dev/null || echo unknown` 2272uname -s = `(uname -s) 2>/dev/null || echo unknown` 2273uname -v = `(uname -v) 2>/dev/null || echo unknown` 2274 2275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2276/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2277 2278/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2279/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2281/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2282/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2283/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2284/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2285 2286_ASUNAME 2287 2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 $as_echo "PATH: $as_dir" 2294 done 2295IFS=$as_save_IFS 2296 2297} >&5 2298 2299cat >&5 <<_ACEOF 2300 2301 2302## ----------- ## 2303## Core tests. ## 2304## ----------- ## 2305 2306_ACEOF 2307 2308 2309# Keep a trace of the command line. 2310# Strip out --no-create and --no-recursion so they do not pile up. 2311# Strip out --silent because we don't want to record it for future runs. 2312# Also quote any args containing shell meta-characters. 2313# Make two passes to allow for proper duplicate-argument suppression. 2314ac_configure_args= 2315ac_configure_args0= 2316ac_configure_args1= 2317ac_must_keep_next=false 2318for ac_pass in 1 2 2319do 2320 for ac_arg 2321 do 2322 case $ac_arg in 2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2325 | -silent | --silent | --silen | --sile | --sil) 2326 continue ;; 2327 *\'*) 2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 case $ac_pass in 2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2332 2) 2333 as_fn_append ac_configure_args1 " '$ac_arg'" 2334 if test $ac_must_keep_next = true; then 2335 ac_must_keep_next=false # Got value, back to normal. 2336 else 2337 case $ac_arg in 2338 *=* | --config-cache | -C | -disable-* | --disable-* \ 2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2341 | -with-* | --with-* | -without-* | --without-* | --x) 2342 case "$ac_configure_args0 " in 2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2344 esac 2345 ;; 2346 -* ) ac_must_keep_next=true ;; 2347 esac 2348 fi 2349 as_fn_append ac_configure_args " '$ac_arg'" 2350 ;; 2351 esac 2352 done 2353done 2354{ ac_configure_args0=; unset ac_configure_args0;} 2355{ ac_configure_args1=; unset ac_configure_args1;} 2356 2357# When interrupted or exit'd, cleanup temporary files, and complete 2358# config.log. We remove comments because anyway the quotes in there 2359# would cause problems or look ugly. 2360# WARNING: Use '\'' to represent an apostrophe within the trap. 2361# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2362trap 'exit_status=$? 2363 # Save into config.log some information that might help in debugging. 2364 { 2365 echo 2366 2367 $as_echo "## ---------------- ## 2368## Cache variables. ## 2369## ---------------- ##" 2370 echo 2371 # The following way of writing the cache mishandles newlines in values, 2372( 2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2374 eval ac_val=\$$ac_var 2375 case $ac_val in #( 2376 *${as_nl}*) 2377 case $ac_var in #( 2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2380 esac 2381 case $ac_var in #( 2382 _ | IFS | as_nl) ;; #( 2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2384 *) { eval $ac_var=; unset $ac_var;} ;; 2385 esac ;; 2386 esac 2387 done 2388 (set) 2>&1 | 2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2390 *${as_nl}ac_space=\ *) 2391 sed -n \ 2392 "s/'\''/'\''\\\\'\'''\''/g; 2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2394 ;; #( 2395 *) 2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2397 ;; 2398 esac | 2399 sort 2400) 2401 echo 2402 2403 $as_echo "## ----------------- ## 2404## Output variables. ## 2405## ----------------- ##" 2406 echo 2407 for ac_var in $ac_subst_vars 2408 do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in 2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2412 esac 2413 $as_echo "$ac_var='\''$ac_val'\''" 2414 done | sort 2415 echo 2416 2417 if test -n "$ac_subst_files"; then 2418 $as_echo "## ------------------- ## 2419## File substitutions. ## 2420## ------------------- ##" 2421 echo 2422 for ac_var in $ac_subst_files 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 $as_echo "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 fi 2432 2433 if test -s confdefs.h; then 2434 $as_echo "## ----------- ## 2435## confdefs.h. ## 2436## ----------- ##" 2437 echo 2438 cat confdefs.h 2439 echo 2440 fi 2441 test "$ac_signal" != 0 && 2442 $as_echo "$as_me: caught signal $ac_signal" 2443 $as_echo "$as_me: exit $exit_status" 2444 } >&5 2445 rm -f core *.core core.conftest.* && 2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2447 exit $exit_status 2448' 0 2449for ac_signal in 1 2 13 15; do 2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2451done 2452ac_signal=0 2453 2454# confdefs.h avoids OS command line length limits that DEFS can exceed. 2455rm -f -r conftest* confdefs.h 2456 2457$as_echo "/* confdefs.h */" > confdefs.h 2458 2459# Predefined preprocessor variables. 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_NAME "$PACKAGE_NAME" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2467_ACEOF 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_VERSION "$PACKAGE_VERSION" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_STRING "$PACKAGE_STRING" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_URL "$PACKAGE_URL" 2483_ACEOF 2484 2485 2486# Let the site file select an alternate cache file if it wants to. 2487# Prefer an explicitly selected file to automatically selected ones. 2488ac_site_file1=NONE 2489ac_site_file2=NONE 2490if test -n "$CONFIG_SITE"; then 2491 # We do not want a PATH search for config.site. 2492 case $CONFIG_SITE in #(( 2493 -*) ac_site_file1=./$CONFIG_SITE;; 2494 */*) ac_site_file1=$CONFIG_SITE;; 2495 *) ac_site_file1=./$CONFIG_SITE;; 2496 esac 2497elif test "x$prefix" != xNONE; then 2498 ac_site_file1=$prefix/share/config.site 2499 ac_site_file2=$prefix/etc/config.site 2500else 2501 ac_site_file1=$ac_default_prefix/share/config.site 2502 ac_site_file2=$ac_default_prefix/etc/config.site 2503fi 2504for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2505do 2506 test "x$ac_site_file" = xNONE && continue 2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2509$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2510 sed 's/^/| /' "$ac_site_file" >&5 2511 . "$ac_site_file" \ 2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2514as_fn_error $? "failed to load site script $ac_site_file 2515See \`config.log' for more details" "$LINENO" 5; } 2516 fi 2517done 2518 2519if test -r "$cache_file"; then 2520 # Some versions of bash will fail to source /dev/null (special files 2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2524$as_echo "$as_me: loading cache $cache_file" >&6;} 2525 case $cache_file in 2526 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2527 *) . "./$cache_file";; 2528 esac 2529 fi 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2532$as_echo "$as_me: creating cache $cache_file" >&6;} 2533 >$cache_file 2534fi 2535 2536# Check that the precious variables saved in the cache have kept the same 2537# value. 2538ac_cache_corrupted=false 2539for ac_var in $ac_precious_vars; do 2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2541 eval ac_new_set=\$ac_env_${ac_var}_set 2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2543 eval ac_new_val=\$ac_env_${ac_var}_value 2544 case $ac_old_set,$ac_new_set in 2545 set,) 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2547$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2548 ac_cache_corrupted=: ;; 2549 ,set) 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2551$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2552 ac_cache_corrupted=: ;; 2553 ,);; 2554 *) 2555 if test "x$ac_old_val" != "x$ac_new_val"; then 2556 # differences in whitespace do not lead to failure. 2557 ac_old_val_w=`echo x $ac_old_val` 2558 ac_new_val_w=`echo x $ac_new_val` 2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2561$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2562 ac_cache_corrupted=: 2563 else 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2565$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2566 eval $ac_var=\$ac_old_val 2567 fi 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2569$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2571$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2572 fi;; 2573 esac 2574 # Pass precious variables to config.status. 2575 if test "$ac_new_set" = set; then 2576 case $ac_new_val in 2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2578 *) ac_arg=$ac_var=$ac_new_val ;; 2579 esac 2580 case " $ac_configure_args " in 2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2583 esac 2584 fi 2585done 2586if $ac_cache_corrupted; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2590$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2592fi 2593## -------------------- ## 2594## Main body of script. ## 2595## -------------------- ## 2596 2597ac_ext=c 2598ac_cpp='$CPP $CPPFLAGS' 2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2601ac_compiler_gnu=$ac_cv_c_compiler_gnu 2602 2603 2604ac_aux_dir= 2605for ac_dir in build-aux "$srcdir"/build-aux; do 2606 if test -f "$ac_dir/install-sh"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/install-sh -c" 2609 break 2610 elif test -f "$ac_dir/install.sh"; then 2611 ac_aux_dir=$ac_dir 2612 ac_install_sh="$ac_aux_dir/install.sh -c" 2613 break 2614 elif test -f "$ac_dir/shtool"; then 2615 ac_aux_dir=$ac_dir 2616 ac_install_sh="$ac_aux_dir/shtool install -c" 2617 break 2618 fi 2619done 2620if test -z "$ac_aux_dir"; then 2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2622fi 2623 2624# These three variables are undocumented and unsupported, 2625# and are intended to be withdrawn in a future Autoconf release. 2626# They can cause serious problems if a builder's source tree is in a directory 2627# whose full name contains unusual characters. 2628ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2629ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2630ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2631 2632 2633ac_config_headers="$ac_config_headers config.h" 2634 2635 2636# Find a good install program. We prefer a C program (faster), 2637# so one script is as good as another. But avoid the broken or 2638# incompatible versions: 2639# SysV /etc/install, /usr/sbin/install 2640# SunOS /usr/etc/install 2641# IRIX /sbin/install 2642# AIX /bin/install 2643# AmigaOS /C/install, which installs bootblocks on floppy discs 2644# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2645# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2647# OS/2's system install, which has a completely different semantic 2648# ./install, which can be erroneously created by make from ./install.sh. 2649# Reject install programs that cannot install multiple files. 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2651$as_echo_n "checking for a BSD-compatible install... " >&6; } 2652if test -z "$INSTALL"; then 2653if ${ac_cv_path_install+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 as_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 # Account for people who put trailing slashes in PATH elements. 2662case $as_dir/ in #(( 2663 ./ | .// | /[cC]/* | \ 2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2666 /usr/ucb/* ) ;; 2667 *) 2668 # OSF1 and SCO ODT 3.0 have their own names for install. 2669 # Don't use installbsd from OSF since it installs stuff as root 2670 # by default. 2671 for ac_prog in ginstall scoinst install; do 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2674 if test $ac_prog = install && 2675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2676 # AIX install. It has an incompatible calling convention. 2677 : 2678 elif test $ac_prog = install && 2679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2680 # program-specific install script used by HP pwplus--don't use. 2681 : 2682 else 2683 rm -rf conftest.one conftest.two conftest.dir 2684 echo one > conftest.one 2685 echo two > conftest.two 2686 mkdir conftest.dir 2687 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2688 test -s conftest.one && test -s conftest.two && 2689 test -s conftest.dir/conftest.one && 2690 test -s conftest.dir/conftest.two 2691 then 2692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2693 break 3 2694 fi 2695 fi 2696 fi 2697 done 2698 done 2699 ;; 2700esac 2701 2702 done 2703IFS=$as_save_IFS 2704 2705rm -rf conftest.one conftest.two conftest.dir 2706 2707fi 2708 if test "${ac_cv_path_install+set}" = set; then 2709 INSTALL=$ac_cv_path_install 2710 else 2711 # As a last resort, use the slow shell script. Don't cache a 2712 # value for INSTALL within a source directory, because that will 2713 # break other packages using the cache if that directory is 2714 # removed, or if the value is a relative name. 2715 INSTALL=$ac_install_sh 2716 fi 2717fi 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2719$as_echo "$INSTALL" >&6; } 2720 2721# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2722# It thinks the first close brace ends the variable substitution. 2723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2724 2725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2726 2727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2728 2729am__api_version='1.15' 2730 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2732$as_echo_n "checking whether build environment is sane... " >&6; } 2733# Reject unsafe characters in $srcdir or the absolute working directory 2734# name. Accept space and tab only in the latter. 2735am_lf=' 2736' 2737case `pwd` in 2738 *[\\\"\#\$\&\'\`$am_lf]*) 2739 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2740esac 2741case $srcdir in 2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2743 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2744esac 2745 2746# Do 'set' in a subshell so we don't clobber the current shell's 2747# arguments. Must try -L first in case configure is actually a 2748# symlink; some systems play weird games with the mod time of symlinks 2749# (eg FreeBSD returns the mod time of the symlink's containing 2750# directory). 2751if ( 2752 am_has_slept=no 2753 for am_try in 1 2; do 2754 echo "timestamp, slept: $am_has_slept" > conftest.file 2755 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2756 if test "$*" = "X"; then 2757 # -L didn't work. 2758 set X `ls -t "$srcdir/configure" conftest.file` 2759 fi 2760 if test "$*" != "X $srcdir/configure conftest.file" \ 2761 && test "$*" != "X conftest.file $srcdir/configure"; then 2762 2763 # If neither matched, then we have a broken ls. This can happen 2764 # if, for instance, CONFIG_SHELL is bash and it inherits a 2765 # broken ls alias from the environment. This has actually 2766 # happened. Such a system could not be considered "sane". 2767 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2768 alias in your environment" "$LINENO" 5 2769 fi 2770 if test "$2" = conftest.file || test $am_try -eq 2; then 2771 break 2772 fi 2773 # Just in case. 2774 sleep 1 2775 am_has_slept=yes 2776 done 2777 test "$2" = conftest.file 2778 ) 2779then 2780 # Ok. 2781 : 2782else 2783 as_fn_error $? "newly created file is older than distributed files! 2784Check your system clock" "$LINENO" 5 2785fi 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2787$as_echo "yes" >&6; } 2788# If we didn't sleep, we still need to ensure time stamps of config.status and 2789# generated files are strictly newer. 2790am_sleep_pid= 2791if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2792 ( sleep 1 ) & 2793 am_sleep_pid=$! 2794fi 2795 2796rm -f conftest.file 2797 2798test "$program_prefix" != NONE && 2799 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2800# Use a double $ so make ignores it. 2801test "$program_suffix" != NONE && 2802 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2803# Double any \ or $. 2804# By default was `s,x,x', remove it if useless. 2805ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2806program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2807 2808# Expand $ac_aux_dir to an absolute path. 2809am_aux_dir=`cd "$ac_aux_dir" && pwd` 2810 2811if test x"${MISSING+set}" != xset; then 2812 case $am_aux_dir in 2813 *\ * | *\ *) 2814 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2815 *) 2816 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2817 esac 2818fi 2819# Use eval to expand $SHELL 2820if eval "$MISSING --is-lightweight"; then 2821 am_missing_run="$MISSING " 2822else 2823 am_missing_run= 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2825$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2826fi 2827 2828if test x"${install_sh+set}" != xset; then 2829 case $am_aux_dir in 2830 *\ * | *\ *) 2831 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2832 *) 2833 install_sh="\${SHELL} $am_aux_dir/install-sh" 2834 esac 2835fi 2836 2837# Installed binaries are usually stripped using 'strip' when the user 2838# run "make install-strip". However 'strip' might not be the right 2839# tool to use in cross-compilation environments, therefore Automake 2840# will honor the 'STRIP' environment variable to overrule this program. 2841if test "$cross_compiling" != no; then 2842 if test -n "$ac_tool_prefix"; then 2843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2844set dummy ${ac_tool_prefix}strip; ac_word=$2 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2846$as_echo_n "checking for $ac_word... " >&6; } 2847if ${ac_cv_prog_STRIP+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 if test -n "$STRIP"; then 2851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2852else 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2860 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865 done 2866IFS=$as_save_IFS 2867 2868fi 2869fi 2870STRIP=$ac_cv_prog_STRIP 2871if test -n "$STRIP"; then 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2873$as_echo "$STRIP" >&6; } 2874else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877fi 2878 2879 2880fi 2881if test -z "$ac_cv_prog_STRIP"; then 2882 ac_ct_STRIP=$STRIP 2883 # Extract the first word of "strip", so it can be a program name with args. 2884set dummy strip; ac_word=$2 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$ac_ct_STRIP"; then 2891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_ac_ct_STRIP="strip" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2911if test -n "$ac_ct_STRIP"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2913$as_echo "$ac_ct_STRIP" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 if test "x$ac_ct_STRIP" = x; then 2920 STRIP=":" 2921 else 2922 case $cross_compiling:$ac_tool_warned in 2923yes:) 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2926ac_tool_warned=yes ;; 2927esac 2928 STRIP=$ac_ct_STRIP 2929 fi 2930else 2931 STRIP="$ac_cv_prog_STRIP" 2932fi 2933 2934fi 2935INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2936 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2938$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2939if test -z "$MKDIR_P"; then 2940 if ${ac_cv_path_mkdir+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2945do 2946 IFS=$as_save_IFS 2947 test -z "$as_dir" && as_dir=. 2948 for ac_prog in mkdir gmkdir; do 2949 for ac_exec_ext in '' $ac_executable_extensions; do 2950 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2951 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2952 'mkdir (GNU coreutils) '* | \ 2953 'mkdir (coreutils) '* | \ 2954 'mkdir (fileutils) '4.1*) 2955 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2956 break 3;; 2957 esac 2958 done 2959 done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964 2965 test -d ./--version && rmdir ./--version 2966 if test "${ac_cv_path_mkdir+set}" = set; then 2967 MKDIR_P="$ac_cv_path_mkdir -p" 2968 else 2969 # As a last resort, use the slow shell script. Don't cache a 2970 # value for MKDIR_P within a source directory, because that will 2971 # break other packages using the cache if that directory is 2972 # removed, or if the value is a relative name. 2973 MKDIR_P="$ac_install_sh -d" 2974 fi 2975fi 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2977$as_echo "$MKDIR_P" >&6; } 2978 2979for ac_prog in gawk mawk nawk awk 2980do 2981 # Extract the first word of "$ac_prog", so it can be a program name with args. 2982set dummy $ac_prog; ac_word=$2 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984$as_echo_n "checking for $ac_word... " >&6; } 2985if ${ac_cv_prog_AWK+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 if test -n "$AWK"; then 2989 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2998 ac_cv_prog_AWK="$ac_prog" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003 done 3004IFS=$as_save_IFS 3005 3006fi 3007fi 3008AWK=$ac_cv_prog_AWK 3009if test -n "$AWK"; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3011$as_echo "$AWK" >&6; } 3012else 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014$as_echo "no" >&6; } 3015fi 3016 3017 3018 test -n "$AWK" && break 3019done 3020 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3022$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3023set x ${MAKE-make} 3024ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3025if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 cat >conftest.make <<\_ACEOF 3029SHELL = /bin/sh 3030all: 3031 @echo '@@@%%%=$(MAKE)=@@@%%%' 3032_ACEOF 3033# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3034case `${MAKE-make} -f conftest.make 2>/dev/null` in 3035 *@@@%%%=?*=@@@%%%*) 3036 eval ac_cv_prog_make_${ac_make}_set=yes;; 3037 *) 3038 eval ac_cv_prog_make_${ac_make}_set=no;; 3039esac 3040rm -f conftest.make 3041fi 3042if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3044$as_echo "yes" >&6; } 3045 SET_MAKE= 3046else 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048$as_echo "no" >&6; } 3049 SET_MAKE="MAKE=${MAKE-make}" 3050fi 3051 3052rm -rf .tst 2>/dev/null 3053mkdir .tst 2>/dev/null 3054if test -d .tst; then 3055 am__leading_dot=. 3056else 3057 am__leading_dot=_ 3058fi 3059rmdir .tst 2>/dev/null 3060 3061# Check whether --enable-silent-rules was given. 3062if test "${enable_silent_rules+set}" = set; then : 3063 enableval=$enable_silent_rules; 3064fi 3065 3066case $enable_silent_rules in # ((( 3067 yes) AM_DEFAULT_VERBOSITY=0;; 3068 no) AM_DEFAULT_VERBOSITY=1;; 3069 *) AM_DEFAULT_VERBOSITY=1;; 3070esac 3071am_make=${MAKE-make} 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3073$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3074if ${am_cv_make_support_nested_variables+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 if $as_echo 'TRUE=$(BAR$(V)) 3078BAR0=false 3079BAR1=true 3080V=1 3081am__doit: 3082 @$(TRUE) 3083.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3084 am_cv_make_support_nested_variables=yes 3085else 3086 am_cv_make_support_nested_variables=no 3087fi 3088fi 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3090$as_echo "$am_cv_make_support_nested_variables" >&6; } 3091if test $am_cv_make_support_nested_variables = yes; then 3092 AM_V='$(V)' 3093 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3094else 3095 AM_V=$AM_DEFAULT_VERBOSITY 3096 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3097fi 3098AM_BACKSLASH='\' 3099 3100if test "`cd $srcdir && pwd`" != "`pwd`"; then 3101 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3102 # is not polluted with repeated "-I." 3103 am__isrc=' -I$(srcdir)' 3104 # test to see if srcdir already configured 3105 if test -f $srcdir/config.status; then 3106 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3107 fi 3108fi 3109 3110# test whether we have cygpath 3111if test -z "$CYGPATH_W"; then 3112 if (cygpath --version) >/dev/null 2>/dev/null; then 3113 CYGPATH_W='cygpath -w' 3114 else 3115 CYGPATH_W=echo 3116 fi 3117fi 3118 3119 3120# Define the identity of the package. 3121 PACKAGE='libhx' 3122 VERSION='3.25' 3123 3124 3125cat >>confdefs.h <<_ACEOF 3126#define PACKAGE "$PACKAGE" 3127_ACEOF 3128 3129 3130cat >>confdefs.h <<_ACEOF 3131#define VERSION "$VERSION" 3132_ACEOF 3133 3134# Some tools Automake needs. 3135 3136ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3137 3138 3139AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3140 3141 3142AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3143 3144 3145AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3146 3147 3148MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3149 3150# For better backward compatibility. To be removed once Automake 1.9.x 3151# dies out for good. For more background, see: 3152# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3153# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3154mkdir_p='$(MKDIR_P)' 3155 3156# We need awk for the "check" target (and possibly the TAP driver). The 3157# system "awk" is bad on some platforms. 3158# Always define AMTAR for backward compatibility. Yes, it's still used 3159# in the wild :-( We should find a proper way to deprecate it ... 3160AMTAR='$${TAR-tar}' 3161 3162 3163# We'll loop over all known methods to create a tar archive until one works. 3164_am_tools='gnutar pax cpio none' 3165 3166 3167 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3169$as_echo_n "checking how to create a pax tar archive... " >&6; } 3170 3171 # Go ahead even if we have the value already cached. We do so because we 3172 # need to set the values for the 'am__tar' and 'am__untar' variables. 3173 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3174 3175 for _am_tool in $_am_tools; do 3176 case $_am_tool in 3177 gnutar) 3178 for _am_tar in tar gnutar gtar; do 3179 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3180 ($_am_tar --version) >&5 2>&5 3181 ac_status=$? 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); } && break 3184 done 3185 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3186 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3187 am__untar="$_am_tar -xf -" 3188 ;; 3189 plaintar) 3190 # Must skip GNU tar: if it does not support --format= it doesn't create 3191 # ustar tarball either. 3192 (tar --version) >/dev/null 2>&1 && continue 3193 am__tar='tar chf - "$$tardir"' 3194 am__tar_='tar chf - "$tardir"' 3195 am__untar='tar xf -' 3196 ;; 3197 pax) 3198 am__tar='pax -L -x pax -w "$$tardir"' 3199 am__tar_='pax -L -x pax -w "$tardir"' 3200 am__untar='pax -r' 3201 ;; 3202 cpio) 3203 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3204 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3205 am__untar='cpio -i -H pax -d' 3206 ;; 3207 none) 3208 am__tar=false 3209 am__tar_=false 3210 am__untar=false 3211 ;; 3212 esac 3213 3214 # If the value was cached, stop now. We just wanted to have am__tar 3215 # and am__untar set. 3216 test -n "${am_cv_prog_tar_pax}" && break 3217 3218 # tar/untar a dummy directory, and stop if the command works. 3219 rm -rf conftest.dir 3220 mkdir conftest.dir 3221 echo GrepMe > conftest.dir/file 3222 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3223 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3224 ac_status=$? 3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); } 3227 rm -rf conftest.dir 3228 if test -s conftest.tar; then 3229 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3230 ($am__untar <conftest.tar) >&5 2>&5 3231 ac_status=$? 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } 3234 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3235 (cat conftest.dir/file) >&5 2>&5 3236 ac_status=$? 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); } 3239 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3240 fi 3241 done 3242 rm -rf conftest.dir 3243 3244 if ${am_cv_prog_tar_pax+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 am_cv_prog_tar_pax=$_am_tool 3248fi 3249 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3251$as_echo "$am_cv_prog_tar_pax" >&6; } 3252 3253 3254 3255 3256 3257 3258# POSIX will say in a future version that running "rm -f" with no argument 3259# is OK; and we want to be able to make that assumption in our Makefile 3260# recipes. So use an aggressive probe to check that the usage we want is 3261# actually supported "in the wild" to an acceptable degree. 3262# See automake bug#10828. 3263# To make any issue more visible, cause the running configure to be aborted 3264# by default if the 'rm' program in use doesn't match our expectations; the 3265# user can still override this though. 3266if rm -f && rm -fr && rm -rf; then : OK; else 3267 cat >&2 <<'END' 3268Oops! 3269 3270Your 'rm' program seems unable to run without file operands specified 3271on the command line, even when the '-f' option is present. This is contrary 3272to the behaviour of most rm programs out there, and not conforming with 3273the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3274 3275Please tell bug-automake@gnu.org about your system, including the value 3276of your $PATH and any error possibly output before this message. This 3277can help us improve future automake versions. 3278 3279END 3280 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3281 echo 'Configuration will proceed anyway, since you have set the' >&2 3282 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3283 echo >&2 3284 else 3285 cat >&2 <<'END' 3286Aborting the configuration process, to ensure you take notice of the issue. 3287 3288You can download and install GNU coreutils to get an 'rm' implementation 3289that behaves properly: <http://www.gnu.org/software/coreutils/>. 3290 3291If you want to complete the configuration process using your problematic 3292'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3293to "yes", and re-run configure. 3294 3295END 3296 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3297 fi 3298fi 3299 3300ac_ext=c 3301ac_cpp='$CPP $CPPFLAGS' 3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3304ac_compiler_gnu=$ac_cv_c_compiler_gnu 3305if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3307set dummy ${ac_tool_prefix}gcc; ac_word=$2 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309$as_echo_n "checking for $ac_word... " >&6; } 3310if ${ac_cv_prog_CC+:} false; then : 3311 $as_echo_n "(cached) " >&6 3312else 3313 if test -n "$CC"; then 3314 ac_cv_prog_CC="$CC" # Let the user override the test. 3315else 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333CC=$ac_cv_prog_CC 3334if test -n "$CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3336$as_echo "$CC" >&6; } 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340fi 3341 3342 3343fi 3344if test -z "$ac_cv_prog_CC"; then 3345 ac_ct_CC=$CC 3346 # Extract the first word of "gcc", so it can be a program name with args. 3347set dummy gcc; ac_word=$2 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3349$as_echo_n "checking for $ac_word... " >&6; } 3350if ${ac_cv_prog_ac_ct_CC+:} false; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 if test -n "$ac_ct_CC"; then 3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3355else 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3363 ac_cv_prog_ac_ct_CC="gcc" 3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3365 break 2 3366 fi 3367done 3368 done 3369IFS=$as_save_IFS 3370 3371fi 3372fi 3373ac_ct_CC=$ac_cv_prog_ac_ct_CC 3374if test -n "$ac_ct_CC"; then 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3376$as_echo "$ac_ct_CC" >&6; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379$as_echo "no" >&6; } 3380fi 3381 3382 if test "x$ac_ct_CC" = x; then 3383 CC="" 3384 else 3385 case $cross_compiling:$ac_tool_warned in 3386yes:) 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3389ac_tool_warned=yes ;; 3390esac 3391 CC=$ac_ct_CC 3392 fi 3393else 3394 CC="$ac_cv_prog_CC" 3395fi 3396 3397if test -z "$CC"; then 3398 if test -n "$ac_tool_prefix"; then 3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3400set dummy ${ac_tool_prefix}cc; ac_word=$2 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3402$as_echo_n "checking for $ac_word... " >&6; } 3403if ${ac_cv_prog_CC+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405else 3406 if test -n "$CC"; then 3407 ac_cv_prog_CC="$CC" # Let the user override the test. 3408else 3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410for as_dir in $PATH 3411do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3416 ac_cv_prog_CC="${ac_tool_prefix}cc" 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 3419 fi 3420done 3421 done 3422IFS=$as_save_IFS 3423 3424fi 3425fi 3426CC=$ac_cv_prog_CC 3427if test -n "$CC"; then 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3429$as_echo "$CC" >&6; } 3430else 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432$as_echo "no" >&6; } 3433fi 3434 3435 3436 fi 3437fi 3438if test -z "$CC"; then 3439 # Extract the first word of "cc", so it can be a program name with args. 3440set dummy cc; ac_word=$2 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442$as_echo_n "checking for $ac_word... " >&6; } 3443if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448else 3449 ac_prog_rejected=no 3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451for as_dir in $PATH 3452do 3453 IFS=$as_save_IFS 3454 test -z "$as_dir" && as_dir=. 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3458 ac_prog_rejected=yes 3459 continue 3460 fi 3461 ac_cv_prog_CC="cc" 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465done 3466 done 3467IFS=$as_save_IFS 3468 3469if test $ac_prog_rejected = yes; then 3470 # We found a bogon in the path, so make sure we never use it. 3471 set dummy $ac_cv_prog_CC 3472 shift 3473 if test $# != 0; then 3474 # We chose a different compiler from the bogus one. 3475 # However, it has the same basename, so the bogon will be chosen 3476 # first if we set CC to just the basename; use the full file name. 3477 shift 3478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3479 fi 3480fi 3481fi 3482fi 3483CC=$ac_cv_prog_CC 3484if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486$as_echo "$CC" >&6; } 3487else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489$as_echo "no" >&6; } 3490fi 3491 3492 3493fi 3494if test -z "$CC"; then 3495 if test -n "$ac_tool_prefix"; then 3496 for ac_prog in cl.exe 3497 do 3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3499set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501$as_echo_n "checking for $ac_word... " >&6; } 3502if ${ac_cv_prog_CC+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525CC=$ac_cv_prog_CC 3526if test -n "$CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3528$as_echo "$CC" >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532fi 3533 3534 3535 test -n "$CC" && break 3536 done 3537fi 3538if test -z "$CC"; then 3539 ac_ct_CC=$CC 3540 for ac_prog in cl.exe 3541do 3542 # Extract the first word of "$ac_prog", so it can be a program name with args. 3543set dummy $ac_prog; ac_word=$2 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545$as_echo_n "checking for $ac_word... " >&6; } 3546if ${ac_cv_prog_ac_ct_CC+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 if test -n "$ac_ct_CC"; then 3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3551else 3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_ac_ct_CC="$ac_prog" 3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564 done 3565IFS=$as_save_IFS 3566 3567fi 3568fi 3569ac_ct_CC=$ac_cv_prog_ac_ct_CC 3570if test -n "$ac_ct_CC"; then 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3572$as_echo "$ac_ct_CC" >&6; } 3573else 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575$as_echo "no" >&6; } 3576fi 3577 3578 3579 test -n "$ac_ct_CC" && break 3580done 3581 3582 if test "x$ac_ct_CC" = x; then 3583 CC="" 3584 else 3585 case $cross_compiling:$ac_tool_warned in 3586yes:) 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589ac_tool_warned=yes ;; 3590esac 3591 CC=$ac_ct_CC 3592 fi 3593fi 3594 3595fi 3596 3597 3598test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3600as_fn_error $? "no acceptable C compiler found in \$PATH 3601See \`config.log' for more details" "$LINENO" 5; } 3602 3603# Provide some information about the compiler. 3604$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3605set X $ac_compile 3606ac_compiler=$2 3607for ac_option in --version -v -V -qversion; do 3608 { { ac_try="$ac_compiler $ac_option >&5" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3616 ac_status=$? 3617 if test -s conftest.err; then 3618 sed '10a\ 3619... rest of stderr output deleted ... 3620 10q' conftest.err >conftest.er1 3621 cat conftest.er1 >&5 3622 fi 3623 rm -f conftest.er1 conftest.err 3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3625 test $ac_status = 0; } 3626done 3627 3628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629/* end confdefs.h. */ 3630 3631int 3632main () 3633{ 3634 3635 ; 3636 return 0; 3637} 3638_ACEOF 3639ac_clean_files_save=$ac_clean_files 3640ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3641# Try to create an executable without -o first, disregard a.out. 3642# It will help us diagnose broken compilers, and finding out an intuition 3643# of exeext. 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3645$as_echo_n "checking whether the C compiler works... " >&6; } 3646ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3647 3648# The possible output files: 3649ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3650 3651ac_rmfiles= 3652for ac_file in $ac_files 3653do 3654 case $ac_file in 3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3657 esac 3658done 3659rm -f $ac_rmfiles 3660 3661if { { ac_try="$ac_link_default" 3662case "(($ac_try" in 3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3664 *) ac_try_echo=$ac_try;; 3665esac 3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3667$as_echo "$ac_try_echo"; } >&5 3668 (eval "$ac_link_default") 2>&5 3669 ac_status=$? 3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3671 test $ac_status = 0; }; then : 3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3673# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3674# in a Makefile. We should not override ac_cv_exeext if it was cached, 3675# so that the user can short-circuit this test for compilers unknown to 3676# Autoconf. 3677for ac_file in $ac_files '' 3678do 3679 test -f "$ac_file" || continue 3680 case $ac_file in 3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3682 ;; 3683 [ab].out ) 3684 # We found the default executable, but exeext='' is most 3685 # certainly right. 3686 break;; 3687 *.* ) 3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3689 then :; else 3690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3691 fi 3692 # We set ac_cv_exeext here because the later test for it is not 3693 # safe: cross compilers may not add the suffix if given an `-o' 3694 # argument, so we may need to know it at that point already. 3695 # Even if this section looks crufty: it has the advantage of 3696 # actually working. 3697 break;; 3698 * ) 3699 break;; 3700 esac 3701done 3702test "$ac_cv_exeext" = no && ac_cv_exeext= 3703 3704else 3705 ac_file='' 3706fi 3707if test -z "$ac_file"; then : 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3709$as_echo "no" >&6; } 3710$as_echo "$as_me: failed program was:" >&5 3711sed 's/^/| /' conftest.$ac_ext >&5 3712 3713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3715as_fn_error 77 "C compiler cannot create executables 3716See \`config.log' for more details" "$LINENO" 5; } 3717else 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3719$as_echo "yes" >&6; } 3720fi 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3722$as_echo_n "checking for C compiler default output file name... " >&6; } 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3724$as_echo "$ac_file" >&6; } 3725ac_exeext=$ac_cv_exeext 3726 3727rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3728ac_clean_files=$ac_clean_files_save 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3730$as_echo_n "checking for suffix of executables... " >&6; } 3731if { { ac_try="$ac_link" 3732case "(($ac_try" in 3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3734 *) ac_try_echo=$ac_try;; 3735esac 3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3737$as_echo "$ac_try_echo"; } >&5 3738 (eval "$ac_link") 2>&5 3739 ac_status=$? 3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3741 test $ac_status = 0; }; then : 3742 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3743# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3744# work properly (i.e., refer to `conftest.exe'), while it won't with 3745# `rm'. 3746for ac_file in conftest.exe conftest conftest.*; do 3747 test -f "$ac_file" || continue 3748 case $ac_file in 3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3751 break;; 3752 * ) break;; 3753 esac 3754done 3755else 3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3758as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3759See \`config.log' for more details" "$LINENO" 5; } 3760fi 3761rm -f conftest conftest$ac_cv_exeext 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3763$as_echo "$ac_cv_exeext" >&6; } 3764 3765rm -f conftest.$ac_ext 3766EXEEXT=$ac_cv_exeext 3767ac_exeext=$EXEEXT 3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770#include <stdio.h> 3771int 3772main () 3773{ 3774FILE *f = fopen ("conftest.out", "w"); 3775 return ferror (f) || fclose (f) != 0; 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781ac_clean_files="$ac_clean_files conftest.out" 3782# Check that the compiler produces executables we can run. If not, either 3783# the compiler is broken, or we cross compile. 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3785$as_echo_n "checking whether we are cross compiling... " >&6; } 3786if test "$cross_compiling" != yes; then 3787 { { ac_try="$ac_link" 3788case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791esac 3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3793$as_echo "$ac_try_echo"; } >&5 3794 (eval "$ac_link") 2>&5 3795 ac_status=$? 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3797 test $ac_status = 0; } 3798 if { ac_try='./conftest$ac_cv_exeext' 3799 { { case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3804$as_echo "$ac_try_echo"; } >&5 3805 (eval "$ac_try") 2>&5 3806 ac_status=$? 3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3808 test $ac_status = 0; }; }; then 3809 cross_compiling=no 3810 else 3811 if test "$cross_compiling" = maybe; then 3812 cross_compiling=yes 3813 else 3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3816as_fn_error $? "cannot run C compiled programs. 3817If you meant to cross compile, use \`--host'. 3818See \`config.log' for more details" "$LINENO" 5; } 3819 fi 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3823$as_echo "$cross_compiling" >&6; } 3824 3825rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3826ac_clean_files=$ac_clean_files_save 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3828$as_echo_n "checking for suffix of object files... " >&6; } 3829if ${ac_cv_objext+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834 3835int 3836main () 3837{ 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843rm -f conftest.o conftest.obj 3844if { { ac_try="$ac_compile" 3845case "(($ac_try" in 3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3847 *) ac_try_echo=$ac_try;; 3848esac 3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3850$as_echo "$ac_try_echo"; } >&5 3851 (eval "$ac_compile") 2>&5 3852 ac_status=$? 3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3854 test $ac_status = 0; }; then : 3855 for ac_file in conftest.o conftest.obj conftest.*; do 3856 test -f "$ac_file" || continue; 3857 case $ac_file in 3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3860 break;; 3861 esac 3862done 3863else 3864 $as_echo "$as_me: failed program was:" >&5 3865sed 's/^/| /' conftest.$ac_ext >&5 3866 3867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3869as_fn_error $? "cannot compute suffix of object files: cannot compile 3870See \`config.log' for more details" "$LINENO" 5; } 3871fi 3872rm -f conftest.$ac_cv_objext conftest.$ac_ext 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3875$as_echo "$ac_cv_objext" >&6; } 3876OBJEXT=$ac_cv_objext 3877ac_objext=$OBJEXT 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3880if ${ac_cv_c_compiler_gnu+:} false; then : 3881 $as_echo_n "(cached) " >&6 3882else 3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3884/* end confdefs.h. */ 3885 3886int 3887main () 3888{ 3889#ifndef __GNUC__ 3890 choke me 3891#endif 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897if ac_fn_c_try_compile "$LINENO"; then : 3898 ac_compiler_gnu=yes 3899else 3900 ac_compiler_gnu=no 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903ac_cv_c_compiler_gnu=$ac_compiler_gnu 3904 3905fi 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3907$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3908if test $ac_compiler_gnu = yes; then 3909 GCC=yes 3910else 3911 GCC= 3912fi 3913ac_test_CFLAGS=${CFLAGS+set} 3914ac_save_CFLAGS=$CFLAGS 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3916$as_echo_n "checking whether $CC accepts -g... " >&6; } 3917if ${ac_cv_prog_cc_g+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 ac_save_c_werror_flag=$ac_c_werror_flag 3921 ac_c_werror_flag=yes 3922 ac_cv_prog_cc_g=no 3923 CFLAGS="-g" 3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3925/* end confdefs.h. */ 3926 3927int 3928main () 3929{ 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_cv_prog_cc_g=yes 3937else 3938 CFLAGS="" 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main () 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_compile "$LINENO"; then : 3951 3952else 3953 ac_c_werror_flag=$ac_save_c_werror_flag 3954 CFLAGS="-g" 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957 3958int 3959main () 3960{ 3961 3962 ; 3963 return 0; 3964} 3965_ACEOF 3966if ac_fn_c_try_compile "$LINENO"; then : 3967 ac_cv_prog_cc_g=yes 3968fi 3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3970fi 3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3972fi 3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3974 ac_c_werror_flag=$ac_save_c_werror_flag 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3977$as_echo "$ac_cv_prog_cc_g" >&6; } 3978if test "$ac_test_CFLAGS" = set; then 3979 CFLAGS=$ac_save_CFLAGS 3980elif test $ac_cv_prog_cc_g = yes; then 3981 if test "$GCC" = yes; then 3982 CFLAGS="-g -O2" 3983 else 3984 CFLAGS="-g" 3985 fi 3986else 3987 if test "$GCC" = yes; then 3988 CFLAGS="-O2" 3989 else 3990 CFLAGS= 3991 fi 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3995if ${ac_cv_prog_cc_c89+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 ac_cv_prog_cc_c89=no 3999ac_save_CC=$CC 4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#include <stdarg.h> 4003#include <stdio.h> 4004struct stat; 4005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4006struct buf { int x; }; 4007FILE * (*rcsopen) (struct buf *, struct stat *, int); 4008static char *e (p, i) 4009 char **p; 4010 int i; 4011{ 4012 return p[i]; 4013} 4014static char *f (char * (*g) (char **, int), char **p, ...) 4015{ 4016 char *s; 4017 va_list v; 4018 va_start (v,p); 4019 s = g (p, va_arg (v,int)); 4020 va_end (v); 4021 return s; 4022} 4023 4024/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4025 function prototypes and stuff, but not '\xHH' hex character constants. 4026 These don't provoke an error unfortunately, instead are silently treated 4027 as 'x'. The following induces an error, until -std is added to get 4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4029 array size at least. It's necessary to write '\x00'==0 to get something 4030 that's true only with -std. */ 4031int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4032 4033/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4034 inside strings and character constants. */ 4035#define FOO(x) 'x' 4036int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4037 4038int test (int i, double x); 4039struct s1 {int (*f) (int a);}; 4040struct s2 {int (*f) (double a);}; 4041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4042int argc; 4043char **argv; 4044int 4045main () 4046{ 4047return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4048 ; 4049 return 0; 4050} 4051_ACEOF 4052for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4054do 4055 CC="$ac_save_CC $ac_arg" 4056 if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_cv_prog_cc_c89=$ac_arg 4058fi 4059rm -f core conftest.err conftest.$ac_objext 4060 test "x$ac_cv_prog_cc_c89" != "xno" && break 4061done 4062rm -f conftest.$ac_ext 4063CC=$ac_save_CC 4064 4065fi 4066# AC_CACHE_VAL 4067case "x$ac_cv_prog_cc_c89" in 4068 x) 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4070$as_echo "none needed" >&6; } ;; 4071 xno) 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4073$as_echo "unsupported" >&6; } ;; 4074 *) 4075 CC="$CC $ac_cv_prog_cc_c89" 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4077$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4078esac 4079if test "x$ac_cv_prog_cc_c89" != xno; then : 4080 4081fi 4082 4083ac_ext=c 4084ac_cpp='$CPP $CPPFLAGS' 4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4087ac_compiler_gnu=$ac_cv_c_compiler_gnu 4088 4089ac_ext=c 4090ac_cpp='$CPP $CPPFLAGS' 4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4093ac_compiler_gnu=$ac_cv_c_compiler_gnu 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4095$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4096if ${am_cv_prog_cc_c_o+:} false; then : 4097 $as_echo_n "(cached) " >&6 4098else 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101 4102int 4103main () 4104{ 4105 4106 ; 4107 return 0; 4108} 4109_ACEOF 4110 # Make sure it works both with $CC and with simple cc. 4111 # Following AC_PROG_CC_C_O, we do the test twice because some 4112 # compilers refuse to overwrite an existing .o file with -o, 4113 # though they will create one. 4114 am_cv_prog_cc_c_o=yes 4115 for am_i in 1 2; do 4116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4118 ac_status=$? 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } \ 4121 && test -f conftest2.$ac_objext; then 4122 : OK 4123 else 4124 am_cv_prog_cc_c_o=no 4125 break 4126 fi 4127 done 4128 rm -f core conftest* 4129 unset am_i 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4132$as_echo "$am_cv_prog_cc_c_o" >&6; } 4133if test "$am_cv_prog_cc_c_o" != yes; then 4134 # Losing compiler, so override with the script. 4135 # FIXME: It is wrong to rewrite CC. 4136 # But if we don't then we get into trouble of one sort or another. 4137 # A longer-term fix would be to have automake use am__CC in this case, 4138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4139 CC="$am_aux_dir/compile $CC" 4140fi 4141ac_ext=c 4142ac_cpp='$CPP $CPPFLAGS' 4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4145ac_compiler_gnu=$ac_cv_c_compiler_gnu 4146 4147DEPDIR="${am__leading_dot}deps" 4148 4149ac_config_commands="$ac_config_commands depfiles" 4150 4151 4152am_make=${MAKE-make} 4153cat > confinc << 'END' 4154am__doit: 4155 @echo this is the am__doit target 4156.PHONY: am__doit 4157END 4158# If we don't find an include directive, just comment out the code. 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4160$as_echo_n "checking for style of include used by $am_make... " >&6; } 4161am__include="#" 4162am__quote= 4163_am_result=none 4164# First try GNU make style include. 4165echo "include confinc" > confmf 4166# Ignore all kinds of additional output from 'make'. 4167case `$am_make -s -f confmf 2> /dev/null` in #( 4168*the\ am__doit\ target*) 4169 am__include=include 4170 am__quote= 4171 _am_result=GNU 4172 ;; 4173esac 4174# Now try BSD make style include. 4175if test "$am__include" = "#"; then 4176 echo '.include "confinc"' > confmf 4177 case `$am_make -s -f confmf 2> /dev/null` in #( 4178 *the\ am__doit\ target*) 4179 am__include=.include 4180 am__quote="\"" 4181 _am_result=BSD 4182 ;; 4183 esac 4184fi 4185 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4188$as_echo "$_am_result" >&6; } 4189rm -f confinc confmf 4190 4191# Check whether --enable-dependency-tracking was given. 4192if test "${enable_dependency_tracking+set}" = set; then : 4193 enableval=$enable_dependency_tracking; 4194fi 4195 4196if test "x$enable_dependency_tracking" != xno; then 4197 am_depcomp="$ac_aux_dir/depcomp" 4198 AMDEPBACKSLASH='\' 4199 am__nodep='_no' 4200fi 4201 if test "x$enable_dependency_tracking" != xno; then 4202 AMDEP_TRUE= 4203 AMDEP_FALSE='#' 4204else 4205 AMDEP_TRUE='#' 4206 AMDEP_FALSE= 4207fi 4208 4209 4210 4211depcc="$CC" am_compiler_list= 4212 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4214$as_echo_n "checking dependency style of $depcc... " >&6; } 4215if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4219 # We make a subdir and do the tests there. Otherwise we can end up 4220 # making bogus files that we don't know about and never remove. For 4221 # instance it was reported that on HP-UX the gcc test will end up 4222 # making a dummy file named 'D' -- because '-MD' means "put the output 4223 # in D". 4224 rm -rf conftest.dir 4225 mkdir conftest.dir 4226 # Copy depcomp to subdir because otherwise we won't find it if we're 4227 # using a relative directory. 4228 cp "$am_depcomp" conftest.dir 4229 cd conftest.dir 4230 # We will build objects and dependencies in a subdirectory because 4231 # it helps to detect inapplicable dependency modes. For instance 4232 # both Tru64's cc and ICC support -MD to output dependencies as a 4233 # side effect of compilation, but ICC will put the dependencies in 4234 # the current directory while Tru64 will put them in the object 4235 # directory. 4236 mkdir sub 4237 4238 am_cv_CC_dependencies_compiler_type=none 4239 if test "$am_compiler_list" = ""; then 4240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4241 fi 4242 am__universal=false 4243 case " $depcc " in #( 4244 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4245 esac 4246 4247 for depmode in $am_compiler_list; do 4248 # Setup a source with many dependencies, because some compilers 4249 # like to wrap large dependency lists on column 80 (with \), and 4250 # we should not choose a depcomp mode which is confused by this. 4251 # 4252 # We need to recreate these files for each test, as the compiler may 4253 # overwrite some of them when testing with obscure command lines. 4254 # This happens at least with the AIX C compiler. 4255 : > sub/conftest.c 4256 for i in 1 2 3 4 5 6; do 4257 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4258 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4259 # Solaris 10 /bin/sh. 4260 echo '/* dummy */' > sub/conftst$i.h 4261 done 4262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4263 4264 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4265 # mode. It turns out that the SunPro C++ compiler does not properly 4266 # handle '-M -o', and we need to detect this. Also, some Intel 4267 # versions had trouble with output in subdirs. 4268 am__obj=sub/conftest.${OBJEXT-o} 4269 am__minus_obj="-o $am__obj" 4270 case $depmode in 4271 gcc) 4272 # This depmode causes a compiler race in universal mode. 4273 test "$am__universal" = false || continue 4274 ;; 4275 nosideeffect) 4276 # After this tag, mechanisms are not by side-effect, so they'll 4277 # only be used when explicitly requested. 4278 if test "x$enable_dependency_tracking" = xyes; then 4279 continue 4280 else 4281 break 4282 fi 4283 ;; 4284 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4285 # This compiler won't grok '-c -o', but also, the minuso test has 4286 # not run yet. These depmodes are late enough in the game, and 4287 # so weak that their functioning should not be impacted. 4288 am__obj=conftest.${OBJEXT-o} 4289 am__minus_obj= 4290 ;; 4291 none) break ;; 4292 esac 4293 if depmode=$depmode \ 4294 source=sub/conftest.c object=$am__obj \ 4295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4297 >/dev/null 2>conftest.err && 4298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4302 # icc doesn't choke on unknown options, it will just issue warnings 4303 # or remarks (even with -Werror). So we grep stderr for any message 4304 # that says an option was ignored or not supported. 4305 # When given -MP, icc 7.0 and 7.1 complain thusly: 4306 # icc: Command line warning: ignoring option '-M'; no argument required 4307 # The diagnosis changed in icc 8.0: 4308 # icc: Command line remark: option '-MP' not supported 4309 if (grep 'ignoring option' conftest.err || 4310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4311 am_cv_CC_dependencies_compiler_type=$depmode 4312 break 4313 fi 4314 fi 4315 done 4316 4317 cd .. 4318 rm -rf conftest.dir 4319else 4320 am_cv_CC_dependencies_compiler_type=none 4321fi 4322 4323fi 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4325$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4326CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4327 4328 if 4329 test "x$enable_dependency_tracking" != xno \ 4330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4331 am__fastdepCC_TRUE= 4332 am__fastdepCC_FALSE='#' 4333else 4334 am__fastdepCC_TRUE='#' 4335 am__fastdepCC_FALSE= 4336fi 4337 4338 4339 4340ac_ext=cpp 4341ac_cpp='$CXXCPP $CPPFLAGS' 4342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4345if test -z "$CXX"; then 4346 if test -n "$CCC"; then 4347 CXX=$CCC 4348 else 4349 if test -n "$ac_tool_prefix"; then 4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4351 do 4352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355$as_echo_n "checking for $ac_word... " >&6; } 4356if ${ac_cv_prog_CXX+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -n "$CXX"; then 4360 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4369 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379CXX=$ac_cv_prog_CXX 4380if test -n "$CXX"; then 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4382$as_echo "$CXX" >&6; } 4383else 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4385$as_echo "no" >&6; } 4386fi 4387 4388 4389 test -n "$CXX" && break 4390 done 4391fi 4392if test -z "$CXX"; then 4393 ac_ct_CXX=$CXX 4394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4395do 4396 # Extract the first word of "$ac_prog", so it can be a program name with args. 4397set dummy $ac_prog; ac_word=$2 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399$as_echo_n "checking for $ac_word... " >&6; } 4400if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -n "$ac_ct_CXX"; then 4404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4405else 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4413 ac_cv_prog_ac_ct_CXX="$ac_prog" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418 done 4419IFS=$as_save_IFS 4420 4421fi 4422fi 4423ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4424if test -n "$ac_ct_CXX"; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4426$as_echo "$ac_ct_CXX" >&6; } 4427else 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4429$as_echo "no" >&6; } 4430fi 4431 4432 4433 test -n "$ac_ct_CXX" && break 4434done 4435 4436 if test "x$ac_ct_CXX" = x; then 4437 CXX="g++" 4438 else 4439 case $cross_compiling:$ac_tool_warned in 4440yes:) 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4443ac_tool_warned=yes ;; 4444esac 4445 CXX=$ac_ct_CXX 4446 fi 4447fi 4448 4449 fi 4450fi 4451# Provide some information about the compiler. 4452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4453set X $ac_compile 4454ac_compiler=$2 4455for ac_option in --version -v -V -qversion; do 4456 { { ac_try="$ac_compiler $ac_option >&5" 4457case "(($ac_try" in 4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4459 *) ac_try_echo=$ac_try;; 4460esac 4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4462$as_echo "$ac_try_echo"; } >&5 4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4464 ac_status=$? 4465 if test -s conftest.err; then 4466 sed '10a\ 4467... rest of stderr output deleted ... 4468 10q' conftest.err >conftest.er1 4469 cat conftest.er1 >&5 4470 fi 4471 rm -f conftest.er1 conftest.err 4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4473 test $ac_status = 0; } 4474done 4475 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4477$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4478if ${ac_cv_cxx_compiler_gnu+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483 4484int 4485main () 4486{ 4487#ifndef __GNUC__ 4488 choke me 4489#endif 4490 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495if ac_fn_cxx_try_compile "$LINENO"; then : 4496 ac_compiler_gnu=yes 4497else 4498 ac_compiler_gnu=no 4499fi 4500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4505$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4506if test $ac_compiler_gnu = yes; then 4507 GXX=yes 4508else 4509 GXX= 4510fi 4511ac_test_CXXFLAGS=${CXXFLAGS+set} 4512ac_save_CXXFLAGS=$CXXFLAGS 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4514$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4515if ${ac_cv_prog_cxx_g+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4519 ac_cxx_werror_flag=yes 4520 ac_cv_prog_cxx_g=no 4521 CXXFLAGS="-g" 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523/* end confdefs.h. */ 4524 4525int 4526main () 4527{ 4528 4529 ; 4530 return 0; 4531} 4532_ACEOF 4533if ac_fn_cxx_try_compile "$LINENO"; then : 4534 ac_cv_prog_cxx_g=yes 4535else 4536 CXXFLAGS="" 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538/* end confdefs.h. */ 4539 4540int 4541main () 4542{ 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548if ac_fn_cxx_try_compile "$LINENO"; then : 4549 4550else 4551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4552 CXXFLAGS="-g" 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555 4556int 4557main () 4558{ 4559 4560 ; 4561 return 0; 4562} 4563_ACEOF 4564if ac_fn_cxx_try_compile "$LINENO"; then : 4565 ac_cv_prog_cxx_g=yes 4566fi 4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4568fi 4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4570fi 4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4575$as_echo "$ac_cv_prog_cxx_g" >&6; } 4576if test "$ac_test_CXXFLAGS" = set; then 4577 CXXFLAGS=$ac_save_CXXFLAGS 4578elif test $ac_cv_prog_cxx_g = yes; then 4579 if test "$GXX" = yes; then 4580 CXXFLAGS="-g -O2" 4581 else 4582 CXXFLAGS="-g" 4583 fi 4584else 4585 if test "$GXX" = yes; then 4586 CXXFLAGS="-O2" 4587 else 4588 CXXFLAGS= 4589 fi 4590fi 4591ac_ext=c 4592ac_cpp='$CPP $CPPFLAGS' 4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4595ac_compiler_gnu=$ac_cv_c_compiler_gnu 4596 4597depcc="$CXX" am_compiler_list= 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4600$as_echo_n "checking dependency style of $depcc... " >&6; } 4601if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4605 # We make a subdir and do the tests there. Otherwise we can end up 4606 # making bogus files that we don't know about and never remove. For 4607 # instance it was reported that on HP-UX the gcc test will end up 4608 # making a dummy file named 'D' -- because '-MD' means "put the output 4609 # in D". 4610 rm -rf conftest.dir 4611 mkdir conftest.dir 4612 # Copy depcomp to subdir because otherwise we won't find it if we're 4613 # using a relative directory. 4614 cp "$am_depcomp" conftest.dir 4615 cd conftest.dir 4616 # We will build objects and dependencies in a subdirectory because 4617 # it helps to detect inapplicable dependency modes. For instance 4618 # both Tru64's cc and ICC support -MD to output dependencies as a 4619 # side effect of compilation, but ICC will put the dependencies in 4620 # the current directory while Tru64 will put them in the object 4621 # directory. 4622 mkdir sub 4623 4624 am_cv_CXX_dependencies_compiler_type=none 4625 if test "$am_compiler_list" = ""; then 4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4627 fi 4628 am__universal=false 4629 case " $depcc " in #( 4630 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4631 esac 4632 4633 for depmode in $am_compiler_list; do 4634 # Setup a source with many dependencies, because some compilers 4635 # like to wrap large dependency lists on column 80 (with \), and 4636 # we should not choose a depcomp mode which is confused by this. 4637 # 4638 # We need to recreate these files for each test, as the compiler may 4639 # overwrite some of them when testing with obscure command lines. 4640 # This happens at least with the AIX C compiler. 4641 : > sub/conftest.c 4642 for i in 1 2 3 4 5 6; do 4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4645 # Solaris 10 /bin/sh. 4646 echo '/* dummy */' > sub/conftst$i.h 4647 done 4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4649 4650 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4651 # mode. It turns out that the SunPro C++ compiler does not properly 4652 # handle '-M -o', and we need to detect this. Also, some Intel 4653 # versions had trouble with output in subdirs. 4654 am__obj=sub/conftest.${OBJEXT-o} 4655 am__minus_obj="-o $am__obj" 4656 case $depmode in 4657 gcc) 4658 # This depmode causes a compiler race in universal mode. 4659 test "$am__universal" = false || continue 4660 ;; 4661 nosideeffect) 4662 # After this tag, mechanisms are not by side-effect, so they'll 4663 # only be used when explicitly requested. 4664 if test "x$enable_dependency_tracking" = xyes; then 4665 continue 4666 else 4667 break 4668 fi 4669 ;; 4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4671 # This compiler won't grok '-c -o', but also, the minuso test has 4672 # not run yet. These depmodes are late enough in the game, and 4673 # so weak that their functioning should not be impacted. 4674 am__obj=conftest.${OBJEXT-o} 4675 am__minus_obj= 4676 ;; 4677 none) break ;; 4678 esac 4679 if depmode=$depmode \ 4680 source=sub/conftest.c object=$am__obj \ 4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4683 >/dev/null 2>conftest.err && 4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4688 # icc doesn't choke on unknown options, it will just issue warnings 4689 # or remarks (even with -Werror). So we grep stderr for any message 4690 # that says an option was ignored or not supported. 4691 # When given -MP, icc 7.0 and 7.1 complain thusly: 4692 # icc: Command line warning: ignoring option '-M'; no argument required 4693 # The diagnosis changed in icc 8.0: 4694 # icc: Command line remark: option '-MP' not supported 4695 if (grep 'ignoring option' conftest.err || 4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4697 am_cv_CXX_dependencies_compiler_type=$depmode 4698 break 4699 fi 4700 fi 4701 done 4702 4703 cd .. 4704 rm -rf conftest.dir 4705else 4706 am_cv_CXX_dependencies_compiler_type=none 4707fi 4708 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4711$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4712CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4713 4714 if 4715 test "x$enable_dependency_tracking" != xno \ 4716 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4717 am__fastdepCXX_TRUE= 4718 am__fastdepCXX_FALSE='#' 4719else 4720 am__fastdepCXX_TRUE='#' 4721 am__fastdepCXX_FALSE= 4722fi 4723 4724 4725# Check whether --enable-silent-rules was given. 4726if test "${enable_silent_rules+set}" = set; then : 4727 enableval=$enable_silent_rules; 4728fi 4729 4730case $enable_silent_rules in # ((( 4731 yes) AM_DEFAULT_VERBOSITY=0;; 4732 no) AM_DEFAULT_VERBOSITY=1;; 4733 *) AM_DEFAULT_VERBOSITY=0;; 4734esac 4735am_make=${MAKE-make} 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4737$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4738if ${am_cv_make_support_nested_variables+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 if $as_echo 'TRUE=$(BAR$(V)) 4742BAR0=false 4743BAR1=true 4744V=1 4745am__doit: 4746 @$(TRUE) 4747.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4748 am_cv_make_support_nested_variables=yes 4749else 4750 am_cv_make_support_nested_variables=no 4751fi 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4754$as_echo "$am_cv_make_support_nested_variables" >&6; } 4755if test $am_cv_make_support_nested_variables = yes; then 4756 AM_V='$(V)' 4757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4758else 4759 AM_V=$AM_DEFAULT_VERBOSITY 4760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4761fi 4762AM_BACKSLASH='\' 4763 4764 4765if test -n "$ac_tool_prefix"; then 4766 for ac_prog in ar lib "link -lib" 4767 do 4768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4769set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4771$as_echo_n "checking for $ac_word... " >&6; } 4772if ${ac_cv_prog_AR+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 if test -n "$AR"; then 4776 ac_cv_prog_AR="$AR" # Let the user override the test. 4777else 4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_exec_ext in '' $ac_executable_extensions; do 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4785 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789done 4790 done 4791IFS=$as_save_IFS 4792 4793fi 4794fi 4795AR=$ac_cv_prog_AR 4796if test -n "$AR"; then 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4798$as_echo "$AR" >&6; } 4799else 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802fi 4803 4804 4805 test -n "$AR" && break 4806 done 4807fi 4808if test -z "$AR"; then 4809 ac_ct_AR=$AR 4810 for ac_prog in ar lib "link -lib" 4811do 4812 # Extract the first word of "$ac_prog", so it can be a program name with args. 4813set dummy $ac_prog; ac_word=$2 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4815$as_echo_n "checking for $ac_word... " >&6; } 4816if ${ac_cv_prog_ac_ct_AR+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 if test -n "$ac_ct_AR"; then 4820 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4821else 4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823for as_dir in $PATH 4824do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4829 ac_cv_prog_ac_ct_AR="$ac_prog" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833done 4834 done 4835IFS=$as_save_IFS 4836 4837fi 4838fi 4839ac_ct_AR=$ac_cv_prog_ac_ct_AR 4840if test -n "$ac_ct_AR"; then 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4842$as_echo "$ac_ct_AR" >&6; } 4843else 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845$as_echo "no" >&6; } 4846fi 4847 4848 4849 test -n "$ac_ct_AR" && break 4850done 4851 4852 if test "x$ac_ct_AR" = x; then 4853 AR="false" 4854 else 4855 case $cross_compiling:$ac_tool_warned in 4856yes:) 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4859ac_tool_warned=yes ;; 4860esac 4861 AR=$ac_ct_AR 4862 fi 4863fi 4864 4865: ${AR=ar} 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4868$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4869if ${am_cv_ar_interface+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 ac_ext=c 4873ac_cpp='$CPP $CPPFLAGS' 4874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4876ac_compiler_gnu=$ac_cv_c_compiler_gnu 4877 4878 am_cv_ar_interface=ar 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881int some_variable = 0; 4882_ACEOF 4883if ac_fn_c_try_compile "$LINENO"; then : 4884 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4886 (eval $am_ar_try) 2>&5 4887 ac_status=$? 4888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4889 test $ac_status = 0; } 4890 if test "$ac_status" -eq 0; then 4891 am_cv_ar_interface=ar 4892 else 4893 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4895 (eval $am_ar_try) 2>&5 4896 ac_status=$? 4897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4898 test $ac_status = 0; } 4899 if test "$ac_status" -eq 0; then 4900 am_cv_ar_interface=lib 4901 else 4902 am_cv_ar_interface=unknown 4903 fi 4904 fi 4905 rm -f conftest.lib libconftest.a 4906 4907fi 4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4909 ac_ext=c 4910ac_cpp='$CPP $CPPFLAGS' 4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4913ac_compiler_gnu=$ac_cv_c_compiler_gnu 4914 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4917$as_echo "$am_cv_ar_interface" >&6; } 4918 4919case $am_cv_ar_interface in 4920ar) 4921 ;; 4922lib) 4923 # Microsoft lib, so override with the ar-lib wrapper script. 4924 # FIXME: It is wrong to rewrite AR. 4925 # But if we don't then we get into trouble of one sort or another. 4926 # A longer-term fix would be to have automake use am__AR in this case, 4927 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4928 # similar. 4929 AR="$am_aux_dir/ar-lib $AR" 4930 ;; 4931unknown) 4932 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4933 ;; 4934esac 4935 4936# Check whether --enable-static was given. 4937if test "${enable_static+set}" = set; then : 4938 enableval=$enable_static; p=${PACKAGE-default} 4939 case $enableval in 4940 yes) enable_static=yes ;; 4941 no) enable_static=no ;; 4942 *) 4943 enable_static=no 4944 # Look at the argument we got. We use all the common list separators. 4945 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4946 for pkg in $enableval; do 4947 IFS=$lt_save_ifs 4948 if test "X$pkg" = "X$p"; then 4949 enable_static=yes 4950 fi 4951 done 4952 IFS=$lt_save_ifs 4953 ;; 4954 esac 4955else 4956 enable_static=no 4957fi 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967enable_dlopen=yes 4968 4969 4970 4971case `pwd` in 4972 *\ * | *\ *) 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4974$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4975esac 4976 4977 4978 4979macro_version='2.4.6' 4980macro_revision='2.4.6' 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994ltmain=$ac_aux_dir/ltmain.sh 4995 4996# Make sure we can run config.sub. 4997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4998 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4999 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5001$as_echo_n "checking build system type... " >&6; } 5002if ${ac_cv_build+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 ac_build_alias=$build_alias 5006test "x$ac_build_alias" = x && 5007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5008test "x$ac_build_alias" = x && 5009 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5012 5013fi 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5015$as_echo "$ac_cv_build" >&6; } 5016case $ac_cv_build in 5017*-*-*) ;; 5018*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5019esac 5020build=$ac_cv_build 5021ac_save_IFS=$IFS; IFS='-' 5022set x $ac_cv_build 5023shift 5024build_cpu=$1 5025build_vendor=$2 5026shift; shift 5027# Remember, the first character of IFS is used to create $*, 5028# except with old shells: 5029build_os=$* 5030IFS=$ac_save_IFS 5031case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5032 5033 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5035$as_echo_n "checking host system type... " >&6; } 5036if ${ac_cv_host+:} false; then : 5037 $as_echo_n "(cached) " >&6 5038else 5039 if test "x$host_alias" = x; then 5040 ac_cv_host=$ac_cv_build 5041else 5042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5043 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5044fi 5045 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5048$as_echo "$ac_cv_host" >&6; } 5049case $ac_cv_host in 5050*-*-*) ;; 5051*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5052esac 5053host=$ac_cv_host 5054ac_save_IFS=$IFS; IFS='-' 5055set x $ac_cv_host 5056shift 5057host_cpu=$1 5058host_vendor=$2 5059shift; shift 5060# Remember, the first character of IFS is used to create $*, 5061# except with old shells: 5062host_os=$* 5063IFS=$ac_save_IFS 5064case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5065 5066 5067# Backslashify metacharacters that are still active within 5068# double-quoted strings. 5069sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5070 5071# Same as above, but do not quote variable references. 5072double_quote_subst='s/\(["`\\]\)/\\\1/g' 5073 5074# Sed substitution to delay expansion of an escaped shell variable in a 5075# double_quote_subst'ed string. 5076delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5077 5078# Sed substitution to delay expansion of an escaped single quote. 5079delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5080 5081# Sed substitution to avoid accidental globbing in evaled expressions 5082no_glob_subst='s/\*/\\\*/g' 5083 5084ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5085ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5086ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5087 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5089$as_echo_n "checking how to print strings... " >&6; } 5090# Test print first, because it will be a builtin if present. 5091if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5092 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5093 ECHO='print -r --' 5094elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5095 ECHO='printf %s\n' 5096else 5097 # Use this function as a fallback that always works. 5098 func_fallback_echo () 5099 { 5100 eval 'cat <<_LTECHO_EOF 5101$1 5102_LTECHO_EOF' 5103 } 5104 ECHO='func_fallback_echo' 5105fi 5106 5107# func_echo_all arg... 5108# Invoke $ECHO with all args, space-separated. 5109func_echo_all () 5110{ 5111 $ECHO "" 5112} 5113 5114case $ECHO in 5115 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5116$as_echo "printf" >&6; } ;; 5117 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5118$as_echo "print -r" >&6; } ;; 5119 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5120$as_echo "cat" >&6; } ;; 5121esac 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5137$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5138if ${ac_cv_path_SED+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140else 5141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5142 for ac_i in 1 2 3 4 5 6 7; do 5143 ac_script="$ac_script$as_nl$ac_script" 5144 done 5145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5146 { ac_script=; unset ac_script;} 5147 if test -z "$SED"; then 5148 ac_path_SED_found=false 5149 # Loop through the user's path and test for each of PROGNAME-LIST 5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151for as_dir in $PATH 5152do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_prog in sed gsed; do 5156 for ac_exec_ext in '' $ac_executable_extensions; do 5157 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5158 as_fn_executable_p "$ac_path_SED" || continue 5159# Check for GNU ac_path_SED and select it if it is found. 5160 # Check for GNU $ac_path_SED 5161case `"$ac_path_SED" --version 2>&1` in 5162*GNU*) 5163 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5164*) 5165 ac_count=0 5166 $as_echo_n 0123456789 >"conftest.in" 5167 while : 5168 do 5169 cat "conftest.in" "conftest.in" >"conftest.tmp" 5170 mv "conftest.tmp" "conftest.in" 5171 cp "conftest.in" "conftest.nl" 5172 $as_echo '' >> "conftest.nl" 5173 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5175 as_fn_arith $ac_count + 1 && ac_count=$as_val 5176 if test $ac_count -gt ${ac_path_SED_max-0}; then 5177 # Best one so far, save it but keep looking for a better one 5178 ac_cv_path_SED="$ac_path_SED" 5179 ac_path_SED_max=$ac_count 5180 fi 5181 # 10*(2^10) chars as input seems more than enough 5182 test $ac_count -gt 10 && break 5183 done 5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5185esac 5186 5187 $ac_path_SED_found && break 3 5188 done 5189 done 5190 done 5191IFS=$as_save_IFS 5192 if test -z "$ac_cv_path_SED"; then 5193 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5194 fi 5195else 5196 ac_cv_path_SED=$SED 5197fi 5198 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5201$as_echo "$ac_cv_path_SED" >&6; } 5202 SED="$ac_cv_path_SED" 5203 rm -f conftest.sed 5204 5205test -z "$SED" && SED=sed 5206Xsed="$SED -e 1s/^X//" 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5219$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5220if ${ac_cv_path_GREP+:} false; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 if test -z "$GREP"; then 5224 ac_path_GREP_found=false 5225 # Loop through the user's path and test for each of PROGNAME-LIST 5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5228do 5229 IFS=$as_save_IFS 5230 test -z "$as_dir" && as_dir=. 5231 for ac_prog in grep ggrep; do 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5234 as_fn_executable_p "$ac_path_GREP" || continue 5235# Check for GNU ac_path_GREP and select it if it is found. 5236 # Check for GNU $ac_path_GREP 5237case `"$ac_path_GREP" --version 2>&1` in 5238*GNU*) 5239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5240*) 5241 ac_count=0 5242 $as_echo_n 0123456789 >"conftest.in" 5243 while : 5244 do 5245 cat "conftest.in" "conftest.in" >"conftest.tmp" 5246 mv "conftest.tmp" "conftest.in" 5247 cp "conftest.in" "conftest.nl" 5248 $as_echo 'GREP' >> "conftest.nl" 5249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5251 as_fn_arith $ac_count + 1 && ac_count=$as_val 5252 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5253 # Best one so far, save it but keep looking for a better one 5254 ac_cv_path_GREP="$ac_path_GREP" 5255 ac_path_GREP_max=$ac_count 5256 fi 5257 # 10*(2^10) chars as input seems more than enough 5258 test $ac_count -gt 10 && break 5259 done 5260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5261esac 5262 5263 $ac_path_GREP_found && break 3 5264 done 5265 done 5266 done 5267IFS=$as_save_IFS 5268 if test -z "$ac_cv_path_GREP"; then 5269 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5270 fi 5271else 5272 ac_cv_path_GREP=$GREP 5273fi 5274 5275fi 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5277$as_echo "$ac_cv_path_GREP" >&6; } 5278 GREP="$ac_cv_path_GREP" 5279 5280 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5282$as_echo_n "checking for egrep... " >&6; } 5283if ${ac_cv_path_EGREP+:} false; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5287 then ac_cv_path_EGREP="$GREP -E" 5288 else 5289 if test -z "$EGREP"; then 5290 ac_path_EGREP_found=false 5291 # Loop through the user's path and test for each of PROGNAME-LIST 5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_prog in egrep; do 5298 for ac_exec_ext in '' $ac_executable_extensions; do 5299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5300 as_fn_executable_p "$ac_path_EGREP" || continue 5301# Check for GNU ac_path_EGREP and select it if it is found. 5302 # Check for GNU $ac_path_EGREP 5303case `"$ac_path_EGREP" --version 2>&1` in 5304*GNU*) 5305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5306*) 5307 ac_count=0 5308 $as_echo_n 0123456789 >"conftest.in" 5309 while : 5310 do 5311 cat "conftest.in" "conftest.in" >"conftest.tmp" 5312 mv "conftest.tmp" "conftest.in" 5313 cp "conftest.in" "conftest.nl" 5314 $as_echo 'EGREP' >> "conftest.nl" 5315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5317 as_fn_arith $ac_count + 1 && ac_count=$as_val 5318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5319 # Best one so far, save it but keep looking for a better one 5320 ac_cv_path_EGREP="$ac_path_EGREP" 5321 ac_path_EGREP_max=$ac_count 5322 fi 5323 # 10*(2^10) chars as input seems more than enough 5324 test $ac_count -gt 10 && break 5325 done 5326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5327esac 5328 5329 $ac_path_EGREP_found && break 3 5330 done 5331 done 5332 done 5333IFS=$as_save_IFS 5334 if test -z "$ac_cv_path_EGREP"; then 5335 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5336 fi 5337else 5338 ac_cv_path_EGREP=$EGREP 5339fi 5340 5341 fi 5342fi 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5344$as_echo "$ac_cv_path_EGREP" >&6; } 5345 EGREP="$ac_cv_path_EGREP" 5346 5347 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5349$as_echo_n "checking for fgrep... " >&6; } 5350if ${ac_cv_path_FGREP+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5354 then ac_cv_path_FGREP="$GREP -F" 5355 else 5356 if test -z "$FGREP"; then 5357 ac_path_FGREP_found=false 5358 # Loop through the user's path and test for each of PROGNAME-LIST 5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5361do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_prog in fgrep; do 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5367 as_fn_executable_p "$ac_path_FGREP" || continue 5368# Check for GNU ac_path_FGREP and select it if it is found. 5369 # Check for GNU $ac_path_FGREP 5370case `"$ac_path_FGREP" --version 2>&1` in 5371*GNU*) 5372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5373*) 5374 ac_count=0 5375 $as_echo_n 0123456789 >"conftest.in" 5376 while : 5377 do 5378 cat "conftest.in" "conftest.in" >"conftest.tmp" 5379 mv "conftest.tmp" "conftest.in" 5380 cp "conftest.in" "conftest.nl" 5381 $as_echo 'FGREP' >> "conftest.nl" 5382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5384 as_fn_arith $ac_count + 1 && ac_count=$as_val 5385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5386 # Best one so far, save it but keep looking for a better one 5387 ac_cv_path_FGREP="$ac_path_FGREP" 5388 ac_path_FGREP_max=$ac_count 5389 fi 5390 # 10*(2^10) chars as input seems more than enough 5391 test $ac_count -gt 10 && break 5392 done 5393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5394esac 5395 5396 $ac_path_FGREP_found && break 3 5397 done 5398 done 5399 done 5400IFS=$as_save_IFS 5401 if test -z "$ac_cv_path_FGREP"; then 5402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5403 fi 5404else 5405 ac_cv_path_FGREP=$FGREP 5406fi 5407 5408 fi 5409fi 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5411$as_echo "$ac_cv_path_FGREP" >&6; } 5412 FGREP="$ac_cv_path_FGREP" 5413 5414 5415test -z "$GREP" && GREP=grep 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435# Check whether --with-gnu-ld was given. 5436if test "${with_gnu_ld+set}" = set; then : 5437 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5438else 5439 with_gnu_ld=no 5440fi 5441 5442ac_prog=ld 5443if test yes = "$GCC"; then 5444 # Check if gcc -print-prog-name=ld gives a path. 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5446$as_echo_n "checking for ld used by $CC... " >&6; } 5447 case $host in 5448 *-*-mingw*) 5449 # gcc leaves a trailing carriage return, which upsets mingw 5450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5451 *) 5452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5453 esac 5454 case $ac_prog in 5455 # Accept absolute paths. 5456 [\\/]* | ?:[\\/]*) 5457 re_direlt='/[^/][^/]*/\.\./' 5458 # Canonicalize the pathname of ld 5459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5462 done 5463 test -z "$LD" && LD=$ac_prog 5464 ;; 5465 "") 5466 # If it fails, then pretend we aren't using GCC. 5467 ac_prog=ld 5468 ;; 5469 *) 5470 # If it is relative, then search for the first ld in PATH. 5471 with_gnu_ld=unknown 5472 ;; 5473 esac 5474elif test yes = "$with_gnu_ld"; then 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5476$as_echo_n "checking for GNU ld... " >&6; } 5477else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5479$as_echo_n "checking for non-GNU ld... " >&6; } 5480fi 5481if ${lt_cv_path_LD+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 if test -z "$LD"; then 5485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5486 for ac_dir in $PATH; do 5487 IFS=$lt_save_ifs 5488 test -z "$ac_dir" && ac_dir=. 5489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5490 lt_cv_path_LD=$ac_dir/$ac_prog 5491 # Check to see if the program is GNU ld. I'd rather use --version, 5492 # but apparently some variants of GNU ld only accept -v. 5493 # Break only if it was the GNU/non-GNU ld that we prefer. 5494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5495 *GNU* | *'with BFD'*) 5496 test no != "$with_gnu_ld" && break 5497 ;; 5498 *) 5499 test yes != "$with_gnu_ld" && break 5500 ;; 5501 esac 5502 fi 5503 done 5504 IFS=$lt_save_ifs 5505else 5506 lt_cv_path_LD=$LD # Let the user override the test with a path. 5507fi 5508fi 5509 5510LD=$lt_cv_path_LD 5511if test -n "$LD"; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5513$as_echo "$LD" >&6; } 5514else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517fi 5518test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5520$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5521if ${lt_cv_prog_gnu_ld+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5525case `$LD -v 2>&1 </dev/null` in 5526*GNU* | *'with BFD'*) 5527 lt_cv_prog_gnu_ld=yes 5528 ;; 5529*) 5530 lt_cv_prog_gnu_ld=no 5531 ;; 5532esac 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5535$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5536with_gnu_ld=$lt_cv_prog_gnu_ld 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5547$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5548if ${lt_cv_path_NM+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 if test -n "$NM"; then 5552 # Let the user override the test. 5553 lt_cv_path_NM=$NM 5554else 5555 lt_nm_to_check=${ac_tool_prefix}nm 5556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5557 lt_nm_to_check="$lt_nm_to_check nm" 5558 fi 5559 for lt_tmp_nm in $lt_nm_to_check; do 5560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5562 IFS=$lt_save_ifs 5563 test -z "$ac_dir" && ac_dir=. 5564 tmp_nm=$ac_dir/$lt_tmp_nm 5565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5566 # Check to see if the nm accepts a BSD-compat flag. 5567 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5568 # nm: unknown option "B" ignored 5569 # Tru64's nm complains that /dev/null is an invalid object file 5570 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5571 case $build_os in 5572 mingw*) lt_bad_file=conftest.nm/nofile ;; 5573 *) lt_bad_file=/dev/null ;; 5574 esac 5575 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5576 *$lt_bad_file* | *'Invalid file or object type'*) 5577 lt_cv_path_NM="$tmp_nm -B" 5578 break 2 5579 ;; 5580 *) 5581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5582 */dev/null*) 5583 lt_cv_path_NM="$tmp_nm -p" 5584 break 2 5585 ;; 5586 *) 5587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5588 continue # so that we can try to find one that supports BSD flags 5589 ;; 5590 esac 5591 ;; 5592 esac 5593 fi 5594 done 5595 IFS=$lt_save_ifs 5596 done 5597 : ${lt_cv_path_NM=no} 5598fi 5599fi 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5601$as_echo "$lt_cv_path_NM" >&6; } 5602if test no != "$lt_cv_path_NM"; then 5603 NM=$lt_cv_path_NM 5604else 5605 # Didn't find any BSD compatible name lister, look for dumpbin. 5606 if test -n "$DUMPBIN"; then : 5607 # Let the user override the test. 5608 else 5609 if test -n "$ac_tool_prefix"; then 5610 for ac_prog in dumpbin "link -dump" 5611 do 5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5613set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615$as_echo_n "checking for $ac_word... " >&6; } 5616if ${ac_cv_prog_DUMPBIN+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$DUMPBIN"; then 5620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633done 5634 done 5635IFS=$as_save_IFS 5636 5637fi 5638fi 5639DUMPBIN=$ac_cv_prog_DUMPBIN 5640if test -n "$DUMPBIN"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5642$as_echo "$DUMPBIN" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647 5648 5649 test -n "$DUMPBIN" && break 5650 done 5651fi 5652if test -z "$DUMPBIN"; then 5653 ac_ct_DUMPBIN=$DUMPBIN 5654 for ac_prog in dumpbin "link -dump" 5655do 5656 # Extract the first word of "$ac_prog", so it can be a program name with args. 5657set dummy $ac_prog; ac_word=$2 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5659$as_echo_n "checking for $ac_word... " >&6; } 5660if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 if test -n "$ac_ct_DUMPBIN"; then 5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5665else 5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667for as_dir in $PATH 5668do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677done 5678 done 5679IFS=$as_save_IFS 5680 5681fi 5682fi 5683ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5684if test -n "$ac_ct_DUMPBIN"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5686$as_echo "$ac_ct_DUMPBIN" >&6; } 5687else 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5689$as_echo "no" >&6; } 5690fi 5691 5692 5693 test -n "$ac_ct_DUMPBIN" && break 5694done 5695 5696 if test "x$ac_ct_DUMPBIN" = x; then 5697 DUMPBIN=":" 5698 else 5699 case $cross_compiling:$ac_tool_warned in 5700yes:) 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5703ac_tool_warned=yes ;; 5704esac 5705 DUMPBIN=$ac_ct_DUMPBIN 5706 fi 5707fi 5708 5709 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5710 *COFF*) 5711 DUMPBIN="$DUMPBIN -symbols -headers" 5712 ;; 5713 *) 5714 DUMPBIN=: 5715 ;; 5716 esac 5717 fi 5718 5719 if test : != "$DUMPBIN"; then 5720 NM=$DUMPBIN 5721 fi 5722fi 5723test -z "$NM" && NM=nm 5724 5725 5726 5727 5728 5729 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5731$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5732if ${lt_cv_nm_interface+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 lt_cv_nm_interface="BSD nm" 5736 echo "int some_variable = 0;" > conftest.$ac_ext 5737 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5738 (eval "$ac_compile" 2>conftest.err) 5739 cat conftest.err >&5 5740 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5741 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5742 cat conftest.err >&5 5743 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5744 cat conftest.out >&5 5745 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5746 lt_cv_nm_interface="MS dumpbin" 5747 fi 5748 rm -f conftest* 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5751$as_echo "$lt_cv_nm_interface" >&6; } 5752 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5754$as_echo_n "checking whether ln -s works... " >&6; } 5755LN_S=$as_ln_s 5756if test "$LN_S" = "ln -s"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5758$as_echo "yes" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5761$as_echo "no, using $LN_S" >&6; } 5762fi 5763 5764# find the maximum length of command line arguments 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5766$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5767if ${lt_cv_sys_max_cmd_len+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 i=0 5771 teststring=ABCD 5772 5773 case $build_os in 5774 msdosdjgpp*) 5775 # On DJGPP, this test can blow up pretty badly due to problems in libc 5776 # (any single argument exceeding 2000 bytes causes a buffer overrun 5777 # during glob expansion). Even if it were fixed, the result of this 5778 # check would be larger than it should be. 5779 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5780 ;; 5781 5782 gnu*) 5783 # Under GNU Hurd, this test is not required because there is 5784 # no limit to the length of command line arguments. 5785 # Libtool will interpret -1 as no limit whatsoever 5786 lt_cv_sys_max_cmd_len=-1; 5787 ;; 5788 5789 cygwin* | mingw* | cegcc*) 5790 # On Win9x/ME, this test blows up -- it succeeds, but takes 5791 # about 5 minutes as the teststring grows exponentially. 5792 # Worse, since 9x/ME are not pre-emptively multitasking, 5793 # you end up with a "frozen" computer, even though with patience 5794 # the test eventually succeeds (with a max line length of 256k). 5795 # Instead, let's just punt: use the minimum linelength reported by 5796 # all of the supported platforms: 8192 (on NT/2K/XP). 5797 lt_cv_sys_max_cmd_len=8192; 5798 ;; 5799 5800 mint*) 5801 # On MiNT this can take a long time and run out of memory. 5802 lt_cv_sys_max_cmd_len=8192; 5803 ;; 5804 5805 amigaos*) 5806 # On AmigaOS with pdksh, this test takes hours, literally. 5807 # So we just punt and use a minimum line length of 8192. 5808 lt_cv_sys_max_cmd_len=8192; 5809 ;; 5810 5811 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5812 # This has been around since 386BSD, at least. Likely further. 5813 if test -x /sbin/sysctl; then 5814 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5815 elif test -x /usr/sbin/sysctl; then 5816 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5817 else 5818 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5819 fi 5820 # And add a safety zone 5821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5823 ;; 5824 5825 interix*) 5826 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5827 lt_cv_sys_max_cmd_len=196608 5828 ;; 5829 5830 os2*) 5831 # The test takes a long time on OS/2. 5832 lt_cv_sys_max_cmd_len=8192 5833 ;; 5834 5835 osf*) 5836 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5837 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5838 # nice to cause kernel panics so lets avoid the loop below. 5839 # First set a reasonable default. 5840 lt_cv_sys_max_cmd_len=16384 5841 # 5842 if test -x /sbin/sysconfig; then 5843 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5844 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5845 esac 5846 fi 5847 ;; 5848 sco3.2v5*) 5849 lt_cv_sys_max_cmd_len=102400 5850 ;; 5851 sysv5* | sco5v6* | sysv4.2uw2*) 5852 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5853 if test -n "$kargmax"; then 5854 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5855 else 5856 lt_cv_sys_max_cmd_len=32768 5857 fi 5858 ;; 5859 *) 5860 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5861 if test -n "$lt_cv_sys_max_cmd_len" && \ 5862 test undefined != "$lt_cv_sys_max_cmd_len"; then 5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5865 else 5866 # Make teststring a little bigger before we do anything with it. 5867 # a 1K string should be a reasonable start. 5868 for i in 1 2 3 4 5 6 7 8; do 5869 teststring=$teststring$teststring 5870 done 5871 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5872 # If test is not a shell built-in, we'll probably end up computing a 5873 # maximum length that is only half of the actual maximum length, but 5874 # we can't tell. 5875 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5876 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5877 test 17 != "$i" # 1/2 MB should be enough 5878 do 5879 i=`expr $i + 1` 5880 teststring=$teststring$teststring 5881 done 5882 # Only check the string length outside the loop. 5883 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5884 teststring= 5885 # Add a significant safety factor because C++ compilers can tack on 5886 # massive amounts of additional arguments before passing them to the 5887 # linker. It appears as though 1/2 is a usable value. 5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5889 fi 5890 ;; 5891 esac 5892 5893fi 5894 5895if test -n "$lt_cv_sys_max_cmd_len"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5897$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5898else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5900$as_echo "none" >&6; } 5901fi 5902max_cmd_len=$lt_cv_sys_max_cmd_len 5903 5904 5905 5906 5907 5908 5909: ${CP="cp -f"} 5910: ${MV="mv -f"} 5911: ${RM="rm -f"} 5912 5913if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5914 lt_unset=unset 5915else 5916 lt_unset=false 5917fi 5918 5919 5920 5921 5922 5923# test EBCDIC or ASCII 5924case `echo X|tr X '\101'` in 5925 A) # ASCII based system 5926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5927 lt_SP2NL='tr \040 \012' 5928 lt_NL2SP='tr \015\012 \040\040' 5929 ;; 5930 *) # EBCDIC based system 5931 lt_SP2NL='tr \100 \n' 5932 lt_NL2SP='tr \r\n \100\100' 5933 ;; 5934esac 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5945$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5946if ${lt_cv_to_host_file_cmd+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 case $host in 5950 *-*-mingw* ) 5951 case $build in 5952 *-*-mingw* ) # actually msys 5953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5954 ;; 5955 *-*-cygwin* ) 5956 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5957 ;; 5958 * ) # otherwise, assume *nix 5959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5960 ;; 5961 esac 5962 ;; 5963 *-*-cygwin* ) 5964 case $build in 5965 *-*-mingw* ) # actually msys 5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5967 ;; 5968 *-*-cygwin* ) 5969 lt_cv_to_host_file_cmd=func_convert_file_noop 5970 ;; 5971 * ) # otherwise, assume *nix 5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5973 ;; 5974 esac 5975 ;; 5976 * ) # unhandled hosts (and "normal" native builds) 5977 lt_cv_to_host_file_cmd=func_convert_file_noop 5978 ;; 5979esac 5980 5981fi 5982 5983to_host_file_cmd=$lt_cv_to_host_file_cmd 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5985$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5986 5987 5988 5989 5990 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5992$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5993if ${lt_cv_to_tool_file_cmd+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 #assume ordinary cross tools, or native build. 5997lt_cv_to_tool_file_cmd=func_convert_file_noop 5998case $host in 5999 *-*-mingw* ) 6000 case $build in 6001 *-*-mingw* ) # actually msys 6002 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6003 ;; 6004 esac 6005 ;; 6006esac 6007 6008fi 6009 6010to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6012$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6013 6014 6015 6016 6017 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6019$as_echo_n "checking for $LD option to reload object files... " >&6; } 6020if ${lt_cv_ld_reload_flag+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 lt_cv_ld_reload_flag='-r' 6024fi 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6026$as_echo "$lt_cv_ld_reload_flag" >&6; } 6027reload_flag=$lt_cv_ld_reload_flag 6028case $reload_flag in 6029"" | " "*) ;; 6030*) reload_flag=" $reload_flag" ;; 6031esac 6032reload_cmds='$LD$reload_flag -o $output$reload_objs' 6033case $host_os in 6034 cygwin* | mingw* | pw32* | cegcc*) 6035 if test yes != "$GCC"; then 6036 reload_cmds=false 6037 fi 6038 ;; 6039 darwin*) 6040 if test yes = "$GCC"; then 6041 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6042 else 6043 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6044 fi 6045 ;; 6046esac 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056if test -n "$ac_tool_prefix"; then 6057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6058set dummy ${ac_tool_prefix}objdump; ac_word=$2 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6060$as_echo_n "checking for $ac_word... " >&6; } 6061if ${ac_cv_prog_OBJDUMP+:} false; then : 6062 $as_echo_n "(cached) " >&6 6063else 6064 if test -n "$OBJDUMP"; then 6065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6066else 6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068for as_dir in $PATH 6069do 6070 IFS=$as_save_IFS 6071 test -z "$as_dir" && as_dir=. 6072 for ac_exec_ext in '' $ac_executable_extensions; do 6073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6076 break 2 6077 fi 6078done 6079 done 6080IFS=$as_save_IFS 6081 6082fi 6083fi 6084OBJDUMP=$ac_cv_prog_OBJDUMP 6085if test -n "$OBJDUMP"; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6087$as_echo "$OBJDUMP" >&6; } 6088else 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6090$as_echo "no" >&6; } 6091fi 6092 6093 6094fi 6095if test -z "$ac_cv_prog_OBJDUMP"; then 6096 ac_ct_OBJDUMP=$OBJDUMP 6097 # Extract the first word of "objdump", so it can be a program name with args. 6098set dummy objdump; ac_word=$2 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6100$as_echo_n "checking for $ac_word... " >&6; } 6101if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6102 $as_echo_n "(cached) " >&6 6103else 6104 if test -n "$ac_ct_OBJDUMP"; then 6105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6106else 6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6108for as_dir in $PATH 6109do 6110 IFS=$as_save_IFS 6111 test -z "$as_dir" && as_dir=. 6112 for ac_exec_ext in '' $ac_executable_extensions; do 6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6114 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6116 break 2 6117 fi 6118done 6119 done 6120IFS=$as_save_IFS 6121 6122fi 6123fi 6124ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6125if test -n "$ac_ct_OBJDUMP"; then 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6127$as_echo "$ac_ct_OBJDUMP" >&6; } 6128else 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6130$as_echo "no" >&6; } 6131fi 6132 6133 if test "x$ac_ct_OBJDUMP" = x; then 6134 OBJDUMP="false" 6135 else 6136 case $cross_compiling:$ac_tool_warned in 6137yes:) 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6140ac_tool_warned=yes ;; 6141esac 6142 OBJDUMP=$ac_ct_OBJDUMP 6143 fi 6144else 6145 OBJDUMP="$ac_cv_prog_OBJDUMP" 6146fi 6147 6148test -z "$OBJDUMP" && OBJDUMP=objdump 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6159$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6160if ${lt_cv_deplibs_check_method+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 lt_cv_file_magic_cmd='$MAGIC_CMD' 6164lt_cv_file_magic_test_file= 6165lt_cv_deplibs_check_method='unknown' 6166# Need to set the preceding variable on all platforms that support 6167# interlibrary dependencies. 6168# 'none' -- dependencies not supported. 6169# 'unknown' -- same as none, but documents that we really don't know. 6170# 'pass_all' -- all dependencies passed with no checks. 6171# 'test_compile' -- check by making test program. 6172# 'file_magic [[regex]]' -- check by looking for files in library path 6173# that responds to the $file_magic_cmd with a given extended regex. 6174# If you have 'file' or equivalent on your system and you're not sure 6175# whether 'pass_all' will *always* work, you probably want this one. 6176 6177case $host_os in 6178aix[4-9]*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182beos*) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 6186bsdi[45]*) 6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6188 lt_cv_file_magic_cmd='/usr/bin/file -L' 6189 lt_cv_file_magic_test_file=/shlib/libc.so 6190 ;; 6191 6192cygwin*) 6193 # func_win32_libid is a shell function defined in ltmain.sh 6194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6195 lt_cv_file_magic_cmd='func_win32_libid' 6196 ;; 6197 6198mingw* | pw32*) 6199 # Base MSYS/MinGW do not provide the 'file' command needed by 6200 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6201 # unless we find 'file', for example because we are cross-compiling. 6202 if ( file / ) >/dev/null 2>&1; then 6203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6204 lt_cv_file_magic_cmd='func_win32_libid' 6205 else 6206 # Keep this pattern in sync with the one in func_win32_libid. 6207 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6208 lt_cv_file_magic_cmd='$OBJDUMP -f' 6209 fi 6210 ;; 6211 6212cegcc*) 6213 # use the weaker test based on 'objdump'. See mingw*. 6214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6215 lt_cv_file_magic_cmd='$OBJDUMP -f' 6216 ;; 6217 6218darwin* | rhapsody*) 6219 lt_cv_deplibs_check_method=pass_all 6220 ;; 6221 6222freebsd* | dragonfly*) 6223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6224 case $host_cpu in 6225 i*86 ) 6226 # Not sure whether the presence of OpenBSD here was a mistake. 6227 # Let's accept both of them until this is cleared up. 6228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6229 lt_cv_file_magic_cmd=/usr/bin/file 6230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6231 ;; 6232 esac 6233 else 6234 lt_cv_deplibs_check_method=pass_all 6235 fi 6236 ;; 6237 6238haiku*) 6239 lt_cv_deplibs_check_method=pass_all 6240 ;; 6241 6242hpux10.20* | hpux11*) 6243 lt_cv_file_magic_cmd=/usr/bin/file 6244 case $host_cpu in 6245 ia64*) 6246 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6247 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6248 ;; 6249 hppa*64*) 6250 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]' 6251 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6252 ;; 6253 *) 6254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6255 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6256 ;; 6257 esac 6258 ;; 6259 6260interix[3-9]*) 6261 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6263 ;; 6264 6265irix5* | irix6* | nonstopux*) 6266 case $LD in 6267 *-32|*"-32 ") libmagic=32-bit;; 6268 *-n32|*"-n32 ") libmagic=N32;; 6269 *-64|*"-64 ") libmagic=64-bit;; 6270 *) libmagic=never-match;; 6271 esac 6272 lt_cv_deplibs_check_method=pass_all 6273 ;; 6274 6275# This must be glibc/ELF. 6276linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280netbsd*) 6281 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6283 else 6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6285 fi 6286 ;; 6287 6288newos6*) 6289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6290 lt_cv_file_magic_cmd=/usr/bin/file 6291 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6292 ;; 6293 6294*nto* | *qnx*) 6295 lt_cv_deplibs_check_method=pass_all 6296 ;; 6297 6298openbsd* | bitrig*) 6299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6301 else 6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6303 fi 6304 ;; 6305 6306osf3* | osf4* | osf5*) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 6310rdos*) 6311 lt_cv_deplibs_check_method=pass_all 6312 ;; 6313 6314solaris*) 6315 lt_cv_deplibs_check_method=pass_all 6316 ;; 6317 6318sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 6322sysv4 | sysv4.3*) 6323 case $host_vendor in 6324 motorola) 6325 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]' 6326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6327 ;; 6328 ncr) 6329 lt_cv_deplibs_check_method=pass_all 6330 ;; 6331 sequent) 6332 lt_cv_file_magic_cmd='/bin/file' 6333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6334 ;; 6335 sni) 6336 lt_cv_file_magic_cmd='/bin/file' 6337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6338 lt_cv_file_magic_test_file=/lib/libc.so 6339 ;; 6340 siemens) 6341 lt_cv_deplibs_check_method=pass_all 6342 ;; 6343 pc) 6344 lt_cv_deplibs_check_method=pass_all 6345 ;; 6346 esac 6347 ;; 6348 6349tpf*) 6350 lt_cv_deplibs_check_method=pass_all 6351 ;; 6352os2*) 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355esac 6356 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6359$as_echo "$lt_cv_deplibs_check_method" >&6; } 6360 6361file_magic_glob= 6362want_nocaseglob=no 6363if test "$build" = "$host"; then 6364 case $host_os in 6365 mingw* | pw32*) 6366 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6367 want_nocaseglob=yes 6368 else 6369 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6370 fi 6371 ;; 6372 esac 6373fi 6374 6375file_magic_cmd=$lt_cv_file_magic_cmd 6376deplibs_check_method=$lt_cv_deplibs_check_method 6377test -z "$deplibs_check_method" && deplibs_check_method=unknown 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400if test -n "$ac_tool_prefix"; then 6401 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6402set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404$as_echo_n "checking for $ac_word... " >&6; } 6405if ${ac_cv_prog_DLLTOOL+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 if test -n "$DLLTOOL"; then 6409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6410else 6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6412for as_dir in $PATH 6413do 6414 IFS=$as_save_IFS 6415 test -z "$as_dir" && as_dir=. 6416 for ac_exec_ext in '' $ac_executable_extensions; do 6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6420 break 2 6421 fi 6422done 6423 done 6424IFS=$as_save_IFS 6425 6426fi 6427fi 6428DLLTOOL=$ac_cv_prog_DLLTOOL 6429if test -n "$DLLTOOL"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6431$as_echo "$DLLTOOL" >&6; } 6432else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435fi 6436 6437 6438fi 6439if test -z "$ac_cv_prog_DLLTOOL"; then 6440 ac_ct_DLLTOOL=$DLLTOOL 6441 # Extract the first word of "dlltool", so it can be a program name with args. 6442set dummy dlltool; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$ac_ct_DLLTOOL"; then 6449 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6458 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6469if test -n "$ac_ct_DLLTOOL"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6471$as_echo "$ac_ct_DLLTOOL" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 if test "x$ac_ct_DLLTOOL" = x; then 6478 DLLTOOL="false" 6479 else 6480 case $cross_compiling:$ac_tool_warned in 6481yes:) 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6484ac_tool_warned=yes ;; 6485esac 6486 DLLTOOL=$ac_ct_DLLTOOL 6487 fi 6488else 6489 DLLTOOL="$ac_cv_prog_DLLTOOL" 6490fi 6491 6492test -z "$DLLTOOL" && DLLTOOL=dlltool 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6504$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6505if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 lt_cv_sharedlib_from_linklib_cmd='unknown' 6509 6510case $host_os in 6511cygwin* | mingw* | pw32* | cegcc*) 6512 # two different shell functions defined in ltmain.sh; 6513 # decide which one to use based on capabilities of $DLLTOOL 6514 case `$DLLTOOL --help 2>&1` in 6515 *--identify-strict*) 6516 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6517 ;; 6518 *) 6519 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6520 ;; 6521 esac 6522 ;; 6523*) 6524 # fallback: assume linklib IS sharedlib 6525 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6526 ;; 6527esac 6528 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6531$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6532sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6533test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6534 6535 6536 6537 6538 6539 6540 6541if test -n "$ac_tool_prefix"; then 6542 for ac_prog in ar 6543 do 6544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6545set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547$as_echo_n "checking for $ac_word... " >&6; } 6548if ${ac_cv_prog_AR+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 if test -n "$AR"; then 6552 ac_cv_prog_AR="$AR" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569fi 6570fi 6571AR=$ac_cv_prog_AR 6572if test -n "$AR"; then 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6574$as_echo "$AR" >&6; } 6575else 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577$as_echo "no" >&6; } 6578fi 6579 6580 6581 test -n "$AR" && break 6582 done 6583fi 6584if test -z "$AR"; then 6585 ac_ct_AR=$AR 6586 for ac_prog in ar 6587do 6588 # Extract the first word of "$ac_prog", so it can be a program name with args. 6589set dummy $ac_prog; ac_word=$2 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6591$as_echo_n "checking for $ac_word... " >&6; } 6592if ${ac_cv_prog_ac_ct_AR+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 if test -n "$ac_ct_AR"; then 6596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6597else 6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599for as_dir in $PATH 6600do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6605 ac_cv_prog_ac_ct_AR="$ac_prog" 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_AR=$ac_cv_prog_ac_ct_AR 6616if test -n "$ac_ct_AR"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6618$as_echo "$ac_ct_AR" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621$as_echo "no" >&6; } 6622fi 6623 6624 6625 test -n "$ac_ct_AR" && break 6626done 6627 6628 if test "x$ac_ct_AR" = x; then 6629 AR="false" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632yes:) 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635ac_tool_warned=yes ;; 6636esac 6637 AR=$ac_ct_AR 6638 fi 6639fi 6640 6641: ${AR=ar} 6642: ${AR_FLAGS=cru} 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6655$as_echo_n "checking for archiver @FILE support... " >&6; } 6656if ${lt_cv_ar_at_file+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 lt_cv_ar_at_file=no 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661/* end confdefs.h. */ 6662 6663int 6664main () 6665{ 6666 6667 ; 6668 return 0; 6669} 6670_ACEOF 6671if ac_fn_c_try_compile "$LINENO"; then : 6672 echo conftest.$ac_objext > conftest.lst 6673 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6675 (eval $lt_ar_try) 2>&5 6676 ac_status=$? 6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6678 test $ac_status = 0; } 6679 if test 0 -eq "$ac_status"; then 6680 # Ensure the archiver fails upon bogus file names. 6681 rm -f conftest.$ac_objext libconftest.a 6682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6683 (eval $lt_ar_try) 2>&5 6684 ac_status=$? 6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6686 test $ac_status = 0; } 6687 if test 0 -ne "$ac_status"; then 6688 lt_cv_ar_at_file=@ 6689 fi 6690 fi 6691 rm -f conftest.* libconftest.a 6692 6693fi 6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6695 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6698$as_echo "$lt_cv_ar_at_file" >&6; } 6699 6700if test no = "$lt_cv_ar_at_file"; then 6701 archiver_list_spec= 6702else 6703 archiver_list_spec=$lt_cv_ar_at_file 6704fi 6705 6706 6707 6708 6709 6710 6711 6712if test -n "$ac_tool_prefix"; then 6713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6714set dummy ${ac_tool_prefix}strip; ac_word=$2 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6716$as_echo_n "checking for $ac_word... " >&6; } 6717if ${ac_cv_prog_STRIP+:} false; then : 6718 $as_echo_n "(cached) " >&6 6719else 6720 if test -n "$STRIP"; then 6721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6722else 6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH 6725do 6726 IFS=$as_save_IFS 6727 test -z "$as_dir" && as_dir=. 6728 for ac_exec_ext in '' $ac_executable_extensions; do 6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6730 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6732 break 2 6733 fi 6734done 6735 done 6736IFS=$as_save_IFS 6737 6738fi 6739fi 6740STRIP=$ac_cv_prog_STRIP 6741if test -n "$STRIP"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6743$as_echo "$STRIP" >&6; } 6744else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746$as_echo "no" >&6; } 6747fi 6748 6749 6750fi 6751if test -z "$ac_cv_prog_STRIP"; then 6752 ac_ct_STRIP=$STRIP 6753 # Extract the first word of "strip", so it can be a program name with args. 6754set dummy strip; ac_word=$2 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6756$as_echo_n "checking for $ac_word... " >&6; } 6757if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 if test -n "$ac_ct_STRIP"; then 6761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6762else 6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6770 ac_cv_prog_ac_ct_STRIP="strip" 6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6781if test -n "$ac_ct_STRIP"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6783$as_echo "$ac_ct_STRIP" >&6; } 6784else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 if test "x$ac_ct_STRIP" = x; then 6790 STRIP=":" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 STRIP=$ac_ct_STRIP 6799 fi 6800else 6801 STRIP="$ac_cv_prog_STRIP" 6802fi 6803 6804test -z "$STRIP" && STRIP=: 6805 6806 6807 6808 6809 6810 6811if test -n "$ac_tool_prefix"; then 6812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6813set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815$as_echo_n "checking for $ac_word... " >&6; } 6816if ${ac_cv_prog_RANLIB+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 if test -n "$RANLIB"; then 6820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6821else 6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6823for as_dir in $PATH 6824do 6825 IFS=$as_save_IFS 6826 test -z "$as_dir" && as_dir=. 6827 for ac_exec_ext in '' $ac_executable_extensions; do 6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6831 break 2 6832 fi 6833done 6834 done 6835IFS=$as_save_IFS 6836 6837fi 6838fi 6839RANLIB=$ac_cv_prog_RANLIB 6840if test -n "$RANLIB"; then 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6842$as_echo "$RANLIB" >&6; } 6843else 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6845$as_echo "no" >&6; } 6846fi 6847 6848 6849fi 6850if test -z "$ac_cv_prog_RANLIB"; then 6851 ac_ct_RANLIB=$RANLIB 6852 # Extract the first word of "ranlib", so it can be a program name with args. 6853set dummy ranlib; ac_word=$2 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6855$as_echo_n "checking for $ac_word... " >&6; } 6856if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 if test -n "$ac_ct_RANLIB"; then 6860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6869 ac_cv_prog_ac_ct_RANLIB="ranlib" 6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6880if test -n "$ac_ct_RANLIB"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6882$as_echo "$ac_ct_RANLIB" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885$as_echo "no" >&6; } 6886fi 6887 6888 if test "x$ac_ct_RANLIB" = x; then 6889 RANLIB=":" 6890 else 6891 case $cross_compiling:$ac_tool_warned in 6892yes:) 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6895ac_tool_warned=yes ;; 6896esac 6897 RANLIB=$ac_ct_RANLIB 6898 fi 6899else 6900 RANLIB="$ac_cv_prog_RANLIB" 6901fi 6902 6903test -z "$RANLIB" && RANLIB=: 6904 6905 6906 6907 6908 6909 6910# Determine commands to create old-style static archives. 6911old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6912old_postinstall_cmds='chmod 644 $oldlib' 6913old_postuninstall_cmds= 6914 6915if test -n "$RANLIB"; then 6916 case $host_os in 6917 bitrig* | openbsd*) 6918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6919 ;; 6920 *) 6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6922 ;; 6923 esac 6924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6925fi 6926 6927case $host_os in 6928 darwin*) 6929 lock_old_archive_extraction=yes ;; 6930 *) 6931 lock_old_archive_extraction=no ;; 6932esac 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972# If no C compiler was specified, use CC. 6973LTCC=${LTCC-"$CC"} 6974 6975# If no C compiler flags were specified, use CFLAGS. 6976LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6977 6978# Allow CC to be a program name with arguments. 6979compiler=$CC 6980 6981 6982# Check for command to grab the raw symbol name followed by C symbol from nm. 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6984$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6985if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 6989# These are sane defaults that work on at least a few old systems. 6990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6991 6992# Character class describing NM global symbol codes. 6993symcode='[BCDEGRST]' 6994 6995# Regexp to match symbols that can be accessed directly from C. 6996sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6997 6998# Define system-specific variables. 6999case $host_os in 7000aix*) 7001 symcode='[BCDT]' 7002 ;; 7003cygwin* | mingw* | pw32* | cegcc*) 7004 symcode='[ABCDGISTW]' 7005 ;; 7006hpux*) 7007 if test ia64 = "$host_cpu"; then 7008 symcode='[ABCDEGRST]' 7009 fi 7010 ;; 7011irix* | nonstopux*) 7012 symcode='[BCDEGRST]' 7013 ;; 7014osf*) 7015 symcode='[BCDEGQRST]' 7016 ;; 7017solaris*) 7018 symcode='[BDRT]' 7019 ;; 7020sco3.2v5*) 7021 symcode='[DT]' 7022 ;; 7023sysv4.2uw2*) 7024 symcode='[DT]' 7025 ;; 7026sysv5* | sco5v6* | unixware* | OpenUNIX*) 7027 symcode='[ABDT]' 7028 ;; 7029sysv4) 7030 symcode='[DFNSTU]' 7031 ;; 7032esac 7033 7034# If we're using GNU nm, then use its standard symbol codes. 7035case `$NM -V 2>&1` in 7036*GNU* | *'with BFD'*) 7037 symcode='[ABCDGIRSTW]' ;; 7038esac 7039 7040if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7041 # Gets list of data symbols to import. 7042 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7043 # Adjust the below global symbol transforms to fixup imported variables. 7044 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7045 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7046 lt_c_name_lib_hook="\ 7047 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7048 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7049else 7050 # Disable hooks by default. 7051 lt_cv_sys_global_symbol_to_import= 7052 lt_cdecl_hook= 7053 lt_c_name_hook= 7054 lt_c_name_lib_hook= 7055fi 7056 7057# Transform an extracted symbol line into a proper C declaration. 7058# Some systems (esp. on ia64) link data and code symbols differently, 7059# so use this general approach. 7060lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7061$lt_cdecl_hook\ 7062" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7063" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7064 7065# Transform an extracted symbol line into symbol name and symbol address 7066lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7067$lt_c_name_hook\ 7068" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7069" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7070 7071# Transform an extracted symbol line into symbol name with lib prefix and 7072# symbol address. 7073lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7074$lt_c_name_lib_hook\ 7075" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7076" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7077" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7078 7079# Handle CRLF in mingw tool chain 7080opt_cr= 7081case $build_os in 7082mingw*) 7083 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7084 ;; 7085esac 7086 7087# Try without a prefix underscore, then with it. 7088for ac_symprfx in "" "_"; do 7089 7090 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7091 symxfrm="\\1 $ac_symprfx\\2 \\2" 7092 7093 # Write the raw and C identifiers. 7094 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7095 # Fake it for dumpbin and say T for any non-static function, 7096 # D for any global variable and I for any imported variable. 7097 # Also find C++ and __fastcall symbols from MSVC++, 7098 # which start with @ or ?. 7099 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7100" {last_section=section; section=\$ 3};"\ 7101" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7102" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7103" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7104" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7105" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7106" \$ 0!~/External *\|/{next};"\ 7107" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7108" {if(hide[section]) next};"\ 7109" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7110" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7111" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7112" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7113" ' prfx=^$ac_symprfx" 7114 else 7115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7116 fi 7117 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7118 7119 # Check to see that the pipe works correctly. 7120 pipe_works=no 7121 7122 rm -f conftest* 7123 cat > conftest.$ac_ext <<_LT_EOF 7124#ifdef __cplusplus 7125extern "C" { 7126#endif 7127char nm_test_var; 7128void nm_test_func(void); 7129void nm_test_func(void){} 7130#ifdef __cplusplus 7131} 7132#endif 7133int main(){nm_test_var='a';nm_test_func();return(0);} 7134_LT_EOF 7135 7136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7137 (eval $ac_compile) 2>&5 7138 ac_status=$? 7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7140 test $ac_status = 0; }; then 7141 # Now try to grab the symbols. 7142 nlist=conftest.nm 7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7144 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7145 ac_status=$? 7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7147 test $ac_status = 0; } && test -s "$nlist"; then 7148 # Try sorting and uniquifying the output. 7149 if sort "$nlist" | uniq > "$nlist"T; then 7150 mv -f "$nlist"T "$nlist" 7151 else 7152 rm -f "$nlist"T 7153 fi 7154 7155 # Make sure that we snagged all the symbols we need. 7156 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7157 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7158 cat <<_LT_EOF > conftest.$ac_ext 7159/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7160#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7161/* DATA imports from DLLs on WIN32 can't be const, because runtime 7162 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7163# define LT_DLSYM_CONST 7164#elif defined __osf__ 7165/* This system does not cope well with relocations in const data. */ 7166# define LT_DLSYM_CONST 7167#else 7168# define LT_DLSYM_CONST const 7169#endif 7170 7171#ifdef __cplusplus 7172extern "C" { 7173#endif 7174 7175_LT_EOF 7176 # Now generate the symbol file. 7177 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7178 7179 cat <<_LT_EOF >> conftest.$ac_ext 7180 7181/* The mapping between symbol names and symbols. */ 7182LT_DLSYM_CONST struct { 7183 const char *name; 7184 void *address; 7185} 7186lt__PROGRAM__LTX_preloaded_symbols[] = 7187{ 7188 { "@PROGRAM@", (void *) 0 }, 7189_LT_EOF 7190 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7191 cat <<\_LT_EOF >> conftest.$ac_ext 7192 {0, (void *) 0} 7193}; 7194 7195/* This works around a problem in FreeBSD linker */ 7196#ifdef FREEBSD_WORKAROUND 7197static const void *lt_preloaded_setup() { 7198 return lt__PROGRAM__LTX_preloaded_symbols; 7199} 7200#endif 7201 7202#ifdef __cplusplus 7203} 7204#endif 7205_LT_EOF 7206 # Now try linking the two files. 7207 mv conftest.$ac_objext conftstm.$ac_objext 7208 lt_globsym_save_LIBS=$LIBS 7209 lt_globsym_save_CFLAGS=$CFLAGS 7210 LIBS=conftstm.$ac_objext 7211 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7213 (eval $ac_link) 2>&5 7214 ac_status=$? 7215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7216 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7217 pipe_works=yes 7218 fi 7219 LIBS=$lt_globsym_save_LIBS 7220 CFLAGS=$lt_globsym_save_CFLAGS 7221 else 7222 echo "cannot find nm_test_func in $nlist" >&5 7223 fi 7224 else 7225 echo "cannot find nm_test_var in $nlist" >&5 7226 fi 7227 else 7228 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7229 fi 7230 else 7231 echo "$progname: failed program was:" >&5 7232 cat conftest.$ac_ext >&5 7233 fi 7234 rm -rf conftest* conftst* 7235 7236 # Do not use the global_symbol_pipe unless it works. 7237 if test yes = "$pipe_works"; then 7238 break 7239 else 7240 lt_cv_sys_global_symbol_pipe= 7241 fi 7242done 7243 7244fi 7245 7246if test -z "$lt_cv_sys_global_symbol_pipe"; then 7247 lt_cv_sys_global_symbol_to_cdecl= 7248fi 7249if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7251$as_echo "failed" >&6; } 7252else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7254$as_echo "ok" >&6; } 7255fi 7256 7257# Response file support. 7258if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7259 nm_file_list_spec='@' 7260elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7261 nm_file_list_spec='@' 7262fi 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7301$as_echo_n "checking for sysroot... " >&6; } 7302 7303# Check whether --with-sysroot was given. 7304if test "${with_sysroot+set}" = set; then : 7305 withval=$with_sysroot; 7306else 7307 with_sysroot=no 7308fi 7309 7310 7311lt_sysroot= 7312case $with_sysroot in #( 7313 yes) 7314 if test yes = "$GCC"; then 7315 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7316 fi 7317 ;; #( 7318 /*) 7319 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7320 ;; #( 7321 no|'') 7322 ;; #( 7323 *) 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7325$as_echo "$with_sysroot" >&6; } 7326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7327 ;; 7328esac 7329 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7331$as_echo "${lt_sysroot:-no}" >&6; } 7332 7333 7334 7335 7336 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7338$as_echo_n "checking for a working dd... " >&6; } 7339if ${ac_cv_path_lt_DD+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 printf 0123456789abcdef0123456789abcdef >conftest.i 7343cat conftest.i conftest.i >conftest2.i 7344: ${lt_DD:=$DD} 7345if test -z "$lt_DD"; then 7346 ac_path_lt_DD_found=false 7347 # Loop through the user's path and test for each of PROGNAME-LIST 7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7349for as_dir in $PATH 7350do 7351 IFS=$as_save_IFS 7352 test -z "$as_dir" && as_dir=. 7353 for ac_prog in dd; do 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7356 as_fn_executable_p "$ac_path_lt_DD" || continue 7357if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7358 cmp -s conftest.i conftest.out \ 7359 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7360fi 7361 $ac_path_lt_DD_found && break 3 7362 done 7363 done 7364 done 7365IFS=$as_save_IFS 7366 if test -z "$ac_cv_path_lt_DD"; then 7367 : 7368 fi 7369else 7370 ac_cv_path_lt_DD=$lt_DD 7371fi 7372 7373rm -f conftest.i conftest2.i conftest.out 7374fi 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7376$as_echo "$ac_cv_path_lt_DD" >&6; } 7377 7378 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7380$as_echo_n "checking how to truncate binary pipes... " >&6; } 7381if ${lt_cv_truncate_bin+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 printf 0123456789abcdef0123456789abcdef >conftest.i 7385cat conftest.i conftest.i >conftest2.i 7386lt_cv_truncate_bin= 7387if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7388 cmp -s conftest.i conftest.out \ 7389 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7390fi 7391rm -f conftest.i conftest2.i conftest.out 7392test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7395$as_echo "$lt_cv_truncate_bin" >&6; } 7396 7397 7398 7399 7400 7401 7402 7403# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7404func_cc_basename () 7405{ 7406 for cc_temp in $*""; do 7407 case $cc_temp in 7408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7410 \-*) ;; 7411 *) break;; 7412 esac 7413 done 7414 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7415} 7416 7417# Check whether --enable-libtool-lock was given. 7418if test "${enable_libtool_lock+set}" = set; then : 7419 enableval=$enable_libtool_lock; 7420fi 7421 7422test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7423 7424# Some flags need to be propagated to the compiler or linker for good 7425# libtool support. 7426case $host in 7427ia64-*-hpux*) 7428 # Find out what ABI is being produced by ac_compile, and set mode 7429 # options accordingly. 7430 echo 'int i;' > conftest.$ac_ext 7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7432 (eval $ac_compile) 2>&5 7433 ac_status=$? 7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7435 test $ac_status = 0; }; then 7436 case `/usr/bin/file conftest.$ac_objext` in 7437 *ELF-32*) 7438 HPUX_IA64_MODE=32 7439 ;; 7440 *ELF-64*) 7441 HPUX_IA64_MODE=64 7442 ;; 7443 esac 7444 fi 7445 rm -rf conftest* 7446 ;; 7447*-*-irix6*) 7448 # Find out what ABI is being produced by ac_compile, and set linker 7449 # options accordingly. 7450 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7452 (eval $ac_compile) 2>&5 7453 ac_status=$? 7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7455 test $ac_status = 0; }; then 7456 if test yes = "$lt_cv_prog_gnu_ld"; then 7457 case `/usr/bin/file conftest.$ac_objext` in 7458 *32-bit*) 7459 LD="${LD-ld} -melf32bsmip" 7460 ;; 7461 *N32*) 7462 LD="${LD-ld} -melf32bmipn32" 7463 ;; 7464 *64-bit*) 7465 LD="${LD-ld} -melf64bmip" 7466 ;; 7467 esac 7468 else 7469 case `/usr/bin/file conftest.$ac_objext` in 7470 *32-bit*) 7471 LD="${LD-ld} -32" 7472 ;; 7473 *N32*) 7474 LD="${LD-ld} -n32" 7475 ;; 7476 *64-bit*) 7477 LD="${LD-ld} -64" 7478 ;; 7479 esac 7480 fi 7481 fi 7482 rm -rf conftest* 7483 ;; 7484 7485mips64*-*linux*) 7486 # Find out what ABI is being produced by ac_compile, and set linker 7487 # options accordingly. 7488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7490 (eval $ac_compile) 2>&5 7491 ac_status=$? 7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7493 test $ac_status = 0; }; then 7494 emul=elf 7495 case `/usr/bin/file conftest.$ac_objext` in 7496 *32-bit*) 7497 emul="${emul}32" 7498 ;; 7499 *64-bit*) 7500 emul="${emul}64" 7501 ;; 7502 esac 7503 case `/usr/bin/file conftest.$ac_objext` in 7504 *MSB*) 7505 emul="${emul}btsmip" 7506 ;; 7507 *LSB*) 7508 emul="${emul}ltsmip" 7509 ;; 7510 esac 7511 case `/usr/bin/file conftest.$ac_objext` in 7512 *N32*) 7513 emul="${emul}n32" 7514 ;; 7515 esac 7516 LD="${LD-ld} -m $emul" 7517 fi 7518 rm -rf conftest* 7519 ;; 7520 7521x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7522s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7523 # Find out what ABI is being produced by ac_compile, and set linker 7524 # options accordingly. Note that the listed cases only cover the 7525 # situations where additional linker options are needed (such as when 7526 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7527 # vice versa); the common cases where no linker options are needed do 7528 # not appear in the list. 7529 echo 'int i;' > conftest.$ac_ext 7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7531 (eval $ac_compile) 2>&5 7532 ac_status=$? 7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7534 test $ac_status = 0; }; then 7535 case `/usr/bin/file conftest.o` in 7536 *32-bit*) 7537 case $host in 7538 x86_64-*kfreebsd*-gnu) 7539 LD="${LD-ld} -m elf_i386_fbsd" 7540 ;; 7541 x86_64-*linux*) 7542 case `/usr/bin/file conftest.o` in 7543 *x86-64*) 7544 LD="${LD-ld} -m elf32_x86_64" 7545 ;; 7546 *) 7547 LD="${LD-ld} -m elf_i386" 7548 ;; 7549 esac 7550 ;; 7551 powerpc64le-*linux*) 7552 LD="${LD-ld} -m elf32lppclinux" 7553 ;; 7554 powerpc64-*linux*) 7555 LD="${LD-ld} -m elf32ppclinux" 7556 ;; 7557 s390x-*linux*) 7558 LD="${LD-ld} -m elf_s390" 7559 ;; 7560 sparc64-*linux*) 7561 LD="${LD-ld} -m elf32_sparc" 7562 ;; 7563 esac 7564 ;; 7565 *64-bit*) 7566 case $host in 7567 x86_64-*kfreebsd*-gnu) 7568 LD="${LD-ld} -m elf_x86_64_fbsd" 7569 ;; 7570 x86_64-*linux*) 7571 LD="${LD-ld} -m elf_x86_64" 7572 ;; 7573 powerpcle-*linux*) 7574 LD="${LD-ld} -m elf64lppc" 7575 ;; 7576 powerpc-*linux*) 7577 LD="${LD-ld} -m elf64ppc" 7578 ;; 7579 s390*-*linux*|s390*-*tpf*) 7580 LD="${LD-ld} -m elf64_s390" 7581 ;; 7582 sparc*-*linux*) 7583 LD="${LD-ld} -m elf64_sparc" 7584 ;; 7585 esac 7586 ;; 7587 esac 7588 fi 7589 rm -rf conftest* 7590 ;; 7591 7592*-*-sco3.2v5*) 7593 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7594 SAVE_CFLAGS=$CFLAGS 7595 CFLAGS="$CFLAGS -belf" 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7597$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7598if ${lt_cv_cc_needs_belf+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 ac_ext=c 7602ac_cpp='$CPP $CPPFLAGS' 7603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7605ac_compiler_gnu=$ac_cv_c_compiler_gnu 7606 7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7608/* end confdefs.h. */ 7609 7610int 7611main () 7612{ 7613 7614 ; 7615 return 0; 7616} 7617_ACEOF 7618if ac_fn_c_try_link "$LINENO"; then : 7619 lt_cv_cc_needs_belf=yes 7620else 7621 lt_cv_cc_needs_belf=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext \ 7624 conftest$ac_exeext conftest.$ac_ext 7625 ac_ext=c 7626ac_cpp='$CPP $CPPFLAGS' 7627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7629ac_compiler_gnu=$ac_cv_c_compiler_gnu 7630 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7633$as_echo "$lt_cv_cc_needs_belf" >&6; } 7634 if test yes != "$lt_cv_cc_needs_belf"; then 7635 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7636 CFLAGS=$SAVE_CFLAGS 7637 fi 7638 ;; 7639*-*solaris*) 7640 # Find out what ABI is being produced by ac_compile, and set linker 7641 # options accordingly. 7642 echo 'int i;' > conftest.$ac_ext 7643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7644 (eval $ac_compile) 2>&5 7645 ac_status=$? 7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7647 test $ac_status = 0; }; then 7648 case `/usr/bin/file conftest.o` in 7649 *64-bit*) 7650 case $lt_cv_prog_gnu_ld in 7651 yes*) 7652 case $host in 7653 i?86-*-solaris*|x86_64-*-solaris*) 7654 LD="${LD-ld} -m elf_x86_64" 7655 ;; 7656 sparc*-*-solaris*) 7657 LD="${LD-ld} -m elf64_sparc" 7658 ;; 7659 esac 7660 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7661 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7662 LD=${LD-ld}_sol2 7663 fi 7664 ;; 7665 *) 7666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7667 LD="${LD-ld} -64" 7668 fi 7669 ;; 7670 esac 7671 ;; 7672 esac 7673 fi 7674 rm -rf conftest* 7675 ;; 7676esac 7677 7678need_locks=$enable_libtool_lock 7679 7680if test -n "$ac_tool_prefix"; then 7681 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7682set dummy ${ac_tool_prefix}mt; ac_word=$2 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7684$as_echo_n "checking for $ac_word... " >&6; } 7685if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 if test -n "$MANIFEST_TOOL"; then 7689 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7690else 7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7692for as_dir in $PATH 7693do 7694 IFS=$as_save_IFS 7695 test -z "$as_dir" && as_dir=. 7696 for ac_exec_ext in '' $ac_executable_extensions; do 7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7698 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7700 break 2 7701 fi 7702done 7703 done 7704IFS=$as_save_IFS 7705 7706fi 7707fi 7708MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7709if test -n "$MANIFEST_TOOL"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7711$as_echo "$MANIFEST_TOOL" >&6; } 7712else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714$as_echo "no" >&6; } 7715fi 7716 7717 7718fi 7719if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7720 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7721 # Extract the first word of "mt", so it can be a program name with args. 7722set dummy mt; ac_word=$2 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7724$as_echo_n "checking for $ac_word... " >&6; } 7725if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 if test -n "$ac_ct_MANIFEST_TOOL"; then 7729 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7730else 7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7732for as_dir in $PATH 7733do 7734 IFS=$as_save_IFS 7735 test -z "$as_dir" && as_dir=. 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7738 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7740 break 2 7741 fi 7742done 7743 done 7744IFS=$as_save_IFS 7745 7746fi 7747fi 7748ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7749if test -n "$ac_ct_MANIFEST_TOOL"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7751$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7758 MANIFEST_TOOL=":" 7759 else 7760 case $cross_compiling:$ac_tool_warned in 7761yes:) 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7764ac_tool_warned=yes ;; 7765esac 7766 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7767 fi 7768else 7769 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7770fi 7771 7772test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7774$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7775if ${lt_cv_path_mainfest_tool+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 lt_cv_path_mainfest_tool=no 7779 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7780 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7781 cat conftest.err >&5 7782 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7783 lt_cv_path_mainfest_tool=yes 7784 fi 7785 rm -f conftest* 7786fi 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7788$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7789if test yes != "$lt_cv_path_mainfest_tool"; then 7790 MANIFEST_TOOL=: 7791fi 7792 7793 7794 7795 7796 7797 7798 case $host_os in 7799 rhapsody* | darwin*) 7800 if test -n "$ac_tool_prefix"; then 7801 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7802set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7804$as_echo_n "checking for $ac_word... " >&6; } 7805if ${ac_cv_prog_DSYMUTIL+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 if test -n "$DSYMUTIL"; then 7809 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7810else 7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812for as_dir in $PATH 7813do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7818 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822done 7823 done 7824IFS=$as_save_IFS 7825 7826fi 7827fi 7828DSYMUTIL=$ac_cv_prog_DSYMUTIL 7829if test -n "$DSYMUTIL"; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7831$as_echo "$DSYMUTIL" >&6; } 7832else 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7834$as_echo "no" >&6; } 7835fi 7836 7837 7838fi 7839if test -z "$ac_cv_prog_DSYMUTIL"; then 7840 ac_ct_DSYMUTIL=$DSYMUTIL 7841 # Extract the first word of "dsymutil", so it can be a program name with args. 7842set dummy dsymutil; ac_word=$2 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844$as_echo_n "checking for $ac_word... " >&6; } 7845if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 if test -n "$ac_ct_DSYMUTIL"; then 7849 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7850else 7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7852for as_dir in $PATH 7853do 7854 IFS=$as_save_IFS 7855 test -z "$as_dir" && as_dir=. 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7858 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7869if test -n "$ac_ct_DSYMUTIL"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7871$as_echo "$ac_ct_DSYMUTIL" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 if test "x$ac_ct_DSYMUTIL" = x; then 7878 DSYMUTIL=":" 7879 else 7880 case $cross_compiling:$ac_tool_warned in 7881yes:) 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7884ac_tool_warned=yes ;; 7885esac 7886 DSYMUTIL=$ac_ct_DSYMUTIL 7887 fi 7888else 7889 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7890fi 7891 7892 if test -n "$ac_tool_prefix"; then 7893 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7894set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896$as_echo_n "checking for $ac_word... " >&6; } 7897if ${ac_cv_prog_NMEDIT+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 if test -n "$NMEDIT"; then 7901 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7902else 7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904for as_dir in $PATH 7905do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7910 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914done 7915 done 7916IFS=$as_save_IFS 7917 7918fi 7919fi 7920NMEDIT=$ac_cv_prog_NMEDIT 7921if test -n "$NMEDIT"; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7923$as_echo "$NMEDIT" >&6; } 7924else 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926$as_echo "no" >&6; } 7927fi 7928 7929 7930fi 7931if test -z "$ac_cv_prog_NMEDIT"; then 7932 ac_ct_NMEDIT=$NMEDIT 7933 # Extract the first word of "nmedit", so it can be a program name with args. 7934set dummy nmedit; ac_word=$2 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7936$as_echo_n "checking for $ac_word... " >&6; } 7937if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 if test -n "$ac_ct_NMEDIT"; then 7941 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7942else 7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944for as_dir in $PATH 7945do 7946 IFS=$as_save_IFS 7947 test -z "$as_dir" && as_dir=. 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7950 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954done 7955 done 7956IFS=$as_save_IFS 7957 7958fi 7959fi 7960ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7961if test -n "$ac_ct_NMEDIT"; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7963$as_echo "$ac_ct_NMEDIT" >&6; } 7964else 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7966$as_echo "no" >&6; } 7967fi 7968 7969 if test "x$ac_ct_NMEDIT" = x; then 7970 NMEDIT=":" 7971 else 7972 case $cross_compiling:$ac_tool_warned in 7973yes:) 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7976ac_tool_warned=yes ;; 7977esac 7978 NMEDIT=$ac_ct_NMEDIT 7979 fi 7980else 7981 NMEDIT="$ac_cv_prog_NMEDIT" 7982fi 7983 7984 if test -n "$ac_tool_prefix"; then 7985 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7986set dummy ${ac_tool_prefix}lipo; ac_word=$2 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7988$as_echo_n "checking for $ac_word... " >&6; } 7989if ${ac_cv_prog_LIPO+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 if test -n "$LIPO"; then 7993 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7994else 7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7996for as_dir in $PATH 7997do 7998 IFS=$as_save_IFS 7999 test -z "$as_dir" && as_dir=. 8000 for ac_exec_ext in '' $ac_executable_extensions; do 8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8002 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8004 break 2 8005 fi 8006done 8007 done 8008IFS=$as_save_IFS 8009 8010fi 8011fi 8012LIPO=$ac_cv_prog_LIPO 8013if test -n "$LIPO"; then 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8015$as_echo "$LIPO" >&6; } 8016else 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018$as_echo "no" >&6; } 8019fi 8020 8021 8022fi 8023if test -z "$ac_cv_prog_LIPO"; then 8024 ac_ct_LIPO=$LIPO 8025 # Extract the first word of "lipo", so it can be a program name with args. 8026set dummy lipo; ac_word=$2 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8028$as_echo_n "checking for $ac_word... " >&6; } 8029if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 if test -n "$ac_ct_LIPO"; then 8033 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8034else 8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8036for as_dir in $PATH 8037do 8038 IFS=$as_save_IFS 8039 test -z "$as_dir" && as_dir=. 8040 for ac_exec_ext in '' $ac_executable_extensions; do 8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8042 ac_cv_prog_ac_ct_LIPO="lipo" 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8044 break 2 8045 fi 8046done 8047 done 8048IFS=$as_save_IFS 8049 8050fi 8051fi 8052ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8053if test -n "$ac_ct_LIPO"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8055$as_echo "$ac_ct_LIPO" >&6; } 8056else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058$as_echo "no" >&6; } 8059fi 8060 8061 if test "x$ac_ct_LIPO" = x; then 8062 LIPO=":" 8063 else 8064 case $cross_compiling:$ac_tool_warned in 8065yes:) 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8068ac_tool_warned=yes ;; 8069esac 8070 LIPO=$ac_ct_LIPO 8071 fi 8072else 8073 LIPO="$ac_cv_prog_LIPO" 8074fi 8075 8076 if test -n "$ac_tool_prefix"; then 8077 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8078set dummy ${ac_tool_prefix}otool; ac_word=$2 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8080$as_echo_n "checking for $ac_word... " >&6; } 8081if ${ac_cv_prog_OTOOL+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 if test -n "$OTOOL"; then 8085 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8086else 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088for as_dir in $PATH 8089do 8090 IFS=$as_save_IFS 8091 test -z "$as_dir" && as_dir=. 8092 for ac_exec_ext in '' $ac_executable_extensions; do 8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8096 break 2 8097 fi 8098done 8099 done 8100IFS=$as_save_IFS 8101 8102fi 8103fi 8104OTOOL=$ac_cv_prog_OTOOL 8105if test -n "$OTOOL"; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8107$as_echo "$OTOOL" >&6; } 8108else 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8110$as_echo "no" >&6; } 8111fi 8112 8113 8114fi 8115if test -z "$ac_cv_prog_OTOOL"; then 8116 ac_ct_OTOOL=$OTOOL 8117 # Extract the first word of "otool", so it can be a program name with args. 8118set dummy otool; ac_word=$2 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8120$as_echo_n "checking for $ac_word... " >&6; } 8121if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 if test -n "$ac_ct_OTOOL"; then 8125 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8126else 8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8128for as_dir in $PATH 8129do 8130 IFS=$as_save_IFS 8131 test -z "$as_dir" && as_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8134 ac_cv_prog_ac_ct_OTOOL="otool" 8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138done 8139 done 8140IFS=$as_save_IFS 8141 8142fi 8143fi 8144ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8145if test -n "$ac_ct_OTOOL"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8147$as_echo "$ac_ct_OTOOL" >&6; } 8148else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150$as_echo "no" >&6; } 8151fi 8152 8153 if test "x$ac_ct_OTOOL" = x; then 8154 OTOOL=":" 8155 else 8156 case $cross_compiling:$ac_tool_warned in 8157yes:) 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8160ac_tool_warned=yes ;; 8161esac 8162 OTOOL=$ac_ct_OTOOL 8163 fi 8164else 8165 OTOOL="$ac_cv_prog_OTOOL" 8166fi 8167 8168 if test -n "$ac_tool_prefix"; then 8169 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8170set dummy ${ac_tool_prefix}otool64; ac_word=$2 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8172$as_echo_n "checking for $ac_word... " >&6; } 8173if ${ac_cv_prog_OTOOL64+:} false; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 if test -n "$OTOOL64"; then 8177 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8178else 8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8180for as_dir in $PATH 8181do 8182 IFS=$as_save_IFS 8183 test -z "$as_dir" && as_dir=. 8184 for ac_exec_ext in '' $ac_executable_extensions; do 8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8186 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8188 break 2 8189 fi 8190done 8191 done 8192IFS=$as_save_IFS 8193 8194fi 8195fi 8196OTOOL64=$ac_cv_prog_OTOOL64 8197if test -n "$OTOOL64"; then 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8199$as_echo "$OTOOL64" >&6; } 8200else 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8202$as_echo "no" >&6; } 8203fi 8204 8205 8206fi 8207if test -z "$ac_cv_prog_OTOOL64"; then 8208 ac_ct_OTOOL64=$OTOOL64 8209 # Extract the first word of "otool64", so it can be a program name with args. 8210set dummy otool64; ac_word=$2 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8212$as_echo_n "checking for $ac_word... " >&6; } 8213if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 if test -n "$ac_ct_OTOOL64"; then 8217 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8218else 8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8220for as_dir in $PATH 8221do 8222 IFS=$as_save_IFS 8223 test -z "$as_dir" && as_dir=. 8224 for ac_exec_ext in '' $ac_executable_extensions; do 8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8226 ac_cv_prog_ac_ct_OTOOL64="otool64" 8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8228 break 2 8229 fi 8230done 8231 done 8232IFS=$as_save_IFS 8233 8234fi 8235fi 8236ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8237if test -n "$ac_ct_OTOOL64"; then 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8239$as_echo "$ac_ct_OTOOL64" >&6; } 8240else 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8242$as_echo "no" >&6; } 8243fi 8244 8245 if test "x$ac_ct_OTOOL64" = x; then 8246 OTOOL64=":" 8247 else 8248 case $cross_compiling:$ac_tool_warned in 8249yes:) 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8252ac_tool_warned=yes ;; 8253esac 8254 OTOOL64=$ac_ct_OTOOL64 8255 fi 8256else 8257 OTOOL64="$ac_cv_prog_OTOOL64" 8258fi 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8287$as_echo_n "checking for -single_module linker flag... " >&6; } 8288if ${lt_cv_apple_cc_single_mod+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 lt_cv_apple_cc_single_mod=no 8292 if test -z "$LT_MULTI_MODULE"; then 8293 # By default we will add the -single_module flag. You can override 8294 # by either setting the environment variable LT_MULTI_MODULE 8295 # non-empty at configure time, or by adding -multi_module to the 8296 # link flags. 8297 rm -rf libconftest.dylib* 8298 echo "int foo(void){return 1;}" > conftest.c 8299 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8300-dynamiclib -Wl,-single_module conftest.c" >&5 8301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8302 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8303 _lt_result=$? 8304 # If there is a non-empty error log, and "single_module" 8305 # appears in it, assume the flag caused a linker warning 8306 if test -s conftest.err && $GREP single_module conftest.err; then 8307 cat conftest.err >&5 8308 # Otherwise, if the output was created with a 0 exit code from 8309 # the compiler, it worked. 8310 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8311 lt_cv_apple_cc_single_mod=yes 8312 else 8313 cat conftest.err >&5 8314 fi 8315 rm -rf libconftest.dylib* 8316 rm -f conftest.* 8317 fi 8318fi 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8320$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8323$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8324if ${lt_cv_ld_exported_symbols_list+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 lt_cv_ld_exported_symbols_list=no 8328 save_LDFLAGS=$LDFLAGS 8329 echo "_main" > conftest.sym 8330 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333 8334int 8335main () 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_link "$LINENO"; then : 8343 lt_cv_ld_exported_symbols_list=yes 8344else 8345 lt_cv_ld_exported_symbols_list=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext \ 8348 conftest$ac_exeext conftest.$ac_ext 8349 LDFLAGS=$save_LDFLAGS 8350 8351fi 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8353$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8354 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8356$as_echo_n "checking for -force_load linker flag... " >&6; } 8357if ${lt_cv_ld_force_load+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 lt_cv_ld_force_load=no 8361 cat > conftest.c << _LT_EOF 8362int forced_loaded() { return 2;} 8363_LT_EOF 8364 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8365 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8366 echo "$AR cru libconftest.a conftest.o" >&5 8367 $AR cru libconftest.a conftest.o 2>&5 8368 echo "$RANLIB libconftest.a" >&5 8369 $RANLIB libconftest.a 2>&5 8370 cat > conftest.c << _LT_EOF 8371int main() { return 0;} 8372_LT_EOF 8373 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8374 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8375 _lt_result=$? 8376 if test -s conftest.err && $GREP force_load conftest.err; then 8377 cat conftest.err >&5 8378 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8379 lt_cv_ld_force_load=yes 8380 else 8381 cat conftest.err >&5 8382 fi 8383 rm -f conftest.err libconftest.a conftest conftest.c 8384 rm -rf conftest.dSYM 8385 8386fi 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8388$as_echo "$lt_cv_ld_force_load" >&6; } 8389 case $host_os in 8390 rhapsody* | darwin1.[012]) 8391 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8392 darwin1.*) 8393 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8394 darwin*) # darwin 5.x on 8395 # if running on 10.5 or later, the deployment target defaults 8396 # to the OS version, if on x86, and 10.4, the deployment 8397 # target defaults to 10.4. Don't you love it? 8398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8399 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8401 10.[012][,.]*) 8402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8403 10.*) 8404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8405 esac 8406 ;; 8407 esac 8408 if test yes = "$lt_cv_apple_cc_single_mod"; then 8409 _lt_dar_single_mod='$single_module' 8410 fi 8411 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8412 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8413 else 8414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8415 fi 8416 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8417 _lt_dsymutil='~$DSYMUTIL $lib || :' 8418 else 8419 _lt_dsymutil= 8420 fi 8421 ;; 8422 esac 8423 8424# func_munge_path_list VARIABLE PATH 8425# ----------------------------------- 8426# VARIABLE is name of variable containing _space_ separated list of 8427# directories to be munged by the contents of PATH, which is string 8428# having a format: 8429# "DIR[:DIR]:" 8430# string "DIR[ DIR]" will be prepended to VARIABLE 8431# ":DIR[:DIR]" 8432# string "DIR[ DIR]" will be appended to VARIABLE 8433# "DIRP[:DIRP]::[DIRA:]DIRA" 8434# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8435# "DIRA[ DIRA]" will be appended to VARIABLE 8436# "DIR[:DIR]" 8437# VARIABLE will be replaced by "DIR[ DIR]" 8438func_munge_path_list () 8439{ 8440 case x$2 in 8441 x) 8442 ;; 8443 *:) 8444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8445 ;; 8446 x:*) 8447 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8448 ;; 8449 *::*) 8450 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8451 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8452 ;; 8453 *) 8454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8455 ;; 8456 esac 8457} 8458 8459ac_ext=c 8460ac_cpp='$CPP $CPPFLAGS' 8461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8463ac_compiler_gnu=$ac_cv_c_compiler_gnu 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8465$as_echo_n "checking how to run the C preprocessor... " >&6; } 8466# On Suns, sometimes $CPP names a directory. 8467if test -n "$CPP" && test -d "$CPP"; then 8468 CPP= 8469fi 8470if test -z "$CPP"; then 8471 if ${ac_cv_prog_CPP+:} false; then : 8472 $as_echo_n "(cached) " >&6 8473else 8474 # Double quotes because CPP needs to be expanded 8475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8476 do 8477 ac_preproc_ok=false 8478for ac_c_preproc_warn_flag in '' yes 8479do 8480 # Use a header file that comes with gcc, so configuring glibc 8481 # with a fresh cross-compiler works. 8482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8483 # <limits.h> exists even on freestanding compilers. 8484 # On the NeXT, cc -E runs the code through the compiler's parser, 8485 # not just through cpp. "Syntax error" is here to catch this case. 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488#ifdef __STDC__ 8489# include <limits.h> 8490#else 8491# include <assert.h> 8492#endif 8493 Syntax error 8494_ACEOF 8495if ac_fn_c_try_cpp "$LINENO"; then : 8496 8497else 8498 # Broken: fails on valid input. 8499continue 8500fi 8501rm -f conftest.err conftest.i conftest.$ac_ext 8502 8503 # OK, works on sane cases. Now check whether nonexistent headers 8504 # can be detected and how. 8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8506/* end confdefs.h. */ 8507#include <ac_nonexistent.h> 8508_ACEOF 8509if ac_fn_c_try_cpp "$LINENO"; then : 8510 # Broken: success on invalid input. 8511continue 8512else 8513 # Passes both tests. 8514ac_preproc_ok=: 8515break 8516fi 8517rm -f conftest.err conftest.i conftest.$ac_ext 8518 8519done 8520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8521rm -f conftest.i conftest.err conftest.$ac_ext 8522if $ac_preproc_ok; then : 8523 break 8524fi 8525 8526 done 8527 ac_cv_prog_CPP=$CPP 8528 8529fi 8530 CPP=$ac_cv_prog_CPP 8531else 8532 ac_cv_prog_CPP=$CPP 8533fi 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8535$as_echo "$CPP" >&6; } 8536ac_preproc_ok=false 8537for ac_c_preproc_warn_flag in '' yes 8538do 8539 # Use a header file that comes with gcc, so configuring glibc 8540 # with a fresh cross-compiler works. 8541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8542 # <limits.h> exists even on freestanding compilers. 8543 # On the NeXT, cc -E runs the code through the compiler's parser, 8544 # not just through cpp. "Syntax error" is here to catch this case. 8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8546/* end confdefs.h. */ 8547#ifdef __STDC__ 8548# include <limits.h> 8549#else 8550# include <assert.h> 8551#endif 8552 Syntax error 8553_ACEOF 8554if ac_fn_c_try_cpp "$LINENO"; then : 8555 8556else 8557 # Broken: fails on valid input. 8558continue 8559fi 8560rm -f conftest.err conftest.i conftest.$ac_ext 8561 8562 # OK, works on sane cases. Now check whether nonexistent headers 8563 # can be detected and how. 8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8565/* end confdefs.h. */ 8566#include <ac_nonexistent.h> 8567_ACEOF 8568if ac_fn_c_try_cpp "$LINENO"; then : 8569 # Broken: success on invalid input. 8570continue 8571else 8572 # Passes both tests. 8573ac_preproc_ok=: 8574break 8575fi 8576rm -f conftest.err conftest.i conftest.$ac_ext 8577 8578done 8579# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8580rm -f conftest.i conftest.err conftest.$ac_ext 8581if $ac_preproc_ok; then : 8582 8583else 8584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8586as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8587See \`config.log' for more details" "$LINENO" 5; } 8588fi 8589 8590ac_ext=c 8591ac_cpp='$CPP $CPPFLAGS' 8592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8594ac_compiler_gnu=$ac_cv_c_compiler_gnu 8595 8596 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8598$as_echo_n "checking for ANSI C header files... " >&6; } 8599if ${ac_cv_header_stdc+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604#include <stdlib.h> 8605#include <stdarg.h> 8606#include <string.h> 8607#include <float.h> 8608 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO"; then : 8618 ac_cv_header_stdc=yes 8619else 8620 ac_cv_header_stdc=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623 8624if test $ac_cv_header_stdc = yes; then 8625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628#include <string.h> 8629 8630_ACEOF 8631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8632 $EGREP "memchr" >/dev/null 2>&1; then : 8633 8634else 8635 ac_cv_header_stdc=no 8636fi 8637rm -f conftest* 8638 8639fi 8640 8641if test $ac_cv_header_stdc = yes; then 8642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645#include <stdlib.h> 8646 8647_ACEOF 8648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8649 $EGREP "free" >/dev/null 2>&1; then : 8650 8651else 8652 ac_cv_header_stdc=no 8653fi 8654rm -f conftest* 8655 8656fi 8657 8658if test $ac_cv_header_stdc = yes; then 8659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8660 if test "$cross_compiling" = yes; then : 8661 : 8662else 8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8664/* end confdefs.h. */ 8665#include <ctype.h> 8666#include <stdlib.h> 8667#if ((' ' & 0x0FF) == 0x020) 8668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8669# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8670#else 8671# define ISLOWER(c) \ 8672 (('a' <= (c) && (c) <= 'i') \ 8673 || ('j' <= (c) && (c) <= 'r') \ 8674 || ('s' <= (c) && (c) <= 'z')) 8675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8676#endif 8677 8678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8679int 8680main () 8681{ 8682 int i; 8683 for (i = 0; i < 256; i++) 8684 if (XOR (islower (i), ISLOWER (i)) 8685 || toupper (i) != TOUPPER (i)) 8686 return 2; 8687 return 0; 8688} 8689_ACEOF 8690if ac_fn_c_try_run "$LINENO"; then : 8691 8692else 8693 ac_cv_header_stdc=no 8694fi 8695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8696 conftest.$ac_objext conftest.beam conftest.$ac_ext 8697fi 8698 8699fi 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8702$as_echo "$ac_cv_header_stdc" >&6; } 8703if test $ac_cv_header_stdc = yes; then 8704 8705$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8706 8707fi 8708 8709# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8711 inttypes.h stdint.h unistd.h 8712do : 8713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8715" 8716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8717 cat >>confdefs.h <<_ACEOF 8718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8719_ACEOF 8720 8721fi 8722 8723done 8724 8725 8726for ac_header in dlfcn.h 8727do : 8728 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8729" 8730if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8731 cat >>confdefs.h <<_ACEOF 8732#define HAVE_DLFCN_H 1 8733_ACEOF 8734 8735fi 8736 8737done 8738 8739 8740 8741 8742func_stripname_cnf () 8743{ 8744 case $2 in 8745 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8746 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8747 esac 8748} # func_stripname_cnf 8749 8750 8751 8752 8753 8754# Set options 8755 8756 8757 8758 8759 enable_win32_dll=no 8760 8761 8762 # Check whether --enable-shared was given. 8763if test "${enable_shared+set}" = set; then : 8764 enableval=$enable_shared; p=${PACKAGE-default} 8765 case $enableval in 8766 yes) enable_shared=yes ;; 8767 no) enable_shared=no ;; 8768 *) 8769 enable_shared=no 8770 # Look at the argument we got. We use all the common list separators. 8771 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8772 for pkg in $enableval; do 8773 IFS=$lt_save_ifs 8774 if test "X$pkg" = "X$p"; then 8775 enable_shared=yes 8776 fi 8777 done 8778 IFS=$lt_save_ifs 8779 ;; 8780 esac 8781else 8782 enable_shared=yes 8783fi 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795# Check whether --with-pic was given. 8796if test "${with_pic+set}" = set; then : 8797 withval=$with_pic; lt_p=${PACKAGE-default} 8798 case $withval in 8799 yes|no) pic_mode=$withval ;; 8800 *) 8801 pic_mode=default 8802 # Look at the argument we got. We use all the common list separators. 8803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8804 for lt_pkg in $withval; do 8805 IFS=$lt_save_ifs 8806 if test "X$lt_pkg" = "X$lt_p"; then 8807 pic_mode=yes 8808 fi 8809 done 8810 IFS=$lt_save_ifs 8811 ;; 8812 esac 8813else 8814 pic_mode=default 8815fi 8816 8817 8818 8819 8820 8821 8822 8823 8824 # Check whether --enable-fast-install was given. 8825if test "${enable_fast_install+set}" = set; then : 8826 enableval=$enable_fast_install; p=${PACKAGE-default} 8827 case $enableval in 8828 yes) enable_fast_install=yes ;; 8829 no) enable_fast_install=no ;; 8830 *) 8831 enable_fast_install=no 8832 # Look at the argument we got. We use all the common list separators. 8833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8834 for pkg in $enableval; do 8835 IFS=$lt_save_ifs 8836 if test "X$pkg" = "X$p"; then 8837 enable_fast_install=yes 8838 fi 8839 done 8840 IFS=$lt_save_ifs 8841 ;; 8842 esac 8843else 8844 enable_fast_install=yes 8845fi 8846 8847 8848 8849 8850 8851 8852 8853 8854 shared_archive_member_spec= 8855case $host,$enable_shared in 8856power*-*-aix[5-9]*,yes) 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8858$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8859 8860# Check whether --with-aix-soname was given. 8861if test "${with_aix_soname+set}" = set; then : 8862 withval=$with_aix_soname; case $withval in 8863 aix|svr4|both) 8864 ;; 8865 *) 8866 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8867 ;; 8868 esac 8869 lt_cv_with_aix_soname=$with_aix_soname 8870else 8871 if ${lt_cv_with_aix_soname+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 lt_cv_with_aix_soname=aix 8875fi 8876 8877 with_aix_soname=$lt_cv_with_aix_soname 8878fi 8879 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8881$as_echo "$with_aix_soname" >&6; } 8882 if test aix != "$with_aix_soname"; then 8883 # For the AIX way of multilib, we name the shared archive member 8884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8887 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8888 if test 64 = "${OBJECT_MODE-32}"; then 8889 shared_archive_member_spec=shr_64 8890 else 8891 shared_archive_member_spec=shr 8892 fi 8893 fi 8894 ;; 8895*) 8896 with_aix_soname=aix 8897 ;; 8898esac 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909# This can be used to rebuild libtool when needed 8910LIBTOOL_DEPS=$ltmain 8911 8912# Always use our own libtool. 8913LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944test -z "$LN_S" && LN_S="ln -s" 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959if test -n "${ZSH_VERSION+set}"; then 8960 setopt NO_GLOB_SUBST 8961fi 8962 8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8964$as_echo_n "checking for objdir... " >&6; } 8965if ${lt_cv_objdir+:} false; then : 8966 $as_echo_n "(cached) " >&6 8967else 8968 rm -f .libs 2>/dev/null 8969mkdir .libs 2>/dev/null 8970if test -d .libs; then 8971 lt_cv_objdir=.libs 8972else 8973 # MS-DOS does not allow filenames that begin with a dot. 8974 lt_cv_objdir=_libs 8975fi 8976rmdir .libs 2>/dev/null 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8979$as_echo "$lt_cv_objdir" >&6; } 8980objdir=$lt_cv_objdir 8981 8982 8983 8984 8985 8986cat >>confdefs.h <<_ACEOF 8987#define LT_OBJDIR "$lt_cv_objdir/" 8988_ACEOF 8989 8990 8991 8992 8993case $host_os in 8994aix3*) 8995 # AIX sometimes has problems with the GCC collect2 program. For some 8996 # reason, if we set the COLLECT_NAMES environment variable, the problems 8997 # vanish in a puff of smoke. 8998 if test set != "${COLLECT_NAMES+set}"; then 8999 COLLECT_NAMES= 9000 export COLLECT_NAMES 9001 fi 9002 ;; 9003esac 9004 9005# Global variables: 9006ofile=libtool 9007can_build_shared=yes 9008 9009# All known linkers require a '.a' archive for static linking (except MSVC, 9010# which needs '.lib'). 9011libext=a 9012 9013with_gnu_ld=$lt_cv_prog_gnu_ld 9014 9015old_CC=$CC 9016old_CFLAGS=$CFLAGS 9017 9018# Set sane defaults for various variables 9019test -z "$CC" && CC=cc 9020test -z "$LTCC" && LTCC=$CC 9021test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9022test -z "$LD" && LD=ld 9023test -z "$ac_objext" && ac_objext=o 9024 9025func_cc_basename $compiler 9026cc_basename=$func_cc_basename_result 9027 9028 9029# Only perform the check for file, if the check method requires it 9030test -z "$MAGIC_CMD" && MAGIC_CMD=file 9031case $deplibs_check_method in 9032file_magic*) 9033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9035$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9036if ${lt_cv_path_MAGIC_CMD+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 case $MAGIC_CMD in 9040[\\/*] | ?:[\\/]*) 9041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9042 ;; 9043*) 9044 lt_save_MAGIC_CMD=$MAGIC_CMD 9045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9047 for ac_dir in $ac_dummy; do 9048 IFS=$lt_save_ifs 9049 test -z "$ac_dir" && ac_dir=. 9050 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9052 if test -n "$file_magic_test_file"; then 9053 case $deplibs_check_method in 9054 "file_magic "*) 9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9058 $EGREP "$file_magic_regex" > /dev/null; then 9059 : 9060 else 9061 cat <<_LT_EOF 1>&2 9062 9063*** Warning: the command libtool uses to detect shared libraries, 9064*** $file_magic_cmd, produces output that libtool cannot recognize. 9065*** The result is that libtool may fail to recognize shared libraries 9066*** as such. This will affect the creation of libtool libraries that 9067*** depend on shared libraries, but programs linked with such libtool 9068*** libraries will work regardless of this problem. Nevertheless, you 9069*** may want to report the problem to your system manager and/or to 9070*** bug-libtool@gnu.org 9071 9072_LT_EOF 9073 fi ;; 9074 esac 9075 fi 9076 break 9077 fi 9078 done 9079 IFS=$lt_save_ifs 9080 MAGIC_CMD=$lt_save_MAGIC_CMD 9081 ;; 9082esac 9083fi 9084 9085MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9086if test -n "$MAGIC_CMD"; then 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9088$as_echo "$MAGIC_CMD" >&6; } 9089else 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9091$as_echo "no" >&6; } 9092fi 9093 9094 9095 9096 9097 9098if test -z "$lt_cv_path_MAGIC_CMD"; then 9099 if test -n "$ac_tool_prefix"; then 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9101$as_echo_n "checking for 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/file"; then 9117 lt_cv_path_MAGIC_CMD=$ac_dir/"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 else 9162 MAGIC_CMD=: 9163 fi 9164fi 9165 9166 fi 9167 ;; 9168esac 9169 9170# Use C for the default configuration in the libtool script 9171 9172lt_save_CC=$CC 9173ac_ext=c 9174ac_cpp='$CPP $CPPFLAGS' 9175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9177ac_compiler_gnu=$ac_cv_c_compiler_gnu 9178 9179 9180# Source file extension for C test sources. 9181ac_ext=c 9182 9183# Object file extension for compiled C test sources. 9184objext=o 9185objext=$objext 9186 9187# Code to be used in simple compile tests 9188lt_simple_compile_test_code="int some_variable = 0;" 9189 9190# Code to be used in simple link tests 9191lt_simple_link_test_code='int main(){return(0);}' 9192 9193 9194 9195 9196 9197 9198 9199# If no C compiler was specified, use CC. 9200LTCC=${LTCC-"$CC"} 9201 9202# If no C compiler flags were specified, use CFLAGS. 9203LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9204 9205# Allow CC to be a program name with arguments. 9206compiler=$CC 9207 9208# Save the default compiler, since it gets overwritten when the other 9209# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9210compiler_DEFAULT=$CC 9211 9212# save warnings/boilerplate of simple test code 9213ac_outfile=conftest.$ac_objext 9214echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9215eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9216_lt_compiler_boilerplate=`cat conftest.err` 9217$RM conftest* 9218 9219ac_outfile=conftest.$ac_objext 9220echo "$lt_simple_link_test_code" >conftest.$ac_ext 9221eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9222_lt_linker_boilerplate=`cat conftest.err` 9223$RM -r conftest* 9224 9225 9226## CAVEAT EMPTOR: 9227## There is no encapsulation within the following macros, do not change 9228## the running order or otherwise move them around unless you know exactly 9229## what you are doing... 9230if test -n "$compiler"; then 9231 9232lt_prog_compiler_no_builtin_flag= 9233 9234if test yes = "$GCC"; then 9235 case $cc_basename in 9236 nvcc*) 9237 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9238 *) 9239 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9240 esac 9241 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9243$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9244if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 lt_cv_prog_compiler_rtti_exceptions=no 9248 ac_outfile=conftest.$ac_objext 9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9250 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9251 # Insert the option either (1) after the last *FLAGS variable, or 9252 # (2) before a word containing "conftest.", or (3) at the end. 9253 # Note that $ac_compile itself does not contain backslashes and begins 9254 # with a dollar sign (not a hyphen), so the echo should work correctly. 9255 # The option is referenced via a variable to avoid confusing sed. 9256 lt_compile=`echo "$ac_compile" | $SED \ 9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9259 -e 's:$: $lt_compiler_flag:'` 9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9261 (eval "$lt_compile" 2>conftest.err) 9262 ac_status=$? 9263 cat conftest.err >&5 9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9265 if (exit $ac_status) && test -s "$ac_outfile"; then 9266 # The compiler can only warn and ignore the option if not recognized 9267 # So say no if there are warnings other than the usual output. 9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9271 lt_cv_prog_compiler_rtti_exceptions=yes 9272 fi 9273 fi 9274 $RM conftest* 9275 9276fi 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9278$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9279 9280if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9282else 9283 : 9284fi 9285 9286fi 9287 9288 9289 9290 9291 9292 9293 lt_prog_compiler_wl= 9294lt_prog_compiler_pic= 9295lt_prog_compiler_static= 9296 9297 9298 if test yes = "$GCC"; then 9299 lt_prog_compiler_wl='-Wl,' 9300 lt_prog_compiler_static='-static' 9301 9302 case $host_os in 9303 aix*) 9304 # All AIX code is PIC. 9305 if test ia64 = "$host_cpu"; then 9306 # AIX 5 now supports IA64 processor 9307 lt_prog_compiler_static='-Bstatic' 9308 fi 9309 lt_prog_compiler_pic='-fPIC' 9310 ;; 9311 9312 amigaos*) 9313 case $host_cpu in 9314 powerpc) 9315 # see comment about AmigaOS4 .so support 9316 lt_prog_compiler_pic='-fPIC' 9317 ;; 9318 m68k) 9319 # FIXME: we need at least 68020 code to build shared libraries, but 9320 # adding the '-m68020' flag to GCC prevents building anything better, 9321 # like '-m68040'. 9322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9323 ;; 9324 esac 9325 ;; 9326 9327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9328 # PIC is the default for these OSes. 9329 ;; 9330 9331 mingw* | cygwin* | pw32* | os2* | cegcc*) 9332 # This hack is so that the source file can tell whether it is being 9333 # built for inclusion in a dll (and should export symbols for example). 9334 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9335 # (--disable-auto-import) libraries 9336 lt_prog_compiler_pic='-DDLL_EXPORT' 9337 case $host_os in 9338 os2*) 9339 lt_prog_compiler_static='$wl-static' 9340 ;; 9341 esac 9342 ;; 9343 9344 darwin* | rhapsody*) 9345 # PIC is the default on this platform 9346 # Common symbols not allowed in MH_DYLIB files 9347 lt_prog_compiler_pic='-fno-common' 9348 ;; 9349 9350 haiku*) 9351 # PIC is the default for Haiku. 9352 # The "-static" flag exists, but is broken. 9353 lt_prog_compiler_static= 9354 ;; 9355 9356 hpux*) 9357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9359 # sets the default TLS model and affects inlining. 9360 case $host_cpu in 9361 hppa*64*) 9362 # +Z the default 9363 ;; 9364 *) 9365 lt_prog_compiler_pic='-fPIC' 9366 ;; 9367 esac 9368 ;; 9369 9370 interix[3-9]*) 9371 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9372 # Instead, we relocate shared libraries at runtime. 9373 ;; 9374 9375 msdosdjgpp*) 9376 # Just because we use GCC doesn't mean we suddenly get shared libraries 9377 # on systems that don't support them. 9378 lt_prog_compiler_can_build_shared=no 9379 enable_shared=no 9380 ;; 9381 9382 *nto* | *qnx*) 9383 # QNX uses GNU C++, but need to define -shared option too, otherwise 9384 # it will coredump. 9385 lt_prog_compiler_pic='-fPIC -shared' 9386 ;; 9387 9388 sysv4*MP*) 9389 if test -d /usr/nec; then 9390 lt_prog_compiler_pic=-Kconform_pic 9391 fi 9392 ;; 9393 9394 *) 9395 lt_prog_compiler_pic='-fPIC' 9396 ;; 9397 esac 9398 9399 case $cc_basename in 9400 nvcc*) # Cuda Compiler Driver 2.2 9401 lt_prog_compiler_wl='-Xlinker ' 9402 if test -n "$lt_prog_compiler_pic"; then 9403 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9404 fi 9405 ;; 9406 esac 9407 else 9408 # PORTME Check for flag to pass linker flags through the system compiler. 9409 case $host_os in 9410 aix*) 9411 lt_prog_compiler_wl='-Wl,' 9412 if test ia64 = "$host_cpu"; then 9413 # AIX 5 now supports IA64 processor 9414 lt_prog_compiler_static='-Bstatic' 9415 else 9416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9417 fi 9418 ;; 9419 9420 darwin* | rhapsody*) 9421 # PIC is the default on this platform 9422 # Common symbols not allowed in MH_DYLIB files 9423 lt_prog_compiler_pic='-fno-common' 9424 case $cc_basename in 9425 nagfor*) 9426 # NAG Fortran compiler 9427 lt_prog_compiler_wl='-Wl,-Wl,,' 9428 lt_prog_compiler_pic='-PIC' 9429 lt_prog_compiler_static='-Bstatic' 9430 ;; 9431 esac 9432 ;; 9433 9434 mingw* | cygwin* | pw32* | os2* | cegcc*) 9435 # This hack is so that the source file can tell whether it is being 9436 # built for inclusion in a dll (and should export symbols for example). 9437 lt_prog_compiler_pic='-DDLL_EXPORT' 9438 case $host_os in 9439 os2*) 9440 lt_prog_compiler_static='$wl-static' 9441 ;; 9442 esac 9443 ;; 9444 9445 hpux9* | hpux10* | hpux11*) 9446 lt_prog_compiler_wl='-Wl,' 9447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9448 # not for PA HP-UX. 9449 case $host_cpu in 9450 hppa*64*|ia64*) 9451 # +Z the default 9452 ;; 9453 *) 9454 lt_prog_compiler_pic='+Z' 9455 ;; 9456 esac 9457 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9458 lt_prog_compiler_static='$wl-a ${wl}archive' 9459 ;; 9460 9461 irix5* | irix6* | nonstopux*) 9462 lt_prog_compiler_wl='-Wl,' 9463 # PIC (with -KPIC) is the default. 9464 lt_prog_compiler_static='-non_shared' 9465 ;; 9466 9467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9468 case $cc_basename in 9469 # old Intel for x86_64, which still supported -KPIC. 9470 ecc*) 9471 lt_prog_compiler_wl='-Wl,' 9472 lt_prog_compiler_pic='-KPIC' 9473 lt_prog_compiler_static='-static' 9474 ;; 9475 # icc used to be incompatible with GCC. 9476 # ICC 10 doesn't accept -KPIC any more. 9477 icc* | ifort*) 9478 lt_prog_compiler_wl='-Wl,' 9479 lt_prog_compiler_pic='-fPIC' 9480 lt_prog_compiler_static='-static' 9481 ;; 9482 # Lahey Fortran 8.1. 9483 lf95*) 9484 lt_prog_compiler_wl='-Wl,' 9485 lt_prog_compiler_pic='--shared' 9486 lt_prog_compiler_static='--static' 9487 ;; 9488 nagfor*) 9489 # NAG Fortran compiler 9490 lt_prog_compiler_wl='-Wl,-Wl,,' 9491 lt_prog_compiler_pic='-PIC' 9492 lt_prog_compiler_static='-Bstatic' 9493 ;; 9494 tcc*) 9495 # Fabrice Bellard et al's Tiny C Compiler 9496 lt_prog_compiler_wl='-Wl,' 9497 lt_prog_compiler_pic='-fPIC' 9498 lt_prog_compiler_static='-static' 9499 ;; 9500 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9501 # Portland Group compilers (*not* the Pentium gcc compiler, 9502 # which looks to be a dead project) 9503 lt_prog_compiler_wl='-Wl,' 9504 lt_prog_compiler_pic='-fpic' 9505 lt_prog_compiler_static='-Bstatic' 9506 ;; 9507 ccc*) 9508 lt_prog_compiler_wl='-Wl,' 9509 # All Alpha code is PIC. 9510 lt_prog_compiler_static='-non_shared' 9511 ;; 9512 xl* | bgxl* | bgf* | mpixl*) 9513 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9514 lt_prog_compiler_wl='-Wl,' 9515 lt_prog_compiler_pic='-qpic' 9516 lt_prog_compiler_static='-qstaticlink' 9517 ;; 9518 *) 9519 case `$CC -V 2>&1 | sed 5q` in 9520 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9521 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9522 lt_prog_compiler_pic='-KPIC' 9523 lt_prog_compiler_static='-Bstatic' 9524 lt_prog_compiler_wl='' 9525 ;; 9526 *Sun\ F* | *Sun*Fortran*) 9527 lt_prog_compiler_pic='-KPIC' 9528 lt_prog_compiler_static='-Bstatic' 9529 lt_prog_compiler_wl='-Qoption ld ' 9530 ;; 9531 *Sun\ C*) 9532 # Sun C 5.9 9533 lt_prog_compiler_pic='-KPIC' 9534 lt_prog_compiler_static='-Bstatic' 9535 lt_prog_compiler_wl='-Wl,' 9536 ;; 9537 *Intel*\ [CF]*Compiler*) 9538 lt_prog_compiler_wl='-Wl,' 9539 lt_prog_compiler_pic='-fPIC' 9540 lt_prog_compiler_static='-static' 9541 ;; 9542 *Portland\ Group*) 9543 lt_prog_compiler_wl='-Wl,' 9544 lt_prog_compiler_pic='-fpic' 9545 lt_prog_compiler_static='-Bstatic' 9546 ;; 9547 esac 9548 ;; 9549 esac 9550 ;; 9551 9552 newsos6) 9553 lt_prog_compiler_pic='-KPIC' 9554 lt_prog_compiler_static='-Bstatic' 9555 ;; 9556 9557 *nto* | *qnx*) 9558 # QNX uses GNU C++, but need to define -shared option too, otherwise 9559 # it will coredump. 9560 lt_prog_compiler_pic='-fPIC -shared' 9561 ;; 9562 9563 osf3* | osf4* | osf5*) 9564 lt_prog_compiler_wl='-Wl,' 9565 # All OSF/1 code is PIC. 9566 lt_prog_compiler_static='-non_shared' 9567 ;; 9568 9569 rdos*) 9570 lt_prog_compiler_static='-non_shared' 9571 ;; 9572 9573 solaris*) 9574 lt_prog_compiler_pic='-KPIC' 9575 lt_prog_compiler_static='-Bstatic' 9576 case $cc_basename in 9577 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9578 lt_prog_compiler_wl='-Qoption ld ';; 9579 *) 9580 lt_prog_compiler_wl='-Wl,';; 9581 esac 9582 ;; 9583 9584 sunos4*) 9585 lt_prog_compiler_wl='-Qoption ld ' 9586 lt_prog_compiler_pic='-PIC' 9587 lt_prog_compiler_static='-Bstatic' 9588 ;; 9589 9590 sysv4 | sysv4.2uw2* | sysv4.3*) 9591 lt_prog_compiler_wl='-Wl,' 9592 lt_prog_compiler_pic='-KPIC' 9593 lt_prog_compiler_static='-Bstatic' 9594 ;; 9595 9596 sysv4*MP*) 9597 if test -d /usr/nec; then 9598 lt_prog_compiler_pic='-Kconform_pic' 9599 lt_prog_compiler_static='-Bstatic' 9600 fi 9601 ;; 9602 9603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9604 lt_prog_compiler_wl='-Wl,' 9605 lt_prog_compiler_pic='-KPIC' 9606 lt_prog_compiler_static='-Bstatic' 9607 ;; 9608 9609 unicos*) 9610 lt_prog_compiler_wl='-Wl,' 9611 lt_prog_compiler_can_build_shared=no 9612 ;; 9613 9614 uts4*) 9615 lt_prog_compiler_pic='-pic' 9616 lt_prog_compiler_static='-Bstatic' 9617 ;; 9618 9619 *) 9620 lt_prog_compiler_can_build_shared=no 9621 ;; 9622 esac 9623 fi 9624 9625case $host_os in 9626 # For platforms that do not support PIC, -DPIC is meaningless: 9627 *djgpp*) 9628 lt_prog_compiler_pic= 9629 ;; 9630 *) 9631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9632 ;; 9633esac 9634 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9636$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9637if ${lt_cv_prog_compiler_pic+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9641fi 9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9643$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9644lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9645 9646# 9647# Check to make sure the PIC flag actually works. 9648# 9649if test -n "$lt_prog_compiler_pic"; then 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9652if ${lt_cv_prog_compiler_pic_works+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 lt_cv_prog_compiler_pic_works=no 9656 ac_outfile=conftest.$ac_objext 9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9659 # Insert the option either (1) after the last *FLAGS variable, or 9660 # (2) before a word containing "conftest.", or (3) at the end. 9661 # Note that $ac_compile itself does not contain backslashes and begins 9662 # with a dollar sign (not a hyphen), so the echo should work correctly. 9663 # The option is referenced via a variable to avoid confusing sed. 9664 lt_compile=`echo "$ac_compile" | $SED \ 9665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9667 -e 's:$: $lt_compiler_flag:'` 9668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9669 (eval "$lt_compile" 2>conftest.err) 9670 ac_status=$? 9671 cat conftest.err >&5 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 if (exit $ac_status) && test -s "$ac_outfile"; then 9674 # The compiler can only warn and ignore the option if not recognized 9675 # So say no if there are warnings other than the usual output. 9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler_pic_works=yes 9680 fi 9681 fi 9682 $RM conftest* 9683 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9686$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9687 9688if test yes = "$lt_cv_prog_compiler_pic_works"; then 9689 case $lt_prog_compiler_pic in 9690 "" | " "*) ;; 9691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9692 esac 9693else 9694 lt_prog_compiler_pic= 9695 lt_prog_compiler_can_build_shared=no 9696fi 9697 9698fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710# 9711# Check to make sure the static flag actually works. 9712# 9713wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9715$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9716if ${lt_cv_prog_compiler_static_works+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 lt_cv_prog_compiler_static_works=no 9720 save_LDFLAGS=$LDFLAGS 9721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9724 # The linker can only warn and ignore the option if not recognized 9725 # So say no if there are warnings 9726 if test -s conftest.err; then 9727 # Append any errors to the config.log. 9728 cat conftest.err 1>&5 9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9731 if diff conftest.exp conftest.er2 >/dev/null; then 9732 lt_cv_prog_compiler_static_works=yes 9733 fi 9734 else 9735 lt_cv_prog_compiler_static_works=yes 9736 fi 9737 fi 9738 $RM -r conftest* 9739 LDFLAGS=$save_LDFLAGS 9740 9741fi 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9743$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9744 9745if test yes = "$lt_cv_prog_compiler_static_works"; then 9746 : 9747else 9748 lt_prog_compiler_static= 9749fi 9750 9751 9752 9753 9754 9755 9756 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9758$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9759if ${lt_cv_prog_compiler_c_o+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 lt_cv_prog_compiler_c_o=no 9763 $RM -r conftest 2>/dev/null 9764 mkdir conftest 9765 cd conftest 9766 mkdir out 9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9768 9769 lt_compiler_flag="-o out/conftest2.$ac_objext" 9770 # Insert the option either (1) after the last *FLAGS variable, or 9771 # (2) before a word containing "conftest.", or (3) at the end. 9772 # Note that $ac_compile itself does not contain backslashes and begins 9773 # with a dollar sign (not a hyphen), so the echo should work correctly. 9774 lt_compile=`echo "$ac_compile" | $SED \ 9775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9777 -e 's:$: $lt_compiler_flag:'` 9778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9779 (eval "$lt_compile" 2>out/conftest.err) 9780 ac_status=$? 9781 cat out/conftest.err >&5 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9784 then 9785 # The compiler can only warn and ignore the option if not recognized 9786 # So say no if there are warnings 9787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9790 lt_cv_prog_compiler_c_o=yes 9791 fi 9792 fi 9793 chmod u+w . 2>&5 9794 $RM conftest* 9795 # SGI C++ compiler will create directory out/ii_files/ for 9796 # template instantiation 9797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9798 $RM out/* && rmdir out 9799 cd .. 9800 $RM -r conftest 9801 $RM conftest* 9802 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9805$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9806 9807 9808 9809 9810 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9813$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9814if ${lt_cv_prog_compiler_c_o+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 lt_cv_prog_compiler_c_o=no 9818 $RM -r conftest 2>/dev/null 9819 mkdir conftest 9820 cd conftest 9821 mkdir out 9822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9823 9824 lt_compiler_flag="-o out/conftest2.$ac_objext" 9825 # Insert the option either (1) after the last *FLAGS variable, or 9826 # (2) before a word containing "conftest.", or (3) at the end. 9827 # Note that $ac_compile itself does not contain backslashes and begins 9828 # with a dollar sign (not a hyphen), so the echo should work correctly. 9829 lt_compile=`echo "$ac_compile" | $SED \ 9830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9832 -e 's:$: $lt_compiler_flag:'` 9833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9834 (eval "$lt_compile" 2>out/conftest.err) 9835 ac_status=$? 9836 cat out/conftest.err >&5 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9839 then 9840 # The compiler can only warn and ignore the option if not recognized 9841 # So say no if there are warnings 9842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9845 lt_cv_prog_compiler_c_o=yes 9846 fi 9847 fi 9848 chmod u+w . 2>&5 9849 $RM conftest* 9850 # SGI C++ compiler will create directory out/ii_files/ for 9851 # template instantiation 9852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9853 $RM out/* && rmdir out 9854 cd .. 9855 $RM -r conftest 9856 $RM conftest* 9857 9858fi 9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9860$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9861 9862 9863 9864 9865hard_links=nottested 9866if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9867 # do not overwrite the value of need_locks provided by the user 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9869$as_echo_n "checking if we can lock with hard links... " >&6; } 9870 hard_links=yes 9871 $RM conftest* 9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9873 touch conftest.a 9874 ln conftest.a conftest.b 2>&5 || hard_links=no 9875 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9877$as_echo "$hard_links" >&6; } 9878 if test no = "$hard_links"; then 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9880$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9881 need_locks=warn 9882 fi 9883else 9884 need_locks=no 9885fi 9886 9887 9888 9889 9890 9891 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9893$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9894 9895 runpath_var= 9896 allow_undefined_flag= 9897 always_export_symbols=no 9898 archive_cmds= 9899 archive_expsym_cmds= 9900 compiler_needs_object=no 9901 enable_shared_with_static_runtimes=no 9902 export_dynamic_flag_spec= 9903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9904 hardcode_automatic=no 9905 hardcode_direct=no 9906 hardcode_direct_absolute=no 9907 hardcode_libdir_flag_spec= 9908 hardcode_libdir_separator= 9909 hardcode_minus_L=no 9910 hardcode_shlibpath_var=unsupported 9911 inherit_rpath=no 9912 link_all_deplibs=unknown 9913 module_cmds= 9914 module_expsym_cmds= 9915 old_archive_from_new_cmds= 9916 old_archive_from_expsyms_cmds= 9917 thread_safe_flag_spec= 9918 whole_archive_flag_spec= 9919 # include_expsyms should be a list of space-separated symbols to be *always* 9920 # included in the symbol list 9921 include_expsyms= 9922 # exclude_expsyms can be an extended regexp of symbols to exclude 9923 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9924 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9925 # as well as any symbol that contains 'd'. 9926 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9928 # platforms (ab)use it in PIC code, but their linkers get confused if 9929 # the symbol is explicitly referenced. Since portable code cannot 9930 # rely on this symbol name, it's probably fine to never include it in 9931 # preloaded symbol tables. 9932 # Exclude shared library initialization/finalization symbols. 9933 extract_expsyms_cmds= 9934 9935 case $host_os in 9936 cygwin* | mingw* | pw32* | cegcc*) 9937 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9938 # When not using gcc, we currently assume that we are using 9939 # Microsoft Visual C++. 9940 if test yes != "$GCC"; then 9941 with_gnu_ld=no 9942 fi 9943 ;; 9944 interix*) 9945 # we just hope/assume this is gcc and not c89 (= MSVC++) 9946 with_gnu_ld=yes 9947 ;; 9948 openbsd* | bitrig*) 9949 with_gnu_ld=no 9950 ;; 9951 esac 9952 9953 ld_shlibs=yes 9954 9955 # On some targets, GNU ld is compatible enough with the native linker 9956 # that we're better off using the native interface for both. 9957 lt_use_gnu_ld_interface=no 9958 if test yes = "$with_gnu_ld"; then 9959 case $host_os in 9960 aix*) 9961 # The AIX port of GNU ld has always aspired to compatibility 9962 # with the native linker. However, as the warning in the GNU ld 9963 # block says, versions before 2.19.5* couldn't really create working 9964 # shared libraries, regardless of the interface used. 9965 case `$LD -v 2>&1` in 9966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9968 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9969 *) 9970 lt_use_gnu_ld_interface=yes 9971 ;; 9972 esac 9973 ;; 9974 *) 9975 lt_use_gnu_ld_interface=yes 9976 ;; 9977 esac 9978 fi 9979 9980 if test yes = "$lt_use_gnu_ld_interface"; then 9981 # If archive_cmds runs LD, not CC, wlarc should be empty 9982 wlarc='$wl' 9983 9984 # Set some defaults for GNU ld with shared library support. These 9985 # are reset later if shared libraries are not supported. Putting them 9986 # here allows them to be overridden if necessary. 9987 runpath_var=LD_RUN_PATH 9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9989 export_dynamic_flag_spec='$wl--export-dynamic' 9990 # ancient GNU ld didn't support --whole-archive et. al. 9991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9992 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9993 else 9994 whole_archive_flag_spec= 9995 fi 9996 supports_anon_versioning=no 9997 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9998 *GNU\ gold*) supports_anon_versioning=yes ;; 9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10002 *\ 2.11.*) ;; # other 2.11 versions 10003 *) supports_anon_versioning=yes ;; 10004 esac 10005 10006 # See if GNU ld supports shared libraries. 10007 case $host_os in 10008 aix[3-9]*) 10009 # On AIX/PPC, the GNU linker is very broken 10010 if test ia64 != "$host_cpu"; then 10011 ld_shlibs=no 10012 cat <<_LT_EOF 1>&2 10013 10014*** Warning: the GNU linker, at least up to release 2.19, is reported 10015*** to be unable to reliably create shared libraries on AIX. 10016*** Therefore, libtool is disabling shared libraries support. If you 10017*** really care for shared libraries, you may want to install binutils 10018*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10019*** You will then need to restart the configuration process. 10020 10021_LT_EOF 10022 fi 10023 ;; 10024 10025 amigaos*) 10026 case $host_cpu in 10027 powerpc) 10028 # see comment about AmigaOS4 .so support 10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10030 archive_expsym_cmds='' 10031 ;; 10032 m68k) 10033 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)' 10034 hardcode_libdir_flag_spec='-L$libdir' 10035 hardcode_minus_L=yes 10036 ;; 10037 esac 10038 ;; 10039 10040 beos*) 10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10042 allow_undefined_flag=unsupported 10043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10044 # support --undefined. This deserves some investigation. FIXME 10045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10046 else 10047 ld_shlibs=no 10048 fi 10049 ;; 10050 10051 cygwin* | mingw* | pw32* | cegcc*) 10052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10053 # as there is no search path for DLLs. 10054 hardcode_libdir_flag_spec='-L$libdir' 10055 export_dynamic_flag_spec='$wl--export-all-symbols' 10056 allow_undefined_flag=unsupported 10057 always_export_symbols=no 10058 enable_shared_with_static_runtimes=yes 10059 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' 10060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10061 10062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10064 # If the export-symbols file already is a .def file, use it as 10065 # is; otherwise, prepend EXPORTS... 10066 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10067 cp $export_symbols $output_objdir/$soname.def; 10068 else 10069 echo EXPORTS > $output_objdir/$soname.def; 10070 cat $export_symbols >> $output_objdir/$soname.def; 10071 fi~ 10072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10073 else 10074 ld_shlibs=no 10075 fi 10076 ;; 10077 10078 haiku*) 10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10080 link_all_deplibs=yes 10081 ;; 10082 10083 os2*) 10084 hardcode_libdir_flag_spec='-L$libdir' 10085 hardcode_minus_L=yes 10086 allow_undefined_flag=unsupported 10087 shrext_cmds=.dll 10088 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10091 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10092 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10094 emximp -o $lib $output_objdir/$libname.def' 10095 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10098 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10099 prefix_cmds="$SED"~ 10100 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10101 prefix_cmds="$prefix_cmds -e 1d"; 10102 fi~ 10103 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10104 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10106 emximp -o $lib $output_objdir/$libname.def' 10107 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10108 enable_shared_with_static_runtimes=yes 10109 ;; 10110 10111 interix[3-9]*) 10112 hardcode_direct=no 10113 hardcode_shlibpath_var=no 10114 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10115 export_dynamic_flag_spec='$wl-E' 10116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10117 # Instead, shared libraries are loaded at an image base (0x10000000 by 10118 # default) and relocated if they conflict, which is a slow very memory 10119 # consuming and fragmenting process. To avoid this, we pick a random, 10120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10121 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10123 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' 10124 ;; 10125 10126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10127 tmp_diet=no 10128 if test linux-dietlibc = "$host_os"; then 10129 case $cc_basename in 10130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10131 esac 10132 fi 10133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10134 && test no = "$tmp_diet" 10135 then 10136 tmp_addflag=' $pic_flag' 10137 tmp_sharedflag='-shared' 10138 case $cc_basename,$host_cpu in 10139 pgcc*) # Portland Group C compiler 10140 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' 10141 tmp_addflag=' $pic_flag' 10142 ;; 10143 pgf77* | pgf90* | pgf95* | pgfortran*) 10144 # Portland Group f77 and f90 compilers 10145 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' 10146 tmp_addflag=' $pic_flag -Mnomain' ;; 10147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10148 tmp_addflag=' -i_dynamic' ;; 10149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10150 tmp_addflag=' -i_dynamic -nofor_main' ;; 10151 ifc* | ifort*) # Intel Fortran compiler 10152 tmp_addflag=' -nofor_main' ;; 10153 lf95*) # Lahey Fortran 8.1 10154 whole_archive_flag_spec= 10155 tmp_sharedflag='--shared' ;; 10156 nagfor*) # NAGFOR 5.3 10157 tmp_sharedflag='-Wl,-shared' ;; 10158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10159 tmp_sharedflag='-qmkshrobj' 10160 tmp_addflag= ;; 10161 nvcc*) # Cuda Compiler Driver 2.2 10162 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' 10163 compiler_needs_object=yes 10164 ;; 10165 esac 10166 case `$CC -V 2>&1 | sed 5q` in 10167 *Sun\ C*) # Sun C 5.9 10168 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' 10169 compiler_needs_object=yes 10170 tmp_sharedflag='-G' ;; 10171 *Sun\ F*) # Sun Fortran 8.3 10172 tmp_sharedflag='-G' ;; 10173 esac 10174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10175 10176 if test yes = "$supports_anon_versioning"; then 10177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10179 echo "local: *; };" >> $output_objdir/$libname.ver~ 10180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10181 fi 10182 10183 case $cc_basename in 10184 tcc*) 10185 export_dynamic_flag_spec='-rdynamic' 10186 ;; 10187 xlf* | bgf* | bgxlf* | mpixlf*) 10188 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10189 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10191 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10192 if test yes = "$supports_anon_versioning"; then 10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10195 echo "local: *; };" >> $output_objdir/$libname.ver~ 10196 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10197 fi 10198 ;; 10199 esac 10200 else 10201 ld_shlibs=no 10202 fi 10203 ;; 10204 10205 netbsd*) 10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10208 wlarc= 10209 else 10210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10212 fi 10213 ;; 10214 10215 solaris*) 10216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10217 ld_shlibs=no 10218 cat <<_LT_EOF 1>&2 10219 10220*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10221*** create shared libraries on Solaris systems. Therefore, libtool 10222*** is disabling shared libraries support. We urge you to upgrade GNU 10223*** binutils to release 2.9.1 or newer. Another option is to modify 10224*** your PATH or compiler configuration so that the native linker is 10225*** used, and then restart. 10226 10227_LT_EOF 10228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10231 else 10232 ld_shlibs=no 10233 fi 10234 ;; 10235 10236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10237 case `$LD -v 2>&1` in 10238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10239 ld_shlibs=no 10240 cat <<_LT_EOF 1>&2 10241 10242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10243*** reliably create shared libraries on SCO systems. Therefore, libtool 10244*** is disabling shared libraries support. We urge you to upgrade GNU 10245*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10246*** your PATH or compiler configuration so that the native linker is 10247*** used, and then restart. 10248 10249_LT_EOF 10250 ;; 10251 *) 10252 # For security reasons, it is highly recommended that you always 10253 # use absolute paths for naming shared libraries, and exclude the 10254 # DT_RUNPATH tag from executables and libraries. But doing so 10255 # requires that you compile everything twice, which is a pain. 10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10260 else 10261 ld_shlibs=no 10262 fi 10263 ;; 10264 esac 10265 ;; 10266 10267 sunos4*) 10268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10269 wlarc= 10270 hardcode_direct=yes 10271 hardcode_shlibpath_var=no 10272 ;; 10273 10274 *) 10275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 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 else 10279 ld_shlibs=no 10280 fi 10281 ;; 10282 esac 10283 10284 if test no = "$ld_shlibs"; then 10285 runpath_var= 10286 hardcode_libdir_flag_spec= 10287 export_dynamic_flag_spec= 10288 whole_archive_flag_spec= 10289 fi 10290 else 10291 # PORTME fill in a description of your system's linker (not GNU ld) 10292 case $host_os in 10293 aix3*) 10294 allow_undefined_flag=unsupported 10295 always_export_symbols=yes 10296 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' 10297 # Note: this linker hardcodes the directories in LIBPATH if there 10298 # are no directories specified by -L. 10299 hardcode_minus_L=yes 10300 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10301 # Neither direct hardcoding nor static linking is supported with a 10302 # broken collect2. 10303 hardcode_direct=unsupported 10304 fi 10305 ;; 10306 10307 aix[4-9]*) 10308 if test ia64 = "$host_cpu"; then 10309 # On IA64, the linker does run time linking by default, so we don't 10310 # have to do anything special. 10311 aix_use_runtimelinking=no 10312 exp_sym_flag='-Bexport' 10313 no_entry_flag= 10314 else 10315 # If we're using GNU nm, then we don't want the "-C" option. 10316 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10317 # Without the "-l" option, or with the "-B" option, AIX nm treats 10318 # weak defined symbols like other global defined symbols, whereas 10319 # GNU nm marks them as "W". 10320 # While the 'weak' keyword is ignored in the Export File, we need 10321 # it in the Import File for the 'aix-soname' feature, so we have 10322 # to replace the "-B" option with "-P" for AIX nm. 10323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10324 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' 10325 else 10326 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' 10327 fi 10328 aix_use_runtimelinking=no 10329 10330 # Test if we are trying to use run time linking or normal 10331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10332 # have runtime linking enabled, and use it for executables. 10333 # For shared libraries, we enable/disable runtime linking 10334 # depending on the kind of the shared library created - 10335 # when "with_aix_soname,aix_use_runtimelinking" is: 10336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10337 # "aix,yes" lib.so shared, rtl:yes, for executables 10338 # lib.a static archive 10339 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10340 # lib.a(lib.so.V) shared, rtl:no, for executables 10341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10342 # lib.a(lib.so.V) shared, rtl:no 10343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10344 # lib.a static archive 10345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10346 for ld_flag in $LDFLAGS; do 10347 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10348 aix_use_runtimelinking=yes 10349 break 10350 fi 10351 done 10352 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10353 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10354 # so we don't have lib.a shared libs to link our executables. 10355 # We have to force runtime linking in this case. 10356 aix_use_runtimelinking=yes 10357 LDFLAGS="$LDFLAGS -Wl,-brtl" 10358 fi 10359 ;; 10360 esac 10361 10362 exp_sym_flag='-bexport' 10363 no_entry_flag='-bnoentry' 10364 fi 10365 10366 # When large executables or shared objects are built, AIX ld can 10367 # have problems creating the table of contents. If linking a library 10368 # or program results in "error TOC overflow" add -mminimal-toc to 10369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10371 10372 archive_cmds='' 10373 hardcode_direct=yes 10374 hardcode_direct_absolute=yes 10375 hardcode_libdir_separator=':' 10376 link_all_deplibs=yes 10377 file_list_spec='$wl-f,' 10378 case $with_aix_soname,$aix_use_runtimelinking in 10379 aix,*) ;; # traditional, no import file 10380 svr4,* | *,yes) # use import file 10381 # The Import File defines what to hardcode. 10382 hardcode_direct=no 10383 hardcode_direct_absolute=no 10384 ;; 10385 esac 10386 10387 if test yes = "$GCC"; then 10388 case $host_os in aix4.[012]|aix4.[012].*) 10389 # We only want to do this on AIX 4.2 and lower, the check 10390 # below for broken collect2 doesn't work under 4.3+ 10391 collect2name=`$CC -print-prog-name=collect2` 10392 if test -f "$collect2name" && 10393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10394 then 10395 # We have reworked collect2 10396 : 10397 else 10398 # We have old collect2 10399 hardcode_direct=unsupported 10400 # It fails to find uninstalled libraries when the uninstalled 10401 # path is not listed in the libpath. Setting hardcode_minus_L 10402 # to unsupported forces relinking 10403 hardcode_minus_L=yes 10404 hardcode_libdir_flag_spec='-L$libdir' 10405 hardcode_libdir_separator= 10406 fi 10407 ;; 10408 esac 10409 shared_flag='-shared' 10410 if test yes = "$aix_use_runtimelinking"; then 10411 shared_flag="$shared_flag "'$wl-G' 10412 fi 10413 # Need to ensure runtime linking is disabled for the traditional 10414 # shared library, or the linker may eventually find shared libraries 10415 # /with/ Import File - we do not want to mix them. 10416 shared_flag_aix='-shared' 10417 shared_flag_svr4='-shared $wl-G' 10418 else 10419 # not using gcc 10420 if test ia64 = "$host_cpu"; then 10421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10422 # chokes on -Wl,-G. The following line is correct: 10423 shared_flag='-G' 10424 else 10425 if test yes = "$aix_use_runtimelinking"; then 10426 shared_flag='$wl-G' 10427 else 10428 shared_flag='$wl-bM:SRE' 10429 fi 10430 shared_flag_aix='$wl-bM:SRE' 10431 shared_flag_svr4='$wl-G' 10432 fi 10433 fi 10434 10435 export_dynamic_flag_spec='$wl-bexpall' 10436 # It seems that -bexpall does not export symbols beginning with 10437 # underscore (_), so it is better to generate a list of symbols to export. 10438 always_export_symbols=yes 10439 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10440 # Warning - without using the other runtime loading flags (-brtl), 10441 # -berok will link without error, but may produce a broken library. 10442 allow_undefined_flag='-berok' 10443 # Determine the default libpath from the value encoded in an 10444 # empty executable. 10445 if test set = "${lt_cv_aix_libpath+set}"; then 10446 aix_libpath=$lt_cv_aix_libpath 10447else 10448 if ${lt_cv_aix_libpath_+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453 10454int 10455main () 10456{ 10457 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_c_try_link "$LINENO"; then : 10463 10464 lt_aix_libpath_sed=' 10465 /Import File Strings/,/^$/ { 10466 /^0/ { 10467 s/^0 *\([^ ]*\) *$/\1/ 10468 p 10469 } 10470 }' 10471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10472 # Check for a 64-bit object if we didn't find anything. 10473 if test -z "$lt_cv_aix_libpath_"; then 10474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10475 fi 10476fi 10477rm -f core conftest.err conftest.$ac_objext \ 10478 conftest$ac_exeext conftest.$ac_ext 10479 if test -z "$lt_cv_aix_libpath_"; then 10480 lt_cv_aix_libpath_=/usr/lib:/lib 10481 fi 10482 10483fi 10484 10485 aix_libpath=$lt_cv_aix_libpath_ 10486fi 10487 10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10489 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 10490 else 10491 if test ia64 = "$host_cpu"; then 10492 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10493 allow_undefined_flag="-z nodefs" 10494 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" 10495 else 10496 # Determine the default libpath from the value encoded in an 10497 # empty executable. 10498 if test set = "${lt_cv_aix_libpath+set}"; then 10499 aix_libpath=$lt_cv_aix_libpath 10500else 10501 if ${lt_cv_aix_libpath_+:} false; then : 10502 $as_echo_n "(cached) " >&6 10503else 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506 10507int 10508main () 10509{ 10510 10511 ; 10512 return 0; 10513} 10514_ACEOF 10515if ac_fn_c_try_link "$LINENO"; then : 10516 10517 lt_aix_libpath_sed=' 10518 /Import File Strings/,/^$/ { 10519 /^0/ { 10520 s/^0 *\([^ ]*\) *$/\1/ 10521 p 10522 } 10523 }' 10524 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10525 # Check for a 64-bit object if we didn't find anything. 10526 if test -z "$lt_cv_aix_libpath_"; then 10527 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10528 fi 10529fi 10530rm -f core conftest.err conftest.$ac_objext \ 10531 conftest$ac_exeext conftest.$ac_ext 10532 if test -z "$lt_cv_aix_libpath_"; then 10533 lt_cv_aix_libpath_=/usr/lib:/lib 10534 fi 10535 10536fi 10537 10538 aix_libpath=$lt_cv_aix_libpath_ 10539fi 10540 10541 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10542 # Warning - without using the other run time loading flags, 10543 # -berok will link without error, but may produce a broken library. 10544 no_undefined_flag=' $wl-bernotok' 10545 allow_undefined_flag=' $wl-berok' 10546 if test yes = "$with_gnu_ld"; then 10547 # We only use this code for GNU lds that support --whole-archive. 10548 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10549 else 10550 # Exported symbols can be pulled into shared objects from archives 10551 whole_archive_flag_spec='$convenience' 10552 fi 10553 archive_cmds_need_lc=yes 10554 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10555 # -brtl affects multiple linker settings, -berok does not and is overridden later 10556 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10557 if test svr4 != "$with_aix_soname"; then 10558 # This is similar to how AIX traditionally builds its shared libraries. 10559 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' 10560 fi 10561 if test aix != "$with_aix_soname"; then 10562 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' 10563 else 10564 # used by -dlpreopen to get the symbols 10565 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10566 fi 10567 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10568 fi 10569 fi 10570 ;; 10571 10572 amigaos*) 10573 case $host_cpu in 10574 powerpc) 10575 # see comment about AmigaOS4 .so support 10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10577 archive_expsym_cmds='' 10578 ;; 10579 m68k) 10580 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)' 10581 hardcode_libdir_flag_spec='-L$libdir' 10582 hardcode_minus_L=yes 10583 ;; 10584 esac 10585 ;; 10586 10587 bsdi[45]*) 10588 export_dynamic_flag_spec=-rdynamic 10589 ;; 10590 10591 cygwin* | mingw* | pw32* | cegcc*) 10592 # When not using gcc, we currently assume that we are using 10593 # Microsoft Visual C++. 10594 # hardcode_libdir_flag_spec is actually meaningless, as there is 10595 # no search path for DLLs. 10596 case $cc_basename in 10597 cl*) 10598 # Native MSVC 10599 hardcode_libdir_flag_spec=' ' 10600 allow_undefined_flag=unsupported 10601 always_export_symbols=yes 10602 file_list_spec='@' 10603 # Tell ltmain to make .lib files, not .a files. 10604 libext=lib 10605 # Tell ltmain to make .dll files, not .so files. 10606 shrext_cmds=.dll 10607 # FIXME: Setting linknames here is a bad hack. 10608 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10610 cp "$export_symbols" "$output_objdir/$soname.def"; 10611 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10612 else 10613 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10614 fi~ 10615 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10616 linknames=' 10617 # The linker will not automatically build a static lib if we build a DLL. 10618 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10619 enable_shared_with_static_runtimes=yes 10620 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10622 # Don't use ranlib 10623 old_postinstall_cmds='chmod 644 $oldlib' 10624 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10625 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10626 case $lt_outputfile in 10627 *.exe|*.EXE) ;; 10628 *) 10629 lt_outputfile=$lt_outputfile.exe 10630 lt_tool_outputfile=$lt_tool_outputfile.exe 10631 ;; 10632 esac~ 10633 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10634 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10635 $RM "$lt_outputfile.manifest"; 10636 fi' 10637 ;; 10638 *) 10639 # Assume MSVC wrapper 10640 hardcode_libdir_flag_spec=' ' 10641 allow_undefined_flag=unsupported 10642 # Tell ltmain to make .lib files, not .a files. 10643 libext=lib 10644 # Tell ltmain to make .dll files, not .so files. 10645 shrext_cmds=.dll 10646 # FIXME: Setting linknames here is a bad hack. 10647 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10648 # The linker will automatically build a .lib file if we build a DLL. 10649 old_archive_from_new_cmds='true' 10650 # FIXME: Should let the user specify the lib program. 10651 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10652 enable_shared_with_static_runtimes=yes 10653 ;; 10654 esac 10655 ;; 10656 10657 darwin* | rhapsody*) 10658 10659 10660 archive_cmds_need_lc=no 10661 hardcode_direct=no 10662 hardcode_automatic=yes 10663 hardcode_shlibpath_var=unsupported 10664 if test yes = "$lt_cv_ld_force_load"; then 10665 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\"`' 10666 10667 else 10668 whole_archive_flag_spec='' 10669 fi 10670 link_all_deplibs=yes 10671 allow_undefined_flag=$_lt_dar_allow_undefined 10672 case $cc_basename in 10673 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10674 *) _lt_dar_can_shared=$GCC ;; 10675 esac 10676 if test yes = "$_lt_dar_can_shared"; then 10677 output_verbose_link_cmd=func_echo_all 10678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10680 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" 10681 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" 10682 10683 else 10684 ld_shlibs=no 10685 fi 10686 10687 ;; 10688 10689 dgux*) 10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10691 hardcode_libdir_flag_spec='-L$libdir' 10692 hardcode_shlibpath_var=no 10693 ;; 10694 10695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10696 # support. Future versions do this automatically, but an explicit c++rt0.o 10697 # does not break anything, and helps significantly (at the cost of a little 10698 # extra space). 10699 freebsd2.2*) 10700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10701 hardcode_libdir_flag_spec='-R$libdir' 10702 hardcode_direct=yes 10703 hardcode_shlibpath_var=no 10704 ;; 10705 10706 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10707 freebsd2.*) 10708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10709 hardcode_direct=yes 10710 hardcode_minus_L=yes 10711 hardcode_shlibpath_var=no 10712 ;; 10713 10714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10715 freebsd* | dragonfly*) 10716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10717 hardcode_libdir_flag_spec='-R$libdir' 10718 hardcode_direct=yes 10719 hardcode_shlibpath_var=no 10720 ;; 10721 10722 hpux9*) 10723 if test yes = "$GCC"; then 10724 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' 10725 else 10726 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' 10727 fi 10728 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10729 hardcode_libdir_separator=: 10730 hardcode_direct=yes 10731 10732 # hardcode_minus_L: Not really in the search PATH, 10733 # but as the default location of the library. 10734 hardcode_minus_L=yes 10735 export_dynamic_flag_spec='$wl-E' 10736 ;; 10737 10738 hpux10*) 10739 if test yes,no = "$GCC,$with_gnu_ld"; then 10740 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10741 else 10742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10743 fi 10744 if test no = "$with_gnu_ld"; then 10745 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10746 hardcode_libdir_separator=: 10747 hardcode_direct=yes 10748 hardcode_direct_absolute=yes 10749 export_dynamic_flag_spec='$wl-E' 10750 # hardcode_minus_L: Not really in the search PATH, 10751 # but as the default location of the library. 10752 hardcode_minus_L=yes 10753 fi 10754 ;; 10755 10756 hpux11*) 10757 if test yes,no = "$GCC,$with_gnu_ld"; then 10758 case $host_cpu in 10759 hppa*64*) 10760 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10761 ;; 10762 ia64*) 10763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10764 ;; 10765 *) 10766 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10767 ;; 10768 esac 10769 else 10770 case $host_cpu in 10771 hppa*64*) 10772 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10773 ;; 10774 ia64*) 10775 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10776 ;; 10777 *) 10778 10779 # Older versions of the 11.00 compiler do not understand -b yet 10780 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10782$as_echo_n "checking if $CC understands -b... " >&6; } 10783if ${lt_cv_prog_compiler__b+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785else 10786 lt_cv_prog_compiler__b=no 10787 save_LDFLAGS=$LDFLAGS 10788 LDFLAGS="$LDFLAGS -b" 10789 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10791 # The linker can only warn and ignore the option if not recognized 10792 # So say no if there are warnings 10793 if test -s conftest.err; then 10794 # Append any errors to the config.log. 10795 cat conftest.err 1>&5 10796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10798 if diff conftest.exp conftest.er2 >/dev/null; then 10799 lt_cv_prog_compiler__b=yes 10800 fi 10801 else 10802 lt_cv_prog_compiler__b=yes 10803 fi 10804 fi 10805 $RM -r conftest* 10806 LDFLAGS=$save_LDFLAGS 10807 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10810$as_echo "$lt_cv_prog_compiler__b" >&6; } 10811 10812if test yes = "$lt_cv_prog_compiler__b"; then 10813 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10814else 10815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10816fi 10817 10818 ;; 10819 esac 10820 fi 10821 if test no = "$with_gnu_ld"; then 10822 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10823 hardcode_libdir_separator=: 10824 10825 case $host_cpu in 10826 hppa*64*|ia64*) 10827 hardcode_direct=no 10828 hardcode_shlibpath_var=no 10829 ;; 10830 *) 10831 hardcode_direct=yes 10832 hardcode_direct_absolute=yes 10833 export_dynamic_flag_spec='$wl-E' 10834 10835 # hardcode_minus_L: Not really in the search PATH, 10836 # but as the default location of the library. 10837 hardcode_minus_L=yes 10838 ;; 10839 esac 10840 fi 10841 ;; 10842 10843 irix5* | irix6* | nonstopux*) 10844 if test yes = "$GCC"; then 10845 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' 10846 # Try to use the -exported_symbol ld option, if it does not 10847 # work, assume that -exports_file does not work either and 10848 # implicitly export all symbols. 10849 # This should be the same for all languages, so no per-tag cache variable. 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10851$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10852if ${lt_cv_irix_exported_symbol+:} false; then : 10853 $as_echo_n "(cached) " >&6 10854else 10855 save_LDFLAGS=$LDFLAGS 10856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859int foo (void) { return 0; } 10860_ACEOF 10861if ac_fn_c_try_link "$LINENO"; then : 10862 lt_cv_irix_exported_symbol=yes 10863else 10864 lt_cv_irix_exported_symbol=no 10865fi 10866rm -f core conftest.err conftest.$ac_objext \ 10867 conftest$ac_exeext conftest.$ac_ext 10868 LDFLAGS=$save_LDFLAGS 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10871$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10872 if test yes = "$lt_cv_irix_exported_symbol"; then 10873 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' 10874 fi 10875 else 10876 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' 10877 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' 10878 fi 10879 archive_cmds_need_lc='no' 10880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10881 hardcode_libdir_separator=: 10882 inherit_rpath=yes 10883 link_all_deplibs=yes 10884 ;; 10885 10886 linux*) 10887 case $cc_basename in 10888 tcc*) 10889 # Fabrice Bellard et al's Tiny C Compiler 10890 ld_shlibs=yes 10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10892 ;; 10893 esac 10894 ;; 10895 10896 netbsd*) 10897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10899 else 10900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10901 fi 10902 hardcode_libdir_flag_spec='-R$libdir' 10903 hardcode_direct=yes 10904 hardcode_shlibpath_var=no 10905 ;; 10906 10907 newsos6) 10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10909 hardcode_direct=yes 10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10911 hardcode_libdir_separator=: 10912 hardcode_shlibpath_var=no 10913 ;; 10914 10915 *nto* | *qnx*) 10916 ;; 10917 10918 openbsd* | bitrig*) 10919 if test -f /usr/libexec/ld.so; then 10920 hardcode_direct=yes 10921 hardcode_shlibpath_var=no 10922 hardcode_direct_absolute=yes 10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10926 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10927 export_dynamic_flag_spec='$wl-E' 10928 else 10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10930 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10931 fi 10932 else 10933 ld_shlibs=no 10934 fi 10935 ;; 10936 10937 os2*) 10938 hardcode_libdir_flag_spec='-L$libdir' 10939 hardcode_minus_L=yes 10940 allow_undefined_flag=unsupported 10941 shrext_cmds=.dll 10942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10945 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10948 emximp -o $lib $output_objdir/$libname.def' 10949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10952 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10953 prefix_cmds="$SED"~ 10954 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10955 prefix_cmds="$prefix_cmds -e 1d"; 10956 fi~ 10957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10960 emximp -o $lib $output_objdir/$libname.def' 10961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10962 enable_shared_with_static_runtimes=yes 10963 ;; 10964 10965 osf3*) 10966 if test yes = "$GCC"; then 10967 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10968 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' 10969 else 10970 allow_undefined_flag=' -expect_unresolved \*' 10971 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' 10972 fi 10973 archive_cmds_need_lc='no' 10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10975 hardcode_libdir_separator=: 10976 ;; 10977 10978 osf4* | osf5*) # as osf3* with the addition of -msym flag 10979 if test yes = "$GCC"; then 10980 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10981 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' 10982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10983 else 10984 allow_undefined_flag=' -expect_unresolved \*' 10985 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' 10986 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~ 10987 $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' 10988 10989 # Both c and cxx compiler support -rpath directly 10990 hardcode_libdir_flag_spec='-rpath $libdir' 10991 fi 10992 archive_cmds_need_lc='no' 10993 hardcode_libdir_separator=: 10994 ;; 10995 10996 solaris*) 10997 no_undefined_flag=' -z defs' 10998 if test yes = "$GCC"; then 10999 wlarc='$wl' 11000 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11002 $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' 11003 else 11004 case `$CC -V 2>&1` in 11005 *"Compilers 5.0"*) 11006 wlarc='' 11007 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11009 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11010 ;; 11011 *) 11012 wlarc='$wl' 11013 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11015 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11016 ;; 11017 esac 11018 fi 11019 hardcode_libdir_flag_spec='-R$libdir' 11020 hardcode_shlibpath_var=no 11021 case $host_os in 11022 solaris2.[0-5] | solaris2.[0-5].*) ;; 11023 *) 11024 # The compiler driver will combine and reorder linker options, 11025 # but understands '-z linker_flag'. GCC discards it without '$wl', 11026 # but is careful enough not to reorder. 11027 # Supported since Solaris 2.6 (maybe 2.5.1?) 11028 if test yes = "$GCC"; then 11029 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11030 else 11031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11032 fi 11033 ;; 11034 esac 11035 link_all_deplibs=yes 11036 ;; 11037 11038 sunos4*) 11039 if test sequent = "$host_vendor"; then 11040 # Use $CC to link under sequent, because it throws in some extra .o 11041 # files that make .init and .fini sections work. 11042 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11043 else 11044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11045 fi 11046 hardcode_libdir_flag_spec='-L$libdir' 11047 hardcode_direct=yes 11048 hardcode_minus_L=yes 11049 hardcode_shlibpath_var=no 11050 ;; 11051 11052 sysv4) 11053 case $host_vendor in 11054 sni) 11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11056 hardcode_direct=yes # is this really true??? 11057 ;; 11058 siemens) 11059 ## LD is ld it makes a PLAMLIB 11060 ## CC just makes a GrossModule. 11061 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11062 reload_cmds='$CC -r -o $output$reload_objs' 11063 hardcode_direct=no 11064 ;; 11065 motorola) 11066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11067 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11068 ;; 11069 esac 11070 runpath_var='LD_RUN_PATH' 11071 hardcode_shlibpath_var=no 11072 ;; 11073 11074 sysv4.3*) 11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11076 hardcode_shlibpath_var=no 11077 export_dynamic_flag_spec='-Bexport' 11078 ;; 11079 11080 sysv4*MP*) 11081 if test -d /usr/nec; then 11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11083 hardcode_shlibpath_var=no 11084 runpath_var=LD_RUN_PATH 11085 hardcode_runpath_var=yes 11086 ld_shlibs=yes 11087 fi 11088 ;; 11089 11090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11091 no_undefined_flag='$wl-z,text' 11092 archive_cmds_need_lc=no 11093 hardcode_shlibpath_var=no 11094 runpath_var='LD_RUN_PATH' 11095 11096 if test yes = "$GCC"; then 11097 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11098 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11099 else 11100 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11101 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 fi 11103 ;; 11104 11105 sysv5* | sco3.2v5* | sco5v6*) 11106 # Note: We CANNOT use -z defs as we might desire, because we do not 11107 # link with -lc, and that would cause any symbols used from libc to 11108 # always be unresolved, which means just about no library would 11109 # ever link correctly. If we're not using GNU ld we use -z text 11110 # though, which does catch some bad symbols but isn't as heavy-handed 11111 # as -z defs. 11112 no_undefined_flag='$wl-z,text' 11113 allow_undefined_flag='$wl-z,nodefs' 11114 archive_cmds_need_lc=no 11115 hardcode_shlibpath_var=no 11116 hardcode_libdir_flag_spec='$wl-R,$libdir' 11117 hardcode_libdir_separator=':' 11118 link_all_deplibs=yes 11119 export_dynamic_flag_spec='$wl-Bexport' 11120 runpath_var='LD_RUN_PATH' 11121 11122 if test yes = "$GCC"; then 11123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11125 else 11126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11128 fi 11129 ;; 11130 11131 uts4*) 11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11133 hardcode_libdir_flag_spec='-L$libdir' 11134 hardcode_shlibpath_var=no 11135 ;; 11136 11137 *) 11138 ld_shlibs=no 11139 ;; 11140 esac 11141 11142 if test sni = "$host_vendor"; then 11143 case $host in 11144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11145 export_dynamic_flag_spec='$wl-Blargedynsym' 11146 ;; 11147 esac 11148 fi 11149 fi 11150 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11152$as_echo "$ld_shlibs" >&6; } 11153test no = "$ld_shlibs" && can_build_shared=no 11154 11155with_gnu_ld=$with_gnu_ld 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171# 11172# Do we need to explicitly link libc? 11173# 11174case "x$archive_cmds_need_lc" in 11175x|xyes) 11176 # Assume -lc should be added 11177 archive_cmds_need_lc=yes 11178 11179 if test yes,yes = "$GCC,$enable_shared"; then 11180 case $archive_cmds in 11181 *'~'*) 11182 # FIXME: we may have to deal with multi-command sequences. 11183 ;; 11184 '$CC '*) 11185 # Test whether the compiler implicitly links with -lc since on some 11186 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11187 # to ld, don't add -lc before -lgcc. 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11189$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11190if ${lt_cv_archive_cmds_need_lc+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 $RM conftest* 11194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11195 11196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11197 (eval $ac_compile) 2>&5 11198 ac_status=$? 11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11200 test $ac_status = 0; } 2>conftest.err; then 11201 soname=conftest 11202 lib=conftest 11203 libobjs=conftest.$ac_objext 11204 deplibs= 11205 wl=$lt_prog_compiler_wl 11206 pic_flag=$lt_prog_compiler_pic 11207 compiler_flags=-v 11208 linker_flags=-v 11209 verstring= 11210 output_objdir=. 11211 libname=conftest 11212 lt_save_allow_undefined_flag=$allow_undefined_flag 11213 allow_undefined_flag= 11214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11215 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11216 ac_status=$? 11217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11218 test $ac_status = 0; } 11219 then 11220 lt_cv_archive_cmds_need_lc=no 11221 else 11222 lt_cv_archive_cmds_need_lc=yes 11223 fi 11224 allow_undefined_flag=$lt_save_allow_undefined_flag 11225 else 11226 cat conftest.err 1>&5 11227 fi 11228 $RM conftest* 11229 11230fi 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11232$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11233 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11234 ;; 11235 esac 11236 fi 11237 ;; 11238esac 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11392$as_echo_n "checking dynamic linker characteristics... " >&6; } 11393 11394if test yes = "$GCC"; then 11395 case $host_os in 11396 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11397 *) lt_awk_arg='/^libraries:/' ;; 11398 esac 11399 case $host_os in 11400 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11401 *) lt_sed_strip_eq='s|=/|/|g' ;; 11402 esac 11403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11404 case $lt_search_path_spec in 11405 *\;*) 11406 # if the path contains ";" then we assume it to be the separator 11407 # otherwise default to the standard path separator (i.e. ":") - it is 11408 # assumed that no part of a normal pathname contains ";" but that should 11409 # okay in the real world where ";" in dirpaths is itself problematic. 11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11411 ;; 11412 *) 11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11414 ;; 11415 esac 11416 # Ok, now we have the path, separated by spaces, we can step through it 11417 # and add multilib dir if necessary... 11418 lt_tmp_lt_search_path_spec= 11419 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11420 # ...but if some path component already ends with the multilib dir we assume 11421 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11422 case "$lt_multi_os_dir; $lt_search_path_spec " in 11423 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11424 lt_multi_os_dir= 11425 ;; 11426 esac 11427 for lt_sys_path in $lt_search_path_spec; do 11428 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11430 elif test -n "$lt_multi_os_dir"; then 11431 test -d "$lt_sys_path" && \ 11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11433 fi 11434 done 11435 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11436BEGIN {RS = " "; FS = "/|\n";} { 11437 lt_foo = ""; 11438 lt_count = 0; 11439 for (lt_i = NF; lt_i > 0; lt_i--) { 11440 if ($lt_i != "" && $lt_i != ".") { 11441 if ($lt_i == "..") { 11442 lt_count++; 11443 } else { 11444 if (lt_count == 0) { 11445 lt_foo = "/" $lt_i lt_foo; 11446 } else { 11447 lt_count--; 11448 } 11449 } 11450 } 11451 } 11452 if (lt_foo != "") { lt_freq[lt_foo]++; } 11453 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11454}'` 11455 # AWK program above erroneously prepends '/' to C:/dos/paths 11456 # for these hosts. 11457 case $host_os in 11458 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11459 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11460 esac 11461 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11462else 11463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11464fi 11465library_names_spec= 11466libname_spec='lib$name' 11467soname_spec= 11468shrext_cmds=.so 11469postinstall_cmds= 11470postuninstall_cmds= 11471finish_cmds= 11472finish_eval= 11473shlibpath_var= 11474shlibpath_overrides_runpath=unknown 11475version_type=none 11476dynamic_linker="$host_os ld.so" 11477sys_lib_dlsearch_path_spec="/lib /usr/lib" 11478need_lib_prefix=unknown 11479hardcode_into_libs=no 11480 11481# when you set need_version to no, make sure it does not cause -set_version 11482# flags to be left without arguments 11483need_version=unknown 11484 11485 11486 11487case $host_os in 11488aix3*) 11489 version_type=linux # correct to gnu/linux during the next big refactor 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11491 shlibpath_var=LIBPATH 11492 11493 # AIX 3 has no versioning support, so we append a major version to the name. 11494 soname_spec='$libname$release$shared_ext$major' 11495 ;; 11496 11497aix[4-9]*) 11498 version_type=linux # correct to gnu/linux during the next big refactor 11499 need_lib_prefix=no 11500 need_version=no 11501 hardcode_into_libs=yes 11502 if test ia64 = "$host_cpu"; then 11503 # AIX 5 supports IA64 11504 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11505 shlibpath_var=LD_LIBRARY_PATH 11506 else 11507 # With GCC up to 2.95.x, collect2 would create an import file 11508 # for dependence libraries. The import file would start with 11509 # the line '#! .'. This would cause the generated library to 11510 # depend on '.', always an invalid library. This was fixed in 11511 # development snapshots of GCC prior to 3.0. 11512 case $host_os in 11513 aix4 | aix4.[01] | aix4.[01].*) 11514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11515 echo ' yes ' 11516 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11517 : 11518 else 11519 can_build_shared=no 11520 fi 11521 ;; 11522 esac 11523 # Using Import Files as archive members, it is possible to support 11524 # filename-based versioning of shared library archives on AIX. While 11525 # this would work for both with and without runtime linking, it will 11526 # prevent static linking of such archives. So we do filename-based 11527 # shared library versioning with .so extension only, which is used 11528 # when both runtime linking and shared linking is enabled. 11529 # Unfortunately, runtime linking may impact performance, so we do 11530 # not want this to be the default eventually. Also, we use the 11531 # versioned .so libs for executables only if there is the -brtl 11532 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11533 # To allow for filename-based versioning support, we need to create 11534 # libNAME.so.V as an archive file, containing: 11535 # *) an Import File, referring to the versioned filename of the 11536 # archive as well as the shared archive member, telling the 11537 # bitwidth (32 or 64) of that shared object, and providing the 11538 # list of exported symbols of that shared object, eventually 11539 # decorated with the 'weak' keyword 11540 # *) the shared object with the F_LOADONLY flag set, to really avoid 11541 # it being seen by the linker. 11542 # At run time we better use the real file rather than another symlink, 11543 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11544 11545 case $with_aix_soname,$aix_use_runtimelinking in 11546 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11547 # soname into executable. Probably we can add versioning support to 11548 # collect2, so additional links can be useful in future. 11549 aix,yes) # traditional libtool 11550 dynamic_linker='AIX unversionable lib.so' 11551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11552 # instead of lib<name>.a to let people know that these are not 11553 # typical AIX shared libraries. 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11555 ;; 11556 aix,no) # traditional AIX only 11557 dynamic_linker='AIX lib.a(lib.so.V)' 11558 # We preserve .a as extension for shared libraries through AIX4.2 11559 # and later when we are not doing run time linking. 11560 library_names_spec='$libname$release.a $libname.a' 11561 soname_spec='$libname$release$shared_ext$major' 11562 ;; 11563 svr4,*) # full svr4 only 11564 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11565 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11566 # We do not specify a path in Import Files, so LIBPATH fires. 11567 shlibpath_overrides_runpath=yes 11568 ;; 11569 *,yes) # both, prefer svr4 11570 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11571 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11572 # unpreferred sharedlib libNAME.a needs extra handling 11573 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"' 11574 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"' 11575 # We do not specify a path in Import Files, so LIBPATH fires. 11576 shlibpath_overrides_runpath=yes 11577 ;; 11578 *,no) # both, prefer aix 11579 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11580 library_names_spec='$libname$release.a $libname.a' 11581 soname_spec='$libname$release$shared_ext$major' 11582 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11583 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)' 11584 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"' 11585 ;; 11586 esac 11587 shlibpath_var=LIBPATH 11588 fi 11589 ;; 11590 11591amigaos*) 11592 case $host_cpu in 11593 powerpc) 11594 # Since July 2007 AmigaOS4 officially supports .so libraries. 11595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11597 ;; 11598 m68k) 11599 library_names_spec='$libname.ixlibrary $libname.a' 11600 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11601 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' 11602 ;; 11603 esac 11604 ;; 11605 11606beos*) 11607 library_names_spec='$libname$shared_ext' 11608 dynamic_linker="$host_os ld.so" 11609 shlibpath_var=LIBRARY_PATH 11610 ;; 11611 11612bsdi[45]*) 11613 version_type=linux # correct to gnu/linux during the next big refactor 11614 need_version=no 11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11616 soname_spec='$libname$release$shared_ext$major' 11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11618 shlibpath_var=LD_LIBRARY_PATH 11619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11621 # the default ld.so.conf also contains /usr/contrib/lib and 11622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11623 # libtool to hard-code these into programs 11624 ;; 11625 11626cygwin* | mingw* | pw32* | cegcc*) 11627 version_type=windows 11628 shrext_cmds=.dll 11629 need_version=no 11630 need_lib_prefix=no 11631 11632 case $GCC,$cc_basename in 11633 yes,*) 11634 # gcc 11635 library_names_spec='$libname.dll.a' 11636 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11637 postinstall_cmds='base_file=`basename \$file`~ 11638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11639 dldir=$destdir/`dirname \$dlpath`~ 11640 test -d \$dldir || mkdir -p \$dldir~ 11641 $install_prog $dir/$dlname \$dldir/$dlname~ 11642 chmod a+x \$dldir/$dlname~ 11643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11645 fi' 11646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11647 dlpath=$dir/\$dldll~ 11648 $RM \$dlpath' 11649 shlibpath_overrides_runpath=yes 11650 11651 case $host_os in 11652 cygwin*) 11653 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11654 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11655 11656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11657 ;; 11658 mingw* | cegcc*) 11659 # MinGW DLLs use traditional 'lib' prefix 11660 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11661 ;; 11662 pw32*) 11663 # pw32 DLLs use 'pw' prefix rather than 'lib' 11664 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11665 ;; 11666 esac 11667 dynamic_linker='Win32 ld.exe' 11668 ;; 11669 11670 *,cl*) 11671 # Native MSVC 11672 libname_spec='$name' 11673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11674 library_names_spec='$libname.dll.lib' 11675 11676 case $build_os in 11677 mingw*) 11678 sys_lib_search_path_spec= 11679 lt_save_ifs=$IFS 11680 IFS=';' 11681 for lt_path in $LIB 11682 do 11683 IFS=$lt_save_ifs 11684 # Let DOS variable expansion print the short 8.3 style file name. 11685 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11686 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11687 done 11688 IFS=$lt_save_ifs 11689 # Convert to MSYS style. 11690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11691 ;; 11692 cygwin*) 11693 # Convert to unix form, then to dos form, then back to unix form 11694 # but this time dos style (no spaces!) so that the unix form looks 11695 # like /cygdrive/c/PROGRA~1:/cygdr... 11696 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11697 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11699 ;; 11700 *) 11701 sys_lib_search_path_spec=$LIB 11702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11703 # It is most probably a Windows format PATH. 11704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11705 else 11706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11707 fi 11708 # FIXME: find the short name or the path components, as spaces are 11709 # common. (e.g. "Program Files" -> "PROGRA~1") 11710 ;; 11711 esac 11712 11713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11714 postinstall_cmds='base_file=`basename \$file`~ 11715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11716 dldir=$destdir/`dirname \$dlpath`~ 11717 test -d \$dldir || mkdir -p \$dldir~ 11718 $install_prog $dir/$dlname \$dldir/$dlname' 11719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11720 dlpath=$dir/\$dldll~ 11721 $RM \$dlpath' 11722 shlibpath_overrides_runpath=yes 11723 dynamic_linker='Win32 link.exe' 11724 ;; 11725 11726 *) 11727 # Assume MSVC wrapper 11728 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11729 dynamic_linker='Win32 ld.exe' 11730 ;; 11731 esac 11732 # FIXME: first we should search . and the directory the executable is in 11733 shlibpath_var=PATH 11734 ;; 11735 11736darwin* | rhapsody*) 11737 dynamic_linker="$host_os dyld" 11738 version_type=darwin 11739 need_lib_prefix=no 11740 need_version=no 11741 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11742 soname_spec='$libname$release$major$shared_ext' 11743 shlibpath_overrides_runpath=yes 11744 shlibpath_var=DYLD_LIBRARY_PATH 11745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11746 11747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11749 ;; 11750 11751dgux*) 11752 version_type=linux # correct to gnu/linux during the next big refactor 11753 need_lib_prefix=no 11754 need_version=no 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11756 soname_spec='$libname$release$shared_ext$major' 11757 shlibpath_var=LD_LIBRARY_PATH 11758 ;; 11759 11760freebsd* | dragonfly*) 11761 # DragonFly does not have aout. When/if they implement a new 11762 # versioning mechanism, adjust this. 11763 if test -x /usr/bin/objformat; then 11764 objformat=`/usr/bin/objformat` 11765 else 11766 case $host_os in 11767 freebsd[23].*) objformat=aout ;; 11768 *) objformat=elf ;; 11769 esac 11770 fi 11771 version_type=freebsd-$objformat 11772 case $version_type in 11773 freebsd-elf*) 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11775 soname_spec='$libname$release$shared_ext$major' 11776 need_version=no 11777 need_lib_prefix=no 11778 ;; 11779 freebsd-*) 11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11781 need_version=yes 11782 ;; 11783 esac 11784 shlibpath_var=LD_LIBRARY_PATH 11785 case $host_os in 11786 freebsd2.*) 11787 shlibpath_overrides_runpath=yes 11788 ;; 11789 freebsd3.[01]* | freebsdelf3.[01]*) 11790 shlibpath_overrides_runpath=yes 11791 hardcode_into_libs=yes 11792 ;; 11793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11795 shlibpath_overrides_runpath=no 11796 hardcode_into_libs=yes 11797 ;; 11798 *) # from 4.6 on, and DragonFly 11799 shlibpath_overrides_runpath=yes 11800 hardcode_into_libs=yes 11801 ;; 11802 esac 11803 ;; 11804 11805haiku*) 11806 version_type=linux # correct to gnu/linux during the next big refactor 11807 need_lib_prefix=no 11808 need_version=no 11809 dynamic_linker="$host_os runtime_loader" 11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11811 soname_spec='$libname$release$shared_ext$major' 11812 shlibpath_var=LIBRARY_PATH 11813 shlibpath_overrides_runpath=no 11814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11815 hardcode_into_libs=yes 11816 ;; 11817 11818hpux9* | hpux10* | hpux11*) 11819 # Give a soname corresponding to the major version so that dld.sl refuses to 11820 # link against other versions. 11821 version_type=sunos 11822 need_lib_prefix=no 11823 need_version=no 11824 case $host_cpu in 11825 ia64*) 11826 shrext_cmds='.so' 11827 hardcode_into_libs=yes 11828 dynamic_linker="$host_os dld.so" 11829 shlibpath_var=LD_LIBRARY_PATH 11830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11832 soname_spec='$libname$release$shared_ext$major' 11833 if test 32 = "$HPUX_IA64_MODE"; then 11834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11835 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11836 else 11837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11839 fi 11840 ;; 11841 hppa*64*) 11842 shrext_cmds='.sl' 11843 hardcode_into_libs=yes 11844 dynamic_linker="$host_os dld.sl" 11845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11848 soname_spec='$libname$release$shared_ext$major' 11849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11851 ;; 11852 *) 11853 shrext_cmds='.sl' 11854 dynamic_linker="$host_os dld.sl" 11855 shlibpath_var=SHLIB_PATH 11856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 ;; 11860 esac 11861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11862 postinstall_cmds='chmod 555 $lib' 11863 # or fails outright, so override atomically: 11864 install_override_mode=555 11865 ;; 11866 11867interix[3-9]*) 11868 version_type=linux # correct to gnu/linux during the next big refactor 11869 need_lib_prefix=no 11870 need_version=no 11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11872 soname_spec='$libname$release$shared_ext$major' 11873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11874 shlibpath_var=LD_LIBRARY_PATH 11875 shlibpath_overrides_runpath=no 11876 hardcode_into_libs=yes 11877 ;; 11878 11879irix5* | irix6* | nonstopux*) 11880 case $host_os in 11881 nonstopux*) version_type=nonstopux ;; 11882 *) 11883 if test yes = "$lt_cv_prog_gnu_ld"; then 11884 version_type=linux # correct to gnu/linux during the next big refactor 11885 else 11886 version_type=irix 11887 fi ;; 11888 esac 11889 need_lib_prefix=no 11890 need_version=no 11891 soname_spec='$libname$release$shared_ext$major' 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11893 case $host_os in 11894 irix5* | nonstopux*) 11895 libsuff= shlibsuff= 11896 ;; 11897 *) 11898 case $LD in # libtool.m4 will add one of these switches to LD 11899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11900 libsuff= shlibsuff= libmagic=32-bit;; 11901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11902 libsuff=32 shlibsuff=N32 libmagic=N32;; 11903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11904 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11905 *) libsuff= shlibsuff= libmagic=never-match;; 11906 esac 11907 ;; 11908 esac 11909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11910 shlibpath_overrides_runpath=no 11911 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11912 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11913 hardcode_into_libs=yes 11914 ;; 11915 11916# No shared lib support for Linux oldld, aout, or coff. 11917linux*oldld* | linux*aout* | linux*coff*) 11918 dynamic_linker=no 11919 ;; 11920 11921linux*android*) 11922 version_type=none # Android doesn't support versioned libraries. 11923 need_lib_prefix=no 11924 need_version=no 11925 library_names_spec='$libname$release$shared_ext' 11926 soname_spec='$libname$release$shared_ext' 11927 finish_cmds= 11928 shlibpath_var=LD_LIBRARY_PATH 11929 shlibpath_overrides_runpath=yes 11930 11931 # This implies no fast_install, which is unacceptable. 11932 # Some rework will be needed to allow for fast_install 11933 # before this can be enabled. 11934 hardcode_into_libs=yes 11935 11936 dynamic_linker='Android linker' 11937 # Don't embed -rpath directories since the linker doesn't support them. 11938 hardcode_libdir_flag_spec='-L$libdir' 11939 ;; 11940 11941# This must be glibc/ELF. 11942linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11947 soname_spec='$libname$release$shared_ext$major' 11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11949 shlibpath_var=LD_LIBRARY_PATH 11950 shlibpath_overrides_runpath=no 11951 11952 # Some binutils ld are patched to set DT_RUNPATH 11953 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 lt_cv_shlibpath_overrides_runpath=no 11957 save_LDFLAGS=$LDFLAGS 11958 save_libdir=$libdir 11959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962/* end confdefs.h. */ 11963 11964int 11965main () 11966{ 11967 11968 ; 11969 return 0; 11970} 11971_ACEOF 11972if ac_fn_c_try_link "$LINENO"; then : 11973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11974 lt_cv_shlibpath_overrides_runpath=yes 11975fi 11976fi 11977rm -f core conftest.err conftest.$ac_objext \ 11978 conftest$ac_exeext conftest.$ac_ext 11979 LDFLAGS=$save_LDFLAGS 11980 libdir=$save_libdir 11981 11982fi 11983 11984 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11985 11986 # This implies no fast_install, which is unacceptable. 11987 # Some rework will be needed to allow for fast_install 11988 # before this can be enabled. 11989 hardcode_into_libs=yes 11990 11991 # Ideally, we could use ldconfig to report *all* directores which are 11992 # searched for libraries, however this is still not possible. Aside from not 11993 # being certain /sbin/ldconfig is available, command 11994 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11995 # even though it is searched at run-time. Try to do the best guess by 11996 # appending ld.so.conf contents (and includes) to the search path. 11997 if test -f /etc/ld.so.conf; then 11998 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' ' '` 11999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12000 fi 12001 12002 # We used to test for /lib/ld.so.1 and disable shared libraries on 12003 # powerpc, because MkLinux only supported shared libraries with the 12004 # GNU dynamic linker. Since this was broken with cross compilers, 12005 # most powerpc-linux boxes support dynamic linking these days and 12006 # people can always --disable-shared, the test was removed, and we 12007 # assume the GNU/Linux dynamic linker is in use. 12008 dynamic_linker='GNU/Linux ld.so' 12009 ;; 12010 12011netbsd*) 12012 version_type=sunos 12013 need_lib_prefix=no 12014 need_version=no 12015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12018 dynamic_linker='NetBSD (a.out) ld.so' 12019 else 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12021 soname_spec='$libname$release$shared_ext$major' 12022 dynamic_linker='NetBSD ld.elf_so' 12023 fi 12024 shlibpath_var=LD_LIBRARY_PATH 12025 shlibpath_overrides_runpath=yes 12026 hardcode_into_libs=yes 12027 ;; 12028 12029newsos6) 12030 version_type=linux # correct to gnu/linux during the next big refactor 12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12032 shlibpath_var=LD_LIBRARY_PATH 12033 shlibpath_overrides_runpath=yes 12034 ;; 12035 12036*nto* | *qnx*) 12037 version_type=qnx 12038 need_lib_prefix=no 12039 need_version=no 12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12041 soname_spec='$libname$release$shared_ext$major' 12042 shlibpath_var=LD_LIBRARY_PATH 12043 shlibpath_overrides_runpath=no 12044 hardcode_into_libs=yes 12045 dynamic_linker='ldqnx.so' 12046 ;; 12047 12048openbsd* | bitrig*) 12049 version_type=sunos 12050 sys_lib_dlsearch_path_spec=/usr/lib 12051 need_lib_prefix=no 12052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12053 need_version=no 12054 else 12055 need_version=yes 12056 fi 12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12059 shlibpath_var=LD_LIBRARY_PATH 12060 shlibpath_overrides_runpath=yes 12061 ;; 12062 12063os2*) 12064 libname_spec='$name' 12065 version_type=windows 12066 shrext_cmds=.dll 12067 need_version=no 12068 need_lib_prefix=no 12069 # OS/2 can only load a DLL with a base name of 8 characters or less. 12070 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12071 v=$($ECHO $release$versuffix | tr -d .-); 12072 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12073 $ECHO $n$v`$shared_ext' 12074 library_names_spec='${libname}_dll.$libext' 12075 dynamic_linker='OS/2 ld.exe' 12076 shlibpath_var=BEGINLIBPATH 12077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12079 postinstall_cmds='base_file=`basename \$file`~ 12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12081 dldir=$destdir/`dirname \$dlpath`~ 12082 test -d \$dldir || mkdir -p \$dldir~ 12083 $install_prog $dir/$dlname \$dldir/$dlname~ 12084 chmod a+x \$dldir/$dlname~ 12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12087 fi' 12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12089 dlpath=$dir/\$dldll~ 12090 $RM \$dlpath' 12091 ;; 12092 12093osf3* | osf4* | osf5*) 12094 version_type=osf 12095 need_lib_prefix=no 12096 need_version=no 12097 soname_spec='$libname$release$shared_ext$major' 12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12102 ;; 12103 12104rdos*) 12105 dynamic_linker=no 12106 ;; 12107 12108solaris*) 12109 version_type=linux # correct to gnu/linux during the next big refactor 12110 need_lib_prefix=no 12111 need_version=no 12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12113 soname_spec='$libname$release$shared_ext$major' 12114 shlibpath_var=LD_LIBRARY_PATH 12115 shlibpath_overrides_runpath=yes 12116 hardcode_into_libs=yes 12117 # ldd complains unless libraries are executable 12118 postinstall_cmds='chmod +x $lib' 12119 ;; 12120 12121sunos4*) 12122 version_type=sunos 12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12125 shlibpath_var=LD_LIBRARY_PATH 12126 shlibpath_overrides_runpath=yes 12127 if test yes = "$with_gnu_ld"; then 12128 need_lib_prefix=no 12129 fi 12130 need_version=yes 12131 ;; 12132 12133sysv4 | sysv4.3*) 12134 version_type=linux # correct to gnu/linux during the next big refactor 12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12136 soname_spec='$libname$release$shared_ext$major' 12137 shlibpath_var=LD_LIBRARY_PATH 12138 case $host_vendor in 12139 sni) 12140 shlibpath_overrides_runpath=no 12141 need_lib_prefix=no 12142 runpath_var=LD_RUN_PATH 12143 ;; 12144 siemens) 12145 need_lib_prefix=no 12146 ;; 12147 motorola) 12148 need_lib_prefix=no 12149 need_version=no 12150 shlibpath_overrides_runpath=no 12151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12152 ;; 12153 esac 12154 ;; 12155 12156sysv4*MP*) 12157 if test -d /usr/nec; then 12158 version_type=linux # correct to gnu/linux during the next big refactor 12159 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12160 soname_spec='$libname$shared_ext.$major' 12161 shlibpath_var=LD_LIBRARY_PATH 12162 fi 12163 ;; 12164 12165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12166 version_type=sco 12167 need_lib_prefix=no 12168 need_version=no 12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12170 soname_spec='$libname$release$shared_ext$major' 12171 shlibpath_var=LD_LIBRARY_PATH 12172 shlibpath_overrides_runpath=yes 12173 hardcode_into_libs=yes 12174 if test yes = "$with_gnu_ld"; then 12175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12176 else 12177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12178 case $host_os in 12179 sco3.2v5*) 12180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12181 ;; 12182 esac 12183 fi 12184 sys_lib_dlsearch_path_spec='/usr/lib' 12185 ;; 12186 12187tpf*) 12188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12189 version_type=linux # correct to gnu/linux during the next big refactor 12190 need_lib_prefix=no 12191 need_version=no 12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12193 shlibpath_var=LD_LIBRARY_PATH 12194 shlibpath_overrides_runpath=no 12195 hardcode_into_libs=yes 12196 ;; 12197 12198uts4*) 12199 version_type=linux # correct to gnu/linux during the next big refactor 12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12201 soname_spec='$libname$release$shared_ext$major' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 ;; 12204 12205*) 12206 dynamic_linker=no 12207 ;; 12208esac 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12210$as_echo "$dynamic_linker" >&6; } 12211test no = "$dynamic_linker" && can_build_shared=no 12212 12213variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12214if test yes = "$GCC"; then 12215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12216fi 12217 12218if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12219 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12220fi 12221 12222if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12223 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12224fi 12225 12226# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12227configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12228 12229# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12230func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12231 12232# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12233configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12332$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12333hardcode_action= 12334if test -n "$hardcode_libdir_flag_spec" || 12335 test -n "$runpath_var" || 12336 test yes = "$hardcode_automatic"; then 12337 12338 # We can hardcode non-existent directories. 12339 if test no != "$hardcode_direct" && 12340 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12341 # have to relink, otherwise we might link with an installed library 12342 # when we should be linking with a yet-to-be-installed one 12343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12344 test no != "$hardcode_minus_L"; then 12345 # Linking always hardcodes the temporary library directory. 12346 hardcode_action=relink 12347 else 12348 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12349 hardcode_action=immediate 12350 fi 12351else 12352 # We cannot hardcode anything, or else we can only hardcode existing 12353 # directories. 12354 hardcode_action=unsupported 12355fi 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12357$as_echo "$hardcode_action" >&6; } 12358 12359if test relink = "$hardcode_action" || 12360 test yes = "$inherit_rpath"; then 12361 # Fast installation is not supported 12362 enable_fast_install=no 12363elif test yes = "$shlibpath_overrides_runpath" || 12364 test no = "$enable_shared"; then 12365 # Fast installation is not necessary 12366 enable_fast_install=needless 12367fi 12368 12369 12370 12371 12372 12373 12374 if test yes != "$enable_dlopen"; then 12375 enable_dlopen=unknown 12376 enable_dlopen_self=unknown 12377 enable_dlopen_self_static=unknown 12378else 12379 lt_cv_dlopen=no 12380 lt_cv_dlopen_libs= 12381 12382 case $host_os in 12383 beos*) 12384 lt_cv_dlopen=load_add_on 12385 lt_cv_dlopen_libs= 12386 lt_cv_dlopen_self=yes 12387 ;; 12388 12389 mingw* | pw32* | cegcc*) 12390 lt_cv_dlopen=LoadLibrary 12391 lt_cv_dlopen_libs= 12392 ;; 12393 12394 cygwin*) 12395 lt_cv_dlopen=dlopen 12396 lt_cv_dlopen_libs= 12397 ;; 12398 12399 darwin*) 12400 # if libdl is installed we need to link against it 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12402$as_echo_n "checking for dlopen in -ldl... " >&6; } 12403if ${ac_cv_lib_dl_dlopen+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405else 12406 ac_check_lib_save_LIBS=$LIBS 12407LIBS="-ldl $LIBS" 12408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410 12411/* Override any GCC internal prototype to avoid an error. 12412 Use char because int might match the return type of a GCC 12413 builtin and then its argument prototype would still apply. */ 12414#ifdef __cplusplus 12415extern "C" 12416#endif 12417char dlopen (); 12418int 12419main () 12420{ 12421return dlopen (); 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_link "$LINENO"; then : 12427 ac_cv_lib_dl_dlopen=yes 12428else 12429 ac_cv_lib_dl_dlopen=no 12430fi 12431rm -f core conftest.err conftest.$ac_objext \ 12432 conftest$ac_exeext conftest.$ac_ext 12433LIBS=$ac_check_lib_save_LIBS 12434fi 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12436$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12437if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12438 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12439else 12440 12441 lt_cv_dlopen=dyld 12442 lt_cv_dlopen_libs= 12443 lt_cv_dlopen_self=yes 12444 12445fi 12446 12447 ;; 12448 12449 tpf*) 12450 # Don't try to run any link tests for TPF. We know it's impossible 12451 # because TPF is a cross-compiler, and we know how we open DSOs. 12452 lt_cv_dlopen=dlopen 12453 lt_cv_dlopen_libs= 12454 lt_cv_dlopen_self=no 12455 ;; 12456 12457 *) 12458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12459if test "x$ac_cv_func_shl_load" = xyes; then : 12460 lt_cv_dlopen=shl_load 12461else 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12463$as_echo_n "checking for shl_load in -ldld... " >&6; } 12464if ${ac_cv_lib_dld_shl_load+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 ac_check_lib_save_LIBS=$LIBS 12468LIBS="-ldld $LIBS" 12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471 12472/* Override any GCC internal prototype to avoid an error. 12473 Use char because int might match the return type of a GCC 12474 builtin and then its argument prototype would still apply. */ 12475#ifdef __cplusplus 12476extern "C" 12477#endif 12478char shl_load (); 12479int 12480main () 12481{ 12482return shl_load (); 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_c_try_link "$LINENO"; then : 12488 ac_cv_lib_dld_shl_load=yes 12489else 12490 ac_cv_lib_dld_shl_load=no 12491fi 12492rm -f core conftest.err conftest.$ac_objext \ 12493 conftest$ac_exeext conftest.$ac_ext 12494LIBS=$ac_check_lib_save_LIBS 12495fi 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12497$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12498if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12499 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12500else 12501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12502if test "x$ac_cv_func_dlopen" = xyes; then : 12503 lt_cv_dlopen=dlopen 12504else 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12506$as_echo_n "checking for dlopen in -ldl... " >&6; } 12507if ${ac_cv_lib_dl_dlopen+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 ac_check_lib_save_LIBS=$LIBS 12511LIBS="-ldl $LIBS" 12512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514 12515/* Override any GCC internal prototype to avoid an error. 12516 Use char because int might match the return type of a GCC 12517 builtin and then its argument prototype would still apply. */ 12518#ifdef __cplusplus 12519extern "C" 12520#endif 12521char dlopen (); 12522int 12523main () 12524{ 12525return dlopen (); 12526 ; 12527 return 0; 12528} 12529_ACEOF 12530if ac_fn_c_try_link "$LINENO"; then : 12531 ac_cv_lib_dl_dlopen=yes 12532else 12533 ac_cv_lib_dl_dlopen=no 12534fi 12535rm -f core conftest.err conftest.$ac_objext \ 12536 conftest$ac_exeext conftest.$ac_ext 12537LIBS=$ac_check_lib_save_LIBS 12538fi 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12540$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12541if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12542 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12543else 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12545$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12546if ${ac_cv_lib_svld_dlopen+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 ac_check_lib_save_LIBS=$LIBS 12550LIBS="-lsvld $LIBS" 12551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553 12554/* Override any GCC internal prototype to avoid an error. 12555 Use char because int might match the return type of a GCC 12556 builtin and then its argument prototype would still apply. */ 12557#ifdef __cplusplus 12558extern "C" 12559#endif 12560char dlopen (); 12561int 12562main () 12563{ 12564return dlopen (); 12565 ; 12566 return 0; 12567} 12568_ACEOF 12569if ac_fn_c_try_link "$LINENO"; then : 12570 ac_cv_lib_svld_dlopen=yes 12571else 12572 ac_cv_lib_svld_dlopen=no 12573fi 12574rm -f core conftest.err conftest.$ac_objext \ 12575 conftest$ac_exeext conftest.$ac_ext 12576LIBS=$ac_check_lib_save_LIBS 12577fi 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12579$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12580if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12582else 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12584$as_echo_n "checking for dld_link in -ldld... " >&6; } 12585if ${ac_cv_lib_dld_dld_link+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 ac_check_lib_save_LIBS=$LIBS 12589LIBS="-ldld $LIBS" 12590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592 12593/* Override any GCC internal prototype to avoid an error. 12594 Use char because int might match the return type of a GCC 12595 builtin and then its argument prototype would still apply. */ 12596#ifdef __cplusplus 12597extern "C" 12598#endif 12599char dld_link (); 12600int 12601main () 12602{ 12603return dld_link (); 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608if ac_fn_c_try_link "$LINENO"; then : 12609 ac_cv_lib_dld_dld_link=yes 12610else 12611 ac_cv_lib_dld_dld_link=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext \ 12614 conftest$ac_exeext conftest.$ac_ext 12615LIBS=$ac_check_lib_save_LIBS 12616fi 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12618$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12619if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12620 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12621fi 12622 12623 12624fi 12625 12626 12627fi 12628 12629 12630fi 12631 12632 12633fi 12634 12635 12636fi 12637 12638 ;; 12639 esac 12640 12641 if test no = "$lt_cv_dlopen"; then 12642 enable_dlopen=no 12643 else 12644 enable_dlopen=yes 12645 fi 12646 12647 case $lt_cv_dlopen in 12648 dlopen) 12649 save_CPPFLAGS=$CPPFLAGS 12650 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12651 12652 save_LDFLAGS=$LDFLAGS 12653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12654 12655 save_LIBS=$LIBS 12656 LIBS="$lt_cv_dlopen_libs $LIBS" 12657 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12659$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12660if ${lt_cv_dlopen_self+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 if test yes = "$cross_compiling"; then : 12664 lt_cv_dlopen_self=cross 12665else 12666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12667 lt_status=$lt_dlunknown 12668 cat > conftest.$ac_ext <<_LT_EOF 12669#line $LINENO "configure" 12670#include "confdefs.h" 12671 12672#if HAVE_DLFCN_H 12673#include <dlfcn.h> 12674#endif 12675 12676#include <stdio.h> 12677 12678#ifdef RTLD_GLOBAL 12679# define LT_DLGLOBAL RTLD_GLOBAL 12680#else 12681# ifdef DL_GLOBAL 12682# define LT_DLGLOBAL DL_GLOBAL 12683# else 12684# define LT_DLGLOBAL 0 12685# endif 12686#endif 12687 12688/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12689 find out it does not work in some platform. */ 12690#ifndef LT_DLLAZY_OR_NOW 12691# ifdef RTLD_LAZY 12692# define LT_DLLAZY_OR_NOW RTLD_LAZY 12693# else 12694# ifdef DL_LAZY 12695# define LT_DLLAZY_OR_NOW DL_LAZY 12696# else 12697# ifdef RTLD_NOW 12698# define LT_DLLAZY_OR_NOW RTLD_NOW 12699# else 12700# ifdef DL_NOW 12701# define LT_DLLAZY_OR_NOW DL_NOW 12702# else 12703# define LT_DLLAZY_OR_NOW 0 12704# endif 12705# endif 12706# endif 12707# endif 12708#endif 12709 12710/* When -fvisibility=hidden is used, assume the code has been annotated 12711 correspondingly for the symbols needed. */ 12712#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12713int fnord () __attribute__((visibility("default"))); 12714#endif 12715 12716int fnord () { return 42; } 12717int main () 12718{ 12719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12720 int status = $lt_dlunknown; 12721 12722 if (self) 12723 { 12724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12725 else 12726 { 12727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12728 else puts (dlerror ()); 12729 } 12730 /* dlclose (self); */ 12731 } 12732 else 12733 puts (dlerror ()); 12734 12735 return status; 12736} 12737_LT_EOF 12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12739 (eval $ac_link) 2>&5 12740 ac_status=$? 12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12742 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12743 (./conftest; exit; ) >&5 2>/dev/null 12744 lt_status=$? 12745 case x$lt_status in 12746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12749 esac 12750 else : 12751 # compilation failed 12752 lt_cv_dlopen_self=no 12753 fi 12754fi 12755rm -fr conftest* 12756 12757 12758fi 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12760$as_echo "$lt_cv_dlopen_self" >&6; } 12761 12762 if test yes = "$lt_cv_dlopen_self"; then 12763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12765$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12766if ${lt_cv_dlopen_self_static+:} false; then : 12767 $as_echo_n "(cached) " >&6 12768else 12769 if test yes = "$cross_compiling"; then : 12770 lt_cv_dlopen_self_static=cross 12771else 12772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12773 lt_status=$lt_dlunknown 12774 cat > conftest.$ac_ext <<_LT_EOF 12775#line $LINENO "configure" 12776#include "confdefs.h" 12777 12778#if HAVE_DLFCN_H 12779#include <dlfcn.h> 12780#endif 12781 12782#include <stdio.h> 12783 12784#ifdef RTLD_GLOBAL 12785# define LT_DLGLOBAL RTLD_GLOBAL 12786#else 12787# ifdef DL_GLOBAL 12788# define LT_DLGLOBAL DL_GLOBAL 12789# else 12790# define LT_DLGLOBAL 0 12791# endif 12792#endif 12793 12794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12795 find out it does not work in some platform. */ 12796#ifndef LT_DLLAZY_OR_NOW 12797# ifdef RTLD_LAZY 12798# define LT_DLLAZY_OR_NOW RTLD_LAZY 12799# else 12800# ifdef DL_LAZY 12801# define LT_DLLAZY_OR_NOW DL_LAZY 12802# else 12803# ifdef RTLD_NOW 12804# define LT_DLLAZY_OR_NOW RTLD_NOW 12805# else 12806# ifdef DL_NOW 12807# define LT_DLLAZY_OR_NOW DL_NOW 12808# else 12809# define LT_DLLAZY_OR_NOW 0 12810# endif 12811# endif 12812# endif 12813# endif 12814#endif 12815 12816/* When -fvisibility=hidden is used, assume the code has been annotated 12817 correspondingly for the symbols needed. */ 12818#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12819int fnord () __attribute__((visibility("default"))); 12820#endif 12821 12822int fnord () { return 42; } 12823int main () 12824{ 12825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12826 int status = $lt_dlunknown; 12827 12828 if (self) 12829 { 12830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12831 else 12832 { 12833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12834 else puts (dlerror ()); 12835 } 12836 /* dlclose (self); */ 12837 } 12838 else 12839 puts (dlerror ()); 12840 12841 return status; 12842} 12843_LT_EOF 12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12845 (eval $ac_link) 2>&5 12846 ac_status=$? 12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12849 (./conftest; exit; ) >&5 2>/dev/null 12850 lt_status=$? 12851 case x$lt_status in 12852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12855 esac 12856 else : 12857 # compilation failed 12858 lt_cv_dlopen_self_static=no 12859 fi 12860fi 12861rm -fr conftest* 12862 12863 12864fi 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12866$as_echo "$lt_cv_dlopen_self_static" >&6; } 12867 fi 12868 12869 CPPFLAGS=$save_CPPFLAGS 12870 LDFLAGS=$save_LDFLAGS 12871 LIBS=$save_LIBS 12872 ;; 12873 esac 12874 12875 case $lt_cv_dlopen_self in 12876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12877 *) enable_dlopen_self=unknown ;; 12878 esac 12879 12880 case $lt_cv_dlopen_self_static in 12881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12882 *) enable_dlopen_self_static=unknown ;; 12883 esac 12884fi 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902striplib= 12903old_striplib= 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12905$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12906if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12908 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12910$as_echo "yes" >&6; } 12911else 12912# FIXME - insert some real tests, host_os isn't really good enough 12913 case $host_os in 12914 darwin*) 12915 if test -n "$STRIP"; then 12916 striplib="$STRIP -x" 12917 old_striplib="$STRIP -S" 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12919$as_echo "yes" >&6; } 12920 else 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12922$as_echo "no" >&6; } 12923 fi 12924 ;; 12925 *) 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12927$as_echo "no" >&6; } 12928 ;; 12929 esac 12930fi 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 # Report what library types will actually be built 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12945$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12947$as_echo "$can_build_shared" >&6; } 12948 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12950$as_echo_n "checking whether to build shared libraries... " >&6; } 12951 test no = "$can_build_shared" && enable_shared=no 12952 12953 # On AIX, shared libraries and static libraries use the same namespace, and 12954 # are all built from PIC. 12955 case $host_os in 12956 aix3*) 12957 test yes = "$enable_shared" && enable_static=no 12958 if test -n "$RANLIB"; then 12959 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12960 postinstall_cmds='$RANLIB $lib' 12961 fi 12962 ;; 12963 12964 aix[4-9]*) 12965 if test ia64 != "$host_cpu"; then 12966 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12967 yes,aix,yes) ;; # shared object as lib.so file only 12968 yes,svr4,*) ;; # shared object as lib.so archive member only 12969 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12970 esac 12971 fi 12972 ;; 12973 esac 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12975$as_echo "$enable_shared" >&6; } 12976 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12978$as_echo_n "checking whether to build static libraries... " >&6; } 12979 # Make sure either enable_shared or enable_static is yes. 12980 test yes = "$enable_shared" || enable_static=yes 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12982$as_echo "$enable_static" >&6; } 12983 12984 12985 12986 12987fi 12988ac_ext=c 12989ac_cpp='$CPP $CPPFLAGS' 12990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12992ac_compiler_gnu=$ac_cv_c_compiler_gnu 12993 12994CC=$lt_save_CC 12995 12996 if test -n "$CXX" && ( test no != "$CXX" && 12997 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12998 (test g++ != "$CXX"))); then 12999 ac_ext=cpp 13000ac_cpp='$CXXCPP $CPPFLAGS' 13001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13005$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13006if test -z "$CXXCPP"; then 13007 if ${ac_cv_prog_CXXCPP+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 # Double quotes because CXXCPP needs to be expanded 13011 for CXXCPP in "$CXX -E" "/lib/cpp" 13012 do 13013 ac_preproc_ok=false 13014for ac_cxx_preproc_warn_flag in '' yes 13015do 13016 # Use a header file that comes with gcc, so configuring glibc 13017 # with a fresh cross-compiler works. 13018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13019 # <limits.h> exists even on freestanding compilers. 13020 # On the NeXT, cc -E runs the code through the compiler's parser, 13021 # not just through cpp. "Syntax error" is here to catch this case. 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024#ifdef __STDC__ 13025# include <limits.h> 13026#else 13027# include <assert.h> 13028#endif 13029 Syntax error 13030_ACEOF 13031if ac_fn_cxx_try_cpp "$LINENO"; then : 13032 13033else 13034 # Broken: fails on valid input. 13035continue 13036fi 13037rm -f conftest.err conftest.i conftest.$ac_ext 13038 13039 # OK, works on sane cases. Now check whether nonexistent headers 13040 # can be detected and how. 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043#include <ac_nonexistent.h> 13044_ACEOF 13045if ac_fn_cxx_try_cpp "$LINENO"; then : 13046 # Broken: success on invalid input. 13047continue 13048else 13049 # Passes both tests. 13050ac_preproc_ok=: 13051break 13052fi 13053rm -f conftest.err conftest.i conftest.$ac_ext 13054 13055done 13056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13057rm -f conftest.i conftest.err conftest.$ac_ext 13058if $ac_preproc_ok; then : 13059 break 13060fi 13061 13062 done 13063 ac_cv_prog_CXXCPP=$CXXCPP 13064 13065fi 13066 CXXCPP=$ac_cv_prog_CXXCPP 13067else 13068 ac_cv_prog_CXXCPP=$CXXCPP 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13071$as_echo "$CXXCPP" >&6; } 13072ac_preproc_ok=false 13073for ac_cxx_preproc_warn_flag in '' yes 13074do 13075 # Use a header file that comes with gcc, so configuring glibc 13076 # with a fresh cross-compiler works. 13077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13078 # <limits.h> exists even on freestanding compilers. 13079 # On the NeXT, cc -E runs the code through the compiler's parser, 13080 # not just through cpp. "Syntax error" is here to catch this case. 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083#ifdef __STDC__ 13084# include <limits.h> 13085#else 13086# include <assert.h> 13087#endif 13088 Syntax error 13089_ACEOF 13090if ac_fn_cxx_try_cpp "$LINENO"; then : 13091 13092else 13093 # Broken: fails on valid input. 13094continue 13095fi 13096rm -f conftest.err conftest.i conftest.$ac_ext 13097 13098 # OK, works on sane cases. Now check whether nonexistent headers 13099 # can be detected and how. 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102#include <ac_nonexistent.h> 13103_ACEOF 13104if ac_fn_cxx_try_cpp "$LINENO"; then : 13105 # Broken: success on invalid input. 13106continue 13107else 13108 # Passes both tests. 13109ac_preproc_ok=: 13110break 13111fi 13112rm -f conftest.err conftest.i conftest.$ac_ext 13113 13114done 13115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13116rm -f conftest.i conftest.err conftest.$ac_ext 13117if $ac_preproc_ok; then : 13118 13119else 13120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13122as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13123See \`config.log' for more details" "$LINENO" 5; } 13124fi 13125 13126ac_ext=c 13127ac_cpp='$CPP $CPPFLAGS' 13128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13130ac_compiler_gnu=$ac_cv_c_compiler_gnu 13131 13132else 13133 _lt_caught_CXX_error=yes 13134fi 13135 13136ac_ext=cpp 13137ac_cpp='$CXXCPP $CPPFLAGS' 13138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13141 13142archive_cmds_need_lc_CXX=no 13143allow_undefined_flag_CXX= 13144always_export_symbols_CXX=no 13145archive_expsym_cmds_CXX= 13146compiler_needs_object_CXX=no 13147export_dynamic_flag_spec_CXX= 13148hardcode_direct_CXX=no 13149hardcode_direct_absolute_CXX=no 13150hardcode_libdir_flag_spec_CXX= 13151hardcode_libdir_separator_CXX= 13152hardcode_minus_L_CXX=no 13153hardcode_shlibpath_var_CXX=unsupported 13154hardcode_automatic_CXX=no 13155inherit_rpath_CXX=no 13156module_cmds_CXX= 13157module_expsym_cmds_CXX= 13158link_all_deplibs_CXX=unknown 13159old_archive_cmds_CXX=$old_archive_cmds 13160reload_flag_CXX=$reload_flag 13161reload_cmds_CXX=$reload_cmds 13162no_undefined_flag_CXX= 13163whole_archive_flag_spec_CXX= 13164enable_shared_with_static_runtimes_CXX=no 13165 13166# Source file extension for C++ test sources. 13167ac_ext=cpp 13168 13169# Object file extension for compiled C++ test sources. 13170objext=o 13171objext_CXX=$objext 13172 13173# No sense in running all these tests if we already determined that 13174# the CXX compiler isn't working. Some variables (like enable_shared) 13175# are currently assumed to apply to all compilers on this platform, 13176# and will be corrupted by setting them based on a non-working compiler. 13177if test yes != "$_lt_caught_CXX_error"; then 13178 # Code to be used in simple compile tests 13179 lt_simple_compile_test_code="int some_variable = 0;" 13180 13181 # Code to be used in simple link tests 13182 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13183 13184 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13185 13186 13187 13188 13189 13190 13191# If no C compiler was specified, use CC. 13192LTCC=${LTCC-"$CC"} 13193 13194# If no C compiler flags were specified, use CFLAGS. 13195LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13196 13197# Allow CC to be a program name with arguments. 13198compiler=$CC 13199 13200 13201 # save warnings/boilerplate of simple test code 13202 ac_outfile=conftest.$ac_objext 13203echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13204eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13205_lt_compiler_boilerplate=`cat conftest.err` 13206$RM conftest* 13207 13208 ac_outfile=conftest.$ac_objext 13209echo "$lt_simple_link_test_code" >conftest.$ac_ext 13210eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13211_lt_linker_boilerplate=`cat conftest.err` 13212$RM -r conftest* 13213 13214 13215 # Allow CC to be a program name with arguments. 13216 lt_save_CC=$CC 13217 lt_save_CFLAGS=$CFLAGS 13218 lt_save_LD=$LD 13219 lt_save_GCC=$GCC 13220 GCC=$GXX 13221 lt_save_with_gnu_ld=$with_gnu_ld 13222 lt_save_path_LD=$lt_cv_path_LD 13223 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13224 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13225 else 13226 $as_unset lt_cv_prog_gnu_ld 13227 fi 13228 if test -n "${lt_cv_path_LDCXX+set}"; then 13229 lt_cv_path_LD=$lt_cv_path_LDCXX 13230 else 13231 $as_unset lt_cv_path_LD 13232 fi 13233 test -z "${LDCXX+set}" || LD=$LDCXX 13234 CC=${CXX-"c++"} 13235 CFLAGS=$CXXFLAGS 13236 compiler=$CC 13237 compiler_CXX=$CC 13238 func_cc_basename $compiler 13239cc_basename=$func_cc_basename_result 13240 13241 13242 if test -n "$compiler"; then 13243 # We don't want -fno-exception when compiling C++ code, so set the 13244 # no_builtin_flag separately 13245 if test yes = "$GXX"; then 13246 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13247 else 13248 lt_prog_compiler_no_builtin_flag_CXX= 13249 fi 13250 13251 if test yes = "$GXX"; then 13252 # Set up default GNU C++ configuration 13253 13254 13255 13256# Check whether --with-gnu-ld was given. 13257if test "${with_gnu_ld+set}" = set; then : 13258 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13259else 13260 with_gnu_ld=no 13261fi 13262 13263ac_prog=ld 13264if test yes = "$GCC"; then 13265 # Check if gcc -print-prog-name=ld gives a path. 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13267$as_echo_n "checking for ld used by $CC... " >&6; } 13268 case $host in 13269 *-*-mingw*) 13270 # gcc leaves a trailing carriage return, which upsets mingw 13271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13272 *) 13273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13274 esac 13275 case $ac_prog in 13276 # Accept absolute paths. 13277 [\\/]* | ?:[\\/]*) 13278 re_direlt='/[^/][^/]*/\.\./' 13279 # Canonicalize the pathname of ld 13280 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13281 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13282 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13283 done 13284 test -z "$LD" && LD=$ac_prog 13285 ;; 13286 "") 13287 # If it fails, then pretend we aren't using GCC. 13288 ac_prog=ld 13289 ;; 13290 *) 13291 # If it is relative, then search for the first ld in PATH. 13292 with_gnu_ld=unknown 13293 ;; 13294 esac 13295elif test yes = "$with_gnu_ld"; then 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13297$as_echo_n "checking for GNU ld... " >&6; } 13298else 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13300$as_echo_n "checking for non-GNU ld... " >&6; } 13301fi 13302if ${lt_cv_path_LD+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304else 13305 if test -z "$LD"; then 13306 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13307 for ac_dir in $PATH; do 13308 IFS=$lt_save_ifs 13309 test -z "$ac_dir" && ac_dir=. 13310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13311 lt_cv_path_LD=$ac_dir/$ac_prog 13312 # Check to see if the program is GNU ld. I'd rather use --version, 13313 # but apparently some variants of GNU ld only accept -v. 13314 # Break only if it was the GNU/non-GNU ld that we prefer. 13315 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13316 *GNU* | *'with BFD'*) 13317 test no != "$with_gnu_ld" && break 13318 ;; 13319 *) 13320 test yes != "$with_gnu_ld" && break 13321 ;; 13322 esac 13323 fi 13324 done 13325 IFS=$lt_save_ifs 13326else 13327 lt_cv_path_LD=$LD # Let the user override the test with a path. 13328fi 13329fi 13330 13331LD=$lt_cv_path_LD 13332if test -n "$LD"; then 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13334$as_echo "$LD" >&6; } 13335else 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13337$as_echo "no" >&6; } 13338fi 13339test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13341$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13342if ${lt_cv_prog_gnu_ld+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344else 13345 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13346case `$LD -v 2>&1 </dev/null` in 13347*GNU* | *'with BFD'*) 13348 lt_cv_prog_gnu_ld=yes 13349 ;; 13350*) 13351 lt_cv_prog_gnu_ld=no 13352 ;; 13353esac 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13356$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13357with_gnu_ld=$lt_cv_prog_gnu_ld 13358 13359 13360 13361 13362 13363 13364 13365 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13366 # archiving commands below assume that GNU ld is being used. 13367 if test yes = "$with_gnu_ld"; then 13368 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13369 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' 13370 13371 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13372 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13373 13374 # If archive_cmds runs LD, not CC, wlarc should be empty 13375 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13376 # investigate it a little bit more. (MM) 13377 wlarc='$wl' 13378 13379 # ancient GNU ld didn't support --whole-archive et. al. 13380 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13381 $GREP 'no-whole-archive' > /dev/null; then 13382 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13383 else 13384 whole_archive_flag_spec_CXX= 13385 fi 13386 else 13387 with_gnu_ld=no 13388 wlarc= 13389 13390 # A generic and very simple default shared library creation 13391 # command for GNU C++ for the case where it uses the native 13392 # linker, instead of GNU ld. If possible, this setting should 13393 # overridden to take advantage of the native linker features on 13394 # the platform it is being used on. 13395 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13396 fi 13397 13398 # Commands to make compiler produce verbose output that lists 13399 # what "hidden" libraries, object files and flags are used when 13400 # linking a shared library. 13401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13402 13403 else 13404 GXX=no 13405 with_gnu_ld=no 13406 wlarc= 13407 fi 13408 13409 # PORTME: fill in a description of your system's C++ link characteristics 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13411$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13412 ld_shlibs_CXX=yes 13413 case $host_os in 13414 aix3*) 13415 # FIXME: insert proper C++ library support 13416 ld_shlibs_CXX=no 13417 ;; 13418 aix[4-9]*) 13419 if test ia64 = "$host_cpu"; then 13420 # On IA64, the linker does run time linking by default, so we don't 13421 # have to do anything special. 13422 aix_use_runtimelinking=no 13423 exp_sym_flag='-Bexport' 13424 no_entry_flag= 13425 else 13426 aix_use_runtimelinking=no 13427 13428 # Test if we are trying to use run time linking or normal 13429 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13430 # have runtime linking enabled, and use it for executables. 13431 # For shared libraries, we enable/disable runtime linking 13432 # depending on the kind of the shared library created - 13433 # when "with_aix_soname,aix_use_runtimelinking" is: 13434 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13435 # "aix,yes" lib.so shared, rtl:yes, for executables 13436 # lib.a static archive 13437 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13438 # lib.a(lib.so.V) shared, rtl:no, for executables 13439 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13440 # lib.a(lib.so.V) shared, rtl:no 13441 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13442 # lib.a static archive 13443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13444 for ld_flag in $LDFLAGS; do 13445 case $ld_flag in 13446 *-brtl*) 13447 aix_use_runtimelinking=yes 13448 break 13449 ;; 13450 esac 13451 done 13452 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13453 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13454 # so we don't have lib.a shared libs to link our executables. 13455 # We have to force runtime linking in this case. 13456 aix_use_runtimelinking=yes 13457 LDFLAGS="$LDFLAGS -Wl,-brtl" 13458 fi 13459 ;; 13460 esac 13461 13462 exp_sym_flag='-bexport' 13463 no_entry_flag='-bnoentry' 13464 fi 13465 13466 # When large executables or shared objects are built, AIX ld can 13467 # have problems creating the table of contents. If linking a library 13468 # or program results in "error TOC overflow" add -mminimal-toc to 13469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13471 13472 archive_cmds_CXX='' 13473 hardcode_direct_CXX=yes 13474 hardcode_direct_absolute_CXX=yes 13475 hardcode_libdir_separator_CXX=':' 13476 link_all_deplibs_CXX=yes 13477 file_list_spec_CXX='$wl-f,' 13478 case $with_aix_soname,$aix_use_runtimelinking in 13479 aix,*) ;; # no import file 13480 svr4,* | *,yes) # use import file 13481 # The Import File defines what to hardcode. 13482 hardcode_direct_CXX=no 13483 hardcode_direct_absolute_CXX=no 13484 ;; 13485 esac 13486 13487 if test yes = "$GXX"; then 13488 case $host_os in aix4.[012]|aix4.[012].*) 13489 # We only want to do this on AIX 4.2 and lower, the check 13490 # below for broken collect2 doesn't work under 4.3+ 13491 collect2name=`$CC -print-prog-name=collect2` 13492 if test -f "$collect2name" && 13493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13494 then 13495 # We have reworked collect2 13496 : 13497 else 13498 # We have old collect2 13499 hardcode_direct_CXX=unsupported 13500 # It fails to find uninstalled libraries when the uninstalled 13501 # path is not listed in the libpath. Setting hardcode_minus_L 13502 # to unsupported forces relinking 13503 hardcode_minus_L_CXX=yes 13504 hardcode_libdir_flag_spec_CXX='-L$libdir' 13505 hardcode_libdir_separator_CXX= 13506 fi 13507 esac 13508 shared_flag='-shared' 13509 if test yes = "$aix_use_runtimelinking"; then 13510 shared_flag=$shared_flag' $wl-G' 13511 fi 13512 # Need to ensure runtime linking is disabled for the traditional 13513 # shared library, or the linker may eventually find shared libraries 13514 # /with/ Import File - we do not want to mix them. 13515 shared_flag_aix='-shared' 13516 shared_flag_svr4='-shared $wl-G' 13517 else 13518 # not using gcc 13519 if test ia64 = "$host_cpu"; then 13520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13521 # chokes on -Wl,-G. The following line is correct: 13522 shared_flag='-G' 13523 else 13524 if test yes = "$aix_use_runtimelinking"; then 13525 shared_flag='$wl-G' 13526 else 13527 shared_flag='$wl-bM:SRE' 13528 fi 13529 shared_flag_aix='$wl-bM:SRE' 13530 shared_flag_svr4='$wl-G' 13531 fi 13532 fi 13533 13534 export_dynamic_flag_spec_CXX='$wl-bexpall' 13535 # It seems that -bexpall does not export symbols beginning with 13536 # underscore (_), so it is better to generate a list of symbols to 13537 # export. 13538 always_export_symbols_CXX=yes 13539 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13540 # Warning - without using the other runtime loading flags (-brtl), 13541 # -berok will link without error, but may produce a broken library. 13542 # The "-G" linker flag allows undefined symbols. 13543 no_undefined_flag_CXX='-bernotok' 13544 # Determine the default libpath from the value encoded in an empty 13545 # executable. 13546 if test set = "${lt_cv_aix_libpath+set}"; then 13547 aix_libpath=$lt_cv_aix_libpath 13548else 13549 if ${lt_cv_aix_libpath__CXX+:} false; then : 13550 $as_echo_n "(cached) " >&6 13551else 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554 13555int 13556main () 13557{ 13558 13559 ; 13560 return 0; 13561} 13562_ACEOF 13563if ac_fn_cxx_try_link "$LINENO"; then : 13564 13565 lt_aix_libpath_sed=' 13566 /Import File Strings/,/^$/ { 13567 /^0/ { 13568 s/^0 *\([^ ]*\) *$/\1/ 13569 p 13570 } 13571 }' 13572 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13573 # Check for a 64-bit object if we didn't find anything. 13574 if test -z "$lt_cv_aix_libpath__CXX"; then 13575 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13576 fi 13577fi 13578rm -f core conftest.err conftest.$ac_objext \ 13579 conftest$ac_exeext conftest.$ac_ext 13580 if test -z "$lt_cv_aix_libpath__CXX"; then 13581 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13582 fi 13583 13584fi 13585 13586 aix_libpath=$lt_cv_aix_libpath__CXX 13587fi 13588 13589 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13590 13591 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 13592 else 13593 if test ia64 = "$host_cpu"; then 13594 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13595 allow_undefined_flag_CXX="-z nodefs" 13596 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" 13597 else 13598 # Determine the default libpath from the value encoded in an 13599 # empty executable. 13600 if test set = "${lt_cv_aix_libpath+set}"; then 13601 aix_libpath=$lt_cv_aix_libpath 13602else 13603 if ${lt_cv_aix_libpath__CXX+:} false; then : 13604 $as_echo_n "(cached) " >&6 13605else 13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608 13609int 13610main () 13611{ 13612 13613 ; 13614 return 0; 13615} 13616_ACEOF 13617if ac_fn_cxx_try_link "$LINENO"; then : 13618 13619 lt_aix_libpath_sed=' 13620 /Import File Strings/,/^$/ { 13621 /^0/ { 13622 s/^0 *\([^ ]*\) *$/\1/ 13623 p 13624 } 13625 }' 13626 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13627 # Check for a 64-bit object if we didn't find anything. 13628 if test -z "$lt_cv_aix_libpath__CXX"; then 13629 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13630 fi 13631fi 13632rm -f core conftest.err conftest.$ac_objext \ 13633 conftest$ac_exeext conftest.$ac_ext 13634 if test -z "$lt_cv_aix_libpath__CXX"; then 13635 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13636 fi 13637 13638fi 13639 13640 aix_libpath=$lt_cv_aix_libpath__CXX 13641fi 13642 13643 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13644 # Warning - without using the other run time loading flags, 13645 # -berok will link without error, but may produce a broken library. 13646 no_undefined_flag_CXX=' $wl-bernotok' 13647 allow_undefined_flag_CXX=' $wl-berok' 13648 if test yes = "$with_gnu_ld"; then 13649 # We only use this code for GNU lds that support --whole-archive. 13650 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13651 else 13652 # Exported symbols can be pulled into shared objects from archives 13653 whole_archive_flag_spec_CXX='$convenience' 13654 fi 13655 archive_cmds_need_lc_CXX=yes 13656 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13657 # -brtl affects multiple linker settings, -berok does not and is overridden later 13658 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13659 if test svr4 != "$with_aix_soname"; then 13660 # This is similar to how AIX traditionally builds its shared 13661 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13662 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' 13663 fi 13664 if test aix != "$with_aix_soname"; then 13665 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' 13666 else 13667 # used by -dlpreopen to get the symbols 13668 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13669 fi 13670 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13671 fi 13672 fi 13673 ;; 13674 13675 beos*) 13676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13677 allow_undefined_flag_CXX=unsupported 13678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13679 # support --undefined. This deserves some investigation. FIXME 13680 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13681 else 13682 ld_shlibs_CXX=no 13683 fi 13684 ;; 13685 13686 chorus*) 13687 case $cc_basename in 13688 *) 13689 # FIXME: insert proper C++ library support 13690 ld_shlibs_CXX=no 13691 ;; 13692 esac 13693 ;; 13694 13695 cygwin* | mingw* | pw32* | cegcc*) 13696 case $GXX,$cc_basename in 13697 ,cl* | no,cl*) 13698 # Native MSVC 13699 # hardcode_libdir_flag_spec is actually meaningless, as there is 13700 # no search path for DLLs. 13701 hardcode_libdir_flag_spec_CXX=' ' 13702 allow_undefined_flag_CXX=unsupported 13703 always_export_symbols_CXX=yes 13704 file_list_spec_CXX='@' 13705 # Tell ltmain to make .lib files, not .a files. 13706 libext=lib 13707 # Tell ltmain to make .dll files, not .so files. 13708 shrext_cmds=.dll 13709 # FIXME: Setting linknames here is a bad hack. 13710 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13711 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13712 cp "$export_symbols" "$output_objdir/$soname.def"; 13713 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13714 else 13715 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13716 fi~ 13717 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13718 linknames=' 13719 # The linker will not automatically build a static lib if we build a DLL. 13720 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13721 enable_shared_with_static_runtimes_CXX=yes 13722 # Don't use ranlib 13723 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13724 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13725 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13726 case $lt_outputfile in 13727 *.exe|*.EXE) ;; 13728 *) 13729 lt_outputfile=$lt_outputfile.exe 13730 lt_tool_outputfile=$lt_tool_outputfile.exe 13731 ;; 13732 esac~ 13733 func_to_tool_file "$lt_outputfile"~ 13734 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13735 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13736 $RM "$lt_outputfile.manifest"; 13737 fi' 13738 ;; 13739 *) 13740 # g++ 13741 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13742 # as there is no search path for DLLs. 13743 hardcode_libdir_flag_spec_CXX='-L$libdir' 13744 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13745 allow_undefined_flag_CXX=unsupported 13746 always_export_symbols_CXX=no 13747 enable_shared_with_static_runtimes_CXX=yes 13748 13749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13750 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' 13751 # If the export-symbols file already is a .def file, use it as 13752 # is; otherwise, prepend EXPORTS... 13753 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13754 cp $export_symbols $output_objdir/$soname.def; 13755 else 13756 echo EXPORTS > $output_objdir/$soname.def; 13757 cat $export_symbols >> $output_objdir/$soname.def; 13758 fi~ 13759 $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' 13760 else 13761 ld_shlibs_CXX=no 13762 fi 13763 ;; 13764 esac 13765 ;; 13766 darwin* | rhapsody*) 13767 13768 13769 archive_cmds_need_lc_CXX=no 13770 hardcode_direct_CXX=no 13771 hardcode_automatic_CXX=yes 13772 hardcode_shlibpath_var_CXX=unsupported 13773 if test yes = "$lt_cv_ld_force_load"; then 13774 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\"`' 13775 13776 else 13777 whole_archive_flag_spec_CXX='' 13778 fi 13779 link_all_deplibs_CXX=yes 13780 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13781 case $cc_basename in 13782 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13783 *) _lt_dar_can_shared=$GCC ;; 13784 esac 13785 if test yes = "$_lt_dar_can_shared"; then 13786 output_verbose_link_cmd=func_echo_all 13787 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" 13788 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13789 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" 13790 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" 13791 if test yes != "$lt_cv_apple_cc_single_mod"; then 13792 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" 13793 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" 13794 fi 13795 13796 else 13797 ld_shlibs_CXX=no 13798 fi 13799 13800 ;; 13801 13802 os2*) 13803 hardcode_libdir_flag_spec_CXX='-L$libdir' 13804 hardcode_minus_L_CXX=yes 13805 allow_undefined_flag_CXX=unsupported 13806 shrext_cmds=.dll 13807 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13810 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13813 emximp -o $lib $output_objdir/$libname.def' 13814 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13817 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13818 prefix_cmds="$SED"~ 13819 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13820 prefix_cmds="$prefix_cmds -e 1d"; 13821 fi~ 13822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13825 emximp -o $lib $output_objdir/$libname.def' 13826 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13827 enable_shared_with_static_runtimes_CXX=yes 13828 ;; 13829 13830 dgux*) 13831 case $cc_basename in 13832 ec++*) 13833 # FIXME: insert proper C++ library support 13834 ld_shlibs_CXX=no 13835 ;; 13836 ghcx*) 13837 # Green Hills C++ Compiler 13838 # FIXME: insert proper C++ library support 13839 ld_shlibs_CXX=no 13840 ;; 13841 *) 13842 # FIXME: insert proper C++ library support 13843 ld_shlibs_CXX=no 13844 ;; 13845 esac 13846 ;; 13847 13848 freebsd2.*) 13849 # C++ shared libraries reported to be fairly broken before 13850 # switch to ELF 13851 ld_shlibs_CXX=no 13852 ;; 13853 13854 freebsd-elf*) 13855 archive_cmds_need_lc_CXX=no 13856 ;; 13857 13858 freebsd* | dragonfly*) 13859 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13860 # conventions 13861 ld_shlibs_CXX=yes 13862 ;; 13863 13864 haiku*) 13865 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13866 link_all_deplibs_CXX=yes 13867 ;; 13868 13869 hpux9*) 13870 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13871 hardcode_libdir_separator_CXX=: 13872 export_dynamic_flag_spec_CXX='$wl-E' 13873 hardcode_direct_CXX=yes 13874 hardcode_minus_L_CXX=yes # Not in the search PATH, 13875 # but as the default 13876 # location of the library. 13877 13878 case $cc_basename in 13879 CC*) 13880 # FIXME: insert proper C++ library support 13881 ld_shlibs_CXX=no 13882 ;; 13883 aCC*) 13884 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' 13885 # Commands to make compiler produce verbose output that lists 13886 # what "hidden" libraries, object files and flags are used when 13887 # linking a shared library. 13888 # 13889 # There doesn't appear to be a way to prevent this compiler from 13890 # explicitly linking system object files so we need to strip them 13891 # from the output so that they don't get included in the library 13892 # dependencies. 13893 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"' 13894 ;; 13895 *) 13896 if test yes = "$GXX"; then 13897 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' 13898 else 13899 # FIXME: insert proper C++ library support 13900 ld_shlibs_CXX=no 13901 fi 13902 ;; 13903 esac 13904 ;; 13905 13906 hpux10*|hpux11*) 13907 if test no = "$with_gnu_ld"; then 13908 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13909 hardcode_libdir_separator_CXX=: 13910 13911 case $host_cpu in 13912 hppa*64*|ia64*) 13913 ;; 13914 *) 13915 export_dynamic_flag_spec_CXX='$wl-E' 13916 ;; 13917 esac 13918 fi 13919 case $host_cpu in 13920 hppa*64*|ia64*) 13921 hardcode_direct_CXX=no 13922 hardcode_shlibpath_var_CXX=no 13923 ;; 13924 *) 13925 hardcode_direct_CXX=yes 13926 hardcode_direct_absolute_CXX=yes 13927 hardcode_minus_L_CXX=yes # Not in the search PATH, 13928 # but as the default 13929 # location of the library. 13930 ;; 13931 esac 13932 13933 case $cc_basename in 13934 CC*) 13935 # FIXME: insert proper C++ library support 13936 ld_shlibs_CXX=no 13937 ;; 13938 aCC*) 13939 case $host_cpu in 13940 hppa*64*) 13941 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13942 ;; 13943 ia64*) 13944 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13945 ;; 13946 *) 13947 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13948 ;; 13949 esac 13950 # Commands to make compiler produce verbose output that lists 13951 # what "hidden" libraries, object files and flags are used when 13952 # linking a shared library. 13953 # 13954 # There doesn't appear to be a way to prevent this compiler from 13955 # explicitly linking system object files so we need to strip them 13956 # from the output so that they don't get included in the library 13957 # dependencies. 13958 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"' 13959 ;; 13960 *) 13961 if test yes = "$GXX"; then 13962 if test no = "$with_gnu_ld"; then 13963 case $host_cpu in 13964 hppa*64*) 13965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13966 ;; 13967 ia64*) 13968 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13969 ;; 13970 *) 13971 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' 13972 ;; 13973 esac 13974 fi 13975 else 13976 # FIXME: insert proper C++ library support 13977 ld_shlibs_CXX=no 13978 fi 13979 ;; 13980 esac 13981 ;; 13982 13983 interix[3-9]*) 13984 hardcode_direct_CXX=no 13985 hardcode_shlibpath_var_CXX=no 13986 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13987 export_dynamic_flag_spec_CXX='$wl-E' 13988 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13989 # Instead, shared libraries are loaded at an image base (0x10000000 by 13990 # default) and relocated if they conflict, which is a slow very memory 13991 # consuming and fragmenting process. To avoid this, we pick a random, 13992 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13993 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13994 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' 13995 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' 13996 ;; 13997 irix5* | irix6*) 13998 case $cc_basename in 13999 CC*) 14000 # SGI C++ 14001 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' 14002 14003 # Archives containing C++ object files must be created using 14004 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14005 # necessary to make sure instantiated templates are included 14006 # in the archive. 14007 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14008 ;; 14009 *) 14010 if test yes = "$GXX"; then 14011 if test no = "$with_gnu_ld"; then 14012 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' 14013 else 14014 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' 14015 fi 14016 fi 14017 link_all_deplibs_CXX=yes 14018 ;; 14019 esac 14020 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14021 hardcode_libdir_separator_CXX=: 14022 inherit_rpath_CXX=yes 14023 ;; 14024 14025 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14026 case $cc_basename in 14027 KCC*) 14028 # Kuck and Associates, Inc. (KAI) C++ Compiler 14029 14030 # KCC will only create a shared library if the output file 14031 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14032 # to its proper name (with version) after linking. 14033 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' 14034 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' 14035 # Commands to make compiler produce verbose output that lists 14036 # what "hidden" libraries, object files and flags are used when 14037 # linking a shared library. 14038 # 14039 # There doesn't appear to be a way to prevent this compiler from 14040 # explicitly linking system object files so we need to strip them 14041 # from the output so that they don't get included in the library 14042 # dependencies. 14043 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"' 14044 14045 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14046 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14047 14048 # Archives containing C++ object files must be created using 14049 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14051 ;; 14052 icpc* | ecpc* ) 14053 # Intel C++ 14054 with_gnu_ld=yes 14055 # version 8.0 and above of icpc choke on multiply defined symbols 14056 # if we add $predep_objects and $postdep_objects, however 7.1 and 14057 # earlier do not add the objects themselves. 14058 case `$CC -V 2>&1` in 14059 *"Version 7."*) 14060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14061 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' 14062 ;; 14063 *) # Version 8.0 or newer 14064 tmp_idyn= 14065 case $host_cpu in 14066 ia64*) tmp_idyn=' -i_dynamic';; 14067 esac 14068 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14069 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' 14070 ;; 14071 esac 14072 archive_cmds_need_lc_CXX=no 14073 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14074 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14075 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14076 ;; 14077 pgCC* | pgcpp*) 14078 # Portland Group C++ compiler 14079 case `$CC -V` in 14080 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14081 prelink_cmds_CXX='tpldir=Template.dir~ 14082 rm -rf $tpldir~ 14083 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14084 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14085 old_archive_cmds_CXX='tpldir=Template.dir~ 14086 rm -rf $tpldir~ 14087 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14088 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14089 $RANLIB $oldlib' 14090 archive_cmds_CXX='tpldir=Template.dir~ 14091 rm -rf $tpldir~ 14092 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14093 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14094 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14095 rm -rf $tpldir~ 14096 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14097 $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' 14098 ;; 14099 *) # Version 6 and above use weak symbols 14100 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14101 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' 14102 ;; 14103 esac 14104 14105 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14106 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14107 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' 14108 ;; 14109 cxx*) 14110 # Compaq C++ 14111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14112 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' 14113 14114 runpath_var=LD_RUN_PATH 14115 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14116 hardcode_libdir_separator_CXX=: 14117 14118 # Commands to make compiler produce verbose output that lists 14119 # what "hidden" libraries, object files and flags are used when 14120 # linking a shared library. 14121 # 14122 # There doesn't appear to be a way to prevent this compiler from 14123 # explicitly linking system object files so we need to strip them 14124 # from the output so that they don't get included in the library 14125 # dependencies. 14126 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' 14127 ;; 14128 xl* | mpixl* | bgxl*) 14129 # IBM XL 8.0 on PPC, with GNU ld 14130 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14131 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14132 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14133 if test yes = "$supports_anon_versioning"; then 14134 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14136 echo "local: *; };" >> $output_objdir/$libname.ver~ 14137 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14138 fi 14139 ;; 14140 *) 14141 case `$CC -V 2>&1 | sed 5q` in 14142 *Sun\ C*) 14143 # Sun C++ 5.9 14144 no_undefined_flag_CXX=' -zdefs' 14145 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14146 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' 14147 hardcode_libdir_flag_spec_CXX='-R$libdir' 14148 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' 14149 compiler_needs_object_CXX=yes 14150 14151 # Not sure whether something based on 14152 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14153 # would be better. 14154 output_verbose_link_cmd='func_echo_all' 14155 14156 # Archives containing C++ object files must be created using 14157 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14158 # necessary to make sure instantiated templates are included 14159 # in the archive. 14160 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14161 ;; 14162 esac 14163 ;; 14164 esac 14165 ;; 14166 14167 lynxos*) 14168 # FIXME: insert proper C++ library support 14169 ld_shlibs_CXX=no 14170 ;; 14171 14172 m88k*) 14173 # FIXME: insert proper C++ library support 14174 ld_shlibs_CXX=no 14175 ;; 14176 14177 mvs*) 14178 case $cc_basename in 14179 cxx*) 14180 # FIXME: insert proper C++ library support 14181 ld_shlibs_CXX=no 14182 ;; 14183 *) 14184 # FIXME: insert proper C++ library support 14185 ld_shlibs_CXX=no 14186 ;; 14187 esac 14188 ;; 14189 14190 netbsd*) 14191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14192 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14193 wlarc= 14194 hardcode_libdir_flag_spec_CXX='-R$libdir' 14195 hardcode_direct_CXX=yes 14196 hardcode_shlibpath_var_CXX=no 14197 fi 14198 # Workaround some broken pre-1.5 toolchains 14199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14200 ;; 14201 14202 *nto* | *qnx*) 14203 ld_shlibs_CXX=yes 14204 ;; 14205 14206 openbsd* | bitrig*) 14207 if test -f /usr/libexec/ld.so; then 14208 hardcode_direct_CXX=yes 14209 hardcode_shlibpath_var_CXX=no 14210 hardcode_direct_absolute_CXX=yes 14211 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14212 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14214 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14215 export_dynamic_flag_spec_CXX='$wl-E' 14216 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14217 fi 14218 output_verbose_link_cmd=func_echo_all 14219 else 14220 ld_shlibs_CXX=no 14221 fi 14222 ;; 14223 14224 osf3* | osf4* | osf5*) 14225 case $cc_basename in 14226 KCC*) 14227 # Kuck and Associates, Inc. (KAI) C++ Compiler 14228 14229 # KCC will only create a shared library if the output file 14230 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14231 # to its proper name (with version) after linking. 14232 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' 14233 14234 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14235 hardcode_libdir_separator_CXX=: 14236 14237 # Archives containing C++ object files must be created using 14238 # the KAI C++ compiler. 14239 case $host in 14240 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14241 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14242 esac 14243 ;; 14244 RCC*) 14245 # Rational C++ 2.4.1 14246 # FIXME: insert proper C++ library support 14247 ld_shlibs_CXX=no 14248 ;; 14249 cxx*) 14250 case $host in 14251 osf3*) 14252 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14253 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' 14254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14255 ;; 14256 *) 14257 allow_undefined_flag_CXX=' -expect_unresolved \*' 14258 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' 14259 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14260 echo "-hidden">> $lib.exp~ 14261 $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~ 14262 $RM $lib.exp' 14263 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14264 ;; 14265 esac 14266 14267 hardcode_libdir_separator_CXX=: 14268 14269 # Commands to make compiler produce verbose output that lists 14270 # what "hidden" libraries, object files and flags are used when 14271 # linking a shared library. 14272 # 14273 # There doesn't appear to be a way to prevent this compiler from 14274 # explicitly linking system object files so we need to strip them 14275 # from the output so that they don't get included in the library 14276 # dependencies. 14277 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"' 14278 ;; 14279 *) 14280 if test yes,no = "$GXX,$with_gnu_ld"; then 14281 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14282 case $host in 14283 osf3*) 14284 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' 14285 ;; 14286 *) 14287 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' 14288 ;; 14289 esac 14290 14291 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14292 hardcode_libdir_separator_CXX=: 14293 14294 # Commands to make compiler produce verbose output that lists 14295 # what "hidden" libraries, object files and flags are used when 14296 # linking a shared library. 14297 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14298 14299 else 14300 # FIXME: insert proper C++ library support 14301 ld_shlibs_CXX=no 14302 fi 14303 ;; 14304 esac 14305 ;; 14306 14307 psos*) 14308 # FIXME: insert proper C++ library support 14309 ld_shlibs_CXX=no 14310 ;; 14311 14312 sunos4*) 14313 case $cc_basename in 14314 CC*) 14315 # Sun C++ 4.x 14316 # FIXME: insert proper C++ library support 14317 ld_shlibs_CXX=no 14318 ;; 14319 lcc*) 14320 # Lucid 14321 # FIXME: insert proper C++ library support 14322 ld_shlibs_CXX=no 14323 ;; 14324 *) 14325 # FIXME: insert proper C++ library support 14326 ld_shlibs_CXX=no 14327 ;; 14328 esac 14329 ;; 14330 14331 solaris*) 14332 case $cc_basename in 14333 CC* | sunCC*) 14334 # Sun C++ 4.2, 5.x and Centerline C++ 14335 archive_cmds_need_lc_CXX=yes 14336 no_undefined_flag_CXX=' -zdefs' 14337 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14339 $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' 14340 14341 hardcode_libdir_flag_spec_CXX='-R$libdir' 14342 hardcode_shlibpath_var_CXX=no 14343 case $host_os in 14344 solaris2.[0-5] | solaris2.[0-5].*) ;; 14345 *) 14346 # The compiler driver will combine and reorder linker options, 14347 # but understands '-z linker_flag'. 14348 # Supported since Solaris 2.6 (maybe 2.5.1?) 14349 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14350 ;; 14351 esac 14352 link_all_deplibs_CXX=yes 14353 14354 output_verbose_link_cmd='func_echo_all' 14355 14356 # Archives containing C++ object files must be created using 14357 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14358 # necessary to make sure instantiated templates are included 14359 # in the archive. 14360 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14361 ;; 14362 gcx*) 14363 # Green Hills C++ Compiler 14364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14365 14366 # The C++ compiler must be used to create the archive. 14367 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14368 ;; 14369 *) 14370 # GNU C++ compiler with Solaris linker 14371 if test yes,no = "$GXX,$with_gnu_ld"; then 14372 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14373 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14374 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14375 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14376 $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' 14377 14378 # Commands to make compiler produce verbose output that lists 14379 # what "hidden" libraries, object files and flags are used when 14380 # linking a shared library. 14381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14382 else 14383 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14384 # platform. 14385 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14386 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14387 $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' 14388 14389 # Commands to make compiler produce verbose output that lists 14390 # what "hidden" libraries, object files and flags are used when 14391 # linking a shared library. 14392 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14393 fi 14394 14395 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14396 case $host_os in 14397 solaris2.[0-5] | solaris2.[0-5].*) ;; 14398 *) 14399 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14400 ;; 14401 esac 14402 fi 14403 ;; 14404 esac 14405 ;; 14406 14407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14408 no_undefined_flag_CXX='$wl-z,text' 14409 archive_cmds_need_lc_CXX=no 14410 hardcode_shlibpath_var_CXX=no 14411 runpath_var='LD_RUN_PATH' 14412 14413 case $cc_basename in 14414 CC*) 14415 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14416 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14417 ;; 14418 *) 14419 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14420 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14421 ;; 14422 esac 14423 ;; 14424 14425 sysv5* | sco3.2v5* | sco5v6*) 14426 # Note: We CANNOT use -z defs as we might desire, because we do not 14427 # link with -lc, and that would cause any symbols used from libc to 14428 # always be unresolved, which means just about no library would 14429 # ever link correctly. If we're not using GNU ld we use -z text 14430 # though, which does catch some bad symbols but isn't as heavy-handed 14431 # as -z defs. 14432 no_undefined_flag_CXX='$wl-z,text' 14433 allow_undefined_flag_CXX='$wl-z,nodefs' 14434 archive_cmds_need_lc_CXX=no 14435 hardcode_shlibpath_var_CXX=no 14436 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14437 hardcode_libdir_separator_CXX=':' 14438 link_all_deplibs_CXX=yes 14439 export_dynamic_flag_spec_CXX='$wl-Bexport' 14440 runpath_var='LD_RUN_PATH' 14441 14442 case $cc_basename in 14443 CC*) 14444 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14445 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14446 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14447 '"$old_archive_cmds_CXX" 14448 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14449 '"$reload_cmds_CXX" 14450 ;; 14451 *) 14452 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14453 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14454 ;; 14455 esac 14456 ;; 14457 14458 tandem*) 14459 case $cc_basename in 14460 NCC*) 14461 # NonStop-UX NCC 3.20 14462 # FIXME: insert proper C++ library support 14463 ld_shlibs_CXX=no 14464 ;; 14465 *) 14466 # FIXME: insert proper C++ library support 14467 ld_shlibs_CXX=no 14468 ;; 14469 esac 14470 ;; 14471 14472 vxworks*) 14473 # FIXME: insert proper C++ library support 14474 ld_shlibs_CXX=no 14475 ;; 14476 14477 *) 14478 # FIXME: insert proper C++ library support 14479 ld_shlibs_CXX=no 14480 ;; 14481 esac 14482 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14484$as_echo "$ld_shlibs_CXX" >&6; } 14485 test no = "$ld_shlibs_CXX" && can_build_shared=no 14486 14487 GCC_CXX=$GXX 14488 LD_CXX=$LD 14489 14490 ## CAVEAT EMPTOR: 14491 ## There is no encapsulation within the following macros, do not change 14492 ## the running order or otherwise move them around unless you know exactly 14493 ## what you are doing... 14494 # Dependencies to place before and after the object being linked: 14495predep_objects_CXX= 14496postdep_objects_CXX= 14497predeps_CXX= 14498postdeps_CXX= 14499compiler_lib_search_path_CXX= 14500 14501cat > conftest.$ac_ext <<_LT_EOF 14502class Foo 14503{ 14504public: 14505 Foo (void) { a = 0; } 14506private: 14507 int a; 14508}; 14509_LT_EOF 14510 14511 14512_lt_libdeps_save_CFLAGS=$CFLAGS 14513case "$CC $CFLAGS " in #( 14514*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14515*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14516*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14517esac 14518 14519if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14520 (eval $ac_compile) 2>&5 14521 ac_status=$? 14522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14523 test $ac_status = 0; }; then 14524 # Parse the compiler output and extract the necessary 14525 # objects, libraries and library flags. 14526 14527 # Sentinel used to keep track of whether or not we are before 14528 # the conftest object file. 14529 pre_test_object_deps_done=no 14530 14531 for p in `eval "$output_verbose_link_cmd"`; do 14532 case $prev$p in 14533 14534 -L* | -R* | -l*) 14535 # Some compilers place space between "-{L,R}" and the path. 14536 # Remove the space. 14537 if test x-L = "$p" || 14538 test x-R = "$p"; then 14539 prev=$p 14540 continue 14541 fi 14542 14543 # Expand the sysroot to ease extracting the directories later. 14544 if test -z "$prev"; then 14545 case $p in 14546 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14547 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14548 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14549 esac 14550 fi 14551 case $p in 14552 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14553 esac 14554 if test no = "$pre_test_object_deps_done"; then 14555 case $prev in 14556 -L | -R) 14557 # Internal compiler library paths should come after those 14558 # provided the user. The postdeps already come after the 14559 # user supplied libs so there is no need to process them. 14560 if test -z "$compiler_lib_search_path_CXX"; then 14561 compiler_lib_search_path_CXX=$prev$p 14562 else 14563 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14564 fi 14565 ;; 14566 # The "-l" case would never come before the object being 14567 # linked, so don't bother handling this case. 14568 esac 14569 else 14570 if test -z "$postdeps_CXX"; then 14571 postdeps_CXX=$prev$p 14572 else 14573 postdeps_CXX="${postdeps_CXX} $prev$p" 14574 fi 14575 fi 14576 prev= 14577 ;; 14578 14579 *.lto.$objext) ;; # Ignore GCC LTO objects 14580 *.$objext) 14581 # This assumes that the test object file only shows up 14582 # once in the compiler output. 14583 if test "$p" = "conftest.$objext"; then 14584 pre_test_object_deps_done=yes 14585 continue 14586 fi 14587 14588 if test no = "$pre_test_object_deps_done"; then 14589 if test -z "$predep_objects_CXX"; then 14590 predep_objects_CXX=$p 14591 else 14592 predep_objects_CXX="$predep_objects_CXX $p" 14593 fi 14594 else 14595 if test -z "$postdep_objects_CXX"; then 14596 postdep_objects_CXX=$p 14597 else 14598 postdep_objects_CXX="$postdep_objects_CXX $p" 14599 fi 14600 fi 14601 ;; 14602 14603 *) ;; # Ignore the rest. 14604 14605 esac 14606 done 14607 14608 # Clean up. 14609 rm -f a.out a.exe 14610else 14611 echo "libtool.m4: error: problem compiling CXX test program" 14612fi 14613 14614$RM -f confest.$objext 14615CFLAGS=$_lt_libdeps_save_CFLAGS 14616 14617# PORTME: override above test on systems where it is broken 14618case $host_os in 14619interix[3-9]*) 14620 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14621 # hack all around it, let's just trust "g++" to DTRT. 14622 predep_objects_CXX= 14623 postdep_objects_CXX= 14624 postdeps_CXX= 14625 ;; 14626esac 14627 14628 14629case " $postdeps_CXX " in 14630*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14631esac 14632 compiler_lib_search_dirs_CXX= 14633if test -n "${compiler_lib_search_path_CXX}"; then 14634 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14635fi 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 lt_prog_compiler_wl_CXX= 14668lt_prog_compiler_pic_CXX= 14669lt_prog_compiler_static_CXX= 14670 14671 14672 # C++ specific cases for pic, static, wl, etc. 14673 if test yes = "$GXX"; then 14674 lt_prog_compiler_wl_CXX='-Wl,' 14675 lt_prog_compiler_static_CXX='-static' 14676 14677 case $host_os in 14678 aix*) 14679 # All AIX code is PIC. 14680 if test ia64 = "$host_cpu"; then 14681 # AIX 5 now supports IA64 processor 14682 lt_prog_compiler_static_CXX='-Bstatic' 14683 fi 14684 lt_prog_compiler_pic_CXX='-fPIC' 14685 ;; 14686 14687 amigaos*) 14688 case $host_cpu in 14689 powerpc) 14690 # see comment about AmigaOS4 .so support 14691 lt_prog_compiler_pic_CXX='-fPIC' 14692 ;; 14693 m68k) 14694 # FIXME: we need at least 68020 code to build shared libraries, but 14695 # adding the '-m68020' flag to GCC prevents building anything better, 14696 # like '-m68040'. 14697 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14698 ;; 14699 esac 14700 ;; 14701 14702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14703 # PIC is the default for these OSes. 14704 ;; 14705 mingw* | cygwin* | os2* | pw32* | cegcc*) 14706 # This hack is so that the source file can tell whether it is being 14707 # built for inclusion in a dll (and should export symbols for example). 14708 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14709 # (--disable-auto-import) libraries 14710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14711 case $host_os in 14712 os2*) 14713 lt_prog_compiler_static_CXX='$wl-static' 14714 ;; 14715 esac 14716 ;; 14717 darwin* | rhapsody*) 14718 # PIC is the default on this platform 14719 # Common symbols not allowed in MH_DYLIB files 14720 lt_prog_compiler_pic_CXX='-fno-common' 14721 ;; 14722 *djgpp*) 14723 # DJGPP does not support shared libraries at all 14724 lt_prog_compiler_pic_CXX= 14725 ;; 14726 haiku*) 14727 # PIC is the default for Haiku. 14728 # The "-static" flag exists, but is broken. 14729 lt_prog_compiler_static_CXX= 14730 ;; 14731 interix[3-9]*) 14732 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14733 # Instead, we relocate shared libraries at runtime. 14734 ;; 14735 sysv4*MP*) 14736 if test -d /usr/nec; then 14737 lt_prog_compiler_pic_CXX=-Kconform_pic 14738 fi 14739 ;; 14740 hpux*) 14741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14743 # sets the default TLS model and affects inlining. 14744 case $host_cpu in 14745 hppa*64*) 14746 ;; 14747 *) 14748 lt_prog_compiler_pic_CXX='-fPIC' 14749 ;; 14750 esac 14751 ;; 14752 *qnx* | *nto*) 14753 # QNX uses GNU C++, but need to define -shared option too, otherwise 14754 # it will coredump. 14755 lt_prog_compiler_pic_CXX='-fPIC -shared' 14756 ;; 14757 *) 14758 lt_prog_compiler_pic_CXX='-fPIC' 14759 ;; 14760 esac 14761 else 14762 case $host_os in 14763 aix[4-9]*) 14764 # All AIX code is PIC. 14765 if test ia64 = "$host_cpu"; then 14766 # AIX 5 now supports IA64 processor 14767 lt_prog_compiler_static_CXX='-Bstatic' 14768 else 14769 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14770 fi 14771 ;; 14772 chorus*) 14773 case $cc_basename in 14774 cxch68*) 14775 # Green Hills C++ Compiler 14776 # _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" 14777 ;; 14778 esac 14779 ;; 14780 mingw* | cygwin* | os2* | pw32* | cegcc*) 14781 # This hack is so that the source file can tell whether it is being 14782 # built for inclusion in a dll (and should export symbols for example). 14783 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14784 ;; 14785 dgux*) 14786 case $cc_basename in 14787 ec++*) 14788 lt_prog_compiler_pic_CXX='-KPIC' 14789 ;; 14790 ghcx*) 14791 # Green Hills C++ Compiler 14792 lt_prog_compiler_pic_CXX='-pic' 14793 ;; 14794 *) 14795 ;; 14796 esac 14797 ;; 14798 freebsd* | dragonfly*) 14799 # FreeBSD uses GNU C++ 14800 ;; 14801 hpux9* | hpux10* | hpux11*) 14802 case $cc_basename in 14803 CC*) 14804 lt_prog_compiler_wl_CXX='-Wl,' 14805 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14806 if test ia64 != "$host_cpu"; then 14807 lt_prog_compiler_pic_CXX='+Z' 14808 fi 14809 ;; 14810 aCC*) 14811 lt_prog_compiler_wl_CXX='-Wl,' 14812 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14813 case $host_cpu in 14814 hppa*64*|ia64*) 14815 # +Z the default 14816 ;; 14817 *) 14818 lt_prog_compiler_pic_CXX='+Z' 14819 ;; 14820 esac 14821 ;; 14822 *) 14823 ;; 14824 esac 14825 ;; 14826 interix*) 14827 # This is c89, which is MS Visual C++ (no shared libs) 14828 # Anyone wants to do a port? 14829 ;; 14830 irix5* | irix6* | nonstopux*) 14831 case $cc_basename in 14832 CC*) 14833 lt_prog_compiler_wl_CXX='-Wl,' 14834 lt_prog_compiler_static_CXX='-non_shared' 14835 # CC pic flag -KPIC is the default. 14836 ;; 14837 *) 14838 ;; 14839 esac 14840 ;; 14841 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14842 case $cc_basename in 14843 KCC*) 14844 # KAI C++ Compiler 14845 lt_prog_compiler_wl_CXX='--backend -Wl,' 14846 lt_prog_compiler_pic_CXX='-fPIC' 14847 ;; 14848 ecpc* ) 14849 # old Intel C++ for x86_64, which still supported -KPIC. 14850 lt_prog_compiler_wl_CXX='-Wl,' 14851 lt_prog_compiler_pic_CXX='-KPIC' 14852 lt_prog_compiler_static_CXX='-static' 14853 ;; 14854 icpc* ) 14855 # Intel C++, used to be incompatible with GCC. 14856 # ICC 10 doesn't accept -KPIC any more. 14857 lt_prog_compiler_wl_CXX='-Wl,' 14858 lt_prog_compiler_pic_CXX='-fPIC' 14859 lt_prog_compiler_static_CXX='-static' 14860 ;; 14861 pgCC* | pgcpp*) 14862 # Portland Group C++ compiler 14863 lt_prog_compiler_wl_CXX='-Wl,' 14864 lt_prog_compiler_pic_CXX='-fpic' 14865 lt_prog_compiler_static_CXX='-Bstatic' 14866 ;; 14867 cxx*) 14868 # Compaq C++ 14869 # Make sure the PIC flag is empty. It appears that all Alpha 14870 # Linux and Compaq Tru64 Unix objects are PIC. 14871 lt_prog_compiler_pic_CXX= 14872 lt_prog_compiler_static_CXX='-non_shared' 14873 ;; 14874 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14875 # IBM XL 8.0, 9.0 on PPC and BlueGene 14876 lt_prog_compiler_wl_CXX='-Wl,' 14877 lt_prog_compiler_pic_CXX='-qpic' 14878 lt_prog_compiler_static_CXX='-qstaticlink' 14879 ;; 14880 *) 14881 case `$CC -V 2>&1 | sed 5q` in 14882 *Sun\ C*) 14883 # Sun C++ 5.9 14884 lt_prog_compiler_pic_CXX='-KPIC' 14885 lt_prog_compiler_static_CXX='-Bstatic' 14886 lt_prog_compiler_wl_CXX='-Qoption ld ' 14887 ;; 14888 esac 14889 ;; 14890 esac 14891 ;; 14892 lynxos*) 14893 ;; 14894 m88k*) 14895 ;; 14896 mvs*) 14897 case $cc_basename in 14898 cxx*) 14899 lt_prog_compiler_pic_CXX='-W c,exportall' 14900 ;; 14901 *) 14902 ;; 14903 esac 14904 ;; 14905 netbsd*) 14906 ;; 14907 *qnx* | *nto*) 14908 # QNX uses GNU C++, but need to define -shared option too, otherwise 14909 # it will coredump. 14910 lt_prog_compiler_pic_CXX='-fPIC -shared' 14911 ;; 14912 osf3* | osf4* | osf5*) 14913 case $cc_basename in 14914 KCC*) 14915 lt_prog_compiler_wl_CXX='--backend -Wl,' 14916 ;; 14917 RCC*) 14918 # Rational C++ 2.4.1 14919 lt_prog_compiler_pic_CXX='-pic' 14920 ;; 14921 cxx*) 14922 # Digital/Compaq C++ 14923 lt_prog_compiler_wl_CXX='-Wl,' 14924 # Make sure the PIC flag is empty. It appears that all Alpha 14925 # Linux and Compaq Tru64 Unix objects are PIC. 14926 lt_prog_compiler_pic_CXX= 14927 lt_prog_compiler_static_CXX='-non_shared' 14928 ;; 14929 *) 14930 ;; 14931 esac 14932 ;; 14933 psos*) 14934 ;; 14935 solaris*) 14936 case $cc_basename in 14937 CC* | sunCC*) 14938 # Sun C++ 4.2, 5.x and Centerline C++ 14939 lt_prog_compiler_pic_CXX='-KPIC' 14940 lt_prog_compiler_static_CXX='-Bstatic' 14941 lt_prog_compiler_wl_CXX='-Qoption ld ' 14942 ;; 14943 gcx*) 14944 # Green Hills C++ Compiler 14945 lt_prog_compiler_pic_CXX='-PIC' 14946 ;; 14947 *) 14948 ;; 14949 esac 14950 ;; 14951 sunos4*) 14952 case $cc_basename in 14953 CC*) 14954 # Sun C++ 4.x 14955 lt_prog_compiler_pic_CXX='-pic' 14956 lt_prog_compiler_static_CXX='-Bstatic' 14957 ;; 14958 lcc*) 14959 # Lucid 14960 lt_prog_compiler_pic_CXX='-pic' 14961 ;; 14962 *) 14963 ;; 14964 esac 14965 ;; 14966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14967 case $cc_basename in 14968 CC*) 14969 lt_prog_compiler_wl_CXX='-Wl,' 14970 lt_prog_compiler_pic_CXX='-KPIC' 14971 lt_prog_compiler_static_CXX='-Bstatic' 14972 ;; 14973 esac 14974 ;; 14975 tandem*) 14976 case $cc_basename in 14977 NCC*) 14978 # NonStop-UX NCC 3.20 14979 lt_prog_compiler_pic_CXX='-KPIC' 14980 ;; 14981 *) 14982 ;; 14983 esac 14984 ;; 14985 vxworks*) 14986 ;; 14987 *) 14988 lt_prog_compiler_can_build_shared_CXX=no 14989 ;; 14990 esac 14991 fi 14992 14993case $host_os in 14994 # For platforms that do not support PIC, -DPIC is meaningless: 14995 *djgpp*) 14996 lt_prog_compiler_pic_CXX= 14997 ;; 14998 *) 14999 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15000 ;; 15001esac 15002 15003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15004$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15005if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15006 $as_echo_n "(cached) " >&6 15007else 15008 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15009fi 15010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15011$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15012lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15013 15014# 15015# Check to make sure the PIC flag actually works. 15016# 15017if test -n "$lt_prog_compiler_pic_CXX"; then 15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15019$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15020if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15021 $as_echo_n "(cached) " >&6 15022else 15023 lt_cv_prog_compiler_pic_works_CXX=no 15024 ac_outfile=conftest.$ac_objext 15025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15026 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15027 # Insert the option either (1) after the last *FLAGS variable, or 15028 # (2) before a word containing "conftest.", or (3) at the end. 15029 # Note that $ac_compile itself does not contain backslashes and begins 15030 # with a dollar sign (not a hyphen), so the echo should work correctly. 15031 # The option is referenced via a variable to avoid confusing sed. 15032 lt_compile=`echo "$ac_compile" | $SED \ 15033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15035 -e 's:$: $lt_compiler_flag:'` 15036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15037 (eval "$lt_compile" 2>conftest.err) 15038 ac_status=$? 15039 cat conftest.err >&5 15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15041 if (exit $ac_status) && test -s "$ac_outfile"; then 15042 # The compiler can only warn and ignore the option if not recognized 15043 # So say no if there are warnings other than the usual output. 15044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15047 lt_cv_prog_compiler_pic_works_CXX=yes 15048 fi 15049 fi 15050 $RM conftest* 15051 15052fi 15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15054$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15055 15056if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15057 case $lt_prog_compiler_pic_CXX in 15058 "" | " "*) ;; 15059 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15060 esac 15061else 15062 lt_prog_compiler_pic_CXX= 15063 lt_prog_compiler_can_build_shared_CXX=no 15064fi 15065 15066fi 15067 15068 15069 15070 15071 15072# 15073# Check to make sure the static flag actually works. 15074# 15075wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15077$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15078if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15079 $as_echo_n "(cached) " >&6 15080else 15081 lt_cv_prog_compiler_static_works_CXX=no 15082 save_LDFLAGS=$LDFLAGS 15083 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15084 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15086 # The linker can only warn and ignore the option if not recognized 15087 # So say no if there are warnings 15088 if test -s conftest.err; then 15089 # Append any errors to the config.log. 15090 cat conftest.err 1>&5 15091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15093 if diff conftest.exp conftest.er2 >/dev/null; then 15094 lt_cv_prog_compiler_static_works_CXX=yes 15095 fi 15096 else 15097 lt_cv_prog_compiler_static_works_CXX=yes 15098 fi 15099 fi 15100 $RM -r conftest* 15101 LDFLAGS=$save_LDFLAGS 15102 15103fi 15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15105$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15106 15107if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15108 : 15109else 15110 lt_prog_compiler_static_CXX= 15111fi 15112 15113 15114 15115 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15118if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120else 15121 lt_cv_prog_compiler_c_o_CXX=no 15122 $RM -r conftest 2>/dev/null 15123 mkdir conftest 15124 cd conftest 15125 mkdir out 15126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15127 15128 lt_compiler_flag="-o out/conftest2.$ac_objext" 15129 # Insert the option either (1) after the last *FLAGS variable, or 15130 # (2) before a word containing "conftest.", or (3) at the end. 15131 # Note that $ac_compile itself does not contain backslashes and begins 15132 # with a dollar sign (not a hyphen), so the echo should work correctly. 15133 lt_compile=`echo "$ac_compile" | $SED \ 15134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15136 -e 's:$: $lt_compiler_flag:'` 15137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15138 (eval "$lt_compile" 2>out/conftest.err) 15139 ac_status=$? 15140 cat out/conftest.err >&5 15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15142 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15143 then 15144 # The compiler can only warn and ignore the option if not recognized 15145 # So say no if there are warnings 15146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15149 lt_cv_prog_compiler_c_o_CXX=yes 15150 fi 15151 fi 15152 chmod u+w . 2>&5 15153 $RM conftest* 15154 # SGI C++ compiler will create directory out/ii_files/ for 15155 # template instantiation 15156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15157 $RM out/* && rmdir out 15158 cd .. 15159 $RM -r conftest 15160 $RM conftest* 15161 15162fi 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15164$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15165 15166 15167 15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15170if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15171 $as_echo_n "(cached) " >&6 15172else 15173 lt_cv_prog_compiler_c_o_CXX=no 15174 $RM -r conftest 2>/dev/null 15175 mkdir conftest 15176 cd conftest 15177 mkdir out 15178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15179 15180 lt_compiler_flag="-o out/conftest2.$ac_objext" 15181 # Insert the option either (1) after the last *FLAGS variable, or 15182 # (2) before a word containing "conftest.", or (3) at the end. 15183 # Note that $ac_compile itself does not contain backslashes and begins 15184 # with a dollar sign (not a hyphen), so the echo should work correctly. 15185 lt_compile=`echo "$ac_compile" | $SED \ 15186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15188 -e 's:$: $lt_compiler_flag:'` 15189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15190 (eval "$lt_compile" 2>out/conftest.err) 15191 ac_status=$? 15192 cat out/conftest.err >&5 15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15194 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15195 then 15196 # The compiler can only warn and ignore the option if not recognized 15197 # So say no if there are warnings 15198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15201 lt_cv_prog_compiler_c_o_CXX=yes 15202 fi 15203 fi 15204 chmod u+w . 2>&5 15205 $RM conftest* 15206 # SGI C++ compiler will create directory out/ii_files/ for 15207 # template instantiation 15208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15209 $RM out/* && rmdir out 15210 cd .. 15211 $RM -r conftest 15212 $RM conftest* 15213 15214fi 15215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15216$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15217 15218 15219 15220 15221hard_links=nottested 15222if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15223 # do not overwrite the value of need_locks provided by the user 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15225$as_echo_n "checking if we can lock with hard links... " >&6; } 15226 hard_links=yes 15227 $RM conftest* 15228 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15229 touch conftest.a 15230 ln conftest.a conftest.b 2>&5 || hard_links=no 15231 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15233$as_echo "$hard_links" >&6; } 15234 if test no = "$hard_links"; then 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15236$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15237 need_locks=warn 15238 fi 15239else 15240 need_locks=no 15241fi 15242 15243 15244 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15246$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15247 15248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15249 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15250 case $host_os in 15251 aix[4-9]*) 15252 # If we're using GNU nm, then we don't want the "-C" option. 15253 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15254 # Without the "-l" option, or with the "-B" option, AIX nm treats 15255 # weak defined symbols like other global defined symbols, whereas 15256 # GNU nm marks them as "W". 15257 # While the 'weak' keyword is ignored in the Export File, we need 15258 # it in the Import File for the 'aix-soname' feature, so we have 15259 # to replace the "-B" option with "-P" for AIX nm. 15260 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15261 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' 15262 else 15263 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' 15264 fi 15265 ;; 15266 pw32*) 15267 export_symbols_cmds_CXX=$ltdll_cmds 15268 ;; 15269 cygwin* | mingw* | cegcc*) 15270 case $cc_basename in 15271 cl*) 15272 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15273 ;; 15274 *) 15275 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' 15276 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15277 ;; 15278 esac 15279 ;; 15280 *) 15281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15282 ;; 15283 esac 15284 15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15286$as_echo "$ld_shlibs_CXX" >&6; } 15287test no = "$ld_shlibs_CXX" && can_build_shared=no 15288 15289with_gnu_ld_CXX=$with_gnu_ld 15290 15291 15292 15293 15294 15295 15296# 15297# Do we need to explicitly link libc? 15298# 15299case "x$archive_cmds_need_lc_CXX" in 15300x|xyes) 15301 # Assume -lc should be added 15302 archive_cmds_need_lc_CXX=yes 15303 15304 if test yes,yes = "$GCC,$enable_shared"; then 15305 case $archive_cmds_CXX in 15306 *'~'*) 15307 # FIXME: we may have to deal with multi-command sequences. 15308 ;; 15309 '$CC '*) 15310 # Test whether the compiler implicitly links with -lc since on some 15311 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15312 # to ld, don't add -lc before -lgcc. 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15314$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15315if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15316 $as_echo_n "(cached) " >&6 15317else 15318 $RM conftest* 15319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15320 15321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15322 (eval $ac_compile) 2>&5 15323 ac_status=$? 15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15325 test $ac_status = 0; } 2>conftest.err; then 15326 soname=conftest 15327 lib=conftest 15328 libobjs=conftest.$ac_objext 15329 deplibs= 15330 wl=$lt_prog_compiler_wl_CXX 15331 pic_flag=$lt_prog_compiler_pic_CXX 15332 compiler_flags=-v 15333 linker_flags=-v 15334 verstring= 15335 output_objdir=. 15336 libname=conftest 15337 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15338 allow_undefined_flag_CXX= 15339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15340 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15341 ac_status=$? 15342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15343 test $ac_status = 0; } 15344 then 15345 lt_cv_archive_cmds_need_lc_CXX=no 15346 else 15347 lt_cv_archive_cmds_need_lc_CXX=yes 15348 fi 15349 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15350 else 15351 cat conftest.err 1>&5 15352 fi 15353 $RM conftest* 15354 15355fi 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15357$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15358 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15359 ;; 15360 esac 15361 fi 15362 ;; 15363esac 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15427$as_echo_n "checking dynamic linker characteristics... " >&6; } 15428 15429library_names_spec= 15430libname_spec='lib$name' 15431soname_spec= 15432shrext_cmds=.so 15433postinstall_cmds= 15434postuninstall_cmds= 15435finish_cmds= 15436finish_eval= 15437shlibpath_var= 15438shlibpath_overrides_runpath=unknown 15439version_type=none 15440dynamic_linker="$host_os ld.so" 15441sys_lib_dlsearch_path_spec="/lib /usr/lib" 15442need_lib_prefix=unknown 15443hardcode_into_libs=no 15444 15445# when you set need_version to no, make sure it does not cause -set_version 15446# flags to be left without arguments 15447need_version=unknown 15448 15449 15450 15451case $host_os in 15452aix3*) 15453 version_type=linux # correct to gnu/linux during the next big refactor 15454 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15455 shlibpath_var=LIBPATH 15456 15457 # AIX 3 has no versioning support, so we append a major version to the name. 15458 soname_spec='$libname$release$shared_ext$major' 15459 ;; 15460 15461aix[4-9]*) 15462 version_type=linux # correct to gnu/linux during the next big refactor 15463 need_lib_prefix=no 15464 need_version=no 15465 hardcode_into_libs=yes 15466 if test ia64 = "$host_cpu"; then 15467 # AIX 5 supports IA64 15468 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15469 shlibpath_var=LD_LIBRARY_PATH 15470 else 15471 # With GCC up to 2.95.x, collect2 would create an import file 15472 # for dependence libraries. The import file would start with 15473 # the line '#! .'. This would cause the generated library to 15474 # depend on '.', always an invalid library. This was fixed in 15475 # development snapshots of GCC prior to 3.0. 15476 case $host_os in 15477 aix4 | aix4.[01] | aix4.[01].*) 15478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15479 echo ' yes ' 15480 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15481 : 15482 else 15483 can_build_shared=no 15484 fi 15485 ;; 15486 esac 15487 # Using Import Files as archive members, it is possible to support 15488 # filename-based versioning of shared library archives on AIX. While 15489 # this would work for both with and without runtime linking, it will 15490 # prevent static linking of such archives. So we do filename-based 15491 # shared library versioning with .so extension only, which is used 15492 # when both runtime linking and shared linking is enabled. 15493 # Unfortunately, runtime linking may impact performance, so we do 15494 # not want this to be the default eventually. Also, we use the 15495 # versioned .so libs for executables only if there is the -brtl 15496 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15497 # To allow for filename-based versioning support, we need to create 15498 # libNAME.so.V as an archive file, containing: 15499 # *) an Import File, referring to the versioned filename of the 15500 # archive as well as the shared archive member, telling the 15501 # bitwidth (32 or 64) of that shared object, and providing the 15502 # list of exported symbols of that shared object, eventually 15503 # decorated with the 'weak' keyword 15504 # *) the shared object with the F_LOADONLY flag set, to really avoid 15505 # it being seen by the linker. 15506 # At run time we better use the real file rather than another symlink, 15507 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15508 15509 case $with_aix_soname,$aix_use_runtimelinking in 15510 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15511 # soname into executable. Probably we can add versioning support to 15512 # collect2, so additional links can be useful in future. 15513 aix,yes) # traditional libtool 15514 dynamic_linker='AIX unversionable lib.so' 15515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15516 # instead of lib<name>.a to let people know that these are not 15517 # typical AIX shared libraries. 15518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15519 ;; 15520 aix,no) # traditional AIX only 15521 dynamic_linker='AIX lib.a(lib.so.V)' 15522 # We preserve .a as extension for shared libraries through AIX4.2 15523 # and later when we are not doing run time linking. 15524 library_names_spec='$libname$release.a $libname.a' 15525 soname_spec='$libname$release$shared_ext$major' 15526 ;; 15527 svr4,*) # full svr4 only 15528 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15529 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15530 # We do not specify a path in Import Files, so LIBPATH fires. 15531 shlibpath_overrides_runpath=yes 15532 ;; 15533 *,yes) # both, prefer svr4 15534 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15535 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15536 # unpreferred sharedlib libNAME.a needs extra handling 15537 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"' 15538 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"' 15539 # We do not specify a path in Import Files, so LIBPATH fires. 15540 shlibpath_overrides_runpath=yes 15541 ;; 15542 *,no) # both, prefer aix 15543 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15544 library_names_spec='$libname$release.a $libname.a' 15545 soname_spec='$libname$release$shared_ext$major' 15546 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15547 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)' 15548 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"' 15549 ;; 15550 esac 15551 shlibpath_var=LIBPATH 15552 fi 15553 ;; 15554 15555amigaos*) 15556 case $host_cpu in 15557 powerpc) 15558 # Since July 2007 AmigaOS4 officially supports .so libraries. 15559 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15561 ;; 15562 m68k) 15563 library_names_spec='$libname.ixlibrary $libname.a' 15564 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15565 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' 15566 ;; 15567 esac 15568 ;; 15569 15570beos*) 15571 library_names_spec='$libname$shared_ext' 15572 dynamic_linker="$host_os ld.so" 15573 shlibpath_var=LIBRARY_PATH 15574 ;; 15575 15576bsdi[45]*) 15577 version_type=linux # correct to gnu/linux during the next big refactor 15578 need_version=no 15579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15580 soname_spec='$libname$release$shared_ext$major' 15581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15582 shlibpath_var=LD_LIBRARY_PATH 15583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15585 # the default ld.so.conf also contains /usr/contrib/lib and 15586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15587 # libtool to hard-code these into programs 15588 ;; 15589 15590cygwin* | mingw* | pw32* | cegcc*) 15591 version_type=windows 15592 shrext_cmds=.dll 15593 need_version=no 15594 need_lib_prefix=no 15595 15596 case $GCC,$cc_basename in 15597 yes,*) 15598 # gcc 15599 library_names_spec='$libname.dll.a' 15600 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15601 postinstall_cmds='base_file=`basename \$file`~ 15602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15603 dldir=$destdir/`dirname \$dlpath`~ 15604 test -d \$dldir || mkdir -p \$dldir~ 15605 $install_prog $dir/$dlname \$dldir/$dlname~ 15606 chmod a+x \$dldir/$dlname~ 15607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15609 fi' 15610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15611 dlpath=$dir/\$dldll~ 15612 $RM \$dlpath' 15613 shlibpath_overrides_runpath=yes 15614 15615 case $host_os in 15616 cygwin*) 15617 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15618 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15619 15620 ;; 15621 mingw* | cegcc*) 15622 # MinGW DLLs use traditional 'lib' prefix 15623 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15624 ;; 15625 pw32*) 15626 # pw32 DLLs use 'pw' prefix rather than 'lib' 15627 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15628 ;; 15629 esac 15630 dynamic_linker='Win32 ld.exe' 15631 ;; 15632 15633 *,cl*) 15634 # Native MSVC 15635 libname_spec='$name' 15636 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15637 library_names_spec='$libname.dll.lib' 15638 15639 case $build_os in 15640 mingw*) 15641 sys_lib_search_path_spec= 15642 lt_save_ifs=$IFS 15643 IFS=';' 15644 for lt_path in $LIB 15645 do 15646 IFS=$lt_save_ifs 15647 # Let DOS variable expansion print the short 8.3 style file name. 15648 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15649 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15650 done 15651 IFS=$lt_save_ifs 15652 # Convert to MSYS style. 15653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15654 ;; 15655 cygwin*) 15656 # Convert to unix form, then to dos form, then back to unix form 15657 # but this time dos style (no spaces!) so that the unix form looks 15658 # like /cygdrive/c/PROGRA~1:/cygdr... 15659 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15660 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15661 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15662 ;; 15663 *) 15664 sys_lib_search_path_spec=$LIB 15665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15666 # It is most probably a Windows format PATH. 15667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15668 else 15669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15670 fi 15671 # FIXME: find the short name or the path components, as spaces are 15672 # common. (e.g. "Program Files" -> "PROGRA~1") 15673 ;; 15674 esac 15675 15676 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15677 postinstall_cmds='base_file=`basename \$file`~ 15678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15679 dldir=$destdir/`dirname \$dlpath`~ 15680 test -d \$dldir || mkdir -p \$dldir~ 15681 $install_prog $dir/$dlname \$dldir/$dlname' 15682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15683 dlpath=$dir/\$dldll~ 15684 $RM \$dlpath' 15685 shlibpath_overrides_runpath=yes 15686 dynamic_linker='Win32 link.exe' 15687 ;; 15688 15689 *) 15690 # Assume MSVC wrapper 15691 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15692 dynamic_linker='Win32 ld.exe' 15693 ;; 15694 esac 15695 # FIXME: first we should search . and the directory the executable is in 15696 shlibpath_var=PATH 15697 ;; 15698 15699darwin* | rhapsody*) 15700 dynamic_linker="$host_os dyld" 15701 version_type=darwin 15702 need_lib_prefix=no 15703 need_version=no 15704 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15705 soname_spec='$libname$release$major$shared_ext' 15706 shlibpath_overrides_runpath=yes 15707 shlibpath_var=DYLD_LIBRARY_PATH 15708 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15709 15710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15711 ;; 15712 15713dgux*) 15714 version_type=linux # correct to gnu/linux during the next big refactor 15715 need_lib_prefix=no 15716 need_version=no 15717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15718 soname_spec='$libname$release$shared_ext$major' 15719 shlibpath_var=LD_LIBRARY_PATH 15720 ;; 15721 15722freebsd* | dragonfly*) 15723 # DragonFly does not have aout. When/if they implement a new 15724 # versioning mechanism, adjust this. 15725 if test -x /usr/bin/objformat; then 15726 objformat=`/usr/bin/objformat` 15727 else 15728 case $host_os in 15729 freebsd[23].*) objformat=aout ;; 15730 *) objformat=elf ;; 15731 esac 15732 fi 15733 version_type=freebsd-$objformat 15734 case $version_type in 15735 freebsd-elf*) 15736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15737 soname_spec='$libname$release$shared_ext$major' 15738 need_version=no 15739 need_lib_prefix=no 15740 ;; 15741 freebsd-*) 15742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15743 need_version=yes 15744 ;; 15745 esac 15746 shlibpath_var=LD_LIBRARY_PATH 15747 case $host_os in 15748 freebsd2.*) 15749 shlibpath_overrides_runpath=yes 15750 ;; 15751 freebsd3.[01]* | freebsdelf3.[01]*) 15752 shlibpath_overrides_runpath=yes 15753 hardcode_into_libs=yes 15754 ;; 15755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15757 shlibpath_overrides_runpath=no 15758 hardcode_into_libs=yes 15759 ;; 15760 *) # from 4.6 on, and DragonFly 15761 shlibpath_overrides_runpath=yes 15762 hardcode_into_libs=yes 15763 ;; 15764 esac 15765 ;; 15766 15767haiku*) 15768 version_type=linux # correct to gnu/linux during the next big refactor 15769 need_lib_prefix=no 15770 need_version=no 15771 dynamic_linker="$host_os runtime_loader" 15772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15773 soname_spec='$libname$release$shared_ext$major' 15774 shlibpath_var=LIBRARY_PATH 15775 shlibpath_overrides_runpath=no 15776 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15777 hardcode_into_libs=yes 15778 ;; 15779 15780hpux9* | hpux10* | hpux11*) 15781 # Give a soname corresponding to the major version so that dld.sl refuses to 15782 # link against other versions. 15783 version_type=sunos 15784 need_lib_prefix=no 15785 need_version=no 15786 case $host_cpu in 15787 ia64*) 15788 shrext_cmds='.so' 15789 hardcode_into_libs=yes 15790 dynamic_linker="$host_os dld.so" 15791 shlibpath_var=LD_LIBRARY_PATH 15792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15794 soname_spec='$libname$release$shared_ext$major' 15795 if test 32 = "$HPUX_IA64_MODE"; then 15796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15797 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15798 else 15799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15800 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15801 fi 15802 ;; 15803 hppa*64*) 15804 shrext_cmds='.sl' 15805 hardcode_into_libs=yes 15806 dynamic_linker="$host_os dld.sl" 15807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15810 soname_spec='$libname$release$shared_ext$major' 15811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15813 ;; 15814 *) 15815 shrext_cmds='.sl' 15816 dynamic_linker="$host_os dld.sl" 15817 shlibpath_var=SHLIB_PATH 15818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15820 soname_spec='$libname$release$shared_ext$major' 15821 ;; 15822 esac 15823 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15824 postinstall_cmds='chmod 555 $lib' 15825 # or fails outright, so override atomically: 15826 install_override_mode=555 15827 ;; 15828 15829interix[3-9]*) 15830 version_type=linux # correct to gnu/linux during the next big refactor 15831 need_lib_prefix=no 15832 need_version=no 15833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15834 soname_spec='$libname$release$shared_ext$major' 15835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15836 shlibpath_var=LD_LIBRARY_PATH 15837 shlibpath_overrides_runpath=no 15838 hardcode_into_libs=yes 15839 ;; 15840 15841irix5* | irix6* | nonstopux*) 15842 case $host_os in 15843 nonstopux*) version_type=nonstopux ;; 15844 *) 15845 if test yes = "$lt_cv_prog_gnu_ld"; then 15846 version_type=linux # correct to gnu/linux during the next big refactor 15847 else 15848 version_type=irix 15849 fi ;; 15850 esac 15851 need_lib_prefix=no 15852 need_version=no 15853 soname_spec='$libname$release$shared_ext$major' 15854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15855 case $host_os in 15856 irix5* | nonstopux*) 15857 libsuff= shlibsuff= 15858 ;; 15859 *) 15860 case $LD in # libtool.m4 will add one of these switches to LD 15861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15862 libsuff= shlibsuff= libmagic=32-bit;; 15863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15864 libsuff=32 shlibsuff=N32 libmagic=N32;; 15865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15866 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15867 *) libsuff= shlibsuff= libmagic=never-match;; 15868 esac 15869 ;; 15870 esac 15871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15872 shlibpath_overrides_runpath=no 15873 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15874 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15875 hardcode_into_libs=yes 15876 ;; 15877 15878# No shared lib support for Linux oldld, aout, or coff. 15879linux*oldld* | linux*aout* | linux*coff*) 15880 dynamic_linker=no 15881 ;; 15882 15883linux*android*) 15884 version_type=none # Android doesn't support versioned libraries. 15885 need_lib_prefix=no 15886 need_version=no 15887 library_names_spec='$libname$release$shared_ext' 15888 soname_spec='$libname$release$shared_ext' 15889 finish_cmds= 15890 shlibpath_var=LD_LIBRARY_PATH 15891 shlibpath_overrides_runpath=yes 15892 15893 # This implies no fast_install, which is unacceptable. 15894 # Some rework will be needed to allow for fast_install 15895 # before this can be enabled. 15896 hardcode_into_libs=yes 15897 15898 dynamic_linker='Android linker' 15899 # Don't embed -rpath directories since the linker doesn't support them. 15900 hardcode_libdir_flag_spec_CXX='-L$libdir' 15901 ;; 15902 15903# This must be glibc/ELF. 15904linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15905 version_type=linux # correct to gnu/linux during the next big refactor 15906 need_lib_prefix=no 15907 need_version=no 15908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15909 soname_spec='$libname$release$shared_ext$major' 15910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15911 shlibpath_var=LD_LIBRARY_PATH 15912 shlibpath_overrides_runpath=no 15913 15914 # Some binutils ld are patched to set DT_RUNPATH 15915 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15916 $as_echo_n "(cached) " >&6 15917else 15918 lt_cv_shlibpath_overrides_runpath=no 15919 save_LDFLAGS=$LDFLAGS 15920 save_libdir=$libdir 15921 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15922 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924/* end confdefs.h. */ 15925 15926int 15927main () 15928{ 15929 15930 ; 15931 return 0; 15932} 15933_ACEOF 15934if ac_fn_cxx_try_link "$LINENO"; then : 15935 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15936 lt_cv_shlibpath_overrides_runpath=yes 15937fi 15938fi 15939rm -f core conftest.err conftest.$ac_objext \ 15940 conftest$ac_exeext conftest.$ac_ext 15941 LDFLAGS=$save_LDFLAGS 15942 libdir=$save_libdir 15943 15944fi 15945 15946 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15947 15948 # This implies no fast_install, which is unacceptable. 15949 # Some rework will be needed to allow for fast_install 15950 # before this can be enabled. 15951 hardcode_into_libs=yes 15952 15953 # Ideally, we could use ldconfig to report *all* directores which are 15954 # searched for libraries, however this is still not possible. Aside from not 15955 # being certain /sbin/ldconfig is available, command 15956 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15957 # even though it is searched at run-time. Try to do the best guess by 15958 # appending ld.so.conf contents (and includes) to the search path. 15959 if test -f /etc/ld.so.conf; then 15960 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' ' '` 15961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15962 fi 15963 15964 # We used to test for /lib/ld.so.1 and disable shared libraries on 15965 # powerpc, because MkLinux only supported shared libraries with the 15966 # GNU dynamic linker. Since this was broken with cross compilers, 15967 # most powerpc-linux boxes support dynamic linking these days and 15968 # people can always --disable-shared, the test was removed, and we 15969 # assume the GNU/Linux dynamic linker is in use. 15970 dynamic_linker='GNU/Linux ld.so' 15971 ;; 15972 15973netbsd*) 15974 version_type=sunos 15975 need_lib_prefix=no 15976 need_version=no 15977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15980 dynamic_linker='NetBSD (a.out) ld.so' 15981 else 15982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15983 soname_spec='$libname$release$shared_ext$major' 15984 dynamic_linker='NetBSD ld.elf_so' 15985 fi 15986 shlibpath_var=LD_LIBRARY_PATH 15987 shlibpath_overrides_runpath=yes 15988 hardcode_into_libs=yes 15989 ;; 15990 15991newsos6) 15992 version_type=linux # correct to gnu/linux during the next big refactor 15993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15994 shlibpath_var=LD_LIBRARY_PATH 15995 shlibpath_overrides_runpath=yes 15996 ;; 15997 15998*nto* | *qnx*) 15999 version_type=qnx 16000 need_lib_prefix=no 16001 need_version=no 16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16003 soname_spec='$libname$release$shared_ext$major' 16004 shlibpath_var=LD_LIBRARY_PATH 16005 shlibpath_overrides_runpath=no 16006 hardcode_into_libs=yes 16007 dynamic_linker='ldqnx.so' 16008 ;; 16009 16010openbsd* | bitrig*) 16011 version_type=sunos 16012 sys_lib_dlsearch_path_spec=/usr/lib 16013 need_lib_prefix=no 16014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16015 need_version=no 16016 else 16017 need_version=yes 16018 fi 16019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16021 shlibpath_var=LD_LIBRARY_PATH 16022 shlibpath_overrides_runpath=yes 16023 ;; 16024 16025os2*) 16026 libname_spec='$name' 16027 version_type=windows 16028 shrext_cmds=.dll 16029 need_version=no 16030 need_lib_prefix=no 16031 # OS/2 can only load a DLL with a base name of 8 characters or less. 16032 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16033 v=$($ECHO $release$versuffix | tr -d .-); 16034 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16035 $ECHO $n$v`$shared_ext' 16036 library_names_spec='${libname}_dll.$libext' 16037 dynamic_linker='OS/2 ld.exe' 16038 shlibpath_var=BEGINLIBPATH 16039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16041 postinstall_cmds='base_file=`basename \$file`~ 16042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16043 dldir=$destdir/`dirname \$dlpath`~ 16044 test -d \$dldir || mkdir -p \$dldir~ 16045 $install_prog $dir/$dlname \$dldir/$dlname~ 16046 chmod a+x \$dldir/$dlname~ 16047 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16048 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16049 fi' 16050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16051 dlpath=$dir/\$dldll~ 16052 $RM \$dlpath' 16053 ;; 16054 16055osf3* | osf4* | osf5*) 16056 version_type=osf 16057 need_lib_prefix=no 16058 need_version=no 16059 soname_spec='$libname$release$shared_ext$major' 16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16061 shlibpath_var=LD_LIBRARY_PATH 16062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16064 ;; 16065 16066rdos*) 16067 dynamic_linker=no 16068 ;; 16069 16070solaris*) 16071 version_type=linux # correct to gnu/linux during the next big refactor 16072 need_lib_prefix=no 16073 need_version=no 16074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16075 soname_spec='$libname$release$shared_ext$major' 16076 shlibpath_var=LD_LIBRARY_PATH 16077 shlibpath_overrides_runpath=yes 16078 hardcode_into_libs=yes 16079 # ldd complains unless libraries are executable 16080 postinstall_cmds='chmod +x $lib' 16081 ;; 16082 16083sunos4*) 16084 version_type=sunos 16085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=yes 16089 if test yes = "$with_gnu_ld"; then 16090 need_lib_prefix=no 16091 fi 16092 need_version=yes 16093 ;; 16094 16095sysv4 | sysv4.3*) 16096 version_type=linux # correct to gnu/linux during the next big refactor 16097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16098 soname_spec='$libname$release$shared_ext$major' 16099 shlibpath_var=LD_LIBRARY_PATH 16100 case $host_vendor in 16101 sni) 16102 shlibpath_overrides_runpath=no 16103 need_lib_prefix=no 16104 runpath_var=LD_RUN_PATH 16105 ;; 16106 siemens) 16107 need_lib_prefix=no 16108 ;; 16109 motorola) 16110 need_lib_prefix=no 16111 need_version=no 16112 shlibpath_overrides_runpath=no 16113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16114 ;; 16115 esac 16116 ;; 16117 16118sysv4*MP*) 16119 if test -d /usr/nec; then 16120 version_type=linux # correct to gnu/linux during the next big refactor 16121 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16122 soname_spec='$libname$shared_ext.$major' 16123 shlibpath_var=LD_LIBRARY_PATH 16124 fi 16125 ;; 16126 16127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16128 version_type=sco 16129 need_lib_prefix=no 16130 need_version=no 16131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16132 soname_spec='$libname$release$shared_ext$major' 16133 shlibpath_var=LD_LIBRARY_PATH 16134 shlibpath_overrides_runpath=yes 16135 hardcode_into_libs=yes 16136 if test yes = "$with_gnu_ld"; then 16137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16138 else 16139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16140 case $host_os in 16141 sco3.2v5*) 16142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16143 ;; 16144 esac 16145 fi 16146 sys_lib_dlsearch_path_spec='/usr/lib' 16147 ;; 16148 16149tpf*) 16150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16151 version_type=linux # correct to gnu/linux during the next big refactor 16152 need_lib_prefix=no 16153 need_version=no 16154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16155 shlibpath_var=LD_LIBRARY_PATH 16156 shlibpath_overrides_runpath=no 16157 hardcode_into_libs=yes 16158 ;; 16159 16160uts4*) 16161 version_type=linux # correct to gnu/linux during the next big refactor 16162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16163 soname_spec='$libname$release$shared_ext$major' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 ;; 16166 16167*) 16168 dynamic_linker=no 16169 ;; 16170esac 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16172$as_echo "$dynamic_linker" >&6; } 16173test no = "$dynamic_linker" && can_build_shared=no 16174 16175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16176if test yes = "$GCC"; then 16177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16178fi 16179 16180if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16181 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16182fi 16183 16184if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16185 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16186fi 16187 16188# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16189configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16190 16191# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16192func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16193 16194# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16195configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16237$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16238hardcode_action_CXX= 16239if test -n "$hardcode_libdir_flag_spec_CXX" || 16240 test -n "$runpath_var_CXX" || 16241 test yes = "$hardcode_automatic_CXX"; then 16242 16243 # We can hardcode non-existent directories. 16244 if test no != "$hardcode_direct_CXX" && 16245 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16246 # have to relink, otherwise we might link with an installed library 16247 # when we should be linking with a yet-to-be-installed one 16248 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16249 test no != "$hardcode_minus_L_CXX"; then 16250 # Linking always hardcodes the temporary library directory. 16251 hardcode_action_CXX=relink 16252 else 16253 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16254 hardcode_action_CXX=immediate 16255 fi 16256else 16257 # We cannot hardcode anything, or else we can only hardcode existing 16258 # directories. 16259 hardcode_action_CXX=unsupported 16260fi 16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16262$as_echo "$hardcode_action_CXX" >&6; } 16263 16264if test relink = "$hardcode_action_CXX" || 16265 test yes = "$inherit_rpath_CXX"; then 16266 # Fast installation is not supported 16267 enable_fast_install=no 16268elif test yes = "$shlibpath_overrides_runpath" || 16269 test no = "$enable_shared"; then 16270 # Fast installation is not necessary 16271 enable_fast_install=needless 16272fi 16273 16274 16275 16276 16277 16278 16279 16280 fi # test -n "$compiler" 16281 16282 CC=$lt_save_CC 16283 CFLAGS=$lt_save_CFLAGS 16284 LDCXX=$LD 16285 LD=$lt_save_LD 16286 GCC=$lt_save_GCC 16287 with_gnu_ld=$lt_save_with_gnu_ld 16288 lt_cv_path_LDCXX=$lt_cv_path_LD 16289 lt_cv_path_LD=$lt_save_path_LD 16290 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16291 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16292fi # test yes != "$_lt_caught_CXX_error" 16293 16294ac_ext=c 16295ac_cpp='$CPP $CPPFLAGS' 16296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16298ac_compiler_gnu=$ac_cv_c_compiler_gnu 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 ac_config_commands="$ac_config_commands libtool" 16315 16316 16317 16318 16319# Only expand once: 16320 16321 16322 16323# 16324# Check whether there really is a C++ compiler. 16325# It is not mandatory to compile libHX, but we want to know. 16326# 16327ac_ext=cpp 16328ac_cpp='$CXXCPP $CPPFLAGS' 16329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16332 16333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16334/* end confdefs.h. */ 16335 16336int 16337main () 16338{ 16339return 0; 16340 ; 16341 return 0; 16342} 16343_ACEOF 16344if ac_fn_cxx_try_compile "$LINENO"; then : 16345 ac_cv_cxx=yes 16346else 16347 ac_cv_cxx=no 16348fi 16349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16350ac_ext=c 16351ac_cpp='$CPP $CPPFLAGS' 16352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16354ac_compiler_gnu=$ac_cv_c_compiler_gnu 16355 16356 if test "$ac_cv_cxx" = yes; then 16357 HAVE_CXX_TRUE= 16358 HAVE_CXX_FALSE='#' 16359else 16360 HAVE_CXX_TRUE='#' 16361 HAVE_CXX_FALSE= 16362fi 16363 16364 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mingw32" >&5 16366$as_echo_n "checking for mingw32... " >&6; } 16367ac_ext=c 16368ac_cpp='$CPP $CPPFLAGS' 16369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16371ac_compiler_gnu=$ac_cv_c_compiler_gnu 16372 16373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374/* end confdefs.h. */ 16375 16376int 16377main () 16378{ 16379return __MINGW32__; 16380 ; 16381 return 0; 16382} 16383_ACEOF 16384if ac_fn_c_try_compile "$LINENO"; then : 16385 ac_cv_mingw32=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16386$as_echo "yes" >&6; } 16387else 16388 ac_cv_mingw32=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16389$as_echo "no" >&6; } 16390 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393ac_ext=c 16394ac_cpp='$CPP $CPPFLAGS' 16395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16397ac_compiler_gnu=$ac_cv_c_compiler_gnu 16398 16399 if test "$ac_cv_mingw32" = yes; then 16400 MINGW32_TRUE= 16401 MINGW32_FALSE='#' 16402else 16403 MINGW32_TRUE='#' 16404 MINGW32_FALSE= 16405fi 16406 16407 16408 16409# Check whether --with-pkgconfigdir was given. 16410if test "${with_pkgconfigdir+set}" = set; then : 16411 withval=$with_pkgconfigdir; pkgconfigdir="$withval" 16412else 16413 pkgconfigdir='${libdir}/pkgconfig' 16414fi 16415 16416 16417 16418 16419 ac_ext=c 16420ac_cpp='$CPP $CPPFLAGS' 16421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16423ac_compiler_gnu=$ac_cv_c_compiler_gnu 16424 16425 saved_CFLAGS="$CFLAGS" 16426 CFLAGS="$saved_CFLAGS -fvisibility=hidden" 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5 16428$as_echo_n "checking whether compiler accepts -fvisibility=hidden... " >&6; } 16429if ${ac_cv_fvisibility_hidden+:} false; then : 16430 $as_echo_n "(cached) " >&6 16431else 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434 16435_ACEOF 16436if ac_fn_c_try_compile "$LINENO"; then : 16437 ac_cv_fvisibility_hidden=yes 16438else 16439 ac_cv_fvisibility_hidden=no 16440 16441fi 16442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16443fi 16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5 16445$as_echo "$ac_cv_fvisibility_hidden" >&6; } 16446 if test "$ac_cv_fvisibility_hidden" = "yes"; then 16447 16448$as_echo "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h 16449 16450 visibility_CFLAGS="-fvisibility=hidden" 16451 fi 16452 CFLAGS="$saved_CFLAGS" 16453 ac_ext=c 16454ac_cpp='$CPP $CPPFLAGS' 16455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16457ac_compiler_gnu=$ac_cv_c_compiler_gnu 16458 16459 16460 if test "$with_gnu_ld" = yes; then 16461 WITH_GNU_LD_TRUE= 16462 WITH_GNU_LD_FALSE='#' 16463else 16464 WITH_GNU_LD_TRUE='#' 16465 WITH_GNU_LD_FALSE= 16466fi 16467 16468 16469LIBS_system="$LIBS" 16470for ac_header in dlfcn.h sys/resource.h 16471do : 16472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16473ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16475 cat >>confdefs.h <<_ACEOF 16476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16477_ACEOF 16478 16479fi 16480 16481done 16482 16483 if test "$ac_cv_header_dlfcn_h" = "yes"; then 16484 HAVE_DLFCN_H_TRUE= 16485 HAVE_DLFCN_H_FALSE='#' 16486else 16487 HAVE_DLFCN_H_TRUE='#' 16488 HAVE_DLFCN_H_FALSE= 16489fi 16490 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16492$as_echo_n "checking for library containing dlopen... " >&6; } 16493if ${ac_cv_search_dlopen+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 ac_func_search_save_LIBS=$LIBS 16497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16498/* end confdefs.h. */ 16499 16500/* Override any GCC internal prototype to avoid an error. 16501 Use char because int might match the return type of a GCC 16502 builtin and then its argument prototype would still apply. */ 16503#ifdef __cplusplus 16504extern "C" 16505#endif 16506char dlopen (); 16507int 16508main () 16509{ 16510return dlopen (); 16511 ; 16512 return 0; 16513} 16514_ACEOF 16515for ac_lib in '' dl; do 16516 if test -z "$ac_lib"; then 16517 ac_res="none required" 16518 else 16519 ac_res=-l$ac_lib 16520 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16521 fi 16522 if ac_fn_c_try_link "$LINENO"; then : 16523 ac_cv_search_dlopen=$ac_res 16524fi 16525rm -f core conftest.err conftest.$ac_objext \ 16526 conftest$ac_exeext 16527 if ${ac_cv_search_dlopen+:} false; then : 16528 break 16529fi 16530done 16531if ${ac_cv_search_dlopen+:} false; then : 16532 16533else 16534 ac_cv_search_dlopen=no 16535fi 16536rm conftest.$ac_ext 16537LIBS=$ac_func_search_save_LIBS 16538fi 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16540$as_echo "$ac_cv_search_dlopen" >&6; } 16541ac_res=$ac_cv_search_dlopen 16542if test "$ac_res" != no; then : 16543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16544 libdl_LIBS="$LIBS"; LIBS="$LIBS_system" 16545fi 16546 16547 16548# glibc < 2.17 has it in librt, mingw-w64 has it in libpthread 16549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 16550$as_echo_n "checking for library containing clock_gettime... " >&6; } 16551if ${ac_cv_search_clock_gettime+:} false; then : 16552 $as_echo_n "(cached) " >&6 16553else 16554 ac_func_search_save_LIBS=$LIBS 16555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16556/* end confdefs.h. */ 16557 16558/* Override any GCC internal prototype to avoid an error. 16559 Use char because int might match the return type of a GCC 16560 builtin and then its argument prototype would still apply. */ 16561#ifdef __cplusplus 16562extern "C" 16563#endif 16564char clock_gettime (); 16565int 16566main () 16567{ 16568return clock_gettime (); 16569 ; 16570 return 0; 16571} 16572_ACEOF 16573for ac_lib in '' rt pthread; do 16574 if test -z "$ac_lib"; then 16575 ac_res="none required" 16576 else 16577 ac_res=-l$ac_lib 16578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16579 fi 16580 if ac_fn_c_try_link "$LINENO"; then : 16581 ac_cv_search_clock_gettime=$ac_res 16582fi 16583rm -f core conftest.err conftest.$ac_objext \ 16584 conftest$ac_exeext 16585 if ${ac_cv_search_clock_gettime+:} false; then : 16586 break 16587fi 16588done 16589if ${ac_cv_search_clock_gettime+:} false; then : 16590 16591else 16592 ac_cv_search_clock_gettime=no 16593fi 16594rm conftest.$ac_ext 16595LIBS=$ac_func_search_save_LIBS 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 16598$as_echo "$ac_cv_search_clock_gettime" >&6; } 16599ac_res=$ac_cv_search_clock_gettime 16600if test "$ac_res" != no; then : 16601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16602 librt_LIBS="$LIBS"; LIBS="$LIBS_system" 16603fi 16604 16605 16606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 16607$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } 16608if ${ac_cv_search_pthread_mutex_lock+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 ac_func_search_save_LIBS=$LIBS 16612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16613/* end confdefs.h. */ 16614 16615/* Override any GCC internal prototype to avoid an error. 16616 Use char because int might match the return type of a GCC 16617 builtin and then its argument prototype would still apply. */ 16618#ifdef __cplusplus 16619extern "C" 16620#endif 16621char pthread_mutex_lock (); 16622int 16623main () 16624{ 16625return pthread_mutex_lock (); 16626 ; 16627 return 0; 16628} 16629_ACEOF 16630for ac_lib in '' pthread; do 16631 if test -z "$ac_lib"; then 16632 ac_res="none required" 16633 else 16634 ac_res=-l$ac_lib 16635 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16636 fi 16637 if ac_fn_c_try_link "$LINENO"; then : 16638 ac_cv_search_pthread_mutex_lock=$ac_res 16639fi 16640rm -f core conftest.err conftest.$ac_objext \ 16641 conftest$ac_exeext 16642 if ${ac_cv_search_pthread_mutex_lock+:} false; then : 16643 break 16644fi 16645done 16646if ${ac_cv_search_pthread_mutex_lock+:} false; then : 16647 16648else 16649 ac_cv_search_pthread_mutex_lock=no 16650fi 16651rm conftest.$ac_ext 16652LIBS=$ac_func_search_save_LIBS 16653fi 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 16655$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } 16656ac_res=$ac_cv_search_pthread_mutex_lock 16657if test "$ac_res" != no; then : 16658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16659 libpthread_LIBS="$LIBS"; LIBS="$LIBS_system" 16660fi 16661 16662 16663 16664libsocket_ok=0 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 16666$as_echo_n "checking for library containing getaddrinfo... " >&6; } 16667if ${ac_cv_search_getaddrinfo+:} false; then : 16668 $as_echo_n "(cached) " >&6 16669else 16670 ac_func_search_save_LIBS=$LIBS 16671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16672/* end confdefs.h. */ 16673 16674/* Override any GCC internal prototype to avoid an error. 16675 Use char because int might match the return type of a GCC 16676 builtin and then its argument prototype would still apply. */ 16677#ifdef __cplusplus 16678extern "C" 16679#endif 16680char getaddrinfo (); 16681int 16682main () 16683{ 16684return getaddrinfo (); 16685 ; 16686 return 0; 16687} 16688_ACEOF 16689for ac_lib in '' socket; do 16690 if test -z "$ac_lib"; then 16691 ac_res="none required" 16692 else 16693 ac_res=-l$ac_lib 16694 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16695 fi 16696 if ac_fn_c_try_link "$LINENO"; then : 16697 ac_cv_search_getaddrinfo=$ac_res 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext 16701 if ${ac_cv_search_getaddrinfo+:} false; then : 16702 break 16703fi 16704done 16705if ${ac_cv_search_getaddrinfo+:} false; then : 16706 16707else 16708 ac_cv_search_getaddrinfo=no 16709fi 16710rm conftest.$ac_ext 16711LIBS=$ac_func_search_save_LIBS 16712fi 16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 16714$as_echo "$ac_cv_search_getaddrinfo" >&6; } 16715ac_res=$ac_cv_search_getaddrinfo 16716if test "$ac_res" != no; then : 16717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16718 libsocket_LIBS="$LIBS"; LIBS="$LIBS_system"; libsocket_ok=1 16719fi 16720 16721if test $libsocket_ok = 0; then 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-standard libraries containing getaddrinfo" >&5 16723$as_echo_n "checking non-standard libraries containing getaddrinfo... " >&6; } 16724 LIBS="$LIBS_system -lws2_32"; 16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16726/* end confdefs.h. */ 16727 16728 #include <winsock2.h> 16729 #include <ws2tcpip.h> 16730 int main(void) { return getaddrinfo(NULL, NULL, NULL, NULL); } 16731 16732_ACEOF 16733if ac_fn_c_try_link "$LINENO"; then : 16734 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lws2_32" >&5 16736$as_echo "-lws2_32" >&6; } 16737 libsocket_LIBS="$libsocket_LIBS $LIBS"; 16738 16739else 16740 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16742$as_echo "no" >&6; } 16743 16744fi 16745rm -f core conftest.err conftest.$ac_objext \ 16746 conftest$ac_exeext conftest.$ac_ext 16747 LIBS="$LIBS_system"; 16748fi; 16749 16750 16751# The cast to long int works around a bug in the HP C Compiler 16752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16754# This bug is HP SR number 8606223364. 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16756$as_echo_n "checking size of void *... " >&6; } 16757if ${ac_cv_sizeof_void_p+:} false; then : 16758 $as_echo_n "(cached) " >&6 16759else 16760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16761 16762else 16763 if test "$ac_cv_type_void_p" = yes; then 16764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16766as_fn_error 77 "cannot compute sizeof (void *) 16767See \`config.log' for more details" "$LINENO" 5; } 16768 else 16769 ac_cv_sizeof_void_p=0 16770 fi 16771fi 16772 16773fi 16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16775$as_echo "$ac_cv_sizeof_void_p" >&6; } 16776 16777 16778 16779cat >>confdefs.h <<_ACEOF 16780#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16781_ACEOF 16782 16783 16784# The cast to long int works around a bug in the HP C Compiler 16785# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16786# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16787# This bug is HP SR number 8606223364. 16788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 16789$as_echo_n "checking size of char *... " >&6; } 16790if ${ac_cv_sizeof_char_p+:} false; then : 16791 $as_echo_n "(cached) " >&6 16792else 16793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 16794 16795else 16796 if test "$ac_cv_type_char_p" = yes; then 16797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16799as_fn_error 77 "cannot compute sizeof (char *) 16800See \`config.log' for more details" "$LINENO" 5; } 16801 else 16802 ac_cv_sizeof_char_p=0 16803 fi 16804fi 16805 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 16808$as_echo "$ac_cv_sizeof_char_p" >&6; } 16809 16810 16811 16812cat >>confdefs.h <<_ACEOF 16813#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 16814_ACEOF 16815 16816 16817# The cast to long int works around a bug in the HP C Compiler 16818# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16819# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16820# This bug is HP SR number 8606223364. 16821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct x *" >&5 16822$as_echo_n "checking size of struct x *... " >&6; } 16823if ${ac_cv_sizeof_struct_x_p+:} false; then : 16824 $as_echo_n "(cached) " >&6 16825else 16826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct x *))" "ac_cv_sizeof_struct_x_p" "$ac_includes_default"; then : 16827 16828else 16829 if test "$ac_cv_type_struct_x_p" = yes; then 16830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16832as_fn_error 77 "cannot compute sizeof (struct x *) 16833See \`config.log' for more details" "$LINENO" 5; } 16834 else 16835 ac_cv_sizeof_struct_x_p=0 16836 fi 16837fi 16838 16839fi 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_x_p" >&5 16841$as_echo "$ac_cv_sizeof_struct_x_p" >&6; } 16842 16843 16844 16845cat >>confdefs.h <<_ACEOF 16846#define SIZEOF_STRUCT_X_P $ac_cv_sizeof_struct_x_p 16847_ACEOF 16848 16849 16850# The cast to long int works around a bug in the HP C Compiler 16851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16853# This bug is HP SR number 8606223364. 16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct x **" >&5 16855$as_echo_n "checking size of struct x **... " >&6; } 16856if ${ac_cv_sizeof_struct_x_pp+:} false; then : 16857 $as_echo_n "(cached) " >&6 16858else 16859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct x **))" "ac_cv_sizeof_struct_x_pp" "$ac_includes_default"; then : 16860 16861else 16862 if test "$ac_cv_type_struct_x_pp" = yes; then 16863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16865as_fn_error 77 "cannot compute sizeof (struct x **) 16866See \`config.log' for more details" "$LINENO" 5; } 16867 else 16868 ac_cv_sizeof_struct_x_pp=0 16869 fi 16870fi 16871 16872fi 16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_x_pp" >&5 16874$as_echo "$ac_cv_sizeof_struct_x_pp" >&6; } 16875 16876 16877 16878cat >>confdefs.h <<_ACEOF 16879#define SIZEOF_STRUCT_X_PP $ac_cv_sizeof_struct_x_pp 16880_ACEOF 16881 16882 16883if test "$ac_cv_sizeof_void_p" != "$ac_cv_sizeof_char_p" || 16884 test "$ac_cv_sizeof_struct_x_p" != "$ac_cv_sizeof_struct_x_pp"; then 16885 # format.c: reinterpret_cast(hxmc_t **, HXdeque_to_vec(...)) 16886 # map.c: reinterpret_cast(struct HXrbtree_node *, &btree->root); 16887 as_fn_error $? "The code currently relies on certain type sizes to take shortcuts." "$LINENO" 5 16888fi; 16889 16890ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" " 16891 #include <sys/stat.h> 16892 #include <sys/time.h> 16893 #include <time.h> 16894 16895" 16896if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then : 16897 16898cat >>confdefs.h <<_ACEOF 16899#define HAVE_STRUCT_TIMESPEC_TV_NSEC 1 16900_ACEOF 16901 16902 16903fi 16904ac_fn_c_check_member "$LINENO" "struct timeval" "tv_usec" "ac_cv_member_struct_timeval_tv_usec" " 16905 #include <sys/stat.h> 16906 #include <sys/time.h> 16907 #include <time.h> 16908 16909" 16910if test "x$ac_cv_member_struct_timeval_tv_usec" = xyes; then : 16911 16912cat >>confdefs.h <<_ACEOF 16913#define HAVE_STRUCT_TIMEVAL_TV_USEC 1 16914_ACEOF 16915 16916 16917fi 16918ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" " 16919 #include <sys/stat.h> 16920 #include <sys/time.h> 16921 #include <time.h> 16922 16923" 16924if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 16925 16926cat >>confdefs.h <<_ACEOF 16927#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 16928_ACEOF 16929 16930 16931fi 16932ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" " 16933 #include <sys/stat.h> 16934 #include <sys/time.h> 16935 #include <time.h> 16936 16937" 16938if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 16939 16940cat >>confdefs.h <<_ACEOF 16941#define HAVE_STRUCT_STAT_ST_MTIM 1 16942_ACEOF 16943 16944 16945fi 16946ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" " 16947 #include <sys/stat.h> 16948 #include <sys/time.h> 16949 #include <time.h> 16950 16951" 16952if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 16953 16954cat >>confdefs.h <<_ACEOF 16955#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 16956_ACEOF 16957 16958 16959fi 16960ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" " 16961 #include <sys/stat.h> 16962 #include <sys/time.h> 16963 #include <time.h> 16964 16965" 16966if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : 16967 16968cat >>confdefs.h <<_ACEOF 16969#define HAVE_STRUCT_STAT_ST_MTIME 1 16970_ACEOF 16971 16972 16973fi 16974ac_fn_c_check_member "$LINENO" "struct stat" "st_otimensec" "ac_cv_member_struct_stat_st_otimensec" " 16975 #include <sys/stat.h> 16976 #include <sys/time.h> 16977 #include <time.h> 16978 16979" 16980if test "x$ac_cv_member_struct_stat_st_otimensec" = xyes; then : 16981 16982cat >>confdefs.h <<_ACEOF 16983#define HAVE_STRUCT_STAT_ST_OTIMENSEC 1 16984_ACEOF 16985 16986 16987fi 16988ac_fn_c_check_member "$LINENO" "struct stat" "st_otim" "ac_cv_member_struct_stat_st_otim" " 16989 #include <sys/stat.h> 16990 #include <sys/time.h> 16991 #include <time.h> 16992 16993" 16994if test "x$ac_cv_member_struct_stat_st_otim" = xyes; then : 16995 16996cat >>confdefs.h <<_ACEOF 16997#define HAVE_STRUCT_STAT_ST_OTIM 1 16998_ACEOF 16999 17000 17001fi 17002ac_fn_c_check_member "$LINENO" "struct stat" "st_otimespec" "ac_cv_member_struct_stat_st_otimespec" " 17003 #include <sys/stat.h> 17004 #include <sys/time.h> 17005 #include <time.h> 17006 17007" 17008if test "x$ac_cv_member_struct_stat_st_otimespec" = xyes; then : 17009 17010cat >>confdefs.h <<_ACEOF 17011#define HAVE_STRUCT_STAT_ST_OTIMESPEC 1 17012_ACEOF 17013 17014 17015fi 17016ac_fn_c_check_member "$LINENO" "struct stat" "st_otime" "ac_cv_member_struct_stat_st_otime" " 17017 #include <sys/stat.h> 17018 #include <sys/time.h> 17019 #include <time.h> 17020 17021" 17022if test "x$ac_cv_member_struct_stat_st_otime" = xyes; then : 17023 17024cat >>confdefs.h <<_ACEOF 17025#define HAVE_STRUCT_STAT_ST_OTIME 1 17026_ACEOF 17027 17028 17029fi 17030 17031for ac_func in fork execv execvp pipe 17032do : 17033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17035if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17036 cat >>confdefs.h <<_ACEOF 17037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17038_ACEOF 17039 b_proc="1" 17040fi 17041done 17042 17043for ac_func in getegid geteuid getpid getppid 17044do : 17045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17047if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17048 cat >>confdefs.h <<_ACEOF 17049#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17050_ACEOF 17051 17052fi 17053done 17054 17055 if test "$b_proc" = 1; then 17056 B_PROC_TRUE= 17057 B_PROC_FALSE='#' 17058else 17059 B_PROC_TRUE='#' 17060 B_PROC_FALSE= 17061fi 17062 17063 17064for ac_prog in lyx 17065do 17066 # Extract the first word of "$ac_prog", so it can be a program name with args. 17067set dummy $ac_prog; ac_word=$2 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17069$as_echo_n "checking for $ac_word... " >&6; } 17070if ${ac_cv_prog_LYX+:} false; then : 17071 $as_echo_n "(cached) " >&6 17072else 17073 if test -n "$LYX"; then 17074 ac_cv_prog_LYX="$LYX" # Let the user override the test. 17075else 17076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17077for as_dir in $PATH 17078do 17079 IFS=$as_save_IFS 17080 test -z "$as_dir" && as_dir=. 17081 for ac_exec_ext in '' $ac_executable_extensions; do 17082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17083 ac_cv_prog_LYX="$ac_prog" 17084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17085 break 2 17086 fi 17087done 17088 done 17089IFS=$as_save_IFS 17090 17091fi 17092fi 17093LYX=$ac_cv_prog_LYX 17094if test -n "$LYX"; then 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5 17096$as_echo "$LYX" >&6; } 17097else 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17099$as_echo "no" >&6; } 17100fi 17101 17102 17103 test -n "$LYX" && break 17104done 17105 17106 if test -n "$LYX"; then 17107 BUILD_DOCS_TRUE= 17108 BUILD_DOCS_FALSE='#' 17109else 17110 BUILD_DOCS_TRUE='#' 17111 BUILD_DOCS_FALSE= 17112fi 17113 17114 17115regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT" 17116regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \ 17117 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \ 17118 -Wformat=2 -pipe $visibility_CFLAGS" 17119regular_CXXFLAGS="-Wall -Wno-pointer-arith -Wredundant-decls -pipe \ 17120 $visibility_CFLAGS"; 17121 17122 17123 17124ac_config_files="$ac_config_files Makefile assorted/Makefile doc/Makefile src/Makefile include/Makefile libHX.pc" 17125 17126cat >confcache <<\_ACEOF 17127# This file is a shell script that caches the results of configure 17128# tests run on this system so they can be shared between configure 17129# scripts and configure runs, see configure's option --config-cache. 17130# It is not useful on other systems. If it contains results you don't 17131# want to keep, you may remove or edit it. 17132# 17133# config.status only pays attention to the cache file if you give it 17134# the --recheck option to rerun configure. 17135# 17136# `ac_cv_env_foo' variables (set or unset) will be overridden when 17137# loading this file, other *unset* `ac_cv_foo' will be assigned the 17138# following values. 17139 17140_ACEOF 17141 17142# The following way of writing the cache mishandles newlines in values, 17143# but we know of no workaround that is simple, portable, and efficient. 17144# So, we kill variables containing newlines. 17145# Ultrix sh set writes to stderr and can't be redirected directly, 17146# and sets the high bit in the cache file unless we assign to the vars. 17147( 17148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17149 eval ac_val=\$$ac_var 17150 case $ac_val in #( 17151 *${as_nl}*) 17152 case $ac_var in #( 17153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17154$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17155 esac 17156 case $ac_var in #( 17157 _ | IFS | as_nl) ;; #( 17158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17159 *) { eval $ac_var=; unset $ac_var;} ;; 17160 esac ;; 17161 esac 17162 done 17163 17164 (set) 2>&1 | 17165 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17166 *${as_nl}ac_space=\ *) 17167 # `set' does not quote correctly, so add quotes: double-quote 17168 # substitution turns \\\\ into \\, and sed turns \\ into \. 17169 sed -n \ 17170 "s/'/'\\\\''/g; 17171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17172 ;; #( 17173 *) 17174 # `set' quotes correctly as required by POSIX, so do not add quotes. 17175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17176 ;; 17177 esac | 17178 sort 17179) | 17180 sed ' 17181 /^ac_cv_env_/b end 17182 t clear 17183 :clear 17184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17185 t end 17186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17187 :end' >>confcache 17188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17189 if test -w "$cache_file"; then 17190 if test "x$cache_file" != "x/dev/null"; then 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17192$as_echo "$as_me: updating cache $cache_file" >&6;} 17193 if test ! -f "$cache_file" || test -h "$cache_file"; then 17194 cat confcache >"$cache_file" 17195 else 17196 case $cache_file in #( 17197 */* | ?:*) 17198 mv -f confcache "$cache_file"$$ && 17199 mv -f "$cache_file"$$ "$cache_file" ;; #( 17200 *) 17201 mv -f confcache "$cache_file" ;; 17202 esac 17203 fi 17204 fi 17205 else 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17207$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17208 fi 17209fi 17210rm -f confcache 17211 17212test "x$prefix" = xNONE && prefix=$ac_default_prefix 17213# Let make expand exec_prefix. 17214test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17215 17216DEFS=-DHAVE_CONFIG_H 17217 17218ac_libobjs= 17219ac_ltlibobjs= 17220U= 17221for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17222 # 1. Remove the extension, and $U if already installed. 17223 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17224 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17226 # will be set to the directory where LIBOBJS objects are built. 17227 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17228 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17229done 17230LIBOBJS=$ac_libobjs 17231 17232LTLIBOBJS=$ac_ltlibobjs 17233 17234 17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17236$as_echo_n "checking that generated files are newer than configure... " >&6; } 17237 if test -n "$am_sleep_pid"; then 17238 # Hide warnings about reused PIDs. 17239 wait $am_sleep_pid 2>/dev/null 17240 fi 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17242$as_echo "done" >&6; } 17243 if test -n "$EXEEXT"; then 17244 am__EXEEXT_TRUE= 17245 am__EXEEXT_FALSE='#' 17246else 17247 am__EXEEXT_TRUE='#' 17248 am__EXEEXT_FALSE= 17249fi 17250 17251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17252 as_fn_error $? "conditional \"AMDEP\" was never defined. 17253Usually this means the macro was only invoked conditionally." "$LINENO" 5 17254fi 17255if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17256 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17257Usually this means the macro was only invoked conditionally." "$LINENO" 5 17258fi 17259if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17260 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17261Usually this means the macro was only invoked conditionally." "$LINENO" 5 17262fi 17263if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 17264 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 17265Usually this means the macro was only invoked conditionally." "$LINENO" 5 17266fi 17267if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then 17268 as_fn_error $? "conditional \"MINGW32\" was never defined. 17269Usually this means the macro was only invoked conditionally." "$LINENO" 5 17270fi 17271if test -z "${WITH_GNU_LD_TRUE}" && test -z "${WITH_GNU_LD_FALSE}"; then 17272 as_fn_error $? "conditional \"WITH_GNU_LD\" was never defined. 17273Usually this means the macro was only invoked conditionally." "$LINENO" 5 17274fi 17275if test -z "${HAVE_DLFCN_H_TRUE}" && test -z "${HAVE_DLFCN_H_FALSE}"; then 17276 as_fn_error $? "conditional \"HAVE_DLFCN_H\" was never defined. 17277Usually this means the macro was only invoked conditionally." "$LINENO" 5 17278fi 17279if test -z "${B_PROC_TRUE}" && test -z "${B_PROC_FALSE}"; then 17280 as_fn_error $? "conditional \"B_PROC\" was never defined. 17281Usually this means the macro was only invoked conditionally." "$LINENO" 5 17282fi 17283if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 17284 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 17285Usually this means the macro was only invoked conditionally." "$LINENO" 5 17286fi 17287 17288: "${CONFIG_STATUS=./config.status}" 17289ac_write_fail=0 17290ac_clean_files_save=$ac_clean_files 17291ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17292{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17293$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17294as_write_fail=0 17295cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17296#! $SHELL 17297# Generated by $as_me. 17298# Run this file to recreate the current configuration. 17299# Compiler output produced by configure, useful for debugging 17300# configure, is in config.log if it exists. 17301 17302debug=false 17303ac_cs_recheck=false 17304ac_cs_silent=false 17305 17306SHELL=\${CONFIG_SHELL-$SHELL} 17307export SHELL 17308_ASEOF 17309cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17310## -------------------- ## 17311## M4sh Initialization. ## 17312## -------------------- ## 17313 17314# Be more Bourne compatible 17315DUALCASE=1; export DUALCASE # for MKS sh 17316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17317 emulate sh 17318 NULLCMD=: 17319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17320 # is contrary to our usage. Disable this feature. 17321 alias -g '${1+"$@"}'='"$@"' 17322 setopt NO_GLOB_SUBST 17323else 17324 case `(set -o) 2>/dev/null` in #( 17325 *posix*) : 17326 set -o posix ;; #( 17327 *) : 17328 ;; 17329esac 17330fi 17331 17332 17333as_nl=' 17334' 17335export as_nl 17336# Printing a long string crashes Solaris 7 /usr/bin/printf. 17337as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17338as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17340# Prefer a ksh shell builtin over an external printf program on Solaris, 17341# but without wasting forks for bash or zsh. 17342if test -z "$BASH_VERSION$ZSH_VERSION" \ 17343 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17344 as_echo='print -r --' 17345 as_echo_n='print -rn --' 17346elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17347 as_echo='printf %s\n' 17348 as_echo_n='printf %s' 17349else 17350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17352 as_echo_n='/usr/ucb/echo -n' 17353 else 17354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17355 as_echo_n_body='eval 17356 arg=$1; 17357 case $arg in #( 17358 *"$as_nl"*) 17359 expr "X$arg" : "X\\(.*\\)$as_nl"; 17360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17361 esac; 17362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17363 ' 17364 export as_echo_n_body 17365 as_echo_n='sh -c $as_echo_n_body as_echo' 17366 fi 17367 export as_echo_body 17368 as_echo='sh -c $as_echo_body as_echo' 17369fi 17370 17371# The user is always right. 17372if test "${PATH_SEPARATOR+set}" != set; then 17373 PATH_SEPARATOR=: 17374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17376 PATH_SEPARATOR=';' 17377 } 17378fi 17379 17380 17381# IFS 17382# We need space, tab and new line, in precisely that order. Quoting is 17383# there to prevent editors from complaining about space-tab. 17384# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17385# splitting by setting IFS to empty value.) 17386IFS=" "" $as_nl" 17387 17388# Find who we are. Look in the path if we contain no directory separator. 17389as_myself= 17390case $0 in #(( 17391 *[\\/]* ) as_myself=$0 ;; 17392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17393for as_dir in $PATH 17394do 17395 IFS=$as_save_IFS 17396 test -z "$as_dir" && as_dir=. 17397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17398 done 17399IFS=$as_save_IFS 17400 17401 ;; 17402esac 17403# We did not find ourselves, most probably we were run as `sh COMMAND' 17404# in which case we are not to be found in the path. 17405if test "x$as_myself" = x; then 17406 as_myself=$0 17407fi 17408if test ! -f "$as_myself"; then 17409 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17410 exit 1 17411fi 17412 17413# Unset variables that we do not need and which cause bugs (e.g. in 17414# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17415# suppresses any "Segmentation fault" message there. '((' could 17416# trigger a bug in pdksh 5.2.14. 17417for as_var in BASH_ENV ENV MAIL MAILPATH 17418do eval test x\${$as_var+set} = xset \ 17419 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17420done 17421PS1='$ ' 17422PS2='> ' 17423PS4='+ ' 17424 17425# NLS nuisances. 17426LC_ALL=C 17427export LC_ALL 17428LANGUAGE=C 17429export LANGUAGE 17430 17431# CDPATH. 17432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17433 17434 17435# as_fn_error STATUS ERROR [LINENO LOG_FD] 17436# ---------------------------------------- 17437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17439# script with STATUS, using 1 if that was 0. 17440as_fn_error () 17441{ 17442 as_status=$1; test $as_status -eq 0 && as_status=1 17443 if test "$4"; then 17444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17445 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17446 fi 17447 $as_echo "$as_me: error: $2" >&2 17448 as_fn_exit $as_status 17449} # as_fn_error 17450 17451 17452# as_fn_set_status STATUS 17453# ----------------------- 17454# Set $? to STATUS, without forking. 17455as_fn_set_status () 17456{ 17457 return $1 17458} # as_fn_set_status 17459 17460# as_fn_exit STATUS 17461# ----------------- 17462# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17463as_fn_exit () 17464{ 17465 set +e 17466 as_fn_set_status $1 17467 exit $1 17468} # as_fn_exit 17469 17470# as_fn_unset VAR 17471# --------------- 17472# Portably unset VAR. 17473as_fn_unset () 17474{ 17475 { eval $1=; unset $1;} 17476} 17477as_unset=as_fn_unset 17478# as_fn_append VAR VALUE 17479# ---------------------- 17480# Append the text in VALUE to the end of the definition contained in VAR. Take 17481# advantage of any shell optimizations that allow amortized linear growth over 17482# repeated appends, instead of the typical quadratic growth present in naive 17483# implementations. 17484if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17485 eval 'as_fn_append () 17486 { 17487 eval $1+=\$2 17488 }' 17489else 17490 as_fn_append () 17491 { 17492 eval $1=\$$1\$2 17493 } 17494fi # as_fn_append 17495 17496# as_fn_arith ARG... 17497# ------------------ 17498# Perform arithmetic evaluation on the ARGs, and store the result in the 17499# global $as_val. Take advantage of shells that can avoid forks. The arguments 17500# must be portable across $(()) and expr. 17501if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17502 eval 'as_fn_arith () 17503 { 17504 as_val=$(( $* )) 17505 }' 17506else 17507 as_fn_arith () 17508 { 17509 as_val=`expr "$@" || test $? -eq 1` 17510 } 17511fi # as_fn_arith 17512 17513 17514if expr a : '\(a\)' >/dev/null 2>&1 && 17515 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17516 as_expr=expr 17517else 17518 as_expr=false 17519fi 17520 17521if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17522 as_basename=basename 17523else 17524 as_basename=false 17525fi 17526 17527if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17528 as_dirname=dirname 17529else 17530 as_dirname=false 17531fi 17532 17533as_me=`$as_basename -- "$0" || 17534$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17535 X"$0" : 'X\(//\)$' \| \ 17536 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17537$as_echo X/"$0" | 17538 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17539 s//\1/ 17540 q 17541 } 17542 /^X\/\(\/\/\)$/{ 17543 s//\1/ 17544 q 17545 } 17546 /^X\/\(\/\).*/{ 17547 s//\1/ 17548 q 17549 } 17550 s/.*/./; q'` 17551 17552# Avoid depending upon Character Ranges. 17553as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17555as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17556as_cr_digits='0123456789' 17557as_cr_alnum=$as_cr_Letters$as_cr_digits 17558 17559ECHO_C= ECHO_N= ECHO_T= 17560case `echo -n x` in #((((( 17561-n*) 17562 case `echo 'xy\c'` in 17563 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17564 xy) ECHO_C='\c';; 17565 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17566 ECHO_T=' ';; 17567 esac;; 17568*) 17569 ECHO_N='-n';; 17570esac 17571 17572rm -f conf$$ conf$$.exe conf$$.file 17573if test -d conf$$.dir; then 17574 rm -f conf$$.dir/conf$$.file 17575else 17576 rm -f conf$$.dir 17577 mkdir conf$$.dir 2>/dev/null 17578fi 17579if (echo >conf$$.file) 2>/dev/null; then 17580 if ln -s conf$$.file conf$$ 2>/dev/null; then 17581 as_ln_s='ln -s' 17582 # ... but there are two gotchas: 17583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17585 # In both cases, we have to default to `cp -pR'. 17586 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17587 as_ln_s='cp -pR' 17588 elif ln conf$$.file conf$$ 2>/dev/null; then 17589 as_ln_s=ln 17590 else 17591 as_ln_s='cp -pR' 17592 fi 17593else 17594 as_ln_s='cp -pR' 17595fi 17596rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17597rmdir conf$$.dir 2>/dev/null 17598 17599 17600# as_fn_mkdir_p 17601# ------------- 17602# Create "$as_dir" as a directory, including parents if necessary. 17603as_fn_mkdir_p () 17604{ 17605 17606 case $as_dir in #( 17607 -*) as_dir=./$as_dir;; 17608 esac 17609 test -d "$as_dir" || eval $as_mkdir_p || { 17610 as_dirs= 17611 while :; do 17612 case $as_dir in #( 17613 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17614 *) as_qdir=$as_dir;; 17615 esac 17616 as_dirs="'$as_qdir' $as_dirs" 17617 as_dir=`$as_dirname -- "$as_dir" || 17618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17619 X"$as_dir" : 'X\(//\)[^/]' \| \ 17620 X"$as_dir" : 'X\(//\)$' \| \ 17621 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17622$as_echo X"$as_dir" | 17623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17624 s//\1/ 17625 q 17626 } 17627 /^X\(\/\/\)[^/].*/{ 17628 s//\1/ 17629 q 17630 } 17631 /^X\(\/\/\)$/{ 17632 s//\1/ 17633 q 17634 } 17635 /^X\(\/\).*/{ 17636 s//\1/ 17637 q 17638 } 17639 s/.*/./; q'` 17640 test -d "$as_dir" && break 17641 done 17642 test -z "$as_dirs" || eval "mkdir $as_dirs" 17643 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17644 17645 17646} # as_fn_mkdir_p 17647if mkdir -p . 2>/dev/null; then 17648 as_mkdir_p='mkdir -p "$as_dir"' 17649else 17650 test -d ./-p && rmdir ./-p 17651 as_mkdir_p=false 17652fi 17653 17654 17655# as_fn_executable_p FILE 17656# ----------------------- 17657# Test if FILE is an executable regular file. 17658as_fn_executable_p () 17659{ 17660 test -f "$1" && test -x "$1" 17661} # as_fn_executable_p 17662as_test_x='test -x' 17663as_executable_p=as_fn_executable_p 17664 17665# Sed expression to map a string onto a valid CPP name. 17666as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17667 17668# Sed expression to map a string onto a valid variable name. 17669as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17670 17671 17672exec 6>&1 17673## ----------------------------------- ## 17674## Main body of $CONFIG_STATUS script. ## 17675## ----------------------------------- ## 17676_ASEOF 17677test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17678 17679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17680# Save the log message, to keep $0 and so on meaningful, and to 17681# report actual input values of CONFIG_FILES etc. instead of their 17682# values after options handling. 17683ac_log=" 17684This file was extended by libHX $as_me 3.25, which was 17685generated by GNU Autoconf 2.69. Invocation command line was 17686 17687 CONFIG_FILES = $CONFIG_FILES 17688 CONFIG_HEADERS = $CONFIG_HEADERS 17689 CONFIG_LINKS = $CONFIG_LINKS 17690 CONFIG_COMMANDS = $CONFIG_COMMANDS 17691 $ $0 $@ 17692 17693on `(hostname || uname -n) 2>/dev/null | sed 1q` 17694" 17695 17696_ACEOF 17697 17698case $ac_config_files in *" 17699"*) set x $ac_config_files; shift; ac_config_files=$*;; 17700esac 17701 17702case $ac_config_headers in *" 17703"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17704esac 17705 17706 17707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17708# Files that config.status was made for. 17709config_files="$ac_config_files" 17710config_headers="$ac_config_headers" 17711config_commands="$ac_config_commands" 17712 17713_ACEOF 17714 17715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17716ac_cs_usage="\ 17717\`$as_me' instantiates files and other configuration actions 17718from templates according to the current configuration. Unless the files 17719and actions are specified as TAGs, all are instantiated by default. 17720 17721Usage: $0 [OPTION]... [TAG]... 17722 17723 -h, --help print this help, then exit 17724 -V, --version print version number and configuration settings, then exit 17725 --config print configuration, then exit 17726 -q, --quiet, --silent 17727 do not print progress messages 17728 -d, --debug don't remove temporary files 17729 --recheck update $as_me by reconfiguring in the same conditions 17730 --file=FILE[:TEMPLATE] 17731 instantiate the configuration file FILE 17732 --header=FILE[:TEMPLATE] 17733 instantiate the configuration header FILE 17734 17735Configuration files: 17736$config_files 17737 17738Configuration headers: 17739$config_headers 17740 17741Configuration commands: 17742$config_commands 17743 17744Report bugs to the package provider." 17745 17746_ACEOF 17747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17748ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17749ac_cs_version="\\ 17750libHX config.status 3.25 17751configured by $0, generated by GNU Autoconf 2.69, 17752 with options \\"\$ac_cs_config\\" 17753 17754Copyright (C) 2012 Free Software Foundation, Inc. 17755This config.status script is free software; the Free Software Foundation 17756gives unlimited permission to copy, distribute and modify it." 17757 17758ac_pwd='$ac_pwd' 17759srcdir='$srcdir' 17760INSTALL='$INSTALL' 17761MKDIR_P='$MKDIR_P' 17762AWK='$AWK' 17763test -n "\$AWK" || AWK=awk 17764_ACEOF 17765 17766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17767# The default lists apply if the user does not specify any file. 17768ac_need_defaults=: 17769while test $# != 0 17770do 17771 case $1 in 17772 --*=?*) 17773 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17774 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17775 ac_shift=: 17776 ;; 17777 --*=) 17778 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17779 ac_optarg= 17780 ac_shift=: 17781 ;; 17782 *) 17783 ac_option=$1 17784 ac_optarg=$2 17785 ac_shift=shift 17786 ;; 17787 esac 17788 17789 case $ac_option in 17790 # Handling of the options. 17791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17792 ac_cs_recheck=: ;; 17793 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17794 $as_echo "$ac_cs_version"; exit ;; 17795 --config | --confi | --conf | --con | --co | --c ) 17796 $as_echo "$ac_cs_config"; exit ;; 17797 --debug | --debu | --deb | --de | --d | -d ) 17798 debug=: ;; 17799 --file | --fil | --fi | --f ) 17800 $ac_shift 17801 case $ac_optarg in 17802 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17803 '') as_fn_error $? "missing file argument" ;; 17804 esac 17805 as_fn_append CONFIG_FILES " '$ac_optarg'" 17806 ac_need_defaults=false;; 17807 --header | --heade | --head | --hea ) 17808 $ac_shift 17809 case $ac_optarg in 17810 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17811 esac 17812 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17813 ac_need_defaults=false;; 17814 --he | --h) 17815 # Conflict between --help and --header 17816 as_fn_error $? "ambiguous option: \`$1' 17817Try \`$0 --help' for more information.";; 17818 --help | --hel | -h ) 17819 $as_echo "$ac_cs_usage"; exit ;; 17820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17821 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17822 ac_cs_silent=: ;; 17823 17824 # This is an error. 17825 -*) as_fn_error $? "unrecognized option: \`$1' 17826Try \`$0 --help' for more information." ;; 17827 17828 *) as_fn_append ac_config_targets " $1" 17829 ac_need_defaults=false ;; 17830 17831 esac 17832 shift 17833done 17834 17835ac_configure_extra_args= 17836 17837if $ac_cs_silent; then 17838 exec 6>/dev/null 17839 ac_configure_extra_args="$ac_configure_extra_args --silent" 17840fi 17841 17842_ACEOF 17843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17844if \$ac_cs_recheck; then 17845 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17846 shift 17847 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17848 CONFIG_SHELL='$SHELL' 17849 export CONFIG_SHELL 17850 exec "\$@" 17851fi 17852 17853_ACEOF 17854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17855exec 5>>config.log 17856{ 17857 echo 17858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17859## Running $as_me. ## 17860_ASBOX 17861 $as_echo "$ac_log" 17862} >&5 17863 17864_ACEOF 17865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17866# 17867# INIT-COMMANDS 17868# 17869AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17870 17871 17872# The HP-UX ksh and POSIX shell print the target directory to stdout 17873# if CDPATH is set. 17874(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17875 17876sed_quote_subst='$sed_quote_subst' 17877double_quote_subst='$double_quote_subst' 17878delay_variable_subst='$delay_variable_subst' 17879enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17880macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17881macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17882enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17883pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17884enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17885shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17886SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17887ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17888PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17889host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17890host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17891host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17892build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17893build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17894build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17895SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17896Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17897GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17898EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17899FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17900LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17901NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17902LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17903max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17904ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17905exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17906lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17907lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17908lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17909lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17910lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17911reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17912reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17913OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17914deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17915file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17916file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17917want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17918DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17919sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17920AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17921AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17922archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17923STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17924RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17925old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17926old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17927old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17928lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17929CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17930CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17931compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17932GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17933lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17934lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17935lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17936lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17937lt_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"`' 17938lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17939nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17940lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17941lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17942objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17943MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17944lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17945lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17946lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17947lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17948lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17949need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17950MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17951DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17952NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17953LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17954OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17955OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17956libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17957shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17958extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17959archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17960enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17961export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17962whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17963compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17964old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17965old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17966archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17967archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17968module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17969module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17970with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17971allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17972no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17973hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17974hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17975hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17976hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17977hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17978hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17979hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17980inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17981link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17982always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17983export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17984exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17985include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17986prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17987postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17988file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17989variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17990need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17991need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17992version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17993runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17994shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17995shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17996libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17997library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17998soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17999install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18000postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18001postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18002finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18003finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18004hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18005sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18006configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18007configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18008hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18009enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18010enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18011enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18012old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18013striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18014compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18015predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18016postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18017predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18018postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18019compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18020LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18021reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18022reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18023old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18024compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18025GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18026lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18027lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18028lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18029lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18030lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18031archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18032enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18033export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18034whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18035compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18036old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18037old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18038archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18039archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18040module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18041module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18042with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18043allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18044no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18045hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18046hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18047hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18048hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18049hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18050hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18051hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18052inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18053link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18054always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18055export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18056exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18057include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18058prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18059postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18060file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18061hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18062compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18063predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18064postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18065predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18066postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18067compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18068 18069LTCC='$LTCC' 18070LTCFLAGS='$LTCFLAGS' 18071compiler='$compiler_DEFAULT' 18072 18073# A function that is used when there is no print builtin or printf. 18074func_fallback_echo () 18075{ 18076 eval 'cat <<_LTECHO_EOF 18077\$1 18078_LTECHO_EOF' 18079} 18080 18081# Quote evaled strings. 18082for var in SHELL \ 18083ECHO \ 18084PATH_SEPARATOR \ 18085SED \ 18086GREP \ 18087EGREP \ 18088FGREP \ 18089LD \ 18090NM \ 18091LN_S \ 18092lt_SP2NL \ 18093lt_NL2SP \ 18094reload_flag \ 18095OBJDUMP \ 18096deplibs_check_method \ 18097file_magic_cmd \ 18098file_magic_glob \ 18099want_nocaseglob \ 18100DLLTOOL \ 18101sharedlib_from_linklib_cmd \ 18102AR \ 18103AR_FLAGS \ 18104archiver_list_spec \ 18105STRIP \ 18106RANLIB \ 18107CC \ 18108CFLAGS \ 18109compiler \ 18110lt_cv_sys_global_symbol_pipe \ 18111lt_cv_sys_global_symbol_to_cdecl \ 18112lt_cv_sys_global_symbol_to_import \ 18113lt_cv_sys_global_symbol_to_c_name_address \ 18114lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18115lt_cv_nm_interface \ 18116nm_file_list_spec \ 18117lt_cv_truncate_bin \ 18118lt_prog_compiler_no_builtin_flag \ 18119lt_prog_compiler_pic \ 18120lt_prog_compiler_wl \ 18121lt_prog_compiler_static \ 18122lt_cv_prog_compiler_c_o \ 18123need_locks \ 18124MANIFEST_TOOL \ 18125DSYMUTIL \ 18126NMEDIT \ 18127LIPO \ 18128OTOOL \ 18129OTOOL64 \ 18130shrext_cmds \ 18131export_dynamic_flag_spec \ 18132whole_archive_flag_spec \ 18133compiler_needs_object \ 18134with_gnu_ld \ 18135allow_undefined_flag \ 18136no_undefined_flag \ 18137hardcode_libdir_flag_spec \ 18138hardcode_libdir_separator \ 18139exclude_expsyms \ 18140include_expsyms \ 18141file_list_spec \ 18142variables_saved_for_relink \ 18143libname_spec \ 18144library_names_spec \ 18145soname_spec \ 18146install_override_mode \ 18147finish_eval \ 18148old_striplib \ 18149striplib \ 18150compiler_lib_search_dirs \ 18151predep_objects \ 18152postdep_objects \ 18153predeps \ 18154postdeps \ 18155compiler_lib_search_path \ 18156LD_CXX \ 18157reload_flag_CXX \ 18158compiler_CXX \ 18159lt_prog_compiler_no_builtin_flag_CXX \ 18160lt_prog_compiler_pic_CXX \ 18161lt_prog_compiler_wl_CXX \ 18162lt_prog_compiler_static_CXX \ 18163lt_cv_prog_compiler_c_o_CXX \ 18164export_dynamic_flag_spec_CXX \ 18165whole_archive_flag_spec_CXX \ 18166compiler_needs_object_CXX \ 18167with_gnu_ld_CXX \ 18168allow_undefined_flag_CXX \ 18169no_undefined_flag_CXX \ 18170hardcode_libdir_flag_spec_CXX \ 18171hardcode_libdir_separator_CXX \ 18172exclude_expsyms_CXX \ 18173include_expsyms_CXX \ 18174file_list_spec_CXX \ 18175compiler_lib_search_dirs_CXX \ 18176predep_objects_CXX \ 18177postdep_objects_CXX \ 18178predeps_CXX \ 18179postdeps_CXX \ 18180compiler_lib_search_path_CXX; do 18181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18182 *[\\\\\\\`\\"\\\$]*) 18183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18184 ;; 18185 *) 18186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18187 ;; 18188 esac 18189done 18190 18191# Double-quote double-evaled strings. 18192for var in reload_cmds \ 18193old_postinstall_cmds \ 18194old_postuninstall_cmds \ 18195old_archive_cmds \ 18196extract_expsyms_cmds \ 18197old_archive_from_new_cmds \ 18198old_archive_from_expsyms_cmds \ 18199archive_cmds \ 18200archive_expsym_cmds \ 18201module_cmds \ 18202module_expsym_cmds \ 18203export_symbols_cmds \ 18204prelink_cmds \ 18205postlink_cmds \ 18206postinstall_cmds \ 18207postuninstall_cmds \ 18208finish_cmds \ 18209sys_lib_search_path_spec \ 18210configure_time_dlsearch_path \ 18211configure_time_lt_sys_library_path \ 18212reload_cmds_CXX \ 18213old_archive_cmds_CXX \ 18214old_archive_from_new_cmds_CXX \ 18215old_archive_from_expsyms_cmds_CXX \ 18216archive_cmds_CXX \ 18217archive_expsym_cmds_CXX \ 18218module_cmds_CXX \ 18219module_expsym_cmds_CXX \ 18220export_symbols_cmds_CXX \ 18221prelink_cmds_CXX \ 18222postlink_cmds_CXX; do 18223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18224 *[\\\\\\\`\\"\\\$]*) 18225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18226 ;; 18227 *) 18228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18229 ;; 18230 esac 18231done 18232 18233ac_aux_dir='$ac_aux_dir' 18234 18235# See if we are running on zsh, and set the options that allow our 18236# commands through without removal of \ escapes INIT. 18237if test -n "\${ZSH_VERSION+set}"; then 18238 setopt NO_GLOB_SUBST 18239fi 18240 18241 18242 PACKAGE='$PACKAGE' 18243 VERSION='$VERSION' 18244 RM='$RM' 18245 ofile='$ofile' 18246 18247 18248 18249 18250 18251 18252_ACEOF 18253 18254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18255 18256# Handling of arguments. 18257for ac_config_target in $ac_config_targets 18258do 18259 case $ac_config_target in 18260 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18261 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18262 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18264 "assorted/Makefile") CONFIG_FILES="$CONFIG_FILES assorted/Makefile" ;; 18265 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18266 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18267 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18268 "libHX.pc") CONFIG_FILES="$CONFIG_FILES libHX.pc" ;; 18269 18270 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18271 esac 18272done 18273 18274 18275# If the user did not use the arguments to specify the items to instantiate, 18276# then the envvar interface is used. Set only those that are not. 18277# We use the long form for the default assignment because of an extremely 18278# bizarre bug on SunOS 4.1.3. 18279if $ac_need_defaults; then 18280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18283fi 18284 18285# Have a temporary directory for convenience. Make it in the build tree 18286# simply because there is no reason against having it here, and in addition, 18287# creating and moving files from /tmp can sometimes cause problems. 18288# Hook for its removal unless debugging. 18289# Note that there is a small window in which the directory will not be cleaned: 18290# after its creation but before its name has been assigned to `$tmp'. 18291$debug || 18292{ 18293 tmp= ac_tmp= 18294 trap 'exit_status=$? 18295 : "${ac_tmp:=$tmp}" 18296 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18297' 0 18298 trap 'as_fn_exit 1' 1 2 13 15 18299} 18300# Create a (secure) tmp directory for tmp files. 18301 18302{ 18303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18304 test -d "$tmp" 18305} || 18306{ 18307 tmp=./conf$$-$RANDOM 18308 (umask 077 && mkdir "$tmp") 18309} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18310ac_tmp=$tmp 18311 18312# Set up the scripts for CONFIG_FILES section. 18313# No need to generate them if there are no CONFIG_FILES. 18314# This happens for instance with `./config.status config.h'. 18315if test -n "$CONFIG_FILES"; then 18316 18317 18318ac_cr=`echo X | tr X '\015'` 18319# On cygwin, bash can eat \r inside `` if the user requested igncr. 18320# But we know of no other shell where ac_cr would be empty at this 18321# point, so we can use a bashism as a fallback. 18322if test "x$ac_cr" = x; then 18323 eval ac_cr=\$\'\\r\' 18324fi 18325ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18326if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18327 ac_cs_awk_cr='\\r' 18328else 18329 ac_cs_awk_cr=$ac_cr 18330fi 18331 18332echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18333_ACEOF 18334 18335 18336{ 18337 echo "cat >conf$$subs.awk <<_ACEOF" && 18338 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18339 echo "_ACEOF" 18340} >conf$$subs.sh || 18341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18342ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18343ac_delim='%!_!# ' 18344for ac_last_try in false false false false false :; do 18345 . ./conf$$subs.sh || 18346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18347 18348 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18349 if test $ac_delim_n = $ac_delim_num; then 18350 break 18351 elif $ac_last_try; then 18352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18353 else 18354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18355 fi 18356done 18357rm -f conf$$subs.sh 18358 18359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18360cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18361_ACEOF 18362sed -n ' 18363h 18364s/^/S["/; s/!.*/"]=/ 18365p 18366g 18367s/^[^!]*!// 18368:repl 18369t repl 18370s/'"$ac_delim"'$// 18371t delim 18372:nl 18373h 18374s/\(.\{148\}\)..*/\1/ 18375t more1 18376s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18377p 18378n 18379b repl 18380:more1 18381s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18382p 18383g 18384s/.\{148\}// 18385t nl 18386:delim 18387h 18388s/\(.\{148\}\)..*/\1/ 18389t more2 18390s/["\\]/\\&/g; s/^/"/; s/$/"/ 18391p 18392b 18393:more2 18394s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18395p 18396g 18397s/.\{148\}// 18398t delim 18399' <conf$$subs.awk | sed ' 18400/^[^""]/{ 18401 N 18402 s/\n// 18403} 18404' >>$CONFIG_STATUS || ac_write_fail=1 18405rm -f conf$$subs.awk 18406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18407_ACAWK 18408cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18409 for (key in S) S_is_set[key] = 1 18410 FS = "" 18411 18412} 18413{ 18414 line = $ 0 18415 nfields = split(line, field, "@") 18416 substed = 0 18417 len = length(field[1]) 18418 for (i = 2; i < nfields; i++) { 18419 key = field[i] 18420 keylen = length(key) 18421 if (S_is_set[key]) { 18422 value = S[key] 18423 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18424 len += length(value) + length(field[++i]) 18425 substed = 1 18426 } else 18427 len += 1 + keylen 18428 } 18429 18430 print line 18431} 18432 18433_ACAWK 18434_ACEOF 18435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18436if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18437 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18438else 18439 cat 18440fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18441 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18442_ACEOF 18443 18444# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18445# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18446# trailing colons and then remove the whole line if VPATH becomes empty 18447# (actually we leave an empty line to preserve line numbers). 18448if test "x$srcdir" = x.; then 18449 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18450h 18451s/// 18452s/^/:/ 18453s/[ ]*$/:/ 18454s/:\$(srcdir):/:/g 18455s/:\${srcdir}:/:/g 18456s/:@srcdir@:/:/g 18457s/^:*// 18458s/:*$// 18459x 18460s/\(=[ ]*\).*/\1/ 18461G 18462s/\n// 18463s/^[^=]*=[ ]*$// 18464}' 18465fi 18466 18467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18468fi # test -n "$CONFIG_FILES" 18469 18470# Set up the scripts for CONFIG_HEADERS section. 18471# No need to generate them if there are no CONFIG_HEADERS. 18472# This happens for instance with `./config.status Makefile'. 18473if test -n "$CONFIG_HEADERS"; then 18474cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18475BEGIN { 18476_ACEOF 18477 18478# Transform confdefs.h into an awk script `defines.awk', embedded as 18479# here-document in config.status, that substitutes the proper values into 18480# config.h.in to produce config.h. 18481 18482# Create a delimiter string that does not exist in confdefs.h, to ease 18483# handling of long lines. 18484ac_delim='%!_!# ' 18485for ac_last_try in false false :; do 18486 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18487 if test -z "$ac_tt"; then 18488 break 18489 elif $ac_last_try; then 18490 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18491 else 18492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18493 fi 18494done 18495 18496# For the awk script, D is an array of macro values keyed by name, 18497# likewise P contains macro parameters if any. Preserve backslash 18498# newline sequences. 18499 18500ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18501sed -n ' 18502s/.\{148\}/&'"$ac_delim"'/g 18503t rset 18504:rset 18505s/^[ ]*#[ ]*define[ ][ ]*/ / 18506t def 18507d 18508:def 18509s/\\$// 18510t bsnl 18511s/["\\]/\\&/g 18512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18513D["\1"]=" \3"/p 18514s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18515d 18516:bsnl 18517s/["\\]/\\&/g 18518s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18519D["\1"]=" \3\\\\\\n"\\/p 18520t cont 18521s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18522t cont 18523d 18524:cont 18525n 18526s/.\{148\}/&'"$ac_delim"'/g 18527t clear 18528:clear 18529s/\\$// 18530t bsnlc 18531s/["\\]/\\&/g; s/^/"/; s/$/"/p 18532d 18533:bsnlc 18534s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18535b cont 18536' <confdefs.h | sed ' 18537s/'"$ac_delim"'/"\\\ 18538"/g' >>$CONFIG_STATUS || ac_write_fail=1 18539 18540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18541 for (key in D) D_is_set[key] = 1 18542 FS = "" 18543} 18544/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18545 line = \$ 0 18546 split(line, arg, " ") 18547 if (arg[1] == "#") { 18548 defundef = arg[2] 18549 mac1 = arg[3] 18550 } else { 18551 defundef = substr(arg[1], 2) 18552 mac1 = arg[2] 18553 } 18554 split(mac1, mac2, "(") #) 18555 macro = mac2[1] 18556 prefix = substr(line, 1, index(line, defundef) - 1) 18557 if (D_is_set[macro]) { 18558 # Preserve the white space surrounding the "#". 18559 print prefix "define", macro P[macro] D[macro] 18560 next 18561 } else { 18562 # Replace #undef with comments. This is necessary, for example, 18563 # in the case of _POSIX_SOURCE, which is predefined and required 18564 # on some systems where configure will not decide to define it. 18565 if (defundef == "undef") { 18566 print "/*", prefix defundef, macro, "*/" 18567 next 18568 } 18569 } 18570} 18571{ print } 18572_ACAWK 18573_ACEOF 18574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18575 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18576fi # test -n "$CONFIG_HEADERS" 18577 18578 18579eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18580shift 18581for ac_tag 18582do 18583 case $ac_tag in 18584 :[FHLC]) ac_mode=$ac_tag; continue;; 18585 esac 18586 case $ac_mode$ac_tag in 18587 :[FHL]*:*);; 18588 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18589 :[FH]-) ac_tag=-:-;; 18590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18591 esac 18592 ac_save_IFS=$IFS 18593 IFS=: 18594 set x $ac_tag 18595 IFS=$ac_save_IFS 18596 shift 18597 ac_file=$1 18598 shift 18599 18600 case $ac_mode in 18601 :L) ac_source=$1;; 18602 :[FH]) 18603 ac_file_inputs= 18604 for ac_f 18605 do 18606 case $ac_f in 18607 -) ac_f="$ac_tmp/stdin";; 18608 *) # Look for the file first in the build tree, then in the source tree 18609 # (if the path is not absolute). The absolute path cannot be DOS-style, 18610 # because $ac_f cannot contain `:'. 18611 test -f "$ac_f" || 18612 case $ac_f in 18613 [\\/$]*) false;; 18614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18615 esac || 18616 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18617 esac 18618 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18619 as_fn_append ac_file_inputs " '$ac_f'" 18620 done 18621 18622 # Let's still pretend it is `configure' which instantiates (i.e., don't 18623 # use $as_me), people would be surprised to read: 18624 # /* config.h. Generated by config.status. */ 18625 configure_input='Generated from '` 18626 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18627 `' by configure.' 18628 if test x"$ac_file" != x-; then 18629 configure_input="$ac_file. $configure_input" 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18631$as_echo "$as_me: creating $ac_file" >&6;} 18632 fi 18633 # Neutralize special characters interpreted by sed in replacement strings. 18634 case $configure_input in #( 18635 *\&* | *\|* | *\\* ) 18636 ac_sed_conf_input=`$as_echo "$configure_input" | 18637 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18638 *) ac_sed_conf_input=$configure_input;; 18639 esac 18640 18641 case $ac_tag in 18642 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18644 esac 18645 ;; 18646 esac 18647 18648 ac_dir=`$as_dirname -- "$ac_file" || 18649$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18650 X"$ac_file" : 'X\(//\)[^/]' \| \ 18651 X"$ac_file" : 'X\(//\)$' \| \ 18652 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18653$as_echo X"$ac_file" | 18654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18655 s//\1/ 18656 q 18657 } 18658 /^X\(\/\/\)[^/].*/{ 18659 s//\1/ 18660 q 18661 } 18662 /^X\(\/\/\)$/{ 18663 s//\1/ 18664 q 18665 } 18666 /^X\(\/\).*/{ 18667 s//\1/ 18668 q 18669 } 18670 s/.*/./; q'` 18671 as_dir="$ac_dir"; as_fn_mkdir_p 18672 ac_builddir=. 18673 18674case "$ac_dir" in 18675.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18676*) 18677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18678 # A ".." for each directory in $ac_dir_suffix. 18679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18680 case $ac_top_builddir_sub in 18681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18683 esac ;; 18684esac 18685ac_abs_top_builddir=$ac_pwd 18686ac_abs_builddir=$ac_pwd$ac_dir_suffix 18687# for backward compatibility: 18688ac_top_builddir=$ac_top_build_prefix 18689 18690case $srcdir in 18691 .) # We are building in place. 18692 ac_srcdir=. 18693 ac_top_srcdir=$ac_top_builddir_sub 18694 ac_abs_top_srcdir=$ac_pwd ;; 18695 [\\/]* | ?:[\\/]* ) # Absolute name. 18696 ac_srcdir=$srcdir$ac_dir_suffix; 18697 ac_top_srcdir=$srcdir 18698 ac_abs_top_srcdir=$srcdir ;; 18699 *) # Relative name. 18700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18701 ac_top_srcdir=$ac_top_build_prefix$srcdir 18702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18703esac 18704ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18705 18706 18707 case $ac_mode in 18708 :F) 18709 # 18710 # CONFIG_FILE 18711 # 18712 18713 case $INSTALL in 18714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18716 esac 18717 ac_MKDIR_P=$MKDIR_P 18718 case $MKDIR_P in 18719 [\\/$]* | ?:[\\/]* ) ;; 18720 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18721 esac 18722_ACEOF 18723 18724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18725# If the template does not know about datarootdir, expand it. 18726# FIXME: This hack should be removed a few years after 2.60. 18727ac_datarootdir_hack=; ac_datarootdir_seen= 18728ac_sed_dataroot=' 18729/datarootdir/ { 18730 p 18731 q 18732} 18733/@datadir@/p 18734/@docdir@/p 18735/@infodir@/p 18736/@localedir@/p 18737/@mandir@/p' 18738case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18739*datarootdir*) ac_datarootdir_seen=yes;; 18740*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18742$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18743_ACEOF 18744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18745 ac_datarootdir_hack=' 18746 s&@datadir@&$datadir&g 18747 s&@docdir@&$docdir&g 18748 s&@infodir@&$infodir&g 18749 s&@localedir@&$localedir&g 18750 s&@mandir@&$mandir&g 18751 s&\\\${datarootdir}&$datarootdir&g' ;; 18752esac 18753_ACEOF 18754 18755# Neutralize VPATH when `$srcdir' = `.'. 18756# Shell code in configure.ac might set extrasub. 18757# FIXME: do we really want to maintain this feature? 18758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18759ac_sed_extra="$ac_vpsub 18760$extrasub 18761_ACEOF 18762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18763:t 18764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18765s|@configure_input@|$ac_sed_conf_input|;t t 18766s&@top_builddir@&$ac_top_builddir_sub&;t t 18767s&@top_build_prefix@&$ac_top_build_prefix&;t t 18768s&@srcdir@&$ac_srcdir&;t t 18769s&@abs_srcdir@&$ac_abs_srcdir&;t t 18770s&@top_srcdir@&$ac_top_srcdir&;t t 18771s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18772s&@builddir@&$ac_builddir&;t t 18773s&@abs_builddir@&$ac_abs_builddir&;t t 18774s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18775s&@INSTALL@&$ac_INSTALL&;t t 18776s&@MKDIR_P@&$ac_MKDIR_P&;t t 18777$ac_datarootdir_hack 18778" 18779eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18780 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18781 18782test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18783 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18785 "$ac_tmp/out"`; test -z "$ac_out"; } && 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18787which seems to be undefined. Please make sure it is defined" >&5 18788$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18789which seems to be undefined. Please make sure it is defined" >&2;} 18790 18791 rm -f "$ac_tmp/stdin" 18792 case $ac_file in 18793 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18794 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18795 esac \ 18796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18797 ;; 18798 :H) 18799 # 18800 # CONFIG_HEADER 18801 # 18802 if test x"$ac_file" != x-; then 18803 { 18804 $as_echo "/* $configure_input */" \ 18805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18806 } >"$ac_tmp/config.h" \ 18807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18808 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18810$as_echo "$as_me: $ac_file is unchanged" >&6;} 18811 else 18812 rm -f "$ac_file" 18813 mv "$ac_tmp/config.h" "$ac_file" \ 18814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18815 fi 18816 else 18817 $as_echo "/* $configure_input */" \ 18818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18819 || as_fn_error $? "could not create -" "$LINENO" 5 18820 fi 18821# Compute "$ac_file"'s index in $config_headers. 18822_am_arg="$ac_file" 18823_am_stamp_count=1 18824for _am_header in $config_headers :; do 18825 case $_am_header in 18826 $_am_arg | $_am_arg:* ) 18827 break ;; 18828 * ) 18829 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18830 esac 18831done 18832echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18833$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18834 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18835 X"$_am_arg" : 'X\(//\)$' \| \ 18836 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18837$as_echo X"$_am_arg" | 18838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18839 s//\1/ 18840 q 18841 } 18842 /^X\(\/\/\)[^/].*/{ 18843 s//\1/ 18844 q 18845 } 18846 /^X\(\/\/\)$/{ 18847 s//\1/ 18848 q 18849 } 18850 /^X\(\/\).*/{ 18851 s//\1/ 18852 q 18853 } 18854 s/.*/./; q'`/stamp-h$_am_stamp_count 18855 ;; 18856 18857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18858$as_echo "$as_me: executing $ac_file commands" >&6;} 18859 ;; 18860 esac 18861 18862 18863 case $ac_file$ac_mode in 18864 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18865 # Older Autoconf quotes --file arguments for eval, but not when files 18866 # are listed without --file. Let's play safe and only enable the eval 18867 # if we detect the quoting. 18868 case $CONFIG_FILES in 18869 *\'*) eval set x "$CONFIG_FILES" ;; 18870 *) set x $CONFIG_FILES ;; 18871 esac 18872 shift 18873 for mf 18874 do 18875 # Strip MF so we end up with the name of the file. 18876 mf=`echo "$mf" | sed -e 's/:.*$//'` 18877 # Check whether this is an Automake generated Makefile or not. 18878 # We used to match only the files named 'Makefile.in', but 18879 # some people rename them; so instead we look at the file content. 18880 # Grep'ing the first line is not enough: some people post-process 18881 # each Makefile.in and add a new line on top of each file to say so. 18882 # Grep'ing the whole file is not good either: AIX grep has a line 18883 # limit of 2048, but all sed's we know have understand at least 4000. 18884 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18885 dirpart=`$as_dirname -- "$mf" || 18886$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18887 X"$mf" : 'X\(//\)[^/]' \| \ 18888 X"$mf" : 'X\(//\)$' \| \ 18889 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18890$as_echo X"$mf" | 18891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18892 s//\1/ 18893 q 18894 } 18895 /^X\(\/\/\)[^/].*/{ 18896 s//\1/ 18897 q 18898 } 18899 /^X\(\/\/\)$/{ 18900 s//\1/ 18901 q 18902 } 18903 /^X\(\/\).*/{ 18904 s//\1/ 18905 q 18906 } 18907 s/.*/./; q'` 18908 else 18909 continue 18910 fi 18911 # Extract the definition of DEPDIR, am__include, and am__quote 18912 # from the Makefile without running 'make'. 18913 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18914 test -z "$DEPDIR" && continue 18915 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18916 test -z "$am__include" && continue 18917 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18918 # Find all dependency output files, they are included files with 18919 # $(DEPDIR) in their names. We invoke sed twice because it is the 18920 # simplest approach to changing $(DEPDIR) to its actual value in the 18921 # expansion. 18922 for file in `sed -n " 18923 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18924 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18925 # Make sure the directory exists. 18926 test -f "$dirpart/$file" && continue 18927 fdir=`$as_dirname -- "$file" || 18928$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18929 X"$file" : 'X\(//\)[^/]' \| \ 18930 X"$file" : 'X\(//\)$' \| \ 18931 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18932$as_echo X"$file" | 18933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18934 s//\1/ 18935 q 18936 } 18937 /^X\(\/\/\)[^/].*/{ 18938 s//\1/ 18939 q 18940 } 18941 /^X\(\/\/\)$/{ 18942 s//\1/ 18943 q 18944 } 18945 /^X\(\/\).*/{ 18946 s//\1/ 18947 q 18948 } 18949 s/.*/./; q'` 18950 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18951 # echo "creating $dirpart/$file" 18952 echo '# dummy' > "$dirpart/$file" 18953 done 18954 done 18955} 18956 ;; 18957 "libtool":C) 18958 18959 # See if we are running on zsh, and set the options that allow our 18960 # commands through without removal of \ escapes. 18961 if test -n "${ZSH_VERSION+set}"; then 18962 setopt NO_GLOB_SUBST 18963 fi 18964 18965 cfgfile=${ofile}T 18966 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18967 $RM "$cfgfile" 18968 18969 cat <<_LT_EOF >> "$cfgfile" 18970#! $SHELL 18971# Generated automatically by $as_me ($PACKAGE) $VERSION 18972# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18973 18974# Provide generalized library-building support services. 18975# Written by Gordon Matzigkeit, 1996 18976 18977# Copyright (C) 2014 Free Software Foundation, Inc. 18978# This is free software; see the source for copying conditions. There is NO 18979# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18980 18981# GNU Libtool is free software; you can redistribute it and/or modify 18982# it under the terms of the GNU General Public License as published by 18983# the Free Software Foundation; either version 2 of of the License, or 18984# (at your option) any later version. 18985# 18986# As a special exception to the GNU General Public License, if you 18987# distribute this file as part of a program or library that is built 18988# using GNU Libtool, you may include this file under the same 18989# distribution terms that you use for the rest of that program. 18990# 18991# GNU Libtool is distributed in the hope that it will be useful, but 18992# WITHOUT ANY WARRANTY; without even the implied warranty of 18993# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18994# GNU General Public License for more details. 18995# 18996# You should have received a copy of the GNU General Public License 18997# along with this program. If not, see <http://www.gnu.org/licenses/>. 18998 18999 19000# The names of the tagged configurations supported by this script. 19001available_tags='CXX ' 19002 19003# Configured defaults for sys_lib_dlsearch_path munging. 19004: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19005 19006# ### BEGIN LIBTOOL CONFIG 19007 19008# Whether or not to build static libraries. 19009build_old_libs=$enable_static 19010 19011# Which release of libtool.m4 was used? 19012macro_version=$macro_version 19013macro_revision=$macro_revision 19014 19015# Whether or not to build shared libraries. 19016build_libtool_libs=$enable_shared 19017 19018# What type of objects to build. 19019pic_mode=$pic_mode 19020 19021# Whether or not to optimize for fast installation. 19022fast_install=$enable_fast_install 19023 19024# Shared archive member basename,for filename based shared library versioning on AIX. 19025shared_archive_member_spec=$shared_archive_member_spec 19026 19027# Shell to use when invoking shell scripts. 19028SHELL=$lt_SHELL 19029 19030# An echo program that protects backslashes. 19031ECHO=$lt_ECHO 19032 19033# The PATH separator for the build system. 19034PATH_SEPARATOR=$lt_PATH_SEPARATOR 19035 19036# The host system. 19037host_alias=$host_alias 19038host=$host 19039host_os=$host_os 19040 19041# The build system. 19042build_alias=$build_alias 19043build=$build 19044build_os=$build_os 19045 19046# A sed program that does not truncate output. 19047SED=$lt_SED 19048 19049# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19050Xsed="\$SED -e 1s/^X//" 19051 19052# A grep program that handles long lines. 19053GREP=$lt_GREP 19054 19055# An ERE matcher. 19056EGREP=$lt_EGREP 19057 19058# A literal string matcher. 19059FGREP=$lt_FGREP 19060 19061# A BSD- or MS-compatible name lister. 19062NM=$lt_NM 19063 19064# Whether we need soft or hard links. 19065LN_S=$lt_LN_S 19066 19067# What is the maximum length of a command? 19068max_cmd_len=$max_cmd_len 19069 19070# Object file suffix (normally "o"). 19071objext=$ac_objext 19072 19073# Executable file suffix (normally ""). 19074exeext=$exeext 19075 19076# whether the shell understands "unset". 19077lt_unset=$lt_unset 19078 19079# turn spaces into newlines. 19080SP2NL=$lt_lt_SP2NL 19081 19082# turn newlines into spaces. 19083NL2SP=$lt_lt_NL2SP 19084 19085# convert \$build file names to \$host format. 19086to_host_file_cmd=$lt_cv_to_host_file_cmd 19087 19088# convert \$build files to toolchain format. 19089to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19090 19091# An object symbol dumper. 19092OBJDUMP=$lt_OBJDUMP 19093 19094# Method to check whether dependent libraries are shared objects. 19095deplibs_check_method=$lt_deplibs_check_method 19096 19097# Command to use when deplibs_check_method = "file_magic". 19098file_magic_cmd=$lt_file_magic_cmd 19099 19100# How to find potential files when deplibs_check_method = "file_magic". 19101file_magic_glob=$lt_file_magic_glob 19102 19103# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19104want_nocaseglob=$lt_want_nocaseglob 19105 19106# DLL creation program. 19107DLLTOOL=$lt_DLLTOOL 19108 19109# Command to associate shared and link libraries. 19110sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19111 19112# The archiver. 19113AR=$lt_AR 19114 19115# Flags to create an archive. 19116AR_FLAGS=$lt_AR_FLAGS 19117 19118# How to feed a file listing to the archiver. 19119archiver_list_spec=$lt_archiver_list_spec 19120 19121# A symbol stripping program. 19122STRIP=$lt_STRIP 19123 19124# Commands used to install an old-style archive. 19125RANLIB=$lt_RANLIB 19126old_postinstall_cmds=$lt_old_postinstall_cmds 19127old_postuninstall_cmds=$lt_old_postuninstall_cmds 19128 19129# Whether to use a lock for old archive extraction. 19130lock_old_archive_extraction=$lock_old_archive_extraction 19131 19132# A C compiler. 19133LTCC=$lt_CC 19134 19135# LTCC compiler flags. 19136LTCFLAGS=$lt_CFLAGS 19137 19138# Take the output of nm and produce a listing of raw symbols and C names. 19139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19140 19141# Transform the output of nm in a proper C declaration. 19142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19143 19144# Transform the output of nm into a list of symbols to manually relocate. 19145global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19146 19147# Transform the output of nm in a C name address pair. 19148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19149 19150# Transform the output of nm in a C name address pair when lib prefix is needed. 19151global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19152 19153# The name lister interface. 19154nm_interface=$lt_lt_cv_nm_interface 19155 19156# Specify filename containing input files for \$NM. 19157nm_file_list_spec=$lt_nm_file_list_spec 19158 19159# The root where to search for dependent libraries,and where our libraries should be installed. 19160lt_sysroot=$lt_sysroot 19161 19162# Command to truncate a binary pipe. 19163lt_truncate_bin=$lt_lt_cv_truncate_bin 19164 19165# The name of the directory that contains temporary libtool files. 19166objdir=$objdir 19167 19168# Used to examine libraries when file_magic_cmd begins with "file". 19169MAGIC_CMD=$MAGIC_CMD 19170 19171# Must we lock files when doing compilation? 19172need_locks=$lt_need_locks 19173 19174# Manifest tool. 19175MANIFEST_TOOL=$lt_MANIFEST_TOOL 19176 19177# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19178DSYMUTIL=$lt_DSYMUTIL 19179 19180# Tool to change global to local symbols on Mac OS X. 19181NMEDIT=$lt_NMEDIT 19182 19183# Tool to manipulate fat objects and archives on Mac OS X. 19184LIPO=$lt_LIPO 19185 19186# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19187OTOOL=$lt_OTOOL 19188 19189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19190OTOOL64=$lt_OTOOL64 19191 19192# Old archive suffix (normally "a"). 19193libext=$libext 19194 19195# Shared library suffix (normally ".so"). 19196shrext_cmds=$lt_shrext_cmds 19197 19198# The commands to extract the exported symbol list from a shared archive. 19199extract_expsyms_cmds=$lt_extract_expsyms_cmds 19200 19201# Variables whose values should be saved in libtool wrapper scripts and 19202# restored at link time. 19203variables_saved_for_relink=$lt_variables_saved_for_relink 19204 19205# Do we need the "lib" prefix for modules? 19206need_lib_prefix=$need_lib_prefix 19207 19208# Do we need a version for libraries? 19209need_version=$need_version 19210 19211# Library versioning type. 19212version_type=$version_type 19213 19214# Shared library runtime path variable. 19215runpath_var=$runpath_var 19216 19217# Shared library path variable. 19218shlibpath_var=$shlibpath_var 19219 19220# Is shlibpath searched before the hard-coded library search path? 19221shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19222 19223# Format of library name prefix. 19224libname_spec=$lt_libname_spec 19225 19226# List of archive names. First name is the real one, the rest are links. 19227# The last name is the one that the linker finds with -lNAME 19228library_names_spec=$lt_library_names_spec 19229 19230# The coded name of the library, if different from the real name. 19231soname_spec=$lt_soname_spec 19232 19233# Permission mode override for installation of shared libraries. 19234install_override_mode=$lt_install_override_mode 19235 19236# Command to use after installation of a shared archive. 19237postinstall_cmds=$lt_postinstall_cmds 19238 19239# Command to use after uninstallation of a shared archive. 19240postuninstall_cmds=$lt_postuninstall_cmds 19241 19242# Commands used to finish a libtool library installation in a directory. 19243finish_cmds=$lt_finish_cmds 19244 19245# As "finish_cmds", except a single script fragment to be evaled but 19246# not shown. 19247finish_eval=$lt_finish_eval 19248 19249# Whether we should hardcode library paths into libraries. 19250hardcode_into_libs=$hardcode_into_libs 19251 19252# Compile-time system search path for libraries. 19253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19254 19255# Detected run-time system search path for libraries. 19256sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19257 19258# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19259configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19260 19261# Whether dlopen is supported. 19262dlopen_support=$enable_dlopen 19263 19264# Whether dlopen of programs is supported. 19265dlopen_self=$enable_dlopen_self 19266 19267# Whether dlopen of statically linked programs is supported. 19268dlopen_self_static=$enable_dlopen_self_static 19269 19270# Commands to strip libraries. 19271old_striplib=$lt_old_striplib 19272striplib=$lt_striplib 19273 19274 19275# The linker used to build libraries. 19276LD=$lt_LD 19277 19278# How to create reloadable object files. 19279reload_flag=$lt_reload_flag 19280reload_cmds=$lt_reload_cmds 19281 19282# Commands used to build an old-style archive. 19283old_archive_cmds=$lt_old_archive_cmds 19284 19285# A language specific compiler. 19286CC=$lt_compiler 19287 19288# Is the compiler the GNU compiler? 19289with_gcc=$GCC 19290 19291# Compiler flag to turn off builtin functions. 19292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19293 19294# Additional compiler flags for building library objects. 19295pic_flag=$lt_lt_prog_compiler_pic 19296 19297# How to pass a linker flag through the compiler. 19298wl=$lt_lt_prog_compiler_wl 19299 19300# Compiler flag to prevent dynamic linking. 19301link_static_flag=$lt_lt_prog_compiler_static 19302 19303# Does compiler simultaneously support -c and -o options? 19304compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19305 19306# Whether or not to add -lc for building shared libraries. 19307build_libtool_need_lc=$archive_cmds_need_lc 19308 19309# Whether or not to disallow shared libs when runtime libs are static. 19310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19311 19312# Compiler flag to allow reflexive dlopens. 19313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19314 19315# Compiler flag to generate shared objects directly from archives. 19316whole_archive_flag_spec=$lt_whole_archive_flag_spec 19317 19318# Whether the compiler copes with passing no objects directly. 19319compiler_needs_object=$lt_compiler_needs_object 19320 19321# Create an old-style archive from a shared archive. 19322old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19323 19324# Create a temporary old-style archive to link instead of a shared archive. 19325old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19326 19327# Commands used to build a shared archive. 19328archive_cmds=$lt_archive_cmds 19329archive_expsym_cmds=$lt_archive_expsym_cmds 19330 19331# Commands used to build a loadable module if different from building 19332# a shared archive. 19333module_cmds=$lt_module_cmds 19334module_expsym_cmds=$lt_module_expsym_cmds 19335 19336# Whether we are building with GNU ld or not. 19337with_gnu_ld=$lt_with_gnu_ld 19338 19339# Flag that allows shared libraries with undefined symbols to be built. 19340allow_undefined_flag=$lt_allow_undefined_flag 19341 19342# Flag that enforces no undefined symbols. 19343no_undefined_flag=$lt_no_undefined_flag 19344 19345# Flag to hardcode \$libdir into a binary during linking. 19346# This must work even if \$libdir does not exist 19347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19348 19349# Whether we need a single "-rpath" flag with a separated argument. 19350hardcode_libdir_separator=$lt_hardcode_libdir_separator 19351 19352# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19353# DIR into the resulting binary. 19354hardcode_direct=$hardcode_direct 19355 19356# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19357# DIR into the resulting binary and the resulting library dependency is 19358# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19359# library is relocated. 19360hardcode_direct_absolute=$hardcode_direct_absolute 19361 19362# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19363# into the resulting binary. 19364hardcode_minus_L=$hardcode_minus_L 19365 19366# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19367# into the resulting binary. 19368hardcode_shlibpath_var=$hardcode_shlibpath_var 19369 19370# Set to "yes" if building a shared library automatically hardcodes DIR 19371# into the library and all subsequent libraries and executables linked 19372# against it. 19373hardcode_automatic=$hardcode_automatic 19374 19375# Set to yes if linker adds runtime paths of dependent libraries 19376# to runtime path list. 19377inherit_rpath=$inherit_rpath 19378 19379# Whether libtool must link a program against all its dependency libraries. 19380link_all_deplibs=$link_all_deplibs 19381 19382# Set to "yes" if exported symbols are required. 19383always_export_symbols=$always_export_symbols 19384 19385# The commands to list exported symbols. 19386export_symbols_cmds=$lt_export_symbols_cmds 19387 19388# Symbols that should not be listed in the preloaded symbols. 19389exclude_expsyms=$lt_exclude_expsyms 19390 19391# Symbols that must always be exported. 19392include_expsyms=$lt_include_expsyms 19393 19394# Commands necessary for linking programs (against libraries) with templates. 19395prelink_cmds=$lt_prelink_cmds 19396 19397# Commands necessary for finishing linking programs. 19398postlink_cmds=$lt_postlink_cmds 19399 19400# Specify filename containing input files. 19401file_list_spec=$lt_file_list_spec 19402 19403# How to hardcode a shared library path into an executable. 19404hardcode_action=$hardcode_action 19405 19406# The directories searched by this compiler when creating a shared library. 19407compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19408 19409# Dependencies to place before and after the objects being linked to 19410# create a shared library. 19411predep_objects=$lt_predep_objects 19412postdep_objects=$lt_postdep_objects 19413predeps=$lt_predeps 19414postdeps=$lt_postdeps 19415 19416# The library search path used internally by the compiler when linking 19417# a shared library. 19418compiler_lib_search_path=$lt_compiler_lib_search_path 19419 19420# ### END LIBTOOL CONFIG 19421 19422_LT_EOF 19423 19424 cat <<'_LT_EOF' >> "$cfgfile" 19425 19426# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19427 19428# func_munge_path_list VARIABLE PATH 19429# ----------------------------------- 19430# VARIABLE is name of variable containing _space_ separated list of 19431# directories to be munged by the contents of PATH, which is string 19432# having a format: 19433# "DIR[:DIR]:" 19434# string "DIR[ DIR]" will be prepended to VARIABLE 19435# ":DIR[:DIR]" 19436# string "DIR[ DIR]" will be appended to VARIABLE 19437# "DIRP[:DIRP]::[DIRA:]DIRA" 19438# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19439# "DIRA[ DIRA]" will be appended to VARIABLE 19440# "DIR[:DIR]" 19441# VARIABLE will be replaced by "DIR[ DIR]" 19442func_munge_path_list () 19443{ 19444 case x$2 in 19445 x) 19446 ;; 19447 *:) 19448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19449 ;; 19450 x:*) 19451 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19452 ;; 19453 *::*) 19454 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19455 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19456 ;; 19457 *) 19458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19459 ;; 19460 esac 19461} 19462 19463 19464# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19465func_cc_basename () 19466{ 19467 for cc_temp in $*""; do 19468 case $cc_temp in 19469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19471 \-*) ;; 19472 *) break;; 19473 esac 19474 done 19475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19476} 19477 19478 19479# ### END FUNCTIONS SHARED WITH CONFIGURE 19480 19481_LT_EOF 19482 19483 case $host_os in 19484 aix3*) 19485 cat <<\_LT_EOF >> "$cfgfile" 19486# AIX sometimes has problems with the GCC collect2 program. For some 19487# reason, if we set the COLLECT_NAMES environment variable, the problems 19488# vanish in a puff of smoke. 19489if test set != "${COLLECT_NAMES+set}"; then 19490 COLLECT_NAMES= 19491 export COLLECT_NAMES 19492fi 19493_LT_EOF 19494 ;; 19495 esac 19496 19497 19498ltmain=$ac_aux_dir/ltmain.sh 19499 19500 19501 # We use sed instead of cat because bash on DJGPP gets confused if 19502 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19503 # text mode, it properly converts lines to CR/LF. This bash problem 19504 # is reportedly fixed, but why not run on old versions too? 19505 sed '$q' "$ltmain" >> "$cfgfile" \ 19506 || (rm -f "$cfgfile"; exit 1) 19507 19508 mv -f "$cfgfile" "$ofile" || 19509 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19510 chmod +x "$ofile" 19511 19512 19513 cat <<_LT_EOF >> "$ofile" 19514 19515# ### BEGIN LIBTOOL TAG CONFIG: CXX 19516 19517# The linker used to build libraries. 19518LD=$lt_LD_CXX 19519 19520# How to create reloadable object files. 19521reload_flag=$lt_reload_flag_CXX 19522reload_cmds=$lt_reload_cmds_CXX 19523 19524# Commands used to build an old-style archive. 19525old_archive_cmds=$lt_old_archive_cmds_CXX 19526 19527# A language specific compiler. 19528CC=$lt_compiler_CXX 19529 19530# Is the compiler the GNU compiler? 19531with_gcc=$GCC_CXX 19532 19533# Compiler flag to turn off builtin functions. 19534no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19535 19536# Additional compiler flags for building library objects. 19537pic_flag=$lt_lt_prog_compiler_pic_CXX 19538 19539# How to pass a linker flag through the compiler. 19540wl=$lt_lt_prog_compiler_wl_CXX 19541 19542# Compiler flag to prevent dynamic linking. 19543link_static_flag=$lt_lt_prog_compiler_static_CXX 19544 19545# Does compiler simultaneously support -c and -o options? 19546compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19547 19548# Whether or not to add -lc for building shared libraries. 19549build_libtool_need_lc=$archive_cmds_need_lc_CXX 19550 19551# Whether or not to disallow shared libs when runtime libs are static. 19552allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19553 19554# Compiler flag to allow reflexive dlopens. 19555export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19556 19557# Compiler flag to generate shared objects directly from archives. 19558whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19559 19560# Whether the compiler copes with passing no objects directly. 19561compiler_needs_object=$lt_compiler_needs_object_CXX 19562 19563# Create an old-style archive from a shared archive. 19564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19565 19566# Create a temporary old-style archive to link instead of a shared archive. 19567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19568 19569# Commands used to build a shared archive. 19570archive_cmds=$lt_archive_cmds_CXX 19571archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19572 19573# Commands used to build a loadable module if different from building 19574# a shared archive. 19575module_cmds=$lt_module_cmds_CXX 19576module_expsym_cmds=$lt_module_expsym_cmds_CXX 19577 19578# Whether we are building with GNU ld or not. 19579with_gnu_ld=$lt_with_gnu_ld_CXX 19580 19581# Flag that allows shared libraries with undefined symbols to be built. 19582allow_undefined_flag=$lt_allow_undefined_flag_CXX 19583 19584# Flag that enforces no undefined symbols. 19585no_undefined_flag=$lt_no_undefined_flag_CXX 19586 19587# Flag to hardcode \$libdir into a binary during linking. 19588# This must work even if \$libdir does not exist 19589hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19590 19591# Whether we need a single "-rpath" flag with a separated argument. 19592hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19593 19594# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19595# DIR into the resulting binary. 19596hardcode_direct=$hardcode_direct_CXX 19597 19598# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19599# DIR into the resulting binary and the resulting library dependency is 19600# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19601# library is relocated. 19602hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19603 19604# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19605# into the resulting binary. 19606hardcode_minus_L=$hardcode_minus_L_CXX 19607 19608# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19609# into the resulting binary. 19610hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19611 19612# Set to "yes" if building a shared library automatically hardcodes DIR 19613# into the library and all subsequent libraries and executables linked 19614# against it. 19615hardcode_automatic=$hardcode_automatic_CXX 19616 19617# Set to yes if linker adds runtime paths of dependent libraries 19618# to runtime path list. 19619inherit_rpath=$inherit_rpath_CXX 19620 19621# Whether libtool must link a program against all its dependency libraries. 19622link_all_deplibs=$link_all_deplibs_CXX 19623 19624# Set to "yes" if exported symbols are required. 19625always_export_symbols=$always_export_symbols_CXX 19626 19627# The commands to list exported symbols. 19628export_symbols_cmds=$lt_export_symbols_cmds_CXX 19629 19630# Symbols that should not be listed in the preloaded symbols. 19631exclude_expsyms=$lt_exclude_expsyms_CXX 19632 19633# Symbols that must always be exported. 19634include_expsyms=$lt_include_expsyms_CXX 19635 19636# Commands necessary for linking programs (against libraries) with templates. 19637prelink_cmds=$lt_prelink_cmds_CXX 19638 19639# Commands necessary for finishing linking programs. 19640postlink_cmds=$lt_postlink_cmds_CXX 19641 19642# Specify filename containing input files. 19643file_list_spec=$lt_file_list_spec_CXX 19644 19645# How to hardcode a shared library path into an executable. 19646hardcode_action=$hardcode_action_CXX 19647 19648# The directories searched by this compiler when creating a shared library. 19649compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19650 19651# Dependencies to place before and after the objects being linked to 19652# create a shared library. 19653predep_objects=$lt_predep_objects_CXX 19654postdep_objects=$lt_postdep_objects_CXX 19655predeps=$lt_predeps_CXX 19656postdeps=$lt_postdeps_CXX 19657 19658# The library search path used internally by the compiler when linking 19659# a shared library. 19660compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19661 19662# ### END LIBTOOL TAG CONFIG: CXX 19663_LT_EOF 19664 19665 ;; 19666 19667 esac 19668done # for ac_tag 19669 19670 19671as_fn_exit 0 19672_ACEOF 19673ac_clean_files=$ac_clean_files_save 19674 19675test $ac_write_fail = 0 || 19676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19677 19678 19679# configure is writing to config.log, and then calls config.status. 19680# config.status does its own redirection, appending to config.log. 19681# Unfortunately, on DOS this fails, as config.log is still kept open 19682# by configure, so config.status won't be able to write to it; its 19683# output is simply discarded. So we exec the FD to /dev/null, 19684# effectively closing config.log, so it can be properly (re)opened and 19685# appended to by config.status. When coming back to configure, we 19686# need to make the FD available again. 19687if test "$no_create" != yes; then 19688 ac_cs_success=: 19689 ac_config_status_args= 19690 test "$silent" = yes && 19691 ac_config_status_args="$ac_config_status_args --quiet" 19692 exec 5>/dev/null 19693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19694 exec 5>>config.log 19695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19696 # would make configure fail if this is the last instruction. 19697 $ac_cs_success || as_fn_exit 1 19698fi 19699if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19701$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19702fi 19703 19704