1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for libzen 0.4.39. 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments 397@%:@ must be portable across @S|@(()) 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 @S|@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=. 581LIB@&t@OBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libzen' 589PACKAGE_TARNAME='libzen' 590PACKAGE_VERSION='0.4.39' 591PACKAGE_STRING='libzen 0.4.39' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="../../../Source/ZenLib/Ztring.cpp" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIB@&t@OBJS 636ZenLib_LargeFiles 637ZenLib_wstring_missing 638ZenLib_Unicode 639ZenLib_LIBS_Static 640ZenLib_LIBS 641ZenLib_CXXFLAGS 642CXXCPP 643LT_SYS_LIBRARY_PATH 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653LN_S 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659EGREP 660GREP 661SED 662LIBTOOL 663OBJDUMP 664DLLTOOL 665AS 666host_os 667host_vendor 668host_cpu 669host 670CPP 671am__fastdepCXX_FALSE 672am__fastdepCXX_TRUE 673CXXDEPMODE 674ac_ct_CXX 675CXXFLAGS 676CXX 677am__fastdepCC_FALSE 678am__fastdepCC_TRUE 679CCDEPMODE 680am__nodep 681AMDEPBACKSLASH 682AMDEP_FALSE 683AMDEP_TRUE 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693AM_BACKSLASH 694AM_DEFAULT_VERBOSITY 695AM_DEFAULT_V 696AM_V 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720build_os 721build_vendor 722build_cpu 723build 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743runstatedir 744localstatedir 745sharedstatedir 746sysconfdir 747datadir 748datarootdir 749libexecdir 750sbindir 751bindir 752program_transform_name 753prefix 754exec_prefix 755PACKAGE_URL 756PACKAGE_BUGREPORT 757PACKAGE_STRING 758PACKAGE_VERSION 759PACKAGE_TARNAME 760PACKAGE_NAME 761PATH_SEPARATOR 762SHELL 763am__quote' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_dependency_tracking 769enable_static 770enable_shared 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_debug 778enable_gprof 779enable_universal_binary 780enable_arch_ppc 781enable_arch_ppc64 782enable_arch_i386 783enable_arch_x86_64 784enable_arch_armv7 785enable_arch_armv7s 786enable_arch_arm64 787enable_unicode 788enable_wstring_missing 789enable_stream_missing 790enable_large_files 791with_macosx_sdk 792with_macosx_version_min 793with_iphoneos_sdk 794with_iphoneos_version_min 795' 796 ac_precious_vars='build_alias 797host_alias 798target_alias 799CC 800CFLAGS 801LDFLAGS 802LIBS 803CPPFLAGS 804CXX 805CXXFLAGS 806CCC 807CPP 808LT_SYS_LIBRARY_PATH 809CXXCPP' 810 811 812# Initialize some variables set by options. 813ac_init_help= 814ac_init_version=false 815ac_unrecognized_opts= 816ac_unrecognized_sep= 817# The variables have the same names as the options, with 818# dashes changed to underlines. 819cache_file=/dev/null 820exec_prefix=NONE 821no_create= 822no_recursion= 823prefix=NONE 824program_prefix=NONE 825program_suffix=NONE 826program_transform_name=s,x,x, 827silent= 828site= 829srcdir= 830verbose= 831x_includes=NONE 832x_libraries=NONE 833 834# Installation directory options. 835# These are left unexpanded so users can "make install exec_prefix=/foo" 836# and all the variables that are supposed to be based on exec_prefix 837# by default will actually change. 838# Use braces instead of parens because sh, perl, etc. also accept them. 839# (The list follows the same order as the GNU Coding Standards.) 840bindir='${exec_prefix}/bin' 841sbindir='${exec_prefix}/sbin' 842libexecdir='${exec_prefix}/libexec' 843datarootdir='${prefix}/share' 844datadir='${datarootdir}' 845sysconfdir='${prefix}/etc' 846sharedstatedir='${prefix}/com' 847localstatedir='${prefix}/var' 848runstatedir='${localstatedir}/run' 849includedir='${prefix}/include' 850oldincludedir='/usr/include' 851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 852infodir='${datarootdir}/info' 853htmldir='${docdir}' 854dvidir='${docdir}' 855pdfdir='${docdir}' 856psdir='${docdir}' 857libdir='${exec_prefix}/lib' 858localedir='${datarootdir}/locale' 859mandir='${datarootdir}/man' 860 861ac_prev= 862ac_dashdash= 863for ac_option 864do 865 # If the previous option needs an argument, assign it. 866 if test -n "$ac_prev"; then 867 eval $ac_prev=\$ac_option 868 ac_prev= 869 continue 870 fi 871 872 case $ac_option in 873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 874 *=) ac_optarg= ;; 875 *) ac_optarg=yes ;; 876 esac 877 878 # Accept the important Cygnus configure options, so we can diagnose typos. 879 880 case $ac_dashdash$ac_option in 881 --) 882 ac_dashdash=yes ;; 883 884 -bindir | --bindir | --bindi | --bind | --bin | --bi) 885 ac_prev=bindir ;; 886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 887 bindir=$ac_optarg ;; 888 889 -build | --build | --buil | --bui | --bu) 890 ac_prev=build_alias ;; 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 892 build_alias=$ac_optarg ;; 893 894 -cache-file | --cache-file | --cache-fil | --cache-fi \ 895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 896 ac_prev=cache_file ;; 897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 899 cache_file=$ac_optarg ;; 900 901 --config-cache | -C) 902 cache_file=config.cache ;; 903 904 -datadir | --datadir | --datadi | --datad) 905 ac_prev=datadir ;; 906 -datadir=* | --datadir=* | --datadi=* | --datad=*) 907 datadir=$ac_optarg ;; 908 909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 910 | --dataroo | --dataro | --datar) 911 ac_prev=datarootdir ;; 912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 914 datarootdir=$ac_optarg ;; 915 916 -disable-* | --disable-*) 917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 918 # Reject names that are not valid shell variable names. 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 920 as_fn_error $? "invalid feature name: $ac_useropt" 921 ac_useropt_orig=$ac_useropt 922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 923 case $ac_user_opts in 924 *" 925"enable_$ac_useropt" 926"*) ;; 927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 928 ac_unrecognized_sep=', ';; 929 esac 930 eval enable_$ac_useropt=no ;; 931 932 -docdir | --docdir | --docdi | --doc | --do) 933 ac_prev=docdir ;; 934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 935 docdir=$ac_optarg ;; 936 937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 938 ac_prev=dvidir ;; 939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 940 dvidir=$ac_optarg ;; 941 942 -enable-* | --enable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=\$ac_optarg ;; 957 958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 960 | --exec | --exe | --ex) 961 ac_prev=exec_prefix ;; 962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 964 | --exec=* | --exe=* | --ex=*) 965 exec_prefix=$ac_optarg ;; 966 967 -gas | --gas | --ga | --g) 968 # Obsolete; use --with-gas. 969 with_gas=yes ;; 970 971 -help | --help | --hel | --he | -h) 972 ac_init_help=long ;; 973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 974 ac_init_help=recursive ;; 975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 976 ac_init_help=short ;; 977 978 -host | --host | --hos | --ho) 979 ac_prev=host_alias ;; 980 -host=* | --host=* | --hos=* | --ho=*) 981 host_alias=$ac_optarg ;; 982 983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 984 ac_prev=htmldir ;; 985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 986 | --ht=*) 987 htmldir=$ac_optarg ;; 988 989 -includedir | --includedir | --includedi | --included | --include \ 990 | --includ | --inclu | --incl | --inc) 991 ac_prev=includedir ;; 992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 993 | --includ=* | --inclu=* | --incl=* | --inc=*) 994 includedir=$ac_optarg ;; 995 996 -infodir | --infodir | --infodi | --infod | --info | --inf) 997 ac_prev=infodir ;; 998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 999 infodir=$ac_optarg ;; 1000 1001 -libdir | --libdir | --libdi | --libd) 1002 ac_prev=libdir ;; 1003 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1004 libdir=$ac_optarg ;; 1005 1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1007 | --libexe | --libex | --libe) 1008 ac_prev=libexecdir ;; 1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1010 | --libexe=* | --libex=* | --libe=*) 1011 libexecdir=$ac_optarg ;; 1012 1013 -localedir | --localedir | --localedi | --localed | --locale) 1014 ac_prev=localedir ;; 1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1016 localedir=$ac_optarg ;; 1017 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1019 | --localstate | --localstat | --localsta | --localst | --locals) 1020 ac_prev=localstatedir ;; 1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1023 localstatedir=$ac_optarg ;; 1024 1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1026 ac_prev=mandir ;; 1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1028 mandir=$ac_optarg ;; 1029 1030 -nfp | --nfp | --nf) 1031 # Obsolete; use --without-fp. 1032 with_fp=no ;; 1033 1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1035 | --no-cr | --no-c | -n) 1036 no_create=yes ;; 1037 1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1040 no_recursion=yes ;; 1041 1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1044 | --oldin | --oldi | --old | --ol | --o) 1045 ac_prev=oldincludedir ;; 1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1049 oldincludedir=$ac_optarg ;; 1050 1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1052 ac_prev=prefix ;; 1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1054 prefix=$ac_optarg ;; 1055 1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1057 | --program-pre | --program-pr | --program-p) 1058 ac_prev=program_prefix ;; 1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1061 program_prefix=$ac_optarg ;; 1062 1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1064 | --program-suf | --program-su | --program-s) 1065 ac_prev=program_suffix ;; 1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1068 program_suffix=$ac_optarg ;; 1069 1070 -program-transform-name | --program-transform-name \ 1071 | --program-transform-nam | --program-transform-na \ 1072 | --program-transform-n | --program-transform- \ 1073 | --program-transform | --program-transfor \ 1074 | --program-transfo | --program-transf \ 1075 | --program-trans | --program-tran \ 1076 | --progr-tra | --program-tr | --program-t) 1077 ac_prev=program_transform_name ;; 1078 -program-transform-name=* | --program-transform-name=* \ 1079 | --program-transform-nam=* | --program-transform-na=* \ 1080 | --program-transform-n=* | --program-transform-=* \ 1081 | --program-transform=* | --program-transfor=* \ 1082 | --program-transfo=* | --program-transf=* \ 1083 | --program-trans=* | --program-tran=* \ 1084 | --progr-tra=* | --program-tr=* | --program-t=*) 1085 program_transform_name=$ac_optarg ;; 1086 1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1088 ac_prev=pdfdir ;; 1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1090 pdfdir=$ac_optarg ;; 1091 1092 -psdir | --psdir | --psdi | --psd | --ps) 1093 ac_prev=psdir ;; 1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1095 psdir=$ac_optarg ;; 1096 1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1098 | -silent | --silent | --silen | --sile | --sil) 1099 silent=yes ;; 1100 1101 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1102 | --runstate | --runstat | --runsta | --runst | --runs \ 1103 | --run | --ru | --r) 1104 ac_prev=runstatedir ;; 1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1107 | --run=* | --ru=* | --r=*) 1108 runstatedir=$ac_optarg ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir runstatedir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures libzen 0.4.39 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 @<:@@S|@ac_default_prefix@:>@ 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 @<:@PREFIX@:>@ 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1401 --libdir=DIR object code libraries [EPREFIX/lib] 1402 --includedir=DIR C header files [PREFIX/include] 1403 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1406 --infodir=DIR info documentation [DATAROOTDIR/info] 1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1408 --mandir=DIR man documentation [DATAROOTDIR/man] 1409 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libzen@:>@ 1410 --htmldir=DIR html documentation [DOCDIR] 1411 --dvidir=DIR dvi documentation [DOCDIR] 1412 --pdfdir=DIR pdf documentation [DOCDIR] 1413 --psdir=DIR ps documentation [DOCDIR] 1414_ACEOF 1415 1416 cat <<\_ACEOF 1417 1418Program names: 1419 --program-prefix=PREFIX prepend PREFIX to installed program names 1420 --program-suffix=SUFFIX append SUFFIX to installed program names 1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1422 1423System types: 1424 --build=BUILD configure for building on BUILD [guessed] 1425 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1426_ACEOF 1427fi 1428 1429if test -n "$ac_init_help"; then 1430 case $ac_init_help in 1431 short | recursive ) echo "Configuration of libzen 0.4.39:";; 1432 esac 1433 cat <<\_ACEOF 1434 1435Optional Features: 1436 --disable-option-checking ignore unrecognized --enable/--with options 1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1439 --enable-silent-rules less verbose build output (undo: "make V=1") 1440 --disable-silent-rules verbose build output (undo: "make V=0") 1441 --enable-dependency-tracking 1442 do not reject slow dependency extractors 1443 --disable-dependency-tracking 1444 speeds up one-time build 1445 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@ 1446 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1447 --enable-fast-install@<:@=PKGS@:>@ 1448 optimize for fast installation @<:@default=yes@:>@ 1449 --disable-libtool-lock avoid locking (might break parallel builds) 1450 --enable-debug Enable full debug 1451 --enable-gprof Enable gprof log 1452 --enable-universal_binary 1453 Create Mac PPC/i386 Universal binary 1454 (--enable-arch-ppc, Create Mac PPC architecture) 1455 1456 (--enable-arch-ppc64, Create Mac PPC64 architecture) 1457 1458 (--enable-arch-i386, Create Mac/iPhone i386 architecture) 1459 1460 (--enable-arch-x86_64, Create Mac/iPhone x86_64 architecture) 1461 1462 (--enable-arch-armv7, Create iPhone ARMv7 architecture) 1463 1464 (--enable-arch-armv7s, Create iPhone ARMv7s architecture) 1465 1466 (--enable-arch-arm64, Create Mac/iPhone ARM64 architecture) 1467 1468 (--disable-unicode, Disable unicode) 1469 1470 (--enable-wstring_missing, Disable wstring support (old compilers)) 1471 1472 (--enable-stream_missing, Disable stream support (old compilers)) 1473 1474 (--disable-large_files, Disable large files support) 1475 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1481 both@:>@ 1482 --with-aix-soname=aix|svr4|both 1483 shared library versioning (aka "SONAME") variant to 1484 provide on AIX, @<:@default=aix@:>@. 1485 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1486 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1487 compiler's sysroot if not specified). 1488 (--with-macosx-sdk, Force the Mac SDK) 1489 1490 (--with-macosx-version-min, Force the Mac Version) 1491 1492 (--with-iphoneos-sdk, Force the iPhone SDK) 1493 1494 (--with-iphoneos-version-min, Force the iPhone Version) 1495 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 CXX C++ compiler command 1506 CXXFLAGS C++ compiler flags 1507 CPP C preprocessor 1508 LT_SYS_LIBRARY_PATH 1509 User-defined run-time library search path. 1510 CXXCPP C++ preprocessor 1511 1512Use these variables to override the choices made by `configure' or to help 1513it to find libraries and programs with nonstandard names/locations. 1514 1515Report bugs to the package provider. 1516_ACEOF 1517ac_status=$? 1518fi 1519 1520if test "$ac_init_help" = "recursive"; then 1521 # If there are subdirs, report their specific --help. 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1523 test -d "$ac_dir" || 1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1525 continue 1526 ac_builddir=. 1527 1528case "$ac_dir" in 1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1530*) 1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1532 # A ".." for each directory in $ac_dir_suffix. 1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1534 case $ac_top_builddir_sub in 1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1537 esac ;; 1538esac 1539ac_abs_top_builddir=$ac_pwd 1540ac_abs_builddir=$ac_pwd$ac_dir_suffix 1541# for backward compatibility: 1542ac_top_builddir=$ac_top_build_prefix 1543 1544case $srcdir in 1545 .) # We are building in place. 1546 ac_srcdir=. 1547 ac_top_srcdir=$ac_top_builddir_sub 1548 ac_abs_top_srcdir=$ac_pwd ;; 1549 [\\/]* | ?:[\\/]* ) # Absolute name. 1550 ac_srcdir=$srcdir$ac_dir_suffix; 1551 ac_top_srcdir=$srcdir 1552 ac_abs_top_srcdir=$srcdir ;; 1553 *) # Relative name. 1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1555 ac_top_srcdir=$ac_top_build_prefix$srcdir 1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1557esac 1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1559 1560 cd "$ac_dir" || { ac_status=$?; continue; } 1561 # Check for guested configure. 1562 if test -f "$ac_srcdir/configure.gnu"; then 1563 echo && 1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1565 elif test -f "$ac_srcdir/configure"; then 1566 echo && 1567 $SHELL "$ac_srcdir/configure" --help=recursive 1568 else 1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1570 fi || ac_status=$? 1571 cd "$ac_pwd" || { ac_status=$?; break; } 1572 done 1573fi 1574 1575test -n "$ac_init_help" && exit $ac_status 1576if $ac_init_version; then 1577 cat <<\_ACEOF 1578libzen configure 0.4.39 1579generated by GNU Autoconf 2.69 1580 1581Copyright (C) 2012 Free Software Foundation, Inc. 1582This configure script is free software; the Free Software Foundation 1583gives unlimited permission to copy, distribute and modify it. 1584_ACEOF 1585 exit 1586fi 1587 1588## ------------------------ ## 1589## Autoconf initialization. ## 1590## ------------------------ ## 1591 1592@%:@ ac_fn_c_try_compile LINENO 1593@%:@ -------------------------- 1594@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1595ac_fn_c_try_compile () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 rm -f conftest.$ac_objext 1599 if { { ac_try="$ac_compile" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_compile") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } && { 1615 test -z "$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 } && test -s conftest.$ac_objext; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} @%:@ ac_fn_c_try_compile 1629 1630@%:@ ac_fn_cxx_try_compile LINENO 1631@%:@ ---------------------------- 1632@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1633ac_fn_cxx_try_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 rm -f conftest.$ac_objext 1637 if { { ac_try="$ac_compile" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_compile") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { 1653 test -z "$ac_cxx_werror_flag" || 1654 test ! -s conftest.err 1655 } && test -s conftest.$ac_objext; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} @%:@ ac_fn_cxx_try_compile 1667 1668@%:@ ac_fn_c_try_cpp LINENO 1669@%:@ ---------------------- 1670@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1671ac_fn_c_try_cpp () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_cpp conftest.$ac_ext" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } > conftest.i && { 1690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 }; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699fi 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} @%:@ ac_fn_c_try_cpp 1704 1705@%:@ ac_fn_c_try_link LINENO 1706@%:@ ----------------------- 1707@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1708ac_fn_c_try_link () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 rm -f conftest.$ac_objext conftest$ac_exeext 1712 if { { ac_try="$ac_link" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_link") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { 1728 test -z "$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 } && test -s conftest$ac_exeext && { 1731 test "$cross_compiling" = yes || 1732 test -x conftest$ac_exeext 1733 }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1743 # interfere with the next link command; also delete a directory that is 1744 # left behind by Apple's compiler. We do this before executing the actions. 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} @%:@ ac_fn_c_try_link 1750 1751@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1752@%:@ ------------------------------------------------------- 1753@%:@ Tests whether HEADER exists and can be compiled using the include files in 1754@%:@ INCLUDES, setting the cache variable VAR accordingly. 1755ac_fn_c_check_header_compile () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766@%:@include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774fi 1775eval ac_res=\$$3 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777$as_echo "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780} @%:@ ac_fn_c_check_header_compile 1781 1782@%:@ ac_fn_c_try_run LINENO 1783@%:@ ---------------------- 1784@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1785@%:@ that executables *can* be run. 1786ac_fn_c_try_run () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1800 { { case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_try") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; }; }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: program exited with status $ac_status" >&5 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=$ac_status 1817fi 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} @%:@ ac_fn_c_try_run 1823 1824@%:@ ac_fn_c_check_func LINENO FUNC VAR 1825@%:@ ---------------------------------- 1826@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1827ac_fn_c_check_func () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839#define $2 innocuous_$2 1840 1841/* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846#ifdef __STDC__ 1847# include <limits.h> 1848#else 1849# include <assert.h> 1850#endif 1851 1852#undef $2 1853 1854/* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857#ifdef __cplusplus 1858extern "C" 1859#endif 1860char $2 (); 1861/* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864#if defined __stub_$2 || defined __stub___$2 1865choke me 1866#endif 1867 1868int 1869main () 1870{ 1871return $2 (); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878else 1879 eval "$3=no" 1880fi 1881rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} @%:@ ac_fn_c_check_func 1890 1891@%:@ ac_fn_cxx_try_cpp LINENO 1892@%:@ ------------------------ 1893@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_cpp () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 if { { ac_try="$ac_cpp conftest.$ac_ext" 1898case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903$as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1905 ac_status=$? 1906 if test -s conftest.err; then 1907 grep -v '^ *+' conftest.err >conftest.er1 1908 cat conftest.er1 >&5 1909 mv -f conftest.er1 conftest.err 1910 fi 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; } > conftest.i && { 1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1914 test ! -s conftest.err 1915 }; then : 1916 ac_retval=0 1917else 1918 $as_echo "$as_me: failed program was:" >&5 1919sed 's/^/| /' conftest.$ac_ext >&5 1920 1921 ac_retval=1 1922fi 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 as_fn_set_status $ac_retval 1925 1926} @%:@ ac_fn_cxx_try_cpp 1927 1928@%:@ ac_fn_cxx_try_link LINENO 1929@%:@ ------------------------- 1930@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1931ac_fn_cxx_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_cxx_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 test -x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} @%:@ ac_fn_cxx_try_link 1973 1974@%:@ ac_fn_cxx_check_func LINENO FUNC VAR 1975@%:@ ------------------------------------ 1976@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1977ac_fn_cxx_check_func () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1989#define $2 innocuous_$2 1990 1991/* System header to define __stub macros and hopefully few prototypes, 1992 which can conflict with char $2 (); below. 1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1994 <limits.h> exists even on freestanding compilers. */ 1995 1996#ifdef __STDC__ 1997# include <limits.h> 1998#else 1999# include <assert.h> 2000#endif 2001 2002#undef $2 2003 2004/* Override any GCC internal prototype to avoid an error. 2005 Use char because int might match the return type of a GCC 2006 builtin and then its argument prototype would still apply. */ 2007#ifdef __cplusplus 2008extern "C" 2009#endif 2010char $2 (); 2011/* The GNU C library defines this for functions which it implements 2012 to always fail with ENOSYS. Some functions are actually named 2013 something starting with __ and the normal name is an alias. */ 2014#if defined __stub_$2 || defined __stub___$2 2015choke me 2016#endif 2017 2018int 2019main () 2020{ 2021return $2 (); 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_cxx_try_link "$LINENO"; then : 2027 eval "$3=yes" 2028else 2029 eval "$3=no" 2030fi 2031rm -f core conftest.err conftest.$ac_objext \ 2032 conftest$ac_exeext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} @%:@ ac_fn_cxx_check_func 2040cat >config.log <<_ACEOF 2041This file contains any messages produced by compilers while 2042running configure, to aid debugging if configure makes a mistake. 2043 2044It was created by libzen $as_me 0.4.39, which was 2045generated by GNU Autoconf 2.69. Invocation command line was 2046 2047 $ $0 $@ 2048 2049_ACEOF 2050exec 5>>config.log 2051{ 2052cat <<_ASUNAME 2053## --------- ## 2054## Platform. ## 2055## --------- ## 2056 2057hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2058uname -m = `(uname -m) 2>/dev/null || echo unknown` 2059uname -r = `(uname -r) 2>/dev/null || echo unknown` 2060uname -s = `(uname -s) 2>/dev/null || echo unknown` 2061uname -v = `(uname -v) 2>/dev/null || echo unknown` 2062 2063/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2064/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2065 2066/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2067/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2068/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2069/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2070/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2071/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2072/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2073 2074_ASUNAME 2075 2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2077for as_dir in $PATH 2078do 2079 IFS=$as_save_IFS 2080 test -z "$as_dir" && as_dir=. 2081 $as_echo "PATH: $as_dir" 2082 done 2083IFS=$as_save_IFS 2084 2085} >&5 2086 2087cat >&5 <<_ACEOF 2088 2089 2090## ----------- ## 2091## Core tests. ## 2092## ----------- ## 2093 2094_ACEOF 2095 2096 2097# Keep a trace of the command line. 2098# Strip out --no-create and --no-recursion so they do not pile up. 2099# Strip out --silent because we don't want to record it for future runs. 2100# Also quote any args containing shell meta-characters. 2101# Make two passes to allow for proper duplicate-argument suppression. 2102ac_configure_args= 2103ac_configure_args0= 2104ac_configure_args1= 2105ac_must_keep_next=false 2106for ac_pass in 1 2 2107do 2108 for ac_arg 2109 do 2110 case $ac_arg in 2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2113 | -silent | --silent | --silen | --sile | --sil) 2114 continue ;; 2115 *\'*) 2116 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2117 esac 2118 case $ac_pass in 2119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2120 2) 2121 as_fn_append ac_configure_args1 " '$ac_arg'" 2122 if test $ac_must_keep_next = true; then 2123 ac_must_keep_next=false # Got value, back to normal. 2124 else 2125 case $ac_arg in 2126 *=* | --config-cache | -C | -disable-* | --disable-* \ 2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2129 | -with-* | --with-* | -without-* | --without-* | --x) 2130 case "$ac_configure_args0 " in 2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2132 esac 2133 ;; 2134 -* ) ac_must_keep_next=true ;; 2135 esac 2136 fi 2137 as_fn_append ac_configure_args " '$ac_arg'" 2138 ;; 2139 esac 2140 done 2141done 2142{ ac_configure_args0=; unset ac_configure_args0;} 2143{ ac_configure_args1=; unset ac_configure_args1;} 2144 2145# When interrupted or exit'd, cleanup temporary files, and complete 2146# config.log. We remove comments because anyway the quotes in there 2147# would cause problems or look ugly. 2148# WARNING: Use '\'' to represent an apostrophe within the trap. 2149# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2150trap 'exit_status=$? 2151 # Save into config.log some information that might help in debugging. 2152 { 2153 echo 2154 2155 $as_echo "## ---------------- ## 2156## Cache variables. ## 2157## ---------------- ##" 2158 echo 2159 # The following way of writing the cache mishandles newlines in values, 2160( 2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2162 eval ac_val=\$$ac_var 2163 case $ac_val in #( 2164 *${as_nl}*) 2165 case $ac_var in #( 2166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2167$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2168 esac 2169 case $ac_var in #( 2170 _ | IFS | as_nl) ;; #( 2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2172 *) { eval $ac_var=; unset $ac_var;} ;; 2173 esac ;; 2174 esac 2175 done 2176 (set) 2>&1 | 2177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2178 *${as_nl}ac_space=\ *) 2179 sed -n \ 2180 "s/'\''/'\''\\\\'\'''\''/g; 2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2182 ;; #( 2183 *) 2184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2185 ;; 2186 esac | 2187 sort 2188) 2189 echo 2190 2191 $as_echo "## ----------------- ## 2192## Output variables. ## 2193## ----------------- ##" 2194 echo 2195 for ac_var in $ac_subst_vars 2196 do 2197 eval ac_val=\$$ac_var 2198 case $ac_val in 2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2200 esac 2201 $as_echo "$ac_var='\''$ac_val'\''" 2202 done | sort 2203 echo 2204 2205 if test -n "$ac_subst_files"; then 2206 $as_echo "## ------------------- ## 2207## File substitutions. ## 2208## ------------------- ##" 2209 echo 2210 for ac_var in $ac_subst_files 2211 do 2212 eval ac_val=\$$ac_var 2213 case $ac_val in 2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2215 esac 2216 $as_echo "$ac_var='\''$ac_val'\''" 2217 done | sort 2218 echo 2219 fi 2220 2221 if test -s confdefs.h; then 2222 $as_echo "## ----------- ## 2223## confdefs.h. ## 2224## ----------- ##" 2225 echo 2226 cat confdefs.h 2227 echo 2228 fi 2229 test "$ac_signal" != 0 && 2230 $as_echo "$as_me: caught signal $ac_signal" 2231 $as_echo "$as_me: exit $exit_status" 2232 } >&5 2233 rm -f core *.core core.conftest.* && 2234 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2235 exit $exit_status 2236' 0 2237for ac_signal in 1 2 13 15; do 2238 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2239done 2240ac_signal=0 2241 2242# confdefs.h avoids OS command line length limits that DEFS can exceed. 2243rm -f -r conftest* confdefs.h 2244 2245$as_echo "/* confdefs.h */" > confdefs.h 2246 2247# Predefined preprocessor variables. 2248 2249cat >>confdefs.h <<_ACEOF 2250@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2251_ACEOF 2252 2253cat >>confdefs.h <<_ACEOF 2254@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270@%:@define PACKAGE_URL "$PACKAGE_URL" 2271_ACEOF 2272 2273 2274# Let the site file select an alternate cache file if it wants to. 2275# Prefer an explicitly selected file to automatically selected ones. 2276ac_site_file1=NONE 2277ac_site_file2=NONE 2278if test -n "$CONFIG_SITE"; then 2279 # We do not want a PATH search for config.site. 2280 case $CONFIG_SITE in @%:@(( 2281 -*) ac_site_file1=./$CONFIG_SITE;; 2282 */*) ac_site_file1=$CONFIG_SITE;; 2283 *) ac_site_file1=./$CONFIG_SITE;; 2284 esac 2285elif test "x$prefix" != xNONE; then 2286 ac_site_file1=$prefix/share/config.site 2287 ac_site_file2=$prefix/etc/config.site 2288else 2289 ac_site_file1=$ac_default_prefix/share/config.site 2290 ac_site_file2=$ac_default_prefix/etc/config.site 2291fi 2292for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2293do 2294 test "x$ac_site_file" = xNONE && continue 2295 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2297$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2298 sed 's/^/| /' "$ac_site_file" >&5 2299 . "$ac_site_file" \ 2300 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2302as_fn_error $? "failed to load site script $ac_site_file 2303See \`config.log' for more details" "$LINENO" 5; } 2304 fi 2305done 2306 2307if test -r "$cache_file"; then 2308 # Some versions of bash will fail to source /dev/null (special files 2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2312$as_echo "$as_me: loading cache $cache_file" >&6;} 2313 case $cache_file in 2314 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2315 *) . "./$cache_file";; 2316 esac 2317 fi 2318else 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2320$as_echo "$as_me: creating cache $cache_file" >&6;} 2321 >$cache_file 2322fi 2323 2324# Check that the precious variables saved in the cache have kept the same 2325# value. 2326ac_cache_corrupted=false 2327for ac_var in $ac_precious_vars; do 2328 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2329 eval ac_new_set=\$ac_env_${ac_var}_set 2330 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2331 eval ac_new_val=\$ac_env_${ac_var}_value 2332 case $ac_old_set,$ac_new_set in 2333 set,) 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2335$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2336 ac_cache_corrupted=: ;; 2337 ,set) 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2339$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2340 ac_cache_corrupted=: ;; 2341 ,);; 2342 *) 2343 if test "x$ac_old_val" != "x$ac_new_val"; then 2344 # differences in whitespace do not lead to failure. 2345 ac_old_val_w=`echo x $ac_old_val` 2346 ac_new_val_w=`echo x $ac_new_val` 2347 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2349$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2350 ac_cache_corrupted=: 2351 else 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2353$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2354 eval $ac_var=\$ac_old_val 2355 fi 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2357$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2359$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2360 fi;; 2361 esac 2362 # Pass precious variables to config.status. 2363 if test "$ac_new_set" = set; then 2364 case $ac_new_val in 2365 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2366 *) ac_arg=$ac_var=$ac_new_val ;; 2367 esac 2368 case " $ac_configure_args " in 2369 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2370 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2371 esac 2372 fi 2373done 2374if $ac_cache_corrupted; then 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2378$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2379 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2380fi 2381## -------------------- ## 2382## Main body of script. ## 2383## -------------------- ## 2384 2385ac_ext=c 2386ac_cpp='$CPP $CPPFLAGS' 2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2389ac_compiler_gnu=$ac_cv_c_compiler_gnu 2390 2391 2392 2393 2394 2395ac_aux_dir= 2396for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2397 if test -f "$ac_dir/install-sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install-sh -c" 2400 break 2401 elif test -f "$ac_dir/install.sh"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/install.sh -c" 2404 break 2405 elif test -f "$ac_dir/shtool"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/shtool install -c" 2408 break 2409 fi 2410done 2411if test -z "$ac_aux_dir"; then 2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2413fi 2414 2415# These three variables are undocumented and unsupported, 2416# and are intended to be withdrawn in a future Autoconf release. 2417# They can cause serious problems if a builder's source tree is in a directory 2418# whose full name contains unusual characters. 2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2422 2423 2424# Make sure we can run config.sub. 2425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2427 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2429$as_echo_n "checking build system type... " >&6; } 2430if ${ac_cv_build+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 ac_build_alias=$build_alias 2434test "x$ac_build_alias" = x && 2435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2436test "x$ac_build_alias" = x && 2437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2440 2441fi 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2443$as_echo "$ac_cv_build" >&6; } 2444case $ac_cv_build in 2445*-*-*) ;; 2446*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2447esac 2448build=$ac_cv_build 2449ac_save_IFS=$IFS; IFS='-' 2450set x $ac_cv_build 2451shift 2452build_cpu=$1 2453build_vendor=$2 2454shift; shift 2455# Remember, the first character of IFS is used to create $*, 2456# except with old shells: 2457build_os=$* 2458IFS=$ac_save_IFS 2459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2460 2461 2462am__api_version='1.16' 2463 2464# Find a good install program. We prefer a C program (faster), 2465# so one script is as good as another. But avoid the broken or 2466# incompatible versions: 2467# SysV /etc/install, /usr/sbin/install 2468# SunOS /usr/etc/install 2469# IRIX /sbin/install 2470# AIX /bin/install 2471# AmigaOS /C/install, which installs bootblocks on floppy discs 2472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2473# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2475# OS/2's system install, which has a completely different semantic 2476# ./install, which can be erroneously created by make from ./install.sh. 2477# Reject install programs that cannot install multiple files. 2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2479$as_echo_n "checking for a BSD-compatible install... " >&6; } 2480if test -z "$INSTALL"; then 2481if ${ac_cv_path_install+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 # Account for people who put trailing slashes in PATH elements. 2490case $as_dir/ in @%:@(( 2491 ./ | .// | /[cC]/* | \ 2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2494 /usr/ucb/* ) ;; 2495 *) 2496 # OSF1 and SCO ODT 3.0 have their own names for install. 2497 # Don't use installbsd from OSF since it installs stuff as root 2498 # by default. 2499 for ac_prog in ginstall scoinst install; do 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2502 if test $ac_prog = install && 2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2504 # AIX install. It has an incompatible calling convention. 2505 : 2506 elif test $ac_prog = install && 2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2508 # program-specific install script used by HP pwplus--don't use. 2509 : 2510 else 2511 rm -rf conftest.one conftest.two conftest.dir 2512 echo one > conftest.one 2513 echo two > conftest.two 2514 mkdir conftest.dir 2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2516 test -s conftest.one && test -s conftest.two && 2517 test -s conftest.dir/conftest.one && 2518 test -s conftest.dir/conftest.two 2519 then 2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2521 break 3 2522 fi 2523 fi 2524 fi 2525 done 2526 done 2527 ;; 2528esac 2529 2530 done 2531IFS=$as_save_IFS 2532 2533rm -rf conftest.one conftest.two conftest.dir 2534 2535fi 2536 if test "${ac_cv_path_install+set}" = set; then 2537 INSTALL=$ac_cv_path_install 2538 else 2539 # As a last resort, use the slow shell script. Don't cache a 2540 # value for INSTALL within a source directory, because that will 2541 # break other packages using the cache if that directory is 2542 # removed, or if the value is a relative name. 2543 INSTALL=$ac_install_sh 2544 fi 2545fi 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2547$as_echo "$INSTALL" >&6; } 2548 2549# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2550# It thinks the first close brace ends the variable substitution. 2551test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2552 2553test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2554 2555test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2556 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2558$as_echo_n "checking whether build environment is sane... " >&6; } 2559# Reject unsafe characters in $srcdir or the absolute working directory 2560# name. Accept space and tab only in the latter. 2561am_lf=' 2562' 2563case `pwd` in 2564 *[\\\"\#\$\&\'\`$am_lf]*) 2565 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2566esac 2567case $srcdir in 2568 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2569 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2570esac 2571 2572# Do 'set' in a subshell so we don't clobber the current shell's 2573# arguments. Must try -L first in case configure is actually a 2574# symlink; some systems play weird games with the mod time of symlinks 2575# (eg FreeBSD returns the mod time of the symlink's containing 2576# directory). 2577if ( 2578 am_has_slept=no 2579 for am_try in 1 2; do 2580 echo "timestamp, slept: $am_has_slept" > conftest.file 2581 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2582 if test "$*" = "X"; then 2583 # -L didn't work. 2584 set X `ls -t "$srcdir/configure" conftest.file` 2585 fi 2586 if test "$*" != "X $srcdir/configure conftest.file" \ 2587 && test "$*" != "X conftest.file $srcdir/configure"; then 2588 2589 # If neither matched, then we have a broken ls. This can happen 2590 # if, for instance, CONFIG_SHELL is bash and it inherits a 2591 # broken ls alias from the environment. This has actually 2592 # happened. Such a system could not be considered "sane". 2593 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2594 alias in your environment" "$LINENO" 5 2595 fi 2596 if test "$2" = conftest.file || test $am_try -eq 2; then 2597 break 2598 fi 2599 # Just in case. 2600 sleep 1 2601 am_has_slept=yes 2602 done 2603 test "$2" = conftest.file 2604 ) 2605then 2606 # Ok. 2607 : 2608else 2609 as_fn_error $? "newly created file is older than distributed files! 2610Check your system clock" "$LINENO" 5 2611fi 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2613$as_echo "yes" >&6; } 2614# If we didn't sleep, we still need to ensure time stamps of config.status and 2615# generated files are strictly newer. 2616am_sleep_pid= 2617if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2618 ( sleep 1 ) & 2619 am_sleep_pid=$! 2620fi 2621 2622rm -f conftest.file 2623 2624test "$program_prefix" != NONE && 2625 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2626# Use a double $ so make ignores it. 2627test "$program_suffix" != NONE && 2628 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2629# Double any \ or $. 2630# By default was `s,x,x', remove it if useless. 2631ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2632program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2633 2634# Expand $ac_aux_dir to an absolute path. 2635am_aux_dir=`cd "$ac_aux_dir" && pwd` 2636 2637if test x"${MISSING+set}" != xset; then 2638 case $am_aux_dir in 2639 *\ * | *\ *) 2640 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2641 *) 2642 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2643 esac 2644fi 2645# Use eval to expand $SHELL 2646if eval "$MISSING --is-lightweight"; then 2647 am_missing_run="$MISSING " 2648else 2649 am_missing_run= 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2651$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2652fi 2653 2654if test x"${install_sh+set}" != xset; then 2655 case $am_aux_dir in 2656 *\ * | *\ *) 2657 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2658 *) 2659 install_sh="\${SHELL} $am_aux_dir/install-sh" 2660 esac 2661fi 2662 2663# Installed binaries are usually stripped using 'strip' when the user 2664# run "make install-strip". However 'strip' might not be the right 2665# tool to use in cross-compilation environments, therefore Automake 2666# will honor the 'STRIP' environment variable to overrule this program. 2667if test "$cross_compiling" != no; then 2668 if test -n "$ac_tool_prefix"; then 2669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2670set dummy ${ac_tool_prefix}strip; ac_word=$2 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2672$as_echo_n "checking for $ac_word... " >&6; } 2673if ${ac_cv_prog_STRIP+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if test -n "$STRIP"; then 2677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2686 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691 done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696STRIP=$ac_cv_prog_STRIP 2697if test -n "$STRIP"; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2699$as_echo "$STRIP" >&6; } 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2702$as_echo "no" >&6; } 2703fi 2704 2705 2706fi 2707if test -z "$ac_cv_prog_STRIP"; then 2708 ac_ct_STRIP=$STRIP 2709 # Extract the first word of "strip", so it can be a program name with args. 2710set dummy strip; ac_word=$2 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$ac_ct_STRIP"; then 2717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_ac_ct_STRIP="strip" 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2737if test -n "$ac_ct_STRIP"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2739$as_echo "$ac_ct_STRIP" >&6; } 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 if test "x$ac_ct_STRIP" = x; then 2746 STRIP=":" 2747 else 2748 case $cross_compiling:$ac_tool_warned in 2749yes:) 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2752ac_tool_warned=yes ;; 2753esac 2754 STRIP=$ac_ct_STRIP 2755 fi 2756else 2757 STRIP="$ac_cv_prog_STRIP" 2758fi 2759 2760fi 2761INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2764$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2765if test -z "$MKDIR_P"; then 2766 if ${ac_cv_path_mkdir+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_prog in mkdir gmkdir; do 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2777 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2778 'mkdir (GNU coreutils) '* | \ 2779 'mkdir (coreutils) '* | \ 2780 'mkdir (fileutils) '4.1*) 2781 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2782 break 3;; 2783 esac 2784 done 2785 done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790 2791 test -d ./--version && rmdir ./--version 2792 if test "${ac_cv_path_mkdir+set}" = set; then 2793 MKDIR_P="$ac_cv_path_mkdir -p" 2794 else 2795 # As a last resort, use the slow shell script. Don't cache a 2796 # value for MKDIR_P within a source directory, because that will 2797 # break other packages using the cache if that directory is 2798 # removed, or if the value is a relative name. 2799 MKDIR_P="$ac_install_sh -d" 2800 fi 2801fi 2802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2803$as_echo "$MKDIR_P" >&6; } 2804 2805for ac_prog in gawk mawk nawk awk 2806do 2807 # Extract the first word of "$ac_prog", so it can be a program name with args. 2808set dummy $ac_prog; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_AWK+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$AWK"; then 2815 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 ac_cv_prog_AWK="$ac_prog" 2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829 done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834AWK=$ac_cv_prog_AWK 2835if test -n "$AWK"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2837$as_echo "$AWK" >&6; } 2838else 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 2844 test -n "$AWK" && break 2845done 2846 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2848$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2849set x ${MAKE-make} 2850ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2851if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 cat >conftest.make <<\_ACEOF 2855SHELL = /bin/sh 2856all: 2857 @echo '@@@%%%=$(MAKE)=@@@%%%' 2858_ACEOF 2859# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2860case `${MAKE-make} -f conftest.make 2>/dev/null` in 2861 *@@@%%%=?*=@@@%%%*) 2862 eval ac_cv_prog_make_${ac_make}_set=yes;; 2863 *) 2864 eval ac_cv_prog_make_${ac_make}_set=no;; 2865esac 2866rm -f conftest.make 2867fi 2868if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2870$as_echo "yes" >&6; } 2871 SET_MAKE= 2872else 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874$as_echo "no" >&6; } 2875 SET_MAKE="MAKE=${MAKE-make}" 2876fi 2877 2878rm -rf .tst 2>/dev/null 2879mkdir .tst 2>/dev/null 2880if test -d .tst; then 2881 am__leading_dot=. 2882else 2883 am__leading_dot=_ 2884fi 2885rmdir .tst 2>/dev/null 2886 2887@%:@ Check whether --enable-silent-rules was given. 2888if test "${enable_silent_rules+set}" = set; then : 2889 enableval=$enable_silent_rules; 2890fi 2891 2892case $enable_silent_rules in @%:@ ((( 2893 yes) AM_DEFAULT_VERBOSITY=0;; 2894 no) AM_DEFAULT_VERBOSITY=1;; 2895 *) AM_DEFAULT_VERBOSITY=1;; 2896esac 2897am_make=${MAKE-make} 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2899$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2900if ${am_cv_make_support_nested_variables+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902else 2903 if $as_echo 'TRUE=$(BAR$(V)) 2904BAR0=false 2905BAR1=true 2906V=1 2907am__doit: 2908 @$(TRUE) 2909.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2910 am_cv_make_support_nested_variables=yes 2911else 2912 am_cv_make_support_nested_variables=no 2913fi 2914fi 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2916$as_echo "$am_cv_make_support_nested_variables" >&6; } 2917if test $am_cv_make_support_nested_variables = yes; then 2918 AM_V='$(V)' 2919 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2920else 2921 AM_V=$AM_DEFAULT_VERBOSITY 2922 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2923fi 2924AM_BACKSLASH='\' 2925 2926if test "`cd $srcdir && pwd`" != "`pwd`"; then 2927 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2928 # is not polluted with repeated "-I." 2929 am__isrc=' -I$(srcdir)' 2930 # test to see if srcdir already configured 2931 if test -f $srcdir/config.status; then 2932 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2933 fi 2934fi 2935 2936# test whether we have cygpath 2937if test -z "$CYGPATH_W"; then 2938 if (cygpath --version) >/dev/null 2>/dev/null; then 2939 CYGPATH_W='cygpath -w' 2940 else 2941 CYGPATH_W=echo 2942 fi 2943fi 2944 2945 2946# Define the identity of the package. 2947 PACKAGE='libzen' 2948 VERSION='0.4.39' 2949 2950 2951cat >>confdefs.h <<_ACEOF 2952@%:@define PACKAGE "$PACKAGE" 2953_ACEOF 2954 2955 2956cat >>confdefs.h <<_ACEOF 2957@%:@define VERSION "$VERSION" 2958_ACEOF 2959 2960# Some tools Automake needs. 2961 2962ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2963 2964 2965AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2966 2967 2968AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2969 2970 2971AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2972 2973 2974MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2975 2976# For better backward compatibility. To be removed once Automake 1.9.x 2977# dies out for good. For more background, see: 2978# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2979# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2980mkdir_p='$(MKDIR_P)' 2981 2982# We need awk for the "check" target (and possibly the TAP driver). The 2983# system "awk" is bad on some platforms. 2984# Always define AMTAR for backward compatibility. Yes, it's still used 2985# in the wild :-( We should find a proper way to deprecate it ... 2986AMTAR='$${TAR-tar}' 2987 2988 2989# We'll loop over all known methods to create a tar archive until one works. 2990_am_tools='gnutar pax cpio none' 2991 2992am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2993 2994 2995 2996 2997 2998 2999# POSIX will say in a future version that running "rm -f" with no argument 3000# is OK; and we want to be able to make that assumption in our Makefile 3001# recipes. So use an aggressive probe to check that the usage we want is 3002# actually supported "in the wild" to an acceptable degree. 3003# See automake bug#10828. 3004# To make any issue more visible, cause the running configure to be aborted 3005# by default if the 'rm' program in use doesn't match our expectations; the 3006# user can still override this though. 3007if rm -f && rm -fr && rm -rf; then : OK; else 3008 cat >&2 <<'END' 3009Oops! 3010 3011Your 'rm' program seems unable to run without file operands specified 3012on the command line, even when the '-f' option is present. This is contrary 3013to the behaviour of most rm programs out there, and not conforming with 3014the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3015 3016Please tell bug-automake@gnu.org about your system, including the value 3017of your $PATH and any error possibly output before this message. This 3018can help us improve future automake versions. 3019 3020END 3021 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3022 echo 'Configuration will proceed anyway, since you have set the' >&2 3023 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3024 echo >&2 3025 else 3026 cat >&2 <<'END' 3027Aborting the configuration process, to ensure you take notice of the issue. 3028 3029You can download and install GNU coreutils to get an 'rm' implementation 3030that behaves properly: <https://www.gnu.org/software/coreutils/>. 3031 3032If you want to complete the configuration process using your problematic 3033'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3034to "yes", and re-run configure. 3035 3036END 3037 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3038 fi 3039fi 3040 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047if test -n "$ac_tool_prefix"; then 3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3049set dummy ${ac_tool_prefix}gcc; ac_word=$2 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051$as_echo_n "checking for $ac_word... " >&6; } 3052if ${ac_cv_prog_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -n "$CC"; then 3056 ac_cv_prog_CC="$CC" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070 done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075CC=$ac_cv_prog_CC 3076if test -n "$CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3078$as_echo "$CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085fi 3086if test -z "$ac_cv_prog_CC"; then 3087 ac_ct_CC=$CC 3088 # Extract the first word of "gcc", so it can be a program name with args. 3089set dummy gcc; ac_word=$2 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if ${ac_cv_prog_ac_ct_CC+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$ac_ct_CC"; then 3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_ac_ct_CC="gcc" 3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115ac_ct_CC=$ac_cv_prog_ac_ct_CC 3116if test -n "$ac_ct_CC"; then 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3118$as_echo "$ac_ct_CC" >&6; } 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 if test "x$ac_ct_CC" = x; then 3125 CC="" 3126 else 3127 case $cross_compiling:$ac_tool_warned in 3128yes:) 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3131ac_tool_warned=yes ;; 3132esac 3133 CC=$ac_ct_CC 3134 fi 3135else 3136 CC="$ac_cv_prog_CC" 3137fi 3138 3139if test -z "$CC"; then 3140 if test -n "$ac_tool_prefix"; then 3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3142set dummy ${ac_tool_prefix}cc; ac_word=$2 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144$as_echo_n "checking for $ac_word... " >&6; } 3145if ${ac_cv_prog_CC+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if test -n "$CC"; then 3149 ac_cv_prog_CC="$CC" # Let the user override the test. 3150else 3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3158 ac_cv_prog_CC="${ac_tool_prefix}cc" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162done 3163 done 3164IFS=$as_save_IFS 3165 3166fi 3167fi 3168CC=$ac_cv_prog_CC 3169if test -n "$CC"; then 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3171$as_echo "$CC" >&6; } 3172else 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174$as_echo "no" >&6; } 3175fi 3176 3177 3178 fi 3179fi 3180if test -z "$CC"; then 3181 # Extract the first word of "cc", so it can be a program name with args. 3182set dummy cc; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191 ac_prog_rejected=no 3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193for as_dir in $PATH 3194do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3200 ac_prog_rejected=yes 3201 continue 3202 fi 3203 ac_cv_prog_CC="cc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207done 3208 done 3209IFS=$as_save_IFS 3210 3211if test $ac_prog_rejected = yes; then 3212 # We found a bogon in the path, so make sure we never use it. 3213 set dummy $ac_cv_prog_CC 3214 shift 3215 if test $@%:@ != 0; then 3216 # We chose a different compiler from the bogus one. 3217 # However, it has the same basename, so the bogon will be chosen 3218 # first if we set CC to just the basename; use the full file name. 3219 shift 3220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3221 fi 3222fi 3223fi 3224fi 3225CC=$ac_cv_prog_CC 3226if test -n "$CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3228$as_echo "$CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 3235fi 3236if test -z "$CC"; then 3237 if test -n "$ac_tool_prefix"; then 3238 for ac_prog in cl.exe 3239 do 3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3241set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243$as_echo_n "checking for $ac_word... " >&6; } 3244if ${ac_cv_prog_CC+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 if test -n "$CC"; then 3248 ac_cv_prog_CC="$CC" # Let the user override the test. 3249else 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261done 3262 done 3263IFS=$as_save_IFS 3264 3265fi 3266fi 3267CC=$ac_cv_prog_CC 3268if test -n "$CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3270$as_echo "$CC" >&6; } 3271else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273$as_echo "no" >&6; } 3274fi 3275 3276 3277 test -n "$CC" && break 3278 done 3279fi 3280if test -z "$CC"; then 3281 ac_ct_CC=$CC 3282 for ac_prog in cl.exe 3283do 3284 # Extract the first word of "$ac_prog", so it can be a program name with args. 3285set dummy $ac_prog; ac_word=$2 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3287$as_echo_n "checking for $ac_word... " >&6; } 3288if ${ac_cv_prog_ac_ct_CC+:} false; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 if test -n "$ac_ct_CC"; then 3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3301 ac_cv_prog_ac_ct_CC="$ac_prog" 3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309fi 3310fi 3311ac_ct_CC=$ac_cv_prog_ac_ct_CC 3312if test -n "$ac_ct_CC"; then 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3314$as_echo "$ac_ct_CC" >&6; } 3315else 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318fi 3319 3320 3321 test -n "$ac_ct_CC" && break 3322done 3323 3324 if test "x$ac_ct_CC" = x; then 3325 CC="" 3326 else 3327 case $cross_compiling:$ac_tool_warned in 3328yes:) 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3331ac_tool_warned=yes ;; 3332esac 3333 CC=$ac_ct_CC 3334 fi 3335fi 3336 3337fi 3338 3339 3340test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342as_fn_error $? "no acceptable C compiler found in \$PATH 3343See \`config.log' for more details" "$LINENO" 5; } 3344 3345# Provide some information about the compiler. 3346$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3347set X $ac_compile 3348ac_compiler=$2 3349for ac_option in --version -v -V -qversion; do 3350 { { ac_try="$ac_compiler $ac_option >&5" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3358 ac_status=$? 3359 if test -s conftest.err; then 3360 sed '10a\ 3361... rest of stderr output deleted ... 3362 10q' conftest.err >conftest.er1 3363 cat conftest.er1 >&5 3364 fi 3365 rm -f conftest.er1 conftest.err 3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; } 3368done 3369 3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372 3373int 3374main () 3375{ 3376 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381ac_clean_files_save=$ac_clean_files 3382ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3383# Try to create an executable without -o first, disregard a.out. 3384# It will help us diagnose broken compilers, and finding out an intuition 3385# of exeext. 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3387$as_echo_n "checking whether the C compiler works... " >&6; } 3388ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3389 3390# The possible output files: 3391ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3392 3393ac_rmfiles= 3394for ac_file in $ac_files 3395do 3396 case $ac_file in 3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3399 esac 3400done 3401rm -f $ac_rmfiles 3402 3403if { { ac_try="$ac_link_default" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3409$as_echo "$ac_try_echo"; } >&5 3410 (eval "$ac_link_default") 2>&5 3411 ac_status=$? 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; }; then : 3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3415# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3416# in a Makefile. We should not override ac_cv_exeext if it was cached, 3417# so that the user can short-circuit this test for compilers unknown to 3418# Autoconf. 3419for ac_file in $ac_files '' 3420do 3421 test -f "$ac_file" || continue 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3424 ;; 3425 [ab].out ) 3426 # We found the default executable, but exeext='' is most 3427 # certainly right. 3428 break;; 3429 *.* ) 3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3431 then :; else 3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3433 fi 3434 # We set ac_cv_exeext here because the later test for it is not 3435 # safe: cross compilers may not add the suffix if given an `-o' 3436 # argument, so we may need to know it at that point already. 3437 # Even if this section looks crufty: it has the advantage of 3438 # actually working. 3439 break;; 3440 * ) 3441 break;; 3442 esac 3443done 3444test "$ac_cv_exeext" = no && ac_cv_exeext= 3445 3446else 3447 ac_file='' 3448fi 3449if test -z "$ac_file"; then : 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451$as_echo "no" >&6; } 3452$as_echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3457as_fn_error 77 "C compiler cannot create executables 3458See \`config.log' for more details" "$LINENO" 5; } 3459else 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3461$as_echo "yes" >&6; } 3462fi 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3464$as_echo_n "checking for C compiler default output file name... " >&6; } 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3466$as_echo "$ac_file" >&6; } 3467ac_exeext=$ac_cv_exeext 3468 3469rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3470ac_clean_files=$ac_clean_files_save 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3472$as_echo_n "checking for suffix of executables... " >&6; } 3473if { { ac_try="$ac_link" 3474case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3479$as_echo "$ac_try_echo"; } >&5 3480 (eval "$ac_link") 2>&5 3481 ac_status=$? 3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3483 test $ac_status = 0; }; then : 3484 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3485# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3486# work properly (i.e., refer to `conftest.exe'), while it won't with 3487# `rm'. 3488for ac_file in conftest.exe conftest conftest.*; do 3489 test -f "$ac_file" || continue 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3493 break;; 3494 * ) break;; 3495 esac 3496done 3497else 3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3500as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3501See \`config.log' for more details" "$LINENO" 5; } 3502fi 3503rm -f conftest conftest$ac_cv_exeext 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3505$as_echo "$ac_cv_exeext" >&6; } 3506 3507rm -f conftest.$ac_ext 3508EXEEXT=$ac_cv_exeext 3509ac_exeext=$EXEEXT 3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512@%:@include <stdio.h> 3513int 3514main () 3515{ 3516FILE *f = fopen ("conftest.out", "w"); 3517 return ferror (f) || fclose (f) != 0; 3518 3519 ; 3520 return 0; 3521} 3522_ACEOF 3523ac_clean_files="$ac_clean_files conftest.out" 3524# Check that the compiler produces executables we can run. If not, either 3525# the compiler is broken, or we cross compile. 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3527$as_echo_n "checking whether we are cross compiling... " >&6; } 3528if test "$cross_compiling" != yes; then 3529 { { ac_try="$ac_link" 3530case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533esac 3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3535$as_echo "$ac_try_echo"; } >&5 3536 (eval "$ac_link") 2>&5 3537 ac_status=$? 3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3539 test $ac_status = 0; } 3540 if { ac_try='./conftest$ac_cv_exeext' 3541 { { case "(($ac_try" in 3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3543 *) ac_try_echo=$ac_try;; 3544esac 3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3546$as_echo "$ac_try_echo"; } >&5 3547 (eval "$ac_try") 2>&5 3548 ac_status=$? 3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3550 test $ac_status = 0; }; }; then 3551 cross_compiling=no 3552 else 3553 if test "$cross_compiling" = maybe; then 3554 cross_compiling=yes 3555 else 3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "cannot run C compiled programs. 3559If you meant to cross compile, use \`--host'. 3560See \`config.log' for more details" "$LINENO" 5; } 3561 fi 3562 fi 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3565$as_echo "$cross_compiling" >&6; } 3566 3567rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3568ac_clean_files=$ac_clean_files_save 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3570$as_echo_n "checking for suffix of object files... " >&6; } 3571if ${ac_cv_objext+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3575/* end confdefs.h. */ 3576 3577int 3578main () 3579{ 3580 3581 ; 3582 return 0; 3583} 3584_ACEOF 3585rm -f conftest.o conftest.obj 3586if { { ac_try="$ac_compile" 3587case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592$as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_compile") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; then : 3597 for ac_file in conftest.o conftest.obj conftest.*; do 3598 test -f "$ac_file" || continue; 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3602 break;; 3603 esac 3604done 3605else 3606 $as_echo "$as_me: failed program was:" >&5 3607sed 's/^/| /' conftest.$ac_ext >&5 3608 3609{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3611as_fn_error $? "cannot compute suffix of object files: cannot compile 3612See \`config.log' for more details" "$LINENO" 5; } 3613fi 3614rm -f conftest.$ac_cv_objext conftest.$ac_ext 3615fi 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3617$as_echo "$ac_cv_objext" >&6; } 3618OBJEXT=$ac_cv_objext 3619ac_objext=$OBJEXT 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3622if ${ac_cv_c_compiler_gnu+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627 3628int 3629main () 3630{ 3631#ifndef __GNUC__ 3632 choke me 3633#endif 3634 3635 ; 3636 return 0; 3637} 3638_ACEOF 3639if ac_fn_c_try_compile "$LINENO"; then : 3640 ac_compiler_gnu=yes 3641else 3642 ac_compiler_gnu=no 3643fi 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645ac_cv_c_compiler_gnu=$ac_compiler_gnu 3646 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3649$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3650if test $ac_compiler_gnu = yes; then 3651 GCC=yes 3652else 3653 GCC= 3654fi 3655ac_test_CFLAGS=${CFLAGS+set} 3656ac_save_CFLAGS=$CFLAGS 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3658$as_echo_n "checking whether $CC accepts -g... " >&6; } 3659if ${ac_cv_prog_cc_g+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 ac_save_c_werror_flag=$ac_c_werror_flag 3663 ac_c_werror_flag=yes 3664 ac_cv_prog_cc_g=no 3665 CFLAGS="-g" 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_g=yes 3679else 3680 CFLAGS="" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 3694else 3695 ac_c_werror_flag=$ac_save_c_werror_flag 3696 CFLAGS="-g" 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708if ac_fn_c_try_compile "$LINENO"; then : 3709 ac_cv_prog_cc_g=yes 3710fi 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716 ac_c_werror_flag=$ac_save_c_werror_flag 3717fi 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3719$as_echo "$ac_cv_prog_cc_g" >&6; } 3720if test "$ac_test_CFLAGS" = set; then 3721 CFLAGS=$ac_save_CFLAGS 3722elif test $ac_cv_prog_cc_g = yes; then 3723 if test "$GCC" = yes; then 3724 CFLAGS="-g -O2" 3725 else 3726 CFLAGS="-g" 3727 fi 3728else 3729 if test "$GCC" = yes; then 3730 CFLAGS="-O2" 3731 else 3732 CFLAGS= 3733 fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3737if ${ac_cv_prog_cc_c89+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 ac_cv_prog_cc_c89=no 3741ac_save_CC=$CC 3742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744#include <stdarg.h> 3745#include <stdio.h> 3746struct stat; 3747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3748struct buf { int x; }; 3749FILE * (*rcsopen) (struct buf *, struct stat *, int); 3750static char *e (p, i) 3751 char **p; 3752 int i; 3753{ 3754 return p[i]; 3755} 3756static char *f (char * (*g) (char **, int), char **p, ...) 3757{ 3758 char *s; 3759 va_list v; 3760 va_start (v,p); 3761 s = g (p, va_arg (v,int)); 3762 va_end (v); 3763 return s; 3764} 3765 3766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3767 function prototypes and stuff, but not '\xHH' hex character constants. 3768 These don't provoke an error unfortunately, instead are silently treated 3769 as 'x'. The following induces an error, until -std is added to get 3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3771 array size at least. It's necessary to write '\x00'==0 to get something 3772 that's true only with -std. */ 3773int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3774 3775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3776 inside strings and character constants. */ 3777#define FOO(x) 'x' 3778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3779 3780int test (int i, double x); 3781struct s1 {int (*f) (int a);}; 3782struct s2 {int (*f) (double a);}; 3783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3784int argc; 3785char **argv; 3786int 3787main () 3788{ 3789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3796do 3797 CC="$ac_save_CC $ac_arg" 3798 if ac_fn_c_try_compile "$LINENO"; then : 3799 ac_cv_prog_cc_c89=$ac_arg 3800fi 3801rm -f core conftest.err conftest.$ac_objext 3802 test "x$ac_cv_prog_cc_c89" != "xno" && break 3803done 3804rm -f conftest.$ac_ext 3805CC=$ac_save_CC 3806 3807fi 3808# AC_CACHE_VAL 3809case "x$ac_cv_prog_cc_c89" in 3810 x) 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3812$as_echo "none needed" >&6; } ;; 3813 xno) 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3815$as_echo "unsupported" >&6; } ;; 3816 *) 3817 CC="$CC $ac_cv_prog_cc_c89" 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3820esac 3821if test "x$ac_cv_prog_cc_c89" != xno; then : 3822 3823fi 3824 3825ac_ext=c 3826ac_cpp='$CPP $CPPFLAGS' 3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3829ac_compiler_gnu=$ac_cv_c_compiler_gnu 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3837$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3838if ${am_cv_prog_cc_c_o+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852 # Make sure it works both with $CC and with simple cc. 3853 # Following AC_PROG_CC_C_O, we do the test twice because some 3854 # compilers refuse to overwrite an existing .o file with -o, 3855 # though they will create one. 3856 am_cv_prog_cc_c_o=yes 3857 for am_i in 1 2; do 3858 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3859 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } \ 3863 && test -f conftest2.$ac_objext; then 3864 : OK 3865 else 3866 am_cv_prog_cc_c_o=no 3867 break 3868 fi 3869 done 3870 rm -f core conftest* 3871 unset am_i 3872fi 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3874$as_echo "$am_cv_prog_cc_c_o" >&6; } 3875if test "$am_cv_prog_cc_c_o" != yes; then 3876 # Losing compiler, so override with the script. 3877 # FIXME: It is wrong to rewrite CC. 3878 # But if we don't then we get into trouble of one sort or another. 3879 # A longer-term fix would be to have automake use am__CC in this case, 3880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3881 CC="$am_aux_dir/compile $CC" 3882fi 3883ac_ext=c 3884ac_cpp='$CPP $CPPFLAGS' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 3889DEPDIR="${am__leading_dot}deps" 3890 3891ac_config_commands="$ac_config_commands depfiles" 3892 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3894$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3895cat > confinc.mk << 'END' 3896am__doit: 3897 @echo this is the am__doit target >confinc.out 3898.PHONY: am__doit 3899END 3900am__include="#" 3901am__quote= 3902# BSD make does it like this. 3903echo '.include "confinc.mk" # ignored' > confmf.BSD 3904# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3905echo 'include confinc.mk # ignored' > confmf.GNU 3906_am_result=no 3907for s in GNU BSD; do 3908 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3909 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3910 ac_status=$? 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } 3913 case $?:`cat confinc.out 2>/dev/null` in @%:@( 3914 '0:this is the am__doit target') : 3915 case $s in @%:@( 3916 BSD) : 3917 am__include='.include' am__quote='"' ;; @%:@( 3918 *) : 3919 am__include='include' am__quote='' ;; 3920esac ;; @%:@( 3921 *) : 3922 ;; 3923esac 3924 if test "$am__include" != "#"; then 3925 _am_result="yes ($s style)" 3926 break 3927 fi 3928done 3929rm -f confinc.* confmf.* 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3931$as_echo "${_am_result}" >&6; } 3932 3933@%:@ Check whether --enable-dependency-tracking was given. 3934if test "${enable_dependency_tracking+set}" = set; then : 3935 enableval=$enable_dependency_tracking; 3936fi 3937 3938if test "x$enable_dependency_tracking" != xno; then 3939 am_depcomp="$ac_aux_dir/depcomp" 3940 AMDEPBACKSLASH='\' 3941 am__nodep='_no' 3942fi 3943 if test "x$enable_dependency_tracking" != xno; then 3944 AMDEP_TRUE= 3945 AMDEP_FALSE='#' 3946else 3947 AMDEP_TRUE='#' 3948 AMDEP_FALSE= 3949fi 3950 3951 3952 3953depcc="$CC" am_compiler_list= 3954 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3956$as_echo_n "checking dependency style of $depcc... " >&6; } 3957if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3961 # We make a subdir and do the tests there. Otherwise we can end up 3962 # making bogus files that we don't know about and never remove. For 3963 # instance it was reported that on HP-UX the gcc test will end up 3964 # making a dummy file named 'D' -- because '-MD' means "put the output 3965 # in D". 3966 rm -rf conftest.dir 3967 mkdir conftest.dir 3968 # Copy depcomp to subdir because otherwise we won't find it if we're 3969 # using a relative directory. 3970 cp "$am_depcomp" conftest.dir 3971 cd conftest.dir 3972 # We will build objects and dependencies in a subdirectory because 3973 # it helps to detect inapplicable dependency modes. For instance 3974 # both Tru64's cc and ICC support -MD to output dependencies as a 3975 # side effect of compilation, but ICC will put the dependencies in 3976 # the current directory while Tru64 will put them in the object 3977 # directory. 3978 mkdir sub 3979 3980 am_cv_CC_dependencies_compiler_type=none 3981 if test "$am_compiler_list" = ""; then 3982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3983 fi 3984 am__universal=false 3985 case " $depcc " in #( 3986 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3987 esac 3988 3989 for depmode in $am_compiler_list; do 3990 # Setup a source with many dependencies, because some compilers 3991 # like to wrap large dependency lists on column 80 (with \), and 3992 # we should not choose a depcomp mode which is confused by this. 3993 # 3994 # We need to recreate these files for each test, as the compiler may 3995 # overwrite some of them when testing with obscure command lines. 3996 # This happens at least with the AIX C compiler. 3997 : > sub/conftest.c 3998 for i in 1 2 3 4 5 6; do 3999 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4000 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4001 # Solaris 10 /bin/sh. 4002 echo '/* dummy */' > sub/conftst$i.h 4003 done 4004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4005 4006 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4007 # mode. It turns out that the SunPro C++ compiler does not properly 4008 # handle '-M -o', and we need to detect this. Also, some Intel 4009 # versions had trouble with output in subdirs. 4010 am__obj=sub/conftest.${OBJEXT-o} 4011 am__minus_obj="-o $am__obj" 4012 case $depmode in 4013 gcc) 4014 # This depmode causes a compiler race in universal mode. 4015 test "$am__universal" = false || continue 4016 ;; 4017 nosideeffect) 4018 # After this tag, mechanisms are not by side-effect, so they'll 4019 # only be used when explicitly requested. 4020 if test "x$enable_dependency_tracking" = xyes; then 4021 continue 4022 else 4023 break 4024 fi 4025 ;; 4026 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4027 # This compiler won't grok '-c -o', but also, the minuso test has 4028 # not run yet. These depmodes are late enough in the game, and 4029 # so weak that their functioning should not be impacted. 4030 am__obj=conftest.${OBJEXT-o} 4031 am__minus_obj= 4032 ;; 4033 none) break ;; 4034 esac 4035 if depmode=$depmode \ 4036 source=sub/conftest.c object=$am__obj \ 4037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4039 >/dev/null 2>conftest.err && 4040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4044 # icc doesn't choke on unknown options, it will just issue warnings 4045 # or remarks (even with -Werror). So we grep stderr for any message 4046 # that says an option was ignored or not supported. 4047 # When given -MP, icc 7.0 and 7.1 complain thusly: 4048 # icc: Command line warning: ignoring option '-M'; no argument required 4049 # The diagnosis changed in icc 8.0: 4050 # icc: Command line remark: option '-MP' not supported 4051 if (grep 'ignoring option' conftest.err || 4052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4053 am_cv_CC_dependencies_compiler_type=$depmode 4054 break 4055 fi 4056 fi 4057 done 4058 4059 cd .. 4060 rm -rf conftest.dir 4061else 4062 am_cv_CC_dependencies_compiler_type=none 4063fi 4064 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4067$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4068CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4069 4070 if 4071 test "x$enable_dependency_tracking" != xno \ 4072 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4073 am__fastdepCC_TRUE= 4074 am__fastdepCC_FALSE='#' 4075else 4076 am__fastdepCC_TRUE='#' 4077 am__fastdepCC_FALSE= 4078fi 4079 4080 4081ac_ext=cpp 4082ac_cpp='$CXXCPP $CPPFLAGS' 4083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4086if test -z "$CXX"; then 4087 if test -n "$CCC"; then 4088 CXX=$CCC 4089 else 4090 if test -n "$ac_tool_prefix"; then 4091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4092 do 4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096$as_echo_n "checking for $ac_word... " >&6; } 4097if ${ac_cv_prog_CXX+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if test -n "$CXX"; then 4101 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4102else 4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114done 4115 done 4116IFS=$as_save_IFS 4117 4118fi 4119fi 4120CXX=$ac_cv_prog_CXX 4121if test -n "$CXX"; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4123$as_echo "$CXX" >&6; } 4124else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127fi 4128 4129 4130 test -n "$CXX" && break 4131 done 4132fi 4133if test -z "$CXX"; then 4134 ac_ct_CXX=$CXX 4135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4136do 4137 # Extract the first word of "$ac_prog", so it can be a program name with args. 4138set dummy $ac_prog; ac_word=$2 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140$as_echo_n "checking for $ac_word... " >&6; } 4141if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -n "$ac_ct_CXX"; then 4145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4154 ac_cv_prog_ac_ct_CXX="$ac_prog" 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4165if test -n "$ac_ct_CXX"; then 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4167$as_echo "$ac_ct_CXX" >&6; } 4168else 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170$as_echo "no" >&6; } 4171fi 4172 4173 4174 test -n "$ac_ct_CXX" && break 4175done 4176 4177 if test "x$ac_ct_CXX" = x; then 4178 CXX="g++" 4179 else 4180 case $cross_compiling:$ac_tool_warned in 4181yes:) 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4184ac_tool_warned=yes ;; 4185esac 4186 CXX=$ac_ct_CXX 4187 fi 4188fi 4189 4190 fi 4191fi 4192# Provide some information about the compiler. 4193$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4194set X $ac_compile 4195ac_compiler=$2 4196for ac_option in --version -v -V -qversion; do 4197 { { ac_try="$ac_compiler $ac_option >&5" 4198case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4203$as_echo "$ac_try_echo"; } >&5 4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4205 ac_status=$? 4206 if test -s conftest.err; then 4207 sed '10a\ 4208... rest of stderr output deleted ... 4209 10q' conftest.err >conftest.er1 4210 cat conftest.er1 >&5 4211 fi 4212 rm -f conftest.er1 conftest.err 4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4214 test $ac_status = 0; } 4215done 4216 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4218$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4219if ${ac_cv_cxx_compiler_gnu+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224 4225int 4226main () 4227{ 4228#ifndef __GNUC__ 4229 choke me 4230#endif 4231 4232 ; 4233 return 0; 4234} 4235_ACEOF 4236if ac_fn_cxx_try_compile "$LINENO"; then : 4237 ac_compiler_gnu=yes 4238else 4239 ac_compiler_gnu=no 4240fi 4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4242ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4243 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4246$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4247if test $ac_compiler_gnu = yes; then 4248 GXX=yes 4249else 4250 GXX= 4251fi 4252ac_test_CXXFLAGS=${CXXFLAGS+set} 4253ac_save_CXXFLAGS=$CXXFLAGS 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4255$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4256if ${ac_cv_prog_cxx_g+:} false; then : 4257 $as_echo_n "(cached) " >&6 4258else 4259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4260 ac_cxx_werror_flag=yes 4261 ac_cv_prog_cxx_g=no 4262 CXXFLAGS="-g" 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266int 4267main () 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274if ac_fn_cxx_try_compile "$LINENO"; then : 4275 ac_cv_prog_cxx_g=yes 4276else 4277 CXXFLAGS="" 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280 4281int 4282main () 4283{ 4284 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289if ac_fn_cxx_try_compile "$LINENO"; then : 4290 4291else 4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4293 CXXFLAGS="-g" 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296 4297int 4298main () 4299{ 4300 4301 ; 4302 return 0; 4303} 4304_ACEOF 4305if ac_fn_cxx_try_compile "$LINENO"; then : 4306 ac_cv_prog_cxx_g=yes 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4309fi 4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4311fi 4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4316$as_echo "$ac_cv_prog_cxx_g" >&6; } 4317if test "$ac_test_CXXFLAGS" = set; then 4318 CXXFLAGS=$ac_save_CXXFLAGS 4319elif test $ac_cv_prog_cxx_g = yes; then 4320 if test "$GXX" = yes; then 4321 CXXFLAGS="-g -O2" 4322 else 4323 CXXFLAGS="-g" 4324 fi 4325else 4326 if test "$GXX" = yes; then 4327 CXXFLAGS="-O2" 4328 else 4329 CXXFLAGS= 4330 fi 4331fi 4332ac_ext=c 4333ac_cpp='$CPP $CPPFLAGS' 4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336ac_compiler_gnu=$ac_cv_c_compiler_gnu 4337 4338depcc="$CXX" am_compiler_list= 4339 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4341$as_echo_n "checking dependency style of $depcc... " >&6; } 4342if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4346 # We make a subdir and do the tests there. Otherwise we can end up 4347 # making bogus files that we don't know about and never remove. For 4348 # instance it was reported that on HP-UX the gcc test will end up 4349 # making a dummy file named 'D' -- because '-MD' means "put the output 4350 # in D". 4351 rm -rf conftest.dir 4352 mkdir conftest.dir 4353 # Copy depcomp to subdir because otherwise we won't find it if we're 4354 # using a relative directory. 4355 cp "$am_depcomp" conftest.dir 4356 cd conftest.dir 4357 # We will build objects and dependencies in a subdirectory because 4358 # it helps to detect inapplicable dependency modes. For instance 4359 # both Tru64's cc and ICC support -MD to output dependencies as a 4360 # side effect of compilation, but ICC will put the dependencies in 4361 # the current directory while Tru64 will put them in the object 4362 # directory. 4363 mkdir sub 4364 4365 am_cv_CXX_dependencies_compiler_type=none 4366 if test "$am_compiler_list" = ""; then 4367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4368 fi 4369 am__universal=false 4370 case " $depcc " in #( 4371 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4372 esac 4373 4374 for depmode in $am_compiler_list; do 4375 # Setup a source with many dependencies, because some compilers 4376 # like to wrap large dependency lists on column 80 (with \), and 4377 # we should not choose a depcomp mode which is confused by this. 4378 # 4379 # We need to recreate these files for each test, as the compiler may 4380 # overwrite some of them when testing with obscure command lines. 4381 # This happens at least with the AIX C compiler. 4382 : > sub/conftest.c 4383 for i in 1 2 3 4 5 6; do 4384 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4385 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4386 # Solaris 10 /bin/sh. 4387 echo '/* dummy */' > sub/conftst$i.h 4388 done 4389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4390 4391 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4392 # mode. It turns out that the SunPro C++ compiler does not properly 4393 # handle '-M -o', and we need to detect this. Also, some Intel 4394 # versions had trouble with output in subdirs. 4395 am__obj=sub/conftest.${OBJEXT-o} 4396 am__minus_obj="-o $am__obj" 4397 case $depmode in 4398 gcc) 4399 # This depmode causes a compiler race in universal mode. 4400 test "$am__universal" = false || continue 4401 ;; 4402 nosideeffect) 4403 # After this tag, mechanisms are not by side-effect, so they'll 4404 # only be used when explicitly requested. 4405 if test "x$enable_dependency_tracking" = xyes; then 4406 continue 4407 else 4408 break 4409 fi 4410 ;; 4411 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4412 # This compiler won't grok '-c -o', but also, the minuso test has 4413 # not run yet. These depmodes are late enough in the game, and 4414 # so weak that their functioning should not be impacted. 4415 am__obj=conftest.${OBJEXT-o} 4416 am__minus_obj= 4417 ;; 4418 none) break ;; 4419 esac 4420 if depmode=$depmode \ 4421 source=sub/conftest.c object=$am__obj \ 4422 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4423 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4424 >/dev/null 2>conftest.err && 4425 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4426 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4427 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4428 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4429 # icc doesn't choke on unknown options, it will just issue warnings 4430 # or remarks (even with -Werror). So we grep stderr for any message 4431 # that says an option was ignored or not supported. 4432 # When given -MP, icc 7.0 and 7.1 complain thusly: 4433 # icc: Command line warning: ignoring option '-M'; no argument required 4434 # The diagnosis changed in icc 8.0: 4435 # icc: Command line remark: option '-MP' not supported 4436 if (grep 'ignoring option' conftest.err || 4437 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4438 am_cv_CXX_dependencies_compiler_type=$depmode 4439 break 4440 fi 4441 fi 4442 done 4443 4444 cd .. 4445 rm -rf conftest.dir 4446else 4447 am_cv_CXX_dependencies_compiler_type=none 4448fi 4449 4450fi 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4452$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4453CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4454 4455 if 4456 test "x$enable_dependency_tracking" != xno \ 4457 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4458 am__fastdepCXX_TRUE= 4459 am__fastdepCXX_FALSE='#' 4460else 4461 am__fastdepCXX_TRUE='#' 4462 am__fastdepCXX_FALSE= 4463fi 4464 4465 4466ac_ext=c 4467ac_cpp='$CPP $CPPFLAGS' 4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4470ac_compiler_gnu=$ac_cv_c_compiler_gnu 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4472$as_echo_n "checking how to run the C preprocessor... " >&6; } 4473# On Suns, sometimes $CPP names a directory. 4474if test -n "$CPP" && test -d "$CPP"; then 4475 CPP= 4476fi 4477if test -z "$CPP"; then 4478 if ${ac_cv_prog_CPP+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 # Double quotes because CPP needs to be expanded 4482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4483 do 4484 ac_preproc_ok=false 4485for ac_c_preproc_warn_flag in '' yes 4486do 4487 # Use a header file that comes with gcc, so configuring glibc 4488 # with a fresh cross-compiler works. 4489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4490 # <limits.h> exists even on freestanding compilers. 4491 # On the NeXT, cc -E runs the code through the compiler's parser, 4492 # not just through cpp. "Syntax error" is here to catch this case. 4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494/* end confdefs.h. */ 4495@%:@ifdef __STDC__ 4496@%:@ include <limits.h> 4497@%:@else 4498@%:@ include <assert.h> 4499@%:@endif 4500 Syntax error 4501_ACEOF 4502if ac_fn_c_try_cpp "$LINENO"; then : 4503 4504else 4505 # Broken: fails on valid input. 4506continue 4507fi 4508rm -f conftest.err conftest.i conftest.$ac_ext 4509 4510 # OK, works on sane cases. Now check whether nonexistent headers 4511 # can be detected and how. 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513/* end confdefs.h. */ 4514@%:@include <ac_nonexistent.h> 4515_ACEOF 4516if ac_fn_c_try_cpp "$LINENO"; then : 4517 # Broken: success on invalid input. 4518continue 4519else 4520 # Passes both tests. 4521ac_preproc_ok=: 4522break 4523fi 4524rm -f conftest.err conftest.i conftest.$ac_ext 4525 4526done 4527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4528rm -f conftest.i conftest.err conftest.$ac_ext 4529if $ac_preproc_ok; then : 4530 break 4531fi 4532 4533 done 4534 ac_cv_prog_CPP=$CPP 4535 4536fi 4537 CPP=$ac_cv_prog_CPP 4538else 4539 ac_cv_prog_CPP=$CPP 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4542$as_echo "$CPP" >&6; } 4543ac_preproc_ok=false 4544for ac_c_preproc_warn_flag in '' yes 4545do 4546 # Use a header file that comes with gcc, so configuring glibc 4547 # with a fresh cross-compiler works. 4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4549 # <limits.h> exists even on freestanding compilers. 4550 # On the NeXT, cc -E runs the code through the compiler's parser, 4551 # not just through cpp. "Syntax error" is here to catch this case. 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553/* end confdefs.h. */ 4554@%:@ifdef __STDC__ 4555@%:@ include <limits.h> 4556@%:@else 4557@%:@ include <assert.h> 4558@%:@endif 4559 Syntax error 4560_ACEOF 4561if ac_fn_c_try_cpp "$LINENO"; then : 4562 4563else 4564 # Broken: fails on valid input. 4565continue 4566fi 4567rm -f conftest.err conftest.i conftest.$ac_ext 4568 4569 # OK, works on sane cases. Now check whether nonexistent headers 4570 # can be detected and how. 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572/* end confdefs.h. */ 4573@%:@include <ac_nonexistent.h> 4574_ACEOF 4575if ac_fn_c_try_cpp "$LINENO"; then : 4576 # Broken: success on invalid input. 4577continue 4578else 4579 # Passes both tests. 4580ac_preproc_ok=: 4581break 4582fi 4583rm -f conftest.err conftest.i conftest.$ac_ext 4584 4585done 4586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4587rm -f conftest.i conftest.err conftest.$ac_ext 4588if $ac_preproc_ok; then : 4589 4590else 4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4594See \`config.log' for more details" "$LINENO" 5; } 4595fi 4596 4597ac_ext=c 4598ac_cpp='$CPP $CPPFLAGS' 4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4601ac_compiler_gnu=$ac_cv_c_compiler_gnu 4602 4603@%:@ Check whether --enable-static was given. 4604if test "${enable_static+set}" = set; then : 4605 enableval=$enable_static; p=${PACKAGE-default} 4606 case $enableval in 4607 yes) enable_static=yes ;; 4608 no) enable_static=no ;; 4609 *) 4610 enable_static=no 4611 # Look at the argument we got. We use all the common list separators. 4612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4613 for pkg in $enableval; do 4614 IFS=$lt_save_ifs 4615 if test "X$pkg" = "X$p"; then 4616 enable_static=yes 4617 fi 4618 done 4619 IFS=$lt_save_ifs 4620 ;; 4621 esac 4622else 4623 enable_static=no 4624fi 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4635$as_echo_n "checking host system type... " >&6; } 4636if ${ac_cv_host+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test "x$host_alias" = x; then 4640 ac_cv_host=$ac_cv_build 4641else 4642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4644fi 4645 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4648$as_echo "$ac_cv_host" >&6; } 4649case $ac_cv_host in 4650*-*-*) ;; 4651*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4652esac 4653host=$ac_cv_host 4654ac_save_IFS=$IFS; IFS='-' 4655set x $ac_cv_host 4656shift 4657host_cpu=$1 4658host_vendor=$2 4659shift; shift 4660# Remember, the first character of IFS is used to create $*, 4661# except with old shells: 4662host_os=$* 4663IFS=$ac_save_IFS 4664case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4665 4666 4667enable_win32_dll=yes 4668 4669case $host in 4670*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4671 if test -n "$ac_tool_prefix"; then 4672 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4673set dummy ${ac_tool_prefix}as; ac_word=$2 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4675$as_echo_n "checking for $ac_word... " >&6; } 4676if ${ac_cv_prog_AS+:} false; then : 4677 $as_echo_n "(cached) " >&6 4678else 4679 if test -n "$AS"; then 4680 ac_cv_prog_AS="$AS" # Let the user override the test. 4681else 4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4683for as_dir in $PATH 4684do 4685 IFS=$as_save_IFS 4686 test -z "$as_dir" && as_dir=. 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4689 ac_cv_prog_AS="${ac_tool_prefix}as" 4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693done 4694 done 4695IFS=$as_save_IFS 4696 4697fi 4698fi 4699AS=$ac_cv_prog_AS 4700if test -n "$AS"; then 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4702$as_echo "$AS" >&6; } 4703else 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4705$as_echo "no" >&6; } 4706fi 4707 4708 4709fi 4710if test -z "$ac_cv_prog_AS"; then 4711 ac_ct_AS=$AS 4712 # Extract the first word of "as", so it can be a program name with args. 4713set dummy as; ac_word=$2 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4715$as_echo_n "checking for $ac_word... " >&6; } 4716if ${ac_cv_prog_ac_ct_AS+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 if test -n "$ac_ct_AS"; then 4720 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4721else 4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4723for as_dir in $PATH 4724do 4725 IFS=$as_save_IFS 4726 test -z "$as_dir" && as_dir=. 4727 for ac_exec_ext in '' $ac_executable_extensions; do 4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4729 ac_cv_prog_ac_ct_AS="as" 4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4731 break 2 4732 fi 4733done 4734 done 4735IFS=$as_save_IFS 4736 4737fi 4738fi 4739ac_ct_AS=$ac_cv_prog_ac_ct_AS 4740if test -n "$ac_ct_AS"; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4742$as_echo "$ac_ct_AS" >&6; } 4743else 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4745$as_echo "no" >&6; } 4746fi 4747 4748 if test "x$ac_ct_AS" = x; then 4749 AS="false" 4750 else 4751 case $cross_compiling:$ac_tool_warned in 4752yes:) 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4755ac_tool_warned=yes ;; 4756esac 4757 AS=$ac_ct_AS 4758 fi 4759else 4760 AS="$ac_cv_prog_AS" 4761fi 4762 4763 if test -n "$ac_tool_prefix"; then 4764 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4765set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4767$as_echo_n "checking for $ac_word... " >&6; } 4768if ${ac_cv_prog_DLLTOOL+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770else 4771 if test -n "$DLLTOOL"; then 4772 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4773else 4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4775for as_dir in $PATH 4776do 4777 IFS=$as_save_IFS 4778 test -z "$as_dir" && as_dir=. 4779 for ac_exec_ext in '' $ac_executable_extensions; do 4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4781 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4783 break 2 4784 fi 4785done 4786 done 4787IFS=$as_save_IFS 4788 4789fi 4790fi 4791DLLTOOL=$ac_cv_prog_DLLTOOL 4792if test -n "$DLLTOOL"; then 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4794$as_echo "$DLLTOOL" >&6; } 4795else 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4797$as_echo "no" >&6; } 4798fi 4799 4800 4801fi 4802if test -z "$ac_cv_prog_DLLTOOL"; then 4803 ac_ct_DLLTOOL=$DLLTOOL 4804 # Extract the first word of "dlltool", so it can be a program name with args. 4805set dummy dlltool; ac_word=$2 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4807$as_echo_n "checking for $ac_word... " >&6; } 4808if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 if test -n "$ac_ct_DLLTOOL"; then 4812 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4813else 4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4815for as_dir in $PATH 4816do 4817 IFS=$as_save_IFS 4818 test -z "$as_dir" && as_dir=. 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4821 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4823 break 2 4824 fi 4825done 4826 done 4827IFS=$as_save_IFS 4828 4829fi 4830fi 4831ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4832if test -n "$ac_ct_DLLTOOL"; then 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4834$as_echo "$ac_ct_DLLTOOL" >&6; } 4835else 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4837$as_echo "no" >&6; } 4838fi 4839 4840 if test "x$ac_ct_DLLTOOL" = x; then 4841 DLLTOOL="false" 4842 else 4843 case $cross_compiling:$ac_tool_warned in 4844yes:) 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4847ac_tool_warned=yes ;; 4848esac 4849 DLLTOOL=$ac_ct_DLLTOOL 4850 fi 4851else 4852 DLLTOOL="$ac_cv_prog_DLLTOOL" 4853fi 4854 4855 if test -n "$ac_tool_prefix"; then 4856 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4857set dummy ${ac_tool_prefix}objdump; ac_word=$2 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4859$as_echo_n "checking for $ac_word... " >&6; } 4860if ${ac_cv_prog_OBJDUMP+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 if test -n "$OBJDUMP"; then 4864 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4865else 4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4867for as_dir in $PATH 4868do 4869 IFS=$as_save_IFS 4870 test -z "$as_dir" && as_dir=. 4871 for ac_exec_ext in '' $ac_executable_extensions; do 4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4873 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4875 break 2 4876 fi 4877done 4878 done 4879IFS=$as_save_IFS 4880 4881fi 4882fi 4883OBJDUMP=$ac_cv_prog_OBJDUMP 4884if test -n "$OBJDUMP"; then 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4886$as_echo "$OBJDUMP" >&6; } 4887else 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4889$as_echo "no" >&6; } 4890fi 4891 4892 4893fi 4894if test -z "$ac_cv_prog_OBJDUMP"; then 4895 ac_ct_OBJDUMP=$OBJDUMP 4896 # Extract the first word of "objdump", so it can be a program name with args. 4897set dummy objdump; ac_word=$2 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4899$as_echo_n "checking for $ac_word... " >&6; } 4900if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 if test -n "$ac_ct_OBJDUMP"; then 4904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4905else 4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4907for as_dir in $PATH 4908do 4909 IFS=$as_save_IFS 4910 test -z "$as_dir" && as_dir=. 4911 for ac_exec_ext in '' $ac_executable_extensions; do 4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4913 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4915 break 2 4916 fi 4917done 4918 done 4919IFS=$as_save_IFS 4920 4921fi 4922fi 4923ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4924if test -n "$ac_ct_OBJDUMP"; then 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4926$as_echo "$ac_ct_OBJDUMP" >&6; } 4927else 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4929$as_echo "no" >&6; } 4930fi 4931 4932 if test "x$ac_ct_OBJDUMP" = x; then 4933 OBJDUMP="false" 4934 else 4935 case $cross_compiling:$ac_tool_warned in 4936yes:) 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4939ac_tool_warned=yes ;; 4940esac 4941 OBJDUMP=$ac_ct_OBJDUMP 4942 fi 4943else 4944 OBJDUMP="$ac_cv_prog_OBJDUMP" 4945fi 4946 4947 ;; 4948esac 4949 4950test -z "$AS" && AS=as 4951 4952 4953 4954 4955 4956test -z "$DLLTOOL" && DLLTOOL=dlltool 4957 4958 4959 4960 4961 4962test -z "$OBJDUMP" && OBJDUMP=objdump 4963 4964 4965 4966 4967 4968 4969 4970case `pwd` in 4971 *\ * | *\ *) 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4973$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4974esac 4975 4976 4977 4978macro_version='2.4.6' 4979macro_revision='2.4.6' 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993ltmain=$ac_aux_dir/ltmain.sh 4994 4995# Backslashify metacharacters that are still active within 4996# double-quoted strings. 4997sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4998 4999# Same as above, but do not quote variable references. 5000double_quote_subst='s/\(["`\\]\)/\\\1/g' 5001 5002# Sed substitution to delay expansion of an escaped shell variable in a 5003# double_quote_subst'ed string. 5004delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5005 5006# Sed substitution to delay expansion of an escaped single quote. 5007delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5008 5009# Sed substitution to avoid accidental globbing in evaled expressions 5010no_glob_subst='s/\*/\\\*/g' 5011 5012ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5013ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5014ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5017$as_echo_n "checking how to print strings... " >&6; } 5018# Test print first, because it will be a builtin if present. 5019if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5020 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5021 ECHO='print -r --' 5022elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5023 ECHO='printf %s\n' 5024else 5025 # Use this function as a fallback that always works. 5026 func_fallback_echo () 5027 { 5028 eval 'cat <<_LTECHO_EOF 5029$1 5030_LTECHO_EOF' 5031 } 5032 ECHO='func_fallback_echo' 5033fi 5034 5035# func_echo_all arg... 5036# Invoke $ECHO with all args, space-separated. 5037func_echo_all () 5038{ 5039 $ECHO "" 5040} 5041 5042case $ECHO in 5043 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5044$as_echo "printf" >&6; } ;; 5045 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5046$as_echo "print -r" >&6; } ;; 5047 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5048$as_echo "cat" >&6; } ;; 5049esac 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5065$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5066if ${ac_cv_path_SED+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5070 for ac_i in 1 2 3 4 5 6 7; do 5071 ac_script="$ac_script$as_nl$ac_script" 5072 done 5073 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5074 { ac_script=; unset ac_script;} 5075 if test -z "$SED"; then 5076 ac_path_SED_found=false 5077 # Loop through the user's path and test for each of PROGNAME-LIST 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079for as_dir in $PATH 5080do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_prog in sed gsed; do 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5086 as_fn_executable_p "$ac_path_SED" || continue 5087# Check for GNU ac_path_SED and select it if it is found. 5088 # Check for GNU $ac_path_SED 5089case `"$ac_path_SED" --version 2>&1` in 5090*GNU*) 5091 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5092*) 5093 ac_count=0 5094 $as_echo_n 0123456789 >"conftest.in" 5095 while : 5096 do 5097 cat "conftest.in" "conftest.in" >"conftest.tmp" 5098 mv "conftest.tmp" "conftest.in" 5099 cp "conftest.in" "conftest.nl" 5100 $as_echo '' >> "conftest.nl" 5101 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5103 as_fn_arith $ac_count + 1 && ac_count=$as_val 5104 if test $ac_count -gt ${ac_path_SED_max-0}; then 5105 # Best one so far, save it but keep looking for a better one 5106 ac_cv_path_SED="$ac_path_SED" 5107 ac_path_SED_max=$ac_count 5108 fi 5109 # 10*(2^10) chars as input seems more than enough 5110 test $ac_count -gt 10 && break 5111 done 5112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5113esac 5114 5115 $ac_path_SED_found && break 3 5116 done 5117 done 5118 done 5119IFS=$as_save_IFS 5120 if test -z "$ac_cv_path_SED"; then 5121 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5122 fi 5123else 5124 ac_cv_path_SED=$SED 5125fi 5126 5127fi 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5129$as_echo "$ac_cv_path_SED" >&6; } 5130 SED="$ac_cv_path_SED" 5131 rm -f conftest.sed 5132 5133test -z "$SED" && SED=sed 5134Xsed="$SED -e 1s/^X//" 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5147$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5148if ${ac_cv_path_GREP+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test -z "$GREP"; then 5152 ac_path_GREP_found=false 5153 # Loop through the user's path and test for each of PROGNAME-LIST 5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5156do 5157 IFS=$as_save_IFS 5158 test -z "$as_dir" && as_dir=. 5159 for ac_prog in grep ggrep; do 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5162 as_fn_executable_p "$ac_path_GREP" || continue 5163# Check for GNU ac_path_GREP and select it if it is found. 5164 # Check for GNU $ac_path_GREP 5165case `"$ac_path_GREP" --version 2>&1` in 5166*GNU*) 5167 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5168*) 5169 ac_count=0 5170 $as_echo_n 0123456789 >"conftest.in" 5171 while : 5172 do 5173 cat "conftest.in" "conftest.in" >"conftest.tmp" 5174 mv "conftest.tmp" "conftest.in" 5175 cp "conftest.in" "conftest.nl" 5176 $as_echo 'GREP' >> "conftest.nl" 5177 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5179 as_fn_arith $ac_count + 1 && ac_count=$as_val 5180 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5181 # Best one so far, save it but keep looking for a better one 5182 ac_cv_path_GREP="$ac_path_GREP" 5183 ac_path_GREP_max=$ac_count 5184 fi 5185 # 10*(2^10) chars as input seems more than enough 5186 test $ac_count -gt 10 && break 5187 done 5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5189esac 5190 5191 $ac_path_GREP_found && break 3 5192 done 5193 done 5194 done 5195IFS=$as_save_IFS 5196 if test -z "$ac_cv_path_GREP"; then 5197 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5198 fi 5199else 5200 ac_cv_path_GREP=$GREP 5201fi 5202 5203fi 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5205$as_echo "$ac_cv_path_GREP" >&6; } 5206 GREP="$ac_cv_path_GREP" 5207 5208 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5210$as_echo_n "checking for egrep... " >&6; } 5211if ${ac_cv_path_EGREP+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5215 then ac_cv_path_EGREP="$GREP -E" 5216 else 5217 if test -z "$EGREP"; then 5218 ac_path_EGREP_found=false 5219 # Loop through the user's path and test for each of PROGNAME-LIST 5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5222do 5223 IFS=$as_save_IFS 5224 test -z "$as_dir" && as_dir=. 5225 for ac_prog in egrep; do 5226 for ac_exec_ext in '' $ac_executable_extensions; do 5227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5228 as_fn_executable_p "$ac_path_EGREP" || continue 5229# Check for GNU ac_path_EGREP and select it if it is found. 5230 # Check for GNU $ac_path_EGREP 5231case `"$ac_path_EGREP" --version 2>&1` in 5232*GNU*) 5233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5234*) 5235 ac_count=0 5236 $as_echo_n 0123456789 >"conftest.in" 5237 while : 5238 do 5239 cat "conftest.in" "conftest.in" >"conftest.tmp" 5240 mv "conftest.tmp" "conftest.in" 5241 cp "conftest.in" "conftest.nl" 5242 $as_echo 'EGREP' >> "conftest.nl" 5243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5245 as_fn_arith $ac_count + 1 && ac_count=$as_val 5246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5247 # Best one so far, save it but keep looking for a better one 5248 ac_cv_path_EGREP="$ac_path_EGREP" 5249 ac_path_EGREP_max=$ac_count 5250 fi 5251 # 10*(2^10) chars as input seems more than enough 5252 test $ac_count -gt 10 && break 5253 done 5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5255esac 5256 5257 $ac_path_EGREP_found && break 3 5258 done 5259 done 5260 done 5261IFS=$as_save_IFS 5262 if test -z "$ac_cv_path_EGREP"; then 5263 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5264 fi 5265else 5266 ac_cv_path_EGREP=$EGREP 5267fi 5268 5269 fi 5270fi 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5272$as_echo "$ac_cv_path_EGREP" >&6; } 5273 EGREP="$ac_cv_path_EGREP" 5274 5275 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5277$as_echo_n "checking for fgrep... " >&6; } 5278if ${ac_cv_path_FGREP+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5282 then ac_cv_path_FGREP="$GREP -F" 5283 else 5284 if test -z "$FGREP"; then 5285 ac_path_FGREP_found=false 5286 # Loop through the user's path and test for each of PROGNAME-LIST 5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_prog in fgrep; do 5293 for ac_exec_ext in '' $ac_executable_extensions; do 5294 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5295 as_fn_executable_p "$ac_path_FGREP" || continue 5296# Check for GNU ac_path_FGREP and select it if it is found. 5297 # Check for GNU $ac_path_FGREP 5298case `"$ac_path_FGREP" --version 2>&1` in 5299*GNU*) 5300 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5301*) 5302 ac_count=0 5303 $as_echo_n 0123456789 >"conftest.in" 5304 while : 5305 do 5306 cat "conftest.in" "conftest.in" >"conftest.tmp" 5307 mv "conftest.tmp" "conftest.in" 5308 cp "conftest.in" "conftest.nl" 5309 $as_echo 'FGREP' >> "conftest.nl" 5310 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5312 as_fn_arith $ac_count + 1 && ac_count=$as_val 5313 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5314 # Best one so far, save it but keep looking for a better one 5315 ac_cv_path_FGREP="$ac_path_FGREP" 5316 ac_path_FGREP_max=$ac_count 5317 fi 5318 # 10*(2^10) chars as input seems more than enough 5319 test $ac_count -gt 10 && break 5320 done 5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5322esac 5323 5324 $ac_path_FGREP_found && break 3 5325 done 5326 done 5327 done 5328IFS=$as_save_IFS 5329 if test -z "$ac_cv_path_FGREP"; then 5330 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5331 fi 5332else 5333 ac_cv_path_FGREP=$FGREP 5334fi 5335 5336 fi 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5339$as_echo "$ac_cv_path_FGREP" >&6; } 5340 FGREP="$ac_cv_path_FGREP" 5341 5342 5343test -z "$GREP" && GREP=grep 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363@%:@ Check whether --with-gnu-ld was given. 5364if test "${with_gnu_ld+set}" = set; then : 5365 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5366else 5367 with_gnu_ld=no 5368fi 5369 5370ac_prog=ld 5371if test yes = "$GCC"; then 5372 # Check if gcc -print-prog-name=ld gives a path. 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5374$as_echo_n "checking for ld used by $CC... " >&6; } 5375 case $host in 5376 *-*-mingw*) 5377 # gcc leaves a trailing carriage return, which upsets mingw 5378 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5379 *) 5380 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5381 esac 5382 case $ac_prog in 5383 # Accept absolute paths. 5384 [\\/]* | ?:[\\/]*) 5385 re_direlt='/[^/][^/]*/\.\./' 5386 # Canonicalize the pathname of ld 5387 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5388 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5389 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5390 done 5391 test -z "$LD" && LD=$ac_prog 5392 ;; 5393 "") 5394 # If it fails, then pretend we aren't using GCC. 5395 ac_prog=ld 5396 ;; 5397 *) 5398 # If it is relative, then search for the first ld in PATH. 5399 with_gnu_ld=unknown 5400 ;; 5401 esac 5402elif test yes = "$with_gnu_ld"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5404$as_echo_n "checking for GNU ld... " >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5407$as_echo_n "checking for non-GNU ld... " >&6; } 5408fi 5409if ${lt_cv_path_LD+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -z "$LD"; then 5413 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5414 for ac_dir in $PATH; do 5415 IFS=$lt_save_ifs 5416 test -z "$ac_dir" && ac_dir=. 5417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5418 lt_cv_path_LD=$ac_dir/$ac_prog 5419 # Check to see if the program is GNU ld. I'd rather use --version, 5420 # but apparently some variants of GNU ld only accept -v. 5421 # Break only if it was the GNU/non-GNU ld that we prefer. 5422 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5423 *GNU* | *'with BFD'*) 5424 test no != "$with_gnu_ld" && break 5425 ;; 5426 *) 5427 test yes != "$with_gnu_ld" && break 5428 ;; 5429 esac 5430 fi 5431 done 5432 IFS=$lt_save_ifs 5433else 5434 lt_cv_path_LD=$LD # Let the user override the test with a path. 5435fi 5436fi 5437 5438LD=$lt_cv_path_LD 5439if test -n "$LD"; then 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5441$as_echo "$LD" >&6; } 5442else 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5444$as_echo "no" >&6; } 5445fi 5446test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5448$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5449if ${lt_cv_prog_gnu_ld+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5453case `$LD -v 2>&1 </dev/null` in 5454*GNU* | *'with BFD'*) 5455 lt_cv_prog_gnu_ld=yes 5456 ;; 5457*) 5458 lt_cv_prog_gnu_ld=no 5459 ;; 5460esac 5461fi 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5463$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5464with_gnu_ld=$lt_cv_prog_gnu_ld 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5475$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5476if ${lt_cv_path_NM+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 if test -n "$NM"; then 5480 # Let the user override the test. 5481 lt_cv_path_NM=$NM 5482else 5483 lt_nm_to_check=${ac_tool_prefix}nm 5484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5485 lt_nm_to_check="$lt_nm_to_check nm" 5486 fi 5487 for lt_tmp_nm in $lt_nm_to_check; do 5488 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5490 IFS=$lt_save_ifs 5491 test -z "$ac_dir" && ac_dir=. 5492 tmp_nm=$ac_dir/$lt_tmp_nm 5493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5494 # Check to see if the nm accepts a BSD-compat flag. 5495 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5496 # nm: unknown option "B" ignored 5497 # Tru64's nm complains that /dev/null is an invalid object file 5498 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5499 case $build_os in 5500 mingw*) lt_bad_file=conftest.nm/nofile ;; 5501 *) lt_bad_file=/dev/null ;; 5502 esac 5503 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5504 *$lt_bad_file* | *'Invalid file or object type'*) 5505 lt_cv_path_NM="$tmp_nm -B" 5506 break 2 5507 ;; 5508 *) 5509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5510 */dev/null*) 5511 lt_cv_path_NM="$tmp_nm -p" 5512 break 2 5513 ;; 5514 *) 5515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5516 continue # so that we can try to find one that supports BSD flags 5517 ;; 5518 esac 5519 ;; 5520 esac 5521 fi 5522 done 5523 IFS=$lt_save_ifs 5524 done 5525 : ${lt_cv_path_NM=no} 5526fi 5527fi 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5529$as_echo "$lt_cv_path_NM" >&6; } 5530if test no != "$lt_cv_path_NM"; then 5531 NM=$lt_cv_path_NM 5532else 5533 # Didn't find any BSD compatible name lister, look for dumpbin. 5534 if test -n "$DUMPBIN"; then : 5535 # Let the user override the test. 5536 else 5537 if test -n "$ac_tool_prefix"; then 5538 for ac_prog in dumpbin "link -dump" 5539 do 5540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5541set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5543$as_echo_n "checking for $ac_word... " >&6; } 5544if ${ac_cv_prog_DUMPBIN+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 if test -n "$DUMPBIN"; then 5548 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5549else 5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551for as_dir in $PATH 5552do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561done 5562 done 5563IFS=$as_save_IFS 5564 5565fi 5566fi 5567DUMPBIN=$ac_cv_prog_DUMPBIN 5568if test -n "$DUMPBIN"; then 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5570$as_echo "$DUMPBIN" >&6; } 5571else 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573$as_echo "no" >&6; } 5574fi 5575 5576 5577 test -n "$DUMPBIN" && break 5578 done 5579fi 5580if test -z "$DUMPBIN"; then 5581 ac_ct_DUMPBIN=$DUMPBIN 5582 for ac_prog in dumpbin "link -dump" 5583do 5584 # Extract the first word of "$ac_prog", so it can be a program name with args. 5585set dummy $ac_prog; ac_word=$2 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5587$as_echo_n "checking for $ac_word... " >&6; } 5588if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 if test -n "$ac_ct_DUMPBIN"; then 5592 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5593else 5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595for as_dir in $PATH 5596do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5601 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5603 break 2 5604 fi 5605done 5606 done 5607IFS=$as_save_IFS 5608 5609fi 5610fi 5611ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5612if test -n "$ac_ct_DUMPBIN"; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5614$as_echo "$ac_ct_DUMPBIN" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5617$as_echo "no" >&6; } 5618fi 5619 5620 5621 test -n "$ac_ct_DUMPBIN" && break 5622done 5623 5624 if test "x$ac_ct_DUMPBIN" = x; then 5625 DUMPBIN=":" 5626 else 5627 case $cross_compiling:$ac_tool_warned in 5628yes:) 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5631ac_tool_warned=yes ;; 5632esac 5633 DUMPBIN=$ac_ct_DUMPBIN 5634 fi 5635fi 5636 5637 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5638 *COFF*) 5639 DUMPBIN="$DUMPBIN -symbols -headers" 5640 ;; 5641 *) 5642 DUMPBIN=: 5643 ;; 5644 esac 5645 fi 5646 5647 if test : != "$DUMPBIN"; then 5648 NM=$DUMPBIN 5649 fi 5650fi 5651test -z "$NM" && NM=nm 5652 5653 5654 5655 5656 5657 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5659$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5660if ${lt_cv_nm_interface+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 lt_cv_nm_interface="BSD nm" 5664 echo "int some_variable = 0;" > conftest.$ac_ext 5665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5666 (eval "$ac_compile" 2>conftest.err) 5667 cat conftest.err >&5 5668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5670 cat conftest.err >&5 5671 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5672 cat conftest.out >&5 5673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5674 lt_cv_nm_interface="MS dumpbin" 5675 fi 5676 rm -f conftest* 5677fi 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5679$as_echo "$lt_cv_nm_interface" >&6; } 5680 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5682$as_echo_n "checking whether ln -s works... " >&6; } 5683LN_S=$as_ln_s 5684if test "$LN_S" = "ln -s"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5686$as_echo "yes" >&6; } 5687else 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5689$as_echo "no, using $LN_S" >&6; } 5690fi 5691 5692# find the maximum length of command line arguments 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5694$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5695if ${lt_cv_sys_max_cmd_len+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 i=0 5699 teststring=ABCD 5700 5701 case $build_os in 5702 msdosdjgpp*) 5703 # On DJGPP, this test can blow up pretty badly due to problems in libc 5704 # (any single argument exceeding 2000 bytes causes a buffer overrun 5705 # during glob expansion). Even if it were fixed, the result of this 5706 # check would be larger than it should be. 5707 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5708 ;; 5709 5710 gnu*) 5711 # Under GNU Hurd, this test is not required because there is 5712 # no limit to the length of command line arguments. 5713 # Libtool will interpret -1 as no limit whatsoever 5714 lt_cv_sys_max_cmd_len=-1; 5715 ;; 5716 5717 cygwin* | mingw* | cegcc*) 5718 # On Win9x/ME, this test blows up -- it succeeds, but takes 5719 # about 5 minutes as the teststring grows exponentially. 5720 # Worse, since 9x/ME are not pre-emptively multitasking, 5721 # you end up with a "frozen" computer, even though with patience 5722 # the test eventually succeeds (with a max line length of 256k). 5723 # Instead, let's just punt: use the minimum linelength reported by 5724 # all of the supported platforms: 8192 (on NT/2K/XP). 5725 lt_cv_sys_max_cmd_len=8192; 5726 ;; 5727 5728 mint*) 5729 # On MiNT this can take a long time and run out of memory. 5730 lt_cv_sys_max_cmd_len=8192; 5731 ;; 5732 5733 amigaos*) 5734 # On AmigaOS with pdksh, this test takes hours, literally. 5735 # So we just punt and use a minimum line length of 8192. 5736 lt_cv_sys_max_cmd_len=8192; 5737 ;; 5738 5739 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5740 # This has been around since 386BSD, at least. Likely further. 5741 if test -x /sbin/sysctl; then 5742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5743 elif test -x /usr/sbin/sysctl; then 5744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5745 else 5746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5747 fi 5748 # And add a safety zone 5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5751 ;; 5752 5753 interix*) 5754 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5755 lt_cv_sys_max_cmd_len=196608 5756 ;; 5757 5758 os2*) 5759 # The test takes a long time on OS/2. 5760 lt_cv_sys_max_cmd_len=8192 5761 ;; 5762 5763 osf*) 5764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5766 # nice to cause kernel panics so lets avoid the loop below. 5767 # First set a reasonable default. 5768 lt_cv_sys_max_cmd_len=16384 5769 # 5770 if test -x /sbin/sysconfig; then 5771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5772 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5773 esac 5774 fi 5775 ;; 5776 sco3.2v5*) 5777 lt_cv_sys_max_cmd_len=102400 5778 ;; 5779 sysv5* | sco5v6* | sysv4.2uw2*) 5780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5781 if test -n "$kargmax"; then 5782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5783 else 5784 lt_cv_sys_max_cmd_len=32768 5785 fi 5786 ;; 5787 *) 5788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5789 if test -n "$lt_cv_sys_max_cmd_len" && \ 5790 test undefined != "$lt_cv_sys_max_cmd_len"; then 5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5793 else 5794 # Make teststring a little bigger before we do anything with it. 5795 # a 1K string should be a reasonable start. 5796 for i in 1 2 3 4 5 6 7 8; do 5797 teststring=$teststring$teststring 5798 done 5799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5800 # If test is not a shell built-in, we'll probably end up computing a 5801 # maximum length that is only half of the actual maximum length, but 5802 # we can't tell. 5803 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5804 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5805 test 17 != "$i" # 1/2 MB should be enough 5806 do 5807 i=`expr $i + 1` 5808 teststring=$teststring$teststring 5809 done 5810 # Only check the string length outside the loop. 5811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5812 teststring= 5813 # Add a significant safety factor because C++ compilers can tack on 5814 # massive amounts of additional arguments before passing them to the 5815 # linker. It appears as though 1/2 is a usable value. 5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5817 fi 5818 ;; 5819 esac 5820 5821fi 5822 5823if test -n "$lt_cv_sys_max_cmd_len"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5825$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5826else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5828$as_echo "none" >&6; } 5829fi 5830max_cmd_len=$lt_cv_sys_max_cmd_len 5831 5832 5833 5834 5835 5836 5837: ${CP="cp -f"} 5838: ${MV="mv -f"} 5839: ${RM="rm -f"} 5840 5841if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5842 lt_unset=unset 5843else 5844 lt_unset=false 5845fi 5846 5847 5848 5849 5850 5851# test EBCDIC or ASCII 5852case `echo X|tr X '\101'` in 5853 A) # ASCII based system 5854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5855 lt_SP2NL='tr \040 \012' 5856 lt_NL2SP='tr \015\012 \040\040' 5857 ;; 5858 *) # EBCDIC based system 5859 lt_SP2NL='tr \100 \n' 5860 lt_NL2SP='tr \r\n \100\100' 5861 ;; 5862esac 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5873$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5874if ${lt_cv_to_host_file_cmd+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 case $host in 5878 *-*-mingw* ) 5879 case $build in 5880 *-*-mingw* ) # actually msys 5881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5882 ;; 5883 *-*-cygwin* ) 5884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5885 ;; 5886 * ) # otherwise, assume *nix 5887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5888 ;; 5889 esac 5890 ;; 5891 *-*-cygwin* ) 5892 case $build in 5893 *-*-mingw* ) # actually msys 5894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5895 ;; 5896 *-*-cygwin* ) 5897 lt_cv_to_host_file_cmd=func_convert_file_noop 5898 ;; 5899 * ) # otherwise, assume *nix 5900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5901 ;; 5902 esac 5903 ;; 5904 * ) # unhandled hosts (and "normal" native builds) 5905 lt_cv_to_host_file_cmd=func_convert_file_noop 5906 ;; 5907esac 5908 5909fi 5910 5911to_host_file_cmd=$lt_cv_to_host_file_cmd 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5913$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5914 5915 5916 5917 5918 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5920$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5921if ${lt_cv_to_tool_file_cmd+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 #assume ordinary cross tools, or native build. 5925lt_cv_to_tool_file_cmd=func_convert_file_noop 5926case $host in 5927 *-*-mingw* ) 5928 case $build in 5929 *-*-mingw* ) # actually msys 5930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5931 ;; 5932 esac 5933 ;; 5934esac 5935 5936fi 5937 5938to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5940$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5941 5942 5943 5944 5945 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5947$as_echo_n "checking for $LD option to reload object files... " >&6; } 5948if ${lt_cv_ld_reload_flag+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 lt_cv_ld_reload_flag='-r' 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5954$as_echo "$lt_cv_ld_reload_flag" >&6; } 5955reload_flag=$lt_cv_ld_reload_flag 5956case $reload_flag in 5957"" | " "*) ;; 5958*) reload_flag=" $reload_flag" ;; 5959esac 5960reload_cmds='$LD$reload_flag -o $output$reload_objs' 5961case $host_os in 5962 cygwin* | mingw* | pw32* | cegcc*) 5963 if test yes != "$GCC"; then 5964 reload_cmds=false 5965 fi 5966 ;; 5967 darwin*) 5968 if test yes = "$GCC"; then 5969 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5970 else 5971 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5972 fi 5973 ;; 5974esac 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984if test -n "$ac_tool_prefix"; then 5985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5986set dummy ${ac_tool_prefix}objdump; ac_word=$2 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5988$as_echo_n "checking for $ac_word... " >&6; } 5989if ${ac_cv_prog_OBJDUMP+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 if test -n "$OBJDUMP"; then 5993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5994else 5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996for as_dir in $PATH 5997do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006done 6007 done 6008IFS=$as_save_IFS 6009 6010fi 6011fi 6012OBJDUMP=$ac_cv_prog_OBJDUMP 6013if test -n "$OBJDUMP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6015$as_echo "$OBJDUMP" >&6; } 6016else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018$as_echo "no" >&6; } 6019fi 6020 6021 6022fi 6023if test -z "$ac_cv_prog_OBJDUMP"; then 6024 ac_ct_OBJDUMP=$OBJDUMP 6025 # Extract the first word of "objdump", so it can be a program name with args. 6026set dummy objdump; ac_word=$2 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6028$as_echo_n "checking for $ac_word... " >&6; } 6029if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 if test -n "$ac_ct_OBJDUMP"; then 6033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6034else 6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036for as_dir in $PATH 6037do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6042 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046done 6047 done 6048IFS=$as_save_IFS 6049 6050fi 6051fi 6052ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6053if test -n "$ac_ct_OBJDUMP"; then 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6055$as_echo "$ac_ct_OBJDUMP" >&6; } 6056else 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058$as_echo "no" >&6; } 6059fi 6060 6061 if test "x$ac_ct_OBJDUMP" = x; then 6062 OBJDUMP="false" 6063 else 6064 case $cross_compiling:$ac_tool_warned in 6065yes:) 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6068ac_tool_warned=yes ;; 6069esac 6070 OBJDUMP=$ac_ct_OBJDUMP 6071 fi 6072else 6073 OBJDUMP="$ac_cv_prog_OBJDUMP" 6074fi 6075 6076test -z "$OBJDUMP" && OBJDUMP=objdump 6077 6078 6079 6080 6081 6082 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6084$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6085if ${lt_cv_deplibs_check_method+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 lt_cv_file_magic_cmd='$MAGIC_CMD' 6089lt_cv_file_magic_test_file= 6090lt_cv_deplibs_check_method='unknown' 6091# Need to set the preceding variable on all platforms that support 6092# interlibrary dependencies. 6093# 'none' -- dependencies not supported. 6094# 'unknown' -- same as none, but documents that we really don't know. 6095# 'pass_all' -- all dependencies passed with no checks. 6096# 'test_compile' -- check by making test program. 6097# 'file_magic [[regex]]' -- check by looking for files in library path 6098# that responds to the $file_magic_cmd with a given extended regex. 6099# If you have 'file' or equivalent on your system and you're not sure 6100# whether 'pass_all' will *always* work, you probably want this one. 6101 6102case $host_os in 6103aix[4-9]*) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107beos*) 6108 lt_cv_deplibs_check_method=pass_all 6109 ;; 6110 6111bsdi[45]*) 6112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6113 lt_cv_file_magic_cmd='/usr/bin/file -L' 6114 lt_cv_file_magic_test_file=/shlib/libc.so 6115 ;; 6116 6117cygwin*) 6118 # func_win32_libid is a shell function defined in ltmain.sh 6119 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6120 lt_cv_file_magic_cmd='func_win32_libid' 6121 ;; 6122 6123mingw* | pw32*) 6124 # Base MSYS/MinGW do not provide the 'file' command needed by 6125 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6126 # unless we find 'file', for example because we are cross-compiling. 6127 if ( file / ) >/dev/null 2>&1; then 6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6129 lt_cv_file_magic_cmd='func_win32_libid' 6130 else 6131 # Keep this pattern in sync with the one in func_win32_libid. 6132 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6133 lt_cv_file_magic_cmd='$OBJDUMP -f' 6134 fi 6135 ;; 6136 6137cegcc*) 6138 # use the weaker test based on 'objdump'. See mingw*. 6139 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6140 lt_cv_file_magic_cmd='$OBJDUMP -f' 6141 ;; 6142 6143darwin* | rhapsody*) 6144 lt_cv_deplibs_check_method=pass_all 6145 ;; 6146 6147freebsd* | dragonfly*) 6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6149 case $host_cpu in 6150 i*86 ) 6151 # Not sure whether the presence of OpenBSD here was a mistake. 6152 # Let's accept both of them until this is cleared up. 6153 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6154 lt_cv_file_magic_cmd=/usr/bin/file 6155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6156 ;; 6157 esac 6158 else 6159 lt_cv_deplibs_check_method=pass_all 6160 fi 6161 ;; 6162 6163haiku*) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 6167hpux10.20* | hpux11*) 6168 lt_cv_file_magic_cmd=/usr/bin/file 6169 case $host_cpu in 6170 ia64*) 6171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6172 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6173 ;; 6174 hppa*64*) 6175 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]' 6176 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6177 ;; 6178 *) 6179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6180 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6181 ;; 6182 esac 6183 ;; 6184 6185interix[3-9]*) 6186 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6188 ;; 6189 6190irix5* | irix6* | nonstopux*) 6191 case $LD in 6192 *-32|*"-32 ") libmagic=32-bit;; 6193 *-n32|*"-n32 ") libmagic=N32;; 6194 *-64|*"-64 ") libmagic=64-bit;; 6195 *) libmagic=never-match;; 6196 esac 6197 lt_cv_deplibs_check_method=pass_all 6198 ;; 6199 6200# This must be glibc/ELF. 6201linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6202 lt_cv_deplibs_check_method=pass_all 6203 ;; 6204 6205netbsd* | netbsdelf*-gnu) 6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6208 else 6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6210 fi 6211 ;; 6212 6213newos6*) 6214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6215 lt_cv_file_magic_cmd=/usr/bin/file 6216 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6217 ;; 6218 6219*nto* | *qnx*) 6220 lt_cv_deplibs_check_method=pass_all 6221 ;; 6222 6223openbsd* | bitrig*) 6224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6226 else 6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6228 fi 6229 ;; 6230 6231osf3* | osf4* | osf5*) 6232 lt_cv_deplibs_check_method=pass_all 6233 ;; 6234 6235rdos*) 6236 lt_cv_deplibs_check_method=pass_all 6237 ;; 6238 6239solaris*) 6240 lt_cv_deplibs_check_method=pass_all 6241 ;; 6242 6243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6244 lt_cv_deplibs_check_method=pass_all 6245 ;; 6246 6247sysv4 | sysv4.3*) 6248 case $host_vendor in 6249 motorola) 6250 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]' 6251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6252 ;; 6253 ncr) 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 sequent) 6257 lt_cv_file_magic_cmd='/bin/file' 6258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6259 ;; 6260 sni) 6261 lt_cv_file_magic_cmd='/bin/file' 6262 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6263 lt_cv_file_magic_test_file=/lib/libc.so 6264 ;; 6265 siemens) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 pc) 6269 lt_cv_deplibs_check_method=pass_all 6270 ;; 6271 esac 6272 ;; 6273 6274tpf*) 6275 lt_cv_deplibs_check_method=pass_all 6276 ;; 6277os2*) 6278 lt_cv_deplibs_check_method=pass_all 6279 ;; 6280esac 6281 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6284$as_echo "$lt_cv_deplibs_check_method" >&6; } 6285 6286file_magic_glob= 6287want_nocaseglob=no 6288if test "$build" = "$host"; then 6289 case $host_os in 6290 mingw* | pw32*) 6291 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6292 want_nocaseglob=yes 6293 else 6294 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6295 fi 6296 ;; 6297 esac 6298fi 6299 6300file_magic_cmd=$lt_cv_file_magic_cmd 6301deplibs_check_method=$lt_cv_deplibs_check_method 6302test -z "$deplibs_check_method" && deplibs_check_method=unknown 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325if test -n "$ac_tool_prefix"; then 6326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6327set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329$as_echo_n "checking for $ac_word... " >&6; } 6330if ${ac_cv_prog_DLLTOOL+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 if test -n "$DLLTOOL"; then 6334 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6335else 6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337for as_dir in $PATH 6338do 6339 IFS=$as_save_IFS 6340 test -z "$as_dir" && as_dir=. 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6343 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347done 6348 done 6349IFS=$as_save_IFS 6350 6351fi 6352fi 6353DLLTOOL=$ac_cv_prog_DLLTOOL 6354if test -n "$DLLTOOL"; then 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6356$as_echo "$DLLTOOL" >&6; } 6357else 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6359$as_echo "no" >&6; } 6360fi 6361 6362 6363fi 6364if test -z "$ac_cv_prog_DLLTOOL"; then 6365 ac_ct_DLLTOOL=$DLLTOOL 6366 # Extract the first word of "dlltool", so it can be a program name with args. 6367set dummy dlltool; ac_word=$2 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369$as_echo_n "checking for $ac_word... " >&6; } 6370if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 if test -n "$ac_ct_DLLTOOL"; then 6374 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6375else 6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6377for as_dir in $PATH 6378do 6379 IFS=$as_save_IFS 6380 test -z "$as_dir" && as_dir=. 6381 for ac_exec_ext in '' $ac_executable_extensions; do 6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6383 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6385 break 2 6386 fi 6387done 6388 done 6389IFS=$as_save_IFS 6390 6391fi 6392fi 6393ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6394if test -n "$ac_ct_DLLTOOL"; then 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6396$as_echo "$ac_ct_DLLTOOL" >&6; } 6397else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399$as_echo "no" >&6; } 6400fi 6401 6402 if test "x$ac_ct_DLLTOOL" = x; then 6403 DLLTOOL="false" 6404 else 6405 case $cross_compiling:$ac_tool_warned in 6406yes:) 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6409ac_tool_warned=yes ;; 6410esac 6411 DLLTOOL=$ac_ct_DLLTOOL 6412 fi 6413else 6414 DLLTOOL="$ac_cv_prog_DLLTOOL" 6415fi 6416 6417test -z "$DLLTOOL" && DLLTOOL=dlltool 6418 6419 6420 6421 6422 6423 6424 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6426$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6427if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429else 6430 lt_cv_sharedlib_from_linklib_cmd='unknown' 6431 6432case $host_os in 6433cygwin* | mingw* | pw32* | cegcc*) 6434 # two different shell functions defined in ltmain.sh; 6435 # decide which one to use based on capabilities of $DLLTOOL 6436 case `$DLLTOOL --help 2>&1` in 6437 *--identify-strict*) 6438 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6439 ;; 6440 *) 6441 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6442 ;; 6443 esac 6444 ;; 6445*) 6446 # fallback: assume linklib IS sharedlib 6447 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6448 ;; 6449esac 6450 6451fi 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6453$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6454sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6455test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6456 6457 6458 6459 6460 6461 6462 6463 6464if test -n "$ac_tool_prefix"; then 6465 for ac_prog in ar 6466 do 6467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6468set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6470$as_echo_n "checking for $ac_word... " >&6; } 6471if ${ac_cv_prog_AR+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 if test -n "$AR"; then 6475 ac_cv_prog_AR="$AR" # Let the user override the test. 6476else 6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in $PATH 6479do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6484 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488done 6489 done 6490IFS=$as_save_IFS 6491 6492fi 6493fi 6494AR=$ac_cv_prog_AR 6495if test -n "$AR"; then 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6497$as_echo "$AR" >&6; } 6498else 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6500$as_echo "no" >&6; } 6501fi 6502 6503 6504 test -n "$AR" && break 6505 done 6506fi 6507if test -z "$AR"; then 6508 ac_ct_AR=$AR 6509 for ac_prog in ar 6510do 6511 # Extract the first word of "$ac_prog", so it can be a program name with args. 6512set dummy $ac_prog; ac_word=$2 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if ${ac_cv_prog_ac_ct_AR+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$ac_ct_AR"; then 6519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6528 ac_cv_prog_ac_ct_AR="$ac_prog" 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533 done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538ac_ct_AR=$ac_cv_prog_ac_ct_AR 6539if test -n "$ac_ct_AR"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6541$as_echo "$ac_ct_AR" >&6; } 6542else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 6548 test -n "$ac_ct_AR" && break 6549done 6550 6551 if test "x$ac_ct_AR" = x; then 6552 AR="false" 6553 else 6554 case $cross_compiling:$ac_tool_warned in 6555yes:) 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6558ac_tool_warned=yes ;; 6559esac 6560 AR=$ac_ct_AR 6561 fi 6562fi 6563 6564: ${AR=ar} 6565: ${AR_FLAGS=cr} 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6578$as_echo_n "checking for archiver @FILE support... " >&6; } 6579if ${lt_cv_ar_at_file+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581else 6582 lt_cv_ar_at_file=no 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585 6586int 6587main () 6588{ 6589 6590 ; 6591 return 0; 6592} 6593_ACEOF 6594if ac_fn_c_try_compile "$LINENO"; then : 6595 echo conftest.$ac_objext > conftest.lst 6596 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6598 (eval $lt_ar_try) 2>&5 6599 ac_status=$? 6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6601 test $ac_status = 0; } 6602 if test 0 -eq "$ac_status"; then 6603 # Ensure the archiver fails upon bogus file names. 6604 rm -f conftest.$ac_objext libconftest.a 6605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6606 (eval $lt_ar_try) 2>&5 6607 ac_status=$? 6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6609 test $ac_status = 0; } 6610 if test 0 -ne "$ac_status"; then 6611 lt_cv_ar_at_file=@ 6612 fi 6613 fi 6614 rm -f conftest.* libconftest.a 6615 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6618 6619fi 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6621$as_echo "$lt_cv_ar_at_file" >&6; } 6622 6623if test no = "$lt_cv_ar_at_file"; then 6624 archiver_list_spec= 6625else 6626 archiver_list_spec=$lt_cv_ar_at_file 6627fi 6628 6629 6630 6631 6632 6633 6634 6635if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}strip; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_STRIP+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$STRIP"; then 6644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6653 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661fi 6662fi 6663STRIP=$ac_cv_prog_STRIP 6664if test -n "$STRIP"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6666$as_echo "$STRIP" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 6673fi 6674if test -z "$ac_cv_prog_STRIP"; then 6675 ac_ct_STRIP=$STRIP 6676 # Extract the first word of "strip", so it can be a program name with args. 6677set dummy strip; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$ac_ct_STRIP"; then 6684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_ac_ct_STRIP="strip" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6704if test -n "$ac_ct_STRIP"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6706$as_echo "$ac_ct_STRIP" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_STRIP" = x; then 6713 STRIP=":" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 STRIP=$ac_ct_STRIP 6722 fi 6723else 6724 STRIP="$ac_cv_prog_STRIP" 6725fi 6726 6727test -z "$STRIP" && STRIP=: 6728 6729 6730 6731 6732 6733 6734if test -n "$ac_tool_prefix"; then 6735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6736set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if ${ac_cv_prog_RANLIB+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$RANLIB"; then 6743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757 done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762RANLIB=$ac_cv_prog_RANLIB 6763if test -n "$RANLIB"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6765$as_echo "$RANLIB" >&6; } 6766else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6768$as_echo "no" >&6; } 6769fi 6770 6771 6772fi 6773if test -z "$ac_cv_prog_RANLIB"; then 6774 ac_ct_RANLIB=$RANLIB 6775 # Extract the first word of "ranlib", so it can be a program name with args. 6776set dummy ranlib; ac_word=$2 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778$as_echo_n "checking for $ac_word... " >&6; } 6779if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 if test -n "$ac_ct_RANLIB"; then 6783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_ac_ct_RANLIB="ranlib" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6803if test -n "$ac_ct_RANLIB"; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6805$as_echo "$ac_ct_RANLIB" >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808$as_echo "no" >&6; } 6809fi 6810 6811 if test "x$ac_ct_RANLIB" = x; then 6812 RANLIB=":" 6813 else 6814 case $cross_compiling:$ac_tool_warned in 6815yes:) 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6818ac_tool_warned=yes ;; 6819esac 6820 RANLIB=$ac_ct_RANLIB 6821 fi 6822else 6823 RANLIB="$ac_cv_prog_RANLIB" 6824fi 6825 6826test -z "$RANLIB" && RANLIB=: 6827 6828 6829 6830 6831 6832 6833# Determine commands to create old-style static archives. 6834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6835old_postinstall_cmds='chmod 644 $oldlib' 6836old_postuninstall_cmds= 6837 6838if test -n "$RANLIB"; then 6839 case $host_os in 6840 bitrig* | openbsd*) 6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6842 ;; 6843 *) 6844 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6845 ;; 6846 esac 6847 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6848fi 6849 6850case $host_os in 6851 darwin*) 6852 lock_old_archive_extraction=yes ;; 6853 *) 6854 lock_old_archive_extraction=no ;; 6855esac 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895# If no C compiler was specified, use CC. 6896LTCC=${LTCC-"$CC"} 6897 6898# If no C compiler flags were specified, use CFLAGS. 6899LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6900 6901# Allow CC to be a program name with arguments. 6902compiler=$CC 6903 6904 6905# Check for command to grab the raw symbol name followed by C symbol from nm. 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6907$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6908if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 6912# These are sane defaults that work on at least a few old systems. 6913# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6914 6915# Character class describing NM global symbol codes. 6916symcode='[BCDEGRST]' 6917 6918# Regexp to match symbols that can be accessed directly from C. 6919sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6920 6921# Define system-specific variables. 6922case $host_os in 6923aix*) 6924 symcode='[BCDT]' 6925 ;; 6926cygwin* | mingw* | pw32* | cegcc*) 6927 symcode='[ABCDGISTW]' 6928 ;; 6929hpux*) 6930 if test ia64 = "$host_cpu"; then 6931 symcode='[ABCDEGRST]' 6932 fi 6933 ;; 6934irix* | nonstopux*) 6935 symcode='[BCDEGRST]' 6936 ;; 6937osf*) 6938 symcode='[BCDEGQRST]' 6939 ;; 6940solaris*) 6941 symcode='[BDRT]' 6942 ;; 6943sco3.2v5*) 6944 symcode='[DT]' 6945 ;; 6946sysv4.2uw2*) 6947 symcode='[DT]' 6948 ;; 6949sysv5* | sco5v6* | unixware* | OpenUNIX*) 6950 symcode='[ABDT]' 6951 ;; 6952sysv4) 6953 symcode='[DFNSTU]' 6954 ;; 6955esac 6956 6957# If we're using GNU nm, then use its standard symbol codes. 6958case `$NM -V 2>&1` in 6959*GNU* | *'with BFD'*) 6960 symcode='[ABCDGIRSTW]' ;; 6961esac 6962 6963if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6964 # Gets list of data symbols to import. 6965 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6966 # Adjust the below global symbol transforms to fixup imported variables. 6967 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6968 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6969 lt_c_name_lib_hook="\ 6970 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6971 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6972else 6973 # Disable hooks by default. 6974 lt_cv_sys_global_symbol_to_import= 6975 lt_cdecl_hook= 6976 lt_c_name_hook= 6977 lt_c_name_lib_hook= 6978fi 6979 6980# Transform an extracted symbol line into a proper C declaration. 6981# Some systems (esp. on ia64) link data and code symbols differently, 6982# so use this general approach. 6983lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6984$lt_cdecl_hook\ 6985" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6986" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6987 6988# Transform an extracted symbol line into symbol name and symbol address 6989lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6990$lt_c_name_hook\ 6991" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6992" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6993 6994# Transform an extracted symbol line into symbol name with lib prefix and 6995# symbol address. 6996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6997$lt_c_name_lib_hook\ 6998" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6999" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7000" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7001 7002# Handle CRLF in mingw tool chain 7003opt_cr= 7004case $build_os in 7005mingw*) 7006 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7007 ;; 7008esac 7009 7010# Try without a prefix underscore, then with it. 7011for ac_symprfx in "" "_"; do 7012 7013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7014 symxfrm="\\1 $ac_symprfx\\2 \\2" 7015 7016 # Write the raw and C identifiers. 7017 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7018 # Fake it for dumpbin and say T for any non-static function, 7019 # D for any global variable and I for any imported variable. 7020 # Also find C++ and __fastcall symbols from MSVC++, 7021 # which start with @ or ?. 7022 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7023" {last_section=section; section=\$ 3};"\ 7024" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7025" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7026" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7027" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7028" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7029" \$ 0!~/External *\|/{next};"\ 7030" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7031" {if(hide[section]) next};"\ 7032" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7033" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7034" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7035" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7036" ' prfx=^$ac_symprfx" 7037 else 7038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7039 fi 7040 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7041 7042 # Check to see that the pipe works correctly. 7043 pipe_works=no 7044 7045 rm -f conftest* 7046 cat > conftest.$ac_ext <<_LT_EOF 7047#ifdef __cplusplus 7048extern "C" { 7049#endif 7050char nm_test_var; 7051void nm_test_func(void); 7052void nm_test_func(void){} 7053#ifdef __cplusplus 7054} 7055#endif 7056int main(){nm_test_var='a';nm_test_func();return(0);} 7057_LT_EOF 7058 7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7060 (eval $ac_compile) 2>&5 7061 ac_status=$? 7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7063 test $ac_status = 0; }; then 7064 # Now try to grab the symbols. 7065 nlist=conftest.nm 7066 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7067 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7068 # Try sorting and uniquifying the output. 7069 if sort "$nlist" | uniq > "$nlist"T; then 7070 mv -f "$nlist"T "$nlist" 7071 else 7072 rm -f "$nlist"T 7073 fi 7074 7075 # Make sure that we snagged all the symbols we need. 7076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7078 cat <<_LT_EOF > conftest.$ac_ext 7079/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7080#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7081/* DATA imports from DLLs on WIN32 can't be const, because runtime 7082 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7083# define LT@&t@_DLSYM_CONST 7084#elif defined __osf__ 7085/* This system does not cope well with relocations in const data. */ 7086# define LT@&t@_DLSYM_CONST 7087#else 7088# define LT@&t@_DLSYM_CONST const 7089#endif 7090 7091#ifdef __cplusplus 7092extern "C" { 7093#endif 7094 7095_LT_EOF 7096 # Now generate the symbol file. 7097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7098 7099 cat <<_LT_EOF >> conftest.$ac_ext 7100 7101/* The mapping between symbol names and symbols. */ 7102LT@&t@_DLSYM_CONST struct { 7103 const char *name; 7104 void *address; 7105} 7106lt__PROGRAM__LTX_preloaded_symbols[] = 7107{ 7108 { "@PROGRAM@", (void *) 0 }, 7109_LT_EOF 7110 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7111 cat <<\_LT_EOF >> conftest.$ac_ext 7112 {0, (void *) 0} 7113}; 7114 7115/* This works around a problem in FreeBSD linker */ 7116#ifdef FREEBSD_WORKAROUND 7117static const void *lt_preloaded_setup() { 7118 return lt__PROGRAM__LTX_preloaded_symbols; 7119} 7120#endif 7121 7122#ifdef __cplusplus 7123} 7124#endif 7125_LT_EOF 7126 # Now try linking the two files. 7127 mv conftest.$ac_objext conftstm.$ac_objext 7128 lt_globsym_save_LIBS=$LIBS 7129 lt_globsym_save_CFLAGS=$CFLAGS 7130 LIBS=conftstm.$ac_objext 7131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7133 (eval $ac_link) 2>&5 7134 ac_status=$? 7135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7136 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7137 pipe_works=yes 7138 fi 7139 LIBS=$lt_globsym_save_LIBS 7140 CFLAGS=$lt_globsym_save_CFLAGS 7141 else 7142 echo "cannot find nm_test_func in $nlist" >&5 7143 fi 7144 else 7145 echo "cannot find nm_test_var in $nlist" >&5 7146 fi 7147 else 7148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7149 fi 7150 else 7151 echo "$progname: failed program was:" >&5 7152 cat conftest.$ac_ext >&5 7153 fi 7154 rm -rf conftest* conftst* 7155 7156 # Do not use the global_symbol_pipe unless it works. 7157 if test yes = "$pipe_works"; then 7158 break 7159 else 7160 lt_cv_sys_global_symbol_pipe= 7161 fi 7162done 7163 7164fi 7165 7166if test -z "$lt_cv_sys_global_symbol_pipe"; then 7167 lt_cv_sys_global_symbol_to_cdecl= 7168fi 7169if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7171$as_echo "failed" >&6; } 7172else 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7174$as_echo "ok" >&6; } 7175fi 7176 7177# Response file support. 7178if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7179 nm_file_list_spec='@' 7180elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7181 nm_file_list_spec='@' 7182fi 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7221$as_echo_n "checking for sysroot... " >&6; } 7222 7223@%:@ Check whether --with-sysroot was given. 7224if test "${with_sysroot+set}" = set; then : 7225 withval=$with_sysroot; 7226else 7227 with_sysroot=no 7228fi 7229 7230 7231lt_sysroot= 7232case $with_sysroot in #( 7233 yes) 7234 if test yes = "$GCC"; then 7235 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7236 fi 7237 ;; #( 7238 /*) 7239 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7240 ;; #( 7241 no|'') 7242 ;; #( 7243 *) 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7245$as_echo "$with_sysroot" >&6; } 7246 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7247 ;; 7248esac 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7251$as_echo "${lt_sysroot:-no}" >&6; } 7252 7253 7254 7255 7256 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7258$as_echo_n "checking for a working dd... " >&6; } 7259if ${ac_cv_path_lt_DD+:} false; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 printf 0123456789abcdef0123456789abcdef >conftest.i 7263cat conftest.i conftest.i >conftest2.i 7264: ${lt_DD:=$DD} 7265if test -z "$lt_DD"; then 7266 ac_path_lt_DD_found=false 7267 # Loop through the user's path and test for each of PROGNAME-LIST 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269for as_dir in $PATH 7270do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_prog in dd; do 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7276 as_fn_executable_p "$ac_path_lt_DD" || continue 7277if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7278 cmp -s conftest.i conftest.out \ 7279 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7280fi 7281 $ac_path_lt_DD_found && break 3 7282 done 7283 done 7284 done 7285IFS=$as_save_IFS 7286 if test -z "$ac_cv_path_lt_DD"; then 7287 : 7288 fi 7289else 7290 ac_cv_path_lt_DD=$lt_DD 7291fi 7292 7293rm -f conftest.i conftest2.i conftest.out 7294fi 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7296$as_echo "$ac_cv_path_lt_DD" >&6; } 7297 7298 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7300$as_echo_n "checking how to truncate binary pipes... " >&6; } 7301if ${lt_cv_truncate_bin+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 printf 0123456789abcdef0123456789abcdef >conftest.i 7305cat conftest.i conftest.i >conftest2.i 7306lt_cv_truncate_bin= 7307if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7308 cmp -s conftest.i conftest.out \ 7309 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7310fi 7311rm -f conftest.i conftest2.i conftest.out 7312test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7313fi 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7315$as_echo "$lt_cv_truncate_bin" >&6; } 7316 7317 7318 7319 7320 7321 7322 7323# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7324func_cc_basename () 7325{ 7326 for cc_temp in @S|@*""; do 7327 case $cc_temp in 7328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7330 \-*) ;; 7331 *) break;; 7332 esac 7333 done 7334 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7335} 7336 7337@%:@ Check whether --enable-libtool-lock was given. 7338if test "${enable_libtool_lock+set}" = set; then : 7339 enableval=$enable_libtool_lock; 7340fi 7341 7342test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7343 7344# Some flags need to be propagated to the compiler or linker for good 7345# libtool support. 7346case $host in 7347ia64-*-hpux*) 7348 # Find out what ABI is being produced by ac_compile, and set mode 7349 # options accordingly. 7350 echo 'int i;' > conftest.$ac_ext 7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7352 (eval $ac_compile) 2>&5 7353 ac_status=$? 7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7355 test $ac_status = 0; }; then 7356 case `/usr/bin/file conftest.$ac_objext` in 7357 *ELF-32*) 7358 HPUX_IA64_MODE=32 7359 ;; 7360 *ELF-64*) 7361 HPUX_IA64_MODE=64 7362 ;; 7363 esac 7364 fi 7365 rm -rf conftest* 7366 ;; 7367*-*-irix6*) 7368 # Find out what ABI is being produced by ac_compile, and set linker 7369 # options accordingly. 7370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7372 (eval $ac_compile) 2>&5 7373 ac_status=$? 7374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7375 test $ac_status = 0; }; then 7376 if test yes = "$lt_cv_prog_gnu_ld"; then 7377 case `/usr/bin/file conftest.$ac_objext` in 7378 *32-bit*) 7379 LD="${LD-ld} -melf32bsmip" 7380 ;; 7381 *N32*) 7382 LD="${LD-ld} -melf32bmipn32" 7383 ;; 7384 *64-bit*) 7385 LD="${LD-ld} -melf64bmip" 7386 ;; 7387 esac 7388 else 7389 case `/usr/bin/file conftest.$ac_objext` in 7390 *32-bit*) 7391 LD="${LD-ld} -32" 7392 ;; 7393 *N32*) 7394 LD="${LD-ld} -n32" 7395 ;; 7396 *64-bit*) 7397 LD="${LD-ld} -64" 7398 ;; 7399 esac 7400 fi 7401 fi 7402 rm -rf conftest* 7403 ;; 7404 7405mips64*-*linux*) 7406 # Find out what ABI is being produced by ac_compile, and set linker 7407 # options accordingly. 7408 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7410 (eval $ac_compile) 2>&5 7411 ac_status=$? 7412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7413 test $ac_status = 0; }; then 7414 emul=elf 7415 case `/usr/bin/file conftest.$ac_objext` in 7416 *32-bit*) 7417 emul="${emul}32" 7418 ;; 7419 *64-bit*) 7420 emul="${emul}64" 7421 ;; 7422 esac 7423 case `/usr/bin/file conftest.$ac_objext` in 7424 *MSB*) 7425 emul="${emul}btsmip" 7426 ;; 7427 *LSB*) 7428 emul="${emul}ltsmip" 7429 ;; 7430 esac 7431 case `/usr/bin/file conftest.$ac_objext` in 7432 *N32*) 7433 emul="${emul}n32" 7434 ;; 7435 esac 7436 LD="${LD-ld} -m $emul" 7437 fi 7438 rm -rf conftest* 7439 ;; 7440 7441x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7442s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7443 # Find out what ABI is being produced by ac_compile, and set linker 7444 # options accordingly. Note that the listed cases only cover the 7445 # situations where additional linker options are needed (such as when 7446 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7447 # vice versa); the common cases where no linker options are needed do 7448 # not appear in the list. 7449 echo 'int i;' > conftest.$ac_ext 7450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7451 (eval $ac_compile) 2>&5 7452 ac_status=$? 7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7454 test $ac_status = 0; }; then 7455 case `/usr/bin/file conftest.o` in 7456 *32-bit*) 7457 case $host in 7458 x86_64-*kfreebsd*-gnu) 7459 LD="${LD-ld} -m elf_i386_fbsd" 7460 ;; 7461 x86_64-*linux*) 7462 case `/usr/bin/file conftest.o` in 7463 *x86-64*) 7464 LD="${LD-ld} -m elf32_x86_64" 7465 ;; 7466 *) 7467 LD="${LD-ld} -m elf_i386" 7468 ;; 7469 esac 7470 ;; 7471 powerpc64le-*linux*) 7472 LD="${LD-ld} -m elf32lppclinux" 7473 ;; 7474 powerpc64-*linux*) 7475 LD="${LD-ld} -m elf32ppclinux" 7476 ;; 7477 s390x-*linux*) 7478 LD="${LD-ld} -m elf_s390" 7479 ;; 7480 sparc64-*linux*) 7481 LD="${LD-ld} -m elf32_sparc" 7482 ;; 7483 esac 7484 ;; 7485 *64-bit*) 7486 case $host in 7487 x86_64-*kfreebsd*-gnu) 7488 LD="${LD-ld} -m elf_x86_64_fbsd" 7489 ;; 7490 x86_64-*linux*) 7491 LD="${LD-ld} -m elf_x86_64" 7492 ;; 7493 powerpcle-*linux*) 7494 LD="${LD-ld} -m elf64lppc" 7495 ;; 7496 powerpc-*linux*) 7497 LD="${LD-ld} -m elf64ppc" 7498 ;; 7499 s390*-*linux*|s390*-*tpf*) 7500 LD="${LD-ld} -m elf64_s390" 7501 ;; 7502 sparc*-*linux*) 7503 LD="${LD-ld} -m elf64_sparc" 7504 ;; 7505 esac 7506 ;; 7507 esac 7508 fi 7509 rm -rf conftest* 7510 ;; 7511 7512*-*-sco3.2v5*) 7513 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7514 SAVE_CFLAGS=$CFLAGS 7515 CFLAGS="$CFLAGS -belf" 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7517$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7518if ${lt_cv_cc_needs_belf+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 ac_ext=c 7522ac_cpp='$CPP $CPPFLAGS' 7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7525ac_compiler_gnu=$ac_cv_c_compiler_gnu 7526 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529 7530int 7531main () 7532{ 7533 7534 ; 7535 return 0; 7536} 7537_ACEOF 7538if ac_fn_c_try_link "$LINENO"; then : 7539 lt_cv_cc_needs_belf=yes 7540else 7541 lt_cv_cc_needs_belf=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext \ 7544 conftest$ac_exeext conftest.$ac_ext 7545 ac_ext=c 7546ac_cpp='$CPP $CPPFLAGS' 7547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7549ac_compiler_gnu=$ac_cv_c_compiler_gnu 7550 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7553$as_echo "$lt_cv_cc_needs_belf" >&6; } 7554 if test yes != "$lt_cv_cc_needs_belf"; then 7555 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7556 CFLAGS=$SAVE_CFLAGS 7557 fi 7558 ;; 7559*-*solaris*) 7560 # Find out what ABI is being produced by ac_compile, and set linker 7561 # options accordingly. 7562 echo 'int i;' > conftest.$ac_ext 7563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7564 (eval $ac_compile) 2>&5 7565 ac_status=$? 7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7567 test $ac_status = 0; }; then 7568 case `/usr/bin/file conftest.o` in 7569 *64-bit*) 7570 case $lt_cv_prog_gnu_ld in 7571 yes*) 7572 case $host in 7573 i?86-*-solaris*|x86_64-*-solaris*) 7574 LD="${LD-ld} -m elf_x86_64" 7575 ;; 7576 sparc*-*-solaris*) 7577 LD="${LD-ld} -m elf64_sparc" 7578 ;; 7579 esac 7580 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7581 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7582 LD=${LD-ld}_sol2 7583 fi 7584 ;; 7585 *) 7586 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7587 LD="${LD-ld} -64" 7588 fi 7589 ;; 7590 esac 7591 ;; 7592 esac 7593 fi 7594 rm -rf conftest* 7595 ;; 7596esac 7597 7598need_locks=$enable_libtool_lock 7599 7600if test -n "$ac_tool_prefix"; then 7601 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7602set dummy ${ac_tool_prefix}mt; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$MANIFEST_TOOL"; then 7609 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7618 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7629if test -n "$MANIFEST_TOOL"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7631$as_echo "$MANIFEST_TOOL" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 7638fi 7639if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7640 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7641 # Extract the first word of "mt", so it can be a program name with args. 7642set dummy mt; ac_word=$2 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7644$as_echo_n "checking for $ac_word... " >&6; } 7645if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 if test -n "$ac_ct_MANIFEST_TOOL"; then 7649 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 test -z "$as_dir" && as_dir=. 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7658 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662done 7663 done 7664IFS=$as_save_IFS 7665 7666fi 7667fi 7668ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7669if test -n "$ac_ct_MANIFEST_TOOL"; then 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7671$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7672else 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674$as_echo "no" >&6; } 7675fi 7676 7677 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7678 MANIFEST_TOOL=":" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7684ac_tool_warned=yes ;; 7685esac 7686 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7687 fi 7688else 7689 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7690fi 7691 7692test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7694$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7695if ${lt_cv_path_mainfest_tool+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 lt_cv_path_mainfest_tool=no 7699 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7700 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7701 cat conftest.err >&5 7702 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7703 lt_cv_path_mainfest_tool=yes 7704 fi 7705 rm -f conftest* 7706fi 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7708$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7709if test yes != "$lt_cv_path_mainfest_tool"; then 7710 MANIFEST_TOOL=: 7711fi 7712 7713 7714 7715 7716 7717 7718 case $host_os in 7719 rhapsody* | darwin*) 7720 if test -n "$ac_tool_prefix"; then 7721 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7722set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 if test -n "$DSYMUTIL"; then 7729 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" 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 7748DSYMUTIL=$ac_cv_prog_DSYMUTIL 7749if test -n "$DSYMUTIL"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7751$as_echo "$DSYMUTIL" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 7758fi 7759if test -z "$ac_cv_prog_DSYMUTIL"; then 7760 ac_ct_DSYMUTIL=$DSYMUTIL 7761 # Extract the first word of "dsymutil", so it can be a program name with args. 7762set dummy dsymutil; ac_word=$2 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7764$as_echo_n "checking for $ac_word... " >&6; } 7765if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 if test -n "$ac_ct_DSYMUTIL"; then 7769 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7770else 7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7772for as_dir in $PATH 7773do 7774 IFS=$as_save_IFS 7775 test -z "$as_dir" && as_dir=. 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7778 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782done 7783 done 7784IFS=$as_save_IFS 7785 7786fi 7787fi 7788ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7789if test -n "$ac_ct_DSYMUTIL"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7791$as_echo "$ac_ct_DSYMUTIL" >&6; } 7792else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795fi 7796 7797 if test "x$ac_ct_DSYMUTIL" = x; then 7798 DSYMUTIL=":" 7799 else 7800 case $cross_compiling:$ac_tool_warned in 7801yes:) 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7804ac_tool_warned=yes ;; 7805esac 7806 DSYMUTIL=$ac_ct_DSYMUTIL 7807 fi 7808else 7809 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7810fi 7811 7812 if test -n "$ac_tool_prefix"; then 7813 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7814set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7816$as_echo_n "checking for $ac_word... " >&6; } 7817if ${ac_cv_prog_NMEDIT+:} false; then : 7818 $as_echo_n "(cached) " >&6 7819else 7820 if test -n "$NMEDIT"; then 7821 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7822else 7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824for as_dir in $PATH 7825do 7826 IFS=$as_save_IFS 7827 test -z "$as_dir" && as_dir=. 7828 for ac_exec_ext in '' $ac_executable_extensions; do 7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7830 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7832 break 2 7833 fi 7834done 7835 done 7836IFS=$as_save_IFS 7837 7838fi 7839fi 7840NMEDIT=$ac_cv_prog_NMEDIT 7841if test -n "$NMEDIT"; then 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7843$as_echo "$NMEDIT" >&6; } 7844else 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7846$as_echo "no" >&6; } 7847fi 7848 7849 7850fi 7851if test -z "$ac_cv_prog_NMEDIT"; then 7852 ac_ct_NMEDIT=$NMEDIT 7853 # Extract the first word of "nmedit", so it can be a program name with args. 7854set dummy nmedit; ac_word=$2 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7856$as_echo_n "checking for $ac_word... " >&6; } 7857if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 if test -n "$ac_ct_NMEDIT"; then 7861 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7862else 7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7864for as_dir in $PATH 7865do 7866 IFS=$as_save_IFS 7867 test -z "$as_dir" && as_dir=. 7868 for ac_exec_ext in '' $ac_executable_extensions; do 7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7870 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7872 break 2 7873 fi 7874done 7875 done 7876IFS=$as_save_IFS 7877 7878fi 7879fi 7880ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7881if test -n "$ac_ct_NMEDIT"; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7883$as_echo "$ac_ct_NMEDIT" >&6; } 7884else 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7886$as_echo "no" >&6; } 7887fi 7888 7889 if test "x$ac_ct_NMEDIT" = x; then 7890 NMEDIT=":" 7891 else 7892 case $cross_compiling:$ac_tool_warned in 7893yes:) 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7896ac_tool_warned=yes ;; 7897esac 7898 NMEDIT=$ac_ct_NMEDIT 7899 fi 7900else 7901 NMEDIT="$ac_cv_prog_NMEDIT" 7902fi 7903 7904 if test -n "$ac_tool_prefix"; then 7905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7906set dummy ${ac_tool_prefix}lipo; ac_word=$2 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7908$as_echo_n "checking for $ac_word... " >&6; } 7909if ${ac_cv_prog_LIPO+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 if test -n "$LIPO"; then 7913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7914else 7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 test -z "$as_dir" && as_dir=. 7920 for ac_exec_ext in '' $ac_executable_extensions; do 7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7924 break 2 7925 fi 7926done 7927 done 7928IFS=$as_save_IFS 7929 7930fi 7931fi 7932LIPO=$ac_cv_prog_LIPO 7933if test -n "$LIPO"; then 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7935$as_echo "$LIPO" >&6; } 7936else 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7938$as_echo "no" >&6; } 7939fi 7940 7941 7942fi 7943if test -z "$ac_cv_prog_LIPO"; then 7944 ac_ct_LIPO=$LIPO 7945 # Extract the first word of "lipo", so it can be a program name with args. 7946set dummy lipo; ac_word=$2 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7948$as_echo_n "checking for $ac_word... " >&6; } 7949if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 if test -n "$ac_ct_LIPO"; then 7953 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7954else 7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7956for as_dir in $PATH 7957do 7958 IFS=$as_save_IFS 7959 test -z "$as_dir" && as_dir=. 7960 for ac_exec_ext in '' $ac_executable_extensions; do 7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7962 ac_cv_prog_ac_ct_LIPO="lipo" 7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7964 break 2 7965 fi 7966done 7967 done 7968IFS=$as_save_IFS 7969 7970fi 7971fi 7972ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7973if test -n "$ac_ct_LIPO"; then 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7975$as_echo "$ac_ct_LIPO" >&6; } 7976else 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7978$as_echo "no" >&6; } 7979fi 7980 7981 if test "x$ac_ct_LIPO" = x; then 7982 LIPO=":" 7983 else 7984 case $cross_compiling:$ac_tool_warned in 7985yes:) 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7988ac_tool_warned=yes ;; 7989esac 7990 LIPO=$ac_ct_LIPO 7991 fi 7992else 7993 LIPO="$ac_cv_prog_LIPO" 7994fi 7995 7996 if test -n "$ac_tool_prefix"; then 7997 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7998set dummy ${ac_tool_prefix}otool; ac_word=$2 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8000$as_echo_n "checking for $ac_word... " >&6; } 8001if ${ac_cv_prog_OTOOL+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 if test -n "$OTOOL"; then 8005 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8006else 8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8008for as_dir in $PATH 8009do 8010 IFS=$as_save_IFS 8011 test -z "$as_dir" && as_dir=. 8012 for ac_exec_ext in '' $ac_executable_extensions; do 8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8014 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8016 break 2 8017 fi 8018done 8019 done 8020IFS=$as_save_IFS 8021 8022fi 8023fi 8024OTOOL=$ac_cv_prog_OTOOL 8025if test -n "$OTOOL"; then 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8027$as_echo "$OTOOL" >&6; } 8028else 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8030$as_echo "no" >&6; } 8031fi 8032 8033 8034fi 8035if test -z "$ac_cv_prog_OTOOL"; then 8036 ac_ct_OTOOL=$OTOOL 8037 # Extract the first word of "otool", so it can be a program name with args. 8038set dummy otool; ac_word=$2 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040$as_echo_n "checking for $ac_word... " >&6; } 8041if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043else 8044 if test -n "$ac_ct_OTOOL"; then 8045 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8046else 8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048for as_dir in $PATH 8049do 8050 IFS=$as_save_IFS 8051 test -z "$as_dir" && as_dir=. 8052 for ac_exec_ext in '' $ac_executable_extensions; do 8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8054 ac_cv_prog_ac_ct_OTOOL="otool" 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8056 break 2 8057 fi 8058done 8059 done 8060IFS=$as_save_IFS 8061 8062fi 8063fi 8064ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8065if test -n "$ac_ct_OTOOL"; then 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8067$as_echo "$ac_ct_OTOOL" >&6; } 8068else 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8070$as_echo "no" >&6; } 8071fi 8072 8073 if test "x$ac_ct_OTOOL" = x; then 8074 OTOOL=":" 8075 else 8076 case $cross_compiling:$ac_tool_warned in 8077yes:) 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8080ac_tool_warned=yes ;; 8081esac 8082 OTOOL=$ac_ct_OTOOL 8083 fi 8084else 8085 OTOOL="$ac_cv_prog_OTOOL" 8086fi 8087 8088 if test -n "$ac_tool_prefix"; then 8089 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8090set dummy ${ac_tool_prefix}otool64; ac_word=$2 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092$as_echo_n "checking for $ac_word... " >&6; } 8093if ${ac_cv_prog_OTOOL64+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 if test -n "$OTOOL64"; then 8097 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8098else 8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116OTOOL64=$ac_cv_prog_OTOOL64 8117if test -n "$OTOOL64"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8119$as_echo "$OTOOL64" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 8126fi 8127if test -z "$ac_cv_prog_OTOOL64"; then 8128 ac_ct_OTOOL64=$OTOOL64 8129 # Extract the first word of "otool64", so it can be a program name with args. 8130set dummy otool64; ac_word=$2 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132$as_echo_n "checking for $ac_word... " >&6; } 8133if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 if test -n "$ac_ct_OTOOL64"; then 8137 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8138else 8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8140for as_dir in $PATH 8141do 8142 IFS=$as_save_IFS 8143 test -z "$as_dir" && as_dir=. 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8146 ac_cv_prog_ac_ct_OTOOL64="otool64" 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150done 8151 done 8152IFS=$as_save_IFS 8153 8154fi 8155fi 8156ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8157if test -n "$ac_ct_OTOOL64"; then 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8159$as_echo "$ac_ct_OTOOL64" >&6; } 8160else 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8162$as_echo "no" >&6; } 8163fi 8164 8165 if test "x$ac_ct_OTOOL64" = x; then 8166 OTOOL64=":" 8167 else 8168 case $cross_compiling:$ac_tool_warned in 8169yes:) 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8172ac_tool_warned=yes ;; 8173esac 8174 OTOOL64=$ac_ct_OTOOL64 8175 fi 8176else 8177 OTOOL64="$ac_cv_prog_OTOOL64" 8178fi 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8207$as_echo_n "checking for -single_module linker flag... " >&6; } 8208if ${lt_cv_apple_cc_single_mod+:} false; then : 8209 $as_echo_n "(cached) " >&6 8210else 8211 lt_cv_apple_cc_single_mod=no 8212 if test -z "$LT_MULTI_MODULE"; then 8213 # By default we will add the -single_module flag. You can override 8214 # by either setting the environment variable LT_MULTI_MODULE 8215 # non-empty at configure time, or by adding -multi_module to the 8216 # link flags. 8217 rm -rf libconftest.dylib* 8218 echo "int foo(void){return 1;}" > conftest.c 8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8220-dynamiclib -Wl,-single_module conftest.c" >&5 8221 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8222 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8223 _lt_result=$? 8224 # If there is a non-empty error log, and "single_module" 8225 # appears in it, assume the flag caused a linker warning 8226 if test -s conftest.err && $GREP single_module conftest.err; then 8227 cat conftest.err >&5 8228 # Otherwise, if the output was created with a 0 exit code from 8229 # the compiler, it worked. 8230 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8231 lt_cv_apple_cc_single_mod=yes 8232 else 8233 cat conftest.err >&5 8234 fi 8235 rm -rf libconftest.dylib* 8236 rm -f conftest.* 8237 fi 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8240$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8241 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8243$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8244if ${lt_cv_ld_exported_symbols_list+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 lt_cv_ld_exported_symbols_list=no 8248 save_LDFLAGS=$LDFLAGS 8249 echo "_main" > conftest.sym 8250 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253 8254int 8255main () 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO"; then : 8263 lt_cv_ld_exported_symbols_list=yes 8264else 8265 lt_cv_ld_exported_symbols_list=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269 LDFLAGS=$save_LDFLAGS 8270 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8273$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8274 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8276$as_echo_n "checking for -force_load linker flag... " >&6; } 8277if ${lt_cv_ld_force_load+:} false; then : 8278 $as_echo_n "(cached) " >&6 8279else 8280 lt_cv_ld_force_load=no 8281 cat > conftest.c << _LT_EOF 8282int forced_loaded() { return 2;} 8283_LT_EOF 8284 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8285 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8286 echo "$AR cr libconftest.a conftest.o" >&5 8287 $AR cr libconftest.a conftest.o 2>&5 8288 echo "$RANLIB libconftest.a" >&5 8289 $RANLIB libconftest.a 2>&5 8290 cat > conftest.c << _LT_EOF 8291int main() { return 0;} 8292_LT_EOF 8293 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8294 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8295 _lt_result=$? 8296 if test -s conftest.err && $GREP force_load conftest.err; then 8297 cat conftest.err >&5 8298 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8299 lt_cv_ld_force_load=yes 8300 else 8301 cat conftest.err >&5 8302 fi 8303 rm -f conftest.err libconftest.a conftest conftest.c 8304 rm -rf conftest.dSYM 8305 8306fi 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8308$as_echo "$lt_cv_ld_force_load" >&6; } 8309 case $host_os in 8310 rhapsody* | darwin1.[012]) 8311 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8312 darwin1.*) 8313 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8314 darwin*) # darwin 5.x on 8315 # if running on 10.5 or later, the deployment target defaults 8316 # to the OS version, if on x86, and 10.4, the deployment 8317 # target defaults to 10.4. Don't you love it? 8318 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8319 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8320 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8321 10.[012][,.]*) 8322 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8323 10.*) 8324 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8325 esac 8326 ;; 8327 esac 8328 if test yes = "$lt_cv_apple_cc_single_mod"; then 8329 _lt_dar_single_mod='$single_module' 8330 fi 8331 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8332 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8333 else 8334 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8335 fi 8336 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8337 _lt_dsymutil='~$DSYMUTIL $lib || :' 8338 else 8339 _lt_dsymutil= 8340 fi 8341 ;; 8342 esac 8343 8344# func_munge_path_list VARIABLE PATH 8345# ----------------------------------- 8346# VARIABLE is name of variable containing _space_ separated list of 8347# directories to be munged by the contents of PATH, which is string 8348# having a format: 8349# "DIR[:DIR]:" 8350# string "DIR[ DIR]" will be prepended to VARIABLE 8351# ":DIR[:DIR]" 8352# string "DIR[ DIR]" will be appended to VARIABLE 8353# "DIRP[:DIRP]::[DIRA:]DIRA" 8354# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8355# "DIRA[ DIRA]" will be appended to VARIABLE 8356# "DIR[:DIR]" 8357# VARIABLE will be replaced by "DIR[ DIR]" 8358func_munge_path_list () 8359{ 8360 case x@S|@2 in 8361 x) 8362 ;; 8363 *:) 8364 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 8365 ;; 8366 x:*) 8367 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 8368 ;; 8369 *::*) 8370 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8371 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 8372 ;; 8373 *) 8374 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 8375 ;; 8376 esac 8377} 8378 8379 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8381$as_echo_n "checking for ANSI C header files... " >&6; } 8382if ${ac_cv_header_stdc+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387#include <stdlib.h> 8388#include <stdarg.h> 8389#include <string.h> 8390#include <float.h> 8391 8392int 8393main () 8394{ 8395 8396 ; 8397 return 0; 8398} 8399_ACEOF 8400if ac_fn_c_try_compile "$LINENO"; then : 8401 ac_cv_header_stdc=yes 8402else 8403 ac_cv_header_stdc=no 8404fi 8405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8406 8407if test $ac_cv_header_stdc = yes; then 8408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411#include <string.h> 8412 8413_ACEOF 8414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8415 $EGREP "memchr" >/dev/null 2>&1; then : 8416 8417else 8418 ac_cv_header_stdc=no 8419fi 8420rm -f conftest* 8421 8422fi 8423 8424if test $ac_cv_header_stdc = yes; then 8425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428#include <stdlib.h> 8429 8430_ACEOF 8431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8432 $EGREP "free" >/dev/null 2>&1; then : 8433 8434else 8435 ac_cv_header_stdc=no 8436fi 8437rm -f conftest* 8438 8439fi 8440 8441if test $ac_cv_header_stdc = yes; then 8442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8443 if test "$cross_compiling" = yes; then : 8444 : 8445else 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448#include <ctype.h> 8449#include <stdlib.h> 8450#if ((' ' & 0x0FF) == 0x020) 8451# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8452# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8453#else 8454# define ISLOWER(c) \ 8455 (('a' <= (c) && (c) <= 'i') \ 8456 || ('j' <= (c) && (c) <= 'r') \ 8457 || ('s' <= (c) && (c) <= 'z')) 8458# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8459#endif 8460 8461#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8462int 8463main () 8464{ 8465 int i; 8466 for (i = 0; i < 256; i++) 8467 if (XOR (islower (i), ISLOWER (i)) 8468 || toupper (i) != TOUPPER (i)) 8469 return 2; 8470 return 0; 8471} 8472_ACEOF 8473if ac_fn_c_try_run "$LINENO"; then : 8474 8475else 8476 ac_cv_header_stdc=no 8477fi 8478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8479 conftest.$ac_objext conftest.beam conftest.$ac_ext 8480fi 8481 8482fi 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8485$as_echo "$ac_cv_header_stdc" >&6; } 8486if test $ac_cv_header_stdc = yes; then 8487 8488$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 8489 8490fi 8491 8492# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8493for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8494 inttypes.h stdint.h unistd.h 8495do : 8496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8497ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8498" 8499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8500 cat >>confdefs.h <<_ACEOF 8501@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8502_ACEOF 8503 8504fi 8505 8506done 8507 8508 8509for ac_header in dlfcn.h 8510do : 8511 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8512" 8513if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8514 cat >>confdefs.h <<_ACEOF 8515@%:@define HAVE_DLFCN_H 1 8516_ACEOF 8517 8518fi 8519 8520done 8521 8522 8523 8524 8525func_stripname_cnf () 8526{ 8527 case @S|@2 in 8528 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 8529 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 8530 esac 8531} # func_stripname_cnf 8532 8533 8534 8535 8536 8537# Set options 8538 8539 8540 8541 enable_dlopen=no 8542 8543 8544 8545 @%:@ Check whether --enable-shared was given. 8546if test "${enable_shared+set}" = set; then : 8547 enableval=$enable_shared; p=${PACKAGE-default} 8548 case $enableval in 8549 yes) enable_shared=yes ;; 8550 no) enable_shared=no ;; 8551 *) 8552 enable_shared=no 8553 # Look at the argument we got. We use all the common list separators. 8554 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8555 for pkg in $enableval; do 8556 IFS=$lt_save_ifs 8557 if test "X$pkg" = "X$p"; then 8558 enable_shared=yes 8559 fi 8560 done 8561 IFS=$lt_save_ifs 8562 ;; 8563 esac 8564else 8565 enable_shared=yes 8566fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578@%:@ Check whether --with-pic was given. 8579if test "${with_pic+set}" = set; then : 8580 withval=$with_pic; lt_p=${PACKAGE-default} 8581 case $withval in 8582 yes|no) pic_mode=$withval ;; 8583 *) 8584 pic_mode=default 8585 # Look at the argument we got. We use all the common list separators. 8586 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8587 for lt_pkg in $withval; do 8588 IFS=$lt_save_ifs 8589 if test "X$lt_pkg" = "X$lt_p"; then 8590 pic_mode=yes 8591 fi 8592 done 8593 IFS=$lt_save_ifs 8594 ;; 8595 esac 8596else 8597 pic_mode=default 8598fi 8599 8600 8601 8602 8603 8604 8605 8606 8607 @%:@ Check whether --enable-fast-install was given. 8608if test "${enable_fast_install+set}" = set; then : 8609 enableval=$enable_fast_install; p=${PACKAGE-default} 8610 case $enableval in 8611 yes) enable_fast_install=yes ;; 8612 no) enable_fast_install=no ;; 8613 *) 8614 enable_fast_install=no 8615 # Look at the argument we got. We use all the common list separators. 8616 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8617 for pkg in $enableval; do 8618 IFS=$lt_save_ifs 8619 if test "X$pkg" = "X$p"; then 8620 enable_fast_install=yes 8621 fi 8622 done 8623 IFS=$lt_save_ifs 8624 ;; 8625 esac 8626else 8627 enable_fast_install=yes 8628fi 8629 8630 8631 8632 8633 8634 8635 8636 8637 shared_archive_member_spec= 8638case $host,$enable_shared in 8639power*-*-aix[5-9]*,yes) 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8641$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8642 8643@%:@ Check whether --with-aix-soname was given. 8644if test "${with_aix_soname+set}" = set; then : 8645 withval=$with_aix_soname; case $withval in 8646 aix|svr4|both) 8647 ;; 8648 *) 8649 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8650 ;; 8651 esac 8652 lt_cv_with_aix_soname=$with_aix_soname 8653else 8654 if ${lt_cv_with_aix_soname+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 lt_cv_with_aix_soname=aix 8658fi 8659 8660 with_aix_soname=$lt_cv_with_aix_soname 8661fi 8662 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8664$as_echo "$with_aix_soname" >&6; } 8665 if test aix != "$with_aix_soname"; then 8666 # For the AIX way of multilib, we name the shared archive member 8667 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8668 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8669 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8670 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8671 if test 64 = "${OBJECT_MODE-32}"; then 8672 shared_archive_member_spec=shr_64 8673 else 8674 shared_archive_member_spec=shr 8675 fi 8676 fi 8677 ;; 8678*) 8679 with_aix_soname=aix 8680 ;; 8681esac 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692# This can be used to rebuild libtool when needed 8693LIBTOOL_DEPS=$ltmain 8694 8695# Always use our own libtool. 8696LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727test -z "$LN_S" && LN_S="ln -s" 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742if test -n "${ZSH_VERSION+set}"; then 8743 setopt NO_GLOB_SUBST 8744fi 8745 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8747$as_echo_n "checking for objdir... " >&6; } 8748if ${lt_cv_objdir+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 rm -f .libs 2>/dev/null 8752mkdir .libs 2>/dev/null 8753if test -d .libs; then 8754 lt_cv_objdir=.libs 8755else 8756 # MS-DOS does not allow filenames that begin with a dot. 8757 lt_cv_objdir=_libs 8758fi 8759rmdir .libs 2>/dev/null 8760fi 8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8762$as_echo "$lt_cv_objdir" >&6; } 8763objdir=$lt_cv_objdir 8764 8765 8766 8767 8768 8769cat >>confdefs.h <<_ACEOF 8770@%:@define LT_OBJDIR "$lt_cv_objdir/" 8771_ACEOF 8772 8773 8774 8775 8776case $host_os in 8777aix3*) 8778 # AIX sometimes has problems with the GCC collect2 program. For some 8779 # reason, if we set the COLLECT_NAMES environment variable, the problems 8780 # vanish in a puff of smoke. 8781 if test set != "${COLLECT_NAMES+set}"; then 8782 COLLECT_NAMES= 8783 export COLLECT_NAMES 8784 fi 8785 ;; 8786esac 8787 8788# Global variables: 8789ofile=libtool 8790can_build_shared=yes 8791 8792# All known linkers require a '.a' archive for static linking (except MSVC, 8793# which needs '.lib'). 8794libext=a 8795 8796with_gnu_ld=$lt_cv_prog_gnu_ld 8797 8798old_CC=$CC 8799old_CFLAGS=$CFLAGS 8800 8801# Set sane defaults for various variables 8802test -z "$CC" && CC=cc 8803test -z "$LTCC" && LTCC=$CC 8804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8805test -z "$LD" && LD=ld 8806test -z "$ac_objext" && ac_objext=o 8807 8808func_cc_basename $compiler 8809cc_basename=$func_cc_basename_result 8810 8811 8812# Only perform the check for file, if the check method requires it 8813test -z "$MAGIC_CMD" && MAGIC_CMD=file 8814case $deplibs_check_method in 8815file_magic*) 8816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8818$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8819if ${lt_cv_path_MAGIC_CMD+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 case $MAGIC_CMD in 8823[\\/*] | ?:[\\/]*) 8824 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8825 ;; 8826*) 8827 lt_save_MAGIC_CMD=$MAGIC_CMD 8828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8830 for ac_dir in $ac_dummy; do 8831 IFS=$lt_save_ifs 8832 test -z "$ac_dir" && ac_dir=. 8833 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8834 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8835 if test -n "$file_magic_test_file"; then 8836 case $deplibs_check_method in 8837 "file_magic "*) 8838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8839 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8841 $EGREP "$file_magic_regex" > /dev/null; then 8842 : 8843 else 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: the command libtool uses to detect shared libraries, 8847*** $file_magic_cmd, produces output that libtool cannot recognize. 8848*** The result is that libtool may fail to recognize shared libraries 8849*** as such. This will affect the creation of libtool libraries that 8850*** depend on shared libraries, but programs linked with such libtool 8851*** libraries will work regardless of this problem. Nevertheless, you 8852*** may want to report the problem to your system manager and/or to 8853*** bug-libtool@gnu.org 8854 8855_LT_EOF 8856 fi ;; 8857 esac 8858 fi 8859 break 8860 fi 8861 done 8862 IFS=$lt_save_ifs 8863 MAGIC_CMD=$lt_save_MAGIC_CMD 8864 ;; 8865esac 8866fi 8867 8868MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8869if test -n "$MAGIC_CMD"; then 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8871$as_echo "$MAGIC_CMD" >&6; } 8872else 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874$as_echo "no" >&6; } 8875fi 8876 8877 8878 8879 8880 8881if test -z "$lt_cv_path_MAGIC_CMD"; then 8882 if test -n "$ac_tool_prefix"; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8884$as_echo_n "checking for file... " >&6; } 8885if ${lt_cv_path_MAGIC_CMD+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 case $MAGIC_CMD in 8889[\\/*] | ?:[\\/]*) 8890 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8891 ;; 8892*) 8893 lt_save_MAGIC_CMD=$MAGIC_CMD 8894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8896 for ac_dir in $ac_dummy; do 8897 IFS=$lt_save_ifs 8898 test -z "$ac_dir" && ac_dir=. 8899 if test -f "$ac_dir/file"; then 8900 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8901 if test -n "$file_magic_test_file"; then 8902 case $deplibs_check_method in 8903 "file_magic "*) 8904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8905 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8907 $EGREP "$file_magic_regex" > /dev/null; then 8908 : 8909 else 8910 cat <<_LT_EOF 1>&2 8911 8912*** Warning: the command libtool uses to detect shared libraries, 8913*** $file_magic_cmd, produces output that libtool cannot recognize. 8914*** The result is that libtool may fail to recognize shared libraries 8915*** as such. This will affect the creation of libtool libraries that 8916*** depend on shared libraries, but programs linked with such libtool 8917*** libraries will work regardless of this problem. Nevertheless, you 8918*** may want to report the problem to your system manager and/or to 8919*** bug-libtool@gnu.org 8920 8921_LT_EOF 8922 fi ;; 8923 esac 8924 fi 8925 break 8926 fi 8927 done 8928 IFS=$lt_save_ifs 8929 MAGIC_CMD=$lt_save_MAGIC_CMD 8930 ;; 8931esac 8932fi 8933 8934MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8935if test -n "$MAGIC_CMD"; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8937$as_echo "$MAGIC_CMD" >&6; } 8938else 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940$as_echo "no" >&6; } 8941fi 8942 8943 8944 else 8945 MAGIC_CMD=: 8946 fi 8947fi 8948 8949 fi 8950 ;; 8951esac 8952 8953# Use C for the default configuration in the libtool script 8954 8955lt_save_CC=$CC 8956ac_ext=c 8957ac_cpp='$CPP $CPPFLAGS' 8958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8960ac_compiler_gnu=$ac_cv_c_compiler_gnu 8961 8962 8963# Source file extension for C test sources. 8964ac_ext=c 8965 8966# Object file extension for compiled C test sources. 8967objext=o 8968objext=$objext 8969 8970# Code to be used in simple compile tests 8971lt_simple_compile_test_code="int some_variable = 0;" 8972 8973# Code to be used in simple link tests 8974lt_simple_link_test_code='int main(){return(0);}' 8975 8976 8977 8978 8979 8980 8981 8982# If no C compiler was specified, use CC. 8983LTCC=${LTCC-"$CC"} 8984 8985# If no C compiler flags were specified, use CFLAGS. 8986LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8987 8988# Allow CC to be a program name with arguments. 8989compiler=$CC 8990 8991# Save the default compiler, since it gets overwritten when the other 8992# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8993compiler_DEFAULT=$CC 8994 8995# save warnings/boilerplate of simple test code 8996ac_outfile=conftest.$ac_objext 8997echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8999_lt_compiler_boilerplate=`cat conftest.err` 9000$RM conftest* 9001 9002ac_outfile=conftest.$ac_objext 9003echo "$lt_simple_link_test_code" >conftest.$ac_ext 9004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9005_lt_linker_boilerplate=`cat conftest.err` 9006$RM -r conftest* 9007 9008 9009if test -n "$compiler"; then 9010 9011lt_prog_compiler_no_builtin_flag= 9012 9013if test yes = "$GCC"; then 9014 case $cc_basename in 9015 nvcc*) 9016 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9017 *) 9018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9019 esac 9020 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9022$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9023if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9024 $as_echo_n "(cached) " >&6 9025else 9026 lt_cv_prog_compiler_rtti_exceptions=no 9027 ac_outfile=conftest.$ac_objext 9028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9029 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9030 # Insert the option either (1) after the last *FLAGS variable, or 9031 # (2) before a word containing "conftest.", or (3) at the end. 9032 # Note that $ac_compile itself does not contain backslashes and begins 9033 # with a dollar sign (not a hyphen), so the echo should work correctly. 9034 # The option is referenced via a variable to avoid confusing sed. 9035 lt_compile=`echo "$ac_compile" | $SED \ 9036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9038 -e 's:$: $lt_compiler_flag:'` 9039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9040 (eval "$lt_compile" 2>conftest.err) 9041 ac_status=$? 9042 cat conftest.err >&5 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 if (exit $ac_status) && test -s "$ac_outfile"; then 9045 # The compiler can only warn and ignore the option if not recognized 9046 # So say no if there are warnings other than the usual output. 9047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9050 lt_cv_prog_compiler_rtti_exceptions=yes 9051 fi 9052 fi 9053 $RM conftest* 9054 9055fi 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9057$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9058 9059if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9061else 9062 : 9063fi 9064 9065fi 9066 9067 9068 9069 9070 9071 9072 lt_prog_compiler_wl= 9073lt_prog_compiler_pic= 9074lt_prog_compiler_static= 9075 9076 9077 if test yes = "$GCC"; then 9078 lt_prog_compiler_wl='-Wl,' 9079 lt_prog_compiler_static='-static' 9080 9081 case $host_os in 9082 aix*) 9083 # All AIX code is PIC. 9084 if test ia64 = "$host_cpu"; then 9085 # AIX 5 now supports IA64 processor 9086 lt_prog_compiler_static='-Bstatic' 9087 fi 9088 lt_prog_compiler_pic='-fPIC' 9089 ;; 9090 9091 amigaos*) 9092 case $host_cpu in 9093 powerpc) 9094 # see comment about AmigaOS4 .so support 9095 lt_prog_compiler_pic='-fPIC' 9096 ;; 9097 m68k) 9098 # FIXME: we need at least 68020 code to build shared libraries, but 9099 # adding the '-m68020' flag to GCC prevents building anything better, 9100 # like '-m68040'. 9101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9102 ;; 9103 esac 9104 ;; 9105 9106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9107 # PIC is the default for these OSes. 9108 ;; 9109 9110 mingw* | cygwin* | pw32* | os2* | cegcc*) 9111 # This hack is so that the source file can tell whether it is being 9112 # built for inclusion in a dll (and should export symbols for example). 9113 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9114 # (--disable-auto-import) libraries 9115 lt_prog_compiler_pic='-DDLL_EXPORT' 9116 case $host_os in 9117 os2*) 9118 lt_prog_compiler_static='$wl-static' 9119 ;; 9120 esac 9121 ;; 9122 9123 darwin* | rhapsody*) 9124 # PIC is the default on this platform 9125 # Common symbols not allowed in MH_DYLIB files 9126 lt_prog_compiler_pic='-fno-common' 9127 ;; 9128 9129 haiku*) 9130 # PIC is the default for Haiku. 9131 # The "-static" flag exists, but is broken. 9132 lt_prog_compiler_static= 9133 ;; 9134 9135 hpux*) 9136 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9137 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9138 # sets the default TLS model and affects inlining. 9139 case $host_cpu in 9140 hppa*64*) 9141 # +Z the default 9142 ;; 9143 *) 9144 lt_prog_compiler_pic='-fPIC' 9145 ;; 9146 esac 9147 ;; 9148 9149 interix[3-9]*) 9150 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9151 # Instead, we relocate shared libraries at runtime. 9152 ;; 9153 9154 msdosdjgpp*) 9155 # Just because we use GCC doesn't mean we suddenly get shared libraries 9156 # on systems that don't support them. 9157 lt_prog_compiler_can_build_shared=no 9158 enable_shared=no 9159 ;; 9160 9161 *nto* | *qnx*) 9162 # QNX uses GNU C++, but need to define -shared option too, otherwise 9163 # it will coredump. 9164 lt_prog_compiler_pic='-fPIC -shared' 9165 ;; 9166 9167 sysv4*MP*) 9168 if test -d /usr/nec; then 9169 lt_prog_compiler_pic=-Kconform_pic 9170 fi 9171 ;; 9172 9173 *) 9174 lt_prog_compiler_pic='-fPIC' 9175 ;; 9176 esac 9177 9178 case $cc_basename in 9179 nvcc*) # Cuda Compiler Driver 2.2 9180 lt_prog_compiler_wl='-Xlinker ' 9181 if test -n "$lt_prog_compiler_pic"; then 9182 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9183 fi 9184 ;; 9185 esac 9186 else 9187 # PORTME Check for flag to pass linker flags through the system compiler. 9188 case $host_os in 9189 aix*) 9190 lt_prog_compiler_wl='-Wl,' 9191 if test ia64 = "$host_cpu"; then 9192 # AIX 5 now supports IA64 processor 9193 lt_prog_compiler_static='-Bstatic' 9194 else 9195 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9196 fi 9197 ;; 9198 9199 darwin* | rhapsody*) 9200 # PIC is the default on this platform 9201 # Common symbols not allowed in MH_DYLIB files 9202 lt_prog_compiler_pic='-fno-common' 9203 case $cc_basename in 9204 nagfor*) 9205 # NAG Fortran compiler 9206 lt_prog_compiler_wl='-Wl,-Wl,,' 9207 lt_prog_compiler_pic='-PIC' 9208 lt_prog_compiler_static='-Bstatic' 9209 ;; 9210 esac 9211 ;; 9212 9213 mingw* | cygwin* | pw32* | os2* | cegcc*) 9214 # This hack is so that the source file can tell whether it is being 9215 # built for inclusion in a dll (and should export symbols for example). 9216 lt_prog_compiler_pic='-DDLL_EXPORT' 9217 case $host_os in 9218 os2*) 9219 lt_prog_compiler_static='$wl-static' 9220 ;; 9221 esac 9222 ;; 9223 9224 hpux9* | hpux10* | hpux11*) 9225 lt_prog_compiler_wl='-Wl,' 9226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9227 # not for PA HP-UX. 9228 case $host_cpu in 9229 hppa*64*|ia64*) 9230 # +Z the default 9231 ;; 9232 *) 9233 lt_prog_compiler_pic='+Z' 9234 ;; 9235 esac 9236 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9237 lt_prog_compiler_static='$wl-a ${wl}archive' 9238 ;; 9239 9240 irix5* | irix6* | nonstopux*) 9241 lt_prog_compiler_wl='-Wl,' 9242 # PIC (with -KPIC) is the default. 9243 lt_prog_compiler_static='-non_shared' 9244 ;; 9245 9246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9247 case $cc_basename in 9248 # old Intel for x86_64, which still supported -KPIC. 9249 ecc*) 9250 lt_prog_compiler_wl='-Wl,' 9251 lt_prog_compiler_pic='-KPIC' 9252 lt_prog_compiler_static='-static' 9253 ;; 9254 # flang / f18. f95 an alias for gfortran or flang on Debian 9255 flang* | f18* | f95*) 9256 lt_prog_compiler_wl='-Wl,' 9257 lt_prog_compiler_pic='-fPIC' 9258 lt_prog_compiler_static='-static' 9259 ;; 9260 # icc used to be incompatible with GCC. 9261 # ICC 10 doesn't accept -KPIC any more. 9262 icc* | ifort*) 9263 lt_prog_compiler_wl='-Wl,' 9264 lt_prog_compiler_pic='-fPIC' 9265 lt_prog_compiler_static='-static' 9266 ;; 9267 # Lahey Fortran 8.1. 9268 lf95*) 9269 lt_prog_compiler_wl='-Wl,' 9270 lt_prog_compiler_pic='--shared' 9271 lt_prog_compiler_static='--static' 9272 ;; 9273 nagfor*) 9274 # NAG Fortran compiler 9275 lt_prog_compiler_wl='-Wl,-Wl,,' 9276 lt_prog_compiler_pic='-PIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 ;; 9279 tcc*) 9280 # Fabrice Bellard et al's Tiny C Compiler 9281 lt_prog_compiler_wl='-Wl,' 9282 lt_prog_compiler_pic='-fPIC' 9283 lt_prog_compiler_static='-static' 9284 ;; 9285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9286 # Portland Group compilers (*not* the Pentium gcc compiler, 9287 # which looks to be a dead project) 9288 lt_prog_compiler_wl='-Wl,' 9289 lt_prog_compiler_pic='-fpic' 9290 lt_prog_compiler_static='-Bstatic' 9291 ;; 9292 ccc*) 9293 lt_prog_compiler_wl='-Wl,' 9294 # All Alpha code is PIC. 9295 lt_prog_compiler_static='-non_shared' 9296 ;; 9297 xl* | bgxl* | bgf* | mpixl*) 9298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9299 lt_prog_compiler_wl='-Wl,' 9300 lt_prog_compiler_pic='-qpic' 9301 lt_prog_compiler_static='-qstaticlink' 9302 ;; 9303 *) 9304 case `$CC -V 2>&1 | sed 5q` in 9305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9306 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9307 lt_prog_compiler_pic='-KPIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 lt_prog_compiler_wl='' 9310 ;; 9311 *Sun\ F* | *Sun*Fortran*) 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 lt_prog_compiler_wl='-Qoption ld ' 9315 ;; 9316 *Sun\ C*) 9317 # Sun C 5.9 9318 lt_prog_compiler_pic='-KPIC' 9319 lt_prog_compiler_static='-Bstatic' 9320 lt_prog_compiler_wl='-Wl,' 9321 ;; 9322 *Intel*\ [CF]*Compiler*) 9323 lt_prog_compiler_wl='-Wl,' 9324 lt_prog_compiler_pic='-fPIC' 9325 lt_prog_compiler_static='-static' 9326 ;; 9327 *Portland\ Group*) 9328 lt_prog_compiler_wl='-Wl,' 9329 lt_prog_compiler_pic='-fpic' 9330 lt_prog_compiler_static='-Bstatic' 9331 ;; 9332 esac 9333 ;; 9334 esac 9335 ;; 9336 9337 newsos6) 9338 lt_prog_compiler_pic='-KPIC' 9339 lt_prog_compiler_static='-Bstatic' 9340 ;; 9341 9342 *nto* | *qnx*) 9343 # QNX uses GNU C++, but need to define -shared option too, otherwise 9344 # it will coredump. 9345 lt_prog_compiler_pic='-fPIC -shared' 9346 ;; 9347 9348 osf3* | osf4* | osf5*) 9349 lt_prog_compiler_wl='-Wl,' 9350 # All OSF/1 code is PIC. 9351 lt_prog_compiler_static='-non_shared' 9352 ;; 9353 9354 rdos*) 9355 lt_prog_compiler_static='-non_shared' 9356 ;; 9357 9358 solaris*) 9359 lt_prog_compiler_pic='-KPIC' 9360 lt_prog_compiler_static='-Bstatic' 9361 case $cc_basename in 9362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9363 lt_prog_compiler_wl='-Qoption ld ';; 9364 *) 9365 lt_prog_compiler_wl='-Wl,';; 9366 esac 9367 ;; 9368 9369 sunos4*) 9370 lt_prog_compiler_wl='-Qoption ld ' 9371 lt_prog_compiler_pic='-PIC' 9372 lt_prog_compiler_static='-Bstatic' 9373 ;; 9374 9375 sysv4 | sysv4.2uw2* | sysv4.3*) 9376 lt_prog_compiler_wl='-Wl,' 9377 lt_prog_compiler_pic='-KPIC' 9378 lt_prog_compiler_static='-Bstatic' 9379 ;; 9380 9381 sysv4*MP*) 9382 if test -d /usr/nec; then 9383 lt_prog_compiler_pic='-Kconform_pic' 9384 lt_prog_compiler_static='-Bstatic' 9385 fi 9386 ;; 9387 9388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9389 lt_prog_compiler_wl='-Wl,' 9390 lt_prog_compiler_pic='-KPIC' 9391 lt_prog_compiler_static='-Bstatic' 9392 ;; 9393 9394 unicos*) 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_can_build_shared=no 9397 ;; 9398 9399 uts4*) 9400 lt_prog_compiler_pic='-pic' 9401 lt_prog_compiler_static='-Bstatic' 9402 ;; 9403 9404 *) 9405 lt_prog_compiler_can_build_shared=no 9406 ;; 9407 esac 9408 fi 9409 9410case $host_os in 9411 # For platforms that do not support PIC, -DPIC is meaningless: 9412 *djgpp*) 9413 lt_prog_compiler_pic= 9414 ;; 9415 *) 9416 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9417 ;; 9418esac 9419 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9421$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9422if ${lt_cv_prog_compiler_pic+:} false; then : 9423 $as_echo_n "(cached) " >&6 9424else 9425 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9426fi 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9428$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9429lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9430 9431# 9432# Check to make sure the PIC flag actually works. 9433# 9434if test -n "$lt_prog_compiler_pic"; then 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9436$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9437if ${lt_cv_prog_compiler_pic_works+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439else 9440 lt_cv_prog_compiler_pic_works=no 9441 ac_outfile=conftest.$ac_objext 9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9443 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9444 # Insert the option either (1) after the last *FLAGS variable, or 9445 # (2) before a word containing "conftest.", or (3) at the end. 9446 # Note that $ac_compile itself does not contain backslashes and begins 9447 # with a dollar sign (not a hyphen), so the echo should work correctly. 9448 # The option is referenced via a variable to avoid confusing sed. 9449 lt_compile=`echo "$ac_compile" | $SED \ 9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9452 -e 's:$: $lt_compiler_flag:'` 9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9454 (eval "$lt_compile" 2>conftest.err) 9455 ac_status=$? 9456 cat conftest.err >&5 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 if (exit $ac_status) && test -s "$ac_outfile"; then 9459 # The compiler can only warn and ignore the option if not recognized 9460 # So say no if there are warnings other than the usual output. 9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9464 lt_cv_prog_compiler_pic_works=yes 9465 fi 9466 fi 9467 $RM conftest* 9468 9469fi 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9471$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9472 9473if test yes = "$lt_cv_prog_compiler_pic_works"; then 9474 case $lt_prog_compiler_pic in 9475 "" | " "*) ;; 9476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9477 esac 9478else 9479 lt_prog_compiler_pic= 9480 lt_prog_compiler_can_build_shared=no 9481fi 9482 9483fi 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495# 9496# Check to make sure the static flag actually works. 9497# 9498wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9501if ${lt_cv_prog_compiler_static_works+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 lt_cv_prog_compiler_static_works=no 9505 save_LDFLAGS=$LDFLAGS 9506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9507 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9509 # The linker can only warn and ignore the option if not recognized 9510 # So say no if there are warnings 9511 if test -s conftest.err; then 9512 # Append any errors to the config.log. 9513 cat conftest.err 1>&5 9514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9516 if diff conftest.exp conftest.er2 >/dev/null; then 9517 lt_cv_prog_compiler_static_works=yes 9518 fi 9519 else 9520 lt_cv_prog_compiler_static_works=yes 9521 fi 9522 fi 9523 $RM -r conftest* 9524 LDFLAGS=$save_LDFLAGS 9525 9526fi 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9528$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9529 9530if test yes = "$lt_cv_prog_compiler_static_works"; then 9531 : 9532else 9533 lt_prog_compiler_static= 9534fi 9535 9536 9537 9538 9539 9540 9541 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9544if ${lt_cv_prog_compiler_c_o+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 lt_cv_prog_compiler_c_o=no 9548 $RM -r conftest 2>/dev/null 9549 mkdir conftest 9550 cd conftest 9551 mkdir out 9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9553 9554 lt_compiler_flag="-o out/conftest2.$ac_objext" 9555 # Insert the option either (1) after the last *FLAGS variable, or 9556 # (2) before a word containing "conftest.", or (3) at the end. 9557 # Note that $ac_compile itself does not contain backslashes and begins 9558 # with a dollar sign (not a hyphen), so the echo should work correctly. 9559 lt_compile=`echo "$ac_compile" | $SED \ 9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9562 -e 's:$: $lt_compiler_flag:'` 9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9564 (eval "$lt_compile" 2>out/conftest.err) 9565 ac_status=$? 9566 cat out/conftest.err >&5 9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9569 then 9570 # The compiler can only warn and ignore the option if not recognized 9571 # So say no if there are warnings 9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9575 lt_cv_prog_compiler_c_o=yes 9576 fi 9577 fi 9578 chmod u+w . 2>&5 9579 $RM conftest* 9580 # SGI C++ compiler will create directory out/ii_files/ for 9581 # template instantiation 9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9583 $RM out/* && rmdir out 9584 cd .. 9585 $RM -r conftest 9586 $RM conftest* 9587 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9590$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9591 9592 9593 9594 9595 9596 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9599if ${lt_cv_prog_compiler_c_o+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 lt_cv_prog_compiler_c_o=no 9603 $RM -r conftest 2>/dev/null 9604 mkdir conftest 9605 cd conftest 9606 mkdir out 9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9608 9609 lt_compiler_flag="-o out/conftest2.$ac_objext" 9610 # Insert the option either (1) after the last *FLAGS variable, or 9611 # (2) before a word containing "conftest.", or (3) at the end. 9612 # Note that $ac_compile itself does not contain backslashes and begins 9613 # with a dollar sign (not a hyphen), so the echo should work correctly. 9614 lt_compile=`echo "$ac_compile" | $SED \ 9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9617 -e 's:$: $lt_compiler_flag:'` 9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9619 (eval "$lt_compile" 2>out/conftest.err) 9620 ac_status=$? 9621 cat out/conftest.err >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9624 then 9625 # The compiler can only warn and ignore the option if not recognized 9626 # So say no if there are warnings 9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9630 lt_cv_prog_compiler_c_o=yes 9631 fi 9632 fi 9633 chmod u+w . 2>&5 9634 $RM conftest* 9635 # SGI C++ compiler will create directory out/ii_files/ for 9636 # template instantiation 9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9638 $RM out/* && rmdir out 9639 cd .. 9640 $RM -r conftest 9641 $RM conftest* 9642 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9645$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9646 9647 9648 9649 9650hard_links=nottested 9651if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9652 # do not overwrite the value of need_locks provided by the user 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9654$as_echo_n "checking if we can lock with hard links... " >&6; } 9655 hard_links=yes 9656 $RM conftest* 9657 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9658 touch conftest.a 9659 ln conftest.a conftest.b 2>&5 || hard_links=no 9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9662$as_echo "$hard_links" >&6; } 9663 if test no = "$hard_links"; then 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9665$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9666 need_locks=warn 9667 fi 9668else 9669 need_locks=no 9670fi 9671 9672 9673 9674 9675 9676 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9678$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9679 9680 runpath_var= 9681 allow_undefined_flag= 9682 always_export_symbols=no 9683 archive_cmds= 9684 archive_expsym_cmds= 9685 compiler_needs_object=no 9686 enable_shared_with_static_runtimes=no 9687 export_dynamic_flag_spec= 9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9689 hardcode_automatic=no 9690 hardcode_direct=no 9691 hardcode_direct_absolute=no 9692 hardcode_libdir_flag_spec= 9693 hardcode_libdir_separator= 9694 hardcode_minus_L=no 9695 hardcode_shlibpath_var=unsupported 9696 inherit_rpath=no 9697 link_all_deplibs=unknown 9698 module_cmds= 9699 module_expsym_cmds= 9700 old_archive_from_new_cmds= 9701 old_archive_from_expsyms_cmds= 9702 thread_safe_flag_spec= 9703 whole_archive_flag_spec= 9704 # include_expsyms should be a list of space-separated symbols to be *always* 9705 # included in the symbol list 9706 include_expsyms= 9707 # exclude_expsyms can be an extended regexp of symbols to exclude 9708 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9709 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9710 # as well as any symbol that contains 'd'. 9711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9713 # platforms (ab)use it in PIC code, but their linkers get confused if 9714 # the symbol is explicitly referenced. Since portable code cannot 9715 # rely on this symbol name, it's probably fine to never include it in 9716 # preloaded symbol tables. 9717 # Exclude shared library initialization/finalization symbols. 9718 extract_expsyms_cmds= 9719 9720 case $host_os in 9721 cygwin* | mingw* | pw32* | cegcc*) 9722 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9723 # When not using gcc, we currently assume that we are using 9724 # Microsoft Visual C++. 9725 if test yes != "$GCC"; then 9726 with_gnu_ld=no 9727 fi 9728 ;; 9729 interix*) 9730 # we just hope/assume this is gcc and not c89 (= MSVC++) 9731 with_gnu_ld=yes 9732 ;; 9733 openbsd* | bitrig*) 9734 with_gnu_ld=no 9735 ;; 9736 linux* | k*bsd*-gnu | gnu*) 9737 link_all_deplibs=no 9738 ;; 9739 esac 9740 9741 ld_shlibs=yes 9742 9743 # On some targets, GNU ld is compatible enough with the native linker 9744 # that we're better off using the native interface for both. 9745 lt_use_gnu_ld_interface=no 9746 if test yes = "$with_gnu_ld"; then 9747 case $host_os in 9748 aix*) 9749 # The AIX port of GNU ld has always aspired to compatibility 9750 # with the native linker. However, as the warning in the GNU ld 9751 # block says, versions before 2.19.5* couldn't really create working 9752 # shared libraries, regardless of the interface used. 9753 case `$LD -v 2>&1` in 9754 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9755 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9756 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9757 *) 9758 lt_use_gnu_ld_interface=yes 9759 ;; 9760 esac 9761 ;; 9762 *) 9763 lt_use_gnu_ld_interface=yes 9764 ;; 9765 esac 9766 fi 9767 9768 if test yes = "$lt_use_gnu_ld_interface"; then 9769 # If archive_cmds runs LD, not CC, wlarc should be empty 9770 wlarc='$wl' 9771 9772 # Set some defaults for GNU ld with shared library support. These 9773 # are reset later if shared libraries are not supported. Putting them 9774 # here allows them to be overridden if necessary. 9775 runpath_var=LD_RUN_PATH 9776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9777 export_dynamic_flag_spec='$wl--export-dynamic' 9778 # ancient GNU ld didn't support --whole-archive et. al. 9779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9780 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9781 else 9782 whole_archive_flag_spec= 9783 fi 9784 supports_anon_versioning=no 9785 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9786 *GNU\ gold*) supports_anon_versioning=yes ;; 9787 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9790 *\ 2.11.*) ;; # other 2.11 versions 9791 *) supports_anon_versioning=yes ;; 9792 esac 9793 9794 # See if GNU ld supports shared libraries. 9795 case $host_os in 9796 aix[3-9]*) 9797 # On AIX/PPC, the GNU linker is very broken 9798 if test ia64 != "$host_cpu"; then 9799 ld_shlibs=no 9800 cat <<_LT_EOF 1>&2 9801 9802*** Warning: the GNU linker, at least up to release 2.19, is reported 9803*** to be unable to reliably create shared libraries on AIX. 9804*** Therefore, libtool is disabling shared libraries support. If you 9805*** really care for shared libraries, you may want to install binutils 9806*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9807*** You will then need to restart the configuration process. 9808 9809_LT_EOF 9810 fi 9811 ;; 9812 9813 amigaos*) 9814 case $host_cpu in 9815 powerpc) 9816 # see comment about AmigaOS4 .so support 9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9818 archive_expsym_cmds='' 9819 ;; 9820 m68k) 9821 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)' 9822 hardcode_libdir_flag_spec='-L$libdir' 9823 hardcode_minus_L=yes 9824 ;; 9825 esac 9826 ;; 9827 9828 beos*) 9829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9830 allow_undefined_flag=unsupported 9831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9832 # support --undefined. This deserves some investigation. FIXME 9833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9834 else 9835 ld_shlibs=no 9836 fi 9837 ;; 9838 9839 cygwin* | mingw* | pw32* | cegcc*) 9840 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9841 # as there is no search path for DLLs. 9842 hardcode_libdir_flag_spec='-L$libdir' 9843 export_dynamic_flag_spec='$wl--export-all-symbols' 9844 allow_undefined_flag=unsupported 9845 always_export_symbols=no 9846 enable_shared_with_static_runtimes=yes 9847 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' 9848 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9849 9850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9852 # If the export-symbols file already is a .def file, use it as 9853 # is; otherwise, prepend EXPORTS... 9854 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9855 cp $export_symbols $output_objdir/$soname.def; 9856 else 9857 echo EXPORTS > $output_objdir/$soname.def; 9858 cat $export_symbols >> $output_objdir/$soname.def; 9859 fi~ 9860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9861 else 9862 ld_shlibs=no 9863 fi 9864 ;; 9865 9866 haiku*) 9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9868 link_all_deplibs=yes 9869 ;; 9870 9871 os2*) 9872 hardcode_libdir_flag_spec='-L$libdir' 9873 hardcode_minus_L=yes 9874 allow_undefined_flag=unsupported 9875 shrext_cmds=.dll 9876 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9877 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9878 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9879 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9880 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9882 emximp -o $lib $output_objdir/$libname.def' 9883 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9884 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9885 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9886 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9887 prefix_cmds="$SED"~ 9888 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9889 prefix_cmds="$prefix_cmds -e 1d"; 9890 fi~ 9891 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9892 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9893 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9894 emximp -o $lib $output_objdir/$libname.def' 9895 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9896 enable_shared_with_static_runtimes=yes 9897 ;; 9898 9899 interix[3-9]*) 9900 hardcode_direct=no 9901 hardcode_shlibpath_var=no 9902 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9903 export_dynamic_flag_spec='$wl-E' 9904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9905 # Instead, shared libraries are loaded at an image base (0x10000000 by 9906 # default) and relocated if they conflict, which is a slow very memory 9907 # consuming and fragmenting process. To avoid this, we pick a random, 9908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9909 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9911 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' 9912 ;; 9913 9914 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9915 tmp_diet=no 9916 if test linux-dietlibc = "$host_os"; then 9917 case $cc_basename in 9918 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9919 esac 9920 fi 9921 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9922 && test no = "$tmp_diet" 9923 then 9924 tmp_addflag=' $pic_flag' 9925 tmp_sharedflag='-shared' 9926 case $cc_basename,$host_cpu in 9927 pgcc*) # Portland Group C compiler 9928 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' 9929 tmp_addflag=' $pic_flag' 9930 ;; 9931 pgf77* | pgf90* | pgf95* | pgfortran*) 9932 # Portland Group f77 and f90 compilers 9933 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' 9934 tmp_addflag=' $pic_flag -Mnomain' ;; 9935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9936 tmp_addflag=' -i_dynamic' ;; 9937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9938 tmp_addflag=' -i_dynamic -nofor_main' ;; 9939 ifc* | ifort*) # Intel Fortran compiler 9940 tmp_addflag=' -nofor_main' ;; 9941 lf95*) # Lahey Fortran 8.1 9942 whole_archive_flag_spec= 9943 tmp_sharedflag='--shared' ;; 9944 nagfor*) # NAGFOR 5.3 9945 tmp_sharedflag='-Wl,-shared' ;; 9946 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9947 tmp_sharedflag='-qmkshrobj' 9948 tmp_addflag= ;; 9949 nvcc*) # Cuda Compiler Driver 2.2 9950 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' 9951 compiler_needs_object=yes 9952 ;; 9953 esac 9954 case `$CC -V 2>&1 | sed 5q` in 9955 *Sun\ C*) # Sun C 5.9 9956 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' 9957 compiler_needs_object=yes 9958 tmp_sharedflag='-G' ;; 9959 *Sun\ F*) # Sun Fortran 8.3 9960 tmp_sharedflag='-G' ;; 9961 esac 9962 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9963 9964 if test yes = "$supports_anon_versioning"; then 9965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9967 echo "local: *; };" >> $output_objdir/$libname.ver~ 9968 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9969 fi 9970 9971 case $cc_basename in 9972 tcc*) 9973 export_dynamic_flag_spec='-rdynamic' 9974 ;; 9975 xlf* | bgf* | bgxlf* | mpixlf*) 9976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9979 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9980 if test yes = "$supports_anon_versioning"; then 9981 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9983 echo "local: *; };" >> $output_objdir/$libname.ver~ 9984 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9985 fi 9986 ;; 9987 esac 9988 else 9989 ld_shlibs=no 9990 fi 9991 ;; 9992 9993 netbsd* | netbsdelf*-gnu) 9994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9995 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9996 wlarc= 9997 else 9998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9999 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10000 fi 10001 ;; 10002 10003 solaris*) 10004 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10005 ld_shlibs=no 10006 cat <<_LT_EOF 1>&2 10007 10008*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10009*** create shared libraries on Solaris systems. Therefore, libtool 10010*** is disabling shared libraries support. We urge you to upgrade GNU 10011*** binutils to release 2.9.1 or newer. Another option is to modify 10012*** your PATH or compiler configuration so that the native linker is 10013*** used, and then restart. 10014 10015_LT_EOF 10016 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10018 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10019 else 10020 ld_shlibs=no 10021 fi 10022 ;; 10023 10024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10025 case `$LD -v 2>&1` in 10026 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10027 ld_shlibs=no 10028 cat <<_LT_EOF 1>&2 10029 10030*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10031*** reliably create shared libraries on SCO systems. Therefore, libtool 10032*** is disabling shared libraries support. We urge you to upgrade GNU 10033*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10034*** your PATH or compiler configuration so that the native linker is 10035*** used, and then restart. 10036 10037_LT_EOF 10038 ;; 10039 *) 10040 # For security reasons, it is highly recommended that you always 10041 # use absolute paths for naming shared libraries, and exclude the 10042 # DT_RUNPATH tag from executables and libraries. But doing so 10043 # requires that you compile everything twice, which is a pain. 10044 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10048 else 10049 ld_shlibs=no 10050 fi 10051 ;; 10052 esac 10053 ;; 10054 10055 sunos4*) 10056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10057 wlarc= 10058 hardcode_direct=yes 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 *) 10063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10065 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10066 else 10067 ld_shlibs=no 10068 fi 10069 ;; 10070 esac 10071 10072 if test no = "$ld_shlibs"; then 10073 runpath_var= 10074 hardcode_libdir_flag_spec= 10075 export_dynamic_flag_spec= 10076 whole_archive_flag_spec= 10077 fi 10078 else 10079 # PORTME fill in a description of your system's linker (not GNU ld) 10080 case $host_os in 10081 aix3*) 10082 allow_undefined_flag=unsupported 10083 always_export_symbols=yes 10084 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' 10085 # Note: this linker hardcodes the directories in LIBPATH if there 10086 # are no directories specified by -L. 10087 hardcode_minus_L=yes 10088 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10089 # Neither direct hardcoding nor static linking is supported with a 10090 # broken collect2. 10091 hardcode_direct=unsupported 10092 fi 10093 ;; 10094 10095 aix[4-9]*) 10096 if test ia64 = "$host_cpu"; then 10097 # On IA64, the linker does run time linking by default, so we don't 10098 # have to do anything special. 10099 aix_use_runtimelinking=no 10100 exp_sym_flag='-Bexport' 10101 no_entry_flag= 10102 else 10103 # If we're using GNU nm, then we don't want the "-C" option. 10104 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10105 # Without the "-l" option, or with the "-B" option, AIX nm treats 10106 # weak defined symbols like other global defined symbols, whereas 10107 # GNU nm marks them as "W". 10108 # While the 'weak' keyword is ignored in the Export File, we need 10109 # it in the Import File for the 'aix-soname' feature, so we have 10110 # to replace the "-B" option with "-P" for AIX nm. 10111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10112 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' 10113 else 10114 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' 10115 fi 10116 aix_use_runtimelinking=no 10117 10118 # Test if we are trying to use run time linking or normal 10119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10120 # have runtime linking enabled, and use it for executables. 10121 # For shared libraries, we enable/disable runtime linking 10122 # depending on the kind of the shared library created - 10123 # when "with_aix_soname,aix_use_runtimelinking" is: 10124 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10125 # "aix,yes" lib.so shared, rtl:yes, for executables 10126 # lib.a static archive 10127 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10128 # lib.a(lib.so.V) shared, rtl:no, for executables 10129 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10130 # lib.a(lib.so.V) shared, rtl:no 10131 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10132 # lib.a static archive 10133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10134 for ld_flag in $LDFLAGS; do 10135 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10136 aix_use_runtimelinking=yes 10137 break 10138 fi 10139 done 10140 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10141 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10142 # so we don't have lib.a shared libs to link our executables. 10143 # We have to force runtime linking in this case. 10144 aix_use_runtimelinking=yes 10145 LDFLAGS="$LDFLAGS -Wl,-brtl" 10146 fi 10147 ;; 10148 esac 10149 10150 exp_sym_flag='-bexport' 10151 no_entry_flag='-bnoentry' 10152 fi 10153 10154 # When large executables or shared objects are built, AIX ld can 10155 # have problems creating the table of contents. If linking a library 10156 # or program results in "error TOC overflow" add -mminimal-toc to 10157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10159 10160 archive_cmds='' 10161 hardcode_direct=yes 10162 hardcode_direct_absolute=yes 10163 hardcode_libdir_separator=':' 10164 link_all_deplibs=yes 10165 file_list_spec='$wl-f,' 10166 case $with_aix_soname,$aix_use_runtimelinking in 10167 aix,*) ;; # traditional, no import file 10168 svr4,* | *,yes) # use import file 10169 # The Import File defines what to hardcode. 10170 hardcode_direct=no 10171 hardcode_direct_absolute=no 10172 ;; 10173 esac 10174 10175 if test yes = "$GCC"; then 10176 case $host_os in aix4.[012]|aix4.[012].*) 10177 # We only want to do this on AIX 4.2 and lower, the check 10178 # below for broken collect2 doesn't work under 4.3+ 10179 collect2name=`$CC -print-prog-name=collect2` 10180 if test -f "$collect2name" && 10181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10182 then 10183 # We have reworked collect2 10184 : 10185 else 10186 # We have old collect2 10187 hardcode_direct=unsupported 10188 # It fails to find uninstalled libraries when the uninstalled 10189 # path is not listed in the libpath. Setting hardcode_minus_L 10190 # to unsupported forces relinking 10191 hardcode_minus_L=yes 10192 hardcode_libdir_flag_spec='-L$libdir' 10193 hardcode_libdir_separator= 10194 fi 10195 ;; 10196 esac 10197 shared_flag='-shared' 10198 if test yes = "$aix_use_runtimelinking"; then 10199 shared_flag="$shared_flag "'$wl-G' 10200 fi 10201 # Need to ensure runtime linking is disabled for the traditional 10202 # shared library, or the linker may eventually find shared libraries 10203 # /with/ Import File - we do not want to mix them. 10204 shared_flag_aix='-shared' 10205 shared_flag_svr4='-shared $wl-G' 10206 else 10207 # not using gcc 10208 if test ia64 = "$host_cpu"; then 10209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10210 # chokes on -Wl,-G. The following line is correct: 10211 shared_flag='-G' 10212 else 10213 if test yes = "$aix_use_runtimelinking"; then 10214 shared_flag='$wl-G' 10215 else 10216 shared_flag='$wl-bM:SRE' 10217 fi 10218 shared_flag_aix='$wl-bM:SRE' 10219 shared_flag_svr4='$wl-G' 10220 fi 10221 fi 10222 10223 export_dynamic_flag_spec='$wl-bexpall' 10224 # It seems that -bexpall does not export symbols beginning with 10225 # underscore (_), so it is better to generate a list of symbols to export. 10226 always_export_symbols=yes 10227 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10228 # Warning - without using the other runtime loading flags (-brtl), 10229 # -berok will link without error, but may produce a broken library. 10230 allow_undefined_flag='-berok' 10231 # Determine the default libpath from the value encoded in an 10232 # empty executable. 10233 if test set = "${lt_cv_aix_libpath+set}"; then 10234 aix_libpath=$lt_cv_aix_libpath 10235else 10236 if ${lt_cv_aix_libpath_+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238else 10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241 10242int 10243main () 10244{ 10245 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250if ac_fn_c_try_link "$LINENO"; then : 10251 10252 lt_aix_libpath_sed=' 10253 /Import File Strings/,/^$/ { 10254 /^0/ { 10255 s/^0 *\([^ ]*\) *$/\1/ 10256 p 10257 } 10258 }' 10259 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10260 # Check for a 64-bit object if we didn't find anything. 10261 if test -z "$lt_cv_aix_libpath_"; then 10262 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10263 fi 10264fi 10265rm -f core conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267 if test -z "$lt_cv_aix_libpath_"; then 10268 lt_cv_aix_libpath_=/usr/lib:/lib 10269 fi 10270 10271fi 10272 10273 aix_libpath=$lt_cv_aix_libpath_ 10274fi 10275 10276 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10277 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 10278 else 10279 if test ia64 = "$host_cpu"; then 10280 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10281 allow_undefined_flag="-z nodefs" 10282 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" 10283 else 10284 # Determine the default libpath from the value encoded in an 10285 # empty executable. 10286 if test set = "${lt_cv_aix_libpath+set}"; then 10287 aix_libpath=$lt_cv_aix_libpath 10288else 10289 if ${lt_cv_aix_libpath_+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294 10295int 10296main () 10297{ 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO"; then : 10304 10305 lt_aix_libpath_sed=' 10306 /Import File Strings/,/^$/ { 10307 /^0/ { 10308 s/^0 *\([^ ]*\) *$/\1/ 10309 p 10310 } 10311 }' 10312 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10313 # Check for a 64-bit object if we didn't find anything. 10314 if test -z "$lt_cv_aix_libpath_"; then 10315 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10316 fi 10317fi 10318rm -f core conftest.err conftest.$ac_objext \ 10319 conftest$ac_exeext conftest.$ac_ext 10320 if test -z "$lt_cv_aix_libpath_"; then 10321 lt_cv_aix_libpath_=/usr/lib:/lib 10322 fi 10323 10324fi 10325 10326 aix_libpath=$lt_cv_aix_libpath_ 10327fi 10328 10329 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10330 # Warning - without using the other run time loading flags, 10331 # -berok will link without error, but may produce a broken library. 10332 no_undefined_flag=' $wl-bernotok' 10333 allow_undefined_flag=' $wl-berok' 10334 if test yes = "$with_gnu_ld"; then 10335 # We only use this code for GNU lds that support --whole-archive. 10336 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10337 else 10338 # Exported symbols can be pulled into shared objects from archives 10339 whole_archive_flag_spec='$convenience' 10340 fi 10341 archive_cmds_need_lc=yes 10342 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10343 # -brtl affects multiple linker settings, -berok does not and is overridden later 10344 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10345 if test svr4 != "$with_aix_soname"; then 10346 # This is similar to how AIX traditionally builds its shared libraries. 10347 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' 10348 fi 10349 if test aix != "$with_aix_soname"; then 10350 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' 10351 else 10352 # used by -dlpreopen to get the symbols 10353 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10354 fi 10355 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10356 fi 10357 fi 10358 ;; 10359 10360 amigaos*) 10361 case $host_cpu in 10362 powerpc) 10363 # see comment about AmigaOS4 .so support 10364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10365 archive_expsym_cmds='' 10366 ;; 10367 m68k) 10368 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)' 10369 hardcode_libdir_flag_spec='-L$libdir' 10370 hardcode_minus_L=yes 10371 ;; 10372 esac 10373 ;; 10374 10375 bsdi[45]*) 10376 export_dynamic_flag_spec=-rdynamic 10377 ;; 10378 10379 cygwin* | mingw* | pw32* | cegcc*) 10380 # When not using gcc, we currently assume that we are using 10381 # Microsoft Visual C++. 10382 # hardcode_libdir_flag_spec is actually meaningless, as there is 10383 # no search path for DLLs. 10384 case $cc_basename in 10385 cl*) 10386 # Native MSVC 10387 hardcode_libdir_flag_spec=' ' 10388 allow_undefined_flag=unsupported 10389 always_export_symbols=yes 10390 file_list_spec='@' 10391 # Tell ltmain to make .lib files, not .a files. 10392 libext=lib 10393 # Tell ltmain to make .dll files, not .so files. 10394 shrext_cmds=.dll 10395 # FIXME: Setting linknames here is a bad hack. 10396 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10397 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10398 cp "$export_symbols" "$output_objdir/$soname.def"; 10399 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10400 else 10401 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10402 fi~ 10403 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10404 linknames=' 10405 # The linker will not automatically build a static lib if we build a DLL. 10406 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10407 enable_shared_with_static_runtimes=yes 10408 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10410 # Don't use ranlib 10411 old_postinstall_cmds='chmod 644 $oldlib' 10412 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10413 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10414 case $lt_outputfile in 10415 *.exe|*.EXE) ;; 10416 *) 10417 lt_outputfile=$lt_outputfile.exe 10418 lt_tool_outputfile=$lt_tool_outputfile.exe 10419 ;; 10420 esac~ 10421 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10422 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10423 $RM "$lt_outputfile.manifest"; 10424 fi' 10425 ;; 10426 *) 10427 # Assume MSVC wrapper 10428 hardcode_libdir_flag_spec=' ' 10429 allow_undefined_flag=unsupported 10430 # Tell ltmain to make .lib files, not .a files. 10431 libext=lib 10432 # Tell ltmain to make .dll files, not .so files. 10433 shrext_cmds=.dll 10434 # FIXME: Setting linknames here is a bad hack. 10435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10436 # The linker will automatically build a .lib file if we build a DLL. 10437 old_archive_from_new_cmds='true' 10438 # FIXME: Should let the user specify the lib program. 10439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10440 enable_shared_with_static_runtimes=yes 10441 ;; 10442 esac 10443 ;; 10444 10445 darwin* | rhapsody*) 10446 10447 10448 archive_cmds_need_lc=no 10449 hardcode_direct=no 10450 hardcode_automatic=yes 10451 hardcode_shlibpath_var=unsupported 10452 if test yes = "$lt_cv_ld_force_load"; then 10453 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\"`' 10454 10455 else 10456 whole_archive_flag_spec='' 10457 fi 10458 link_all_deplibs=yes 10459 allow_undefined_flag=$_lt_dar_allow_undefined 10460 case $cc_basename in 10461 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10462 *) _lt_dar_can_shared=$GCC ;; 10463 esac 10464 if test yes = "$_lt_dar_can_shared"; then 10465 output_verbose_link_cmd=func_echo_all 10466 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10467 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10468 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" 10469 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" 10470 10471 else 10472 ld_shlibs=no 10473 fi 10474 10475 ;; 10476 10477 dgux*) 10478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10479 hardcode_libdir_flag_spec='-L$libdir' 10480 hardcode_shlibpath_var=no 10481 ;; 10482 10483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10484 # support. Future versions do this automatically, but an explicit c++rt0.o 10485 # does not break anything, and helps significantly (at the cost of a little 10486 # extra space). 10487 freebsd2.2*) 10488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10489 hardcode_libdir_flag_spec='-R$libdir' 10490 hardcode_direct=yes 10491 hardcode_shlibpath_var=no 10492 ;; 10493 10494 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10495 freebsd2.*) 10496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10497 hardcode_direct=yes 10498 hardcode_minus_L=yes 10499 hardcode_shlibpath_var=no 10500 ;; 10501 10502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10503 freebsd* | dragonfly*) 10504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10505 hardcode_libdir_flag_spec='-R$libdir' 10506 hardcode_direct=yes 10507 hardcode_shlibpath_var=no 10508 ;; 10509 10510 hpux9*) 10511 if test yes = "$GCC"; then 10512 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' 10513 else 10514 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' 10515 fi 10516 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10517 hardcode_libdir_separator=: 10518 hardcode_direct=yes 10519 10520 # hardcode_minus_L: Not really in the search PATH, 10521 # but as the default location of the library. 10522 hardcode_minus_L=yes 10523 export_dynamic_flag_spec='$wl-E' 10524 ;; 10525 10526 hpux10*) 10527 if test yes,no = "$GCC,$with_gnu_ld"; then 10528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10529 else 10530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10531 fi 10532 if test no = "$with_gnu_ld"; then 10533 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10534 hardcode_libdir_separator=: 10535 hardcode_direct=yes 10536 hardcode_direct_absolute=yes 10537 export_dynamic_flag_spec='$wl-E' 10538 # hardcode_minus_L: Not really in the search PATH, 10539 # but as the default location of the library. 10540 hardcode_minus_L=yes 10541 fi 10542 ;; 10543 10544 hpux11*) 10545 if test yes,no = "$GCC,$with_gnu_ld"; then 10546 case $host_cpu in 10547 hppa*64*) 10548 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10549 ;; 10550 ia64*) 10551 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10552 ;; 10553 *) 10554 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10555 ;; 10556 esac 10557 else 10558 case $host_cpu in 10559 hppa*64*) 10560 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10561 ;; 10562 ia64*) 10563 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10564 ;; 10565 *) 10566 10567 # Older versions of the 11.00 compiler do not understand -b yet 10568 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10570$as_echo_n "checking if $CC understands -b... " >&6; } 10571if ${lt_cv_prog_compiler__b+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573else 10574 lt_cv_prog_compiler__b=no 10575 save_LDFLAGS=$LDFLAGS 10576 LDFLAGS="$LDFLAGS -b" 10577 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10579 # The linker can only warn and ignore the option if not recognized 10580 # So say no if there are warnings 10581 if test -s conftest.err; then 10582 # Append any errors to the config.log. 10583 cat conftest.err 1>&5 10584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10586 if diff conftest.exp conftest.er2 >/dev/null; then 10587 lt_cv_prog_compiler__b=yes 10588 fi 10589 else 10590 lt_cv_prog_compiler__b=yes 10591 fi 10592 fi 10593 $RM -r conftest* 10594 LDFLAGS=$save_LDFLAGS 10595 10596fi 10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10598$as_echo "$lt_cv_prog_compiler__b" >&6; } 10599 10600if test yes = "$lt_cv_prog_compiler__b"; then 10601 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10602else 10603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10604fi 10605 10606 ;; 10607 esac 10608 fi 10609 if test no = "$with_gnu_ld"; then 10610 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10611 hardcode_libdir_separator=: 10612 10613 case $host_cpu in 10614 hppa*64*|ia64*) 10615 hardcode_direct=no 10616 hardcode_shlibpath_var=no 10617 ;; 10618 *) 10619 hardcode_direct=yes 10620 hardcode_direct_absolute=yes 10621 export_dynamic_flag_spec='$wl-E' 10622 10623 # hardcode_minus_L: Not really in the search PATH, 10624 # but as the default location of the library. 10625 hardcode_minus_L=yes 10626 ;; 10627 esac 10628 fi 10629 ;; 10630 10631 irix5* | irix6* | nonstopux*) 10632 if test yes = "$GCC"; then 10633 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' 10634 # Try to use the -exported_symbol ld option, if it does not 10635 # work, assume that -exports_file does not work either and 10636 # implicitly export all symbols. 10637 # This should be the same for all languages, so no per-tag cache variable. 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10639$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10640if ${lt_cv_irix_exported_symbol+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642else 10643 save_LDFLAGS=$LDFLAGS 10644 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10646/* end confdefs.h. */ 10647int foo (void) { return 0; } 10648_ACEOF 10649if ac_fn_c_try_link "$LINENO"; then : 10650 lt_cv_irix_exported_symbol=yes 10651else 10652 lt_cv_irix_exported_symbol=no 10653fi 10654rm -f core conftest.err conftest.$ac_objext \ 10655 conftest$ac_exeext conftest.$ac_ext 10656 LDFLAGS=$save_LDFLAGS 10657fi 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10659$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10660 if test yes = "$lt_cv_irix_exported_symbol"; then 10661 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' 10662 fi 10663 link_all_deplibs=no 10664 else 10665 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' 10666 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' 10667 fi 10668 archive_cmds_need_lc='no' 10669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10670 hardcode_libdir_separator=: 10671 inherit_rpath=yes 10672 link_all_deplibs=yes 10673 ;; 10674 10675 linux*) 10676 case $cc_basename in 10677 tcc*) 10678 # Fabrice Bellard et al's Tiny C Compiler 10679 ld_shlibs=yes 10680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10681 ;; 10682 esac 10683 ;; 10684 10685 netbsd* | netbsdelf*-gnu) 10686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10688 else 10689 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10690 fi 10691 hardcode_libdir_flag_spec='-R$libdir' 10692 hardcode_direct=yes 10693 hardcode_shlibpath_var=no 10694 ;; 10695 10696 newsos6) 10697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10698 hardcode_direct=yes 10699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10700 hardcode_libdir_separator=: 10701 hardcode_shlibpath_var=no 10702 ;; 10703 10704 *nto* | *qnx*) 10705 ;; 10706 10707 openbsd* | bitrig*) 10708 if test -f /usr/libexec/ld.so; then 10709 hardcode_direct=yes 10710 hardcode_shlibpath_var=no 10711 hardcode_direct_absolute=yes 10712 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10715 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10716 export_dynamic_flag_spec='$wl-E' 10717 else 10718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10719 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10720 fi 10721 else 10722 ld_shlibs=no 10723 fi 10724 ;; 10725 10726 os2*) 10727 hardcode_libdir_flag_spec='-L$libdir' 10728 hardcode_minus_L=yes 10729 allow_undefined_flag=unsupported 10730 shrext_cmds=.dll 10731 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10732 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10733 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10734 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10735 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10736 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10737 emximp -o $lib $output_objdir/$libname.def' 10738 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10741 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10742 prefix_cmds="$SED"~ 10743 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10744 prefix_cmds="$prefix_cmds -e 1d"; 10745 fi~ 10746 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10747 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10748 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10749 emximp -o $lib $output_objdir/$libname.def' 10750 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10751 enable_shared_with_static_runtimes=yes 10752 ;; 10753 10754 osf3*) 10755 if test yes = "$GCC"; then 10756 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10757 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' 10758 else 10759 allow_undefined_flag=' -expect_unresolved \*' 10760 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' 10761 fi 10762 archive_cmds_need_lc='no' 10763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10764 hardcode_libdir_separator=: 10765 ;; 10766 10767 osf4* | osf5*) # as osf3* with the addition of -msym flag 10768 if test yes = "$GCC"; then 10769 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10770 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' 10771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10772 else 10773 allow_undefined_flag=' -expect_unresolved \*' 10774 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' 10775 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~ 10776 $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' 10777 10778 # Both c and cxx compiler support -rpath directly 10779 hardcode_libdir_flag_spec='-rpath $libdir' 10780 fi 10781 archive_cmds_need_lc='no' 10782 hardcode_libdir_separator=: 10783 ;; 10784 10785 solaris*) 10786 no_undefined_flag=' -z defs' 10787 if test yes = "$GCC"; then 10788 wlarc='$wl' 10789 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10791 $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' 10792 else 10793 case `$CC -V 2>&1` in 10794 *"Compilers 5.0"*) 10795 wlarc='' 10796 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10798 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10799 ;; 10800 *) 10801 wlarc='$wl' 10802 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10803 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10804 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10805 ;; 10806 esac 10807 fi 10808 hardcode_libdir_flag_spec='-R$libdir' 10809 hardcode_shlibpath_var=no 10810 case $host_os in 10811 solaris2.[0-5] | solaris2.[0-5].*) ;; 10812 *) 10813 # The compiler driver will combine and reorder linker options, 10814 # but understands '-z linker_flag'. GCC discards it without '$wl', 10815 # but is careful enough not to reorder. 10816 # Supported since Solaris 2.6 (maybe 2.5.1?) 10817 if test yes = "$GCC"; then 10818 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10819 else 10820 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10821 fi 10822 ;; 10823 esac 10824 link_all_deplibs=yes 10825 ;; 10826 10827 sunos4*) 10828 if test sequent = "$host_vendor"; then 10829 # Use $CC to link under sequent, because it throws in some extra .o 10830 # files that make .init and .fini sections work. 10831 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10832 else 10833 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10834 fi 10835 hardcode_libdir_flag_spec='-L$libdir' 10836 hardcode_direct=yes 10837 hardcode_minus_L=yes 10838 hardcode_shlibpath_var=no 10839 ;; 10840 10841 sysv4) 10842 case $host_vendor in 10843 sni) 10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10845 hardcode_direct=yes # is this really true??? 10846 ;; 10847 siemens) 10848 ## LD is ld it makes a PLAMLIB 10849 ## CC just makes a GrossModule. 10850 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10851 reload_cmds='$CC -r -o $output$reload_objs' 10852 hardcode_direct=no 10853 ;; 10854 motorola) 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10857 ;; 10858 esac 10859 runpath_var='LD_RUN_PATH' 10860 hardcode_shlibpath_var=no 10861 ;; 10862 10863 sysv4.3*) 10864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10865 hardcode_shlibpath_var=no 10866 export_dynamic_flag_spec='-Bexport' 10867 ;; 10868 10869 sysv4*MP*) 10870 if test -d /usr/nec; then 10871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10872 hardcode_shlibpath_var=no 10873 runpath_var=LD_RUN_PATH 10874 hardcode_runpath_var=yes 10875 ld_shlibs=yes 10876 fi 10877 ;; 10878 10879 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10880 no_undefined_flag='$wl-z,text' 10881 archive_cmds_need_lc=no 10882 hardcode_shlibpath_var=no 10883 runpath_var='LD_RUN_PATH' 10884 10885 if test yes = "$GCC"; then 10886 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10887 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10888 else 10889 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10890 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10891 fi 10892 ;; 10893 10894 sysv5* | sco3.2v5* | sco5v6*) 10895 # Note: We CANNOT use -z defs as we might desire, because we do not 10896 # link with -lc, and that would cause any symbols used from libc to 10897 # always be unresolved, which means just about no library would 10898 # ever link correctly. If we're not using GNU ld we use -z text 10899 # though, which does catch some bad symbols but isn't as heavy-handed 10900 # as -z defs. 10901 no_undefined_flag='$wl-z,text' 10902 allow_undefined_flag='$wl-z,nodefs' 10903 archive_cmds_need_lc=no 10904 hardcode_shlibpath_var=no 10905 hardcode_libdir_flag_spec='$wl-R,$libdir' 10906 hardcode_libdir_separator=':' 10907 link_all_deplibs=yes 10908 export_dynamic_flag_spec='$wl-Bexport' 10909 runpath_var='LD_RUN_PATH' 10910 10911 if test yes = "$GCC"; then 10912 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10913 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10914 else 10915 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10916 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10917 fi 10918 ;; 10919 10920 uts4*) 10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10922 hardcode_libdir_flag_spec='-L$libdir' 10923 hardcode_shlibpath_var=no 10924 ;; 10925 10926 *) 10927 ld_shlibs=no 10928 ;; 10929 esac 10930 10931 if test sni = "$host_vendor"; then 10932 case $host in 10933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10934 export_dynamic_flag_spec='$wl-Blargedynsym' 10935 ;; 10936 esac 10937 fi 10938 fi 10939 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10941$as_echo "$ld_shlibs" >&6; } 10942test no = "$ld_shlibs" && can_build_shared=no 10943 10944with_gnu_ld=$with_gnu_ld 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960# 10961# Do we need to explicitly link libc? 10962# 10963case "x$archive_cmds_need_lc" in 10964x|xyes) 10965 # Assume -lc should be added 10966 archive_cmds_need_lc=yes 10967 10968 if test yes,yes = "$GCC,$enable_shared"; then 10969 case $archive_cmds in 10970 *'~'*) 10971 # FIXME: we may have to deal with multi-command sequences. 10972 ;; 10973 '$CC '*) 10974 # Test whether the compiler implicitly links with -lc since on some 10975 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10976 # to ld, don't add -lc before -lgcc. 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10978$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10979if ${lt_cv_archive_cmds_need_lc+:} false; then : 10980 $as_echo_n "(cached) " >&6 10981else 10982 $RM conftest* 10983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10984 10985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10986 (eval $ac_compile) 2>&5 10987 ac_status=$? 10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10989 test $ac_status = 0; } 2>conftest.err; then 10990 soname=conftest 10991 lib=conftest 10992 libobjs=conftest.$ac_objext 10993 deplibs= 10994 wl=$lt_prog_compiler_wl 10995 pic_flag=$lt_prog_compiler_pic 10996 compiler_flags=-v 10997 linker_flags=-v 10998 verstring= 10999 output_objdir=. 11000 libname=conftest 11001 lt_save_allow_undefined_flag=$allow_undefined_flag 11002 allow_undefined_flag= 11003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11004 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11005 ac_status=$? 11006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11007 test $ac_status = 0; } 11008 then 11009 lt_cv_archive_cmds_need_lc=no 11010 else 11011 lt_cv_archive_cmds_need_lc=yes 11012 fi 11013 allow_undefined_flag=$lt_save_allow_undefined_flag 11014 else 11015 cat conftest.err 1>&5 11016 fi 11017 $RM conftest* 11018 11019fi 11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11021$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11022 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11023 ;; 11024 esac 11025 fi 11026 ;; 11027esac 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11181$as_echo_n "checking dynamic linker characteristics... " >&6; } 11182 11183if test yes = "$GCC"; then 11184 case $host_os in 11185 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11186 *) lt_awk_arg='/^libraries:/' ;; 11187 esac 11188 case $host_os in 11189 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11190 *) lt_sed_strip_eq='s|=/|/|g' ;; 11191 esac 11192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11193 case $lt_search_path_spec in 11194 *\;*) 11195 # if the path contains ";" then we assume it to be the separator 11196 # otherwise default to the standard path separator (i.e. ":") - it is 11197 # assumed that no part of a normal pathname contains ";" but that should 11198 # okay in the real world where ";" in dirpaths is itself problematic. 11199 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11200 ;; 11201 *) 11202 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11203 ;; 11204 esac 11205 # Ok, now we have the path, separated by spaces, we can step through it 11206 # and add multilib dir if necessary... 11207 lt_tmp_lt_search_path_spec= 11208 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11209 # ...but if some path component already ends with the multilib dir we assume 11210 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11211 case "$lt_multi_os_dir; $lt_search_path_spec " in 11212 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11213 lt_multi_os_dir= 11214 ;; 11215 esac 11216 for lt_sys_path in $lt_search_path_spec; do 11217 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11219 elif test -n "$lt_multi_os_dir"; then 11220 test -d "$lt_sys_path" && \ 11221 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11222 fi 11223 done 11224 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11225BEGIN {RS = " "; FS = "/|\n";} { 11226 lt_foo = ""; 11227 lt_count = 0; 11228 for (lt_i = NF; lt_i > 0; lt_i--) { 11229 if ($lt_i != "" && $lt_i != ".") { 11230 if ($lt_i == "..") { 11231 lt_count++; 11232 } else { 11233 if (lt_count == 0) { 11234 lt_foo = "/" $lt_i lt_foo; 11235 } else { 11236 lt_count--; 11237 } 11238 } 11239 } 11240 } 11241 if (lt_foo != "") { lt_freq[lt_foo]++; } 11242 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11243}'` 11244 # AWK program above erroneously prepends '/' to C:/dos/paths 11245 # for these hosts. 11246 case $host_os in 11247 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11248 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11249 esac 11250 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11251else 11252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11253fi 11254library_names_spec= 11255libname_spec='lib$name' 11256soname_spec= 11257shrext_cmds=.so 11258postinstall_cmds= 11259postuninstall_cmds= 11260finish_cmds= 11261finish_eval= 11262shlibpath_var= 11263shlibpath_overrides_runpath=unknown 11264version_type=none 11265dynamic_linker="$host_os ld.so" 11266sys_lib_dlsearch_path_spec="/lib /usr/lib" 11267need_lib_prefix=unknown 11268hardcode_into_libs=no 11269 11270# when you set need_version to no, make sure it does not cause -set_version 11271# flags to be left without arguments 11272need_version=unknown 11273 11274 11275 11276case $host_os in 11277aix3*) 11278 version_type=linux # correct to gnu/linux during the next big refactor 11279 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11280 shlibpath_var=LIBPATH 11281 11282 # AIX 3 has no versioning support, so we append a major version to the name. 11283 soname_spec='$libname$release$shared_ext$major' 11284 ;; 11285 11286aix[4-9]*) 11287 version_type=linux # correct to gnu/linux during the next big refactor 11288 need_lib_prefix=no 11289 need_version=no 11290 hardcode_into_libs=yes 11291 if test ia64 = "$host_cpu"; then 11292 # AIX 5 supports IA64 11293 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11294 shlibpath_var=LD_LIBRARY_PATH 11295 else 11296 # With GCC up to 2.95.x, collect2 would create an import file 11297 # for dependence libraries. The import file would start with 11298 # the line '#! .'. This would cause the generated library to 11299 # depend on '.', always an invalid library. This was fixed in 11300 # development snapshots of GCC prior to 3.0. 11301 case $host_os in 11302 aix4 | aix4.[01] | aix4.[01].*) 11303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11304 echo ' yes ' 11305 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11306 : 11307 else 11308 can_build_shared=no 11309 fi 11310 ;; 11311 esac 11312 # Using Import Files as archive members, it is possible to support 11313 # filename-based versioning of shared library archives on AIX. While 11314 # this would work for both with and without runtime linking, it will 11315 # prevent static linking of such archives. So we do filename-based 11316 # shared library versioning with .so extension only, which is used 11317 # when both runtime linking and shared linking is enabled. 11318 # Unfortunately, runtime linking may impact performance, so we do 11319 # not want this to be the default eventually. Also, we use the 11320 # versioned .so libs for executables only if there is the -brtl 11321 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11322 # To allow for filename-based versioning support, we need to create 11323 # libNAME.so.V as an archive file, containing: 11324 # *) an Import File, referring to the versioned filename of the 11325 # archive as well as the shared archive member, telling the 11326 # bitwidth (32 or 64) of that shared object, and providing the 11327 # list of exported symbols of that shared object, eventually 11328 # decorated with the 'weak' keyword 11329 # *) the shared object with the F_LOADONLY flag set, to really avoid 11330 # it being seen by the linker. 11331 # At run time we better use the real file rather than another symlink, 11332 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11333 11334 case $with_aix_soname,$aix_use_runtimelinking in 11335 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11336 # soname into executable. Probably we can add versioning support to 11337 # collect2, so additional links can be useful in future. 11338 aix,yes) # traditional libtool 11339 dynamic_linker='AIX unversionable lib.so' 11340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11341 # instead of lib<name>.a to let people know that these are not 11342 # typical AIX shared libraries. 11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11344 ;; 11345 aix,no) # traditional AIX only 11346 dynamic_linker='AIX lib.a(lib.so.V)' 11347 # We preserve .a as extension for shared libraries through AIX4.2 11348 # and later when we are not doing run time linking. 11349 library_names_spec='$libname$release.a $libname.a' 11350 soname_spec='$libname$release$shared_ext$major' 11351 ;; 11352 svr4,*) # full svr4 only 11353 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11354 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11355 # We do not specify a path in Import Files, so LIBPATH fires. 11356 shlibpath_overrides_runpath=yes 11357 ;; 11358 *,yes) # both, prefer svr4 11359 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11360 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11361 # unpreferred sharedlib libNAME.a needs extra handling 11362 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"' 11363 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"' 11364 # We do not specify a path in Import Files, so LIBPATH fires. 11365 shlibpath_overrides_runpath=yes 11366 ;; 11367 *,no) # both, prefer aix 11368 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11369 library_names_spec='$libname$release.a $libname.a' 11370 soname_spec='$libname$release$shared_ext$major' 11371 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11372 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)' 11373 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"' 11374 ;; 11375 esac 11376 shlibpath_var=LIBPATH 11377 fi 11378 ;; 11379 11380amigaos*) 11381 case $host_cpu in 11382 powerpc) 11383 # Since July 2007 AmigaOS4 officially supports .so libraries. 11384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11386 ;; 11387 m68k) 11388 library_names_spec='$libname.ixlibrary $libname.a' 11389 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11390 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' 11391 ;; 11392 esac 11393 ;; 11394 11395beos*) 11396 library_names_spec='$libname$shared_ext' 11397 dynamic_linker="$host_os ld.so" 11398 shlibpath_var=LIBRARY_PATH 11399 ;; 11400 11401bsdi[45]*) 11402 version_type=linux # correct to gnu/linux during the next big refactor 11403 need_version=no 11404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11405 soname_spec='$libname$release$shared_ext$major' 11406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11407 shlibpath_var=LD_LIBRARY_PATH 11408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11410 # the default ld.so.conf also contains /usr/contrib/lib and 11411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11412 # libtool to hard-code these into programs 11413 ;; 11414 11415cygwin* | mingw* | pw32* | cegcc*) 11416 version_type=windows 11417 shrext_cmds=.dll 11418 need_version=no 11419 need_lib_prefix=no 11420 11421 case $GCC,$cc_basename in 11422 yes,*) 11423 # gcc 11424 library_names_spec='$libname.dll.a' 11425 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11426 postinstall_cmds='base_file=`basename \$file`~ 11427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11428 dldir=$destdir/`dirname \$dlpath`~ 11429 test -d \$dldir || mkdir -p \$dldir~ 11430 $install_prog $dir/$dlname \$dldir/$dlname~ 11431 chmod a+x \$dldir/$dlname~ 11432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11434 fi' 11435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11436 dlpath=$dir/\$dldll~ 11437 $RM \$dlpath' 11438 shlibpath_overrides_runpath=yes 11439 11440 case $host_os in 11441 cygwin*) 11442 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11443 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11444 11445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11446 ;; 11447 mingw* | cegcc*) 11448 # MinGW DLLs use traditional 'lib' prefix 11449 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11450 ;; 11451 pw32*) 11452 # pw32 DLLs use 'pw' prefix rather than 'lib' 11453 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11454 ;; 11455 esac 11456 dynamic_linker='Win32 ld.exe' 11457 ;; 11458 11459 *,cl*) 11460 # Native MSVC 11461 libname_spec='$name' 11462 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11463 library_names_spec='$libname.dll.lib' 11464 11465 case $build_os in 11466 mingw*) 11467 sys_lib_search_path_spec= 11468 lt_save_ifs=$IFS 11469 IFS=';' 11470 for lt_path in $LIB 11471 do 11472 IFS=$lt_save_ifs 11473 # Let DOS variable expansion print the short 8.3 style file name. 11474 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11475 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11476 done 11477 IFS=$lt_save_ifs 11478 # Convert to MSYS style. 11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11480 ;; 11481 cygwin*) 11482 # Convert to unix form, then to dos form, then back to unix form 11483 # but this time dos style (no spaces!) so that the unix form looks 11484 # like /cygdrive/c/PROGRA~1:/cygdr... 11485 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11486 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11487 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11488 ;; 11489 *) 11490 sys_lib_search_path_spec=$LIB 11491 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11492 # It is most probably a Windows format PATH. 11493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11494 else 11495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11496 fi 11497 # FIXME: find the short name or the path components, as spaces are 11498 # common. (e.g. "Program Files" -> "PROGRA~1") 11499 ;; 11500 esac 11501 11502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11503 postinstall_cmds='base_file=`basename \$file`~ 11504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11505 dldir=$destdir/`dirname \$dlpath`~ 11506 test -d \$dldir || mkdir -p \$dldir~ 11507 $install_prog $dir/$dlname \$dldir/$dlname' 11508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11509 dlpath=$dir/\$dldll~ 11510 $RM \$dlpath' 11511 shlibpath_overrides_runpath=yes 11512 dynamic_linker='Win32 link.exe' 11513 ;; 11514 11515 *) 11516 # Assume MSVC wrapper 11517 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11518 dynamic_linker='Win32 ld.exe' 11519 ;; 11520 esac 11521 # FIXME: first we should search . and the directory the executable is in 11522 shlibpath_var=PATH 11523 ;; 11524 11525darwin* | rhapsody*) 11526 dynamic_linker="$host_os dyld" 11527 version_type=darwin 11528 need_lib_prefix=no 11529 need_version=no 11530 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11531 soname_spec='$libname$release$major$shared_ext' 11532 shlibpath_overrides_runpath=yes 11533 shlibpath_var=DYLD_LIBRARY_PATH 11534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11535 11536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11538 ;; 11539 11540dgux*) 11541 version_type=linux # correct to gnu/linux during the next big refactor 11542 need_lib_prefix=no 11543 need_version=no 11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11545 soname_spec='$libname$release$shared_ext$major' 11546 shlibpath_var=LD_LIBRARY_PATH 11547 ;; 11548 11549freebsd* | dragonfly*) 11550 # DragonFly does not have aout. When/if they implement a new 11551 # versioning mechanism, adjust this. 11552 if test -x /usr/bin/objformat; then 11553 objformat=`/usr/bin/objformat` 11554 else 11555 case $host_os in 11556 freebsd[23].*) objformat=aout ;; 11557 *) objformat=elf ;; 11558 esac 11559 fi 11560 version_type=freebsd-$objformat 11561 case $version_type in 11562 freebsd-elf*) 11563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11564 soname_spec='$libname$release$shared_ext$major' 11565 need_version=no 11566 need_lib_prefix=no 11567 ;; 11568 freebsd-*) 11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11570 need_version=yes 11571 ;; 11572 esac 11573 shlibpath_var=LD_LIBRARY_PATH 11574 case $host_os in 11575 freebsd2.*) 11576 shlibpath_overrides_runpath=yes 11577 ;; 11578 freebsd3.[01]* | freebsdelf3.[01]*) 11579 shlibpath_overrides_runpath=yes 11580 hardcode_into_libs=yes 11581 ;; 11582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11584 shlibpath_overrides_runpath=no 11585 hardcode_into_libs=yes 11586 ;; 11587 *) # from 4.6 on, and DragonFly 11588 shlibpath_overrides_runpath=yes 11589 hardcode_into_libs=yes 11590 ;; 11591 esac 11592 ;; 11593 11594haiku*) 11595 version_type=linux # correct to gnu/linux during the next big refactor 11596 need_lib_prefix=no 11597 need_version=no 11598 dynamic_linker="$host_os runtime_loader" 11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11600 soname_spec='$libname$release$shared_ext$major' 11601 shlibpath_var=LIBRARY_PATH 11602 shlibpath_overrides_runpath=no 11603 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11604 hardcode_into_libs=yes 11605 ;; 11606 11607hpux9* | hpux10* | hpux11*) 11608 # Give a soname corresponding to the major version so that dld.sl refuses to 11609 # link against other versions. 11610 version_type=sunos 11611 need_lib_prefix=no 11612 need_version=no 11613 case $host_cpu in 11614 ia64*) 11615 shrext_cmds='.so' 11616 hardcode_into_libs=yes 11617 dynamic_linker="$host_os dld.so" 11618 shlibpath_var=LD_LIBRARY_PATH 11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11621 soname_spec='$libname$release$shared_ext$major' 11622 if test 32 = "$HPUX_IA64_MODE"; then 11623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11624 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11625 else 11626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11627 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11628 fi 11629 ;; 11630 hppa*64*) 11631 shrext_cmds='.sl' 11632 hardcode_into_libs=yes 11633 dynamic_linker="$host_os dld.sl" 11634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11637 soname_spec='$libname$release$shared_ext$major' 11638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11640 ;; 11641 *) 11642 shrext_cmds='.sl' 11643 dynamic_linker="$host_os dld.sl" 11644 shlibpath_var=SHLIB_PATH 11645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11647 soname_spec='$libname$release$shared_ext$major' 11648 ;; 11649 esac 11650 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11651 postinstall_cmds='chmod 555 $lib' 11652 # or fails outright, so override atomically: 11653 install_override_mode=555 11654 ;; 11655 11656interix[3-9]*) 11657 version_type=linux # correct to gnu/linux during the next big refactor 11658 need_lib_prefix=no 11659 need_version=no 11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11661 soname_spec='$libname$release$shared_ext$major' 11662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11663 shlibpath_var=LD_LIBRARY_PATH 11664 shlibpath_overrides_runpath=no 11665 hardcode_into_libs=yes 11666 ;; 11667 11668irix5* | irix6* | nonstopux*) 11669 case $host_os in 11670 nonstopux*) version_type=nonstopux ;; 11671 *) 11672 if test yes = "$lt_cv_prog_gnu_ld"; then 11673 version_type=linux # correct to gnu/linux during the next big refactor 11674 else 11675 version_type=irix 11676 fi ;; 11677 esac 11678 need_lib_prefix=no 11679 need_version=no 11680 soname_spec='$libname$release$shared_ext$major' 11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11682 case $host_os in 11683 irix5* | nonstopux*) 11684 libsuff= shlibsuff= 11685 ;; 11686 *) 11687 case $LD in # libtool.m4 will add one of these switches to LD 11688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11689 libsuff= shlibsuff= libmagic=32-bit;; 11690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11691 libsuff=32 shlibsuff=N32 libmagic=N32;; 11692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11693 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11694 *) libsuff= shlibsuff= libmagic=never-match;; 11695 esac 11696 ;; 11697 esac 11698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11699 shlibpath_overrides_runpath=no 11700 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11701 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11702 hardcode_into_libs=yes 11703 ;; 11704 11705# No shared lib support for Linux oldld, aout, or coff. 11706linux*oldld* | linux*aout* | linux*coff*) 11707 dynamic_linker=no 11708 ;; 11709 11710linux*android*) 11711 version_type=none # Android doesn't support versioned libraries. 11712 need_lib_prefix=no 11713 need_version=no 11714 library_names_spec='$libname$release$shared_ext' 11715 soname_spec='$libname$release$shared_ext' 11716 finish_cmds= 11717 shlibpath_var=LD_LIBRARY_PATH 11718 shlibpath_overrides_runpath=yes 11719 11720 # This implies no fast_install, which is unacceptable. 11721 # Some rework will be needed to allow for fast_install 11722 # before this can be enabled. 11723 hardcode_into_libs=yes 11724 11725 dynamic_linker='Android linker' 11726 # Don't embed -rpath directories since the linker doesn't support them. 11727 hardcode_libdir_flag_spec='-L$libdir' 11728 ;; 11729 11730# This must be glibc/ELF. 11731linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11732 version_type=linux # correct to gnu/linux during the next big refactor 11733 need_lib_prefix=no 11734 need_version=no 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 soname_spec='$libname$release$shared_ext$major' 11737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11738 shlibpath_var=LD_LIBRARY_PATH 11739 shlibpath_overrides_runpath=no 11740 11741 # Some binutils ld are patched to set DT_RUNPATH 11742 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 lt_cv_shlibpath_overrides_runpath=no 11746 save_LDFLAGS=$LDFLAGS 11747 save_libdir=$libdir 11748 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11749 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752 11753int 11754main () 11755{ 11756 11757 ; 11758 return 0; 11759} 11760_ACEOF 11761if ac_fn_c_try_link "$LINENO"; then : 11762 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11763 lt_cv_shlibpath_overrides_runpath=yes 11764fi 11765fi 11766rm -f core conftest.err conftest.$ac_objext \ 11767 conftest$ac_exeext conftest.$ac_ext 11768 LDFLAGS=$save_LDFLAGS 11769 libdir=$save_libdir 11770 11771fi 11772 11773 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11774 11775 # This implies no fast_install, which is unacceptable. 11776 # Some rework will be needed to allow for fast_install 11777 # before this can be enabled. 11778 hardcode_into_libs=yes 11779 11780 # Ideally, we could use ldconfig to report *all* directores which are 11781 # searched for libraries, however this is still not possible. Aside from not 11782 # being certain /sbin/ldconfig is available, command 11783 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11784 # even though it is searched at run-time. Try to do the best guess by 11785 # appending ld.so.conf contents (and includes) to the search path. 11786 if test -f /etc/ld.so.conf; then 11787 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' ' '` 11788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11789 fi 11790 11791 # We used to test for /lib/ld.so.1 and disable shared libraries on 11792 # powerpc, because MkLinux only supported shared libraries with the 11793 # GNU dynamic linker. Since this was broken with cross compilers, 11794 # most powerpc-linux boxes support dynamic linking these days and 11795 # people can always --disable-shared, the test was removed, and we 11796 # assume the GNU/Linux dynamic linker is in use. 11797 dynamic_linker='GNU/Linux ld.so' 11798 ;; 11799 11800netbsdelf*-gnu) 11801 version_type=linux 11802 need_lib_prefix=no 11803 need_version=no 11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11805 soname_spec='${libname}${release}${shared_ext}$major' 11806 shlibpath_var=LD_LIBRARY_PATH 11807 shlibpath_overrides_runpath=no 11808 hardcode_into_libs=yes 11809 dynamic_linker='NetBSD ld.elf_so' 11810 ;; 11811 11812netbsd*) 11813 version_type=sunos 11814 need_lib_prefix=no 11815 need_version=no 11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11819 dynamic_linker='NetBSD (a.out) ld.so' 11820 else 11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11822 soname_spec='$libname$release$shared_ext$major' 11823 dynamic_linker='NetBSD ld.elf_so' 11824 fi 11825 shlibpath_var=LD_LIBRARY_PATH 11826 shlibpath_overrides_runpath=yes 11827 hardcode_into_libs=yes 11828 ;; 11829 11830newsos6) 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11833 shlibpath_var=LD_LIBRARY_PATH 11834 shlibpath_overrides_runpath=yes 11835 ;; 11836 11837*nto* | *qnx*) 11838 version_type=qnx 11839 need_lib_prefix=no 11840 need_version=no 11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11842 soname_spec='$libname$release$shared_ext$major' 11843 shlibpath_var=LD_LIBRARY_PATH 11844 shlibpath_overrides_runpath=no 11845 hardcode_into_libs=yes 11846 dynamic_linker='ldqnx.so' 11847 ;; 11848 11849openbsd* | bitrig*) 11850 version_type=sunos 11851 sys_lib_dlsearch_path_spec=/usr/lib 11852 need_lib_prefix=no 11853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11854 need_version=no 11855 else 11856 need_version=yes 11857 fi 11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=yes 11862 ;; 11863 11864os2*) 11865 libname_spec='$name' 11866 version_type=windows 11867 shrext_cmds=.dll 11868 need_version=no 11869 need_lib_prefix=no 11870 # OS/2 can only load a DLL with a base name of 8 characters or less. 11871 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11872 v=$($ECHO $release$versuffix | tr -d .-); 11873 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11874 $ECHO $n$v`$shared_ext' 11875 library_names_spec='${libname}_dll.$libext' 11876 dynamic_linker='OS/2 ld.exe' 11877 shlibpath_var=BEGINLIBPATH 11878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11880 postinstall_cmds='base_file=`basename \$file`~ 11881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11882 dldir=$destdir/`dirname \$dlpath`~ 11883 test -d \$dldir || mkdir -p \$dldir~ 11884 $install_prog $dir/$dlname \$dldir/$dlname~ 11885 chmod a+x \$dldir/$dlname~ 11886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11888 fi' 11889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11890 dlpath=$dir/\$dldll~ 11891 $RM \$dlpath' 11892 ;; 11893 11894osf3* | osf4* | osf5*) 11895 version_type=osf 11896 need_lib_prefix=no 11897 need_version=no 11898 soname_spec='$libname$release$shared_ext$major' 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11903 ;; 11904 11905rdos*) 11906 dynamic_linker=no 11907 ;; 11908 11909solaris*) 11910 version_type=linux # correct to gnu/linux during the next big refactor 11911 need_lib_prefix=no 11912 need_version=no 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11914 soname_spec='$libname$release$shared_ext$major' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=yes 11917 hardcode_into_libs=yes 11918 # ldd complains unless libraries are executable 11919 postinstall_cmds='chmod +x $lib' 11920 ;; 11921 11922sunos4*) 11923 version_type=sunos 11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11926 shlibpath_var=LD_LIBRARY_PATH 11927 shlibpath_overrides_runpath=yes 11928 if test yes = "$with_gnu_ld"; then 11929 need_lib_prefix=no 11930 fi 11931 need_version=yes 11932 ;; 11933 11934sysv4 | sysv4.3*) 11935 version_type=linux # correct to gnu/linux during the next big refactor 11936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11937 soname_spec='$libname$release$shared_ext$major' 11938 shlibpath_var=LD_LIBRARY_PATH 11939 case $host_vendor in 11940 sni) 11941 shlibpath_overrides_runpath=no 11942 need_lib_prefix=no 11943 runpath_var=LD_RUN_PATH 11944 ;; 11945 siemens) 11946 need_lib_prefix=no 11947 ;; 11948 motorola) 11949 need_lib_prefix=no 11950 need_version=no 11951 shlibpath_overrides_runpath=no 11952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11953 ;; 11954 esac 11955 ;; 11956 11957sysv4*MP*) 11958 if test -d /usr/nec; then 11959 version_type=linux # correct to gnu/linux during the next big refactor 11960 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11961 soname_spec='$libname$shared_ext.$major' 11962 shlibpath_var=LD_LIBRARY_PATH 11963 fi 11964 ;; 11965 11966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11967 version_type=sco 11968 need_lib_prefix=no 11969 need_version=no 11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11971 soname_spec='$libname$release$shared_ext$major' 11972 shlibpath_var=LD_LIBRARY_PATH 11973 shlibpath_overrides_runpath=yes 11974 hardcode_into_libs=yes 11975 if test yes = "$with_gnu_ld"; then 11976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11977 else 11978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11979 case $host_os in 11980 sco3.2v5*) 11981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11982 ;; 11983 esac 11984 fi 11985 sys_lib_dlsearch_path_spec='/usr/lib' 11986 ;; 11987 11988tpf*) 11989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11990 version_type=linux # correct to gnu/linux during the next big refactor 11991 need_lib_prefix=no 11992 need_version=no 11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11994 shlibpath_var=LD_LIBRARY_PATH 11995 shlibpath_overrides_runpath=no 11996 hardcode_into_libs=yes 11997 ;; 11998 11999uts4*) 12000 version_type=linux # correct to gnu/linux during the next big refactor 12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12002 soname_spec='$libname$release$shared_ext$major' 12003 shlibpath_var=LD_LIBRARY_PATH 12004 ;; 12005 12006*) 12007 dynamic_linker=no 12008 ;; 12009esac 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12011$as_echo "$dynamic_linker" >&6; } 12012test no = "$dynamic_linker" && can_build_shared=no 12013 12014variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12015if test yes = "$GCC"; then 12016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12017fi 12018 12019if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12020 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12021fi 12022 12023if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12024 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12025fi 12026 12027# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12028configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12029 12030# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12031func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12032 12033# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12034configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12133$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12134hardcode_action= 12135if test -n "$hardcode_libdir_flag_spec" || 12136 test -n "$runpath_var" || 12137 test yes = "$hardcode_automatic"; then 12138 12139 # We can hardcode non-existent directories. 12140 if test no != "$hardcode_direct" && 12141 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12142 # have to relink, otherwise we might link with an installed library 12143 # when we should be linking with a yet-to-be-installed one 12144 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12145 test no != "$hardcode_minus_L"; then 12146 # Linking always hardcodes the temporary library directory. 12147 hardcode_action=relink 12148 else 12149 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12150 hardcode_action=immediate 12151 fi 12152else 12153 # We cannot hardcode anything, or else we can only hardcode existing 12154 # directories. 12155 hardcode_action=unsupported 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12158$as_echo "$hardcode_action" >&6; } 12159 12160if test relink = "$hardcode_action" || 12161 test yes = "$inherit_rpath"; then 12162 # Fast installation is not supported 12163 enable_fast_install=no 12164elif test yes = "$shlibpath_overrides_runpath" || 12165 test no = "$enable_shared"; then 12166 # Fast installation is not necessary 12167 enable_fast_install=needless 12168fi 12169 12170 12171 12172 12173 12174 12175 if test yes != "$enable_dlopen"; then 12176 enable_dlopen=unknown 12177 enable_dlopen_self=unknown 12178 enable_dlopen_self_static=unknown 12179else 12180 lt_cv_dlopen=no 12181 lt_cv_dlopen_libs= 12182 12183 case $host_os in 12184 beos*) 12185 lt_cv_dlopen=load_add_on 12186 lt_cv_dlopen_libs= 12187 lt_cv_dlopen_self=yes 12188 ;; 12189 12190 mingw* | pw32* | cegcc*) 12191 lt_cv_dlopen=LoadLibrary 12192 lt_cv_dlopen_libs= 12193 ;; 12194 12195 cygwin*) 12196 lt_cv_dlopen=dlopen 12197 lt_cv_dlopen_libs= 12198 ;; 12199 12200 darwin*) 12201 # if libdl is installed we need to link against it 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12203$as_echo_n "checking for dlopen in -ldl... " >&6; } 12204if ${ac_cv_lib_dl_dlopen+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 ac_check_lib_save_LIBS=$LIBS 12208LIBS="-ldl $LIBS" 12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12210/* end confdefs.h. */ 12211 12212/* Override any GCC internal prototype to avoid an error. 12213 Use char because int might match the return type of a GCC 12214 builtin and then its argument prototype would still apply. */ 12215#ifdef __cplusplus 12216extern "C" 12217#endif 12218char dlopen (); 12219int 12220main () 12221{ 12222return dlopen (); 12223 ; 12224 return 0; 12225} 12226_ACEOF 12227if ac_fn_c_try_link "$LINENO"; then : 12228 ac_cv_lib_dl_dlopen=yes 12229else 12230 ac_cv_lib_dl_dlopen=no 12231fi 12232rm -f core conftest.err conftest.$ac_objext \ 12233 conftest$ac_exeext conftest.$ac_ext 12234LIBS=$ac_check_lib_save_LIBS 12235fi 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12237$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12238if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12239 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12240else 12241 12242 lt_cv_dlopen=dyld 12243 lt_cv_dlopen_libs= 12244 lt_cv_dlopen_self=yes 12245 12246fi 12247 12248 ;; 12249 12250 tpf*) 12251 # Don't try to run any link tests for TPF. We know it's impossible 12252 # because TPF is a cross-compiler, and we know how we open DSOs. 12253 lt_cv_dlopen=dlopen 12254 lt_cv_dlopen_libs= 12255 lt_cv_dlopen_self=no 12256 ;; 12257 12258 *) 12259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12260if test "x$ac_cv_func_shl_load" = xyes; then : 12261 lt_cv_dlopen=shl_load 12262else 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12264$as_echo_n "checking for shl_load in -ldld... " >&6; } 12265if ${ac_cv_lib_dld_shl_load+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 ac_check_lib_save_LIBS=$LIBS 12269LIBS="-ldld $LIBS" 12270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12271/* end confdefs.h. */ 12272 12273/* Override any GCC internal prototype to avoid an error. 12274 Use char because int might match the return type of a GCC 12275 builtin and then its argument prototype would still apply. */ 12276#ifdef __cplusplus 12277extern "C" 12278#endif 12279char shl_load (); 12280int 12281main () 12282{ 12283return shl_load (); 12284 ; 12285 return 0; 12286} 12287_ACEOF 12288if ac_fn_c_try_link "$LINENO"; then : 12289 ac_cv_lib_dld_shl_load=yes 12290else 12291 ac_cv_lib_dld_shl_load=no 12292fi 12293rm -f core conftest.err conftest.$ac_objext \ 12294 conftest$ac_exeext conftest.$ac_ext 12295LIBS=$ac_check_lib_save_LIBS 12296fi 12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12298$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12299if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12300 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12301else 12302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12303if test "x$ac_cv_func_dlopen" = xyes; then : 12304 lt_cv_dlopen=dlopen 12305else 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12307$as_echo_n "checking for dlopen in -ldl... " >&6; } 12308if ${ac_cv_lib_dl_dlopen+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310else 12311 ac_check_lib_save_LIBS=$LIBS 12312LIBS="-ldl $LIBS" 12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315 12316/* Override any GCC internal prototype to avoid an error. 12317 Use char because int might match the return type of a GCC 12318 builtin and then its argument prototype would still apply. */ 12319#ifdef __cplusplus 12320extern "C" 12321#endif 12322char dlopen (); 12323int 12324main () 12325{ 12326return dlopen (); 12327 ; 12328 return 0; 12329} 12330_ACEOF 12331if ac_fn_c_try_link "$LINENO"; then : 12332 ac_cv_lib_dl_dlopen=yes 12333else 12334 ac_cv_lib_dl_dlopen=no 12335fi 12336rm -f core conftest.err conftest.$ac_objext \ 12337 conftest$ac_exeext conftest.$ac_ext 12338LIBS=$ac_check_lib_save_LIBS 12339fi 12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12341$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12342if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12343 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12344else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12346$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12347if ${ac_cv_lib_svld_dlopen+:} false; then : 12348 $as_echo_n "(cached) " >&6 12349else 12350 ac_check_lib_save_LIBS=$LIBS 12351LIBS="-lsvld $LIBS" 12352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12353/* end confdefs.h. */ 12354 12355/* Override any GCC internal prototype to avoid an error. 12356 Use char because int might match the return type of a GCC 12357 builtin and then its argument prototype would still apply. */ 12358#ifdef __cplusplus 12359extern "C" 12360#endif 12361char dlopen (); 12362int 12363main () 12364{ 12365return dlopen (); 12366 ; 12367 return 0; 12368} 12369_ACEOF 12370if ac_fn_c_try_link "$LINENO"; then : 12371 ac_cv_lib_svld_dlopen=yes 12372else 12373 ac_cv_lib_svld_dlopen=no 12374fi 12375rm -f core conftest.err conftest.$ac_objext \ 12376 conftest$ac_exeext conftest.$ac_ext 12377LIBS=$ac_check_lib_save_LIBS 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12380$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12381if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12383else 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12385$as_echo_n "checking for dld_link in -ldld... " >&6; } 12386if ${ac_cv_lib_dld_dld_link+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 ac_check_lib_save_LIBS=$LIBS 12390LIBS="-ldld $LIBS" 12391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392/* end confdefs.h. */ 12393 12394/* Override any GCC internal prototype to avoid an error. 12395 Use char because int might match the return type of a GCC 12396 builtin and then its argument prototype would still apply. */ 12397#ifdef __cplusplus 12398extern "C" 12399#endif 12400char dld_link (); 12401int 12402main () 12403{ 12404return dld_link (); 12405 ; 12406 return 0; 12407} 12408_ACEOF 12409if ac_fn_c_try_link "$LINENO"; then : 12410 ac_cv_lib_dld_dld_link=yes 12411else 12412 ac_cv_lib_dld_dld_link=no 12413fi 12414rm -f core conftest.err conftest.$ac_objext \ 12415 conftest$ac_exeext conftest.$ac_ext 12416LIBS=$ac_check_lib_save_LIBS 12417fi 12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12419$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12420if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12421 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12422fi 12423 12424 12425fi 12426 12427 12428fi 12429 12430 12431fi 12432 12433 12434fi 12435 12436 12437fi 12438 12439 ;; 12440 esac 12441 12442 if test no = "$lt_cv_dlopen"; then 12443 enable_dlopen=no 12444 else 12445 enable_dlopen=yes 12446 fi 12447 12448 case $lt_cv_dlopen in 12449 dlopen) 12450 save_CPPFLAGS=$CPPFLAGS 12451 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12452 12453 save_LDFLAGS=$LDFLAGS 12454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12455 12456 save_LIBS=$LIBS 12457 LIBS="$lt_cv_dlopen_libs $LIBS" 12458 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12460$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12461if ${lt_cv_dlopen_self+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463else 12464 if test yes = "$cross_compiling"; then : 12465 lt_cv_dlopen_self=cross 12466else 12467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12468 lt_status=$lt_dlunknown 12469 cat > conftest.$ac_ext <<_LT_EOF 12470#line $LINENO "configure" 12471#include "confdefs.h" 12472 12473#if HAVE_DLFCN_H 12474#include <dlfcn.h> 12475#endif 12476 12477#include <stdio.h> 12478 12479#ifdef RTLD_GLOBAL 12480# define LT_DLGLOBAL RTLD_GLOBAL 12481#else 12482# ifdef DL_GLOBAL 12483# define LT_DLGLOBAL DL_GLOBAL 12484# else 12485# define LT_DLGLOBAL 0 12486# endif 12487#endif 12488 12489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12490 find out it does not work in some platform. */ 12491#ifndef LT_DLLAZY_OR_NOW 12492# ifdef RTLD_LAZY 12493# define LT_DLLAZY_OR_NOW RTLD_LAZY 12494# else 12495# ifdef DL_LAZY 12496# define LT_DLLAZY_OR_NOW DL_LAZY 12497# else 12498# ifdef RTLD_NOW 12499# define LT_DLLAZY_OR_NOW RTLD_NOW 12500# else 12501# ifdef DL_NOW 12502# define LT_DLLAZY_OR_NOW DL_NOW 12503# else 12504# define LT_DLLAZY_OR_NOW 0 12505# endif 12506# endif 12507# endif 12508# endif 12509#endif 12510 12511/* When -fvisibility=hidden is used, assume the code has been annotated 12512 correspondingly for the symbols needed. */ 12513#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12514int fnord () __attribute__((visibility("default"))); 12515#endif 12516 12517int fnord () { return 42; } 12518int main () 12519{ 12520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12521 int status = $lt_dlunknown; 12522 12523 if (self) 12524 { 12525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12526 else 12527 { 12528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12529 else puts (dlerror ()); 12530 } 12531 /* dlclose (self); */ 12532 } 12533 else 12534 puts (dlerror ()); 12535 12536 return status; 12537} 12538_LT_EOF 12539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12540 (eval $ac_link) 2>&5 12541 ac_status=$? 12542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12543 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12544 (./conftest; exit; ) >&5 2>/dev/null 12545 lt_status=$? 12546 case x$lt_status in 12547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12549 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12550 esac 12551 else : 12552 # compilation failed 12553 lt_cv_dlopen_self=no 12554 fi 12555fi 12556rm -fr conftest* 12557 12558 12559fi 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12561$as_echo "$lt_cv_dlopen_self" >&6; } 12562 12563 if test yes = "$lt_cv_dlopen_self"; then 12564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12566$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12567if ${lt_cv_dlopen_self_static+:} false; then : 12568 $as_echo_n "(cached) " >&6 12569else 12570 if test yes = "$cross_compiling"; then : 12571 lt_cv_dlopen_self_static=cross 12572else 12573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12574 lt_status=$lt_dlunknown 12575 cat > conftest.$ac_ext <<_LT_EOF 12576#line $LINENO "configure" 12577#include "confdefs.h" 12578 12579#if HAVE_DLFCN_H 12580#include <dlfcn.h> 12581#endif 12582 12583#include <stdio.h> 12584 12585#ifdef RTLD_GLOBAL 12586# define LT_DLGLOBAL RTLD_GLOBAL 12587#else 12588# ifdef DL_GLOBAL 12589# define LT_DLGLOBAL DL_GLOBAL 12590# else 12591# define LT_DLGLOBAL 0 12592# endif 12593#endif 12594 12595/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12596 find out it does not work in some platform. */ 12597#ifndef LT_DLLAZY_OR_NOW 12598# ifdef RTLD_LAZY 12599# define LT_DLLAZY_OR_NOW RTLD_LAZY 12600# else 12601# ifdef DL_LAZY 12602# define LT_DLLAZY_OR_NOW DL_LAZY 12603# else 12604# ifdef RTLD_NOW 12605# define LT_DLLAZY_OR_NOW RTLD_NOW 12606# else 12607# ifdef DL_NOW 12608# define LT_DLLAZY_OR_NOW DL_NOW 12609# else 12610# define LT_DLLAZY_OR_NOW 0 12611# endif 12612# endif 12613# endif 12614# endif 12615#endif 12616 12617/* When -fvisibility=hidden is used, assume the code has been annotated 12618 correspondingly for the symbols needed. */ 12619#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12620int fnord () __attribute__((visibility("default"))); 12621#endif 12622 12623int fnord () { return 42; } 12624int main () 12625{ 12626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12627 int status = $lt_dlunknown; 12628 12629 if (self) 12630 { 12631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12632 else 12633 { 12634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12635 else puts (dlerror ()); 12636 } 12637 /* dlclose (self); */ 12638 } 12639 else 12640 puts (dlerror ()); 12641 12642 return status; 12643} 12644_LT_EOF 12645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12646 (eval $ac_link) 2>&5 12647 ac_status=$? 12648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12649 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12650 (./conftest; exit; ) >&5 2>/dev/null 12651 lt_status=$? 12652 case x$lt_status in 12653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12656 esac 12657 else : 12658 # compilation failed 12659 lt_cv_dlopen_self_static=no 12660 fi 12661fi 12662rm -fr conftest* 12663 12664 12665fi 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12667$as_echo "$lt_cv_dlopen_self_static" >&6; } 12668 fi 12669 12670 CPPFLAGS=$save_CPPFLAGS 12671 LDFLAGS=$save_LDFLAGS 12672 LIBS=$save_LIBS 12673 ;; 12674 esac 12675 12676 case $lt_cv_dlopen_self in 12677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12678 *) enable_dlopen_self=unknown ;; 12679 esac 12680 12681 case $lt_cv_dlopen_self_static in 12682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12683 *) enable_dlopen_self_static=unknown ;; 12684 esac 12685fi 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703striplib= 12704old_striplib= 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12706$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12707if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12709 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12711$as_echo "yes" >&6; } 12712else 12713# FIXME - insert some real tests, host_os isn't really good enough 12714 case $host_os in 12715 darwin*) 12716 if test -n "$STRIP"; then 12717 striplib="$STRIP -x" 12718 old_striplib="$STRIP -S" 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12720$as_echo "yes" >&6; } 12721 else 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12723$as_echo "no" >&6; } 12724 fi 12725 ;; 12726 *) 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728$as_echo "no" >&6; } 12729 ;; 12730 esac 12731fi 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 # Report what library types will actually be built 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12746$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12748$as_echo "$can_build_shared" >&6; } 12749 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12751$as_echo_n "checking whether to build shared libraries... " >&6; } 12752 test no = "$can_build_shared" && enable_shared=no 12753 12754 # On AIX, shared libraries and static libraries use the same namespace, and 12755 # are all built from PIC. 12756 case $host_os in 12757 aix3*) 12758 test yes = "$enable_shared" && enable_static=no 12759 if test -n "$RANLIB"; then 12760 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12761 postinstall_cmds='$RANLIB $lib' 12762 fi 12763 ;; 12764 12765 aix[4-9]*) 12766 if test ia64 != "$host_cpu"; then 12767 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12768 yes,aix,yes) ;; # shared object as lib.so file only 12769 yes,svr4,*) ;; # shared object as lib.so archive member only 12770 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12771 esac 12772 fi 12773 ;; 12774 esac 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12776$as_echo "$enable_shared" >&6; } 12777 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12779$as_echo_n "checking whether to build static libraries... " >&6; } 12780 # Make sure either enable_shared or enable_static is yes. 12781 test yes = "$enable_shared" || enable_static=yes 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12783$as_echo "$enable_static" >&6; } 12784 12785 12786 12787 12788fi 12789ac_ext=c 12790ac_cpp='$CPP $CPPFLAGS' 12791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12793ac_compiler_gnu=$ac_cv_c_compiler_gnu 12794 12795CC=$lt_save_CC 12796 12797 if test -n "$CXX" && ( test no != "$CXX" && 12798 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12799 (test g++ != "$CXX"))); then 12800 ac_ext=cpp 12801ac_cpp='$CXXCPP $CPPFLAGS' 12802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12806$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12807if test -z "$CXXCPP"; then 12808 if ${ac_cv_prog_CXXCPP+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810else 12811 # Double quotes because CXXCPP needs to be expanded 12812 for CXXCPP in "$CXX -E" "/lib/cpp" 12813 do 12814 ac_preproc_ok=false 12815for ac_cxx_preproc_warn_flag in '' yes 12816do 12817 # Use a header file that comes with gcc, so configuring glibc 12818 # with a fresh cross-compiler works. 12819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12820 # <limits.h> exists even on freestanding compilers. 12821 # On the NeXT, cc -E runs the code through the compiler's parser, 12822 # not just through cpp. "Syntax error" is here to catch this case. 12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12824/* end confdefs.h. */ 12825@%:@ifdef __STDC__ 12826@%:@ include <limits.h> 12827@%:@else 12828@%:@ include <assert.h> 12829@%:@endif 12830 Syntax error 12831_ACEOF 12832if ac_fn_cxx_try_cpp "$LINENO"; then : 12833 12834else 12835 # Broken: fails on valid input. 12836continue 12837fi 12838rm -f conftest.err conftest.i conftest.$ac_ext 12839 12840 # OK, works on sane cases. Now check whether nonexistent headers 12841 # can be detected and how. 12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12843/* end confdefs.h. */ 12844@%:@include <ac_nonexistent.h> 12845_ACEOF 12846if ac_fn_cxx_try_cpp "$LINENO"; then : 12847 # Broken: success on invalid input. 12848continue 12849else 12850 # Passes both tests. 12851ac_preproc_ok=: 12852break 12853fi 12854rm -f conftest.err conftest.i conftest.$ac_ext 12855 12856done 12857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12858rm -f conftest.i conftest.err conftest.$ac_ext 12859if $ac_preproc_ok; then : 12860 break 12861fi 12862 12863 done 12864 ac_cv_prog_CXXCPP=$CXXCPP 12865 12866fi 12867 CXXCPP=$ac_cv_prog_CXXCPP 12868else 12869 ac_cv_prog_CXXCPP=$CXXCPP 12870fi 12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12872$as_echo "$CXXCPP" >&6; } 12873ac_preproc_ok=false 12874for ac_cxx_preproc_warn_flag in '' yes 12875do 12876 # Use a header file that comes with gcc, so configuring glibc 12877 # with a fresh cross-compiler works. 12878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12879 # <limits.h> exists even on freestanding compilers. 12880 # On the NeXT, cc -E runs the code through the compiler's parser, 12881 # not just through cpp. "Syntax error" is here to catch this case. 12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12883/* end confdefs.h. */ 12884@%:@ifdef __STDC__ 12885@%:@ include <limits.h> 12886@%:@else 12887@%:@ include <assert.h> 12888@%:@endif 12889 Syntax error 12890_ACEOF 12891if ac_fn_cxx_try_cpp "$LINENO"; then : 12892 12893else 12894 # Broken: fails on valid input. 12895continue 12896fi 12897rm -f conftest.err conftest.i conftest.$ac_ext 12898 12899 # OK, works on sane cases. Now check whether nonexistent headers 12900 # can be detected and how. 12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12902/* end confdefs.h. */ 12903@%:@include <ac_nonexistent.h> 12904_ACEOF 12905if ac_fn_cxx_try_cpp "$LINENO"; then : 12906 # Broken: success on invalid input. 12907continue 12908else 12909 # Passes both tests. 12910ac_preproc_ok=: 12911break 12912fi 12913rm -f conftest.err conftest.i conftest.$ac_ext 12914 12915done 12916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12917rm -f conftest.i conftest.err conftest.$ac_ext 12918if $ac_preproc_ok; then : 12919 12920else 12921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12923as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12924See \`config.log' for more details" "$LINENO" 5; } 12925fi 12926 12927ac_ext=c 12928ac_cpp='$CPP $CPPFLAGS' 12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12931ac_compiler_gnu=$ac_cv_c_compiler_gnu 12932 12933else 12934 _lt_caught_CXX_error=yes 12935fi 12936 12937ac_ext=cpp 12938ac_cpp='$CXXCPP $CPPFLAGS' 12939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12942 12943archive_cmds_need_lc_CXX=no 12944allow_undefined_flag_CXX= 12945always_export_symbols_CXX=no 12946archive_expsym_cmds_CXX= 12947compiler_needs_object_CXX=no 12948export_dynamic_flag_spec_CXX= 12949hardcode_direct_CXX=no 12950hardcode_direct_absolute_CXX=no 12951hardcode_libdir_flag_spec_CXX= 12952hardcode_libdir_separator_CXX= 12953hardcode_minus_L_CXX=no 12954hardcode_shlibpath_var_CXX=unsupported 12955hardcode_automatic_CXX=no 12956inherit_rpath_CXX=no 12957module_cmds_CXX= 12958module_expsym_cmds_CXX= 12959link_all_deplibs_CXX=unknown 12960old_archive_cmds_CXX=$old_archive_cmds 12961reload_flag_CXX=$reload_flag 12962reload_cmds_CXX=$reload_cmds 12963no_undefined_flag_CXX= 12964whole_archive_flag_spec_CXX= 12965enable_shared_with_static_runtimes_CXX=no 12966 12967# Source file extension for C++ test sources. 12968ac_ext=cpp 12969 12970# Object file extension for compiled C++ test sources. 12971objext=o 12972objext_CXX=$objext 12973 12974# No sense in running all these tests if we already determined that 12975# the CXX compiler isn't working. Some variables (like enable_shared) 12976# are currently assumed to apply to all compilers on this platform, 12977# and will be corrupted by setting them based on a non-working compiler. 12978if test yes != "$_lt_caught_CXX_error"; then 12979 # Code to be used in simple compile tests 12980 lt_simple_compile_test_code="int some_variable = 0;" 12981 12982 # Code to be used in simple link tests 12983 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12984 12985 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12986 12987 12988 12989 12990 12991 12992# If no C compiler was specified, use CC. 12993LTCC=${LTCC-"$CC"} 12994 12995# If no C compiler flags were specified, use CFLAGS. 12996LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12997 12998# Allow CC to be a program name with arguments. 12999compiler=$CC 13000 13001 13002 # save warnings/boilerplate of simple test code 13003 ac_outfile=conftest.$ac_objext 13004echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13006_lt_compiler_boilerplate=`cat conftest.err` 13007$RM conftest* 13008 13009 ac_outfile=conftest.$ac_objext 13010echo "$lt_simple_link_test_code" >conftest.$ac_ext 13011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13012_lt_linker_boilerplate=`cat conftest.err` 13013$RM -r conftest* 13014 13015 13016 # Allow CC to be a program name with arguments. 13017 lt_save_CC=$CC 13018 lt_save_CFLAGS=$CFLAGS 13019 lt_save_LD=$LD 13020 lt_save_GCC=$GCC 13021 GCC=$GXX 13022 lt_save_with_gnu_ld=$with_gnu_ld 13023 lt_save_path_LD=$lt_cv_path_LD 13024 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13025 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13026 else 13027 $as_unset lt_cv_prog_gnu_ld 13028 fi 13029 if test -n "${lt_cv_path_LDCXX+set}"; then 13030 lt_cv_path_LD=$lt_cv_path_LDCXX 13031 else 13032 $as_unset lt_cv_path_LD 13033 fi 13034 test -z "${LDCXX+set}" || LD=$LDCXX 13035 CC=${CXX-"c++"} 13036 CFLAGS=$CXXFLAGS 13037 compiler=$CC 13038 compiler_CXX=$CC 13039 func_cc_basename $compiler 13040cc_basename=$func_cc_basename_result 13041 13042 13043 if test -n "$compiler"; then 13044 # We don't want -fno-exception when compiling C++ code, so set the 13045 # no_builtin_flag separately 13046 if test yes = "$GXX"; then 13047 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13048 else 13049 lt_prog_compiler_no_builtin_flag_CXX= 13050 fi 13051 13052 if test yes = "$GXX"; then 13053 # Set up default GNU C++ configuration 13054 13055 13056 13057@%:@ Check whether --with-gnu-ld was given. 13058if test "${with_gnu_ld+set}" = set; then : 13059 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13060else 13061 with_gnu_ld=no 13062fi 13063 13064ac_prog=ld 13065if test yes = "$GCC"; then 13066 # Check if gcc -print-prog-name=ld gives a path. 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13068$as_echo_n "checking for ld used by $CC... " >&6; } 13069 case $host in 13070 *-*-mingw*) 13071 # gcc leaves a trailing carriage return, which upsets mingw 13072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13073 *) 13074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13075 esac 13076 case $ac_prog in 13077 # Accept absolute paths. 13078 [\\/]* | ?:[\\/]*) 13079 re_direlt='/[^/][^/]*/\.\./' 13080 # Canonicalize the pathname of ld 13081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13084 done 13085 test -z "$LD" && LD=$ac_prog 13086 ;; 13087 "") 13088 # If it fails, then pretend we aren't using GCC. 13089 ac_prog=ld 13090 ;; 13091 *) 13092 # If it is relative, then search for the first ld in PATH. 13093 with_gnu_ld=unknown 13094 ;; 13095 esac 13096elif test yes = "$with_gnu_ld"; then 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13098$as_echo_n "checking for GNU ld... " >&6; } 13099else 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13101$as_echo_n "checking for non-GNU ld... " >&6; } 13102fi 13103if ${lt_cv_path_LD+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105else 13106 if test -z "$LD"; then 13107 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13108 for ac_dir in $PATH; do 13109 IFS=$lt_save_ifs 13110 test -z "$ac_dir" && ac_dir=. 13111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13112 lt_cv_path_LD=$ac_dir/$ac_prog 13113 # Check to see if the program is GNU ld. I'd rather use --version, 13114 # but apparently some variants of GNU ld only accept -v. 13115 # Break only if it was the GNU/non-GNU ld that we prefer. 13116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13117 *GNU* | *'with BFD'*) 13118 test no != "$with_gnu_ld" && break 13119 ;; 13120 *) 13121 test yes != "$with_gnu_ld" && break 13122 ;; 13123 esac 13124 fi 13125 done 13126 IFS=$lt_save_ifs 13127else 13128 lt_cv_path_LD=$LD # Let the user override the test with a path. 13129fi 13130fi 13131 13132LD=$lt_cv_path_LD 13133if test -n "$LD"; then 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13135$as_echo "$LD" >&6; } 13136else 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13138$as_echo "no" >&6; } 13139fi 13140test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13142$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13143if ${lt_cv_prog_gnu_ld+:} false; then : 13144 $as_echo_n "(cached) " >&6 13145else 13146 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13147case `$LD -v 2>&1 </dev/null` in 13148*GNU* | *'with BFD'*) 13149 lt_cv_prog_gnu_ld=yes 13150 ;; 13151*) 13152 lt_cv_prog_gnu_ld=no 13153 ;; 13154esac 13155fi 13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13157$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13158with_gnu_ld=$lt_cv_prog_gnu_ld 13159 13160 13161 13162 13163 13164 13165 13166 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13167 # archiving commands below assume that GNU ld is being used. 13168 if test yes = "$with_gnu_ld"; then 13169 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13170 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' 13171 13172 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13173 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13174 13175 # If archive_cmds runs LD, not CC, wlarc should be empty 13176 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13177 # investigate it a little bit more. (MM) 13178 wlarc='$wl' 13179 13180 # ancient GNU ld didn't support --whole-archive et. al. 13181 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13182 $GREP 'no-whole-archive' > /dev/null; then 13183 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13184 else 13185 whole_archive_flag_spec_CXX= 13186 fi 13187 else 13188 with_gnu_ld=no 13189 wlarc= 13190 13191 # A generic and very simple default shared library creation 13192 # command for GNU C++ for the case where it uses the native 13193 # linker, instead of GNU ld. If possible, this setting should 13194 # overridden to take advantage of the native linker features on 13195 # the platform it is being used on. 13196 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13197 fi 13198 13199 # Commands to make compiler produce verbose output that lists 13200 # what "hidden" libraries, object files and flags are used when 13201 # linking a shared library. 13202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13203 13204 else 13205 GXX=no 13206 with_gnu_ld=no 13207 wlarc= 13208 fi 13209 13210 # PORTME: fill in a description of your system's C++ link characteristics 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13212$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13213 ld_shlibs_CXX=yes 13214 case $host_os in 13215 aix3*) 13216 # FIXME: insert proper C++ library support 13217 ld_shlibs_CXX=no 13218 ;; 13219 aix[4-9]*) 13220 if test ia64 = "$host_cpu"; then 13221 # On IA64, the linker does run time linking by default, so we don't 13222 # have to do anything special. 13223 aix_use_runtimelinking=no 13224 exp_sym_flag='-Bexport' 13225 no_entry_flag= 13226 else 13227 aix_use_runtimelinking=no 13228 13229 # Test if we are trying to use run time linking or normal 13230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13231 # have runtime linking enabled, and use it for executables. 13232 # For shared libraries, we enable/disable runtime linking 13233 # depending on the kind of the shared library created - 13234 # when "with_aix_soname,aix_use_runtimelinking" is: 13235 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13236 # "aix,yes" lib.so shared, rtl:yes, for executables 13237 # lib.a static archive 13238 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13239 # lib.a(lib.so.V) shared, rtl:no, for executables 13240 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13241 # lib.a(lib.so.V) shared, rtl:no 13242 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13243 # lib.a static archive 13244 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13245 for ld_flag in $LDFLAGS; do 13246 case $ld_flag in 13247 *-brtl*) 13248 aix_use_runtimelinking=yes 13249 break 13250 ;; 13251 esac 13252 done 13253 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13254 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13255 # so we don't have lib.a shared libs to link our executables. 13256 # We have to force runtime linking in this case. 13257 aix_use_runtimelinking=yes 13258 LDFLAGS="$LDFLAGS -Wl,-brtl" 13259 fi 13260 ;; 13261 esac 13262 13263 exp_sym_flag='-bexport' 13264 no_entry_flag='-bnoentry' 13265 fi 13266 13267 # When large executables or shared objects are built, AIX ld can 13268 # have problems creating the table of contents. If linking a library 13269 # or program results in "error TOC overflow" add -mminimal-toc to 13270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13272 13273 archive_cmds_CXX='' 13274 hardcode_direct_CXX=yes 13275 hardcode_direct_absolute_CXX=yes 13276 hardcode_libdir_separator_CXX=':' 13277 link_all_deplibs_CXX=yes 13278 file_list_spec_CXX='$wl-f,' 13279 case $with_aix_soname,$aix_use_runtimelinking in 13280 aix,*) ;; # no import file 13281 svr4,* | *,yes) # use import file 13282 # The Import File defines what to hardcode. 13283 hardcode_direct_CXX=no 13284 hardcode_direct_absolute_CXX=no 13285 ;; 13286 esac 13287 13288 if test yes = "$GXX"; then 13289 case $host_os in aix4.[012]|aix4.[012].*) 13290 # We only want to do this on AIX 4.2 and lower, the check 13291 # below for broken collect2 doesn't work under 4.3+ 13292 collect2name=`$CC -print-prog-name=collect2` 13293 if test -f "$collect2name" && 13294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13295 then 13296 # We have reworked collect2 13297 : 13298 else 13299 # We have old collect2 13300 hardcode_direct_CXX=unsupported 13301 # It fails to find uninstalled libraries when the uninstalled 13302 # path is not listed in the libpath. Setting hardcode_minus_L 13303 # to unsupported forces relinking 13304 hardcode_minus_L_CXX=yes 13305 hardcode_libdir_flag_spec_CXX='-L$libdir' 13306 hardcode_libdir_separator_CXX= 13307 fi 13308 esac 13309 shared_flag='-shared' 13310 if test yes = "$aix_use_runtimelinking"; then 13311 shared_flag=$shared_flag' $wl-G' 13312 fi 13313 # Need to ensure runtime linking is disabled for the traditional 13314 # shared library, or the linker may eventually find shared libraries 13315 # /with/ Import File - we do not want to mix them. 13316 shared_flag_aix='-shared' 13317 shared_flag_svr4='-shared $wl-G' 13318 else 13319 # not using gcc 13320 if test ia64 = "$host_cpu"; then 13321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13322 # chokes on -Wl,-G. The following line is correct: 13323 shared_flag='-G' 13324 else 13325 if test yes = "$aix_use_runtimelinking"; then 13326 shared_flag='$wl-G' 13327 else 13328 shared_flag='$wl-bM:SRE' 13329 fi 13330 shared_flag_aix='$wl-bM:SRE' 13331 shared_flag_svr4='$wl-G' 13332 fi 13333 fi 13334 13335 export_dynamic_flag_spec_CXX='$wl-bexpall' 13336 # It seems that -bexpall does not export symbols beginning with 13337 # underscore (_), so it is better to generate a list of symbols to 13338 # export. 13339 always_export_symbols_CXX=yes 13340 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13341 # Warning - without using the other runtime loading flags (-brtl), 13342 # -berok will link without error, but may produce a broken library. 13343 # The "-G" linker flag allows undefined symbols. 13344 no_undefined_flag_CXX='-bernotok' 13345 # Determine the default libpath from the value encoded in an empty 13346 # executable. 13347 if test set = "${lt_cv_aix_libpath+set}"; then 13348 aix_libpath=$lt_cv_aix_libpath 13349else 13350 if ${lt_cv_aix_libpath__CXX+:} false; then : 13351 $as_echo_n "(cached) " >&6 13352else 13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13354/* end confdefs.h. */ 13355 13356int 13357main () 13358{ 13359 13360 ; 13361 return 0; 13362} 13363_ACEOF 13364if ac_fn_cxx_try_link "$LINENO"; then : 13365 13366 lt_aix_libpath_sed=' 13367 /Import File Strings/,/^$/ { 13368 /^0/ { 13369 s/^0 *\([^ ]*\) *$/\1/ 13370 p 13371 } 13372 }' 13373 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13374 # Check for a 64-bit object if we didn't find anything. 13375 if test -z "$lt_cv_aix_libpath__CXX"; then 13376 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13377 fi 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381 if test -z "$lt_cv_aix_libpath__CXX"; then 13382 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13383 fi 13384 13385fi 13386 13387 aix_libpath=$lt_cv_aix_libpath__CXX 13388fi 13389 13390 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13391 13392 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 13393 else 13394 if test ia64 = "$host_cpu"; then 13395 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13396 allow_undefined_flag_CXX="-z nodefs" 13397 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" 13398 else 13399 # Determine the default libpath from the value encoded in an 13400 # empty executable. 13401 if test set = "${lt_cv_aix_libpath+set}"; then 13402 aix_libpath=$lt_cv_aix_libpath 13403else 13404 if ${lt_cv_aix_libpath__CXX+:} false; then : 13405 $as_echo_n "(cached) " >&6 13406else 13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13408/* end confdefs.h. */ 13409 13410int 13411main () 13412{ 13413 13414 ; 13415 return 0; 13416} 13417_ACEOF 13418if ac_fn_cxx_try_link "$LINENO"; then : 13419 13420 lt_aix_libpath_sed=' 13421 /Import File Strings/,/^$/ { 13422 /^0/ { 13423 s/^0 *\([^ ]*\) *$/\1/ 13424 p 13425 } 13426 }' 13427 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13428 # Check for a 64-bit object if we didn't find anything. 13429 if test -z "$lt_cv_aix_libpath__CXX"; then 13430 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13431 fi 13432fi 13433rm -f core conftest.err conftest.$ac_objext \ 13434 conftest$ac_exeext conftest.$ac_ext 13435 if test -z "$lt_cv_aix_libpath__CXX"; then 13436 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13437 fi 13438 13439fi 13440 13441 aix_libpath=$lt_cv_aix_libpath__CXX 13442fi 13443 13444 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13445 # Warning - without using the other run time loading flags, 13446 # -berok will link without error, but may produce a broken library. 13447 no_undefined_flag_CXX=' $wl-bernotok' 13448 allow_undefined_flag_CXX=' $wl-berok' 13449 if test yes = "$with_gnu_ld"; then 13450 # We only use this code for GNU lds that support --whole-archive. 13451 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13452 else 13453 # Exported symbols can be pulled into shared objects from archives 13454 whole_archive_flag_spec_CXX='$convenience' 13455 fi 13456 archive_cmds_need_lc_CXX=yes 13457 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13458 # -brtl affects multiple linker settings, -berok does not and is overridden later 13459 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13460 if test svr4 != "$with_aix_soname"; then 13461 # This is similar to how AIX traditionally builds its shared 13462 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13463 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' 13464 fi 13465 if test aix != "$with_aix_soname"; then 13466 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' 13467 else 13468 # used by -dlpreopen to get the symbols 13469 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13470 fi 13471 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13472 fi 13473 fi 13474 ;; 13475 13476 beos*) 13477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13478 allow_undefined_flag_CXX=unsupported 13479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13480 # support --undefined. This deserves some investigation. FIXME 13481 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13482 else 13483 ld_shlibs_CXX=no 13484 fi 13485 ;; 13486 13487 chorus*) 13488 case $cc_basename in 13489 *) 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 ;; 13493 esac 13494 ;; 13495 13496 cygwin* | mingw* | pw32* | cegcc*) 13497 case $GXX,$cc_basename in 13498 ,cl* | no,cl*) 13499 # Native MSVC 13500 # hardcode_libdir_flag_spec is actually meaningless, as there is 13501 # no search path for DLLs. 13502 hardcode_libdir_flag_spec_CXX=' ' 13503 allow_undefined_flag_CXX=unsupported 13504 always_export_symbols_CXX=yes 13505 file_list_spec_CXX='@' 13506 # Tell ltmain to make .lib files, not .a files. 13507 libext=lib 13508 # Tell ltmain to make .dll files, not .so files. 13509 shrext_cmds=.dll 13510 # FIXME: Setting linknames here is a bad hack. 13511 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13512 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13513 cp "$export_symbols" "$output_objdir/$soname.def"; 13514 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13515 else 13516 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13517 fi~ 13518 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13519 linknames=' 13520 # The linker will not automatically build a static lib if we build a DLL. 13521 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13522 enable_shared_with_static_runtimes_CXX=yes 13523 # Don't use ranlib 13524 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13525 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13526 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13527 case $lt_outputfile in 13528 *.exe|*.EXE) ;; 13529 *) 13530 lt_outputfile=$lt_outputfile.exe 13531 lt_tool_outputfile=$lt_tool_outputfile.exe 13532 ;; 13533 esac~ 13534 func_to_tool_file "$lt_outputfile"~ 13535 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13536 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13537 $RM "$lt_outputfile.manifest"; 13538 fi' 13539 ;; 13540 *) 13541 # g++ 13542 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13543 # as there is no search path for DLLs. 13544 hardcode_libdir_flag_spec_CXX='-L$libdir' 13545 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13546 allow_undefined_flag_CXX=unsupported 13547 always_export_symbols_CXX=no 13548 enable_shared_with_static_runtimes_CXX=yes 13549 13550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13551 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' 13552 # If the export-symbols file already is a .def file, use it as 13553 # is; otherwise, prepend EXPORTS... 13554 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13555 cp $export_symbols $output_objdir/$soname.def; 13556 else 13557 echo EXPORTS > $output_objdir/$soname.def; 13558 cat $export_symbols >> $output_objdir/$soname.def; 13559 fi~ 13560 $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' 13561 else 13562 ld_shlibs_CXX=no 13563 fi 13564 ;; 13565 esac 13566 ;; 13567 darwin* | rhapsody*) 13568 13569 13570 archive_cmds_need_lc_CXX=no 13571 hardcode_direct_CXX=no 13572 hardcode_automatic_CXX=yes 13573 hardcode_shlibpath_var_CXX=unsupported 13574 if test yes = "$lt_cv_ld_force_load"; then 13575 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\"`' 13576 13577 else 13578 whole_archive_flag_spec_CXX='' 13579 fi 13580 link_all_deplibs_CXX=yes 13581 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13582 case $cc_basename in 13583 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13584 *) _lt_dar_can_shared=$GCC ;; 13585 esac 13586 if test yes = "$_lt_dar_can_shared"; then 13587 output_verbose_link_cmd=func_echo_all 13588 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" 13589 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13590 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" 13591 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" 13592 if test yes != "$lt_cv_apple_cc_single_mod"; then 13593 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" 13594 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" 13595 fi 13596 13597 else 13598 ld_shlibs_CXX=no 13599 fi 13600 13601 ;; 13602 13603 os2*) 13604 hardcode_libdir_flag_spec_CXX='-L$libdir' 13605 hardcode_minus_L_CXX=yes 13606 allow_undefined_flag_CXX=unsupported 13607 shrext_cmds=.dll 13608 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13609 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13610 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13611 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13612 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13613 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13614 emximp -o $lib $output_objdir/$libname.def' 13615 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13618 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13619 prefix_cmds="$SED"~ 13620 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13621 prefix_cmds="$prefix_cmds -e 1d"; 13622 fi~ 13623 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13624 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13625 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13626 emximp -o $lib $output_objdir/$libname.def' 13627 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13628 enable_shared_with_static_runtimes_CXX=yes 13629 ;; 13630 13631 dgux*) 13632 case $cc_basename in 13633 ec++*) 13634 # FIXME: insert proper C++ library support 13635 ld_shlibs_CXX=no 13636 ;; 13637 ghcx*) 13638 # Green Hills C++ Compiler 13639 # FIXME: insert proper C++ library support 13640 ld_shlibs_CXX=no 13641 ;; 13642 *) 13643 # FIXME: insert proper C++ library support 13644 ld_shlibs_CXX=no 13645 ;; 13646 esac 13647 ;; 13648 13649 freebsd2.*) 13650 # C++ shared libraries reported to be fairly broken before 13651 # switch to ELF 13652 ld_shlibs_CXX=no 13653 ;; 13654 13655 freebsd-elf*) 13656 archive_cmds_need_lc_CXX=no 13657 ;; 13658 13659 freebsd* | dragonfly*) 13660 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13661 # conventions 13662 ld_shlibs_CXX=yes 13663 ;; 13664 13665 haiku*) 13666 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13667 link_all_deplibs_CXX=yes 13668 ;; 13669 13670 hpux9*) 13671 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13672 hardcode_libdir_separator_CXX=: 13673 export_dynamic_flag_spec_CXX='$wl-E' 13674 hardcode_direct_CXX=yes 13675 hardcode_minus_L_CXX=yes # Not in the search PATH, 13676 # but as the default 13677 # location of the library. 13678 13679 case $cc_basename in 13680 CC*) 13681 # FIXME: insert proper C++ library support 13682 ld_shlibs_CXX=no 13683 ;; 13684 aCC*) 13685 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' 13686 # Commands to make compiler produce verbose output that lists 13687 # what "hidden" libraries, object files and flags are used when 13688 # linking a shared library. 13689 # 13690 # There doesn't appear to be a way to prevent this compiler from 13691 # explicitly linking system object files so we need to strip them 13692 # from the output so that they don't get included in the library 13693 # dependencies. 13694 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"' 13695 ;; 13696 *) 13697 if test yes = "$GXX"; then 13698 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' 13699 else 13700 # FIXME: insert proper C++ library support 13701 ld_shlibs_CXX=no 13702 fi 13703 ;; 13704 esac 13705 ;; 13706 13707 hpux10*|hpux11*) 13708 if test no = "$with_gnu_ld"; then 13709 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13710 hardcode_libdir_separator_CXX=: 13711 13712 case $host_cpu in 13713 hppa*64*|ia64*) 13714 ;; 13715 *) 13716 export_dynamic_flag_spec_CXX='$wl-E' 13717 ;; 13718 esac 13719 fi 13720 case $host_cpu in 13721 hppa*64*|ia64*) 13722 hardcode_direct_CXX=no 13723 hardcode_shlibpath_var_CXX=no 13724 ;; 13725 *) 13726 hardcode_direct_CXX=yes 13727 hardcode_direct_absolute_CXX=yes 13728 hardcode_minus_L_CXX=yes # Not in the search PATH, 13729 # but as the default 13730 # location of the library. 13731 ;; 13732 esac 13733 13734 case $cc_basename in 13735 CC*) 13736 # FIXME: insert proper C++ library support 13737 ld_shlibs_CXX=no 13738 ;; 13739 aCC*) 13740 case $host_cpu in 13741 hppa*64*) 13742 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13743 ;; 13744 ia64*) 13745 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13746 ;; 13747 *) 13748 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13749 ;; 13750 esac 13751 # Commands to make compiler produce verbose output that lists 13752 # what "hidden" libraries, object files and flags are used when 13753 # linking a shared library. 13754 # 13755 # There doesn't appear to be a way to prevent this compiler from 13756 # explicitly linking system object files so we need to strip them 13757 # from the output so that they don't get included in the library 13758 # dependencies. 13759 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"' 13760 ;; 13761 *) 13762 if test yes = "$GXX"; then 13763 if test no = "$with_gnu_ld"; then 13764 case $host_cpu in 13765 hppa*64*) 13766 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13767 ;; 13768 ia64*) 13769 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13770 ;; 13771 *) 13772 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' 13773 ;; 13774 esac 13775 fi 13776 else 13777 # FIXME: insert proper C++ library support 13778 ld_shlibs_CXX=no 13779 fi 13780 ;; 13781 esac 13782 ;; 13783 13784 interix[3-9]*) 13785 hardcode_direct_CXX=no 13786 hardcode_shlibpath_var_CXX=no 13787 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13788 export_dynamic_flag_spec_CXX='$wl-E' 13789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13790 # Instead, shared libraries are loaded at an image base (0x10000000 by 13791 # default) and relocated if they conflict, which is a slow very memory 13792 # consuming and fragmenting process. To avoid this, we pick a random, 13793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13794 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13795 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' 13796 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' 13797 ;; 13798 irix5* | irix6*) 13799 case $cc_basename in 13800 CC*) 13801 # SGI C++ 13802 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' 13803 13804 # Archives containing C++ object files must be created using 13805 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13806 # necessary to make sure instantiated templates are included 13807 # in the archive. 13808 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13809 ;; 13810 *) 13811 if test yes = "$GXX"; then 13812 if test no = "$with_gnu_ld"; then 13813 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' 13814 else 13815 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' 13816 fi 13817 fi 13818 link_all_deplibs_CXX=yes 13819 ;; 13820 esac 13821 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13822 hardcode_libdir_separator_CXX=: 13823 inherit_rpath_CXX=yes 13824 ;; 13825 13826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13827 case $cc_basename in 13828 KCC*) 13829 # Kuck and Associates, Inc. (KAI) C++ Compiler 13830 13831 # KCC will only create a shared library if the output file 13832 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13833 # to its proper name (with version) after linking. 13834 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' 13835 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' 13836 # Commands to make compiler produce verbose output that lists 13837 # what "hidden" libraries, object files and flags are used when 13838 # linking a shared library. 13839 # 13840 # There doesn't appear to be a way to prevent this compiler from 13841 # explicitly linking system object files so we need to strip them 13842 # from the output so that they don't get included in the library 13843 # dependencies. 13844 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"' 13845 13846 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13847 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13848 13849 # Archives containing C++ object files must be created using 13850 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13852 ;; 13853 icpc* | ecpc* ) 13854 # Intel C++ 13855 with_gnu_ld=yes 13856 # version 8.0 and above of icpc choke on multiply defined symbols 13857 # if we add $predep_objects and $postdep_objects, however 7.1 and 13858 # earlier do not add the objects themselves. 13859 case `$CC -V 2>&1` in 13860 *"Version 7."*) 13861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13862 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' 13863 ;; 13864 *) # Version 8.0 or newer 13865 tmp_idyn= 13866 case $host_cpu in 13867 ia64*) tmp_idyn=' -i_dynamic';; 13868 esac 13869 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13870 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' 13871 ;; 13872 esac 13873 archive_cmds_need_lc_CXX=no 13874 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13875 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13876 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13877 ;; 13878 pgCC* | pgcpp*) 13879 # Portland Group C++ compiler 13880 case `$CC -V` in 13881 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13882 prelink_cmds_CXX='tpldir=Template.dir~ 13883 rm -rf $tpldir~ 13884 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13885 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13886 old_archive_cmds_CXX='tpldir=Template.dir~ 13887 rm -rf $tpldir~ 13888 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13889 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13890 $RANLIB $oldlib' 13891 archive_cmds_CXX='tpldir=Template.dir~ 13892 rm -rf $tpldir~ 13893 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13894 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13895 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13896 rm -rf $tpldir~ 13897 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13898 $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' 13899 ;; 13900 *) # Version 6 and above use weak symbols 13901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13902 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' 13903 ;; 13904 esac 13905 13906 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13907 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13908 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' 13909 ;; 13910 cxx*) 13911 # Compaq C++ 13912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13913 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' 13914 13915 runpath_var=LD_RUN_PATH 13916 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13917 hardcode_libdir_separator_CXX=: 13918 13919 # Commands to make compiler produce verbose output that lists 13920 # what "hidden" libraries, object files and flags are used when 13921 # linking a shared library. 13922 # 13923 # There doesn't appear to be a way to prevent this compiler from 13924 # explicitly linking system object files so we need to strip them 13925 # from the output so that they don't get included in the library 13926 # dependencies. 13927 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' 13928 ;; 13929 xl* | mpixl* | bgxl*) 13930 # IBM XL 8.0 on PPC, with GNU ld 13931 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13932 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13933 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13934 if test yes = "$supports_anon_versioning"; then 13935 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13937 echo "local: *; };" >> $output_objdir/$libname.ver~ 13938 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13939 fi 13940 ;; 13941 *) 13942 case `$CC -V 2>&1 | sed 5q` in 13943 *Sun\ C*) 13944 # Sun C++ 5.9 13945 no_undefined_flag_CXX=' -zdefs' 13946 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13947 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' 13948 hardcode_libdir_flag_spec_CXX='-R$libdir' 13949 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' 13950 compiler_needs_object_CXX=yes 13951 13952 # Not sure whether something based on 13953 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13954 # would be better. 13955 output_verbose_link_cmd='func_echo_all' 13956 13957 # Archives containing C++ object files must be created using 13958 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13959 # necessary to make sure instantiated templates are included 13960 # in the archive. 13961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13962 ;; 13963 esac 13964 ;; 13965 esac 13966 ;; 13967 13968 lynxos*) 13969 # FIXME: insert proper C++ library support 13970 ld_shlibs_CXX=no 13971 ;; 13972 13973 m88k*) 13974 # FIXME: insert proper C++ library support 13975 ld_shlibs_CXX=no 13976 ;; 13977 13978 mvs*) 13979 case $cc_basename in 13980 cxx*) 13981 # FIXME: insert proper C++ library support 13982 ld_shlibs_CXX=no 13983 ;; 13984 *) 13985 # FIXME: insert proper C++ library support 13986 ld_shlibs_CXX=no 13987 ;; 13988 esac 13989 ;; 13990 13991 netbsd*) 13992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13993 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13994 wlarc= 13995 hardcode_libdir_flag_spec_CXX='-R$libdir' 13996 hardcode_direct_CXX=yes 13997 hardcode_shlibpath_var_CXX=no 13998 fi 13999 # Workaround some broken pre-1.5 toolchains 14000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14001 ;; 14002 14003 *nto* | *qnx*) 14004 ld_shlibs_CXX=yes 14005 ;; 14006 14007 openbsd* | bitrig*) 14008 if test -f /usr/libexec/ld.so; then 14009 hardcode_direct_CXX=yes 14010 hardcode_shlibpath_var_CXX=no 14011 hardcode_direct_absolute_CXX=yes 14012 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14013 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14015 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14016 export_dynamic_flag_spec_CXX='$wl-E' 14017 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14018 fi 14019 output_verbose_link_cmd=func_echo_all 14020 else 14021 ld_shlibs_CXX=no 14022 fi 14023 ;; 14024 14025 osf3* | osf4* | osf5*) 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 14035 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14036 hardcode_libdir_separator_CXX=: 14037 14038 # Archives containing C++ object files must be created using 14039 # the KAI C++ compiler. 14040 case $host in 14041 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14042 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14043 esac 14044 ;; 14045 RCC*) 14046 # Rational C++ 2.4.1 14047 # FIXME: insert proper C++ library support 14048 ld_shlibs_CXX=no 14049 ;; 14050 cxx*) 14051 case $host in 14052 osf3*) 14053 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14054 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' 14055 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14056 ;; 14057 *) 14058 allow_undefined_flag_CXX=' -expect_unresolved \*' 14059 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' 14060 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14061 echo "-hidden">> $lib.exp~ 14062 $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~ 14063 $RM $lib.exp' 14064 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14065 ;; 14066 esac 14067 14068 hardcode_libdir_separator_CXX=: 14069 14070 # Commands to make compiler produce verbose output that lists 14071 # what "hidden" libraries, object files and flags are used when 14072 # linking a shared library. 14073 # 14074 # There doesn't appear to be a way to prevent this compiler from 14075 # explicitly linking system object files so we need to strip them 14076 # from the output so that they don't get included in the library 14077 # dependencies. 14078 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"' 14079 ;; 14080 *) 14081 if test yes,no = "$GXX,$with_gnu_ld"; then 14082 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14083 case $host in 14084 osf3*) 14085 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' 14086 ;; 14087 *) 14088 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' 14089 ;; 14090 esac 14091 14092 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14093 hardcode_libdir_separator_CXX=: 14094 14095 # Commands to make compiler produce verbose output that lists 14096 # what "hidden" libraries, object files and flags are used when 14097 # linking a shared library. 14098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14099 14100 else 14101 # FIXME: insert proper C++ library support 14102 ld_shlibs_CXX=no 14103 fi 14104 ;; 14105 esac 14106 ;; 14107 14108 psos*) 14109 # FIXME: insert proper C++ library support 14110 ld_shlibs_CXX=no 14111 ;; 14112 14113 sunos4*) 14114 case $cc_basename in 14115 CC*) 14116 # Sun C++ 4.x 14117 # FIXME: insert proper C++ library support 14118 ld_shlibs_CXX=no 14119 ;; 14120 lcc*) 14121 # Lucid 14122 # FIXME: insert proper C++ library support 14123 ld_shlibs_CXX=no 14124 ;; 14125 *) 14126 # FIXME: insert proper C++ library support 14127 ld_shlibs_CXX=no 14128 ;; 14129 esac 14130 ;; 14131 14132 solaris*) 14133 case $cc_basename in 14134 CC* | sunCC*) 14135 # Sun C++ 4.2, 5.x and Centerline C++ 14136 archive_cmds_need_lc_CXX=yes 14137 no_undefined_flag_CXX=' -zdefs' 14138 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14139 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14140 $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' 14141 14142 hardcode_libdir_flag_spec_CXX='-R$libdir' 14143 hardcode_shlibpath_var_CXX=no 14144 case $host_os in 14145 solaris2.[0-5] | solaris2.[0-5].*) ;; 14146 *) 14147 # The compiler driver will combine and reorder linker options, 14148 # but understands '-z linker_flag'. 14149 # Supported since Solaris 2.6 (maybe 2.5.1?) 14150 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14151 ;; 14152 esac 14153 link_all_deplibs_CXX=yes 14154 14155 output_verbose_link_cmd='func_echo_all' 14156 14157 # Archives containing C++ object files must be created using 14158 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14159 # necessary to make sure instantiated templates are included 14160 # in the archive. 14161 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14162 ;; 14163 gcx*) 14164 # Green Hills C++ Compiler 14165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14166 14167 # The C++ compiler must be used to create the archive. 14168 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14169 ;; 14170 *) 14171 # GNU C++ compiler with Solaris linker 14172 if test yes,no = "$GXX,$with_gnu_ld"; then 14173 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14174 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14175 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14176 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14177 $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' 14178 14179 # Commands to make compiler produce verbose output that lists 14180 # what "hidden" libraries, object files and flags are used when 14181 # linking a shared library. 14182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14183 else 14184 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14185 # platform. 14186 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14187 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14188 $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' 14189 14190 # Commands to make compiler produce verbose output that lists 14191 # what "hidden" libraries, object files and flags are used when 14192 # linking a shared library. 14193 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14194 fi 14195 14196 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14197 case $host_os in 14198 solaris2.[0-5] | solaris2.[0-5].*) ;; 14199 *) 14200 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14201 ;; 14202 esac 14203 fi 14204 ;; 14205 esac 14206 ;; 14207 14208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14209 no_undefined_flag_CXX='$wl-z,text' 14210 archive_cmds_need_lc_CXX=no 14211 hardcode_shlibpath_var_CXX=no 14212 runpath_var='LD_RUN_PATH' 14213 14214 case $cc_basename in 14215 CC*) 14216 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14217 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14218 ;; 14219 *) 14220 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14221 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14222 ;; 14223 esac 14224 ;; 14225 14226 sysv5* | sco3.2v5* | sco5v6*) 14227 # Note: We CANNOT use -z defs as we might desire, because we do not 14228 # link with -lc, and that would cause any symbols used from libc to 14229 # always be unresolved, which means just about no library would 14230 # ever link correctly. If we're not using GNU ld we use -z text 14231 # though, which does catch some bad symbols but isn't as heavy-handed 14232 # as -z defs. 14233 no_undefined_flag_CXX='$wl-z,text' 14234 allow_undefined_flag_CXX='$wl-z,nodefs' 14235 archive_cmds_need_lc_CXX=no 14236 hardcode_shlibpath_var_CXX=no 14237 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14238 hardcode_libdir_separator_CXX=':' 14239 link_all_deplibs_CXX=yes 14240 export_dynamic_flag_spec_CXX='$wl-Bexport' 14241 runpath_var='LD_RUN_PATH' 14242 14243 case $cc_basename in 14244 CC*) 14245 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14246 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14247 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14248 '"$old_archive_cmds_CXX" 14249 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14250 '"$reload_cmds_CXX" 14251 ;; 14252 *) 14253 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14254 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14255 ;; 14256 esac 14257 ;; 14258 14259 tandem*) 14260 case $cc_basename in 14261 NCC*) 14262 # NonStop-UX NCC 3.20 14263 # FIXME: insert proper C++ library support 14264 ld_shlibs_CXX=no 14265 ;; 14266 *) 14267 # FIXME: insert proper C++ library support 14268 ld_shlibs_CXX=no 14269 ;; 14270 esac 14271 ;; 14272 14273 vxworks*) 14274 # FIXME: insert proper C++ library support 14275 ld_shlibs_CXX=no 14276 ;; 14277 14278 *) 14279 # FIXME: insert proper C++ library support 14280 ld_shlibs_CXX=no 14281 ;; 14282 esac 14283 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14285$as_echo "$ld_shlibs_CXX" >&6; } 14286 test no = "$ld_shlibs_CXX" && can_build_shared=no 14287 14288 GCC_CXX=$GXX 14289 LD_CXX=$LD 14290 14291 ## CAVEAT EMPTOR: 14292 ## There is no encapsulation within the following macros, do not change 14293 ## the running order or otherwise move them around unless you know exactly 14294 ## what you are doing... 14295 # Dependencies to place before and after the object being linked: 14296predep_objects_CXX= 14297postdep_objects_CXX= 14298predeps_CXX= 14299postdeps_CXX= 14300compiler_lib_search_path_CXX= 14301 14302cat > conftest.$ac_ext <<_LT_EOF 14303class Foo 14304{ 14305public: 14306 Foo (void) { a = 0; } 14307private: 14308 int a; 14309}; 14310_LT_EOF 14311 14312 14313_lt_libdeps_save_CFLAGS=$CFLAGS 14314case "$CC $CFLAGS " in #( 14315*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14316*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14317*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14318esac 14319 14320if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14321 (eval $ac_compile) 2>&5 14322 ac_status=$? 14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14324 test $ac_status = 0; }; then 14325 # Parse the compiler output and extract the necessary 14326 # objects, libraries and library flags. 14327 14328 # Sentinel used to keep track of whether or not we are before 14329 # the conftest object file. 14330 pre_test_object_deps_done=no 14331 14332 for p in `eval "$output_verbose_link_cmd"`; do 14333 case $prev$p in 14334 14335 -L* | -R* | -l*) 14336 # Some compilers place space between "-{L,R}" and the path. 14337 # Remove the space. 14338 if test x-L = "$p" || 14339 test x-R = "$p"; then 14340 prev=$p 14341 continue 14342 fi 14343 14344 # Expand the sysroot to ease extracting the directories later. 14345 if test -z "$prev"; then 14346 case $p in 14347 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14348 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14349 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14350 esac 14351 fi 14352 case $p in 14353 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14354 esac 14355 if test no = "$pre_test_object_deps_done"; then 14356 case $prev in 14357 -L | -R) 14358 # Internal compiler library paths should come after those 14359 # provided the user. The postdeps already come after the 14360 # user supplied libs so there is no need to process them. 14361 if test -z "$compiler_lib_search_path_CXX"; then 14362 compiler_lib_search_path_CXX=$prev$p 14363 else 14364 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14365 fi 14366 ;; 14367 # The "-l" case would never come before the object being 14368 # linked, so don't bother handling this case. 14369 esac 14370 else 14371 if test -z "$postdeps_CXX"; then 14372 postdeps_CXX=$prev$p 14373 else 14374 postdeps_CXX="${postdeps_CXX} $prev$p" 14375 fi 14376 fi 14377 prev= 14378 ;; 14379 14380 *.lto.$objext) ;; # Ignore GCC LTO objects 14381 *.$objext) 14382 # This assumes that the test object file only shows up 14383 # once in the compiler output. 14384 if test "$p" = "conftest.$objext"; then 14385 pre_test_object_deps_done=yes 14386 continue 14387 fi 14388 14389 if test no = "$pre_test_object_deps_done"; then 14390 if test -z "$predep_objects_CXX"; then 14391 predep_objects_CXX=$p 14392 else 14393 predep_objects_CXX="$predep_objects_CXX $p" 14394 fi 14395 else 14396 if test -z "$postdep_objects_CXX"; then 14397 postdep_objects_CXX=$p 14398 else 14399 postdep_objects_CXX="$postdep_objects_CXX $p" 14400 fi 14401 fi 14402 ;; 14403 14404 *) ;; # Ignore the rest. 14405 14406 esac 14407 done 14408 14409 # Clean up. 14410 rm -f a.out a.exe 14411else 14412 echo "libtool.m4: error: problem compiling CXX test program" 14413fi 14414 14415$RM -f confest.$objext 14416CFLAGS=$_lt_libdeps_save_CFLAGS 14417 14418# PORTME: override above test on systems where it is broken 14419case $host_os in 14420interix[3-9]*) 14421 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14422 # hack all around it, let's just trust "g++" to DTRT. 14423 predep_objects_CXX= 14424 postdep_objects_CXX= 14425 postdeps_CXX= 14426 ;; 14427esac 14428 14429 14430case " $postdeps_CXX " in 14431*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14432esac 14433 compiler_lib_search_dirs_CXX= 14434if test -n "${compiler_lib_search_path_CXX}"; then 14435 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14436fi 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 lt_prog_compiler_wl_CXX= 14469lt_prog_compiler_pic_CXX= 14470lt_prog_compiler_static_CXX= 14471 14472 14473 # C++ specific cases for pic, static, wl, etc. 14474 if test yes = "$GXX"; then 14475 lt_prog_compiler_wl_CXX='-Wl,' 14476 lt_prog_compiler_static_CXX='-static' 14477 14478 case $host_os in 14479 aix*) 14480 # All AIX code is PIC. 14481 if test ia64 = "$host_cpu"; then 14482 # AIX 5 now supports IA64 processor 14483 lt_prog_compiler_static_CXX='-Bstatic' 14484 fi 14485 lt_prog_compiler_pic_CXX='-fPIC' 14486 ;; 14487 14488 amigaos*) 14489 case $host_cpu in 14490 powerpc) 14491 # see comment about AmigaOS4 .so support 14492 lt_prog_compiler_pic_CXX='-fPIC' 14493 ;; 14494 m68k) 14495 # FIXME: we need at least 68020 code to build shared libraries, but 14496 # adding the '-m68020' flag to GCC prevents building anything better, 14497 # like '-m68040'. 14498 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14499 ;; 14500 esac 14501 ;; 14502 14503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14504 # PIC is the default for these OSes. 14505 ;; 14506 mingw* | cygwin* | os2* | pw32* | cegcc*) 14507 # This hack is so that the source file can tell whether it is being 14508 # built for inclusion in a dll (and should export symbols for example). 14509 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14510 # (--disable-auto-import) libraries 14511 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14512 case $host_os in 14513 os2*) 14514 lt_prog_compiler_static_CXX='$wl-static' 14515 ;; 14516 esac 14517 ;; 14518 darwin* | rhapsody*) 14519 # PIC is the default on this platform 14520 # Common symbols not allowed in MH_DYLIB files 14521 lt_prog_compiler_pic_CXX='-fno-common' 14522 ;; 14523 *djgpp*) 14524 # DJGPP does not support shared libraries at all 14525 lt_prog_compiler_pic_CXX= 14526 ;; 14527 haiku*) 14528 # PIC is the default for Haiku. 14529 # The "-static" flag exists, but is broken. 14530 lt_prog_compiler_static_CXX= 14531 ;; 14532 interix[3-9]*) 14533 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14534 # Instead, we relocate shared libraries at runtime. 14535 ;; 14536 sysv4*MP*) 14537 if test -d /usr/nec; then 14538 lt_prog_compiler_pic_CXX=-Kconform_pic 14539 fi 14540 ;; 14541 hpux*) 14542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14544 # sets the default TLS model and affects inlining. 14545 case $host_cpu in 14546 hppa*64*) 14547 ;; 14548 *) 14549 lt_prog_compiler_pic_CXX='-fPIC' 14550 ;; 14551 esac 14552 ;; 14553 *qnx* | *nto*) 14554 # QNX uses GNU C++, but need to define -shared option too, otherwise 14555 # it will coredump. 14556 lt_prog_compiler_pic_CXX='-fPIC -shared' 14557 ;; 14558 *) 14559 lt_prog_compiler_pic_CXX='-fPIC' 14560 ;; 14561 esac 14562 else 14563 case $host_os in 14564 aix[4-9]*) 14565 # All AIX code is PIC. 14566 if test ia64 = "$host_cpu"; then 14567 # AIX 5 now supports IA64 processor 14568 lt_prog_compiler_static_CXX='-Bstatic' 14569 else 14570 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14571 fi 14572 ;; 14573 chorus*) 14574 case $cc_basename in 14575 cxch68*) 14576 # Green Hills C++ Compiler 14577 # _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" 14578 ;; 14579 esac 14580 ;; 14581 mingw* | cygwin* | os2* | pw32* | cegcc*) 14582 # This hack is so that the source file can tell whether it is being 14583 # built for inclusion in a dll (and should export symbols for example). 14584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14585 ;; 14586 dgux*) 14587 case $cc_basename in 14588 ec++*) 14589 lt_prog_compiler_pic_CXX='-KPIC' 14590 ;; 14591 ghcx*) 14592 # Green Hills C++ Compiler 14593 lt_prog_compiler_pic_CXX='-pic' 14594 ;; 14595 *) 14596 ;; 14597 esac 14598 ;; 14599 freebsd* | dragonfly*) 14600 # FreeBSD uses GNU C++ 14601 ;; 14602 hpux9* | hpux10* | hpux11*) 14603 case $cc_basename in 14604 CC*) 14605 lt_prog_compiler_wl_CXX='-Wl,' 14606 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14607 if test ia64 != "$host_cpu"; then 14608 lt_prog_compiler_pic_CXX='+Z' 14609 fi 14610 ;; 14611 aCC*) 14612 lt_prog_compiler_wl_CXX='-Wl,' 14613 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14614 case $host_cpu in 14615 hppa*64*|ia64*) 14616 # +Z the default 14617 ;; 14618 *) 14619 lt_prog_compiler_pic_CXX='+Z' 14620 ;; 14621 esac 14622 ;; 14623 *) 14624 ;; 14625 esac 14626 ;; 14627 interix*) 14628 # This is c89, which is MS Visual C++ (no shared libs) 14629 # Anyone wants to do a port? 14630 ;; 14631 irix5* | irix6* | nonstopux*) 14632 case $cc_basename in 14633 CC*) 14634 lt_prog_compiler_wl_CXX='-Wl,' 14635 lt_prog_compiler_static_CXX='-non_shared' 14636 # CC pic flag -KPIC is the default. 14637 ;; 14638 *) 14639 ;; 14640 esac 14641 ;; 14642 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14643 case $cc_basename in 14644 KCC*) 14645 # KAI C++ Compiler 14646 lt_prog_compiler_wl_CXX='--backend -Wl,' 14647 lt_prog_compiler_pic_CXX='-fPIC' 14648 ;; 14649 ecpc* ) 14650 # old Intel C++ for x86_64, which still supported -KPIC. 14651 lt_prog_compiler_wl_CXX='-Wl,' 14652 lt_prog_compiler_pic_CXX='-KPIC' 14653 lt_prog_compiler_static_CXX='-static' 14654 ;; 14655 icpc* ) 14656 # Intel C++, used to be incompatible with GCC. 14657 # ICC 10 doesn't accept -KPIC any more. 14658 lt_prog_compiler_wl_CXX='-Wl,' 14659 lt_prog_compiler_pic_CXX='-fPIC' 14660 lt_prog_compiler_static_CXX='-static' 14661 ;; 14662 pgCC* | pgcpp*) 14663 # Portland Group C++ compiler 14664 lt_prog_compiler_wl_CXX='-Wl,' 14665 lt_prog_compiler_pic_CXX='-fpic' 14666 lt_prog_compiler_static_CXX='-Bstatic' 14667 ;; 14668 cxx*) 14669 # Compaq C++ 14670 # Make sure the PIC flag is empty. It appears that all Alpha 14671 # Linux and Compaq Tru64 Unix objects are PIC. 14672 lt_prog_compiler_pic_CXX= 14673 lt_prog_compiler_static_CXX='-non_shared' 14674 ;; 14675 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14676 # IBM XL 8.0, 9.0 on PPC and BlueGene 14677 lt_prog_compiler_wl_CXX='-Wl,' 14678 lt_prog_compiler_pic_CXX='-qpic' 14679 lt_prog_compiler_static_CXX='-qstaticlink' 14680 ;; 14681 *) 14682 case `$CC -V 2>&1 | sed 5q` in 14683 *Sun\ C*) 14684 # Sun C++ 5.9 14685 lt_prog_compiler_pic_CXX='-KPIC' 14686 lt_prog_compiler_static_CXX='-Bstatic' 14687 lt_prog_compiler_wl_CXX='-Qoption ld ' 14688 ;; 14689 esac 14690 ;; 14691 esac 14692 ;; 14693 lynxos*) 14694 ;; 14695 m88k*) 14696 ;; 14697 mvs*) 14698 case $cc_basename in 14699 cxx*) 14700 lt_prog_compiler_pic_CXX='-W c,exportall' 14701 ;; 14702 *) 14703 ;; 14704 esac 14705 ;; 14706 netbsd* | netbsdelf*-gnu) 14707 ;; 14708 *qnx* | *nto*) 14709 # QNX uses GNU C++, but need to define -shared option too, otherwise 14710 # it will coredump. 14711 lt_prog_compiler_pic_CXX='-fPIC -shared' 14712 ;; 14713 osf3* | osf4* | osf5*) 14714 case $cc_basename in 14715 KCC*) 14716 lt_prog_compiler_wl_CXX='--backend -Wl,' 14717 ;; 14718 RCC*) 14719 # Rational C++ 2.4.1 14720 lt_prog_compiler_pic_CXX='-pic' 14721 ;; 14722 cxx*) 14723 # Digital/Compaq C++ 14724 lt_prog_compiler_wl_CXX='-Wl,' 14725 # Make sure the PIC flag is empty. It appears that all Alpha 14726 # Linux and Compaq Tru64 Unix objects are PIC. 14727 lt_prog_compiler_pic_CXX= 14728 lt_prog_compiler_static_CXX='-non_shared' 14729 ;; 14730 *) 14731 ;; 14732 esac 14733 ;; 14734 psos*) 14735 ;; 14736 solaris*) 14737 case $cc_basename in 14738 CC* | sunCC*) 14739 # Sun C++ 4.2, 5.x and Centerline C++ 14740 lt_prog_compiler_pic_CXX='-KPIC' 14741 lt_prog_compiler_static_CXX='-Bstatic' 14742 lt_prog_compiler_wl_CXX='-Qoption ld ' 14743 ;; 14744 gcx*) 14745 # Green Hills C++ Compiler 14746 lt_prog_compiler_pic_CXX='-PIC' 14747 ;; 14748 *) 14749 ;; 14750 esac 14751 ;; 14752 sunos4*) 14753 case $cc_basename in 14754 CC*) 14755 # Sun C++ 4.x 14756 lt_prog_compiler_pic_CXX='-pic' 14757 lt_prog_compiler_static_CXX='-Bstatic' 14758 ;; 14759 lcc*) 14760 # Lucid 14761 lt_prog_compiler_pic_CXX='-pic' 14762 ;; 14763 *) 14764 ;; 14765 esac 14766 ;; 14767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14768 case $cc_basename in 14769 CC*) 14770 lt_prog_compiler_wl_CXX='-Wl,' 14771 lt_prog_compiler_pic_CXX='-KPIC' 14772 lt_prog_compiler_static_CXX='-Bstatic' 14773 ;; 14774 esac 14775 ;; 14776 tandem*) 14777 case $cc_basename in 14778 NCC*) 14779 # NonStop-UX NCC 3.20 14780 lt_prog_compiler_pic_CXX='-KPIC' 14781 ;; 14782 *) 14783 ;; 14784 esac 14785 ;; 14786 vxworks*) 14787 ;; 14788 *) 14789 lt_prog_compiler_can_build_shared_CXX=no 14790 ;; 14791 esac 14792 fi 14793 14794case $host_os in 14795 # For platforms that do not support PIC, -DPIC is meaningless: 14796 *djgpp*) 14797 lt_prog_compiler_pic_CXX= 14798 ;; 14799 *) 14800 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 14801 ;; 14802esac 14803 14804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14805$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14806if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14807 $as_echo_n "(cached) " >&6 14808else 14809 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14810fi 14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14812$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14813lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14814 14815# 14816# Check to make sure the PIC flag actually works. 14817# 14818if test -n "$lt_prog_compiler_pic_CXX"; then 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14820$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14821if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14822 $as_echo_n "(cached) " >&6 14823else 14824 lt_cv_prog_compiler_pic_works_CXX=no 14825 ac_outfile=conftest.$ac_objext 14826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14827 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 14828 # Insert the option either (1) after the last *FLAGS variable, or 14829 # (2) before a word containing "conftest.", or (3) at the end. 14830 # Note that $ac_compile itself does not contain backslashes and begins 14831 # with a dollar sign (not a hyphen), so the echo should work correctly. 14832 # The option is referenced via a variable to avoid confusing sed. 14833 lt_compile=`echo "$ac_compile" | $SED \ 14834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14836 -e 's:$: $lt_compiler_flag:'` 14837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14838 (eval "$lt_compile" 2>conftest.err) 14839 ac_status=$? 14840 cat conftest.err >&5 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 if (exit $ac_status) && test -s "$ac_outfile"; then 14843 # The compiler can only warn and ignore the option if not recognized 14844 # So say no if there are warnings other than the usual output. 14845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14848 lt_cv_prog_compiler_pic_works_CXX=yes 14849 fi 14850 fi 14851 $RM conftest* 14852 14853fi 14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14855$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14856 14857if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14858 case $lt_prog_compiler_pic_CXX in 14859 "" | " "*) ;; 14860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14861 esac 14862else 14863 lt_prog_compiler_pic_CXX= 14864 lt_prog_compiler_can_build_shared_CXX=no 14865fi 14866 14867fi 14868 14869 14870 14871 14872 14873# 14874# Check to make sure the static flag actually works. 14875# 14876wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14878$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14879if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 lt_cv_prog_compiler_static_works_CXX=no 14883 save_LDFLAGS=$LDFLAGS 14884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14885 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14887 # The linker can only warn and ignore the option if not recognized 14888 # So say no if there are warnings 14889 if test -s conftest.err; then 14890 # Append any errors to the config.log. 14891 cat conftest.err 1>&5 14892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14894 if diff conftest.exp conftest.er2 >/dev/null; then 14895 lt_cv_prog_compiler_static_works_CXX=yes 14896 fi 14897 else 14898 lt_cv_prog_compiler_static_works_CXX=yes 14899 fi 14900 fi 14901 $RM -r conftest* 14902 LDFLAGS=$save_LDFLAGS 14903 14904fi 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14906$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14907 14908if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14909 : 14910else 14911 lt_prog_compiler_static_CXX= 14912fi 14913 14914 14915 14916 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14918$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14919if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14920 $as_echo_n "(cached) " >&6 14921else 14922 lt_cv_prog_compiler_c_o_CXX=no 14923 $RM -r conftest 2>/dev/null 14924 mkdir conftest 14925 cd conftest 14926 mkdir out 14927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14928 14929 lt_compiler_flag="-o out/conftest2.$ac_objext" 14930 # Insert the option either (1) after the last *FLAGS variable, or 14931 # (2) before a word containing "conftest.", or (3) at the end. 14932 # Note that $ac_compile itself does not contain backslashes and begins 14933 # with a dollar sign (not a hyphen), so the echo should work correctly. 14934 lt_compile=`echo "$ac_compile" | $SED \ 14935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14937 -e 's:$: $lt_compiler_flag:'` 14938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14939 (eval "$lt_compile" 2>out/conftest.err) 14940 ac_status=$? 14941 cat out/conftest.err >&5 14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14943 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14944 then 14945 # The compiler can only warn and ignore the option if not recognized 14946 # So say no if there are warnings 14947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14950 lt_cv_prog_compiler_c_o_CXX=yes 14951 fi 14952 fi 14953 chmod u+w . 2>&5 14954 $RM conftest* 14955 # SGI C++ compiler will create directory out/ii_files/ for 14956 # template instantiation 14957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14958 $RM out/* && rmdir out 14959 cd .. 14960 $RM -r conftest 14961 $RM conftest* 14962 14963fi 14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14965$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14966 14967 14968 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14971if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973else 14974 lt_cv_prog_compiler_c_o_CXX=no 14975 $RM -r conftest 2>/dev/null 14976 mkdir conftest 14977 cd conftest 14978 mkdir out 14979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14980 14981 lt_compiler_flag="-o out/conftest2.$ac_objext" 14982 # Insert the option either (1) after the last *FLAGS variable, or 14983 # (2) before a word containing "conftest.", or (3) at the end. 14984 # Note that $ac_compile itself does not contain backslashes and begins 14985 # with a dollar sign (not a hyphen), so the echo should work correctly. 14986 lt_compile=`echo "$ac_compile" | $SED \ 14987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14989 -e 's:$: $lt_compiler_flag:'` 14990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14991 (eval "$lt_compile" 2>out/conftest.err) 14992 ac_status=$? 14993 cat out/conftest.err >&5 14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14995 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14996 then 14997 # The compiler can only warn and ignore the option if not recognized 14998 # So say no if there are warnings 14999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15002 lt_cv_prog_compiler_c_o_CXX=yes 15003 fi 15004 fi 15005 chmod u+w . 2>&5 15006 $RM conftest* 15007 # SGI C++ compiler will create directory out/ii_files/ for 15008 # template instantiation 15009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15010 $RM out/* && rmdir out 15011 cd .. 15012 $RM -r conftest 15013 $RM conftest* 15014 15015fi 15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15017$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15018 15019 15020 15021 15022hard_links=nottested 15023if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15024 # do not overwrite the value of need_locks provided by the user 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15026$as_echo_n "checking if we can lock with hard links... " >&6; } 15027 hard_links=yes 15028 $RM conftest* 15029 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15030 touch conftest.a 15031 ln conftest.a conftest.b 2>&5 || hard_links=no 15032 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15034$as_echo "$hard_links" >&6; } 15035 if test no = "$hard_links"; then 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15037$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15038 need_locks=warn 15039 fi 15040else 15041 need_locks=no 15042fi 15043 15044 15045 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15047$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15048 15049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15050 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15051 case $host_os in 15052 aix[4-9]*) 15053 # If we're using GNU nm, then we don't want the "-C" option. 15054 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15055 # Without the "-l" option, or with the "-B" option, AIX nm treats 15056 # weak defined symbols like other global defined symbols, whereas 15057 # GNU nm marks them as "W". 15058 # While the 'weak' keyword is ignored in the Export File, we need 15059 # it in the Import File for the 'aix-soname' feature, so we have 15060 # to replace the "-B" option with "-P" for AIX nm. 15061 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15062 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' 15063 else 15064 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' 15065 fi 15066 ;; 15067 pw32*) 15068 export_symbols_cmds_CXX=$ltdll_cmds 15069 ;; 15070 cygwin* | mingw* | cegcc*) 15071 case $cc_basename in 15072 cl*) 15073 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15074 ;; 15075 *) 15076 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' 15077 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15078 ;; 15079 esac 15080 ;; 15081 linux* | k*bsd*-gnu | gnu*) 15082 link_all_deplibs_CXX=no 15083 ;; 15084 *) 15085 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15086 ;; 15087 esac 15088 15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15090$as_echo "$ld_shlibs_CXX" >&6; } 15091test no = "$ld_shlibs_CXX" && can_build_shared=no 15092 15093with_gnu_ld_CXX=$with_gnu_ld 15094 15095 15096 15097 15098 15099 15100# 15101# Do we need to explicitly link libc? 15102# 15103case "x$archive_cmds_need_lc_CXX" in 15104x|xyes) 15105 # Assume -lc should be added 15106 archive_cmds_need_lc_CXX=yes 15107 15108 if test yes,yes = "$GCC,$enable_shared"; then 15109 case $archive_cmds_CXX in 15110 *'~'*) 15111 # FIXME: we may have to deal with multi-command sequences. 15112 ;; 15113 '$CC '*) 15114 # Test whether the compiler implicitly links with -lc since on some 15115 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15116 # to ld, don't add -lc before -lgcc. 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15118$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15119if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15120 $as_echo_n "(cached) " >&6 15121else 15122 $RM conftest* 15123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15124 15125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15126 (eval $ac_compile) 2>&5 15127 ac_status=$? 15128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15129 test $ac_status = 0; } 2>conftest.err; then 15130 soname=conftest 15131 lib=conftest 15132 libobjs=conftest.$ac_objext 15133 deplibs= 15134 wl=$lt_prog_compiler_wl_CXX 15135 pic_flag=$lt_prog_compiler_pic_CXX 15136 compiler_flags=-v 15137 linker_flags=-v 15138 verstring= 15139 output_objdir=. 15140 libname=conftest 15141 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15142 allow_undefined_flag_CXX= 15143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15144 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15145 ac_status=$? 15146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15147 test $ac_status = 0; } 15148 then 15149 lt_cv_archive_cmds_need_lc_CXX=no 15150 else 15151 lt_cv_archive_cmds_need_lc_CXX=yes 15152 fi 15153 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15154 else 15155 cat conftest.err 1>&5 15156 fi 15157 $RM conftest* 15158 15159fi 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15161$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15162 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15163 ;; 15164 esac 15165 fi 15166 ;; 15167esac 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15231$as_echo_n "checking dynamic linker characteristics... " >&6; } 15232 15233library_names_spec= 15234libname_spec='lib$name' 15235soname_spec= 15236shrext_cmds=.so 15237postinstall_cmds= 15238postuninstall_cmds= 15239finish_cmds= 15240finish_eval= 15241shlibpath_var= 15242shlibpath_overrides_runpath=unknown 15243version_type=none 15244dynamic_linker="$host_os ld.so" 15245sys_lib_dlsearch_path_spec="/lib /usr/lib" 15246need_lib_prefix=unknown 15247hardcode_into_libs=no 15248 15249# when you set need_version to no, make sure it does not cause -set_version 15250# flags to be left without arguments 15251need_version=unknown 15252 15253 15254 15255case $host_os in 15256aix3*) 15257 version_type=linux # correct to gnu/linux during the next big refactor 15258 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15259 shlibpath_var=LIBPATH 15260 15261 # AIX 3 has no versioning support, so we append a major version to the name. 15262 soname_spec='$libname$release$shared_ext$major' 15263 ;; 15264 15265aix[4-9]*) 15266 version_type=linux # correct to gnu/linux during the next big refactor 15267 need_lib_prefix=no 15268 need_version=no 15269 hardcode_into_libs=yes 15270 if test ia64 = "$host_cpu"; then 15271 # AIX 5 supports IA64 15272 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15273 shlibpath_var=LD_LIBRARY_PATH 15274 else 15275 # With GCC up to 2.95.x, collect2 would create an import file 15276 # for dependence libraries. The import file would start with 15277 # the line '#! .'. This would cause the generated library to 15278 # depend on '.', always an invalid library. This was fixed in 15279 # development snapshots of GCC prior to 3.0. 15280 case $host_os in 15281 aix4 | aix4.[01] | aix4.[01].*) 15282 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15283 echo ' yes ' 15284 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15285 : 15286 else 15287 can_build_shared=no 15288 fi 15289 ;; 15290 esac 15291 # Using Import Files as archive members, it is possible to support 15292 # filename-based versioning of shared library archives on AIX. While 15293 # this would work for both with and without runtime linking, it will 15294 # prevent static linking of such archives. So we do filename-based 15295 # shared library versioning with .so extension only, which is used 15296 # when both runtime linking and shared linking is enabled. 15297 # Unfortunately, runtime linking may impact performance, so we do 15298 # not want this to be the default eventually. Also, we use the 15299 # versioned .so libs for executables only if there is the -brtl 15300 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15301 # To allow for filename-based versioning support, we need to create 15302 # libNAME.so.V as an archive file, containing: 15303 # *) an Import File, referring to the versioned filename of the 15304 # archive as well as the shared archive member, telling the 15305 # bitwidth (32 or 64) of that shared object, and providing the 15306 # list of exported symbols of that shared object, eventually 15307 # decorated with the 'weak' keyword 15308 # *) the shared object with the F_LOADONLY flag set, to really avoid 15309 # it being seen by the linker. 15310 # At run time we better use the real file rather than another symlink, 15311 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15312 15313 case $with_aix_soname,$aix_use_runtimelinking in 15314 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15315 # soname into executable. Probably we can add versioning support to 15316 # collect2, so additional links can be useful in future. 15317 aix,yes) # traditional libtool 15318 dynamic_linker='AIX unversionable lib.so' 15319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15320 # instead of lib<name>.a to let people know that these are not 15321 # typical AIX shared libraries. 15322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15323 ;; 15324 aix,no) # traditional AIX only 15325 dynamic_linker='AIX lib.a(lib.so.V)' 15326 # We preserve .a as extension for shared libraries through AIX4.2 15327 # and later when we are not doing run time linking. 15328 library_names_spec='$libname$release.a $libname.a' 15329 soname_spec='$libname$release$shared_ext$major' 15330 ;; 15331 svr4,*) # full svr4 only 15332 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15333 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15334 # We do not specify a path in Import Files, so LIBPATH fires. 15335 shlibpath_overrides_runpath=yes 15336 ;; 15337 *,yes) # both, prefer svr4 15338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15340 # unpreferred sharedlib libNAME.a needs extra handling 15341 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"' 15342 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"' 15343 # We do not specify a path in Import Files, so LIBPATH fires. 15344 shlibpath_overrides_runpath=yes 15345 ;; 15346 *,no) # both, prefer aix 15347 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15348 library_names_spec='$libname$release.a $libname.a' 15349 soname_spec='$libname$release$shared_ext$major' 15350 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15351 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)' 15352 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"' 15353 ;; 15354 esac 15355 shlibpath_var=LIBPATH 15356 fi 15357 ;; 15358 15359amigaos*) 15360 case $host_cpu in 15361 powerpc) 15362 # Since July 2007 AmigaOS4 officially supports .so libraries. 15363 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15365 ;; 15366 m68k) 15367 library_names_spec='$libname.ixlibrary $libname.a' 15368 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15369 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' 15370 ;; 15371 esac 15372 ;; 15373 15374beos*) 15375 library_names_spec='$libname$shared_ext' 15376 dynamic_linker="$host_os ld.so" 15377 shlibpath_var=LIBRARY_PATH 15378 ;; 15379 15380bsdi[45]*) 15381 version_type=linux # correct to gnu/linux during the next big refactor 15382 need_version=no 15383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15384 soname_spec='$libname$release$shared_ext$major' 15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15386 shlibpath_var=LD_LIBRARY_PATH 15387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15389 # the default ld.so.conf also contains /usr/contrib/lib and 15390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15391 # libtool to hard-code these into programs 15392 ;; 15393 15394cygwin* | mingw* | pw32* | cegcc*) 15395 version_type=windows 15396 shrext_cmds=.dll 15397 need_version=no 15398 need_lib_prefix=no 15399 15400 case $GCC,$cc_basename in 15401 yes,*) 15402 # gcc 15403 library_names_spec='$libname.dll.a' 15404 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15405 postinstall_cmds='base_file=`basename \$file`~ 15406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15407 dldir=$destdir/`dirname \$dlpath`~ 15408 test -d \$dldir || mkdir -p \$dldir~ 15409 $install_prog $dir/$dlname \$dldir/$dlname~ 15410 chmod a+x \$dldir/$dlname~ 15411 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15412 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15413 fi' 15414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15415 dlpath=$dir/\$dldll~ 15416 $RM \$dlpath' 15417 shlibpath_overrides_runpath=yes 15418 15419 case $host_os in 15420 cygwin*) 15421 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15422 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15423 15424 ;; 15425 mingw* | cegcc*) 15426 # MinGW DLLs use traditional 'lib' prefix 15427 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15428 ;; 15429 pw32*) 15430 # pw32 DLLs use 'pw' prefix rather than 'lib' 15431 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15432 ;; 15433 esac 15434 dynamic_linker='Win32 ld.exe' 15435 ;; 15436 15437 *,cl*) 15438 # Native MSVC 15439 libname_spec='$name' 15440 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15441 library_names_spec='$libname.dll.lib' 15442 15443 case $build_os in 15444 mingw*) 15445 sys_lib_search_path_spec= 15446 lt_save_ifs=$IFS 15447 IFS=';' 15448 for lt_path in $LIB 15449 do 15450 IFS=$lt_save_ifs 15451 # Let DOS variable expansion print the short 8.3 style file name. 15452 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15453 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15454 done 15455 IFS=$lt_save_ifs 15456 # Convert to MSYS style. 15457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15458 ;; 15459 cygwin*) 15460 # Convert to unix form, then to dos form, then back to unix form 15461 # but this time dos style (no spaces!) so that the unix form looks 15462 # like /cygdrive/c/PROGRA~1:/cygdr... 15463 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15464 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15465 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15466 ;; 15467 *) 15468 sys_lib_search_path_spec=$LIB 15469 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15470 # It is most probably a Windows format PATH. 15471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15472 else 15473 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15474 fi 15475 # FIXME: find the short name or the path components, as spaces are 15476 # common. (e.g. "Program Files" -> "PROGRA~1") 15477 ;; 15478 esac 15479 15480 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15481 postinstall_cmds='base_file=`basename \$file`~ 15482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15483 dldir=$destdir/`dirname \$dlpath`~ 15484 test -d \$dldir || mkdir -p \$dldir~ 15485 $install_prog $dir/$dlname \$dldir/$dlname' 15486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15487 dlpath=$dir/\$dldll~ 15488 $RM \$dlpath' 15489 shlibpath_overrides_runpath=yes 15490 dynamic_linker='Win32 link.exe' 15491 ;; 15492 15493 *) 15494 # Assume MSVC wrapper 15495 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15496 dynamic_linker='Win32 ld.exe' 15497 ;; 15498 esac 15499 # FIXME: first we should search . and the directory the executable is in 15500 shlibpath_var=PATH 15501 ;; 15502 15503darwin* | rhapsody*) 15504 dynamic_linker="$host_os dyld" 15505 version_type=darwin 15506 need_lib_prefix=no 15507 need_version=no 15508 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15509 soname_spec='$libname$release$major$shared_ext' 15510 shlibpath_overrides_runpath=yes 15511 shlibpath_var=DYLD_LIBRARY_PATH 15512 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15513 15514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15515 ;; 15516 15517dgux*) 15518 version_type=linux # correct to gnu/linux during the next big refactor 15519 need_lib_prefix=no 15520 need_version=no 15521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15522 soname_spec='$libname$release$shared_ext$major' 15523 shlibpath_var=LD_LIBRARY_PATH 15524 ;; 15525 15526freebsd* | dragonfly*) 15527 # DragonFly does not have aout. When/if they implement a new 15528 # versioning mechanism, adjust this. 15529 if test -x /usr/bin/objformat; then 15530 objformat=`/usr/bin/objformat` 15531 else 15532 case $host_os in 15533 freebsd[23].*) objformat=aout ;; 15534 *) objformat=elf ;; 15535 esac 15536 fi 15537 version_type=freebsd-$objformat 15538 case $version_type in 15539 freebsd-elf*) 15540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15541 soname_spec='$libname$release$shared_ext$major' 15542 need_version=no 15543 need_lib_prefix=no 15544 ;; 15545 freebsd-*) 15546 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15547 need_version=yes 15548 ;; 15549 esac 15550 shlibpath_var=LD_LIBRARY_PATH 15551 case $host_os in 15552 freebsd2.*) 15553 shlibpath_overrides_runpath=yes 15554 ;; 15555 freebsd3.[01]* | freebsdelf3.[01]*) 15556 shlibpath_overrides_runpath=yes 15557 hardcode_into_libs=yes 15558 ;; 15559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15561 shlibpath_overrides_runpath=no 15562 hardcode_into_libs=yes 15563 ;; 15564 *) # from 4.6 on, and DragonFly 15565 shlibpath_overrides_runpath=yes 15566 hardcode_into_libs=yes 15567 ;; 15568 esac 15569 ;; 15570 15571haiku*) 15572 version_type=linux # correct to gnu/linux during the next big refactor 15573 need_lib_prefix=no 15574 need_version=no 15575 dynamic_linker="$host_os runtime_loader" 15576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15577 soname_spec='$libname$release$shared_ext$major' 15578 shlibpath_var=LIBRARY_PATH 15579 shlibpath_overrides_runpath=no 15580 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15581 hardcode_into_libs=yes 15582 ;; 15583 15584hpux9* | hpux10* | hpux11*) 15585 # Give a soname corresponding to the major version so that dld.sl refuses to 15586 # link against other versions. 15587 version_type=sunos 15588 need_lib_prefix=no 15589 need_version=no 15590 case $host_cpu in 15591 ia64*) 15592 shrext_cmds='.so' 15593 hardcode_into_libs=yes 15594 dynamic_linker="$host_os dld.so" 15595 shlibpath_var=LD_LIBRARY_PATH 15596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15598 soname_spec='$libname$release$shared_ext$major' 15599 if test 32 = "$HPUX_IA64_MODE"; then 15600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15601 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15602 else 15603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15604 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15605 fi 15606 ;; 15607 hppa*64*) 15608 shrext_cmds='.sl' 15609 hardcode_into_libs=yes 15610 dynamic_linker="$host_os dld.sl" 15611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15614 soname_spec='$libname$release$shared_ext$major' 15615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15617 ;; 15618 *) 15619 shrext_cmds='.sl' 15620 dynamic_linker="$host_os dld.sl" 15621 shlibpath_var=SHLIB_PATH 15622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15624 soname_spec='$libname$release$shared_ext$major' 15625 ;; 15626 esac 15627 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15628 postinstall_cmds='chmod 555 $lib' 15629 # or fails outright, so override atomically: 15630 install_override_mode=555 15631 ;; 15632 15633interix[3-9]*) 15634 version_type=linux # correct to gnu/linux during the next big refactor 15635 need_lib_prefix=no 15636 need_version=no 15637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15638 soname_spec='$libname$release$shared_ext$major' 15639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15640 shlibpath_var=LD_LIBRARY_PATH 15641 shlibpath_overrides_runpath=no 15642 hardcode_into_libs=yes 15643 ;; 15644 15645irix5* | irix6* | nonstopux*) 15646 case $host_os in 15647 nonstopux*) version_type=nonstopux ;; 15648 *) 15649 if test yes = "$lt_cv_prog_gnu_ld"; then 15650 version_type=linux # correct to gnu/linux during the next big refactor 15651 else 15652 version_type=irix 15653 fi ;; 15654 esac 15655 need_lib_prefix=no 15656 need_version=no 15657 soname_spec='$libname$release$shared_ext$major' 15658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15659 case $host_os in 15660 irix5* | nonstopux*) 15661 libsuff= shlibsuff= 15662 ;; 15663 *) 15664 case $LD in # libtool.m4 will add one of these switches to LD 15665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15666 libsuff= shlibsuff= libmagic=32-bit;; 15667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15668 libsuff=32 shlibsuff=N32 libmagic=N32;; 15669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15671 *) libsuff= shlibsuff= libmagic=never-match;; 15672 esac 15673 ;; 15674 esac 15675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15676 shlibpath_overrides_runpath=no 15677 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15678 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15679 hardcode_into_libs=yes 15680 ;; 15681 15682# No shared lib support for Linux oldld, aout, or coff. 15683linux*oldld* | linux*aout* | linux*coff*) 15684 dynamic_linker=no 15685 ;; 15686 15687linux*android*) 15688 version_type=none # Android doesn't support versioned libraries. 15689 need_lib_prefix=no 15690 need_version=no 15691 library_names_spec='$libname$release$shared_ext' 15692 soname_spec='$libname$release$shared_ext' 15693 finish_cmds= 15694 shlibpath_var=LD_LIBRARY_PATH 15695 shlibpath_overrides_runpath=yes 15696 15697 # This implies no fast_install, which is unacceptable. 15698 # Some rework will be needed to allow for fast_install 15699 # before this can be enabled. 15700 hardcode_into_libs=yes 15701 15702 dynamic_linker='Android linker' 15703 # Don't embed -rpath directories since the linker doesn't support them. 15704 hardcode_libdir_flag_spec_CXX='-L$libdir' 15705 ;; 15706 15707# This must be glibc/ELF. 15708linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15709 version_type=linux # correct to gnu/linux during the next big refactor 15710 need_lib_prefix=no 15711 need_version=no 15712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15713 soname_spec='$libname$release$shared_ext$major' 15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15715 shlibpath_var=LD_LIBRARY_PATH 15716 shlibpath_overrides_runpath=no 15717 15718 # Some binutils ld are patched to set DT_RUNPATH 15719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15720 $as_echo_n "(cached) " >&6 15721else 15722 lt_cv_shlibpath_overrides_runpath=no 15723 save_LDFLAGS=$LDFLAGS 15724 save_libdir=$libdir 15725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15728/* end confdefs.h. */ 15729 15730int 15731main () 15732{ 15733 15734 ; 15735 return 0; 15736} 15737_ACEOF 15738if ac_fn_cxx_try_link "$LINENO"; then : 15739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15740 lt_cv_shlibpath_overrides_runpath=yes 15741fi 15742fi 15743rm -f core conftest.err conftest.$ac_objext \ 15744 conftest$ac_exeext conftest.$ac_ext 15745 LDFLAGS=$save_LDFLAGS 15746 libdir=$save_libdir 15747 15748fi 15749 15750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15751 15752 # This implies no fast_install, which is unacceptable. 15753 # Some rework will be needed to allow for fast_install 15754 # before this can be enabled. 15755 hardcode_into_libs=yes 15756 15757 # Ideally, we could use ldconfig to report *all* directores which are 15758 # searched for libraries, however this is still not possible. Aside from not 15759 # being certain /sbin/ldconfig is available, command 15760 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15761 # even though it is searched at run-time. Try to do the best guess by 15762 # appending ld.so.conf contents (and includes) to the search path. 15763 if test -f /etc/ld.so.conf; then 15764 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' ' '` 15765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15766 fi 15767 15768 # We used to test for /lib/ld.so.1 and disable shared libraries on 15769 # powerpc, because MkLinux only supported shared libraries with the 15770 # GNU dynamic linker. Since this was broken with cross compilers, 15771 # most powerpc-linux boxes support dynamic linking these days and 15772 # people can always --disable-shared, the test was removed, and we 15773 # assume the GNU/Linux dynamic linker is in use. 15774 dynamic_linker='GNU/Linux ld.so' 15775 ;; 15776 15777netbsdelf*-gnu) 15778 version_type=linux 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 shlibpath_var=LD_LIBRARY_PATH 15784 shlibpath_overrides_runpath=no 15785 hardcode_into_libs=yes 15786 dynamic_linker='NetBSD ld.elf_so' 15787 ;; 15788 15789netbsd*) 15790 version_type=sunos 15791 need_lib_prefix=no 15792 need_version=no 15793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15794 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15796 dynamic_linker='NetBSD (a.out) ld.so' 15797 else 15798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15799 soname_spec='$libname$release$shared_ext$major' 15800 dynamic_linker='NetBSD ld.elf_so' 15801 fi 15802 shlibpath_var=LD_LIBRARY_PATH 15803 shlibpath_overrides_runpath=yes 15804 hardcode_into_libs=yes 15805 ;; 15806 15807newsos6) 15808 version_type=linux # correct to gnu/linux during the next big refactor 15809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15810 shlibpath_var=LD_LIBRARY_PATH 15811 shlibpath_overrides_runpath=yes 15812 ;; 15813 15814*nto* | *qnx*) 15815 version_type=qnx 15816 need_lib_prefix=no 15817 need_version=no 15818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15819 soname_spec='$libname$release$shared_ext$major' 15820 shlibpath_var=LD_LIBRARY_PATH 15821 shlibpath_overrides_runpath=no 15822 hardcode_into_libs=yes 15823 dynamic_linker='ldqnx.so' 15824 ;; 15825 15826openbsd* | bitrig*) 15827 version_type=sunos 15828 sys_lib_dlsearch_path_spec=/usr/lib 15829 need_lib_prefix=no 15830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15831 need_version=no 15832 else 15833 need_version=yes 15834 fi 15835 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15837 shlibpath_var=LD_LIBRARY_PATH 15838 shlibpath_overrides_runpath=yes 15839 ;; 15840 15841os2*) 15842 libname_spec='$name' 15843 version_type=windows 15844 shrext_cmds=.dll 15845 need_version=no 15846 need_lib_prefix=no 15847 # OS/2 can only load a DLL with a base name of 8 characters or less. 15848 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15849 v=$($ECHO $release$versuffix | tr -d .-); 15850 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15851 $ECHO $n$v`$shared_ext' 15852 library_names_spec='${libname}_dll.$libext' 15853 dynamic_linker='OS/2 ld.exe' 15854 shlibpath_var=BEGINLIBPATH 15855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15857 postinstall_cmds='base_file=`basename \$file`~ 15858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15859 dldir=$destdir/`dirname \$dlpath`~ 15860 test -d \$dldir || mkdir -p \$dldir~ 15861 $install_prog $dir/$dlname \$dldir/$dlname~ 15862 chmod a+x \$dldir/$dlname~ 15863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15865 fi' 15866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15867 dlpath=$dir/\$dldll~ 15868 $RM \$dlpath' 15869 ;; 15870 15871osf3* | osf4* | osf5*) 15872 version_type=osf 15873 need_lib_prefix=no 15874 need_version=no 15875 soname_spec='$libname$release$shared_ext$major' 15876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15877 shlibpath_var=LD_LIBRARY_PATH 15878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15880 ;; 15881 15882rdos*) 15883 dynamic_linker=no 15884 ;; 15885 15886solaris*) 15887 version_type=linux # correct to gnu/linux during the next big refactor 15888 need_lib_prefix=no 15889 need_version=no 15890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15891 soname_spec='$libname$release$shared_ext$major' 15892 shlibpath_var=LD_LIBRARY_PATH 15893 shlibpath_overrides_runpath=yes 15894 hardcode_into_libs=yes 15895 # ldd complains unless libraries are executable 15896 postinstall_cmds='chmod +x $lib' 15897 ;; 15898 15899sunos4*) 15900 version_type=sunos 15901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15903 shlibpath_var=LD_LIBRARY_PATH 15904 shlibpath_overrides_runpath=yes 15905 if test yes = "$with_gnu_ld"; then 15906 need_lib_prefix=no 15907 fi 15908 need_version=yes 15909 ;; 15910 15911sysv4 | sysv4.3*) 15912 version_type=linux # correct to gnu/linux during the next big refactor 15913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15914 soname_spec='$libname$release$shared_ext$major' 15915 shlibpath_var=LD_LIBRARY_PATH 15916 case $host_vendor in 15917 sni) 15918 shlibpath_overrides_runpath=no 15919 need_lib_prefix=no 15920 runpath_var=LD_RUN_PATH 15921 ;; 15922 siemens) 15923 need_lib_prefix=no 15924 ;; 15925 motorola) 15926 need_lib_prefix=no 15927 need_version=no 15928 shlibpath_overrides_runpath=no 15929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15930 ;; 15931 esac 15932 ;; 15933 15934sysv4*MP*) 15935 if test -d /usr/nec; then 15936 version_type=linux # correct to gnu/linux during the next big refactor 15937 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15938 soname_spec='$libname$shared_ext.$major' 15939 shlibpath_var=LD_LIBRARY_PATH 15940 fi 15941 ;; 15942 15943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15944 version_type=sco 15945 need_lib_prefix=no 15946 need_version=no 15947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15948 soname_spec='$libname$release$shared_ext$major' 15949 shlibpath_var=LD_LIBRARY_PATH 15950 shlibpath_overrides_runpath=yes 15951 hardcode_into_libs=yes 15952 if test yes = "$with_gnu_ld"; then 15953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15954 else 15955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15956 case $host_os in 15957 sco3.2v5*) 15958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15959 ;; 15960 esac 15961 fi 15962 sys_lib_dlsearch_path_spec='/usr/lib' 15963 ;; 15964 15965tpf*) 15966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15967 version_type=linux # correct to gnu/linux during the next big refactor 15968 need_lib_prefix=no 15969 need_version=no 15970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15971 shlibpath_var=LD_LIBRARY_PATH 15972 shlibpath_overrides_runpath=no 15973 hardcode_into_libs=yes 15974 ;; 15975 15976uts4*) 15977 version_type=linux # correct to gnu/linux during the next big refactor 15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15979 soname_spec='$libname$release$shared_ext$major' 15980 shlibpath_var=LD_LIBRARY_PATH 15981 ;; 15982 15983*) 15984 dynamic_linker=no 15985 ;; 15986esac 15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15988$as_echo "$dynamic_linker" >&6; } 15989test no = "$dynamic_linker" && can_build_shared=no 15990 15991variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15992if test yes = "$GCC"; then 15993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15994fi 15995 15996if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15997 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15998fi 15999 16000if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16001 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16002fi 16003 16004# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16005configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16006 16007# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16008func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16009 16010# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16011configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16053$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16054hardcode_action_CXX= 16055if test -n "$hardcode_libdir_flag_spec_CXX" || 16056 test -n "$runpath_var_CXX" || 16057 test yes = "$hardcode_automatic_CXX"; then 16058 16059 # We can hardcode non-existent directories. 16060 if test no != "$hardcode_direct_CXX" && 16061 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16062 # have to relink, otherwise we might link with an installed library 16063 # when we should be linking with a yet-to-be-installed one 16064 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16065 test no != "$hardcode_minus_L_CXX"; then 16066 # Linking always hardcodes the temporary library directory. 16067 hardcode_action_CXX=relink 16068 else 16069 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16070 hardcode_action_CXX=immediate 16071 fi 16072else 16073 # We cannot hardcode anything, or else we can only hardcode existing 16074 # directories. 16075 hardcode_action_CXX=unsupported 16076fi 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16078$as_echo "$hardcode_action_CXX" >&6; } 16079 16080if test relink = "$hardcode_action_CXX" || 16081 test yes = "$inherit_rpath_CXX"; then 16082 # Fast installation is not supported 16083 enable_fast_install=no 16084elif test yes = "$shlibpath_overrides_runpath" || 16085 test no = "$enable_shared"; then 16086 # Fast installation is not necessary 16087 enable_fast_install=needless 16088fi 16089 16090 16091 16092 16093 16094 16095 16096 fi # test -n "$compiler" 16097 16098 CC=$lt_save_CC 16099 CFLAGS=$lt_save_CFLAGS 16100 LDCXX=$LD 16101 LD=$lt_save_LD 16102 GCC=$lt_save_GCC 16103 with_gnu_ld=$lt_save_with_gnu_ld 16104 lt_cv_path_LDCXX=$lt_cv_path_LD 16105 lt_cv_path_LD=$lt_save_path_LD 16106 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16107 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16108fi # test yes != "$_lt_caught_CXX_error" 16109 16110ac_ext=c 16111ac_cpp='$CPP $CPPFLAGS' 16112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16114ac_compiler_gnu=$ac_cv_c_compiler_gnu 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 ac_config_commands="$ac_config_commands libtool" 16131 16132 16133 16134 16135# Only expand once: 16136 16137 16138 16139 16140 16141@%:@ Check whether --enable-debug was given. 16142if test "${enable_debug+set}" = set; then : 16143 enableval=$enable_debug; 16144else 16145 enable_debug=no 16146fi 16147 16148@%:@ Check whether --enable-gprof was given. 16149if test "${enable_gprof+set}" = set; then : 16150 enableval=$enable_gprof; 16151else 16152 enable_gprof=no 16153fi 16154 16155@%:@ Check whether --enable-universal_binary was given. 16156if test "${enable_universal_binary+set}" = set; then : 16157 enableval=$enable_universal_binary; 16158else 16159 enable_universal_binary=no 16160fi 16161 16162@%:@ Check whether --enable-arch-ppc was given. 16163if test "${enable_arch_ppc+set}" = set; then : 16164 enableval=$enable_arch_ppc; 16165else 16166 enable_arch_ppc=no 16167fi 16168 16169@%:@ Check whether --enable-arch-ppc64 was given. 16170if test "${enable_arch_ppc64+set}" = set; then : 16171 enableval=$enable_arch_ppc64; 16172else 16173 enable_arch_ppc64=no 16174fi 16175 16176@%:@ Check whether --enable-arch-i386 was given. 16177if test "${enable_arch_i386+set}" = set; then : 16178 enableval=$enable_arch_i386; 16179else 16180 enable_arch_i386=no 16181fi 16182 16183@%:@ Check whether --enable-arch-x86_64 was given. 16184if test "${enable_arch_x86_64+set}" = set; then : 16185 enableval=$enable_arch_x86_64; 16186else 16187 enable_arch_x86_64=no 16188fi 16189 16190@%:@ Check whether --enable-arch-armv7 was given. 16191if test "${enable_arch_armv7+set}" = set; then : 16192 enableval=$enable_arch_armv7; 16193else 16194 enable_arch_armv7=no 16195fi 16196 16197@%:@ Check whether --enable-arch-armv7s was given. 16198if test "${enable_arch_armv7s+set}" = set; then : 16199 enableval=$enable_arch_armv7s; 16200else 16201 enable_arch_armv7s=no 16202fi 16203 16204@%:@ Check whether --enable-arch-arm64 was given. 16205if test "${enable_arch_arm64+set}" = set; then : 16206 enableval=$enable_arch_arm64; 16207else 16208 enable_arch_arm64=no 16209fi 16210 16211@%:@ Check whether --enable-unicode was given. 16212if test "${enable_unicode+set}" = set; then : 16213 enableval=$enable_unicode; 16214else 16215 enable_unicode=yes 16216fi 16217 16218@%:@ Check whether --enable-wstring_missing was given. 16219if test "${enable_wstring_missing+set}" = set; then : 16220 enableval=$enable_wstring_missing; 16221else 16222 enable_wstring_missing=no 16223fi 16224 16225@%:@ Check whether --enable-stream_missing was given. 16226if test "${enable_stream_missing+set}" = set; then : 16227 enableval=$enable_stream_missing; 16228else 16229 enable_stream_missing=no 16230fi 16231 16232@%:@ Check whether --enable-large_files was given. 16233if test "${enable_large_files+set}" = set; then : 16234 enableval=$enable_large_files; 16235else 16236 enable_large_files=yes 16237fi 16238 16239 16240 16241 16242@%:@ Check whether --with-macosx-sdk was given. 16243if test "${with_macosx_sdk+set}" = set; then : 16244 withval=$with_macosx_sdk; 16245else 16246 with_macosx_sdk=no 16247fi 16248 16249 16250@%:@ Check whether --with-macosx-version-min was given. 16251if test "${with_macosx_version_min+set}" = set; then : 16252 withval=$with_macosx_version_min; 16253else 16254 with_macosx_version_min=no 16255fi 16256 16257 16258@%:@ Check whether --with-iphoneos-sdk was given. 16259if test "${with_iphoneos_sdk+set}" = set; then : 16260 withval=$with_iphoneos_sdk; 16261else 16262 with_iphoneos_sdk=no 16263fi 16264 16265 16266@%:@ Check whether --with-iphoneos-version-min was given. 16267if test "${with_iphoneos_version_min+set}" = set; then : 16268 withval=$with_iphoneos_version_min; 16269else 16270 with_iphoneos_version_min=no 16271fi 16272 16273 16274 16275case "${build}" in 16276 powerpc-montavista* ) 16277 CFLAGS="$CFLAGS -D__MONTAVISTA__" 16278 CXXFLAGS="$CXXFLAGS -D__MONTAVISTA__" 16279 ;; 16280esac 16281 16282if test "$enable_universal_binary" = "yes"; then 16283 enable_arch_ppc=yes 16284 enable_arch_i386=yes 16285fi 16286if test "$enable_arch_ppc" = "yes"; then 16287 CXXFLAGS="$CXXFLAGS -arch ppc" 16288 CFLAGS="$CFLAGS -arch ppc" 16289 LDFLAGS="$LDFLAGS -arch ppc" 16290fi 16291if test "$enable_arch_ppc64" = "yes"; then 16292 CXXFLAGS="$CXXFLAGS -arch ppc64" 16293 CFLAGS="$CFLAGS -arch ppc64" 16294 LDFLAGS="$LDFLAGS -arch ppc64" 16295fi 16296if test "$enable_arch_i386" = "yes"; then 16297 CXXFLAGS="$CXXFLAGS -arch i386" 16298 CFLAGS="$CFLAGS -arch i386" 16299 LDFLAGS="$LDFLAGS -arch i386" 16300fi 16301if test "$enable_arch_x86_64" = "yes"; then 16302 CXXFLAGS="$CXXFLAGS -arch x86_64" 16303 CFLAGS="$CFLAGS -arch x86_64" 16304 LDFLAGS="$LDFLAGS -arch x86_64" 16305fi 16306if test "$enable_arch_armv7" = "yes"; then 16307 CXXFLAGS="$CXXFLAGS -arch armv7" 16308 CFLAGS="$CFLAGS -arch armv7" 16309 LDFLAGS="$LDFLAGS -arch armv7" 16310fi 16311if test "$enable_arch_armv7s" = "yes"; then 16312 CXXFLAGS="$CXXFLAGS -arch armv7s" 16313 CFLAGS="$CFLAGS -arch armv7s" 16314 LDFLAGS="$LDFLAGS -arch armv7s" 16315fi 16316if test "$enable_arch_arm64" = "yes"; then 16317 CXXFLAGS="$CXXFLAGS -arch arm64" 16318 CFLAGS="$CFLAGS -arch arm64" 16319 LDFLAGS="$LDFLAGS -arch arm64" 16320fi 16321if test "x$with_macosx_sdk" != xno ; then 16322 CXXFLAGS="-isysroot $with_macosx_sdk $CXXFLAGS" 16323 CFLAGS="-isysroot $with_macosx_sdk $CFLAGS" 16324 LDFLAGS="-isysroot $with_macosx_sdk $LDFLAGS" 16325fi 16326if test "x$with_macosx_version_min" != xno ; then 16327 CXXFLAGS="-mmacosx-version-min=$with_macosx_version_min $CXXFLAGS" 16328 CFLAGS="-mmacosx-version-min=$with_macosx_version_min $CFLAGS" 16329 LDFLAGS="-mmacosx-version-min=$with_macosx_version_min $LDFLAGS" 16330fi 16331if test "x$with_iphoneos_sdk" != xno ; then 16332 CXXFLAGS="-isysroot $with_iphoneos_sdk $CXXFLAGS" 16333 CFLAGS="-isysroot $with_iphoneos_sdk $CFLAGS" 16334 LDFLAGS="-isysroot $with_iphoneos_sdk $LDFLAGS" 16335fi 16336if test "x$with_iphoneos_version_min" != xno ; then 16337 CXXFLAGS="-miphoneos-version-min=$with_iphoneos_version_min $CXXFLAGS" 16338 CFLAGS="-miphoneos-version-min=$with_iphoneos_version_min $CFLAGS" 16339 LDFLAGS="-miphoneos-version-min=$with_iphoneos_version_min $LDFLAGS" 16340fi 16341 16342 16343if test "$enable_shared" = "yes"; then 16344 ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS" 16345fi 16346if test "$enable_static" = "yes"; then 16347 ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static" 16348fi 16349 16350 16351if test "$enable_wstring_missing" = "yes"; then 16352 CXXFLAGS="$CXXFLAGS -DWSTRING_MISSING" 16353 ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DWSTRING_MISSING" 16354 ZenLib_wstring_missing="yes" 16355 enable_unicode="no" 16356else 16357 ZenLib_wstring_missing="no" 16358fi 16359 16360if test "$enable_unicode" = "yes"; then 16361 CXXFLAGS="$CXXFLAGS -DUNICODE" 16362 ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DUNICODE" 16363 ZenLib_Unicode="yes" 16364else 16365 ZenLib_Unicode="no" 16366fi 16367 16368if test "$enable_large_files" = "yes"; then 16369 CXXFLAGS="$CXXFLAGS -D_LARGE_FILES -D_FILE_OFFSET_BITS=64" 16370 ZenLib_LargeFiles="yes" 16371else 16372 ZenLib_LargeFiles="no" 16373fi 16374 16375 16376ac_ext=cpp 16377ac_cpp='$CXXCPP $CPPFLAGS' 16378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16381 16382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16383/* end confdefs.h. */ 16384 16385 #include <cstdlib> 16386 void foo(signed int) {} 16387 void foo(unsigned int) {} 16388 int main () {foo(size_t(0)); return 0;} 16389_ACEOF 16390if ac_fn_cxx_try_compile "$LINENO"; then : 16391 size_t_is_long="no" 16392else 16393 size_t_is_long="yes" 16394fi 16395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16396 16397if test "$size_t_is_long" = "yes"; then 16398 CXXFLAGS="$CXXFLAGS -DSIZE_T_IS_LONG" 16399 ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DSIZE_T_IS_LONG" 16400fi 16401 16402ac_ext=cpp 16403ac_cpp='$CXXCPP $CPPFLAGS' 16404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16407 16408if test "$enable_unicode" = "yes"; then 16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16410/* end confdefs.h. */ 16411 16412 #include <sstream> 16413 int main () {std::wstringstream message; message<<1.0; return 0;} 16414_ACEOF 16415if ac_fn_cxx_try_compile "$LINENO"; then : 16416 16417else 16418 enable_stream_missing="yes" 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421else 16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16423/* end confdefs.h. */ 16424 16425 #include <sstream> 16426 int main () {std::stringstream message; message<<1.0; return 0;} 16427_ACEOF 16428if ac_fn_cxx_try_compile "$LINENO"; then : 16429 16430else 16431 enable_stream_missing="yes" 16432fi 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16434fi 16435 16436if test "$enable_stream_missing" = "yes"; then 16437 CXXFLAGS="$CXXFLAGS -DSTREAM_MISSING" 16438fi 16439 16440if test "$GXX" = yes ; then 16441 case "${build}" in 16442 *mingw* | *cygwin* ) ;; 16443 *) 16444 CFLAGS="$CFLAGS -fPIC" 16445 CXXFLAGS="$CXXFLAGS -fPIC" 16446 LDFLAGS="$LDFLAGS -fPIC" 16447 ;; 16448 esac 16449 if test "$enable_debug" = "yes"; then 16450 CFLAGS="$CFLAGS -O0 -g -Wall -Wundef" 16451 CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy" 16452 else 16453 CFLAGS="$CFLAGS -O2" 16454 CXXFLAGS="$CXXFLAGS -O2" 16455 fi 16456 if test "$enable_gprof" = "yes"; then 16457 CFLAGS="$CFLAGS -pg -g" 16458 CXXFLAGS="$CXXFLAGS -pg -g" 16459 fi 16460fi 16461 16462LDFLAGS="$LDFLAGS -lpthread" 16463 16464for ac_func in gmtime_r localtime_r 16465do : 16466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16467ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 16468if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16469 cat >>confdefs.h <<_ACEOF 16470@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16471_ACEOF 16472 16473fi 16474done 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484ac_config_files="$ac_config_files libzen-config" 16485 16486ac_config_files="$ac_config_files libzen.pc" 16487 16488 16489ac_config_files="$ac_config_files Makefile" 16490 16491cat >confcache <<\_ACEOF 16492# This file is a shell script that caches the results of configure 16493# tests run on this system so they can be shared between configure 16494# scripts and configure runs, see configure's option --config-cache. 16495# It is not useful on other systems. If it contains results you don't 16496# want to keep, you may remove or edit it. 16497# 16498# config.status only pays attention to the cache file if you give it 16499# the --recheck option to rerun configure. 16500# 16501# `ac_cv_env_foo' variables (set or unset) will be overridden when 16502# loading this file, other *unset* `ac_cv_foo' will be assigned the 16503# following values. 16504 16505_ACEOF 16506 16507# The following way of writing the cache mishandles newlines in values, 16508# but we know of no workaround that is simple, portable, and efficient. 16509# So, we kill variables containing newlines. 16510# Ultrix sh set writes to stderr and can't be redirected directly, 16511# and sets the high bit in the cache file unless we assign to the vars. 16512( 16513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16514 eval ac_val=\$$ac_var 16515 case $ac_val in #( 16516 *${as_nl}*) 16517 case $ac_var in #( 16518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16520 esac 16521 case $ac_var in #( 16522 _ | IFS | as_nl) ;; #( 16523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16524 *) { eval $ac_var=; unset $ac_var;} ;; 16525 esac ;; 16526 esac 16527 done 16528 16529 (set) 2>&1 | 16530 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16531 *${as_nl}ac_space=\ *) 16532 # `set' does not quote correctly, so add quotes: double-quote 16533 # substitution turns \\\\ into \\, and sed turns \\ into \. 16534 sed -n \ 16535 "s/'/'\\\\''/g; 16536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16537 ;; #( 16538 *) 16539 # `set' quotes correctly as required by POSIX, so do not add quotes. 16540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16541 ;; 16542 esac | 16543 sort 16544) | 16545 sed ' 16546 /^ac_cv_env_/b end 16547 t clear 16548 :clear 16549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16550 t end 16551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16552 :end' >>confcache 16553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16554 if test -w "$cache_file"; then 16555 if test "x$cache_file" != "x/dev/null"; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16557$as_echo "$as_me: updating cache $cache_file" >&6;} 16558 if test ! -f "$cache_file" || test -h "$cache_file"; then 16559 cat confcache >"$cache_file" 16560 else 16561 case $cache_file in #( 16562 */* | ?:*) 16563 mv -f confcache "$cache_file"$$ && 16564 mv -f "$cache_file"$$ "$cache_file" ;; #( 16565 *) 16566 mv -f confcache "$cache_file" ;; 16567 esac 16568 fi 16569 fi 16570 else 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16573 fi 16574fi 16575rm -f confcache 16576 16577test "x$prefix" = xNONE && prefix=$ac_default_prefix 16578# Let make expand exec_prefix. 16579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16580 16581# Transform confdefs.h into DEFS. 16582# Protect against shell expansion while executing Makefile rules. 16583# Protect against Makefile macro expansion. 16584# 16585# If the first sed substitution is executed (which looks for macros that 16586# take arguments), then branch to the quote section. Otherwise, 16587# look for a macro that doesn't take arguments. 16588ac_script=' 16589:mline 16590/\\$/{ 16591 N 16592 s,\\\n,, 16593 b mline 16594} 16595t clear 16596:clear 16597s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16598t quote 16599s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16600t quote 16601b any 16602:quote 16603s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16604s/\[/\\&/g 16605s/\]/\\&/g 16606s/\$/$$/g 16607H 16608:any 16609${ 16610 g 16611 s/^\n// 16612 s/\n/ /g 16613 p 16614} 16615' 16616DEFS=`sed -n "$ac_script" confdefs.h` 16617 16618 16619ac_libobjs= 16620ac_ltlibobjs= 16621U= 16622for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16623 # 1. Remove the extension, and $U if already installed. 16624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16627 # will be set to the directory where LIBOBJS objects are built. 16628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16630done 16631LIB@&t@OBJS=$ac_libobjs 16632 16633LTLIBOBJS=$ac_ltlibobjs 16634 16635 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16637$as_echo_n "checking that generated files are newer than configure... " >&6; } 16638 if test -n "$am_sleep_pid"; then 16639 # Hide warnings about reused PIDs. 16640 wait $am_sleep_pid 2>/dev/null 16641 fi 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16643$as_echo "done" >&6; } 16644 if test -n "$EXEEXT"; then 16645 am__EXEEXT_TRUE= 16646 am__EXEEXT_FALSE='#' 16647else 16648 am__EXEEXT_TRUE='#' 16649 am__EXEEXT_FALSE= 16650fi 16651 16652if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16653 as_fn_error $? "conditional \"AMDEP\" was never defined. 16654Usually this means the macro was only invoked conditionally." "$LINENO" 5 16655fi 16656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16658Usually this means the macro was only invoked conditionally." "$LINENO" 5 16659fi 16660if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16661 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16662Usually this means the macro was only invoked conditionally." "$LINENO" 5 16663fi 16664 16665: "${CONFIG_STATUS=./config.status}" 16666ac_write_fail=0 16667ac_clean_files_save=$ac_clean_files 16668ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16669{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16670$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16671as_write_fail=0 16672cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16673#! $SHELL 16674# Generated by $as_me. 16675# Run this file to recreate the current configuration. 16676# Compiler output produced by configure, useful for debugging 16677# configure, is in config.log if it exists. 16678 16679debug=false 16680ac_cs_recheck=false 16681ac_cs_silent=false 16682 16683SHELL=\${CONFIG_SHELL-$SHELL} 16684export SHELL 16685_ASEOF 16686cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16687## -------------------- ## 16688## M4sh Initialization. ## 16689## -------------------- ## 16690 16691# Be more Bourne compatible 16692DUALCASE=1; export DUALCASE # for MKS sh 16693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16694 emulate sh 16695 NULLCMD=: 16696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16697 # is contrary to our usage. Disable this feature. 16698 alias -g '${1+"$@"}'='"$@"' 16699 setopt NO_GLOB_SUBST 16700else 16701 case `(set -o) 2>/dev/null` in @%:@( 16702 *posix*) : 16703 set -o posix ;; @%:@( 16704 *) : 16705 ;; 16706esac 16707fi 16708 16709 16710as_nl=' 16711' 16712export as_nl 16713# Printing a long string crashes Solaris 7 /usr/bin/printf. 16714as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16715as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16717# Prefer a ksh shell builtin over an external printf program on Solaris, 16718# but without wasting forks for bash or zsh. 16719if test -z "$BASH_VERSION$ZSH_VERSION" \ 16720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16721 as_echo='print -r --' 16722 as_echo_n='print -rn --' 16723elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16724 as_echo='printf %s\n' 16725 as_echo_n='printf %s' 16726else 16727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16729 as_echo_n='/usr/ucb/echo -n' 16730 else 16731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16732 as_echo_n_body='eval 16733 arg=$1; 16734 case $arg in @%:@( 16735 *"$as_nl"*) 16736 expr "X$arg" : "X\\(.*\\)$as_nl"; 16737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16738 esac; 16739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16740 ' 16741 export as_echo_n_body 16742 as_echo_n='sh -c $as_echo_n_body as_echo' 16743 fi 16744 export as_echo_body 16745 as_echo='sh -c $as_echo_body as_echo' 16746fi 16747 16748# The user is always right. 16749if test "${PATH_SEPARATOR+set}" != set; then 16750 PATH_SEPARATOR=: 16751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16753 PATH_SEPARATOR=';' 16754 } 16755fi 16756 16757 16758# IFS 16759# We need space, tab and new line, in precisely that order. Quoting is 16760# there to prevent editors from complaining about space-tab. 16761# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16762# splitting by setting IFS to empty value.) 16763IFS=" "" $as_nl" 16764 16765# Find who we are. Look in the path if we contain no directory separator. 16766as_myself= 16767case $0 in @%:@(( 16768 *[\\/]* ) as_myself=$0 ;; 16769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16770for as_dir in $PATH 16771do 16772 IFS=$as_save_IFS 16773 test -z "$as_dir" && as_dir=. 16774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16775 done 16776IFS=$as_save_IFS 16777 16778 ;; 16779esac 16780# We did not find ourselves, most probably we were run as `sh COMMAND' 16781# in which case we are not to be found in the path. 16782if test "x$as_myself" = x; then 16783 as_myself=$0 16784fi 16785if test ! -f "$as_myself"; then 16786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16787 exit 1 16788fi 16789 16790# Unset variables that we do not need and which cause bugs (e.g. in 16791# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16792# suppresses any "Segmentation fault" message there. '((' could 16793# trigger a bug in pdksh 5.2.14. 16794for as_var in BASH_ENV ENV MAIL MAILPATH 16795do eval test x\${$as_var+set} = xset \ 16796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16797done 16798PS1='$ ' 16799PS2='> ' 16800PS4='+ ' 16801 16802# NLS nuisances. 16803LC_ALL=C 16804export LC_ALL 16805LANGUAGE=C 16806export LANGUAGE 16807 16808# CDPATH. 16809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16810 16811 16812@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16813@%:@ ---------------------------------------- 16814@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16815@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16816@%:@ script with STATUS, using 1 if that was 0. 16817as_fn_error () 16818{ 16819 as_status=$1; test $as_status -eq 0 && as_status=1 16820 if test "$4"; then 16821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16823 fi 16824 $as_echo "$as_me: error: $2" >&2 16825 as_fn_exit $as_status 16826} @%:@ as_fn_error 16827 16828 16829@%:@ as_fn_set_status STATUS 16830@%:@ ----------------------- 16831@%:@ Set @S|@? to STATUS, without forking. 16832as_fn_set_status () 16833{ 16834 return $1 16835} @%:@ as_fn_set_status 16836 16837@%:@ as_fn_exit STATUS 16838@%:@ ----------------- 16839@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16840as_fn_exit () 16841{ 16842 set +e 16843 as_fn_set_status $1 16844 exit $1 16845} @%:@ as_fn_exit 16846 16847@%:@ as_fn_unset VAR 16848@%:@ --------------- 16849@%:@ Portably unset VAR. 16850as_fn_unset () 16851{ 16852 { eval $1=; unset $1;} 16853} 16854as_unset=as_fn_unset 16855@%:@ as_fn_append VAR VALUE 16856@%:@ ---------------------- 16857@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16858@%:@ advantage of any shell optimizations that allow amortized linear growth over 16859@%:@ repeated appends, instead of the typical quadratic growth present in naive 16860@%:@ implementations. 16861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16862 eval 'as_fn_append () 16863 { 16864 eval $1+=\$2 16865 }' 16866else 16867 as_fn_append () 16868 { 16869 eval $1=\$$1\$2 16870 } 16871fi # as_fn_append 16872 16873@%:@ as_fn_arith ARG... 16874@%:@ ------------------ 16875@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16876@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16877@%:@ must be portable across @S|@(()) and expr. 16878if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16879 eval 'as_fn_arith () 16880 { 16881 as_val=$(( $* )) 16882 }' 16883else 16884 as_fn_arith () 16885 { 16886 as_val=`expr "$@" || test $? -eq 1` 16887 } 16888fi # as_fn_arith 16889 16890 16891if expr a : '\(a\)' >/dev/null 2>&1 && 16892 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16893 as_expr=expr 16894else 16895 as_expr=false 16896fi 16897 16898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16899 as_basename=basename 16900else 16901 as_basename=false 16902fi 16903 16904if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16905 as_dirname=dirname 16906else 16907 as_dirname=false 16908fi 16909 16910as_me=`$as_basename -- "$0" || 16911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16912 X"$0" : 'X\(//\)$' \| \ 16913 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16914$as_echo X/"$0" | 16915 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16916 s//\1/ 16917 q 16918 } 16919 /^X\/\(\/\/\)$/{ 16920 s//\1/ 16921 q 16922 } 16923 /^X\/\(\/\).*/{ 16924 s//\1/ 16925 q 16926 } 16927 s/.*/./; q'` 16928 16929# Avoid depending upon Character Ranges. 16930as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16932as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16933as_cr_digits='0123456789' 16934as_cr_alnum=$as_cr_Letters$as_cr_digits 16935 16936ECHO_C= ECHO_N= ECHO_T= 16937case `echo -n x` in @%:@((((( 16938-n*) 16939 case `echo 'xy\c'` in 16940 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16941 xy) ECHO_C='\c';; 16942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16943 ECHO_T=' ';; 16944 esac;; 16945*) 16946 ECHO_N='-n';; 16947esac 16948 16949rm -f conf$$ conf$$.exe conf$$.file 16950if test -d conf$$.dir; then 16951 rm -f conf$$.dir/conf$$.file 16952else 16953 rm -f conf$$.dir 16954 mkdir conf$$.dir 2>/dev/null 16955fi 16956if (echo >conf$$.file) 2>/dev/null; then 16957 if ln -s conf$$.file conf$$ 2>/dev/null; then 16958 as_ln_s='ln -s' 16959 # ... but there are two gotchas: 16960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16962 # In both cases, we have to default to `cp -pR'. 16963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16964 as_ln_s='cp -pR' 16965 elif ln conf$$.file conf$$ 2>/dev/null; then 16966 as_ln_s=ln 16967 else 16968 as_ln_s='cp -pR' 16969 fi 16970else 16971 as_ln_s='cp -pR' 16972fi 16973rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16974rmdir conf$$.dir 2>/dev/null 16975 16976 16977@%:@ as_fn_mkdir_p 16978@%:@ ------------- 16979@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16980as_fn_mkdir_p () 16981{ 16982 16983 case $as_dir in #( 16984 -*) as_dir=./$as_dir;; 16985 esac 16986 test -d "$as_dir" || eval $as_mkdir_p || { 16987 as_dirs= 16988 while :; do 16989 case $as_dir in #( 16990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16991 *) as_qdir=$as_dir;; 16992 esac 16993 as_dirs="'$as_qdir' $as_dirs" 16994 as_dir=`$as_dirname -- "$as_dir" || 16995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16996 X"$as_dir" : 'X\(//\)[^/]' \| \ 16997 X"$as_dir" : 'X\(//\)$' \| \ 16998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16999$as_echo X"$as_dir" | 17000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17001 s//\1/ 17002 q 17003 } 17004 /^X\(\/\/\)[^/].*/{ 17005 s//\1/ 17006 q 17007 } 17008 /^X\(\/\/\)$/{ 17009 s//\1/ 17010 q 17011 } 17012 /^X\(\/\).*/{ 17013 s//\1/ 17014 q 17015 } 17016 s/.*/./; q'` 17017 test -d "$as_dir" && break 17018 done 17019 test -z "$as_dirs" || eval "mkdir $as_dirs" 17020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17021 17022 17023} @%:@ as_fn_mkdir_p 17024if mkdir -p . 2>/dev/null; then 17025 as_mkdir_p='mkdir -p "$as_dir"' 17026else 17027 test -d ./-p && rmdir ./-p 17028 as_mkdir_p=false 17029fi 17030 17031 17032@%:@ as_fn_executable_p FILE 17033@%:@ ----------------------- 17034@%:@ Test if FILE is an executable regular file. 17035as_fn_executable_p () 17036{ 17037 test -f "$1" && test -x "$1" 17038} @%:@ as_fn_executable_p 17039as_test_x='test -x' 17040as_executable_p=as_fn_executable_p 17041 17042# Sed expression to map a string onto a valid CPP name. 17043as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17044 17045# Sed expression to map a string onto a valid variable name. 17046as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17047 17048 17049exec 6>&1 17050## ----------------------------------- ## 17051## Main body of $CONFIG_STATUS script. ## 17052## ----------------------------------- ## 17053_ASEOF 17054test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17055 17056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17057# Save the log message, to keep $0 and so on meaningful, and to 17058# report actual input values of CONFIG_FILES etc. instead of their 17059# values after options handling. 17060ac_log=" 17061This file was extended by libzen $as_me 0.4.39, which was 17062generated by GNU Autoconf 2.69. Invocation command line was 17063 17064 CONFIG_FILES = $CONFIG_FILES 17065 CONFIG_HEADERS = $CONFIG_HEADERS 17066 CONFIG_LINKS = $CONFIG_LINKS 17067 CONFIG_COMMANDS = $CONFIG_COMMANDS 17068 $ $0 $@ 17069 17070on `(hostname || uname -n) 2>/dev/null | sed 1q` 17071" 17072 17073_ACEOF 17074 17075case $ac_config_files in *" 17076"*) set x $ac_config_files; shift; ac_config_files=$*;; 17077esac 17078 17079 17080 17081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17082# Files that config.status was made for. 17083config_files="$ac_config_files" 17084config_commands="$ac_config_commands" 17085 17086_ACEOF 17087 17088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17089ac_cs_usage="\ 17090\`$as_me' instantiates files and other configuration actions 17091from templates according to the current configuration. Unless the files 17092and actions are specified as TAGs, all are instantiated by default. 17093 17094Usage: $0 [OPTION]... [TAG]... 17095 17096 -h, --help print this help, then exit 17097 -V, --version print version number and configuration settings, then exit 17098 --config print configuration, then exit 17099 -q, --quiet, --silent 17100 do not print progress messages 17101 -d, --debug don't remove temporary files 17102 --recheck update $as_me by reconfiguring in the same conditions 17103 --file=FILE[:TEMPLATE] 17104 instantiate the configuration file FILE 17105 17106Configuration files: 17107$config_files 17108 17109Configuration commands: 17110$config_commands 17111 17112Report bugs to the package provider." 17113 17114_ACEOF 17115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17116ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17117ac_cs_version="\\ 17118libzen config.status 0.4.39 17119configured by $0, generated by GNU Autoconf 2.69, 17120 with options \\"\$ac_cs_config\\" 17121 17122Copyright (C) 2012 Free Software Foundation, Inc. 17123This config.status script is free software; the Free Software Foundation 17124gives unlimited permission to copy, distribute and modify it." 17125 17126ac_pwd='$ac_pwd' 17127srcdir='$srcdir' 17128INSTALL='$INSTALL' 17129MKDIR_P='$MKDIR_P' 17130AWK='$AWK' 17131test -n "\$AWK" || AWK=awk 17132_ACEOF 17133 17134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17135# The default lists apply if the user does not specify any file. 17136ac_need_defaults=: 17137while test $# != 0 17138do 17139 case $1 in 17140 --*=?*) 17141 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17143 ac_shift=: 17144 ;; 17145 --*=) 17146 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17147 ac_optarg= 17148 ac_shift=: 17149 ;; 17150 *) 17151 ac_option=$1 17152 ac_optarg=$2 17153 ac_shift=shift 17154 ;; 17155 esac 17156 17157 case $ac_option in 17158 # Handling of the options. 17159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17160 ac_cs_recheck=: ;; 17161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17162 $as_echo "$ac_cs_version"; exit ;; 17163 --config | --confi | --conf | --con | --co | --c ) 17164 $as_echo "$ac_cs_config"; exit ;; 17165 --debug | --debu | --deb | --de | --d | -d ) 17166 debug=: ;; 17167 --file | --fil | --fi | --f ) 17168 $ac_shift 17169 case $ac_optarg in 17170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17171 '') as_fn_error $? "missing file argument" ;; 17172 esac 17173 as_fn_append CONFIG_FILES " '$ac_optarg'" 17174 ac_need_defaults=false;; 17175 --he | --h | --help | --hel | -h ) 17176 $as_echo "$ac_cs_usage"; exit ;; 17177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17178 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17179 ac_cs_silent=: ;; 17180 17181 # This is an error. 17182 -*) as_fn_error $? "unrecognized option: \`$1' 17183Try \`$0 --help' for more information." ;; 17184 17185 *) as_fn_append ac_config_targets " $1" 17186 ac_need_defaults=false ;; 17187 17188 esac 17189 shift 17190done 17191 17192ac_configure_extra_args= 17193 17194if $ac_cs_silent; then 17195 exec 6>/dev/null 17196 ac_configure_extra_args="$ac_configure_extra_args --silent" 17197fi 17198 17199_ACEOF 17200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17201if \$ac_cs_recheck; then 17202 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17203 shift 17204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17205 CONFIG_SHELL='$SHELL' 17206 export CONFIG_SHELL 17207 exec "\$@" 17208fi 17209 17210_ACEOF 17211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17212exec 5>>config.log 17213{ 17214 echo 17215 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 17216@%:@@%:@ Running $as_me. @%:@@%:@ 17217_ASBOX 17218 $as_echo "$ac_log" 17219} >&5 17220 17221_ACEOF 17222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17223# 17224# INIT-COMMANDS 17225# 17226AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17227 17228 17229# The HP-UX ksh and POSIX shell print the target directory to stdout 17230# if CDPATH is set. 17231(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17232 17233sed_quote_subst='$sed_quote_subst' 17234double_quote_subst='$double_quote_subst' 17235delay_variable_subst='$delay_variable_subst' 17236enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17237AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17238DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17239OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17240macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17241macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17242enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17243pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17244enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17245shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17246SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17247ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17248PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17249host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17250host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17251host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17252build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17253build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17254build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17255SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17256Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17257GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17258EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17259FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17260LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17261NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17262LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17263max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17264ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17265exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17266lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17267lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17268lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17269lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17270lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17271reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17272reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17273deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17274file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17275file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17276want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17277sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17278AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17279AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17280archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17281STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17282RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17283old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17284old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17285old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17286lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17287CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17288CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17289compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17290GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17291lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17292lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17293lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17294lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17295lt_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"`' 17296lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17297nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17298lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17299lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17300objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17301MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17302lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17303lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17304lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17305lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17306lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17307need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17308MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17309DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17310NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17311LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17312OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17313OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17314libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17315shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17316extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17317archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17318enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17319export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17320whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17321compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17322old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17323old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17324archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17325archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17326module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17327module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17328with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17329allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17330no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17331hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17332hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17333hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17334hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17335hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17336hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17337hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17338inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17339link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17340always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17341export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17342exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17343include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17344prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17345postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17346file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17347variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17348need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17349need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17350version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17351runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17352shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17353shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17354libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17355library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17356soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17357install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17358postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17359postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17360finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17361finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17362hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17363sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17364configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17365configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17366hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17367enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17368enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17369enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17370old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17371striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17372compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17373predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17374postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17375predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17376postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17377compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17378LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17379reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17380reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17381old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17382compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17383GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17384lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17385lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17386lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17387lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17388lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17389archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17390enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17391export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17392whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17393compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17394old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17395old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17396archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17397archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17398module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17399module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17400with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17401allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17402no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17403hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17404hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17405hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17406hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17407hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17408hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17409hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17410inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17411link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17412always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17413export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17414exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17415include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17416prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17417postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17418file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17419hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17420compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17421predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17422postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17423predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17424postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17425compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17426 17427LTCC='$LTCC' 17428LTCFLAGS='$LTCFLAGS' 17429compiler='$compiler_DEFAULT' 17430 17431# A function that is used when there is no print builtin or printf. 17432func_fallback_echo () 17433{ 17434 eval 'cat <<_LTECHO_EOF 17435\$1 17436_LTECHO_EOF' 17437} 17438 17439# Quote evaled strings. 17440for var in AS \ 17441DLLTOOL \ 17442OBJDUMP \ 17443SHELL \ 17444ECHO \ 17445PATH_SEPARATOR \ 17446SED \ 17447GREP \ 17448EGREP \ 17449FGREP \ 17450LD \ 17451NM \ 17452LN_S \ 17453lt_SP2NL \ 17454lt_NL2SP \ 17455reload_flag \ 17456deplibs_check_method \ 17457file_magic_cmd \ 17458file_magic_glob \ 17459want_nocaseglob \ 17460sharedlib_from_linklib_cmd \ 17461AR \ 17462AR_FLAGS \ 17463archiver_list_spec \ 17464STRIP \ 17465RANLIB \ 17466CC \ 17467CFLAGS \ 17468compiler \ 17469lt_cv_sys_global_symbol_pipe \ 17470lt_cv_sys_global_symbol_to_cdecl \ 17471lt_cv_sys_global_symbol_to_import \ 17472lt_cv_sys_global_symbol_to_c_name_address \ 17473lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17474lt_cv_nm_interface \ 17475nm_file_list_spec \ 17476lt_cv_truncate_bin \ 17477lt_prog_compiler_no_builtin_flag \ 17478lt_prog_compiler_pic \ 17479lt_prog_compiler_wl \ 17480lt_prog_compiler_static \ 17481lt_cv_prog_compiler_c_o \ 17482need_locks \ 17483MANIFEST_TOOL \ 17484DSYMUTIL \ 17485NMEDIT \ 17486LIPO \ 17487OTOOL \ 17488OTOOL64 \ 17489shrext_cmds \ 17490export_dynamic_flag_spec \ 17491whole_archive_flag_spec \ 17492compiler_needs_object \ 17493with_gnu_ld \ 17494allow_undefined_flag \ 17495no_undefined_flag \ 17496hardcode_libdir_flag_spec \ 17497hardcode_libdir_separator \ 17498exclude_expsyms \ 17499include_expsyms \ 17500file_list_spec \ 17501variables_saved_for_relink \ 17502libname_spec \ 17503library_names_spec \ 17504soname_spec \ 17505install_override_mode \ 17506finish_eval \ 17507old_striplib \ 17508striplib \ 17509compiler_lib_search_dirs \ 17510predep_objects \ 17511postdep_objects \ 17512predeps \ 17513postdeps \ 17514compiler_lib_search_path \ 17515LD_CXX \ 17516reload_flag_CXX \ 17517compiler_CXX \ 17518lt_prog_compiler_no_builtin_flag_CXX \ 17519lt_prog_compiler_pic_CXX \ 17520lt_prog_compiler_wl_CXX \ 17521lt_prog_compiler_static_CXX \ 17522lt_cv_prog_compiler_c_o_CXX \ 17523export_dynamic_flag_spec_CXX \ 17524whole_archive_flag_spec_CXX \ 17525compiler_needs_object_CXX \ 17526with_gnu_ld_CXX \ 17527allow_undefined_flag_CXX \ 17528no_undefined_flag_CXX \ 17529hardcode_libdir_flag_spec_CXX \ 17530hardcode_libdir_separator_CXX \ 17531exclude_expsyms_CXX \ 17532include_expsyms_CXX \ 17533file_list_spec_CXX \ 17534compiler_lib_search_dirs_CXX \ 17535predep_objects_CXX \ 17536postdep_objects_CXX \ 17537predeps_CXX \ 17538postdeps_CXX \ 17539compiler_lib_search_path_CXX; do 17540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17541 *[\\\\\\\`\\"\\\$]*) 17542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17543 ;; 17544 *) 17545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17546 ;; 17547 esac 17548done 17549 17550# Double-quote double-evaled strings. 17551for var in reload_cmds \ 17552old_postinstall_cmds \ 17553old_postuninstall_cmds \ 17554old_archive_cmds \ 17555extract_expsyms_cmds \ 17556old_archive_from_new_cmds \ 17557old_archive_from_expsyms_cmds \ 17558archive_cmds \ 17559archive_expsym_cmds \ 17560module_cmds \ 17561module_expsym_cmds \ 17562export_symbols_cmds \ 17563prelink_cmds \ 17564postlink_cmds \ 17565postinstall_cmds \ 17566postuninstall_cmds \ 17567finish_cmds \ 17568sys_lib_search_path_spec \ 17569configure_time_dlsearch_path \ 17570configure_time_lt_sys_library_path \ 17571reload_cmds_CXX \ 17572old_archive_cmds_CXX \ 17573old_archive_from_new_cmds_CXX \ 17574old_archive_from_expsyms_cmds_CXX \ 17575archive_cmds_CXX \ 17576archive_expsym_cmds_CXX \ 17577module_cmds_CXX \ 17578module_expsym_cmds_CXX \ 17579export_symbols_cmds_CXX \ 17580prelink_cmds_CXX \ 17581postlink_cmds_CXX; do 17582 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17583 *[\\\\\\\`\\"\\\$]*) 17584 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17585 ;; 17586 *) 17587 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17588 ;; 17589 esac 17590done 17591 17592ac_aux_dir='$ac_aux_dir' 17593 17594# See if we are running on zsh, and set the options that allow our 17595# commands through without removal of \ escapes INIT. 17596if test -n "\${ZSH_VERSION+set}"; then 17597 setopt NO_GLOB_SUBST 17598fi 17599 17600 17601 PACKAGE='$PACKAGE' 17602 VERSION='$VERSION' 17603 RM='$RM' 17604 ofile='$ofile' 17605 17606 17607 17608 17609 17610 17611_ACEOF 17612 17613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17614 17615# Handling of arguments. 17616for ac_config_target in $ac_config_targets 17617do 17618 case $ac_config_target in 17619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17621 "libzen-config") CONFIG_FILES="$CONFIG_FILES libzen-config" ;; 17622 "libzen.pc") CONFIG_FILES="$CONFIG_FILES libzen.pc" ;; 17623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17624 17625 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17626 esac 17627done 17628 17629 17630# If the user did not use the arguments to specify the items to instantiate, 17631# then the envvar interface is used. Set only those that are not. 17632# We use the long form for the default assignment because of an extremely 17633# bizarre bug on SunOS 4.1.3. 17634if $ac_need_defaults; then 17635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17636 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17637fi 17638 17639# Have a temporary directory for convenience. Make it in the build tree 17640# simply because there is no reason against having it here, and in addition, 17641# creating and moving files from /tmp can sometimes cause problems. 17642# Hook for its removal unless debugging. 17643# Note that there is a small window in which the directory will not be cleaned: 17644# after its creation but before its name has been assigned to `$tmp'. 17645$debug || 17646{ 17647 tmp= ac_tmp= 17648 trap 'exit_status=$? 17649 : "${ac_tmp:=$tmp}" 17650 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17651' 0 17652 trap 'as_fn_exit 1' 1 2 13 15 17653} 17654# Create a (secure) tmp directory for tmp files. 17655 17656{ 17657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17658 test -d "$tmp" 17659} || 17660{ 17661 tmp=./conf$$-$RANDOM 17662 (umask 077 && mkdir "$tmp") 17663} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17664ac_tmp=$tmp 17665 17666# Set up the scripts for CONFIG_FILES section. 17667# No need to generate them if there are no CONFIG_FILES. 17668# This happens for instance with `./config.status config.h'. 17669if test -n "$CONFIG_FILES"; then 17670 17671 17672ac_cr=`echo X | tr X '\015'` 17673# On cygwin, bash can eat \r inside `` if the user requested igncr. 17674# But we know of no other shell where ac_cr would be empty at this 17675# point, so we can use a bashism as a fallback. 17676if test "x$ac_cr" = x; then 17677 eval ac_cr=\$\'\\r\' 17678fi 17679ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17680if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17681 ac_cs_awk_cr='\\r' 17682else 17683 ac_cs_awk_cr=$ac_cr 17684fi 17685 17686echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17687_ACEOF 17688 17689 17690{ 17691 echo "cat >conf$$subs.awk <<_ACEOF" && 17692 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17693 echo "_ACEOF" 17694} >conf$$subs.sh || 17695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17696ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17697ac_delim='%!_!# ' 17698for ac_last_try in false false false false false :; do 17699 . ./conf$$subs.sh || 17700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17701 17702 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17703 if test $ac_delim_n = $ac_delim_num; then 17704 break 17705 elif $ac_last_try; then 17706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17707 else 17708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17709 fi 17710done 17711rm -f conf$$subs.sh 17712 17713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17714cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17715_ACEOF 17716sed -n ' 17717h 17718s/^/S["/; s/!.*/"]=/ 17719p 17720g 17721s/^[^!]*!// 17722:repl 17723t repl 17724s/'"$ac_delim"'$// 17725t delim 17726:nl 17727h 17728s/\(.\{148\}\)..*/\1/ 17729t more1 17730s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17731p 17732n 17733b repl 17734:more1 17735s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17736p 17737g 17738s/.\{148\}// 17739t nl 17740:delim 17741h 17742s/\(.\{148\}\)..*/\1/ 17743t more2 17744s/["\\]/\\&/g; s/^/"/; s/$/"/ 17745p 17746b 17747:more2 17748s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17749p 17750g 17751s/.\{148\}// 17752t delim 17753' <conf$$subs.awk | sed ' 17754/^[^""]/{ 17755 N 17756 s/\n// 17757} 17758' >>$CONFIG_STATUS || ac_write_fail=1 17759rm -f conf$$subs.awk 17760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17761_ACAWK 17762cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17763 for (key in S) S_is_set[key] = 1 17764 FS = "" 17765 17766} 17767{ 17768 line = $ 0 17769 nfields = split(line, field, "@") 17770 substed = 0 17771 len = length(field[1]) 17772 for (i = 2; i < nfields; i++) { 17773 key = field[i] 17774 keylen = length(key) 17775 if (S_is_set[key]) { 17776 value = S[key] 17777 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17778 len += length(value) + length(field[++i]) 17779 substed = 1 17780 } else 17781 len += 1 + keylen 17782 } 17783 17784 print line 17785} 17786 17787_ACAWK 17788_ACEOF 17789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17790if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17791 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17792else 17793 cat 17794fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17795 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17796_ACEOF 17797 17798# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17799# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17800# trailing colons and then remove the whole line if VPATH becomes empty 17801# (actually we leave an empty line to preserve line numbers). 17802if test "x$srcdir" = x.; then 17803 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17804h 17805s/// 17806s/^/:/ 17807s/[ ]*$/:/ 17808s/:\$(srcdir):/:/g 17809s/:\${srcdir}:/:/g 17810s/:@srcdir@:/:/g 17811s/^:*// 17812s/:*$// 17813x 17814s/\(=[ ]*\).*/\1/ 17815G 17816s/\n// 17817s/^[^=]*=[ ]*$// 17818}' 17819fi 17820 17821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17822fi # test -n "$CONFIG_FILES" 17823 17824 17825eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17826shift 17827for ac_tag 17828do 17829 case $ac_tag in 17830 :[FHLC]) ac_mode=$ac_tag; continue;; 17831 esac 17832 case $ac_mode$ac_tag in 17833 :[FHL]*:*);; 17834 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17835 :[FH]-) ac_tag=-:-;; 17836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17837 esac 17838 ac_save_IFS=$IFS 17839 IFS=: 17840 set x $ac_tag 17841 IFS=$ac_save_IFS 17842 shift 17843 ac_file=$1 17844 shift 17845 17846 case $ac_mode in 17847 :L) ac_source=$1;; 17848 :[FH]) 17849 ac_file_inputs= 17850 for ac_f 17851 do 17852 case $ac_f in 17853 -) ac_f="$ac_tmp/stdin";; 17854 *) # Look for the file first in the build tree, then in the source tree 17855 # (if the path is not absolute). The absolute path cannot be DOS-style, 17856 # because $ac_f cannot contain `:'. 17857 test -f "$ac_f" || 17858 case $ac_f in 17859 [\\/$]*) false;; 17860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17861 esac || 17862 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17863 esac 17864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17865 as_fn_append ac_file_inputs " '$ac_f'" 17866 done 17867 17868 # Let's still pretend it is `configure' which instantiates (i.e., don't 17869 # use $as_me), people would be surprised to read: 17870 # /* config.h. Generated by config.status. */ 17871 configure_input='Generated from '` 17872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17873 `' by configure.' 17874 if test x"$ac_file" != x-; then 17875 configure_input="$ac_file. $configure_input" 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17877$as_echo "$as_me: creating $ac_file" >&6;} 17878 fi 17879 # Neutralize special characters interpreted by sed in replacement strings. 17880 case $configure_input in #( 17881 *\&* | *\|* | *\\* ) 17882 ac_sed_conf_input=`$as_echo "$configure_input" | 17883 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17884 *) ac_sed_conf_input=$configure_input;; 17885 esac 17886 17887 case $ac_tag in 17888 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17890 esac 17891 ;; 17892 esac 17893 17894 ac_dir=`$as_dirname -- "$ac_file" || 17895$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17896 X"$ac_file" : 'X\(//\)[^/]' \| \ 17897 X"$ac_file" : 'X\(//\)$' \| \ 17898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17899$as_echo X"$ac_file" | 17900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17901 s//\1/ 17902 q 17903 } 17904 /^X\(\/\/\)[^/].*/{ 17905 s//\1/ 17906 q 17907 } 17908 /^X\(\/\/\)$/{ 17909 s//\1/ 17910 q 17911 } 17912 /^X\(\/\).*/{ 17913 s//\1/ 17914 q 17915 } 17916 s/.*/./; q'` 17917 as_dir="$ac_dir"; as_fn_mkdir_p 17918 ac_builddir=. 17919 17920case "$ac_dir" in 17921.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17922*) 17923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17924 # A ".." for each directory in $ac_dir_suffix. 17925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17926 case $ac_top_builddir_sub in 17927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17929 esac ;; 17930esac 17931ac_abs_top_builddir=$ac_pwd 17932ac_abs_builddir=$ac_pwd$ac_dir_suffix 17933# for backward compatibility: 17934ac_top_builddir=$ac_top_build_prefix 17935 17936case $srcdir in 17937 .) # We are building in place. 17938 ac_srcdir=. 17939 ac_top_srcdir=$ac_top_builddir_sub 17940 ac_abs_top_srcdir=$ac_pwd ;; 17941 [\\/]* | ?:[\\/]* ) # Absolute name. 17942 ac_srcdir=$srcdir$ac_dir_suffix; 17943 ac_top_srcdir=$srcdir 17944 ac_abs_top_srcdir=$srcdir ;; 17945 *) # Relative name. 17946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17947 ac_top_srcdir=$ac_top_build_prefix$srcdir 17948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17949esac 17950ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17951 17952 17953 case $ac_mode in 17954 :F) 17955 # 17956 # CONFIG_FILE 17957 # 17958 17959 case $INSTALL in 17960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17962 esac 17963 ac_MKDIR_P=$MKDIR_P 17964 case $MKDIR_P in 17965 [\\/$]* | ?:[\\/]* ) ;; 17966 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17967 esac 17968_ACEOF 17969 17970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17971# If the template does not know about datarootdir, expand it. 17972# FIXME: This hack should be removed a few years after 2.60. 17973ac_datarootdir_hack=; ac_datarootdir_seen= 17974ac_sed_dataroot=' 17975/datarootdir/ { 17976 p 17977 q 17978} 17979/@datadir@/p 17980/@docdir@/p 17981/@infodir@/p 17982/@localedir@/p 17983/@mandir@/p' 17984case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17985*datarootdir*) ac_datarootdir_seen=yes;; 17986*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17988$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17989_ACEOF 17990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17991 ac_datarootdir_hack=' 17992 s&@datadir@&$datadir&g 17993 s&@docdir@&$docdir&g 17994 s&@infodir@&$infodir&g 17995 s&@localedir@&$localedir&g 17996 s&@mandir@&$mandir&g 17997 s&\\\${datarootdir}&$datarootdir&g' ;; 17998esac 17999_ACEOF 18000 18001# Neutralize VPATH when `$srcdir' = `.'. 18002# Shell code in configure.ac might set extrasub. 18003# FIXME: do we really want to maintain this feature? 18004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18005ac_sed_extra="$ac_vpsub 18006$extrasub 18007_ACEOF 18008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18009:t 18010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18011s|@configure_input@|$ac_sed_conf_input|;t t 18012s&@top_builddir@&$ac_top_builddir_sub&;t t 18013s&@top_build_prefix@&$ac_top_build_prefix&;t t 18014s&@srcdir@&$ac_srcdir&;t t 18015s&@abs_srcdir@&$ac_abs_srcdir&;t t 18016s&@top_srcdir@&$ac_top_srcdir&;t t 18017s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18018s&@builddir@&$ac_builddir&;t t 18019s&@abs_builddir@&$ac_abs_builddir&;t t 18020s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18021s&@INSTALL@&$ac_INSTALL&;t t 18022s&@MKDIR_P@&$ac_MKDIR_P&;t t 18023$ac_datarootdir_hack 18024" 18025eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18026 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18027 18028test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18029 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18031 "$ac_tmp/out"`; test -z "$ac_out"; } && 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18033which seems to be undefined. Please make sure it is defined" >&5 18034$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18035which seems to be undefined. Please make sure it is defined" >&2;} 18036 18037 rm -f "$ac_tmp/stdin" 18038 case $ac_file in 18039 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18040 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18041 esac \ 18042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18043 ;; 18044 18045 18046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18047$as_echo "$as_me: executing $ac_file commands" >&6;} 18048 ;; 18049 esac 18050 18051 18052 case $ac_file$ac_mode in 18053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18054 # Older Autoconf quotes --file arguments for eval, but not when files 18055 # are listed without --file. Let's play safe and only enable the eval 18056 # if we detect the quoting. 18057 # TODO: see whether this extra hack can be removed once we start 18058 # requiring Autoconf 2.70 or later. 18059 case $CONFIG_FILES in @%:@( 18060 *\'*) : 18061 eval set x "$CONFIG_FILES" ;; @%:@( 18062 *) : 18063 set x $CONFIG_FILES ;; @%:@( 18064 *) : 18065 ;; 18066esac 18067 shift 18068 # Used to flag and report bootstrapping failures. 18069 am_rc=0 18070 for am_mf 18071 do 18072 # Strip MF so we end up with the name of the file. 18073 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18074 # Check whether this is an Automake generated Makefile which includes 18075 # dependency-tracking related rules and includes. 18076 # Grep'ing the whole file directly is not great: AIX grep has a line 18077 # limit of 2048, but all sed's we know have understand at least 4000. 18078 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18079 || continue 18080 am_dirpart=`$as_dirname -- "$am_mf" || 18081$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18082 X"$am_mf" : 'X\(//\)[^/]' \| \ 18083 X"$am_mf" : 'X\(//\)$' \| \ 18084 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18085$as_echo X"$am_mf" | 18086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18087 s//\1/ 18088 q 18089 } 18090 /^X\(\/\/\)[^/].*/{ 18091 s//\1/ 18092 q 18093 } 18094 /^X\(\/\/\)$/{ 18095 s//\1/ 18096 q 18097 } 18098 /^X\(\/\).*/{ 18099 s//\1/ 18100 q 18101 } 18102 s/.*/./; q'` 18103 am_filepart=`$as_basename -- "$am_mf" || 18104$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18105 X"$am_mf" : 'X\(//\)$' \| \ 18106 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18107$as_echo X/"$am_mf" | 18108 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18109 s//\1/ 18110 q 18111 } 18112 /^X\/\(\/\/\)$/{ 18113 s//\1/ 18114 q 18115 } 18116 /^X\/\(\/\).*/{ 18117 s//\1/ 18118 q 18119 } 18120 s/.*/./; q'` 18121 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18122 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18123 | $MAKE -f - am--depfiles" >&5 18124 (cd "$am_dirpart" \ 18125 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18126 | $MAKE -f - am--depfiles) >&5 2>&5 18127 ac_status=$? 18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18129 (exit $ac_status); } || am_rc=$? 18130 done 18131 if test $am_rc -ne 0; then 18132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18134as_fn_error $? "Something went wrong bootstrapping makefile fragments 18135 for automatic dependency tracking. Try re-running configure with the 18136 '--disable-dependency-tracking' option to at least be able to build 18137 the package (albeit without support for automatic dependency tracking). 18138See \`config.log' for more details" "$LINENO" 5; } 18139 fi 18140 { am_dirpart=; unset am_dirpart;} 18141 { am_filepart=; unset am_filepart;} 18142 { am_mf=; unset am_mf;} 18143 { am_rc=; unset am_rc;} 18144 rm -f conftest-deps.mk 18145} 18146 ;; 18147 "libtool":C) 18148 18149 # See if we are running on zsh, and set the options that allow our 18150 # commands through without removal of \ escapes. 18151 if test -n "${ZSH_VERSION+set}"; then 18152 setopt NO_GLOB_SUBST 18153 fi 18154 18155 cfgfile=${ofile}T 18156 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18157 $RM "$cfgfile" 18158 18159 cat <<_LT_EOF >> "$cfgfile" 18160#! $SHELL 18161# Generated automatically by $as_me ($PACKAGE) $VERSION 18162# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18163 18164# Provide generalized library-building support services. 18165# Written by Gordon Matzigkeit, 1996 18166 18167# Copyright (C) 2014 Free Software Foundation, Inc. 18168# This is free software; see the source for copying conditions. There is NO 18169# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18170 18171# GNU Libtool is free software; you can redistribute it and/or modify 18172# it under the terms of the GNU General Public License as published by 18173# the Free Software Foundation; either version 2 of of the License, or 18174# (at your option) any later version. 18175# 18176# As a special exception to the GNU General Public License, if you 18177# distribute this file as part of a program or library that is built 18178# using GNU Libtool, you may include this file under the same 18179# distribution terms that you use for the rest of that program. 18180# 18181# GNU Libtool is distributed in the hope that it will be useful, but 18182# WITHOUT ANY WARRANTY; without even the implied warranty of 18183# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18184# GNU General Public License for more details. 18185# 18186# You should have received a copy of the GNU General Public License 18187# along with this program. If not, see <http://www.gnu.org/licenses/>. 18188 18189 18190# The names of the tagged configurations supported by this script. 18191available_tags='CXX ' 18192 18193# Configured defaults for sys_lib_dlsearch_path munging. 18194: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18195 18196# ### BEGIN LIBTOOL CONFIG 18197 18198# Whether or not to build static libraries. 18199build_old_libs=$enable_static 18200 18201# Assembler program. 18202AS=$lt_AS 18203 18204# DLL creation program. 18205DLLTOOL=$lt_DLLTOOL 18206 18207# Object dumper program. 18208OBJDUMP=$lt_OBJDUMP 18209 18210# Which release of libtool.m4 was used? 18211macro_version=$macro_version 18212macro_revision=$macro_revision 18213 18214# Whether or not to build shared libraries. 18215build_libtool_libs=$enable_shared 18216 18217# What type of objects to build. 18218pic_mode=$pic_mode 18219 18220# Whether or not to optimize for fast installation. 18221fast_install=$enable_fast_install 18222 18223# Shared archive member basename,for filename based shared library versioning on AIX. 18224shared_archive_member_spec=$shared_archive_member_spec 18225 18226# Shell to use when invoking shell scripts. 18227SHELL=$lt_SHELL 18228 18229# An echo program that protects backslashes. 18230ECHO=$lt_ECHO 18231 18232# The PATH separator for the build system. 18233PATH_SEPARATOR=$lt_PATH_SEPARATOR 18234 18235# The host system. 18236host_alias=$host_alias 18237host=$host 18238host_os=$host_os 18239 18240# The build system. 18241build_alias=$build_alias 18242build=$build 18243build_os=$build_os 18244 18245# A sed program that does not truncate output. 18246SED=$lt_SED 18247 18248# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18249Xsed="\$SED -e 1s/^X//" 18250 18251# A grep program that handles long lines. 18252GREP=$lt_GREP 18253 18254# An ERE matcher. 18255EGREP=$lt_EGREP 18256 18257# A literal string matcher. 18258FGREP=$lt_FGREP 18259 18260# A BSD- or MS-compatible name lister. 18261NM=$lt_NM 18262 18263# Whether we need soft or hard links. 18264LN_S=$lt_LN_S 18265 18266# What is the maximum length of a command? 18267max_cmd_len=$max_cmd_len 18268 18269# Object file suffix (normally "o"). 18270objext=$ac_objext 18271 18272# Executable file suffix (normally ""). 18273exeext=$exeext 18274 18275# whether the shell understands "unset". 18276lt_unset=$lt_unset 18277 18278# turn spaces into newlines. 18279SP2NL=$lt_lt_SP2NL 18280 18281# turn newlines into spaces. 18282NL2SP=$lt_lt_NL2SP 18283 18284# convert \$build file names to \$host format. 18285to_host_file_cmd=$lt_cv_to_host_file_cmd 18286 18287# convert \$build files to toolchain format. 18288to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18289 18290# Method to check whether dependent libraries are shared objects. 18291deplibs_check_method=$lt_deplibs_check_method 18292 18293# Command to use when deplibs_check_method = "file_magic". 18294file_magic_cmd=$lt_file_magic_cmd 18295 18296# How to find potential files when deplibs_check_method = "file_magic". 18297file_magic_glob=$lt_file_magic_glob 18298 18299# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18300want_nocaseglob=$lt_want_nocaseglob 18301 18302# Command to associate shared and link libraries. 18303sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18304 18305# The archiver. 18306AR=$lt_AR 18307 18308# Flags to create an archive. 18309AR_FLAGS=$lt_AR_FLAGS 18310 18311# How to feed a file listing to the archiver. 18312archiver_list_spec=$lt_archiver_list_spec 18313 18314# A symbol stripping program. 18315STRIP=$lt_STRIP 18316 18317# Commands used to install an old-style archive. 18318RANLIB=$lt_RANLIB 18319old_postinstall_cmds=$lt_old_postinstall_cmds 18320old_postuninstall_cmds=$lt_old_postuninstall_cmds 18321 18322# Whether to use a lock for old archive extraction. 18323lock_old_archive_extraction=$lock_old_archive_extraction 18324 18325# A C compiler. 18326LTCC=$lt_CC 18327 18328# LTCC compiler flags. 18329LTCFLAGS=$lt_CFLAGS 18330 18331# Take the output of nm and produce a listing of raw symbols and C names. 18332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18333 18334# Transform the output of nm in a proper C declaration. 18335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18336 18337# Transform the output of nm into a list of symbols to manually relocate. 18338global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18339 18340# Transform the output of nm in a C name address pair. 18341global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18342 18343# Transform the output of nm in a C name address pair when lib prefix is needed. 18344global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18345 18346# The name lister interface. 18347nm_interface=$lt_lt_cv_nm_interface 18348 18349# Specify filename containing input files for \$NM. 18350nm_file_list_spec=$lt_nm_file_list_spec 18351 18352# The root where to search for dependent libraries,and where our libraries should be installed. 18353lt_sysroot=$lt_sysroot 18354 18355# Command to truncate a binary pipe. 18356lt_truncate_bin=$lt_lt_cv_truncate_bin 18357 18358# The name of the directory that contains temporary libtool files. 18359objdir=$objdir 18360 18361# Used to examine libraries when file_magic_cmd begins with "file". 18362MAGIC_CMD=$MAGIC_CMD 18363 18364# Must we lock files when doing compilation? 18365need_locks=$lt_need_locks 18366 18367# Manifest tool. 18368MANIFEST_TOOL=$lt_MANIFEST_TOOL 18369 18370# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18371DSYMUTIL=$lt_DSYMUTIL 18372 18373# Tool to change global to local symbols on Mac OS X. 18374NMEDIT=$lt_NMEDIT 18375 18376# Tool to manipulate fat objects and archives on Mac OS X. 18377LIPO=$lt_LIPO 18378 18379# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18380OTOOL=$lt_OTOOL 18381 18382# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18383OTOOL64=$lt_OTOOL64 18384 18385# Old archive suffix (normally "a"). 18386libext=$libext 18387 18388# Shared library suffix (normally ".so"). 18389shrext_cmds=$lt_shrext_cmds 18390 18391# The commands to extract the exported symbol list from a shared archive. 18392extract_expsyms_cmds=$lt_extract_expsyms_cmds 18393 18394# Variables whose values should be saved in libtool wrapper scripts and 18395# restored at link time. 18396variables_saved_for_relink=$lt_variables_saved_for_relink 18397 18398# Do we need the "lib" prefix for modules? 18399need_lib_prefix=$need_lib_prefix 18400 18401# Do we need a version for libraries? 18402need_version=$need_version 18403 18404# Library versioning type. 18405version_type=$version_type 18406 18407# Shared library runtime path variable. 18408runpath_var=$runpath_var 18409 18410# Shared library path variable. 18411shlibpath_var=$shlibpath_var 18412 18413# Is shlibpath searched before the hard-coded library search path? 18414shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18415 18416# Format of library name prefix. 18417libname_spec=$lt_libname_spec 18418 18419# List of archive names. First name is the real one, the rest are links. 18420# The last name is the one that the linker finds with -lNAME 18421library_names_spec=$lt_library_names_spec 18422 18423# The coded name of the library, if different from the real name. 18424soname_spec=$lt_soname_spec 18425 18426# Permission mode override for installation of shared libraries. 18427install_override_mode=$lt_install_override_mode 18428 18429# Command to use after installation of a shared archive. 18430postinstall_cmds=$lt_postinstall_cmds 18431 18432# Command to use after uninstallation of a shared archive. 18433postuninstall_cmds=$lt_postuninstall_cmds 18434 18435# Commands used to finish a libtool library installation in a directory. 18436finish_cmds=$lt_finish_cmds 18437 18438# As "finish_cmds", except a single script fragment to be evaled but 18439# not shown. 18440finish_eval=$lt_finish_eval 18441 18442# Whether we should hardcode library paths into libraries. 18443hardcode_into_libs=$hardcode_into_libs 18444 18445# Compile-time system search path for libraries. 18446sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18447 18448# Detected run-time system search path for libraries. 18449sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18450 18451# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18452configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18453 18454# Whether dlopen is supported. 18455dlopen_support=$enable_dlopen 18456 18457# Whether dlopen of programs is supported. 18458dlopen_self=$enable_dlopen_self 18459 18460# Whether dlopen of statically linked programs is supported. 18461dlopen_self_static=$enable_dlopen_self_static 18462 18463# Commands to strip libraries. 18464old_striplib=$lt_old_striplib 18465striplib=$lt_striplib 18466 18467 18468# The linker used to build libraries. 18469LD=$lt_LD 18470 18471# How to create reloadable object files. 18472reload_flag=$lt_reload_flag 18473reload_cmds=$lt_reload_cmds 18474 18475# Commands used to build an old-style archive. 18476old_archive_cmds=$lt_old_archive_cmds 18477 18478# A language specific compiler. 18479CC=$lt_compiler 18480 18481# Is the compiler the GNU compiler? 18482with_gcc=$GCC 18483 18484# Compiler flag to turn off builtin functions. 18485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18486 18487# Additional compiler flags for building library objects. 18488pic_flag=$lt_lt_prog_compiler_pic 18489 18490# How to pass a linker flag through the compiler. 18491wl=$lt_lt_prog_compiler_wl 18492 18493# Compiler flag to prevent dynamic linking. 18494link_static_flag=$lt_lt_prog_compiler_static 18495 18496# Does compiler simultaneously support -c and -o options? 18497compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18498 18499# Whether or not to add -lc for building shared libraries. 18500build_libtool_need_lc=$archive_cmds_need_lc 18501 18502# Whether or not to disallow shared libs when runtime libs are static. 18503allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18504 18505# Compiler flag to allow reflexive dlopens. 18506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18507 18508# Compiler flag to generate shared objects directly from archives. 18509whole_archive_flag_spec=$lt_whole_archive_flag_spec 18510 18511# Whether the compiler copes with passing no objects directly. 18512compiler_needs_object=$lt_compiler_needs_object 18513 18514# Create an old-style archive from a shared archive. 18515old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18516 18517# Create a temporary old-style archive to link instead of a shared archive. 18518old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18519 18520# Commands used to build a shared archive. 18521archive_cmds=$lt_archive_cmds 18522archive_expsym_cmds=$lt_archive_expsym_cmds 18523 18524# Commands used to build a loadable module if different from building 18525# a shared archive. 18526module_cmds=$lt_module_cmds 18527module_expsym_cmds=$lt_module_expsym_cmds 18528 18529# Whether we are building with GNU ld or not. 18530with_gnu_ld=$lt_with_gnu_ld 18531 18532# Flag that allows shared libraries with undefined symbols to be built. 18533allow_undefined_flag=$lt_allow_undefined_flag 18534 18535# Flag that enforces no undefined symbols. 18536no_undefined_flag=$lt_no_undefined_flag 18537 18538# Flag to hardcode \$libdir into a binary during linking. 18539# This must work even if \$libdir does not exist 18540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18541 18542# Whether we need a single "-rpath" flag with a separated argument. 18543hardcode_libdir_separator=$lt_hardcode_libdir_separator 18544 18545# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18546# DIR into the resulting binary. 18547hardcode_direct=$hardcode_direct 18548 18549# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18550# DIR into the resulting binary and the resulting library dependency is 18551# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18552# library is relocated. 18553hardcode_direct_absolute=$hardcode_direct_absolute 18554 18555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18556# into the resulting binary. 18557hardcode_minus_L=$hardcode_minus_L 18558 18559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18560# into the resulting binary. 18561hardcode_shlibpath_var=$hardcode_shlibpath_var 18562 18563# Set to "yes" if building a shared library automatically hardcodes DIR 18564# into the library and all subsequent libraries and executables linked 18565# against it. 18566hardcode_automatic=$hardcode_automatic 18567 18568# Set to yes if linker adds runtime paths of dependent libraries 18569# to runtime path list. 18570inherit_rpath=$inherit_rpath 18571 18572# Whether libtool must link a program against all its dependency libraries. 18573link_all_deplibs=$link_all_deplibs 18574 18575# Set to "yes" if exported symbols are required. 18576always_export_symbols=$always_export_symbols 18577 18578# The commands to list exported symbols. 18579export_symbols_cmds=$lt_export_symbols_cmds 18580 18581# Symbols that should not be listed in the preloaded symbols. 18582exclude_expsyms=$lt_exclude_expsyms 18583 18584# Symbols that must always be exported. 18585include_expsyms=$lt_include_expsyms 18586 18587# Commands necessary for linking programs (against libraries) with templates. 18588prelink_cmds=$lt_prelink_cmds 18589 18590# Commands necessary for finishing linking programs. 18591postlink_cmds=$lt_postlink_cmds 18592 18593# Specify filename containing input files. 18594file_list_spec=$lt_file_list_spec 18595 18596# How to hardcode a shared library path into an executable. 18597hardcode_action=$hardcode_action 18598 18599# The directories searched by this compiler when creating a shared library. 18600compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18601 18602# Dependencies to place before and after the objects being linked to 18603# create a shared library. 18604predep_objects=$lt_predep_objects 18605postdep_objects=$lt_postdep_objects 18606predeps=$lt_predeps 18607postdeps=$lt_postdeps 18608 18609# The library search path used internally by the compiler when linking 18610# a shared library. 18611compiler_lib_search_path=$lt_compiler_lib_search_path 18612 18613# ### END LIBTOOL CONFIG 18614 18615_LT_EOF 18616 18617 cat <<'_LT_EOF' >> "$cfgfile" 18618 18619# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18620 18621# func_munge_path_list VARIABLE PATH 18622# ----------------------------------- 18623# VARIABLE is name of variable containing _space_ separated list of 18624# directories to be munged by the contents of PATH, which is string 18625# having a format: 18626# "DIR[:DIR]:" 18627# string "DIR[ DIR]" will be prepended to VARIABLE 18628# ":DIR[:DIR]" 18629# string "DIR[ DIR]" will be appended to VARIABLE 18630# "DIRP[:DIRP]::[DIRA:]DIRA" 18631# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18632# "DIRA[ DIRA]" will be appended to VARIABLE 18633# "DIR[:DIR]" 18634# VARIABLE will be replaced by "DIR[ DIR]" 18635func_munge_path_list () 18636{ 18637 case x@S|@2 in 18638 x) 18639 ;; 18640 *:) 18641 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18642 ;; 18643 x:*) 18644 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18645 ;; 18646 *::*) 18647 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18648 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18649 ;; 18650 *) 18651 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18652 ;; 18653 esac 18654} 18655 18656 18657# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18658func_cc_basename () 18659{ 18660 for cc_temp in @S|@*""; do 18661 case $cc_temp in 18662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18664 \-*) ;; 18665 *) break;; 18666 esac 18667 done 18668 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18669} 18670 18671 18672# ### END FUNCTIONS SHARED WITH CONFIGURE 18673 18674_LT_EOF 18675 18676 case $host_os in 18677 aix3*) 18678 cat <<\_LT_EOF >> "$cfgfile" 18679# AIX sometimes has problems with the GCC collect2 program. For some 18680# reason, if we set the COLLECT_NAMES environment variable, the problems 18681# vanish in a puff of smoke. 18682if test set != "${COLLECT_NAMES+set}"; then 18683 COLLECT_NAMES= 18684 export COLLECT_NAMES 18685fi 18686_LT_EOF 18687 ;; 18688 esac 18689 18690 18691ltmain=$ac_aux_dir/ltmain.sh 18692 18693 18694 # We use sed instead of cat because bash on DJGPP gets confused if 18695 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18696 # text mode, it properly converts lines to CR/LF. This bash problem 18697 # is reportedly fixed, but why not run on old versions too? 18698 sed '$q' "$ltmain" >> "$cfgfile" \ 18699 || (rm -f "$cfgfile"; exit 1) 18700 18701 mv -f "$cfgfile" "$ofile" || 18702 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18703 chmod +x "$ofile" 18704 18705 18706 cat <<_LT_EOF >> "$ofile" 18707 18708# ### BEGIN LIBTOOL TAG CONFIG: CXX 18709 18710# The linker used to build libraries. 18711LD=$lt_LD_CXX 18712 18713# How to create reloadable object files. 18714reload_flag=$lt_reload_flag_CXX 18715reload_cmds=$lt_reload_cmds_CXX 18716 18717# Commands used to build an old-style archive. 18718old_archive_cmds=$lt_old_archive_cmds_CXX 18719 18720# A language specific compiler. 18721CC=$lt_compiler_CXX 18722 18723# Is the compiler the GNU compiler? 18724with_gcc=$GCC_CXX 18725 18726# Compiler flag to turn off builtin functions. 18727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18728 18729# Additional compiler flags for building library objects. 18730pic_flag=$lt_lt_prog_compiler_pic_CXX 18731 18732# How to pass a linker flag through the compiler. 18733wl=$lt_lt_prog_compiler_wl_CXX 18734 18735# Compiler flag to prevent dynamic linking. 18736link_static_flag=$lt_lt_prog_compiler_static_CXX 18737 18738# Does compiler simultaneously support -c and -o options? 18739compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18740 18741# Whether or not to add -lc for building shared libraries. 18742build_libtool_need_lc=$archive_cmds_need_lc_CXX 18743 18744# Whether or not to disallow shared libs when runtime libs are static. 18745allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18746 18747# Compiler flag to allow reflexive dlopens. 18748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18749 18750# Compiler flag to generate shared objects directly from archives. 18751whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18752 18753# Whether the compiler copes with passing no objects directly. 18754compiler_needs_object=$lt_compiler_needs_object_CXX 18755 18756# Create an old-style archive from a shared archive. 18757old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18758 18759# Create a temporary old-style archive to link instead of a shared archive. 18760old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18761 18762# Commands used to build a shared archive. 18763archive_cmds=$lt_archive_cmds_CXX 18764archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18765 18766# Commands used to build a loadable module if different from building 18767# a shared archive. 18768module_cmds=$lt_module_cmds_CXX 18769module_expsym_cmds=$lt_module_expsym_cmds_CXX 18770 18771# Whether we are building with GNU ld or not. 18772with_gnu_ld=$lt_with_gnu_ld_CXX 18773 18774# Flag that allows shared libraries with undefined symbols to be built. 18775allow_undefined_flag=$lt_allow_undefined_flag_CXX 18776 18777# Flag that enforces no undefined symbols. 18778no_undefined_flag=$lt_no_undefined_flag_CXX 18779 18780# Flag to hardcode \$libdir into a binary during linking. 18781# This must work even if \$libdir does not exist 18782hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18783 18784# Whether we need a single "-rpath" flag with a separated argument. 18785hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18786 18787# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18788# DIR into the resulting binary. 18789hardcode_direct=$hardcode_direct_CXX 18790 18791# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18792# DIR into the resulting binary and the resulting library dependency is 18793# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18794# library is relocated. 18795hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18796 18797# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18798# into the resulting binary. 18799hardcode_minus_L=$hardcode_minus_L_CXX 18800 18801# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18802# into the resulting binary. 18803hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18804 18805# Set to "yes" if building a shared library automatically hardcodes DIR 18806# into the library and all subsequent libraries and executables linked 18807# against it. 18808hardcode_automatic=$hardcode_automatic_CXX 18809 18810# Set to yes if linker adds runtime paths of dependent libraries 18811# to runtime path list. 18812inherit_rpath=$inherit_rpath_CXX 18813 18814# Whether libtool must link a program against all its dependency libraries. 18815link_all_deplibs=$link_all_deplibs_CXX 18816 18817# Set to "yes" if exported symbols are required. 18818always_export_symbols=$always_export_symbols_CXX 18819 18820# The commands to list exported symbols. 18821export_symbols_cmds=$lt_export_symbols_cmds_CXX 18822 18823# Symbols that should not be listed in the preloaded symbols. 18824exclude_expsyms=$lt_exclude_expsyms_CXX 18825 18826# Symbols that must always be exported. 18827include_expsyms=$lt_include_expsyms_CXX 18828 18829# Commands necessary for linking programs (against libraries) with templates. 18830prelink_cmds=$lt_prelink_cmds_CXX 18831 18832# Commands necessary for finishing linking programs. 18833postlink_cmds=$lt_postlink_cmds_CXX 18834 18835# Specify filename containing input files. 18836file_list_spec=$lt_file_list_spec_CXX 18837 18838# How to hardcode a shared library path into an executable. 18839hardcode_action=$hardcode_action_CXX 18840 18841# The directories searched by this compiler when creating a shared library. 18842compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18843 18844# Dependencies to place before and after the objects being linked to 18845# create a shared library. 18846predep_objects=$lt_predep_objects_CXX 18847postdep_objects=$lt_postdep_objects_CXX 18848predeps=$lt_predeps_CXX 18849postdeps=$lt_postdeps_CXX 18850 18851# The library search path used internally by the compiler when linking 18852# a shared library. 18853compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18854 18855# ### END LIBTOOL TAG CONFIG: CXX 18856_LT_EOF 18857 18858 ;; 18859 "libzen-config":F) chmod u+x libzen-config ;; 18860 18861 esac 18862done # for ac_tag 18863 18864 18865as_fn_exit 0 18866_ACEOF 18867ac_clean_files=$ac_clean_files_save 18868 18869test $ac_write_fail = 0 || 18870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18871 18872 18873# configure is writing to config.log, and then calls config.status. 18874# config.status does its own redirection, appending to config.log. 18875# Unfortunately, on DOS this fails, as config.log is still kept open 18876# by configure, so config.status won't be able to write to it; its 18877# output is simply discarded. So we exec the FD to /dev/null, 18878# effectively closing config.log, so it can be properly (re)opened and 18879# appended to by config.status. When coming back to configure, we 18880# need to make the FD available again. 18881if test "$no_create" != yes; then 18882 ac_cs_success=: 18883 ac_config_status_args= 18884 test "$silent" = yes && 18885 ac_config_status_args="$ac_config_status_args --quiet" 18886 exec 5>/dev/null 18887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18888 exec 5>>config.log 18889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18890 # would make configure fail if this is the last instruction. 18891 $ac_cs_success || as_fn_exit 1 18892fi 18893if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18895$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18896fi 18897 18898 18899 18900echo "" 18901echo "Configured ZenLib for '$build'" 18902echo "" 18903echo " Unicode? $enable_unicode" 18904echo " Large files support? $enable_large_files" 18905echo " wstring missing support? $enable_wstring_missing" 18906echo " stream missing support? $enable_stream_missing" 18907echo "" 18908echo " Create static lib? $enable_static" 18909echo " Create shared lib? $enable_shared" 18910echo "" 18911echo " CXXFLAGS: $CXXFLAGS" 18912echo " LIBS: $LIBS" 18913