1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libltdl 2.4.2. 4# 5# Report bugs to <bug-libtool@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: bug-libtool@gnu.org about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libltdl' 592PACKAGE_TARNAME='libltdl' 593PACKAGE_VERSION='2.4.2' 594PACKAGE_STRING='libltdl 2.4.2' 595PACKAGE_BUGREPORT='bug-libtool@gnu.org' 596PACKAGE_URL='' 597 598ac_unique_file="ltdl.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LTDLOPEN 639LT_CONFIG_H 640CONVENIENCE_LTDL_FALSE 641CONVENIENCE_LTDL_TRUE 642INSTALL_LTDL_FALSE 643INSTALL_LTDL_TRUE 644ARGZ_H 645LIBOBJS 646sys_symbol_underscore 647LIBADD_DL 648LT_DLPREOPEN 649LIBADD_DLD_LINK 650LIBADD_SHL_LOAD 651LIBADD_DLOPEN 652LT_DLLOADERS 653CPP 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689host_os 690host_vendor 691host_cpu 692host 693build_os 694build_vendor 695build_cpu 696build 697LIBTOOL 698OBJDUMP 699DLLTOOL 700AS 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_shared 771enable_static 772with_pic 773enable_fast_install 774enable_dependency_tracking 775with_gnu_ld 776with_sysroot 777enable_libtool_lock 778enable_ltdl_install 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788CPP' 789 790 791# Initialize some variables set by options. 792ac_init_help= 793ac_init_version=false 794ac_unrecognized_opts= 795ac_unrecognized_sep= 796# The variables have the same names as the options, with 797# dashes changed to underlines. 798cache_file=/dev/null 799exec_prefix=NONE 800no_create= 801no_recursion= 802prefix=NONE 803program_prefix=NONE 804program_suffix=NONE 805program_transform_name=s,x,x, 806silent= 807site= 808srcdir= 809verbose= 810x_includes=NONE 811x_libraries=NONE 812 813# Installation directory options. 814# These are left unexpanded so users can "make install exec_prefix=/foo" 815# and all the variables that are supposed to be based on exec_prefix 816# by default will actually change. 817# Use braces instead of parens because sh, perl, etc. also accept them. 818# (The list follows the same order as the GNU Coding Standards.) 819bindir='${exec_prefix}/bin' 820sbindir='${exec_prefix}/sbin' 821libexecdir='${exec_prefix}/libexec' 822datarootdir='${prefix}/share' 823datadir='${datarootdir}' 824sysconfdir='${prefix}/etc' 825sharedstatedir='${prefix}/com' 826localstatedir='${prefix}/var' 827includedir='${prefix}/include' 828oldincludedir='/usr/include' 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 830infodir='${datarootdir}/info' 831htmldir='${docdir}' 832dvidir='${docdir}' 833pdfdir='${docdir}' 834psdir='${docdir}' 835libdir='${exec_prefix}/lib' 836localedir='${datarootdir}/locale' 837mandir='${datarootdir}/man' 838 839ac_prev= 840ac_dashdash= 841for ac_option 842do 843 # If the previous option needs an argument, assign it. 844 if test -n "$ac_prev"; then 845 eval $ac_prev=\$ac_option 846 ac_prev= 847 continue 848 fi 849 850 case $ac_option in 851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 852 *=) ac_optarg= ;; 853 *) ac_optarg=yes ;; 854 esac 855 856 # Accept the important Cygnus configure options, so we can diagnose typos. 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: $ac_useropt" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080 ac_prev=sbindir ;; 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082 | --sbi=* | --sb=*) 1083 sbindir=$ac_optarg ;; 1084 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087 | --sharedst | --shareds | --shared | --share | --shar \ 1088 | --sha | --sh) 1089 ac_prev=sharedstatedir ;; 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093 | --sha=* | --sh=*) 1094 sharedstatedir=$ac_optarg ;; 1095 1096 -site | --site | --sit) 1097 ac_prev=site ;; 1098 -site=* | --site=* | --sit=*) 1099 site=$ac_optarg ;; 1100 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102 ac_prev=srcdir ;; 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104 srcdir=$ac_optarg ;; 1105 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107 | --syscon | --sysco | --sysc | --sys | --sy) 1108 ac_prev=sysconfdir ;; 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111 sysconfdir=$ac_optarg ;; 1112 1113 -target | --target | --targe | --targ | --tar | --ta | --t) 1114 ac_prev=target_alias ;; 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116 target_alias=$ac_optarg ;; 1117 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119 verbose=yes ;; 1120 1121 -version | --version | --versio | --versi | --vers | -V) 1122 ac_init_version=: ;; 1123 1124 -with-* | --with-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=\$ac_optarg ;; 1139 1140 -without-* | --without-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1175Try \`$0 --help' for more information" 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 case $ac_envvar in #( 1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184 esac 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 as_fn_error $? "missing argument to $ac_option" 1202fi 1203 1204if test -n "$ac_unrecognized_opts"; then 1205 case $enable_option_checking in 1206 no) ;; 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209 esac 1210fi 1211 1212# Check all directory arguments for consistency. 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217do 1218 eval ac_val=\$$ac_var 1219 # Remove trailing slashes. 1220 case $ac_val in 1221 */ ) 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223 eval $ac_var=\$ac_val;; 1224 esac 1225 # Be sure to have absolute directory names. 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 as_fn_error $? "working directory cannot be determined" 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 as_fn_error $? "pwd does not report name of working directory" 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1304 pwd)` 1305# When building in place, set srcdir=. 1306if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308fi 1309# Remove unnecessary trailing slashes from srcdir. 1310# Double slashes in file names in object file debugging info 1311# mess up M-x gdb in Emacs. 1312case $srcdir in 1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314esac 1315for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320done 1321 1322# 1323# Report the --help message. 1324# 1325if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329\`configure' configures libltdl 2.4.2 to adapt to many kinds of systems. 1330 1331Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336Defaults for the options are specified in brackets. 1337 1338Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking ...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355By default, \`make install' will install all the files in 1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358for instance \`--prefix=\$HOME'. 1359 1360For better control, use the options below. 1361 1362Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of libltdl 2.4.2:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-silent-rules less verbose build output (undo: "make V=1") 1408 --disable-silent-rules verbose build output (undo: "make V=0") 1409 --enable-shared[=PKGS] build shared libraries [default=yes] 1410 --enable-static[=PKGS] build static libraries [default=yes] 1411 --enable-fast-install[=PKGS] 1412 optimize for fast installation [default=yes] 1413 --enable-dependency-tracking 1414 do not reject slow dependency extractors 1415 --disable-dependency-tracking 1416 speeds up one-time build 1417 --disable-libtool-lock avoid locking (might break parallel builds) 1418 --enable-ltdl-install install libltdl 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot=DIR Search for dependent libraries within DIR 1427 (or the compiler's sysroot if not specified). 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 1439Use these variables to override the choices made by `configure' or to help 1440it to find libraries and programs with nonstandard names/locations. 1441 1442Report bugs to <bug-libtool@gnu.org>. 1443_ACEOF 1444ac_status=$? 1445fi 1446 1447if test "$ac_init_help" = "recursive"; then 1448 # If there are subdirs, report their specific --help. 1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1450 test -d "$ac_dir" || 1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1452 continue 1453 ac_builddir=. 1454 1455case "$ac_dir" in 1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457*) 1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1459 # A ".." for each directory in $ac_dir_suffix. 1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1461 case $ac_top_builddir_sub in 1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1464 esac ;; 1465esac 1466ac_abs_top_builddir=$ac_pwd 1467ac_abs_builddir=$ac_pwd$ac_dir_suffix 1468# for backward compatibility: 1469ac_top_builddir=$ac_top_build_prefix 1470 1471case $srcdir in 1472 .) # We are building in place. 1473 ac_srcdir=. 1474 ac_top_srcdir=$ac_top_builddir_sub 1475 ac_abs_top_srcdir=$ac_pwd ;; 1476 [\\/]* | ?:[\\/]* ) # Absolute name. 1477 ac_srcdir=$srcdir$ac_dir_suffix; 1478 ac_top_srcdir=$srcdir 1479 ac_abs_top_srcdir=$srcdir ;; 1480 *) # Relative name. 1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1482 ac_top_srcdir=$ac_top_build_prefix$srcdir 1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1484esac 1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1486 1487 cd "$ac_dir" || { ac_status=$?; continue; } 1488 # Check for guested configure. 1489 if test -f "$ac_srcdir/configure.gnu"; then 1490 echo && 1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1492 elif test -f "$ac_srcdir/configure"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure" --help=recursive 1495 else 1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1497 fi || ac_status=$? 1498 cd "$ac_pwd" || { ac_status=$?; break; } 1499 done 1500fi 1501 1502test -n "$ac_init_help" && exit $ac_status 1503if $ac_init_version; then 1504 cat <<\_ACEOF 1505libltdl configure 2.4.2 1506generated by GNU Autoconf 2.69 1507 1508Copyright (C) 2012 Free Software Foundation, Inc. 1509This configure script is free software; the Free Software Foundation 1510gives unlimited permission to copy, distribute and modify it. 1511_ACEOF 1512 exit 1513fi 1514 1515## ------------------------ ## 1516## Autoconf initialization. ## 1517## ------------------------ ## 1518 1519# ac_fn_c_try_compile LINENO 1520# -------------------------- 1521# Try to compile conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_compile () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 rm -f conftest.$ac_objext 1526 if { { ac_try="$ac_compile" 1527case "(($ac_try" in 1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1529 *) ac_try_echo=$ac_try;; 1530esac 1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1532$as_echo "$ac_try_echo"; } >&5 1533 (eval "$ac_compile") 2>conftest.err 1534 ac_status=$? 1535 if test -s conftest.err; then 1536 grep -v '^ *+' conftest.err >conftest.er1 1537 cat conftest.er1 >&5 1538 mv -f conftest.er1 conftest.err 1539 fi 1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1541 test $ac_status = 0; } && { 1542 test -z "$ac_c_werror_flag" || 1543 test ! -s conftest.err 1544 } && test -s conftest.$ac_objext; then : 1545 ac_retval=0 1546else 1547 $as_echo "$as_me: failed program was:" >&5 1548sed 's/^/| /' conftest.$ac_ext >&5 1549 1550 ac_retval=1 1551fi 1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1553 as_fn_set_status $ac_retval 1554 1555} # ac_fn_c_try_compile 1556 1557# ac_fn_c_try_link LINENO 1558# ----------------------- 1559# Try to link conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_link () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext conftest$ac_exeext 1564 if { { ac_try="$ac_link" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_link") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest$ac_exeext && { 1583 test "$cross_compiling" = yes || 1584 test -x conftest$ac_exeext 1585 }; then : 1586 ac_retval=0 1587else 1588 $as_echo "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592fi 1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1595 # interfere with the next link command; also delete a directory that is 1596 # left behind by Apple's compiler. We do this before executing the actions. 1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601} # ac_fn_c_try_link 1602 1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1604# ------------------------------------------------------- 1605# Tests whether HEADER exists and can be compiled using the include files in 1606# INCLUDES, setting the cache variable VAR accordingly. 1607ac_fn_c_check_header_compile () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1611$as_echo_n "checking for $2... " >&6; } 1612if eval \${$3+:} false; then : 1613 $as_echo_n "(cached) " >&6 1614else 1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1616/* end confdefs.h. */ 1617$4 1618#include <$2> 1619_ACEOF 1620if ac_fn_c_try_compile "$LINENO"; then : 1621 eval "$3=yes" 1622else 1623 eval "$3=no" 1624fi 1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1626fi 1627eval ac_res=\$$3 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629$as_echo "$ac_res" >&6; } 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 1632} # ac_fn_c_check_header_compile 1633 1634# ac_fn_c_try_cpp LINENO 1635# ---------------------- 1636# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_cpp () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 if { { ac_try="$ac_cpp conftest.$ac_ext" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } > conftest.i && { 1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1657 test ! -s conftest.err 1658 }; then : 1659 ac_retval=0 1660else 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_cpp 1670 1671# ac_fn_c_try_run LINENO 1672# ---------------------- 1673# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1674# that executables *can* be run. 1675ac_fn_c_try_run () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_link" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_link") 2>&5 1686 ac_status=$? 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1689 { { case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_try") 2>&5 1696 ac_status=$? 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; }; }; then : 1699 ac_retval=0 1700else 1701 $as_echo "$as_me: program exited with status $ac_status" >&5 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=$ac_status 1706fi 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_run 1712 1713# ac_fn_c_check_func LINENO FUNC VAR 1714# ---------------------------------- 1715# Tests whether FUNC exists, setting the cache variable VAR accordingly 1716ac_fn_c_check_func () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720$as_echo_n "checking for $2... " >&6; } 1721if eval \${$3+:} false; then : 1722 $as_echo_n "(cached) " >&6 1723else 1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725/* end confdefs.h. */ 1726/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1728#define $2 innocuous_$2 1729 1730/* System header to define __stub macros and hopefully few prototypes, 1731 which can conflict with char $2 (); below. 1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1733 <limits.h> exists even on freestanding compilers. */ 1734 1735#ifdef __STDC__ 1736# include <limits.h> 1737#else 1738# include <assert.h> 1739#endif 1740 1741#undef $2 1742 1743/* Override any GCC internal prototype to avoid an error. 1744 Use char because int might match the return type of a GCC 1745 builtin and then its argument prototype would still apply. */ 1746#ifdef __cplusplus 1747extern "C" 1748#endif 1749char $2 (); 1750/* The GNU C library defines this for functions which it implements 1751 to always fail with ENOSYS. Some functions are actually named 1752 something starting with __ and the normal name is an alias. */ 1753#if defined __stub_$2 || defined __stub___$2 1754choke me 1755#endif 1756 1757int 1758main () 1759{ 1760return $2 (); 1761 ; 1762 return 0; 1763} 1764_ACEOF 1765if ac_fn_c_try_link "$LINENO"; then : 1766 eval "$3=yes" 1767else 1768 eval "$3=no" 1769fi 1770rm -f core conftest.err conftest.$ac_objext \ 1771 conftest$ac_exeext conftest.$ac_ext 1772fi 1773eval ac_res=\$$3 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775$as_echo "$ac_res" >&6; } 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 1778} # ac_fn_c_check_func 1779 1780# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1781# --------------------------------------------- 1782# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1783# accordingly. 1784ac_fn_c_check_decl () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 as_decl_name=`echo $2|sed 's/ *(.*//'` 1788 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1790$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1791if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793else 1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795/* end confdefs.h. */ 1796$4 1797int 1798main () 1799{ 1800#ifndef $as_decl_name 1801#ifdef __cplusplus 1802 (void) $as_decl_use; 1803#else 1804 (void) $as_decl_name; 1805#endif 1806#endif 1807 1808 ; 1809 return 0; 1810} 1811_ACEOF 1812if ac_fn_c_try_compile "$LINENO"; then : 1813 eval "$3=yes" 1814else 1815 eval "$3=no" 1816fi 1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 1824} # ac_fn_c_check_decl 1825 1826# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1827# ------------------------------------------- 1828# Tests whether TYPE exists after having included INCLUDES, setting cache 1829# variable VAR accordingly. 1830ac_fn_c_check_type () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834$as_echo_n "checking for $2... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 eval "$3=no" 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841$4 1842int 1843main () 1844{ 1845if (sizeof ($2)) 1846 return 0; 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855int 1856main () 1857{ 1858if (sizeof (($2))) 1859 return 0; 1860 ; 1861 return 0; 1862} 1863_ACEOF 1864if ac_fn_c_try_compile "$LINENO"; then : 1865 1866else 1867 eval "$3=yes" 1868fi 1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1870fi 1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1872fi 1873eval ac_res=\$$3 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875$as_echo "$ac_res" >&6; } 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 1878} # ac_fn_c_check_type 1879cat >config.log <<_ACEOF 1880This file contains any messages produced by compilers while 1881running configure, to aid debugging if configure makes a mistake. 1882 1883It was created by libltdl $as_me 2.4.2, which was 1884generated by GNU Autoconf 2.69. Invocation command line was 1885 1886 $ $0 $@ 1887 1888_ACEOF 1889exec 5>>config.log 1890{ 1891cat <<_ASUNAME 1892## --------- ## 1893## Platform. ## 1894## --------- ## 1895 1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1897uname -m = `(uname -m) 2>/dev/null || echo unknown` 1898uname -r = `(uname -r) 2>/dev/null || echo unknown` 1899uname -s = `(uname -s) 2>/dev/null || echo unknown` 1900uname -v = `(uname -v) 2>/dev/null || echo unknown` 1901 1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1903/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1904 1905/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1906/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1908/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1909/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1910/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1911/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1912 1913_ASUNAME 1914 1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1916for as_dir in $PATH 1917do 1918 IFS=$as_save_IFS 1919 test -z "$as_dir" && as_dir=. 1920 $as_echo "PATH: $as_dir" 1921 done 1922IFS=$as_save_IFS 1923 1924} >&5 1925 1926cat >&5 <<_ACEOF 1927 1928 1929## ----------- ## 1930## Core tests. ## 1931## ----------- ## 1932 1933_ACEOF 1934 1935 1936# Keep a trace of the command line. 1937# Strip out --no-create and --no-recursion so they do not pile up. 1938# Strip out --silent because we don't want to record it for future runs. 1939# Also quote any args containing shell meta-characters. 1940# Make two passes to allow for proper duplicate-argument suppression. 1941ac_configure_args= 1942ac_configure_args0= 1943ac_configure_args1= 1944ac_must_keep_next=false 1945for ac_pass in 1 2 1946do 1947 for ac_arg 1948 do 1949 case $ac_arg in 1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1952 | -silent | --silent | --silen | --sile | --sil) 1953 continue ;; 1954 *\'*) 1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1956 esac 1957 case $ac_pass in 1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1959 2) 1960 as_fn_append ac_configure_args1 " '$ac_arg'" 1961 if test $ac_must_keep_next = true; then 1962 ac_must_keep_next=false # Got value, back to normal. 1963 else 1964 case $ac_arg in 1965 *=* | --config-cache | -C | -disable-* | --disable-* \ 1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1968 | -with-* | --with-* | -without-* | --without-* | --x) 1969 case "$ac_configure_args0 " in 1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1971 esac 1972 ;; 1973 -* ) ac_must_keep_next=true ;; 1974 esac 1975 fi 1976 as_fn_append ac_configure_args " '$ac_arg'" 1977 ;; 1978 esac 1979 done 1980done 1981{ ac_configure_args0=; unset ac_configure_args0;} 1982{ ac_configure_args1=; unset ac_configure_args1;} 1983 1984# When interrupted or exit'd, cleanup temporary files, and complete 1985# config.log. We remove comments because anyway the quotes in there 1986# would cause problems or look ugly. 1987# WARNING: Use '\'' to represent an apostrophe within the trap. 1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1989trap 'exit_status=$? 1990 # Save into config.log some information that might help in debugging. 1991 { 1992 echo 1993 1994 $as_echo "## ---------------- ## 1995## Cache variables. ## 1996## ---------------- ##" 1997 echo 1998 # The following way of writing the cache mishandles newlines in values, 1999( 2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in #( 2003 *${as_nl}*) 2004 case $ac_var in #( 2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2007 esac 2008 case $ac_var in #( 2009 _ | IFS | as_nl) ;; #( 2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2011 *) { eval $ac_var=; unset $ac_var;} ;; 2012 esac ;; 2013 esac 2014 done 2015 (set) 2>&1 | 2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2017 *${as_nl}ac_space=\ *) 2018 sed -n \ 2019 "s/'\''/'\''\\\\'\'''\''/g; 2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2021 ;; #( 2022 *) 2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2024 ;; 2025 esac | 2026 sort 2027) 2028 echo 2029 2030 $as_echo "## ----------------- ## 2031## Output variables. ## 2032## ----------------- ##" 2033 echo 2034 for ac_var in $ac_subst_vars 2035 do 2036 eval ac_val=\$$ac_var 2037 case $ac_val in 2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039 esac 2040 $as_echo "$ac_var='\''$ac_val'\''" 2041 done | sort 2042 echo 2043 2044 if test -n "$ac_subst_files"; then 2045 $as_echo "## ------------------- ## 2046## File substitutions. ## 2047## ------------------- ##" 2048 echo 2049 for ac_var in $ac_subst_files 2050 do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in 2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054 esac 2055 $as_echo "$ac_var='\''$ac_val'\''" 2056 done | sort 2057 echo 2058 fi 2059 2060 if test -s confdefs.h; then 2061 $as_echo "## ----------- ## 2062## confdefs.h. ## 2063## ----------- ##" 2064 echo 2065 cat confdefs.h 2066 echo 2067 fi 2068 test "$ac_signal" != 0 && 2069 $as_echo "$as_me: caught signal $ac_signal" 2070 $as_echo "$as_me: exit $exit_status" 2071 } >&5 2072 rm -f core *.core core.conftest.* && 2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074 exit $exit_status 2075' 0 2076for ac_signal in 1 2 13 15; do 2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078done 2079ac_signal=0 2080 2081# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082rm -f -r conftest* confdefs.h 2083 2084$as_echo "/* confdefs.h */" > confdefs.h 2085 2086# Predefined preprocessor variables. 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_NAME "$PACKAGE_NAME" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_VERSION "$PACKAGE_VERSION" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_STRING "$PACKAGE_STRING" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2106_ACEOF 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_URL "$PACKAGE_URL" 2110_ACEOF 2111 2112 2113# Let the site file select an alternate cache file if it wants to. 2114# Prefer an explicitly selected file to automatically selected ones. 2115ac_site_file1=NONE 2116ac_site_file2=NONE 2117if test -n "$CONFIG_SITE"; then 2118 # We do not want a PATH search for config.site. 2119 case $CONFIG_SITE in #(( 2120 -*) ac_site_file1=./$CONFIG_SITE;; 2121 */*) ac_site_file1=$CONFIG_SITE;; 2122 *) ac_site_file1=./$CONFIG_SITE;; 2123 esac 2124elif test "x$prefix" != xNONE; then 2125 ac_site_file1=$prefix/share/config.site 2126 ac_site_file2=$prefix/etc/config.site 2127else 2128 ac_site_file1=$ac_default_prefix/share/config.site 2129 ac_site_file2=$ac_default_prefix/etc/config.site 2130fi 2131for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2132do 2133 test "x$ac_site_file" = xNONE && continue 2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2136$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2137 sed 's/^/| /' "$ac_site_file" >&5 2138 . "$ac_site_file" \ 2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2141as_fn_error $? "failed to load site script $ac_site_file 2142See \`config.log' for more details" "$LINENO" 5; } 2143 fi 2144done 2145 2146if test -r "$cache_file"; then 2147 # Some versions of bash will fail to source /dev/null (special files 2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2151$as_echo "$as_me: loading cache $cache_file" >&6;} 2152 case $cache_file in 2153 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2154 *) . "./$cache_file";; 2155 esac 2156 fi 2157else 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2159$as_echo "$as_me: creating cache $cache_file" >&6;} 2160 >$cache_file 2161fi 2162 2163# Check that the precious variables saved in the cache have kept the same 2164# value. 2165ac_cache_corrupted=false 2166for ac_var in $ac_precious_vars; do 2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2168 eval ac_new_set=\$ac_env_${ac_var}_set 2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2170 eval ac_new_val=\$ac_env_${ac_var}_value 2171 case $ac_old_set,$ac_new_set in 2172 set,) 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2174$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2175 ac_cache_corrupted=: ;; 2176 ,set) 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2178$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2179 ac_cache_corrupted=: ;; 2180 ,);; 2181 *) 2182 if test "x$ac_old_val" != "x$ac_new_val"; then 2183 # differences in whitespace do not lead to failure. 2184 ac_old_val_w=`echo x $ac_old_val` 2185 ac_new_val_w=`echo x $ac_new_val` 2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2188$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2189 ac_cache_corrupted=: 2190 else 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2192$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2193 eval $ac_var=\$ac_old_val 2194 fi 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2196$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2198$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2199 fi;; 2200 esac 2201 # Pass precious variables to config.status. 2202 if test "$ac_new_set" = set; then 2203 case $ac_new_val in 2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2205 *) ac_arg=$ac_var=$ac_new_val ;; 2206 esac 2207 case " $ac_configure_args " in 2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2210 esac 2211 fi 2212done 2213if $ac_cache_corrupted; then 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2217$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2219fi 2220## -------------------- ## 2221## Main body of script. ## 2222## -------------------- ## 2223 2224ac_ext=c 2225ac_cpp='$CPP $CPPFLAGS' 2226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2228ac_compiler_gnu=$ac_cv_c_compiler_gnu 2229 2230 2231ac_config_headers="$ac_config_headers config.h:config-h.in" 2232 2233 2234ac_aux_dir= 2235for ac_dir in config "$srcdir"/config; do 2236 if test -f "$ac_dir/install-sh"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/install-sh -c" 2239 break 2240 elif test -f "$ac_dir/install.sh"; then 2241 ac_aux_dir=$ac_dir 2242 ac_install_sh="$ac_aux_dir/install.sh -c" 2243 break 2244 elif test -f "$ac_dir/shtool"; then 2245 ac_aux_dir=$ac_dir 2246 ac_install_sh="$ac_aux_dir/shtool install -c" 2247 break 2248 fi 2249done 2250if test -z "$ac_aux_dir"; then 2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2252fi 2253 2254# These three variables are undocumented and unsupported, 2255# and are intended to be withdrawn in a future Autoconf release. 2256# They can cause serious problems if a builder's source tree is in a directory 2257# whose full name contains unusual characters. 2258ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2259ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2260ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2261 2262 2263 2264 2265 2266 2267 2268 2269 # I am me! 2270 2271 2272## ------------------------ ## 2273## Automake Initialisation. ## 2274## ------------------------ ## 2275 2276am__api_version='1.14' 2277 2278# Find a good install program. We prefer a C program (faster), 2279# so one script is as good as another. But avoid the broken or 2280# incompatible versions: 2281# SysV /etc/install, /usr/sbin/install 2282# SunOS /usr/etc/install 2283# IRIX /sbin/install 2284# AIX /bin/install 2285# AmigaOS /C/install, which installs bootblocks on floppy discs 2286# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2287# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2288# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2289# OS/2's system install, which has a completely different semantic 2290# ./install, which can be erroneously created by make from ./install.sh. 2291# Reject install programs that cannot install multiple files. 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2293$as_echo_n "checking for a BSD-compatible install... " >&6; } 2294if test -z "$INSTALL"; then 2295if ${ac_cv_path_install+:} false; then : 2296 $as_echo_n "(cached) " >&6 2297else 2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 # Account for people who put trailing slashes in PATH elements. 2304case $as_dir/ in #(( 2305 ./ | .// | /[cC]/* | \ 2306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2307 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2308 /usr/ucb/* ) ;; 2309 *) 2310 # OSF1 and SCO ODT 3.0 have their own names for install. 2311 # Don't use installbsd from OSF since it installs stuff as root 2312 # by default. 2313 for ac_prog in ginstall scoinst install; do 2314 for ac_exec_ext in '' $ac_executable_extensions; do 2315 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2316 if test $ac_prog = install && 2317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2318 # AIX install. It has an incompatible calling convention. 2319 : 2320 elif test $ac_prog = install && 2321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2322 # program-specific install script used by HP pwplus--don't use. 2323 : 2324 else 2325 rm -rf conftest.one conftest.two conftest.dir 2326 echo one > conftest.one 2327 echo two > conftest.two 2328 mkdir conftest.dir 2329 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2330 test -s conftest.one && test -s conftest.two && 2331 test -s conftest.dir/conftest.one && 2332 test -s conftest.dir/conftest.two 2333 then 2334 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2335 break 3 2336 fi 2337 fi 2338 fi 2339 done 2340 done 2341 ;; 2342esac 2343 2344 done 2345IFS=$as_save_IFS 2346 2347rm -rf conftest.one conftest.two conftest.dir 2348 2349fi 2350 if test "${ac_cv_path_install+set}" = set; then 2351 INSTALL=$ac_cv_path_install 2352 else 2353 # As a last resort, use the slow shell script. Don't cache a 2354 # value for INSTALL within a source directory, because that will 2355 # break other packages using the cache if that directory is 2356 # removed, or if the value is a relative name. 2357 INSTALL=$ac_install_sh 2358 fi 2359fi 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2361$as_echo "$INSTALL" >&6; } 2362 2363# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2364# It thinks the first close brace ends the variable substitution. 2365test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2366 2367test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2368 2369test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2370 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2372$as_echo_n "checking whether build environment is sane... " >&6; } 2373# Reject unsafe characters in $srcdir or the absolute working directory 2374# name. Accept space and tab only in the latter. 2375am_lf=' 2376' 2377case `pwd` in 2378 *[\\\"\#\$\&\'\`$am_lf]*) 2379 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2380esac 2381case $srcdir in 2382 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2383 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2384esac 2385 2386# Do 'set' in a subshell so we don't clobber the current shell's 2387# arguments. Must try -L first in case configure is actually a 2388# symlink; some systems play weird games with the mod time of symlinks 2389# (eg FreeBSD returns the mod time of the symlink's containing 2390# directory). 2391if ( 2392 am_has_slept=no 2393 for am_try in 1 2; do 2394 echo "timestamp, slept: $am_has_slept" > conftest.file 2395 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2396 if test "$*" = "X"; then 2397 # -L didn't work. 2398 set X `ls -t "$srcdir/configure" conftest.file` 2399 fi 2400 if test "$*" != "X $srcdir/configure conftest.file" \ 2401 && test "$*" != "X conftest.file $srcdir/configure"; then 2402 2403 # If neither matched, then we have a broken ls. This can happen 2404 # if, for instance, CONFIG_SHELL is bash and it inherits a 2405 # broken ls alias from the environment. This has actually 2406 # happened. Such a system could not be considered "sane". 2407 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2408 alias in your environment" "$LINENO" 5 2409 fi 2410 if test "$2" = conftest.file || test $am_try -eq 2; then 2411 break 2412 fi 2413 # Just in case. 2414 sleep 1 2415 am_has_slept=yes 2416 done 2417 test "$2" = conftest.file 2418 ) 2419then 2420 # Ok. 2421 : 2422else 2423 as_fn_error $? "newly created file is older than distributed files! 2424Check your system clock" "$LINENO" 5 2425fi 2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2427$as_echo "yes" >&6; } 2428# If we didn't sleep, we still need to ensure time stamps of config.status and 2429# generated files are strictly newer. 2430am_sleep_pid= 2431if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2432 ( sleep 1 ) & 2433 am_sleep_pid=$! 2434fi 2435 2436rm -f conftest.file 2437 2438test "$program_prefix" != NONE && 2439 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2440# Use a double $ so make ignores it. 2441test "$program_suffix" != NONE && 2442 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2443# Double any \ or $. 2444# By default was `s,x,x', remove it if useless. 2445ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2446program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2447 2448# expand $ac_aux_dir to an absolute path 2449am_aux_dir=`cd $ac_aux_dir && pwd` 2450 2451if test x"${MISSING+set}" != xset; then 2452 case $am_aux_dir in 2453 *\ * | *\ *) 2454 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2455 *) 2456 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2457 esac 2458fi 2459# Use eval to expand $SHELL 2460if eval "$MISSING --is-lightweight"; then 2461 am_missing_run="$MISSING " 2462else 2463 am_missing_run= 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2465$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2466fi 2467 2468if test x"${install_sh}" != xset; then 2469 case $am_aux_dir in 2470 *\ * | *\ *) 2471 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2472 *) 2473 install_sh="\${SHELL} $am_aux_dir/install-sh" 2474 esac 2475fi 2476 2477# Installed binaries are usually stripped using 'strip' when the user 2478# run "make install-strip". However 'strip' might not be the right 2479# tool to use in cross-compilation environments, therefore Automake 2480# will honor the 'STRIP' environment variable to overrule this program. 2481if test "$cross_compiling" != no; then 2482 if test -n "$ac_tool_prefix"; then 2483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2484set dummy ${ac_tool_prefix}strip; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if ${ac_cv_prog_STRIP+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$STRIP"; then 2491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510STRIP=$ac_cv_prog_STRIP 2511if test -n "$STRIP"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2513$as_echo "$STRIP" >&6; } 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 2520fi 2521if test -z "$ac_cv_prog_STRIP"; then 2522 ac_ct_STRIP=$STRIP 2523 # Extract the first word of "strip", so it can be a program name with args. 2524set dummy strip; ac_word=$2 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$ac_ct_STRIP"; then 2531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2532else 2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_ac_ct_STRIP="strip" 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544done 2545 done 2546IFS=$as_save_IFS 2547 2548fi 2549fi 2550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2551if test -n "$ac_ct_STRIP"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2553$as_echo "$ac_ct_STRIP" >&6; } 2554else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556$as_echo "no" >&6; } 2557fi 2558 2559 if test "x$ac_ct_STRIP" = x; then 2560 STRIP=":" 2561 else 2562 case $cross_compiling:$ac_tool_warned in 2563yes:) 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2566ac_tool_warned=yes ;; 2567esac 2568 STRIP=$ac_ct_STRIP 2569 fi 2570else 2571 STRIP="$ac_cv_prog_STRIP" 2572fi 2573 2574fi 2575INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2576 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2578$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2579if test -z "$MKDIR_P"; then 2580 if ${ac_cv_path_mkdir+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_prog in mkdir gmkdir; do 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2591 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2592 'mkdir (GNU coreutils) '* | \ 2593 'mkdir (coreutils) '* | \ 2594 'mkdir (fileutils) '4.1*) 2595 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2596 break 3;; 2597 esac 2598 done 2599 done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604 2605 test -d ./--version && rmdir ./--version 2606 if test "${ac_cv_path_mkdir+set}" = set; then 2607 MKDIR_P="$ac_cv_path_mkdir -p" 2608 else 2609 # As a last resort, use the slow shell script. Don't cache a 2610 # value for MKDIR_P within a source directory, because that will 2611 # break other packages using the cache if that directory is 2612 # removed, or if the value is a relative name. 2613 MKDIR_P="$ac_install_sh -d" 2614 fi 2615fi 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2617$as_echo "$MKDIR_P" >&6; } 2618 2619for ac_prog in gawk mawk nawk awk 2620do 2621 # Extract the first word of "$ac_prog", so it can be a program name with args. 2622set dummy $ac_prog; ac_word=$2 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if ${ac_cv_prog_AWK+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$AWK"; then 2629 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2638 ac_cv_prog_AWK="$ac_prog" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643 done 2644IFS=$as_save_IFS 2645 2646fi 2647fi 2648AWK=$ac_cv_prog_AWK 2649if test -n "$AWK"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2651$as_echo "$AWK" >&6; } 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654$as_echo "no" >&6; } 2655fi 2656 2657 2658 test -n "$AWK" && break 2659done 2660 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2662$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2663set x ${MAKE-make} 2664ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2665if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 cat >conftest.make <<\_ACEOF 2669SHELL = /bin/sh 2670all: 2671 @echo '@@@%%%=$(MAKE)=@@@%%%' 2672_ACEOF 2673# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2674case `${MAKE-make} -f conftest.make 2>/dev/null` in 2675 *@@@%%%=?*=@@@%%%*) 2676 eval ac_cv_prog_make_${ac_make}_set=yes;; 2677 *) 2678 eval ac_cv_prog_make_${ac_make}_set=no;; 2679esac 2680rm -f conftest.make 2681fi 2682if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2684$as_echo "yes" >&6; } 2685 SET_MAKE= 2686else 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2688$as_echo "no" >&6; } 2689 SET_MAKE="MAKE=${MAKE-make}" 2690fi 2691 2692rm -rf .tst 2>/dev/null 2693mkdir .tst 2>/dev/null 2694if test -d .tst; then 2695 am__leading_dot=. 2696else 2697 am__leading_dot=_ 2698fi 2699rmdir .tst 2>/dev/null 2700 2701# Check whether --enable-silent-rules was given. 2702if test "${enable_silent_rules+set}" = set; then : 2703 enableval=$enable_silent_rules; 2704fi 2705 2706case $enable_silent_rules in # ((( 2707 yes) AM_DEFAULT_VERBOSITY=0;; 2708 no) AM_DEFAULT_VERBOSITY=1;; 2709 *) AM_DEFAULT_VERBOSITY=1;; 2710esac 2711am_make=${MAKE-make} 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2713$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2714if ${am_cv_make_support_nested_variables+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 if $as_echo 'TRUE=$(BAR$(V)) 2718BAR0=false 2719BAR1=true 2720V=1 2721am__doit: 2722 @$(TRUE) 2723.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2724 am_cv_make_support_nested_variables=yes 2725else 2726 am_cv_make_support_nested_variables=no 2727fi 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2730$as_echo "$am_cv_make_support_nested_variables" >&6; } 2731if test $am_cv_make_support_nested_variables = yes; then 2732 AM_V='$(V)' 2733 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2734else 2735 AM_V=$AM_DEFAULT_VERBOSITY 2736 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2737fi 2738AM_BACKSLASH='\' 2739 2740if test "`cd $srcdir && pwd`" != "`pwd`"; then 2741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2742 # is not polluted with repeated "-I." 2743 am__isrc=' -I$(srcdir)' 2744 # test to see if srcdir already configured 2745 if test -f $srcdir/config.status; then 2746 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2747 fi 2748fi 2749 2750# test whether we have cygpath 2751if test -z "$CYGPATH_W"; then 2752 if (cygpath --version) >/dev/null 2>/dev/null; then 2753 CYGPATH_W='cygpath -w' 2754 else 2755 CYGPATH_W=echo 2756 fi 2757fi 2758 2759 2760# Define the identity of the package. 2761 PACKAGE='libltdl' 2762 VERSION='2.4.2' 2763 2764 2765cat >>confdefs.h <<_ACEOF 2766#define PACKAGE "$PACKAGE" 2767_ACEOF 2768 2769 2770cat >>confdefs.h <<_ACEOF 2771#define VERSION "$VERSION" 2772_ACEOF 2773 2774# Some tools Automake needs. 2775 2776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2777 2778 2779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2780 2781 2782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2783 2784 2785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2786 2787 2788MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2789 2790# For better backward compatibility. To be removed once Automake 1.9.x 2791# dies out for good. For more background, see: 2792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2793# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2794mkdir_p='$(MKDIR_P)' 2795 2796# We need awk for the "check" target. The system "awk" is bad on 2797# some platforms. 2798# Always define AMTAR for backward compatibility. Yes, it's still used 2799# in the wild :-( We should find a proper way to deprecate it ... 2800AMTAR='$${TAR-tar}' 2801 2802 2803# We'll loop over all known methods to create a tar archive until one works. 2804_am_tools='gnutar pax cpio none' 2805 2806am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2807 2808 2809 2810 2811 2812 2813# POSIX will say in a future version that running "rm -f" with no argument 2814# is OK; and we want to be able to make that assumption in our Makefile 2815# recipes. So use an aggressive probe to check that the usage we want is 2816# actually supported "in the wild" to an acceptable degree. 2817# See automake bug#10828. 2818# To make any issue more visible, cause the running configure to be aborted 2819# by default if the 'rm' program in use doesn't match our expectations; the 2820# user can still override this though. 2821if rm -f && rm -fr && rm -rf; then : OK; else 2822 cat >&2 <<'END' 2823Oops! 2824 2825Your 'rm' program seems unable to run without file operands specified 2826on the command line, even when the '-f' option is present. This is contrary 2827to the behaviour of most rm programs out there, and not conforming with 2828the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2829 2830Please tell bug-automake@gnu.org about your system, including the value 2831of your $PATH and any error possibly output before this message. This 2832can help us improve future automake versions. 2833 2834END 2835 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2836 echo 'Configuration will proceed anyway, since you have set the' >&2 2837 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2838 echo >&2 2839 else 2840 cat >&2 <<'END' 2841Aborting the configuration process, to ensure you take notice of the issue. 2842 2843You can download and install GNU coreutils to get an 'rm' implementation 2844that behaves properly: <http://www.gnu.org/software/coreutils/>. 2845 2846If you want to complete the configuration process using your problematic 2847'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2848to "yes", and re-run configure. 2849 2850END 2851 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2852 fi 2853fi 2854 2855 2856## ------------------------------- ## 2857## Libtool specific configuration. ## 2858## ------------------------------- ## 2859pkgdatadir='${datadir}'"/${PACKAGE}" 2860 2861 2862## ----------------------- ## 2863## Libtool initialisation. ## 2864## ----------------------- ## 2865case `pwd` in 2866 *\ * | *\ *) 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2868$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2869esac 2870 2871 2872 2873macro_version='2.4.2' 2874macro_revision='1.3337' 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888ltmain="$ac_aux_dir/ltmain.sh" 2889 2890# Make sure we can run config.sub. 2891$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2893 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2895$as_echo_n "checking build system type... " >&6; } 2896if ${ac_cv_build+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 ac_build_alias=$build_alias 2900test "x$ac_build_alias" = x && 2901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2902test "x$ac_build_alias" = x && 2903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2904ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2906 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2909$as_echo "$ac_cv_build" >&6; } 2910case $ac_cv_build in 2911*-*-*) ;; 2912*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2913esac 2914build=$ac_cv_build 2915ac_save_IFS=$IFS; IFS='-' 2916set x $ac_cv_build 2917shift 2918build_cpu=$1 2919build_vendor=$2 2920shift; shift 2921# Remember, the first character of IFS is used to create $*, 2922# except with old shells: 2923build_os=$* 2924IFS=$ac_save_IFS 2925case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2926 2927 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2929$as_echo_n "checking host system type... " >&6; } 2930if ${ac_cv_host+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test "x$host_alias" = x; then 2934 ac_cv_host=$ac_cv_build 2935else 2936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2938fi 2939 2940fi 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2942$as_echo "$ac_cv_host" >&6; } 2943case $ac_cv_host in 2944*-*-*) ;; 2945*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2946esac 2947host=$ac_cv_host 2948ac_save_IFS=$IFS; IFS='-' 2949set x $ac_cv_host 2950shift 2951host_cpu=$1 2952host_vendor=$2 2953shift; shift 2954# Remember, the first character of IFS is used to create $*, 2955# except with old shells: 2956host_os=$* 2957IFS=$ac_save_IFS 2958case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2959 2960 2961# Backslashify metacharacters that are still active within 2962# double-quoted strings. 2963sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2964 2965# Same as above, but do not quote variable references. 2966double_quote_subst='s/\(["`\\]\)/\\\1/g' 2967 2968# Sed substitution to delay expansion of an escaped shell variable in a 2969# double_quote_subst'ed string. 2970delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2971 2972# Sed substitution to delay expansion of an escaped single quote. 2973delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2974 2975# Sed substitution to avoid accidental globbing in evaled expressions 2976no_glob_subst='s/\*/\\\*/g' 2977 2978ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2979ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2980ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2981 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2983$as_echo_n "checking how to print strings... " >&6; } 2984# Test print first, because it will be a builtin if present. 2985if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2986 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2987 ECHO='print -r --' 2988elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2989 ECHO='printf %s\n' 2990else 2991 # Use this function as a fallback that always works. 2992 func_fallback_echo () 2993 { 2994 eval 'cat <<_LTECHO_EOF 2995$1 2996_LTECHO_EOF' 2997 } 2998 ECHO='func_fallback_echo' 2999fi 3000 3001# func_echo_all arg... 3002# Invoke $ECHO with all args, space-separated. 3003func_echo_all () 3004{ 3005 $ECHO "" 3006} 3007 3008case "$ECHO" in 3009 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3010$as_echo "printf" >&6; } ;; 3011 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3012$as_echo "print -r" >&6; } ;; 3013 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3014$as_echo "cat" >&6; } ;; 3015esac 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030DEPDIR="${am__leading_dot}deps" 3031 3032ac_config_commands="$ac_config_commands depfiles" 3033 3034 3035am_make=${MAKE-make} 3036cat > confinc << 'END' 3037am__doit: 3038 @echo this is the am__doit target 3039.PHONY: am__doit 3040END 3041# If we don't find an include directive, just comment out the code. 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3043$as_echo_n "checking for style of include used by $am_make... " >&6; } 3044am__include="#" 3045am__quote= 3046_am_result=none 3047# First try GNU make style include. 3048echo "include confinc" > confmf 3049# Ignore all kinds of additional output from 'make'. 3050case `$am_make -s -f confmf 2> /dev/null` in #( 3051*the\ am__doit\ target*) 3052 am__include=include 3053 am__quote= 3054 _am_result=GNU 3055 ;; 3056esac 3057# Now try BSD make style include. 3058if test "$am__include" = "#"; then 3059 echo '.include "confinc"' > confmf 3060 case `$am_make -s -f confmf 2> /dev/null` in #( 3061 *the\ am__doit\ target*) 3062 am__include=.include 3063 am__quote="\"" 3064 _am_result=BSD 3065 ;; 3066 esac 3067fi 3068 3069 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3071$as_echo "$_am_result" >&6; } 3072rm -f confinc confmf 3073 3074# Check whether --enable-dependency-tracking was given. 3075if test "${enable_dependency_tracking+set}" = set; then : 3076 enableval=$enable_dependency_tracking; 3077fi 3078 3079if test "x$enable_dependency_tracking" != xno; then 3080 am_depcomp="$ac_aux_dir/depcomp" 3081 AMDEPBACKSLASH='\' 3082 am__nodep='_no' 3083fi 3084 if test "x$enable_dependency_tracking" != xno; then 3085 AMDEP_TRUE= 3086 AMDEP_FALSE='#' 3087else 3088 AMDEP_TRUE='#' 3089 AMDEP_FALSE= 3090fi 3091 3092 3093ac_ext=c 3094ac_cpp='$CPP $CPPFLAGS' 3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3097ac_compiler_gnu=$ac_cv_c_compiler_gnu 3098if test -n "$ac_tool_prefix"; then 3099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3100set dummy ${ac_tool_prefix}gcc; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if ${ac_cv_prog_CC+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$CC"; then 3107 ac_cv_prog_CC="$CC" # Let the user override the test. 3108else 3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3110for as_dir in $PATH 3111do 3112 IFS=$as_save_IFS 3113 test -z "$as_dir" && as_dir=. 3114 for ac_exec_ext in '' $ac_executable_extensions; do 3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3116 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125fi 3126CC=$ac_cv_prog_CC 3127if test -n "$CC"; then 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3129$as_echo "$CC" >&6; } 3130else 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132$as_echo "no" >&6; } 3133fi 3134 3135 3136fi 3137if test -z "$ac_cv_prog_CC"; then 3138 ac_ct_CC=$CC 3139 # Extract the first word of "gcc", so it can be a program name with args. 3140set dummy gcc; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_ac_ct_CC+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$ac_ct_CC"; then 3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3156 ac_cv_prog_ac_ct_CC="gcc" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166ac_ct_CC=$ac_cv_prog_ac_ct_CC 3167if test -n "$ac_ct_CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3169$as_echo "$ac_ct_CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 if test "x$ac_ct_CC" = x; then 3176 CC="" 3177 else 3178 case $cross_compiling:$ac_tool_warned in 3179yes:) 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3182ac_tool_warned=yes ;; 3183esac 3184 CC=$ac_ct_CC 3185 fi 3186else 3187 CC="$ac_cv_prog_CC" 3188fi 3189 3190if test -z "$CC"; then 3191 if test -n "$ac_tool_prefix"; then 3192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3193set dummy ${ac_tool_prefix}cc; ac_word=$2 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3195$as_echo_n "checking for $ac_word... " >&6; } 3196if ${ac_cv_prog_CC+:} false; then : 3197 $as_echo_n "(cached) " >&6 3198else 3199 if test -n "$CC"; then 3200 ac_cv_prog_CC="$CC" # Let the user override the test. 3201else 3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3203for as_dir in $PATH 3204do 3205 IFS=$as_save_IFS 3206 test -z "$as_dir" && as_dir=. 3207 for ac_exec_ext in '' $ac_executable_extensions; do 3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3209 ac_cv_prog_CC="${ac_tool_prefix}cc" 3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3211 break 2 3212 fi 3213done 3214 done 3215IFS=$as_save_IFS 3216 3217fi 3218fi 3219CC=$ac_cv_prog_CC 3220if test -n "$CC"; then 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3222$as_echo "$CC" >&6; } 3223else 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3225$as_echo "no" >&6; } 3226fi 3227 3228 3229 fi 3230fi 3231if test -z "$CC"; then 3232 # Extract the first word of "cc", so it can be a program name with args. 3233set dummy cc; ac_word=$2 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3235$as_echo_n "checking for $ac_word... " >&6; } 3236if ${ac_cv_prog_CC+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241else 3242 ac_prog_rejected=no 3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3244for as_dir in $PATH 3245do 3246 IFS=$as_save_IFS 3247 test -z "$as_dir" && as_dir=. 3248 for ac_exec_ext in '' $ac_executable_extensions; do 3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3251 ac_prog_rejected=yes 3252 continue 3253 fi 3254 ac_cv_prog_CC="cc" 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262if test $ac_prog_rejected = yes; then 3263 # We found a bogon in the path, so make sure we never use it. 3264 set dummy $ac_cv_prog_CC 3265 shift 3266 if test $# != 0; then 3267 # We chose a different compiler from the bogus one. 3268 # However, it has the same basename, so the bogon will be chosen 3269 # first if we set CC to just the basename; use the full file name. 3270 shift 3271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3272 fi 3273fi 3274fi 3275fi 3276CC=$ac_cv_prog_CC 3277if test -n "$CC"; then 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3279$as_echo "$CC" >&6; } 3280else 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282$as_echo "no" >&6; } 3283fi 3284 3285 3286fi 3287if test -z "$CC"; then 3288 if test -n "$ac_tool_prefix"; then 3289 for ac_prog in cl.exe 3290 do 3291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3292set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294$as_echo_n "checking for $ac_word... " >&6; } 3295if ${ac_cv_prog_CC+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if test -n "$CC"; then 3299 ac_cv_prog_CC="$CC" # Let the user override the test. 3300else 3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3302for as_dir in $PATH 3303do 3304 IFS=$as_save_IFS 3305 test -z "$as_dir" && as_dir=. 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3310 break 2 3311 fi 3312done 3313 done 3314IFS=$as_save_IFS 3315 3316fi 3317fi 3318CC=$ac_cv_prog_CC 3319if test -n "$CC"; then 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3321$as_echo "$CC" >&6; } 3322else 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324$as_echo "no" >&6; } 3325fi 3326 3327 3328 test -n "$CC" && break 3329 done 3330fi 3331if test -z "$CC"; then 3332 ac_ct_CC=$CC 3333 for ac_prog in cl.exe 3334do 3335 # Extract the first word of "$ac_prog", so it can be a program name with args. 3336set dummy $ac_prog; ac_word=$2 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3338$as_echo_n "checking for $ac_word... " >&6; } 3339if ${ac_cv_prog_ac_ct_CC+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 if test -n "$ac_ct_CC"; then 3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3344else 3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3346for as_dir in $PATH 3347do 3348 IFS=$as_save_IFS 3349 test -z "$as_dir" && as_dir=. 3350 for ac_exec_ext in '' $ac_executable_extensions; do 3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3352 ac_cv_prog_ac_ct_CC="$ac_prog" 3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3354 break 2 3355 fi 3356done 3357 done 3358IFS=$as_save_IFS 3359 3360fi 3361fi 3362ac_ct_CC=$ac_cv_prog_ac_ct_CC 3363if test -n "$ac_ct_CC"; then 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3365$as_echo "$ac_ct_CC" >&6; } 3366else 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3368$as_echo "no" >&6; } 3369fi 3370 3371 3372 test -n "$ac_ct_CC" && break 3373done 3374 3375 if test "x$ac_ct_CC" = x; then 3376 CC="" 3377 else 3378 case $cross_compiling:$ac_tool_warned in 3379yes:) 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3382ac_tool_warned=yes ;; 3383esac 3384 CC=$ac_ct_CC 3385 fi 3386fi 3387 3388fi 3389 3390 3391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3393as_fn_error $? "no acceptable C compiler found in \$PATH 3394See \`config.log' for more details" "$LINENO" 5; } 3395 3396# Provide some information about the compiler. 3397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3398set X $ac_compile 3399ac_compiler=$2 3400for ac_option in --version -v -V -qversion; do 3401 { { ac_try="$ac_compiler $ac_option >&5" 3402case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405esac 3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3407$as_echo "$ac_try_echo"; } >&5 3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3409 ac_status=$? 3410 if test -s conftest.err; then 3411 sed '10a\ 3412... rest of stderr output deleted ... 3413 10q' conftest.err >conftest.er1 3414 cat conftest.er1 >&5 3415 fi 3416 rm -f conftest.er1 conftest.err 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; } 3419done 3420 3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423 3424int 3425main () 3426{ 3427 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432ac_clean_files_save=$ac_clean_files 3433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3434# Try to create an executable without -o first, disregard a.out. 3435# It will help us diagnose broken compilers, and finding out an intuition 3436# of exeext. 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3438$as_echo_n "checking whether the C compiler works... " >&6; } 3439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3440 3441# The possible output files: 3442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3443 3444ac_rmfiles= 3445for ac_file in $ac_files 3446do 3447 case $ac_file in 3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3450 esac 3451done 3452rm -f $ac_rmfiles 3453 3454if { { ac_try="$ac_link_default" 3455case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458esac 3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3460$as_echo "$ac_try_echo"; } >&5 3461 (eval "$ac_link_default") 2>&5 3462 ac_status=$? 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; }; then : 3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3467# in a Makefile. We should not override ac_cv_exeext if it was cached, 3468# so that the user can short-circuit this test for compilers unknown to 3469# Autoconf. 3470for ac_file in $ac_files '' 3471do 3472 test -f "$ac_file" || continue 3473 case $ac_file in 3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3475 ;; 3476 [ab].out ) 3477 # We found the default executable, but exeext='' is most 3478 # certainly right. 3479 break;; 3480 *.* ) 3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3482 then :; else 3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3484 fi 3485 # We set ac_cv_exeext here because the later test for it is not 3486 # safe: cross compilers may not add the suffix if given an `-o' 3487 # argument, so we may need to know it at that point already. 3488 # Even if this section looks crufty: it has the advantage of 3489 # actually working. 3490 break;; 3491 * ) 3492 break;; 3493 esac 3494done 3495test "$ac_cv_exeext" = no && ac_cv_exeext= 3496 3497else 3498 ac_file='' 3499fi 3500if test -z "$ac_file"; then : 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3502$as_echo "no" >&6; } 3503$as_echo "$as_me: failed program was:" >&5 3504sed 's/^/| /' conftest.$ac_ext >&5 3505 3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error 77 "C compiler cannot create executables 3509See \`config.log' for more details" "$LINENO" 5; } 3510else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3512$as_echo "yes" >&6; } 3513fi 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3515$as_echo_n "checking for C compiler default output file name... " >&6; } 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3517$as_echo "$ac_file" >&6; } 3518ac_exeext=$ac_cv_exeext 3519 3520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3521ac_clean_files=$ac_clean_files_save 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3523$as_echo_n "checking for suffix of executables... " >&6; } 3524if { { ac_try="$ac_link" 3525case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528esac 3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530$as_echo "$ac_try_echo"; } >&5 3531 (eval "$ac_link") 2>&5 3532 ac_status=$? 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; }; then : 3535 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3537# work properly (i.e., refer to `conftest.exe'), while it won't with 3538# `rm'. 3539for ac_file in conftest.exe conftest conftest.*; do 3540 test -f "$ac_file" || continue 3541 case $ac_file in 3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3544 break;; 3545 * ) break;; 3546 esac 3547done 3548else 3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3551as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3552See \`config.log' for more details" "$LINENO" 5; } 3553fi 3554rm -f conftest conftest$ac_cv_exeext 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3556$as_echo "$ac_cv_exeext" >&6; } 3557 3558rm -f conftest.$ac_ext 3559EXEEXT=$ac_cv_exeext 3560ac_exeext=$EXEEXT 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563#include <stdio.h> 3564int 3565main () 3566{ 3567FILE *f = fopen ("conftest.out", "w"); 3568 return ferror (f) || fclose (f) != 0; 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574ac_clean_files="$ac_clean_files conftest.out" 3575# Check that the compiler produces executables we can run. If not, either 3576# the compiler is broken, or we cross compile. 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3578$as_echo_n "checking whether we are cross compiling... " >&6; } 3579if test "$cross_compiling" != yes; then 3580 { { ac_try="$ac_link" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_link") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; } 3591 if { ac_try='./conftest$ac_cv_exeext' 3592 { { case "(($ac_try" in 3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3594 *) ac_try_echo=$ac_try;; 3595esac 3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3597$as_echo "$ac_try_echo"; } >&5 3598 (eval "$ac_try") 2>&5 3599 ac_status=$? 3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3601 test $ac_status = 0; }; }; then 3602 cross_compiling=no 3603 else 3604 if test "$cross_compiling" = maybe; then 3605 cross_compiling=yes 3606 else 3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609as_fn_error $? "cannot run C compiled programs. 3610If you meant to cross compile, use \`--host'. 3611See \`config.log' for more details" "$LINENO" 5; } 3612 fi 3613 fi 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3616$as_echo "$cross_compiling" >&6; } 3617 3618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3619ac_clean_files=$ac_clean_files_save 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3621$as_echo_n "checking for suffix of object files... " >&6; } 3622if ${ac_cv_objext+:} 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 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636rm -f conftest.o conftest.obj 3637if { { ac_try="$ac_compile" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643$as_echo "$ac_try_echo"; } >&5 3644 (eval "$ac_compile") 2>&5 3645 ac_status=$? 3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; }; then : 3648 for ac_file in conftest.o conftest.obj conftest.*; do 3649 test -f "$ac_file" || continue; 3650 case $ac_file in 3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3653 break;; 3654 esac 3655done 3656else 3657 $as_echo "$as_me: failed program was:" >&5 3658sed 's/^/| /' conftest.$ac_ext >&5 3659 3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3662as_fn_error $? "cannot compute suffix of object files: cannot compile 3663See \`config.log' for more details" "$LINENO" 5; } 3664fi 3665rm -f conftest.$ac_cv_objext conftest.$ac_ext 3666fi 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3668$as_echo "$ac_cv_objext" >&6; } 3669OBJEXT=$ac_cv_objext 3670ac_objext=$OBJEXT 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3672$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3673if ${ac_cv_c_compiler_gnu+:} false; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682#ifndef __GNUC__ 3683 choke me 3684#endif 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_compiler_gnu=yes 3692else 3693 ac_compiler_gnu=no 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696ac_cv_c_compiler_gnu=$ac_compiler_gnu 3697 3698fi 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3700$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3701if test $ac_compiler_gnu = yes; then 3702 GCC=yes 3703else 3704 GCC= 3705fi 3706ac_test_CFLAGS=${CFLAGS+set} 3707ac_save_CFLAGS=$CFLAGS 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3709$as_echo_n "checking whether $CC accepts -g... " >&6; } 3710if ${ac_cv_prog_cc_g+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 ac_save_c_werror_flag=$ac_c_werror_flag 3714 ac_c_werror_flag=yes 3715 ac_cv_prog_cc_g=no 3716 CFLAGS="-g" 3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719 3720int 3721main () 3722{ 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728if ac_fn_c_try_compile "$LINENO"; then : 3729 ac_cv_prog_cc_g=yes 3730else 3731 CFLAGS="" 3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3733/* end confdefs.h. */ 3734 3735int 3736main () 3737{ 3738 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743if ac_fn_c_try_compile "$LINENO"; then : 3744 3745else 3746 ac_c_werror_flag=$ac_save_c_werror_flag 3747 CFLAGS="-g" 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750 3751int 3752main () 3753{ 3754 3755 ; 3756 return 0; 3757} 3758_ACEOF 3759if ac_fn_c_try_compile "$LINENO"; then : 3760 ac_cv_prog_cc_g=yes 3761fi 3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3763fi 3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767 ac_c_werror_flag=$ac_save_c_werror_flag 3768fi 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3770$as_echo "$ac_cv_prog_cc_g" >&6; } 3771if test "$ac_test_CFLAGS" = set; then 3772 CFLAGS=$ac_save_CFLAGS 3773elif test $ac_cv_prog_cc_g = yes; then 3774 if test "$GCC" = yes; then 3775 CFLAGS="-g -O2" 3776 else 3777 CFLAGS="-g" 3778 fi 3779else 3780 if test "$GCC" = yes; then 3781 CFLAGS="-O2" 3782 else 3783 CFLAGS= 3784 fi 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3787$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3788if ${ac_cv_prog_cc_c89+:} false; then : 3789 $as_echo_n "(cached) " >&6 3790else 3791 ac_cv_prog_cc_c89=no 3792ac_save_CC=$CC 3793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3794/* end confdefs.h. */ 3795#include <stdarg.h> 3796#include <stdio.h> 3797struct stat; 3798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3799struct buf { int x; }; 3800FILE * (*rcsopen) (struct buf *, struct stat *, int); 3801static char *e (p, i) 3802 char **p; 3803 int i; 3804{ 3805 return p[i]; 3806} 3807static char *f (char * (*g) (char **, int), char **p, ...) 3808{ 3809 char *s; 3810 va_list v; 3811 va_start (v,p); 3812 s = g (p, va_arg (v,int)); 3813 va_end (v); 3814 return s; 3815} 3816 3817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3818 function prototypes and stuff, but not '\xHH' hex character constants. 3819 These don't provoke an error unfortunately, instead are silently treated 3820 as 'x'. The following induces an error, until -std is added to get 3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3822 array size at least. It's necessary to write '\x00'==0 to get something 3823 that's true only with -std. */ 3824int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3825 3826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3827 inside strings and character constants. */ 3828#define FOO(x) 'x' 3829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3830 3831int test (int i, double x); 3832struct s1 {int (*f) (int a);}; 3833struct s2 {int (*f) (double a);}; 3834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3835int argc; 3836char **argv; 3837int 3838main () 3839{ 3840return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3847do 3848 CC="$ac_save_CC $ac_arg" 3849 if ac_fn_c_try_compile "$LINENO"; then : 3850 ac_cv_prog_cc_c89=$ac_arg 3851fi 3852rm -f core conftest.err conftest.$ac_objext 3853 test "x$ac_cv_prog_cc_c89" != "xno" && break 3854done 3855rm -f conftest.$ac_ext 3856CC=$ac_save_CC 3857 3858fi 3859# AC_CACHE_VAL 3860case "x$ac_cv_prog_cc_c89" in 3861 x) 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3863$as_echo "none needed" >&6; } ;; 3864 xno) 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3866$as_echo "unsupported" >&6; } ;; 3867 *) 3868 CC="$CC $ac_cv_prog_cc_c89" 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3871esac 3872if test "x$ac_cv_prog_cc_c89" != xno; then : 3873 3874fi 3875 3876ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 3882ac_ext=c 3883ac_cpp='$CPP $CPPFLAGS' 3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3886ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3888$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3889if ${am_cv_prog_cc_c_o+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894 3895int 3896main () 3897{ 3898 3899 ; 3900 return 0; 3901} 3902_ACEOF 3903 # Make sure it works both with $CC and with simple cc. 3904 # Following AC_PROG_CC_C_O, we do the test twice because some 3905 # compilers refuse to overwrite an existing .o file with -o, 3906 # though they will create one. 3907 am_cv_prog_cc_c_o=yes 3908 for am_i in 1 2; do 3909 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3910 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); } \ 3914 && test -f conftest2.$ac_objext; then 3915 : OK 3916 else 3917 am_cv_prog_cc_c_o=no 3918 break 3919 fi 3920 done 3921 rm -f core conftest* 3922 unset am_i 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3925$as_echo "$am_cv_prog_cc_c_o" >&6; } 3926if test "$am_cv_prog_cc_c_o" != yes; then 3927 # Losing compiler, so override with the script. 3928 # FIXME: It is wrong to rewrite CC. 3929 # But if we don't then we get into trouble of one sort or another. 3930 # A longer-term fix would be to have automake use am__CC in this case, 3931 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3932 CC="$am_aux_dir/compile $CC" 3933fi 3934ac_ext=c 3935ac_cpp='$CPP $CPPFLAGS' 3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938ac_compiler_gnu=$ac_cv_c_compiler_gnu 3939 3940 3941depcc="$CC" am_compiler_list= 3942 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3944$as_echo_n "checking dependency style of $depcc... " >&6; } 3945if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3949 # We make a subdir and do the tests there. Otherwise we can end up 3950 # making bogus files that we don't know about and never remove. For 3951 # instance it was reported that on HP-UX the gcc test will end up 3952 # making a dummy file named 'D' -- because '-MD' means "put the output 3953 # in D". 3954 rm -rf conftest.dir 3955 mkdir conftest.dir 3956 # Copy depcomp to subdir because otherwise we won't find it if we're 3957 # using a relative directory. 3958 cp "$am_depcomp" conftest.dir 3959 cd conftest.dir 3960 # We will build objects and dependencies in a subdirectory because 3961 # it helps to detect inapplicable dependency modes. For instance 3962 # both Tru64's cc and ICC support -MD to output dependencies as a 3963 # side effect of compilation, but ICC will put the dependencies in 3964 # the current directory while Tru64 will put them in the object 3965 # directory. 3966 mkdir sub 3967 3968 am_cv_CC_dependencies_compiler_type=none 3969 if test "$am_compiler_list" = ""; then 3970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3971 fi 3972 am__universal=false 3973 case " $depcc " in #( 3974 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3975 esac 3976 3977 for depmode in $am_compiler_list; do 3978 # Setup a source with many dependencies, because some compilers 3979 # like to wrap large dependency lists on column 80 (with \), and 3980 # we should not choose a depcomp mode which is confused by this. 3981 # 3982 # We need to recreate these files for each test, as the compiler may 3983 # overwrite some of them when testing with obscure command lines. 3984 # This happens at least with the AIX C compiler. 3985 : > sub/conftest.c 3986 for i in 1 2 3 4 5 6; do 3987 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3989 # Solaris 10 /bin/sh. 3990 echo '/* dummy */' > sub/conftst$i.h 3991 done 3992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3993 3994 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3995 # mode. It turns out that the SunPro C++ compiler does not properly 3996 # handle '-M -o', and we need to detect this. Also, some Intel 3997 # versions had trouble with output in subdirs. 3998 am__obj=sub/conftest.${OBJEXT-o} 3999 am__minus_obj="-o $am__obj" 4000 case $depmode in 4001 gcc) 4002 # This depmode causes a compiler race in universal mode. 4003 test "$am__universal" = false || continue 4004 ;; 4005 nosideeffect) 4006 # After this tag, mechanisms are not by side-effect, so they'll 4007 # only be used when explicitly requested. 4008 if test "x$enable_dependency_tracking" = xyes; then 4009 continue 4010 else 4011 break 4012 fi 4013 ;; 4014 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4015 # This compiler won't grok '-c -o', but also, the minuso test has 4016 # not run yet. These depmodes are late enough in the game, and 4017 # so weak that their functioning should not be impacted. 4018 am__obj=conftest.${OBJEXT-o} 4019 am__minus_obj= 4020 ;; 4021 none) break ;; 4022 esac 4023 if depmode=$depmode \ 4024 source=sub/conftest.c object=$am__obj \ 4025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4027 >/dev/null 2>conftest.err && 4028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4032 # icc doesn't choke on unknown options, it will just issue warnings 4033 # or remarks (even with -Werror). So we grep stderr for any message 4034 # that says an option was ignored or not supported. 4035 # When given -MP, icc 7.0 and 7.1 complain thusly: 4036 # icc: Command line warning: ignoring option '-M'; no argument required 4037 # The diagnosis changed in icc 8.0: 4038 # icc: Command line remark: option '-MP' not supported 4039 if (grep 'ignoring option' conftest.err || 4040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4041 am_cv_CC_dependencies_compiler_type=$depmode 4042 break 4043 fi 4044 fi 4045 done 4046 4047 cd .. 4048 rm -rf conftest.dir 4049else 4050 am_cv_CC_dependencies_compiler_type=none 4051fi 4052 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4055$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4056CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4057 4058 if 4059 test "x$enable_dependency_tracking" != xno \ 4060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4061 am__fastdepCC_TRUE= 4062 am__fastdepCC_FALSE='#' 4063else 4064 am__fastdepCC_TRUE='#' 4065 am__fastdepCC_FALSE= 4066fi 4067 4068 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4070$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4071if ${ac_cv_path_SED+:} false; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4075 for ac_i in 1 2 3 4 5 6 7; do 4076 ac_script="$ac_script$as_nl$ac_script" 4077 done 4078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4079 { ac_script=; unset ac_script;} 4080 if test -z "$SED"; then 4081 ac_path_SED_found=false 4082 # Loop through the user's path and test for each of PROGNAME-LIST 4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_prog in sed gsed; do 4089 for ac_exec_ext in '' $ac_executable_extensions; do 4090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4091 as_fn_executable_p "$ac_path_SED" || continue 4092# Check for GNU ac_path_SED and select it if it is found. 4093 # Check for GNU $ac_path_SED 4094case `"$ac_path_SED" --version 2>&1` in 4095*GNU*) 4096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4097*) 4098 ac_count=0 4099 $as_echo_n 0123456789 >"conftest.in" 4100 while : 4101 do 4102 cat "conftest.in" "conftest.in" >"conftest.tmp" 4103 mv "conftest.tmp" "conftest.in" 4104 cp "conftest.in" "conftest.nl" 4105 $as_echo '' >> "conftest.nl" 4106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4108 as_fn_arith $ac_count + 1 && ac_count=$as_val 4109 if test $ac_count -gt ${ac_path_SED_max-0}; then 4110 # Best one so far, save it but keep looking for a better one 4111 ac_cv_path_SED="$ac_path_SED" 4112 ac_path_SED_max=$ac_count 4113 fi 4114 # 10*(2^10) chars as input seems more than enough 4115 test $ac_count -gt 10 && break 4116 done 4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4118esac 4119 4120 $ac_path_SED_found && break 3 4121 done 4122 done 4123 done 4124IFS=$as_save_IFS 4125 if test -z "$ac_cv_path_SED"; then 4126 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4127 fi 4128else 4129 ac_cv_path_SED=$SED 4130fi 4131 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4134$as_echo "$ac_cv_path_SED" >&6; } 4135 SED="$ac_cv_path_SED" 4136 rm -f conftest.sed 4137 4138test -z "$SED" && SED=sed 4139Xsed="$SED -e 1s/^X//" 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4152$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4153if ${ac_cv_path_GREP+:} false; then : 4154 $as_echo_n "(cached) " >&6 4155else 4156 if test -z "$GREP"; then 4157 ac_path_GREP_found=false 4158 # Loop through the user's path and test for each of PROGNAME-LIST 4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4160for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4161do 4162 IFS=$as_save_IFS 4163 test -z "$as_dir" && as_dir=. 4164 for ac_prog in grep ggrep; do 4165 for ac_exec_ext in '' $ac_executable_extensions; do 4166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4167 as_fn_executable_p "$ac_path_GREP" || continue 4168# Check for GNU ac_path_GREP and select it if it is found. 4169 # Check for GNU $ac_path_GREP 4170case `"$ac_path_GREP" --version 2>&1` in 4171*GNU*) 4172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4173*) 4174 ac_count=0 4175 $as_echo_n 0123456789 >"conftest.in" 4176 while : 4177 do 4178 cat "conftest.in" "conftest.in" >"conftest.tmp" 4179 mv "conftest.tmp" "conftest.in" 4180 cp "conftest.in" "conftest.nl" 4181 $as_echo 'GREP' >> "conftest.nl" 4182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4184 as_fn_arith $ac_count + 1 && ac_count=$as_val 4185 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4186 # Best one so far, save it but keep looking for a better one 4187 ac_cv_path_GREP="$ac_path_GREP" 4188 ac_path_GREP_max=$ac_count 4189 fi 4190 # 10*(2^10) chars as input seems more than enough 4191 test $ac_count -gt 10 && break 4192 done 4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4194esac 4195 4196 $ac_path_GREP_found && break 3 4197 done 4198 done 4199 done 4200IFS=$as_save_IFS 4201 if test -z "$ac_cv_path_GREP"; then 4202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4203 fi 4204else 4205 ac_cv_path_GREP=$GREP 4206fi 4207 4208fi 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4210$as_echo "$ac_cv_path_GREP" >&6; } 4211 GREP="$ac_cv_path_GREP" 4212 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4215$as_echo_n "checking for egrep... " >&6; } 4216if ${ac_cv_path_EGREP+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4220 then ac_cv_path_EGREP="$GREP -E" 4221 else 4222 if test -z "$EGREP"; then 4223 ac_path_EGREP_found=false 4224 # Loop through the user's path and test for each of PROGNAME-LIST 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_prog in egrep; do 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4233 as_fn_executable_p "$ac_path_EGREP" || continue 4234# Check for GNU ac_path_EGREP and select it if it is found. 4235 # Check for GNU $ac_path_EGREP 4236case `"$ac_path_EGREP" --version 2>&1` in 4237*GNU*) 4238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4239*) 4240 ac_count=0 4241 $as_echo_n 0123456789 >"conftest.in" 4242 while : 4243 do 4244 cat "conftest.in" "conftest.in" >"conftest.tmp" 4245 mv "conftest.tmp" "conftest.in" 4246 cp "conftest.in" "conftest.nl" 4247 $as_echo 'EGREP' >> "conftest.nl" 4248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4250 as_fn_arith $ac_count + 1 && ac_count=$as_val 4251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4252 # Best one so far, save it but keep looking for a better one 4253 ac_cv_path_EGREP="$ac_path_EGREP" 4254 ac_path_EGREP_max=$ac_count 4255 fi 4256 # 10*(2^10) chars as input seems more than enough 4257 test $ac_count -gt 10 && break 4258 done 4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4260esac 4261 4262 $ac_path_EGREP_found && break 3 4263 done 4264 done 4265 done 4266IFS=$as_save_IFS 4267 if test -z "$ac_cv_path_EGREP"; then 4268 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4269 fi 4270else 4271 ac_cv_path_EGREP=$EGREP 4272fi 4273 4274 fi 4275fi 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4277$as_echo "$ac_cv_path_EGREP" >&6; } 4278 EGREP="$ac_cv_path_EGREP" 4279 4280 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4282$as_echo_n "checking for fgrep... " >&6; } 4283if ${ac_cv_path_FGREP+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4287 then ac_cv_path_FGREP="$GREP -F" 4288 else 4289 if test -z "$FGREP"; then 4290 ac_path_FGREP_found=false 4291 # Loop through the user's path and test for each of PROGNAME-LIST 4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4294do 4295 IFS=$as_save_IFS 4296 test -z "$as_dir" && as_dir=. 4297 for ac_prog in fgrep; do 4298 for ac_exec_ext in '' $ac_executable_extensions; do 4299 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4300 as_fn_executable_p "$ac_path_FGREP" || continue 4301# Check for GNU ac_path_FGREP and select it if it is found. 4302 # Check for GNU $ac_path_FGREP 4303case `"$ac_path_FGREP" --version 2>&1` in 4304*GNU*) 4305 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4306*) 4307 ac_count=0 4308 $as_echo_n 0123456789 >"conftest.in" 4309 while : 4310 do 4311 cat "conftest.in" "conftest.in" >"conftest.tmp" 4312 mv "conftest.tmp" "conftest.in" 4313 cp "conftest.in" "conftest.nl" 4314 $as_echo 'FGREP' >> "conftest.nl" 4315 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4317 as_fn_arith $ac_count + 1 && ac_count=$as_val 4318 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4319 # Best one so far, save it but keep looking for a better one 4320 ac_cv_path_FGREP="$ac_path_FGREP" 4321 ac_path_FGREP_max=$ac_count 4322 fi 4323 # 10*(2^10) chars as input seems more than enough 4324 test $ac_count -gt 10 && break 4325 done 4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4327esac 4328 4329 $ac_path_FGREP_found && break 3 4330 done 4331 done 4332 done 4333IFS=$as_save_IFS 4334 if test -z "$ac_cv_path_FGREP"; then 4335 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4336 fi 4337else 4338 ac_cv_path_FGREP=$FGREP 4339fi 4340 4341 fi 4342fi 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4344$as_echo "$ac_cv_path_FGREP" >&6; } 4345 FGREP="$ac_cv_path_FGREP" 4346 4347 4348test -z "$GREP" && GREP=grep 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368# Check whether --with-gnu-ld was given. 4369if test "${with_gnu_ld+set}" = set; then : 4370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4371else 4372 with_gnu_ld=no 4373fi 4374 4375ac_prog=ld 4376if test "$GCC" = yes; then 4377 # Check if gcc -print-prog-name=ld gives a path. 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4379$as_echo_n "checking for ld used by $CC... " >&6; } 4380 case $host in 4381 *-*-mingw*) 4382 # gcc leaves a trailing carriage return which upsets mingw 4383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4384 *) 4385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4386 esac 4387 case $ac_prog in 4388 # Accept absolute paths. 4389 [\\/]* | ?:[\\/]*) 4390 re_direlt='/[^/][^/]*/\.\./' 4391 # Canonicalize the pathname of ld 4392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4395 done 4396 test -z "$LD" && LD="$ac_prog" 4397 ;; 4398 "") 4399 # If it fails, then pretend we aren't using GCC. 4400 ac_prog=ld 4401 ;; 4402 *) 4403 # If it is relative, then search for the first ld in PATH. 4404 with_gnu_ld=unknown 4405 ;; 4406 esac 4407elif test "$with_gnu_ld" = yes; then 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4409$as_echo_n "checking for GNU ld... " >&6; } 4410else 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4412$as_echo_n "checking for non-GNU ld... " >&6; } 4413fi 4414if ${lt_cv_path_LD+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -z "$LD"; then 4418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4419 for ac_dir in $PATH; do 4420 IFS="$lt_save_ifs" 4421 test -z "$ac_dir" && ac_dir=. 4422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4423 lt_cv_path_LD="$ac_dir/$ac_prog" 4424 # Check to see if the program is GNU ld. I'd rather use --version, 4425 # but apparently some variants of GNU ld only accept -v. 4426 # Break only if it was the GNU/non-GNU ld that we prefer. 4427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4428 *GNU* | *'with BFD'*) 4429 test "$with_gnu_ld" != no && break 4430 ;; 4431 *) 4432 test "$with_gnu_ld" != yes && break 4433 ;; 4434 esac 4435 fi 4436 done 4437 IFS="$lt_save_ifs" 4438else 4439 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4440fi 4441fi 4442 4443LD="$lt_cv_path_LD" 4444if test -n "$LD"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4446$as_echo "$LD" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4453$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4454if ${lt_cv_prog_gnu_ld+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4458case `$LD -v 2>&1 </dev/null` in 4459*GNU* | *'with BFD'*) 4460 lt_cv_prog_gnu_ld=yes 4461 ;; 4462*) 4463 lt_cv_prog_gnu_ld=no 4464 ;; 4465esac 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4468$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4469with_gnu_ld=$lt_cv_prog_gnu_ld 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4480$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4481if ${lt_cv_path_NM+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -n "$NM"; then 4485 # Let the user override the test. 4486 lt_cv_path_NM="$NM" 4487else 4488 lt_nm_to_check="${ac_tool_prefix}nm" 4489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4490 lt_nm_to_check="$lt_nm_to_check nm" 4491 fi 4492 for lt_tmp_nm in $lt_nm_to_check; do 4493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4495 IFS="$lt_save_ifs" 4496 test -z "$ac_dir" && ac_dir=. 4497 tmp_nm="$ac_dir/$lt_tmp_nm" 4498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4499 # Check to see if the nm accepts a BSD-compat flag. 4500 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4501 # nm: unknown option "B" ignored 4502 # Tru64's nm complains that /dev/null is an invalid object file 4503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4504 */dev/null* | *'Invalid file or object type'*) 4505 lt_cv_path_NM="$tmp_nm -B" 4506 break 4507 ;; 4508 *) 4509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4510 */dev/null*) 4511 lt_cv_path_NM="$tmp_nm -p" 4512 break 4513 ;; 4514 *) 4515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4516 continue # so that we can try to find one that supports BSD flags 4517 ;; 4518 esac 4519 ;; 4520 esac 4521 fi 4522 done 4523 IFS="$lt_save_ifs" 4524 done 4525 : ${lt_cv_path_NM=no} 4526fi 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4529$as_echo "$lt_cv_path_NM" >&6; } 4530if test "$lt_cv_path_NM" != "no"; then 4531 NM="$lt_cv_path_NM" 4532else 4533 # Didn't find any BSD compatible name lister, look for dumpbin. 4534 if test -n "$DUMPBIN"; then : 4535 # Let the user override the test. 4536 else 4537 if test -n "$ac_tool_prefix"; then 4538 for ac_prog in dumpbin "link -dump" 4539 do 4540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4541set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4543$as_echo_n "checking for $ac_word... " >&6; } 4544if ${ac_cv_prog_DUMPBIN+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 if test -n "$DUMPBIN"; then 4548 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4549else 4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551for as_dir in $PATH 4552do 4553 IFS=$as_save_IFS 4554 test -z "$as_dir" && as_dir=. 4555 for ac_exec_ext in '' $ac_executable_extensions; do 4556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4559 break 2 4560 fi 4561done 4562 done 4563IFS=$as_save_IFS 4564 4565fi 4566fi 4567DUMPBIN=$ac_cv_prog_DUMPBIN 4568if test -n "$DUMPBIN"; then 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4570$as_echo "$DUMPBIN" >&6; } 4571else 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4573$as_echo "no" >&6; } 4574fi 4575 4576 4577 test -n "$DUMPBIN" && break 4578 done 4579fi 4580if test -z "$DUMPBIN"; then 4581 ac_ct_DUMPBIN=$DUMPBIN 4582 for ac_prog in dumpbin "link -dump" 4583do 4584 # Extract the first word of "$ac_prog", so it can be a program name with args. 4585set dummy $ac_prog; ac_word=$2 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4587$as_echo_n "checking for $ac_word... " >&6; } 4588if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test -n "$ac_ct_DUMPBIN"; then 4592 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4593else 4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH 4596do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605done 4606 done 4607IFS=$as_save_IFS 4608 4609fi 4610fi 4611ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4612if test -n "$ac_ct_DUMPBIN"; then 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4614$as_echo "$ac_ct_DUMPBIN" >&6; } 4615else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4617$as_echo "no" >&6; } 4618fi 4619 4620 4621 test -n "$ac_ct_DUMPBIN" && break 4622done 4623 4624 if test "x$ac_ct_DUMPBIN" = x; then 4625 DUMPBIN=":" 4626 else 4627 case $cross_compiling:$ac_tool_warned in 4628yes:) 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4631ac_tool_warned=yes ;; 4632esac 4633 DUMPBIN=$ac_ct_DUMPBIN 4634 fi 4635fi 4636 4637 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4638 *COFF*) 4639 DUMPBIN="$DUMPBIN -symbols" 4640 ;; 4641 *) 4642 DUMPBIN=: 4643 ;; 4644 esac 4645 fi 4646 4647 if test "$DUMPBIN" != ":"; then 4648 NM="$DUMPBIN" 4649 fi 4650fi 4651test -z "$NM" && NM=nm 4652 4653 4654 4655 4656 4657 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4659$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4660if ${lt_cv_nm_interface+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 lt_cv_nm_interface="BSD nm" 4664 echo "int some_variable = 0;" > conftest.$ac_ext 4665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4666 (eval "$ac_compile" 2>conftest.err) 4667 cat conftest.err >&5 4668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4670 cat conftest.err >&5 4671 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4672 cat conftest.out >&5 4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4674 lt_cv_nm_interface="MS dumpbin" 4675 fi 4676 rm -f conftest* 4677fi 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4679$as_echo "$lt_cv_nm_interface" >&6; } 4680 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4682$as_echo_n "checking whether ln -s works... " >&6; } 4683LN_S=$as_ln_s 4684if test "$LN_S" = "ln -s"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4686$as_echo "yes" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4689$as_echo "no, using $LN_S" >&6; } 4690fi 4691 4692# find the maximum length of command line arguments 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4694$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4695if ${lt_cv_sys_max_cmd_len+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 i=0 4699 teststring="ABCD" 4700 4701 case $build_os in 4702 msdosdjgpp*) 4703 # On DJGPP, this test can blow up pretty badly due to problems in libc 4704 # (any single argument exceeding 2000 bytes causes a buffer overrun 4705 # during glob expansion). Even if it were fixed, the result of this 4706 # check would be larger than it should be. 4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4708 ;; 4709 4710 gnu*) 4711 # Under GNU Hurd, this test is not required because there is 4712 # no limit to the length of command line arguments. 4713 # Libtool will interpret -1 as no limit whatsoever 4714 lt_cv_sys_max_cmd_len=-1; 4715 ;; 4716 4717 cygwin* | mingw* | cegcc*) 4718 # On Win9x/ME, this test blows up -- it succeeds, but takes 4719 # about 5 minutes as the teststring grows exponentially. 4720 # Worse, since 9x/ME are not pre-emptively multitasking, 4721 # you end up with a "frozen" computer, even though with patience 4722 # the test eventually succeeds (with a max line length of 256k). 4723 # Instead, let's just punt: use the minimum linelength reported by 4724 # all of the supported platforms: 8192 (on NT/2K/XP). 4725 lt_cv_sys_max_cmd_len=8192; 4726 ;; 4727 4728 mint*) 4729 # On MiNT this can take a long time and run out of memory. 4730 lt_cv_sys_max_cmd_len=8192; 4731 ;; 4732 4733 amigaos*) 4734 # On AmigaOS with pdksh, this test takes hours, literally. 4735 # So we just punt and use a minimum line length of 8192. 4736 lt_cv_sys_max_cmd_len=8192; 4737 ;; 4738 4739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4740 # This has been around since 386BSD, at least. Likely further. 4741 if test -x /sbin/sysctl; then 4742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4743 elif test -x /usr/sbin/sysctl; then 4744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4745 else 4746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4747 fi 4748 # And add a safety zone 4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4751 ;; 4752 4753 interix*) 4754 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4755 lt_cv_sys_max_cmd_len=196608 4756 ;; 4757 4758 os2*) 4759 # The test takes a long time on OS/2. 4760 lt_cv_sys_max_cmd_len=8192 4761 ;; 4762 4763 osf*) 4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4766 # nice to cause kernel panics so lets avoid the loop below. 4767 # First set a reasonable default. 4768 lt_cv_sys_max_cmd_len=16384 4769 # 4770 if test -x /sbin/sysconfig; then 4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4772 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4773 esac 4774 fi 4775 ;; 4776 sco3.2v5*) 4777 lt_cv_sys_max_cmd_len=102400 4778 ;; 4779 sysv5* | sco5v6* | sysv4.2uw2*) 4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4781 if test -n "$kargmax"; then 4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4783 else 4784 lt_cv_sys_max_cmd_len=32768 4785 fi 4786 ;; 4787 *) 4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4789 if test -n "$lt_cv_sys_max_cmd_len" && \ 4790 test undefined != "$lt_cv_sys_max_cmd_len"; then 4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4793 else 4794 # Make teststring a little bigger before we do anything with it. 4795 # a 1K string should be a reasonable start. 4796 for i in 1 2 3 4 5 6 7 8 ; do 4797 teststring=$teststring$teststring 4798 done 4799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4800 # If test is not a shell built-in, we'll probably end up computing a 4801 # maximum length that is only half of the actual maximum length, but 4802 # we can't tell. 4803 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4804 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4805 test $i != 17 # 1/2 MB should be enough 4806 do 4807 i=`expr $i + 1` 4808 teststring=$teststring$teststring 4809 done 4810 # Only check the string length outside the loop. 4811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4812 teststring= 4813 # Add a significant safety factor because C++ compilers can tack on 4814 # massive amounts of additional arguments before passing them to the 4815 # linker. It appears as though 1/2 is a usable value. 4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4817 fi 4818 ;; 4819 esac 4820 4821fi 4822 4823if test -n $lt_cv_sys_max_cmd_len ; then 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4825$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4826else 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4828$as_echo "none" >&6; } 4829fi 4830max_cmd_len=$lt_cv_sys_max_cmd_len 4831 4832 4833 4834 4835 4836 4837: ${CP="cp -f"} 4838: ${MV="mv -f"} 4839: ${RM="rm -f"} 4840 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4842$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4843# Try some XSI features 4844xsi_shell=no 4845( _lt_dummy="a/b/c" 4846 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4847 = c,a/b,b/c, \ 4848 && eval 'test $(( 1 + 1 )) -eq 2 \ 4849 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4850 && xsi_shell=yes 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4852$as_echo "$xsi_shell" >&6; } 4853 4854 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4856$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4857lt_shell_append=no 4858( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4859 >/dev/null 2>&1 \ 4860 && lt_shell_append=yes 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4862$as_echo "$lt_shell_append" >&6; } 4863 4864 4865if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4866 lt_unset=unset 4867else 4868 lt_unset=false 4869fi 4870 4871 4872 4873 4874 4875# test EBCDIC or ASCII 4876case `echo X|tr X '\101'` in 4877 A) # ASCII based system 4878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4879 lt_SP2NL='tr \040 \012' 4880 lt_NL2SP='tr \015\012 \040\040' 4881 ;; 4882 *) # EBCDIC based system 4883 lt_SP2NL='tr \100 \n' 4884 lt_NL2SP='tr \r\n \100\100' 4885 ;; 4886esac 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4897$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4898if ${lt_cv_to_host_file_cmd+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 case $host in 4902 *-*-mingw* ) 4903 case $build in 4904 *-*-mingw* ) # actually msys 4905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4906 ;; 4907 *-*-cygwin* ) 4908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4909 ;; 4910 * ) # otherwise, assume *nix 4911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4912 ;; 4913 esac 4914 ;; 4915 *-*-cygwin* ) 4916 case $build in 4917 *-*-mingw* ) # actually msys 4918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4919 ;; 4920 *-*-cygwin* ) 4921 lt_cv_to_host_file_cmd=func_convert_file_noop 4922 ;; 4923 * ) # otherwise, assume *nix 4924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4925 ;; 4926 esac 4927 ;; 4928 * ) # unhandled hosts (and "normal" native builds) 4929 lt_cv_to_host_file_cmd=func_convert_file_noop 4930 ;; 4931esac 4932 4933fi 4934 4935to_host_file_cmd=$lt_cv_to_host_file_cmd 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4937$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4938 4939 4940 4941 4942 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4944$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4945if ${lt_cv_to_tool_file_cmd+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 #assume ordinary cross tools, or native build. 4949lt_cv_to_tool_file_cmd=func_convert_file_noop 4950case $host in 4951 *-*-mingw* ) 4952 case $build in 4953 *-*-mingw* ) # actually msys 4954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4955 ;; 4956 esac 4957 ;; 4958esac 4959 4960fi 4961 4962to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4964$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4965 4966 4967 4968 4969 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4971$as_echo_n "checking for $LD option to reload object files... " >&6; } 4972if ${lt_cv_ld_reload_flag+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 lt_cv_ld_reload_flag='-r' 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4978$as_echo "$lt_cv_ld_reload_flag" >&6; } 4979reload_flag=$lt_cv_ld_reload_flag 4980case $reload_flag in 4981"" | " "*) ;; 4982*) reload_flag=" $reload_flag" ;; 4983esac 4984reload_cmds='$LD$reload_flag -o $output$reload_objs' 4985case $host_os in 4986 cygwin* | mingw* | pw32* | cegcc*) 4987 if test "$GCC" != yes; then 4988 reload_cmds=false 4989 fi 4990 ;; 4991 darwin*) 4992 if test "$GCC" = yes; then 4993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4994 else 4995 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4996 fi 4997 ;; 4998esac 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008if test -n "$ac_tool_prefix"; then 5009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5010set dummy ${ac_tool_prefix}objdump; ac_word=$2 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5012$as_echo_n "checking for $ac_word... " >&6; } 5013if ${ac_cv_prog_OBJDUMP+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 if test -n "$OBJDUMP"; then 5017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5018else 5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020for as_dir in $PATH 5021do 5022 IFS=$as_save_IFS 5023 test -z "$as_dir" && as_dir=. 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030done 5031 done 5032IFS=$as_save_IFS 5033 5034fi 5035fi 5036OBJDUMP=$ac_cv_prog_OBJDUMP 5037if test -n "$OBJDUMP"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5039$as_echo "$OBJDUMP" >&6; } 5040else 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042$as_echo "no" >&6; } 5043fi 5044 5045 5046fi 5047if test -z "$ac_cv_prog_OBJDUMP"; then 5048 ac_ct_OBJDUMP=$OBJDUMP 5049 # Extract the first word of "objdump", so it can be a program name with args. 5050set dummy objdump; ac_word=$2 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5052$as_echo_n "checking for $ac_word... " >&6; } 5053if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5054 $as_echo_n "(cached) " >&6 5055else 5056 if test -n "$ac_ct_OBJDUMP"; then 5057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5058else 5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5060for as_dir in $PATH 5061do 5062 IFS=$as_save_IFS 5063 test -z "$as_dir" && as_dir=. 5064 for ac_exec_ext in '' $ac_executable_extensions; do 5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5066 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5068 break 2 5069 fi 5070done 5071 done 5072IFS=$as_save_IFS 5073 5074fi 5075fi 5076ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5077if test -n "$ac_ct_OBJDUMP"; then 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5079$as_echo "$ac_ct_OBJDUMP" >&6; } 5080else 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082$as_echo "no" >&6; } 5083fi 5084 5085 if test "x$ac_ct_OBJDUMP" = x; then 5086 OBJDUMP="false" 5087 else 5088 case $cross_compiling:$ac_tool_warned in 5089yes:) 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5092ac_tool_warned=yes ;; 5093esac 5094 OBJDUMP=$ac_ct_OBJDUMP 5095 fi 5096else 5097 OBJDUMP="$ac_cv_prog_OBJDUMP" 5098fi 5099 5100test -z "$OBJDUMP" && OBJDUMP=objdump 5101 5102 5103 5104 5105 5106 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5108$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5109if ${lt_cv_deplibs_check_method+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 lt_cv_file_magic_cmd='$MAGIC_CMD' 5113lt_cv_file_magic_test_file= 5114lt_cv_deplibs_check_method='unknown' 5115# Need to set the preceding variable on all platforms that support 5116# interlibrary dependencies. 5117# 'none' -- dependencies not supported. 5118# `unknown' -- same as none, but documents that we really don't know. 5119# 'pass_all' -- all dependencies passed with no checks. 5120# 'test_compile' -- check by making test program. 5121# 'file_magic [[regex]]' -- check by looking for files in library path 5122# which responds to the $file_magic_cmd with a given extended regex. 5123# If you have `file' or equivalent on your system and you're not sure 5124# whether `pass_all' will *always* work, you probably want this one. 5125 5126case $host_os in 5127aix[4-9]*) 5128 lt_cv_deplibs_check_method=pass_all 5129 ;; 5130 5131beos*) 5132 lt_cv_deplibs_check_method=pass_all 5133 ;; 5134 5135bsdi[45]*) 5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5137 lt_cv_file_magic_cmd='/usr/bin/file -L' 5138 lt_cv_file_magic_test_file=/shlib/libc.so 5139 ;; 5140 5141cygwin*) 5142 # func_win32_libid is a shell function defined in ltmain.sh 5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5144 lt_cv_file_magic_cmd='func_win32_libid' 5145 ;; 5146 5147mingw* | pw32*) 5148 # Base MSYS/MinGW do not provide the 'file' command needed by 5149 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5150 # unless we find 'file', for example because we are cross-compiling. 5151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5154 lt_cv_file_magic_cmd='func_win32_libid' 5155 else 5156 # Keep this pattern in sync with the one in func_win32_libid. 5157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5158 lt_cv_file_magic_cmd='$OBJDUMP -f' 5159 fi 5160 ;; 5161 5162cegcc*) 5163 # use the weaker test based on 'objdump'. See mingw*. 5164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5165 lt_cv_file_magic_cmd='$OBJDUMP -f' 5166 ;; 5167 5168darwin* | rhapsody*) 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 5172freebsd* | dragonfly*) 5173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5174 case $host_cpu in 5175 i*86 ) 5176 # Not sure whether the presence of OpenBSD here was a mistake. 5177 # Let's accept both of them until this is cleared up. 5178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5179 lt_cv_file_magic_cmd=/usr/bin/file 5180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5181 ;; 5182 esac 5183 else 5184 lt_cv_deplibs_check_method=pass_all 5185 fi 5186 ;; 5187 5188haiku*) 5189 lt_cv_deplibs_check_method=pass_all 5190 ;; 5191 5192hpux10.20* | hpux11*) 5193 lt_cv_file_magic_cmd=/usr/bin/file 5194 case $host_cpu in 5195 ia64*) 5196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5198 ;; 5199 hppa*64*) 5200 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]' 5201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5202 ;; 5203 *) 5204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5205 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5206 ;; 5207 esac 5208 ;; 5209 5210interix[3-9]*) 5211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5213 ;; 5214 5215irix5* | irix6* | nonstopux*) 5216 case $LD in 5217 *-32|*"-32 ") libmagic=32-bit;; 5218 *-n32|*"-n32 ") libmagic=N32;; 5219 *-64|*"-64 ") libmagic=64-bit;; 5220 *) libmagic=never-match;; 5221 esac 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225# This must be glibc/ELF. 5226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230netbsd* | netbsdelf*-gnu) 5231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5233 else 5234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5235 fi 5236 ;; 5237 5238newos6*) 5239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5240 lt_cv_file_magic_cmd=/usr/bin/file 5241 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5242 ;; 5243 5244*nto* | *qnx*) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 5248openbsd*) 5249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5251 else 5252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5253 fi 5254 ;; 5255 5256osf3* | osf4* | osf5*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260rdos*) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263 5264solaris*) 5265 lt_cv_deplibs_check_method=pass_all 5266 ;; 5267 5268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 5272sysv4 | sysv4.3*) 5273 case $host_vendor in 5274 motorola) 5275 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]' 5276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5277 ;; 5278 ncr) 5279 lt_cv_deplibs_check_method=pass_all 5280 ;; 5281 sequent) 5282 lt_cv_file_magic_cmd='/bin/file' 5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5284 ;; 5285 sni) 5286 lt_cv_file_magic_cmd='/bin/file' 5287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5288 lt_cv_file_magic_test_file=/lib/libc.so 5289 ;; 5290 siemens) 5291 lt_cv_deplibs_check_method=pass_all 5292 ;; 5293 pc) 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 esac 5297 ;; 5298 5299tpf*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302esac 5303 5304fi 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5306$as_echo "$lt_cv_deplibs_check_method" >&6; } 5307 5308file_magic_glob= 5309want_nocaseglob=no 5310if test "$build" = "$host"; then 5311 case $host_os in 5312 mingw* | pw32*) 5313 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5314 want_nocaseglob=yes 5315 else 5316 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5317 fi 5318 ;; 5319 esac 5320fi 5321 5322file_magic_cmd=$lt_cv_file_magic_cmd 5323deplibs_check_method=$lt_cv_deplibs_check_method 5324test -z "$deplibs_check_method" && deplibs_check_method=unknown 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347if test -n "$ac_tool_prefix"; then 5348 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5349set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351$as_echo_n "checking for $ac_word... " >&6; } 5352if ${ac_cv_prog_DLLTOOL+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 if test -n "$DLLTOOL"; then 5356 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5357else 5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5359for as_dir in $PATH 5360do 5361 IFS=$as_save_IFS 5362 test -z "$as_dir" && as_dir=. 5363 for ac_exec_ext in '' $ac_executable_extensions; do 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5365 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5367 break 2 5368 fi 5369done 5370 done 5371IFS=$as_save_IFS 5372 5373fi 5374fi 5375DLLTOOL=$ac_cv_prog_DLLTOOL 5376if test -n "$DLLTOOL"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5378$as_echo "$DLLTOOL" >&6; } 5379else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381$as_echo "no" >&6; } 5382fi 5383 5384 5385fi 5386if test -z "$ac_cv_prog_DLLTOOL"; then 5387 ac_ct_DLLTOOL=$DLLTOOL 5388 # Extract the first word of "dlltool", so it can be a program name with args. 5389set dummy dlltool; ac_word=$2 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5391$as_echo_n "checking for $ac_word... " >&6; } 5392if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 if test -n "$ac_ct_DLLTOOL"; then 5396 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5397else 5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399for as_dir in $PATH 5400do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5405 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5407 break 2 5408 fi 5409done 5410 done 5411IFS=$as_save_IFS 5412 5413fi 5414fi 5415ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5416if test -n "$ac_ct_DLLTOOL"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5418$as_echo "$ac_ct_DLLTOOL" >&6; } 5419else 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5421$as_echo "no" >&6; } 5422fi 5423 5424 if test "x$ac_ct_DLLTOOL" = x; then 5425 DLLTOOL="false" 5426 else 5427 case $cross_compiling:$ac_tool_warned in 5428yes:) 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5431ac_tool_warned=yes ;; 5432esac 5433 DLLTOOL=$ac_ct_DLLTOOL 5434 fi 5435else 5436 DLLTOOL="$ac_cv_prog_DLLTOOL" 5437fi 5438 5439test -z "$DLLTOOL" && DLLTOOL=dlltool 5440 5441 5442 5443 5444 5445 5446 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5448$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5449if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 lt_cv_sharedlib_from_linklib_cmd='unknown' 5453 5454case $host_os in 5455cygwin* | mingw* | pw32* | cegcc*) 5456 # two different shell functions defined in ltmain.sh 5457 # decide which to use based on capabilities of $DLLTOOL 5458 case `$DLLTOOL --help 2>&1` in 5459 *--identify-strict*) 5460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5461 ;; 5462 *) 5463 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5464 ;; 5465 esac 5466 ;; 5467*) 5468 # fallback: assume linklib IS sharedlib 5469 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5470 ;; 5471esac 5472 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5475$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5476sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5477test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5478 5479 5480 5481 5482 5483 5484 5485 5486if test -n "$ac_tool_prefix"; then 5487 for ac_prog in ar 5488 do 5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5490set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if ${ac_cv_prog_AR+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 if test -n "$AR"; then 5497 ac_cv_prog_AR="$AR" # Let the user override the test. 5498else 5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5500for as_dir in $PATH 5501do 5502 IFS=$as_save_IFS 5503 test -z "$as_dir" && as_dir=. 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5506 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5508 break 2 5509 fi 5510done 5511 done 5512IFS=$as_save_IFS 5513 5514fi 5515fi 5516AR=$ac_cv_prog_AR 5517if test -n "$AR"; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5519$as_echo "$AR" >&6; } 5520else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523fi 5524 5525 5526 test -n "$AR" && break 5527 done 5528fi 5529if test -z "$AR"; then 5530 ac_ct_AR=$AR 5531 for ac_prog in ar 5532do 5533 # Extract the first word of "$ac_prog", so it can be a program name with args. 5534set dummy $ac_prog; ac_word=$2 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5536$as_echo_n "checking for $ac_word... " >&6; } 5537if ${ac_cv_prog_ac_ct_AR+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 if test -n "$ac_ct_AR"; then 5541 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 test -z "$as_dir" && as_dir=. 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5550 ac_cv_prog_ac_ct_AR="$ac_prog" 5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5552 break 2 5553 fi 5554done 5555 done 5556IFS=$as_save_IFS 5557 5558fi 5559fi 5560ac_ct_AR=$ac_cv_prog_ac_ct_AR 5561if test -n "$ac_ct_AR"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5563$as_echo "$ac_ct_AR" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567fi 5568 5569 5570 test -n "$ac_ct_AR" && break 5571done 5572 5573 if test "x$ac_ct_AR" = x; then 5574 AR="false" 5575 else 5576 case $cross_compiling:$ac_tool_warned in 5577yes:) 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5580ac_tool_warned=yes ;; 5581esac 5582 AR=$ac_ct_AR 5583 fi 5584fi 5585 5586: ${AR=ar} 5587: ${AR_FLAGS=cru} 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5600$as_echo_n "checking for archiver @FILE support... " >&6; } 5601if ${lt_cv_ar_at_file+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 lt_cv_ar_at_file=no 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607 5608int 5609main () 5610{ 5611 5612 ; 5613 return 0; 5614} 5615_ACEOF 5616if ac_fn_c_try_compile "$LINENO"; then : 5617 echo conftest.$ac_objext > conftest.lst 5618 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5620 (eval $lt_ar_try) 2>&5 5621 ac_status=$? 5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5623 test $ac_status = 0; } 5624 if test "$ac_status" -eq 0; then 5625 # Ensure the archiver fails upon bogus file names. 5626 rm -f conftest.$ac_objext libconftest.a 5627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5628 (eval $lt_ar_try) 2>&5 5629 ac_status=$? 5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5631 test $ac_status = 0; } 5632 if test "$ac_status" -ne 0; then 5633 lt_cv_ar_at_file=@ 5634 fi 5635 fi 5636 rm -f conftest.* libconftest.a 5637 5638fi 5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5640 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5643$as_echo "$lt_cv_ar_at_file" >&6; } 5644 5645if test "x$lt_cv_ar_at_file" = xno; then 5646 archiver_list_spec= 5647else 5648 archiver_list_spec=$lt_cv_ar_at_file 5649fi 5650 5651 5652 5653 5654 5655 5656 5657if test -n "$ac_tool_prefix"; then 5658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5659set dummy ${ac_tool_prefix}strip; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_STRIP+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$STRIP"; then 5666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685STRIP=$ac_cv_prog_STRIP 5686if test -n "$STRIP"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5688$as_echo "$STRIP" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695fi 5696if test -z "$ac_cv_prog_STRIP"; then 5697 ac_ct_STRIP=$STRIP 5698 # Extract the first word of "strip", so it can be a program name with args. 5699set dummy strip; ac_word=$2 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5701$as_echo_n "checking for $ac_word... " >&6; } 5702if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 if test -n "$ac_ct_STRIP"; then 5706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5707else 5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5709for as_dir in $PATH 5710do 5711 IFS=$as_save_IFS 5712 test -z "$as_dir" && as_dir=. 5713 for ac_exec_ext in '' $ac_executable_extensions; do 5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5715 ac_cv_prog_ac_ct_STRIP="strip" 5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5717 break 2 5718 fi 5719done 5720 done 5721IFS=$as_save_IFS 5722 5723fi 5724fi 5725ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5726if test -n "$ac_ct_STRIP"; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5728$as_echo "$ac_ct_STRIP" >&6; } 5729else 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5731$as_echo "no" >&6; } 5732fi 5733 5734 if test "x$ac_ct_STRIP" = x; then 5735 STRIP=":" 5736 else 5737 case $cross_compiling:$ac_tool_warned in 5738yes:) 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5741ac_tool_warned=yes ;; 5742esac 5743 STRIP=$ac_ct_STRIP 5744 fi 5745else 5746 STRIP="$ac_cv_prog_STRIP" 5747fi 5748 5749test -z "$STRIP" && STRIP=: 5750 5751 5752 5753 5754 5755 5756if test -n "$ac_tool_prefix"; then 5757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5758set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_RANLIB+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$RANLIB"; then 5765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784RANLIB=$ac_cv_prog_RANLIB 5785if test -n "$RANLIB"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5787$as_echo "$RANLIB" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794fi 5795if test -z "$ac_cv_prog_RANLIB"; then 5796 ac_ct_RANLIB=$RANLIB 5797 # Extract the first word of "ranlib", so it can be a program name with args. 5798set dummy ranlib; ac_word=$2 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5800$as_echo_n "checking for $ac_word... " >&6; } 5801if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 if test -n "$ac_ct_RANLIB"; then 5805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5806else 5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808for as_dir in $PATH 5809do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_exec_ext in '' $ac_executable_extensions; do 5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5814 ac_cv_prog_ac_ct_RANLIB="ranlib" 5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5816 break 2 5817 fi 5818done 5819 done 5820IFS=$as_save_IFS 5821 5822fi 5823fi 5824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5825if test -n "$ac_ct_RANLIB"; then 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5827$as_echo "$ac_ct_RANLIB" >&6; } 5828else 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5830$as_echo "no" >&6; } 5831fi 5832 5833 if test "x$ac_ct_RANLIB" = x; then 5834 RANLIB=":" 5835 else 5836 case $cross_compiling:$ac_tool_warned in 5837yes:) 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5840ac_tool_warned=yes ;; 5841esac 5842 RANLIB=$ac_ct_RANLIB 5843 fi 5844else 5845 RANLIB="$ac_cv_prog_RANLIB" 5846fi 5847 5848test -z "$RANLIB" && RANLIB=: 5849 5850 5851 5852 5853 5854 5855# Determine commands to create old-style static archives. 5856old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5857old_postinstall_cmds='chmod 644 $oldlib' 5858old_postuninstall_cmds= 5859 5860if test -n "$RANLIB"; then 5861 case $host_os in 5862 openbsd*) 5863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5864 ;; 5865 *) 5866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5867 ;; 5868 esac 5869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5870fi 5871 5872case $host_os in 5873 darwin*) 5874 lock_old_archive_extraction=yes ;; 5875 *) 5876 lock_old_archive_extraction=no ;; 5877esac 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917# If no C compiler was specified, use CC. 5918LTCC=${LTCC-"$CC"} 5919 5920# If no C compiler flags were specified, use CFLAGS. 5921LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5922 5923# Allow CC to be a program name with arguments. 5924compiler=$CC 5925 5926 5927# Check for command to grab the raw symbol name followed by C symbol from nm. 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5929$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5930if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 5934# These are sane defaults that work on at least a few old systems. 5935# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5936 5937# Character class describing NM global symbol codes. 5938symcode='[BCDEGRST]' 5939 5940# Regexp to match symbols that can be accessed directly from C. 5941sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5942 5943# Define system-specific variables. 5944case $host_os in 5945aix*) 5946 symcode='[BCDT]' 5947 ;; 5948cygwin* | mingw* | pw32* | cegcc*) 5949 symcode='[ABCDGISTW]' 5950 ;; 5951hpux*) 5952 if test "$host_cpu" = ia64; then 5953 symcode='[ABCDEGRST]' 5954 fi 5955 ;; 5956irix* | nonstopux*) 5957 symcode='[BCDEGRST]' 5958 ;; 5959osf*) 5960 symcode='[BCDEGQRST]' 5961 ;; 5962solaris*) 5963 symcode='[BDRT]' 5964 ;; 5965sco3.2v5*) 5966 symcode='[DT]' 5967 ;; 5968sysv4.2uw2*) 5969 symcode='[DT]' 5970 ;; 5971sysv5* | sco5v6* | unixware* | OpenUNIX*) 5972 symcode='[ABDT]' 5973 ;; 5974sysv4) 5975 symcode='[DFNSTU]' 5976 ;; 5977esac 5978 5979# If we're using GNU nm, then use its standard symbol codes. 5980case `$NM -V 2>&1` in 5981*GNU* | *'with BFD'*) 5982 symcode='[ABCDGIRSTW]' ;; 5983esac 5984 5985# Transform an extracted symbol line into a proper C declaration. 5986# Some systems (esp. on ia64) link data and code symbols differently, 5987# so use this general approach. 5988lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5989 5990# Transform an extracted symbol line into symbol name and symbol address 5991lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5993 5994# Handle CRLF in mingw tool chain 5995opt_cr= 5996case $build_os in 5997mingw*) 5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5999 ;; 6000esac 6001 6002# Try without a prefix underscore, then with it. 6003for ac_symprfx in "" "_"; do 6004 6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6006 symxfrm="\\1 $ac_symprfx\\2 \\2" 6007 6008 # Write the raw and C identifiers. 6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6010 # Fake it for dumpbin and say T for any non-static function 6011 # and D for any global variable. 6012 # Also find C++ and __fastcall symbols from MSVC++, 6013 # which start with @ or ?. 6014 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6015" {last_section=section; section=\$ 3};"\ 6016" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6017" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6018" \$ 0!~/External *\|/{next};"\ 6019" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6020" {if(hide[section]) next};"\ 6021" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6022" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6023" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6024" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6025" ' prfx=^$ac_symprfx" 6026 else 6027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6028 fi 6029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6030 6031 # Check to see that the pipe works correctly. 6032 pipe_works=no 6033 6034 rm -f conftest* 6035 cat > conftest.$ac_ext <<_LT_EOF 6036#ifdef __cplusplus 6037extern "C" { 6038#endif 6039char nm_test_var; 6040void nm_test_func(void); 6041void nm_test_func(void){} 6042#ifdef __cplusplus 6043} 6044#endif 6045int main(){nm_test_var='a';nm_test_func();return(0);} 6046_LT_EOF 6047 6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6049 (eval $ac_compile) 2>&5 6050 ac_status=$? 6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6052 test $ac_status = 0; }; then 6053 # Now try to grab the symbols. 6054 nlist=conftest.nm 6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6057 ac_status=$? 6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6059 test $ac_status = 0; } && test -s "$nlist"; then 6060 # Try sorting and uniquifying the output. 6061 if sort "$nlist" | uniq > "$nlist"T; then 6062 mv -f "$nlist"T "$nlist" 6063 else 6064 rm -f "$nlist"T 6065 fi 6066 6067 # Make sure that we snagged all the symbols we need. 6068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6070 cat <<_LT_EOF > conftest.$ac_ext 6071/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6072#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6073/* DATA imports from DLLs on WIN32 con't be const, because runtime 6074 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6075# define LT_DLSYM_CONST 6076#elif defined(__osf__) 6077/* This system does not cope well with relocations in const data. */ 6078# define LT_DLSYM_CONST 6079#else 6080# define LT_DLSYM_CONST const 6081#endif 6082 6083#ifdef __cplusplus 6084extern "C" { 6085#endif 6086 6087_LT_EOF 6088 # Now generate the symbol file. 6089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6090 6091 cat <<_LT_EOF >> conftest.$ac_ext 6092 6093/* The mapping between symbol names and symbols. */ 6094LT_DLSYM_CONST struct { 6095 const char *name; 6096 void *address; 6097} 6098lt__PROGRAM__LTX_preloaded_symbols[] = 6099{ 6100 { "@PROGRAM@", (void *) 0 }, 6101_LT_EOF 6102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6103 cat <<\_LT_EOF >> conftest.$ac_ext 6104 {0, (void *) 0} 6105}; 6106 6107/* This works around a problem in FreeBSD linker */ 6108#ifdef FREEBSD_WORKAROUND 6109static const void *lt_preloaded_setup() { 6110 return lt__PROGRAM__LTX_preloaded_symbols; 6111} 6112#endif 6113 6114#ifdef __cplusplus 6115} 6116#endif 6117_LT_EOF 6118 # Now try linking the two files. 6119 mv conftest.$ac_objext conftstm.$ac_objext 6120 lt_globsym_save_LIBS=$LIBS 6121 lt_globsym_save_CFLAGS=$CFLAGS 6122 LIBS="conftstm.$ac_objext" 6123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6125 (eval $ac_link) 2>&5 6126 ac_status=$? 6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6128 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6129 pipe_works=yes 6130 fi 6131 LIBS=$lt_globsym_save_LIBS 6132 CFLAGS=$lt_globsym_save_CFLAGS 6133 else 6134 echo "cannot find nm_test_func in $nlist" >&5 6135 fi 6136 else 6137 echo "cannot find nm_test_var in $nlist" >&5 6138 fi 6139 else 6140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6141 fi 6142 else 6143 echo "$progname: failed program was:" >&5 6144 cat conftest.$ac_ext >&5 6145 fi 6146 rm -rf conftest* conftst* 6147 6148 # Do not use the global_symbol_pipe unless it works. 6149 if test "$pipe_works" = yes; then 6150 break 6151 else 6152 lt_cv_sys_global_symbol_pipe= 6153 fi 6154done 6155 6156fi 6157 6158if test -z "$lt_cv_sys_global_symbol_pipe"; then 6159 lt_cv_sys_global_symbol_to_cdecl= 6160fi 6161if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6163$as_echo "failed" >&6; } 6164else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6166$as_echo "ok" >&6; } 6167fi 6168 6169# Response file support. 6170if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6171 nm_file_list_spec='@' 6172elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6173 nm_file_list_spec='@' 6174fi 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6203$as_echo_n "checking for sysroot... " >&6; } 6204 6205# Check whether --with-sysroot was given. 6206if test "${with_sysroot+set}" = set; then : 6207 withval=$with_sysroot; 6208else 6209 with_sysroot=no 6210fi 6211 6212 6213lt_sysroot= 6214case ${with_sysroot} in #( 6215 yes) 6216 if test "$GCC" = yes; then 6217 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6218 fi 6219 ;; #( 6220 /*) 6221 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6222 ;; #( 6223 no|'') 6224 ;; #( 6225 *) 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6227$as_echo "${with_sysroot}" >&6; } 6228 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6229 ;; 6230esac 6231 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6233$as_echo "${lt_sysroot:-no}" >&6; } 6234 6235 6236 6237 6238 6239# Check whether --enable-libtool-lock was given. 6240if test "${enable_libtool_lock+set}" = set; then : 6241 enableval=$enable_libtool_lock; 6242fi 6243 6244test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6245 6246# Some flags need to be propagated to the compiler or linker for good 6247# libtool support. 6248case $host in 6249ia64-*-hpux*) 6250 # Find out which ABI we are using. 6251 echo 'int i;' > conftest.$ac_ext 6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6253 (eval $ac_compile) 2>&5 6254 ac_status=$? 6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6256 test $ac_status = 0; }; then 6257 case `/usr/bin/file conftest.$ac_objext` in 6258 *ELF-32*) 6259 HPUX_IA64_MODE="32" 6260 ;; 6261 *ELF-64*) 6262 HPUX_IA64_MODE="64" 6263 ;; 6264 esac 6265 fi 6266 rm -rf conftest* 6267 ;; 6268*-*-irix6*) 6269 # Find out which ABI we are using. 6270 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6272 (eval $ac_compile) 2>&5 6273 ac_status=$? 6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6275 test $ac_status = 0; }; then 6276 if test "$lt_cv_prog_gnu_ld" = yes; then 6277 case `/usr/bin/file conftest.$ac_objext` in 6278 *32-bit*) 6279 LD="${LD-ld} -melf32bsmip" 6280 ;; 6281 *N32*) 6282 LD="${LD-ld} -melf32bmipn32" 6283 ;; 6284 *64-bit*) 6285 LD="${LD-ld} -melf64bmip" 6286 ;; 6287 esac 6288 else 6289 case `/usr/bin/file conftest.$ac_objext` in 6290 *32-bit*) 6291 LD="${LD-ld} -32" 6292 ;; 6293 *N32*) 6294 LD="${LD-ld} -n32" 6295 ;; 6296 *64-bit*) 6297 LD="${LD-ld} -64" 6298 ;; 6299 esac 6300 fi 6301 fi 6302 rm -rf conftest* 6303 ;; 6304 6305x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6306s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6307 # Find out which ABI we are using. 6308 echo 'int i;' > conftest.$ac_ext 6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6310 (eval $ac_compile) 2>&5 6311 ac_status=$? 6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6313 test $ac_status = 0; }; then 6314 case `/usr/bin/file conftest.o` in 6315 *32-bit*) 6316 case $host in 6317 x86_64-*kfreebsd*-gnu) 6318 LD="${LD-ld} -m elf_i386_fbsd" 6319 ;; 6320 x86_64-*linux*) 6321 case `/usr/bin/file conftest.o` in 6322 *x86-64*) 6323 LD="${LD-ld} -m elf32_x86_64" 6324 ;; 6325 *) 6326 LD="${LD-ld} -m elf_i386" 6327 ;; 6328 esac 6329 ;; 6330 powerpc64le-*) 6331 LD="${LD-ld} -m elf32lppclinux" 6332 ;; 6333 powerpc64-*) 6334 LD="${LD-ld} -m elf32ppclinux" 6335 ;; 6336 s390x-*linux*) 6337 LD="${LD-ld} -m elf_s390" 6338 ;; 6339 sparc64-*linux*) 6340 LD="${LD-ld} -m elf32_sparc" 6341 ;; 6342 esac 6343 ;; 6344 *64-bit*) 6345 case $host in 6346 x86_64-*kfreebsd*-gnu) 6347 LD="${LD-ld} -m elf_x86_64_fbsd" 6348 ;; 6349 x86_64-*linux*) 6350 LD="${LD-ld} -m elf_x86_64" 6351 ;; 6352 powerpcle-*) 6353 LD="${LD-ld} -m elf64lppc" 6354 ;; 6355 powerpc-*) 6356 LD="${LD-ld} -m elf64ppc" 6357 ;; 6358 s390*-*linux*|s390*-*tpf*) 6359 LD="${LD-ld} -m elf64_s390" 6360 ;; 6361 sparc*-*linux*) 6362 LD="${LD-ld} -m elf64_sparc" 6363 ;; 6364 esac 6365 ;; 6366 esac 6367 fi 6368 rm -rf conftest* 6369 ;; 6370 6371*-*-sco3.2v5*) 6372 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6373 SAVE_CFLAGS="$CFLAGS" 6374 CFLAGS="$CFLAGS -belf" 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6376$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6377if ${lt_cv_cc_needs_belf+:} false; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 ac_ext=c 6381ac_cpp='$CPP $CPPFLAGS' 6382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6384ac_compiler_gnu=$ac_cv_c_compiler_gnu 6385 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6387/* end confdefs.h. */ 6388 6389int 6390main () 6391{ 6392 6393 ; 6394 return 0; 6395} 6396_ACEOF 6397if ac_fn_c_try_link "$LINENO"; then : 6398 lt_cv_cc_needs_belf=yes 6399else 6400 lt_cv_cc_needs_belf=no 6401fi 6402rm -f core conftest.err conftest.$ac_objext \ 6403 conftest$ac_exeext conftest.$ac_ext 6404 ac_ext=c 6405ac_cpp='$CPP $CPPFLAGS' 6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6408ac_compiler_gnu=$ac_cv_c_compiler_gnu 6409 6410fi 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6412$as_echo "$lt_cv_cc_needs_belf" >&6; } 6413 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6414 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6415 CFLAGS="$SAVE_CFLAGS" 6416 fi 6417 ;; 6418*-*solaris*) 6419 # Find out which ABI we are using. 6420 echo 'int i;' > conftest.$ac_ext 6421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6422 (eval $ac_compile) 2>&5 6423 ac_status=$? 6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6425 test $ac_status = 0; }; then 6426 case `/usr/bin/file conftest.o` in 6427 *64-bit*) 6428 case $lt_cv_prog_gnu_ld in 6429 yes*) 6430 case $host in 6431 i?86-*-solaris*) 6432 LD="${LD-ld} -m elf_x86_64" 6433 ;; 6434 sparc*-*-solaris*) 6435 LD="${LD-ld} -m elf64_sparc" 6436 ;; 6437 esac 6438 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6439 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6440 LD="${LD-ld}_sol2" 6441 fi 6442 ;; 6443 *) 6444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6445 LD="${LD-ld} -64" 6446 fi 6447 ;; 6448 esac 6449 ;; 6450 esac 6451 fi 6452 rm -rf conftest* 6453 ;; 6454esac 6455 6456need_locks="$enable_libtool_lock" 6457 6458if test -n "$ac_tool_prefix"; then 6459 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6460set dummy ${ac_tool_prefix}mt; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$MANIFEST_TOOL"; then 6467 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6487if test -n "$MANIFEST_TOOL"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6489$as_echo "$MANIFEST_TOOL" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 6496fi 6497if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6498 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6499 # Extract the first word of "mt", so it can be a program name with args. 6500set dummy mt; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$ac_ct_MANIFEST_TOOL"; then 6507 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6527if test -n "$ac_ct_MANIFEST_TOOL"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6529$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6536 MANIFEST_TOOL=":" 6537 else 6538 case $cross_compiling:$ac_tool_warned in 6539yes:) 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6545 fi 6546else 6547 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6548fi 6549 6550test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6552$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6553if ${lt_cv_path_mainfest_tool+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 lt_cv_path_mainfest_tool=no 6557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6559 cat conftest.err >&5 6560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6561 lt_cv_path_mainfest_tool=yes 6562 fi 6563 rm -f conftest* 6564fi 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6566$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6567if test "x$lt_cv_path_mainfest_tool" != xyes; then 6568 MANIFEST_TOOL=: 6569fi 6570 6571 6572 6573 6574 6575 6576 case $host_os in 6577 rhapsody* | darwin*) 6578 if test -n "$ac_tool_prefix"; then 6579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6580set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6582$as_echo_n "checking for $ac_word... " >&6; } 6583if ${ac_cv_prog_DSYMUTIL+:} false; then : 6584 $as_echo_n "(cached) " >&6 6585else 6586 if test -n "$DSYMUTIL"; then 6587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6588else 6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590for as_dir in $PATH 6591do 6592 IFS=$as_save_IFS 6593 test -z "$as_dir" && as_dir=. 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600done 6601 done 6602IFS=$as_save_IFS 6603 6604fi 6605fi 6606DSYMUTIL=$ac_cv_prog_DSYMUTIL 6607if test -n "$DSYMUTIL"; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6609$as_echo "$DSYMUTIL" >&6; } 6610else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6612$as_echo "no" >&6; } 6613fi 6614 6615 6616fi 6617if test -z "$ac_cv_prog_DSYMUTIL"; then 6618 ac_ct_DSYMUTIL=$DSYMUTIL 6619 # Extract the first word of "dsymutil", so it can be a program name with args. 6620set dummy dsymutil; ac_word=$2 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6622$as_echo_n "checking for $ac_word... " >&6; } 6623if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 if test -n "$ac_ct_DSYMUTIL"; then 6627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6628else 6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6630for as_dir in $PATH 6631do 6632 IFS=$as_save_IFS 6633 test -z "$as_dir" && as_dir=. 6634 for ac_exec_ext in '' $ac_executable_extensions; do 6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6638 break 2 6639 fi 6640done 6641 done 6642IFS=$as_save_IFS 6643 6644fi 6645fi 6646ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6647if test -n "$ac_ct_DSYMUTIL"; then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6649$as_echo "$ac_ct_DSYMUTIL" >&6; } 6650else 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6652$as_echo "no" >&6; } 6653fi 6654 6655 if test "x$ac_ct_DSYMUTIL" = x; then 6656 DSYMUTIL=":" 6657 else 6658 case $cross_compiling:$ac_tool_warned in 6659yes:) 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6662ac_tool_warned=yes ;; 6663esac 6664 DSYMUTIL=$ac_ct_DSYMUTIL 6665 fi 6666else 6667 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6668fi 6669 6670 if test -n "$ac_tool_prefix"; then 6671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6672set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6674$as_echo_n "checking for $ac_word... " >&6; } 6675if ${ac_cv_prog_NMEDIT+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 if test -n "$NMEDIT"; then 6679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6680else 6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6682for as_dir in $PATH 6683do 6684 IFS=$as_save_IFS 6685 test -z "$as_dir" && as_dir=. 6686 for ac_exec_ext in '' $ac_executable_extensions; do 6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6690 break 2 6691 fi 6692done 6693 done 6694IFS=$as_save_IFS 6695 6696fi 6697fi 6698NMEDIT=$ac_cv_prog_NMEDIT 6699if test -n "$NMEDIT"; then 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6701$as_echo "$NMEDIT" >&6; } 6702else 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6704$as_echo "no" >&6; } 6705fi 6706 6707 6708fi 6709if test -z "$ac_cv_prog_NMEDIT"; then 6710 ac_ct_NMEDIT=$NMEDIT 6711 # Extract the first word of "nmedit", so it can be a program name with args. 6712set dummy nmedit; ac_word=$2 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6714$as_echo_n "checking for $ac_word... " >&6; } 6715if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 if test -n "$ac_ct_NMEDIT"; then 6719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6720else 6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6722for as_dir in $PATH 6723do 6724 IFS=$as_save_IFS 6725 test -z "$as_dir" && as_dir=. 6726 for ac_exec_ext in '' $ac_executable_extensions; do 6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6728 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6730 break 2 6731 fi 6732done 6733 done 6734IFS=$as_save_IFS 6735 6736fi 6737fi 6738ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6739if test -n "$ac_ct_NMEDIT"; then 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6741$as_echo "$ac_ct_NMEDIT" >&6; } 6742else 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6744$as_echo "no" >&6; } 6745fi 6746 6747 if test "x$ac_ct_NMEDIT" = x; then 6748 NMEDIT=":" 6749 else 6750 case $cross_compiling:$ac_tool_warned in 6751yes:) 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6754ac_tool_warned=yes ;; 6755esac 6756 NMEDIT=$ac_ct_NMEDIT 6757 fi 6758else 6759 NMEDIT="$ac_cv_prog_NMEDIT" 6760fi 6761 6762 if test -n "$ac_tool_prefix"; then 6763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6764set dummy ${ac_tool_prefix}lipo; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_prog_LIPO+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 if test -n "$LIPO"; then 6771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6772else 6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774for as_dir in $PATH 6775do 6776 IFS=$as_save_IFS 6777 test -z "$as_dir" && as_dir=. 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6782 break 2 6783 fi 6784done 6785 done 6786IFS=$as_save_IFS 6787 6788fi 6789fi 6790LIPO=$ac_cv_prog_LIPO 6791if test -n "$LIPO"; then 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6793$as_echo "$LIPO" >&6; } 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 6800fi 6801if test -z "$ac_cv_prog_LIPO"; then 6802 ac_ct_LIPO=$LIPO 6803 # Extract the first word of "lipo", so it can be a program name with args. 6804set dummy lipo; ac_word=$2 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test -n "$ac_ct_LIPO"; then 6811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6812else 6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6820 ac_cv_prog_ac_ct_LIPO="lipo" 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825 done 6826IFS=$as_save_IFS 6827 6828fi 6829fi 6830ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6831if test -n "$ac_ct_LIPO"; then 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6833$as_echo "$ac_ct_LIPO" >&6; } 6834else 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836$as_echo "no" >&6; } 6837fi 6838 6839 if test "x$ac_ct_LIPO" = x; then 6840 LIPO=":" 6841 else 6842 case $cross_compiling:$ac_tool_warned in 6843yes:) 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6846ac_tool_warned=yes ;; 6847esac 6848 LIPO=$ac_ct_LIPO 6849 fi 6850else 6851 LIPO="$ac_cv_prog_LIPO" 6852fi 6853 6854 if test -n "$ac_tool_prefix"; then 6855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6856set dummy ${ac_tool_prefix}otool; ac_word=$2 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858$as_echo_n "checking for $ac_word... " >&6; } 6859if ${ac_cv_prog_OTOOL+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -n "$OTOOL"; then 6863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6864else 6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866for as_dir in $PATH 6867do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877 done 6878IFS=$as_save_IFS 6879 6880fi 6881fi 6882OTOOL=$ac_cv_prog_OTOOL 6883if test -n "$OTOOL"; then 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6885$as_echo "$OTOOL" >&6; } 6886else 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6888$as_echo "no" >&6; } 6889fi 6890 6891 6892fi 6893if test -z "$ac_cv_prog_OTOOL"; then 6894 ac_ct_OTOOL=$OTOOL 6895 # Extract the first word of "otool", so it can be a program name with args. 6896set dummy otool; ac_word=$2 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6898$as_echo_n "checking for $ac_word... " >&6; } 6899if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 if test -n "$ac_ct_OTOOL"; then 6903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6904else 6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906for as_dir in $PATH 6907do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_exec_ext in '' $ac_executable_extensions; do 6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6912 ac_cv_prog_ac_ct_OTOOL="otool" 6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6914 break 2 6915 fi 6916done 6917 done 6918IFS=$as_save_IFS 6919 6920fi 6921fi 6922ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6923if test -n "$ac_ct_OTOOL"; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6925$as_echo "$ac_ct_OTOOL" >&6; } 6926else 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6928$as_echo "no" >&6; } 6929fi 6930 6931 if test "x$ac_ct_OTOOL" = x; then 6932 OTOOL=":" 6933 else 6934 case $cross_compiling:$ac_tool_warned in 6935yes:) 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6938ac_tool_warned=yes ;; 6939esac 6940 OTOOL=$ac_ct_OTOOL 6941 fi 6942else 6943 OTOOL="$ac_cv_prog_OTOOL" 6944fi 6945 6946 if test -n "$ac_tool_prefix"; then 6947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6948set dummy ${ac_tool_prefix}otool64; ac_word=$2 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6950$as_echo_n "checking for $ac_word... " >&6; } 6951if ${ac_cv_prog_OTOOL64+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 if test -n "$OTOOL64"; then 6955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6956else 6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6958for as_dir in $PATH 6959do 6960 IFS=$as_save_IFS 6961 test -z "$as_dir" && as_dir=. 6962 for ac_exec_ext in '' $ac_executable_extensions; do 6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6966 break 2 6967 fi 6968done 6969 done 6970IFS=$as_save_IFS 6971 6972fi 6973fi 6974OTOOL64=$ac_cv_prog_OTOOL64 6975if test -n "$OTOOL64"; then 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6977$as_echo "$OTOOL64" >&6; } 6978else 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6980$as_echo "no" >&6; } 6981fi 6982 6983 6984fi 6985if test -z "$ac_cv_prog_OTOOL64"; then 6986 ac_ct_OTOOL64=$OTOOL64 6987 # Extract the first word of "otool64", so it can be a program name with args. 6988set dummy otool64; ac_word=$2 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6990$as_echo_n "checking for $ac_word... " >&6; } 6991if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test -n "$ac_ct_OTOOL64"; then 6995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7004 ac_cv_prog_ac_ct_OTOOL64="otool64" 7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009 done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7015if test -n "$ac_ct_OTOOL64"; then 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7017$as_echo "$ac_ct_OTOOL64" >&6; } 7018else 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7020$as_echo "no" >&6; } 7021fi 7022 7023 if test "x$ac_ct_OTOOL64" = x; then 7024 OTOOL64=":" 7025 else 7026 case $cross_compiling:$ac_tool_warned in 7027yes:) 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7030ac_tool_warned=yes ;; 7031esac 7032 OTOOL64=$ac_ct_OTOOL64 7033 fi 7034else 7035 OTOOL64="$ac_cv_prog_OTOOL64" 7036fi 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7065$as_echo_n "checking for -single_module linker flag... " >&6; } 7066if ${lt_cv_apple_cc_single_mod+:} false; then : 7067 $as_echo_n "(cached) " >&6 7068else 7069 lt_cv_apple_cc_single_mod=no 7070 if test -z "${LT_MULTI_MODULE}"; then 7071 # By default we will add the -single_module flag. You can override 7072 # by either setting the environment variable LT_MULTI_MODULE 7073 # non-empty at configure time, or by adding -multi_module to the 7074 # link flags. 7075 rm -rf libconftest.dylib* 7076 echo "int foo(void){return 1;}" > conftest.c 7077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7078-dynamiclib -Wl,-single_module conftest.c" >&5 7079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7081 _lt_result=$? 7082 # If there is a non-empty error log, and "single_module" 7083 # appears in it, assume the flag caused a linker warning 7084 if test -s conftest.err && $GREP single_module conftest.err; then 7085 cat conftest.err >&5 7086 # Otherwise, if the output was created with a 0 exit code from 7087 # the compiler, it worked. 7088 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7089 lt_cv_apple_cc_single_mod=yes 7090 else 7091 cat conftest.err >&5 7092 fi 7093 rm -rf libconftest.dylib* 7094 rm -f conftest.* 7095 fi 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7098$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7099 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7101$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7102if ${lt_cv_ld_exported_symbols_list+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 lt_cv_ld_exported_symbols_list=no 7106 save_LDFLAGS=$LDFLAGS 7107 echo "_main" > conftest.sym 7108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110/* end confdefs.h. */ 7111 7112int 7113main () 7114{ 7115 7116 ; 7117 return 0; 7118} 7119_ACEOF 7120if ac_fn_c_try_link "$LINENO"; then : 7121 lt_cv_ld_exported_symbols_list=yes 7122else 7123 lt_cv_ld_exported_symbols_list=no 7124fi 7125rm -f core conftest.err conftest.$ac_objext \ 7126 conftest$ac_exeext conftest.$ac_ext 7127 LDFLAGS="$save_LDFLAGS" 7128 7129fi 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7131$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7132 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7134$as_echo_n "checking for -force_load linker flag... " >&6; } 7135if ${lt_cv_ld_force_load+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 lt_cv_ld_force_load=no 7139 cat > conftest.c << _LT_EOF 7140int forced_loaded() { return 2;} 7141_LT_EOF 7142 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7143 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7144 echo "$AR cru libconftest.a conftest.o" >&5 7145 $AR cru libconftest.a conftest.o 2>&5 7146 echo "$RANLIB libconftest.a" >&5 7147 $RANLIB libconftest.a 2>&5 7148 cat > conftest.c << _LT_EOF 7149int main() { return 0;} 7150_LT_EOF 7151 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7152 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7153 _lt_result=$? 7154 if test -s conftest.err && $GREP force_load conftest.err; then 7155 cat conftest.err >&5 7156 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7157 lt_cv_ld_force_load=yes 7158 else 7159 cat conftest.err >&5 7160 fi 7161 rm -f conftest.err libconftest.a conftest conftest.c 7162 rm -rf conftest.dSYM 7163 7164fi 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7166$as_echo "$lt_cv_ld_force_load" >&6; } 7167 case $host_os in 7168 rhapsody* | darwin1.[012]) 7169 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7170 darwin1.*) 7171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7172 darwin*) # darwin 5.x on 7173 # if running on 10.5 or later, the deployment target defaults 7174 # to the OS version, if on x86, and 10.4, the deployment 7175 # target defaults to 10.4. Don't you love it? 7176 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7177 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7179 10.[012]*) 7180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7181 10.*) 7182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7183 esac 7184 ;; 7185 esac 7186 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7187 _lt_dar_single_mod='$single_module' 7188 fi 7189 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7190 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7191 else 7192 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7193 fi 7194 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7195 _lt_dsymutil='~$DSYMUTIL $lib || :' 7196 else 7197 _lt_dsymutil= 7198 fi 7199 ;; 7200 esac 7201 7202ac_ext=c 7203ac_cpp='$CPP $CPPFLAGS' 7204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7206ac_compiler_gnu=$ac_cv_c_compiler_gnu 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7208$as_echo_n "checking how to run the C preprocessor... " >&6; } 7209# On Suns, sometimes $CPP names a directory. 7210if test -n "$CPP" && test -d "$CPP"; then 7211 CPP= 7212fi 7213if test -z "$CPP"; then 7214 if ${ac_cv_prog_CPP+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 # Double quotes because CPP needs to be expanded 7218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7219 do 7220 ac_preproc_ok=false 7221for ac_c_preproc_warn_flag in '' yes 7222do 7223 # Use a header file that comes with gcc, so configuring glibc 7224 # with a fresh cross-compiler works. 7225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7226 # <limits.h> exists even on freestanding compilers. 7227 # On the NeXT, cc -E runs the code through the compiler's parser, 7228 # not just through cpp. "Syntax error" is here to catch this case. 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7230/* end confdefs.h. */ 7231#ifdef __STDC__ 7232# include <limits.h> 7233#else 7234# include <assert.h> 7235#endif 7236 Syntax error 7237_ACEOF 7238if ac_fn_c_try_cpp "$LINENO"; then : 7239 7240else 7241 # Broken: fails on valid input. 7242continue 7243fi 7244rm -f conftest.err conftest.i conftest.$ac_ext 7245 7246 # OK, works on sane cases. Now check whether nonexistent headers 7247 # can be detected and how. 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250#include <ac_nonexistent.h> 7251_ACEOF 7252if ac_fn_c_try_cpp "$LINENO"; then : 7253 # Broken: success on invalid input. 7254continue 7255else 7256 # Passes both tests. 7257ac_preproc_ok=: 7258break 7259fi 7260rm -f conftest.err conftest.i conftest.$ac_ext 7261 7262done 7263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7264rm -f conftest.i conftest.err conftest.$ac_ext 7265if $ac_preproc_ok; then : 7266 break 7267fi 7268 7269 done 7270 ac_cv_prog_CPP=$CPP 7271 7272fi 7273 CPP=$ac_cv_prog_CPP 7274else 7275 ac_cv_prog_CPP=$CPP 7276fi 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7278$as_echo "$CPP" >&6; } 7279ac_preproc_ok=false 7280for ac_c_preproc_warn_flag in '' yes 7281do 7282 # Use a header file that comes with gcc, so configuring glibc 7283 # with a fresh cross-compiler works. 7284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7285 # <limits.h> exists even on freestanding compilers. 7286 # On the NeXT, cc -E runs the code through the compiler's parser, 7287 # not just through cpp. "Syntax error" is here to catch this case. 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290#ifdef __STDC__ 7291# include <limits.h> 7292#else 7293# include <assert.h> 7294#endif 7295 Syntax error 7296_ACEOF 7297if ac_fn_c_try_cpp "$LINENO"; then : 7298 7299else 7300 # Broken: fails on valid input. 7301continue 7302fi 7303rm -f conftest.err conftest.i conftest.$ac_ext 7304 7305 # OK, works on sane cases. Now check whether nonexistent headers 7306 # can be detected and how. 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309#include <ac_nonexistent.h> 7310_ACEOF 7311if ac_fn_c_try_cpp "$LINENO"; then : 7312 # Broken: success on invalid input. 7313continue 7314else 7315 # Passes both tests. 7316ac_preproc_ok=: 7317break 7318fi 7319rm -f conftest.err conftest.i conftest.$ac_ext 7320 7321done 7322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7323rm -f conftest.i conftest.err conftest.$ac_ext 7324if $ac_preproc_ok; then : 7325 7326else 7327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7330See \`config.log' for more details" "$LINENO" 5; } 7331fi 7332 7333ac_ext=c 7334ac_cpp='$CPP $CPPFLAGS' 7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7337ac_compiler_gnu=$ac_cv_c_compiler_gnu 7338 7339 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7341$as_echo_n "checking for ANSI C header files... " >&6; } 7342if ${ac_cv_header_stdc+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#include <stdlib.h> 7348#include <stdarg.h> 7349#include <string.h> 7350#include <float.h> 7351 7352int 7353main () 7354{ 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_compile "$LINENO"; then : 7361 ac_cv_header_stdc=yes 7362else 7363 ac_cv_header_stdc=no 7364fi 7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7366 7367if test $ac_cv_header_stdc = yes; then 7368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370/* end confdefs.h. */ 7371#include <string.h> 7372 7373_ACEOF 7374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7375 $EGREP "memchr" >/dev/null 2>&1; then : 7376 7377else 7378 ac_cv_header_stdc=no 7379fi 7380rm -f conftest* 7381 7382fi 7383 7384if test $ac_cv_header_stdc = yes; then 7385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388#include <stdlib.h> 7389 7390_ACEOF 7391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7392 $EGREP "free" >/dev/null 2>&1; then : 7393 7394else 7395 ac_cv_header_stdc=no 7396fi 7397rm -f conftest* 7398 7399fi 7400 7401if test $ac_cv_header_stdc = yes; then 7402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7403 if test "$cross_compiling" = yes; then : 7404 : 7405else 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408#include <ctype.h> 7409#include <stdlib.h> 7410#if ((' ' & 0x0FF) == 0x020) 7411# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7412# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7413#else 7414# define ISLOWER(c) \ 7415 (('a' <= (c) && (c) <= 'i') \ 7416 || ('j' <= (c) && (c) <= 'r') \ 7417 || ('s' <= (c) && (c) <= 'z')) 7418# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7419#endif 7420 7421#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7422int 7423main () 7424{ 7425 int i; 7426 for (i = 0; i < 256; i++) 7427 if (XOR (islower (i), ISLOWER (i)) 7428 || toupper (i) != TOUPPER (i)) 7429 return 2; 7430 return 0; 7431} 7432_ACEOF 7433if ac_fn_c_try_run "$LINENO"; then : 7434 7435else 7436 ac_cv_header_stdc=no 7437fi 7438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7439 conftest.$ac_objext conftest.beam conftest.$ac_ext 7440fi 7441 7442fi 7443fi 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7445$as_echo "$ac_cv_header_stdc" >&6; } 7446if test $ac_cv_header_stdc = yes; then 7447 7448$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7449 7450fi 7451 7452# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7453for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7454 inttypes.h stdint.h unistd.h 7455do : 7456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7457ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7458" 7459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7460 cat >>confdefs.h <<_ACEOF 7461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7462_ACEOF 7463 7464fi 7465 7466done 7467 7468 7469for ac_header in dlfcn.h 7470do : 7471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7472" 7473if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7474 cat >>confdefs.h <<_ACEOF 7475#define HAVE_DLFCN_H 1 7476_ACEOF 7477 7478fi 7479 7480done 7481 7482 7483 7484 7485 7486# Set options 7487enable_dlopen=yes 7488enable_win32_dll=yes 7489 7490case $host in 7491*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7492 if test -n "$ac_tool_prefix"; then 7493 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7494set dummy ${ac_tool_prefix}as; ac_word=$2 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7496$as_echo_n "checking for $ac_word... " >&6; } 7497if ${ac_cv_prog_AS+:} false; then : 7498 $as_echo_n "(cached) " >&6 7499else 7500 if test -n "$AS"; then 7501 ac_cv_prog_AS="$AS" # Let the user override the test. 7502else 7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7504for as_dir in $PATH 7505do 7506 IFS=$as_save_IFS 7507 test -z "$as_dir" && as_dir=. 7508 for ac_exec_ext in '' $ac_executable_extensions; do 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7510 ac_cv_prog_AS="${ac_tool_prefix}as" 7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7512 break 2 7513 fi 7514done 7515 done 7516IFS=$as_save_IFS 7517 7518fi 7519fi 7520AS=$ac_cv_prog_AS 7521if test -n "$AS"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7523$as_echo "$AS" >&6; } 7524else 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7526$as_echo "no" >&6; } 7527fi 7528 7529 7530fi 7531if test -z "$ac_cv_prog_AS"; then 7532 ac_ct_AS=$AS 7533 # Extract the first word of "as", so it can be a program name with args. 7534set dummy as; ac_word=$2 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7536$as_echo_n "checking for $ac_word... " >&6; } 7537if ${ac_cv_prog_ac_ct_AS+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 if test -n "$ac_ct_AS"; then 7541 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7542else 7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7544for as_dir in $PATH 7545do 7546 IFS=$as_save_IFS 7547 test -z "$as_dir" && as_dir=. 7548 for ac_exec_ext in '' $ac_executable_extensions; do 7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7550 ac_cv_prog_ac_ct_AS="as" 7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7552 break 2 7553 fi 7554done 7555 done 7556IFS=$as_save_IFS 7557 7558fi 7559fi 7560ac_ct_AS=$ac_cv_prog_ac_ct_AS 7561if test -n "$ac_ct_AS"; then 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7563$as_echo "$ac_ct_AS" >&6; } 7564else 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7566$as_echo "no" >&6; } 7567fi 7568 7569 if test "x$ac_ct_AS" = x; then 7570 AS="false" 7571 else 7572 case $cross_compiling:$ac_tool_warned in 7573yes:) 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7576ac_tool_warned=yes ;; 7577esac 7578 AS=$ac_ct_AS 7579 fi 7580else 7581 AS="$ac_cv_prog_AS" 7582fi 7583 7584 if test -n "$ac_tool_prefix"; then 7585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7586set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7588$as_echo_n "checking for $ac_word... " >&6; } 7589if ${ac_cv_prog_DLLTOOL+:} false; then : 7590 $as_echo_n "(cached) " >&6 7591else 7592 if test -n "$DLLTOOL"; then 7593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7594else 7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7596for as_dir in $PATH 7597do 7598 IFS=$as_save_IFS 7599 test -z "$as_dir" && as_dir=. 7600 for ac_exec_ext in '' $ac_executable_extensions; do 7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7604 break 2 7605 fi 7606done 7607 done 7608IFS=$as_save_IFS 7609 7610fi 7611fi 7612DLLTOOL=$ac_cv_prog_DLLTOOL 7613if test -n "$DLLTOOL"; then 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7615$as_echo "$DLLTOOL" >&6; } 7616else 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7618$as_echo "no" >&6; } 7619fi 7620 7621 7622fi 7623if test -z "$ac_cv_prog_DLLTOOL"; then 7624 ac_ct_DLLTOOL=$DLLTOOL 7625 # Extract the first word of "dlltool", so it can be a program name with args. 7626set dummy dlltool; ac_word=$2 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628$as_echo_n "checking for $ac_word... " >&6; } 7629if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 if test -n "$ac_ct_DLLTOOL"; then 7633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647 done 7648IFS=$as_save_IFS 7649 7650fi 7651fi 7652ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7653if test -n "$ac_ct_DLLTOOL"; then 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7655$as_echo "$ac_ct_DLLTOOL" >&6; } 7656else 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658$as_echo "no" >&6; } 7659fi 7660 7661 if test "x$ac_ct_DLLTOOL" = x; then 7662 DLLTOOL="false" 7663 else 7664 case $cross_compiling:$ac_tool_warned in 7665yes:) 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7668ac_tool_warned=yes ;; 7669esac 7670 DLLTOOL=$ac_ct_DLLTOOL 7671 fi 7672else 7673 DLLTOOL="$ac_cv_prog_DLLTOOL" 7674fi 7675 7676 if test -n "$ac_tool_prefix"; then 7677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7678set dummy ${ac_tool_prefix}objdump; ac_word=$2 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680$as_echo_n "checking for $ac_word... " >&6; } 7681if ${ac_cv_prog_OBJDUMP+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683else 7684 if test -n "$OBJDUMP"; then 7685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7686else 7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688for as_dir in $PATH 7689do 7690 IFS=$as_save_IFS 7691 test -z "$as_dir" && as_dir=. 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7696 break 2 7697 fi 7698done 7699 done 7700IFS=$as_save_IFS 7701 7702fi 7703fi 7704OBJDUMP=$ac_cv_prog_OBJDUMP 7705if test -n "$OBJDUMP"; then 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7707$as_echo "$OBJDUMP" >&6; } 7708else 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7710$as_echo "no" >&6; } 7711fi 7712 7713 7714fi 7715if test -z "$ac_cv_prog_OBJDUMP"; then 7716 ac_ct_OBJDUMP=$OBJDUMP 7717 # Extract the first word of "objdump", so it can be a program name with args. 7718set dummy objdump; ac_word=$2 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7720$as_echo_n "checking for $ac_word... " >&6; } 7721if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 if test -n "$ac_ct_OBJDUMP"; then 7725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7726else 7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7728for as_dir in $PATH 7729do 7730 IFS=$as_save_IFS 7731 test -z "$as_dir" && as_dir=. 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7734 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738done 7739 done 7740IFS=$as_save_IFS 7741 7742fi 7743fi 7744ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7745if test -n "$ac_ct_OBJDUMP"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7747$as_echo "$ac_ct_OBJDUMP" >&6; } 7748else 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750$as_echo "no" >&6; } 7751fi 7752 7753 if test "x$ac_ct_OBJDUMP" = x; then 7754 OBJDUMP="false" 7755 else 7756 case $cross_compiling:$ac_tool_warned in 7757yes:) 7758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7760ac_tool_warned=yes ;; 7761esac 7762 OBJDUMP=$ac_ct_OBJDUMP 7763 fi 7764else 7765 OBJDUMP="$ac_cv_prog_OBJDUMP" 7766fi 7767 7768 ;; 7769esac 7770 7771test -z "$AS" && AS=as 7772 7773 7774 7775 7776 7777test -z "$DLLTOOL" && DLLTOOL=dlltool 7778 7779 7780 7781 7782 7783test -z "$OBJDUMP" && OBJDUMP=objdump 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 # Check whether --enable-shared was given. 7794if test "${enable_shared+set}" = set; then : 7795 enableval=$enable_shared; p=${PACKAGE-default} 7796 case $enableval in 7797 yes) enable_shared=yes ;; 7798 no) enable_shared=no ;; 7799 *) 7800 enable_shared=no 7801 # Look at the argument we got. We use all the common list separators. 7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7803 for pkg in $enableval; do 7804 IFS="$lt_save_ifs" 7805 if test "X$pkg" = "X$p"; then 7806 enable_shared=yes 7807 fi 7808 done 7809 IFS="$lt_save_ifs" 7810 ;; 7811 esac 7812else 7813 enable_shared=yes 7814fi 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 # Check whether --enable-static was given. 7825if test "${enable_static+set}" = set; then : 7826 enableval=$enable_static; p=${PACKAGE-default} 7827 case $enableval in 7828 yes) enable_static=yes ;; 7829 no) enable_static=no ;; 7830 *) 7831 enable_static=no 7832 # Look at the argument we got. We use all the common list separators. 7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7834 for pkg in $enableval; do 7835 IFS="$lt_save_ifs" 7836 if test "X$pkg" = "X$p"; then 7837 enable_static=yes 7838 fi 7839 done 7840 IFS="$lt_save_ifs" 7841 ;; 7842 esac 7843else 7844 enable_static=yes 7845fi 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856# Check whether --with-pic was given. 7857if test "${with_pic+set}" = set; then : 7858 withval=$with_pic; lt_p=${PACKAGE-default} 7859 case $withval in 7860 yes|no) pic_mode=$withval ;; 7861 *) 7862 pic_mode=default 7863 # Look at the argument we got. We use all the common list separators. 7864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7865 for lt_pkg in $withval; do 7866 IFS="$lt_save_ifs" 7867 if test "X$lt_pkg" = "X$lt_p"; then 7868 pic_mode=yes 7869 fi 7870 done 7871 IFS="$lt_save_ifs" 7872 ;; 7873 esac 7874else 7875 pic_mode=default 7876fi 7877 7878 7879test -z "$pic_mode" && pic_mode=default 7880 7881 7882 7883 7884 7885 7886 7887 # Check whether --enable-fast-install was given. 7888if test "${enable_fast_install+set}" = set; then : 7889 enableval=$enable_fast_install; p=${PACKAGE-default} 7890 case $enableval in 7891 yes) enable_fast_install=yes ;; 7892 no) enable_fast_install=no ;; 7893 *) 7894 enable_fast_install=no 7895 # Look at the argument we got. We use all the common list separators. 7896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7897 for pkg in $enableval; do 7898 IFS="$lt_save_ifs" 7899 if test "X$pkg" = "X$p"; then 7900 enable_fast_install=yes 7901 fi 7902 done 7903 IFS="$lt_save_ifs" 7904 ;; 7905 esac 7906else 7907 enable_fast_install=yes 7908fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920# This can be used to rebuild libtool when needed 7921LIBTOOL_DEPS="$ltmain" 7922 7923# Always use our own libtool. 7924LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955test -z "$LN_S" && LN_S="ln -s" 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970if test -n "${ZSH_VERSION+set}" ; then 7971 setopt NO_GLOB_SUBST 7972fi 7973 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7975$as_echo_n "checking for objdir... " >&6; } 7976if ${lt_cv_objdir+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 rm -f .libs 2>/dev/null 7980mkdir .libs 2>/dev/null 7981if test -d .libs; then 7982 lt_cv_objdir=.libs 7983else 7984 # MS-DOS does not allow filenames that begin with a dot. 7985 lt_cv_objdir=_libs 7986fi 7987rmdir .libs 2>/dev/null 7988fi 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7990$as_echo "$lt_cv_objdir" >&6; } 7991objdir=$lt_cv_objdir 7992 7993 7994 7995 7996 7997cat >>confdefs.h <<_ACEOF 7998#define LT_OBJDIR "$lt_cv_objdir/" 7999_ACEOF 8000 8001 8002 8003 8004case $host_os in 8005aix3*) 8006 # AIX sometimes has problems with the GCC collect2 program. For some 8007 # reason, if we set the COLLECT_NAMES environment variable, the problems 8008 # vanish in a puff of smoke. 8009 if test "X${COLLECT_NAMES+set}" != Xset; then 8010 COLLECT_NAMES= 8011 export COLLECT_NAMES 8012 fi 8013 ;; 8014esac 8015 8016# Global variables: 8017ofile=libtool 8018can_build_shared=yes 8019 8020# All known linkers require a `.a' archive for static linking (except MSVC, 8021# which needs '.lib'). 8022libext=a 8023 8024with_gnu_ld="$lt_cv_prog_gnu_ld" 8025 8026old_CC="$CC" 8027old_CFLAGS="$CFLAGS" 8028 8029# Set sane defaults for various variables 8030test -z "$CC" && CC=cc 8031test -z "$LTCC" && LTCC=$CC 8032test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8033test -z "$LD" && LD=ld 8034test -z "$ac_objext" && ac_objext=o 8035 8036for cc_temp in $compiler""; do 8037 case $cc_temp in 8038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8040 \-*) ;; 8041 *) break;; 8042 esac 8043done 8044cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8045 8046 8047# Only perform the check for file, if the check method requires it 8048test -z "$MAGIC_CMD" && MAGIC_CMD=file 8049case $deplibs_check_method in 8050file_magic*) 8051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8053$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8054if ${lt_cv_path_MAGIC_CMD+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 case $MAGIC_CMD in 8058[\\/*] | ?:[\\/]*) 8059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8060 ;; 8061*) 8062 lt_save_MAGIC_CMD="$MAGIC_CMD" 8063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8065 for ac_dir in $ac_dummy; do 8066 IFS="$lt_save_ifs" 8067 test -z "$ac_dir" && ac_dir=. 8068 if test -f $ac_dir/${ac_tool_prefix}file; then 8069 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8070 if test -n "$file_magic_test_file"; then 8071 case $deplibs_check_method in 8072 "file_magic "*) 8073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8076 $EGREP "$file_magic_regex" > /dev/null; then 8077 : 8078 else 8079 cat <<_LT_EOF 1>&2 8080 8081*** Warning: the command libtool uses to detect shared libraries, 8082*** $file_magic_cmd, produces output that libtool cannot recognize. 8083*** The result is that libtool may fail to recognize shared libraries 8084*** as such. This will affect the creation of libtool libraries that 8085*** depend on shared libraries, but programs linked with such libtool 8086*** libraries will work regardless of this problem. Nevertheless, you 8087*** may want to report the problem to your system manager and/or to 8088*** bug-libtool@gnu.org 8089 8090_LT_EOF 8091 fi ;; 8092 esac 8093 fi 8094 break 8095 fi 8096 done 8097 IFS="$lt_save_ifs" 8098 MAGIC_CMD="$lt_save_MAGIC_CMD" 8099 ;; 8100esac 8101fi 8102 8103MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8104if test -n "$MAGIC_CMD"; then 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8106$as_echo "$MAGIC_CMD" >&6; } 8107else 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8109$as_echo "no" >&6; } 8110fi 8111 8112 8113 8114 8115 8116if test -z "$lt_cv_path_MAGIC_CMD"; then 8117 if test -n "$ac_tool_prefix"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8119$as_echo_n "checking for file... " >&6; } 8120if ${lt_cv_path_MAGIC_CMD+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 case $MAGIC_CMD in 8124[\\/*] | ?:[\\/]*) 8125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8126 ;; 8127*) 8128 lt_save_MAGIC_CMD="$MAGIC_CMD" 8129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8131 for ac_dir in $ac_dummy; do 8132 IFS="$lt_save_ifs" 8133 test -z "$ac_dir" && ac_dir=. 8134 if test -f $ac_dir/file; then 8135 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8136 if test -n "$file_magic_test_file"; then 8137 case $deplibs_check_method in 8138 "file_magic "*) 8139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8142 $EGREP "$file_magic_regex" > /dev/null; then 8143 : 8144 else 8145 cat <<_LT_EOF 1>&2 8146 8147*** Warning: the command libtool uses to detect shared libraries, 8148*** $file_magic_cmd, produces output that libtool cannot recognize. 8149*** The result is that libtool may fail to recognize shared libraries 8150*** as such. This will affect the creation of libtool libraries that 8151*** depend on shared libraries, but programs linked with such libtool 8152*** libraries will work regardless of this problem. Nevertheless, you 8153*** may want to report the problem to your system manager and/or to 8154*** bug-libtool@gnu.org 8155 8156_LT_EOF 8157 fi ;; 8158 esac 8159 fi 8160 break 8161 fi 8162 done 8163 IFS="$lt_save_ifs" 8164 MAGIC_CMD="$lt_save_MAGIC_CMD" 8165 ;; 8166esac 8167fi 8168 8169MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8170if test -n "$MAGIC_CMD"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8172$as_echo "$MAGIC_CMD" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 8179 else 8180 MAGIC_CMD=: 8181 fi 8182fi 8183 8184 fi 8185 ;; 8186esac 8187 8188# Use C for the default configuration in the libtool script 8189 8190lt_save_CC="$CC" 8191ac_ext=c 8192ac_cpp='$CPP $CPPFLAGS' 8193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8195ac_compiler_gnu=$ac_cv_c_compiler_gnu 8196 8197 8198# Source file extension for C test sources. 8199ac_ext=c 8200 8201# Object file extension for compiled C test sources. 8202objext=o 8203objext=$objext 8204 8205# Code to be used in simple compile tests 8206lt_simple_compile_test_code="int some_variable = 0;" 8207 8208# Code to be used in simple link tests 8209lt_simple_link_test_code='int main(){return(0);}' 8210 8211 8212 8213 8214 8215 8216 8217# If no C compiler was specified, use CC. 8218LTCC=${LTCC-"$CC"} 8219 8220# If no C compiler flags were specified, use CFLAGS. 8221LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8222 8223# Allow CC to be a program name with arguments. 8224compiler=$CC 8225 8226# Save the default compiler, since it gets overwritten when the other 8227# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8228compiler_DEFAULT=$CC 8229 8230# save warnings/boilerplate of simple test code 8231ac_outfile=conftest.$ac_objext 8232echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8234_lt_compiler_boilerplate=`cat conftest.err` 8235$RM conftest* 8236 8237ac_outfile=conftest.$ac_objext 8238echo "$lt_simple_link_test_code" >conftest.$ac_ext 8239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8240_lt_linker_boilerplate=`cat conftest.err` 8241$RM -r conftest* 8242 8243 8244## CAVEAT EMPTOR: 8245## There is no encapsulation within the following macros, do not change 8246## the running order or otherwise move them around unless you know exactly 8247## what you are doing... 8248if test -n "$compiler"; then 8249 8250lt_prog_compiler_no_builtin_flag= 8251 8252if test "$GCC" = yes; then 8253 case $cc_basename in 8254 nvcc*) 8255 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8256 *) 8257 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8258 esac 8259 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8261$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8262if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 lt_cv_prog_compiler_rtti_exceptions=no 8266 ac_outfile=conftest.$ac_objext 8267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8268 lt_compiler_flag="-fno-rtti -fno-exceptions" 8269 # Insert the option either (1) after the last *FLAGS variable, or 8270 # (2) before a word containing "conftest.", or (3) at the end. 8271 # Note that $ac_compile itself does not contain backslashes and begins 8272 # with a dollar sign (not a hyphen), so the echo should work correctly. 8273 # The option is referenced via a variable to avoid confusing sed. 8274 lt_compile=`echo "$ac_compile" | $SED \ 8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8277 -e 's:$: $lt_compiler_flag:'` 8278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8279 (eval "$lt_compile" 2>conftest.err) 8280 ac_status=$? 8281 cat conftest.err >&5 8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8283 if (exit $ac_status) && test -s "$ac_outfile"; then 8284 # The compiler can only warn and ignore the option if not recognized 8285 # So say no if there are warnings other than the usual output. 8286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8289 lt_cv_prog_compiler_rtti_exceptions=yes 8290 fi 8291 fi 8292 $RM conftest* 8293 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8296$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8297 8298if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8299 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8300else 8301 : 8302fi 8303 8304fi 8305 8306 8307 8308 8309 8310 8311 lt_prog_compiler_wl= 8312lt_prog_compiler_pic= 8313lt_prog_compiler_static= 8314 8315 8316 if test "$GCC" = yes; then 8317 lt_prog_compiler_wl='-Wl,' 8318 lt_prog_compiler_static='-static' 8319 8320 case $host_os in 8321 aix*) 8322 # All AIX code is PIC. 8323 if test "$host_cpu" = ia64; then 8324 # AIX 5 now supports IA64 processor 8325 lt_prog_compiler_static='-Bstatic' 8326 fi 8327 ;; 8328 8329 amigaos*) 8330 case $host_cpu in 8331 powerpc) 8332 # see comment about AmigaOS4 .so support 8333 lt_prog_compiler_pic='-fPIC' 8334 ;; 8335 m68k) 8336 # FIXME: we need at least 68020 code to build shared libraries, but 8337 # adding the `-m68020' flag to GCC prevents building anything better, 8338 # like `-m68040'. 8339 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8340 ;; 8341 esac 8342 ;; 8343 8344 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8345 # PIC is the default for these OSes. 8346 ;; 8347 8348 mingw* | cygwin* | pw32* | os2* | cegcc*) 8349 # This hack is so that the source file can tell whether it is being 8350 # built for inclusion in a dll (and should export symbols for example). 8351 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8352 # (--disable-auto-import) libraries 8353 lt_prog_compiler_pic='-DDLL_EXPORT' 8354 ;; 8355 8356 darwin* | rhapsody*) 8357 # PIC is the default on this platform 8358 # Common symbols not allowed in MH_DYLIB files 8359 lt_prog_compiler_pic='-fno-common' 8360 ;; 8361 8362 haiku*) 8363 # PIC is the default for Haiku. 8364 # The "-static" flag exists, but is broken. 8365 lt_prog_compiler_static= 8366 ;; 8367 8368 hpux*) 8369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8371 # sets the default TLS model and affects inlining. 8372 case $host_cpu in 8373 hppa*64*) 8374 # +Z the default 8375 ;; 8376 *) 8377 lt_prog_compiler_pic='-fPIC' 8378 ;; 8379 esac 8380 ;; 8381 8382 interix[3-9]*) 8383 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8384 # Instead, we relocate shared libraries at runtime. 8385 ;; 8386 8387 msdosdjgpp*) 8388 # Just because we use GCC doesn't mean we suddenly get shared libraries 8389 # on systems that don't support them. 8390 lt_prog_compiler_can_build_shared=no 8391 enable_shared=no 8392 ;; 8393 8394 *nto* | *qnx*) 8395 # QNX uses GNU C++, but need to define -shared option too, otherwise 8396 # it will coredump. 8397 lt_prog_compiler_pic='-fPIC -shared' 8398 ;; 8399 8400 sysv4*MP*) 8401 if test -d /usr/nec; then 8402 lt_prog_compiler_pic=-Kconform_pic 8403 fi 8404 ;; 8405 8406 *) 8407 lt_prog_compiler_pic='-fPIC' 8408 ;; 8409 esac 8410 8411 case $cc_basename in 8412 nvcc*) # Cuda Compiler Driver 2.2 8413 lt_prog_compiler_wl='-Xlinker ' 8414 if test -n "$lt_prog_compiler_pic"; then 8415 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8416 fi 8417 ;; 8418 esac 8419 else 8420 # PORTME Check for flag to pass linker flags through the system compiler. 8421 case $host_os in 8422 aix*) 8423 lt_prog_compiler_wl='-Wl,' 8424 if test "$host_cpu" = ia64; then 8425 # AIX 5 now supports IA64 processor 8426 lt_prog_compiler_static='-Bstatic' 8427 else 8428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8429 fi 8430 ;; 8431 8432 mingw* | cygwin* | pw32* | os2* | cegcc*) 8433 # This hack is so that the source file can tell whether it is being 8434 # built for inclusion in a dll (and should export symbols for example). 8435 lt_prog_compiler_pic='-DDLL_EXPORT' 8436 ;; 8437 8438 hpux9* | hpux10* | hpux11*) 8439 lt_prog_compiler_wl='-Wl,' 8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8441 # not for PA HP-UX. 8442 case $host_cpu in 8443 hppa*64*|ia64*) 8444 # +Z the default 8445 ;; 8446 *) 8447 lt_prog_compiler_pic='+Z' 8448 ;; 8449 esac 8450 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8451 lt_prog_compiler_static='${wl}-a ${wl}archive' 8452 ;; 8453 8454 irix5* | irix6* | nonstopux*) 8455 lt_prog_compiler_wl='-Wl,' 8456 # PIC (with -KPIC) is the default. 8457 lt_prog_compiler_static='-non_shared' 8458 ;; 8459 8460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8461 case $cc_basename in 8462 # old Intel for x86_64 which still supported -KPIC. 8463 ecc*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-static' 8467 ;; 8468 # icc used to be incompatible with GCC. 8469 # ICC 10 doesn't accept -KPIC any more. 8470 icc* | ifort*) 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_pic='-fPIC' 8473 lt_prog_compiler_static='-static' 8474 ;; 8475 # Lahey Fortran 8.1. 8476 lf95*) 8477 lt_prog_compiler_wl='-Wl,' 8478 lt_prog_compiler_pic='--shared' 8479 lt_prog_compiler_static='--static' 8480 ;; 8481 nagfor*) 8482 # NAG Fortran compiler 8483 lt_prog_compiler_wl='-Wl,-Wl,,' 8484 lt_prog_compiler_pic='-PIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 ;; 8487 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8488 # Portland Group compilers (*not* the Pentium gcc compiler, 8489 # which looks to be a dead project) 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_pic='-fpic' 8492 lt_prog_compiler_static='-Bstatic' 8493 ;; 8494 ccc*) 8495 lt_prog_compiler_wl='-Wl,' 8496 # All Alpha code is PIC. 8497 lt_prog_compiler_static='-non_shared' 8498 ;; 8499 xl* | bgxl* | bgf* | mpixl*) 8500 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8501 lt_prog_compiler_wl='-Wl,' 8502 lt_prog_compiler_pic='-qpic' 8503 lt_prog_compiler_static='-qstaticlink' 8504 ;; 8505 *) 8506 case `$CC -V 2>&1 | sed 5q` in 8507 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8508 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8509 lt_prog_compiler_pic='-KPIC' 8510 lt_prog_compiler_static='-Bstatic' 8511 lt_prog_compiler_wl='' 8512 ;; 8513 *Sun\ F* | *Sun*Fortran*) 8514 lt_prog_compiler_pic='-KPIC' 8515 lt_prog_compiler_static='-Bstatic' 8516 lt_prog_compiler_wl='-Qoption ld ' 8517 ;; 8518 *Sun\ C*) 8519 # Sun C 5.9 8520 lt_prog_compiler_pic='-KPIC' 8521 lt_prog_compiler_static='-Bstatic' 8522 lt_prog_compiler_wl='-Wl,' 8523 ;; 8524 *Intel*\ [CF]*Compiler*) 8525 lt_prog_compiler_wl='-Wl,' 8526 lt_prog_compiler_pic='-fPIC' 8527 lt_prog_compiler_static='-static' 8528 ;; 8529 *Portland\ Group*) 8530 lt_prog_compiler_wl='-Wl,' 8531 lt_prog_compiler_pic='-fpic' 8532 lt_prog_compiler_static='-Bstatic' 8533 ;; 8534 esac 8535 ;; 8536 esac 8537 ;; 8538 8539 newsos6) 8540 lt_prog_compiler_pic='-KPIC' 8541 lt_prog_compiler_static='-Bstatic' 8542 ;; 8543 8544 *nto* | *qnx*) 8545 # QNX uses GNU C++, but need to define -shared option too, otherwise 8546 # it will coredump. 8547 lt_prog_compiler_pic='-fPIC -shared' 8548 ;; 8549 8550 osf3* | osf4* | osf5*) 8551 lt_prog_compiler_wl='-Wl,' 8552 # All OSF/1 code is PIC. 8553 lt_prog_compiler_static='-non_shared' 8554 ;; 8555 8556 rdos*) 8557 lt_prog_compiler_static='-non_shared' 8558 ;; 8559 8560 solaris*) 8561 lt_prog_compiler_pic='-KPIC' 8562 lt_prog_compiler_static='-Bstatic' 8563 case $cc_basename in 8564 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8565 lt_prog_compiler_wl='-Qoption ld ';; 8566 *) 8567 lt_prog_compiler_wl='-Wl,';; 8568 esac 8569 ;; 8570 8571 sunos4*) 8572 lt_prog_compiler_wl='-Qoption ld ' 8573 lt_prog_compiler_pic='-PIC' 8574 lt_prog_compiler_static='-Bstatic' 8575 ;; 8576 8577 sysv4 | sysv4.2uw2* | sysv4.3*) 8578 lt_prog_compiler_wl='-Wl,' 8579 lt_prog_compiler_pic='-KPIC' 8580 lt_prog_compiler_static='-Bstatic' 8581 ;; 8582 8583 sysv4*MP*) 8584 if test -d /usr/nec ;then 8585 lt_prog_compiler_pic='-Kconform_pic' 8586 lt_prog_compiler_static='-Bstatic' 8587 fi 8588 ;; 8589 8590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8591 lt_prog_compiler_wl='-Wl,' 8592 lt_prog_compiler_pic='-KPIC' 8593 lt_prog_compiler_static='-Bstatic' 8594 ;; 8595 8596 unicos*) 8597 lt_prog_compiler_wl='-Wl,' 8598 lt_prog_compiler_can_build_shared=no 8599 ;; 8600 8601 uts4*) 8602 lt_prog_compiler_pic='-pic' 8603 lt_prog_compiler_static='-Bstatic' 8604 ;; 8605 8606 *) 8607 lt_prog_compiler_can_build_shared=no 8608 ;; 8609 esac 8610 fi 8611 8612case $host_os in 8613 # For platforms which do not support PIC, -DPIC is meaningless: 8614 *djgpp*) 8615 lt_prog_compiler_pic= 8616 ;; 8617 *) 8618 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8619 ;; 8620esac 8621 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8623$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8624if ${lt_cv_prog_compiler_pic+:} false; then : 8625 $as_echo_n "(cached) " >&6 8626else 8627 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8628fi 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8630$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8631lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8632 8633# 8634# Check to make sure the PIC flag actually works. 8635# 8636if test -n "$lt_prog_compiler_pic"; then 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8638$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8639if ${lt_cv_prog_compiler_pic_works+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 lt_cv_prog_compiler_pic_works=no 8643 ac_outfile=conftest.$ac_objext 8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8645 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8646 # Insert the option either (1) after the last *FLAGS variable, or 8647 # (2) before a word containing "conftest.", or (3) at the end. 8648 # Note that $ac_compile itself does not contain backslashes and begins 8649 # with a dollar sign (not a hyphen), so the echo should work correctly. 8650 # The option is referenced via a variable to avoid confusing sed. 8651 lt_compile=`echo "$ac_compile" | $SED \ 8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8654 -e 's:$: $lt_compiler_flag:'` 8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8656 (eval "$lt_compile" 2>conftest.err) 8657 ac_status=$? 8658 cat conftest.err >&5 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 if (exit $ac_status) && test -s "$ac_outfile"; then 8661 # The compiler can only warn and ignore the option if not recognized 8662 # So say no if there are warnings other than the usual output. 8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8666 lt_cv_prog_compiler_pic_works=yes 8667 fi 8668 fi 8669 $RM conftest* 8670 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8673$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8674 8675if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8676 case $lt_prog_compiler_pic in 8677 "" | " "*) ;; 8678 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8679 esac 8680else 8681 lt_prog_compiler_pic= 8682 lt_prog_compiler_can_build_shared=no 8683fi 8684 8685fi 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697# 8698# Check to make sure the static flag actually works. 8699# 8700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8702$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8703if ${lt_cv_prog_compiler_static_works+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 lt_cv_prog_compiler_static_works=no 8707 save_LDFLAGS="$LDFLAGS" 8708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8709 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8711 # The linker can only warn and ignore the option if not recognized 8712 # So say no if there are warnings 8713 if test -s conftest.err; then 8714 # Append any errors to the config.log. 8715 cat conftest.err 1>&5 8716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8718 if diff conftest.exp conftest.er2 >/dev/null; then 8719 lt_cv_prog_compiler_static_works=yes 8720 fi 8721 else 8722 lt_cv_prog_compiler_static_works=yes 8723 fi 8724 fi 8725 $RM -r conftest* 8726 LDFLAGS="$save_LDFLAGS" 8727 8728fi 8729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8730$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8731 8732if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8733 : 8734else 8735 lt_prog_compiler_static= 8736fi 8737 8738 8739 8740 8741 8742 8743 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8746if ${lt_cv_prog_compiler_c_o+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 lt_cv_prog_compiler_c_o=no 8750 $RM -r conftest 2>/dev/null 8751 mkdir conftest 8752 cd conftest 8753 mkdir out 8754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8755 8756 lt_compiler_flag="-o out/conftest2.$ac_objext" 8757 # Insert the option either (1) after the last *FLAGS variable, or 8758 # (2) before a word containing "conftest.", or (3) at the end. 8759 # Note that $ac_compile itself does not contain backslashes and begins 8760 # with a dollar sign (not a hyphen), so the echo should work correctly. 8761 lt_compile=`echo "$ac_compile" | $SED \ 8762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8764 -e 's:$: $lt_compiler_flag:'` 8765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8766 (eval "$lt_compile" 2>out/conftest.err) 8767 ac_status=$? 8768 cat out/conftest.err >&5 8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8770 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8771 then 8772 # The compiler can only warn and ignore the option if not recognized 8773 # So say no if there are warnings 8774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8777 lt_cv_prog_compiler_c_o=yes 8778 fi 8779 fi 8780 chmod u+w . 2>&5 8781 $RM conftest* 8782 # SGI C++ compiler will create directory out/ii_files/ for 8783 # template instantiation 8784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8785 $RM out/* && rmdir out 8786 cd .. 8787 $RM -r conftest 8788 $RM conftest* 8789 8790fi 8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8792$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8793 8794 8795 8796 8797 8798 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8801if ${lt_cv_prog_compiler_c_o+:} false; then : 8802 $as_echo_n "(cached) " >&6 8803else 8804 lt_cv_prog_compiler_c_o=no 8805 $RM -r conftest 2>/dev/null 8806 mkdir conftest 8807 cd conftest 8808 mkdir out 8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8810 8811 lt_compiler_flag="-o out/conftest2.$ac_objext" 8812 # Insert the option either (1) after the last *FLAGS variable, or 8813 # (2) before a word containing "conftest.", or (3) at the end. 8814 # Note that $ac_compile itself does not contain backslashes and begins 8815 # with a dollar sign (not a hyphen), so the echo should work correctly. 8816 lt_compile=`echo "$ac_compile" | $SED \ 8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8819 -e 's:$: $lt_compiler_flag:'` 8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8821 (eval "$lt_compile" 2>out/conftest.err) 8822 ac_status=$? 8823 cat out/conftest.err >&5 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8826 then 8827 # The compiler can only warn and ignore the option if not recognized 8828 # So say no if there are warnings 8829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8832 lt_cv_prog_compiler_c_o=yes 8833 fi 8834 fi 8835 chmod u+w . 2>&5 8836 $RM conftest* 8837 # SGI C++ compiler will create directory out/ii_files/ for 8838 # template instantiation 8839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8840 $RM out/* && rmdir out 8841 cd .. 8842 $RM -r conftest 8843 $RM conftest* 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8847$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8848 8849 8850 8851 8852hard_links="nottested" 8853if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8854 # do not overwrite the value of need_locks provided by the user 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8856$as_echo_n "checking if we can lock with hard links... " >&6; } 8857 hard_links=yes 8858 $RM conftest* 8859 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8860 touch conftest.a 8861 ln conftest.a conftest.b 2>&5 || hard_links=no 8862 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8864$as_echo "$hard_links" >&6; } 8865 if test "$hard_links" = no; then 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8867$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8868 need_locks=warn 8869 fi 8870else 8871 need_locks=no 8872fi 8873 8874 8875 8876 8877 8878 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8880$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8881 8882 runpath_var= 8883 allow_undefined_flag= 8884 always_export_symbols=no 8885 archive_cmds= 8886 archive_expsym_cmds= 8887 compiler_needs_object=no 8888 enable_shared_with_static_runtimes=no 8889 export_dynamic_flag_spec= 8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8891 hardcode_automatic=no 8892 hardcode_direct=no 8893 hardcode_direct_absolute=no 8894 hardcode_libdir_flag_spec= 8895 hardcode_libdir_separator= 8896 hardcode_minus_L=no 8897 hardcode_shlibpath_var=unsupported 8898 inherit_rpath=no 8899 link_all_deplibs=unknown 8900 module_cmds= 8901 module_expsym_cmds= 8902 old_archive_from_new_cmds= 8903 old_archive_from_expsyms_cmds= 8904 thread_safe_flag_spec= 8905 whole_archive_flag_spec= 8906 # include_expsyms should be a list of space-separated symbols to be *always* 8907 # included in the symbol list 8908 include_expsyms= 8909 # exclude_expsyms can be an extended regexp of symbols to exclude 8910 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8912 # as well as any symbol that contains `d'. 8913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8915 # platforms (ab)use it in PIC code, but their linkers get confused if 8916 # the symbol is explicitly referenced. Since portable code cannot 8917 # rely on this symbol name, it's probably fine to never include it in 8918 # preloaded symbol tables. 8919 # Exclude shared library initialization/finalization symbols. 8920 extract_expsyms_cmds= 8921 8922 case $host_os in 8923 cygwin* | mingw* | pw32* | cegcc*) 8924 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8925 # When not using gcc, we currently assume that we are using 8926 # Microsoft Visual C++. 8927 if test "$GCC" != yes; then 8928 with_gnu_ld=no 8929 fi 8930 ;; 8931 interix*) 8932 # we just hope/assume this is gcc and not c89 (= MSVC++) 8933 with_gnu_ld=yes 8934 ;; 8935 openbsd*) 8936 with_gnu_ld=no 8937 ;; 8938 linux* | k*bsd*-gnu | gnu*) 8939 link_all_deplibs=no 8940 ;; 8941 esac 8942 8943 ld_shlibs=yes 8944 8945 # On some targets, GNU ld is compatible enough with the native linker 8946 # that we're better off using the native interface for both. 8947 lt_use_gnu_ld_interface=no 8948 if test "$with_gnu_ld" = yes; then 8949 case $host_os in 8950 aix*) 8951 # The AIX port of GNU ld has always aspired to compatibility 8952 # with the native linker. However, as the warning in the GNU ld 8953 # block says, versions before 2.19.5* couldn't really create working 8954 # shared libraries, regardless of the interface used. 8955 case `$LD -v 2>&1` in 8956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8958 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8959 *) 8960 lt_use_gnu_ld_interface=yes 8961 ;; 8962 esac 8963 ;; 8964 *) 8965 lt_use_gnu_ld_interface=yes 8966 ;; 8967 esac 8968 fi 8969 8970 if test "$lt_use_gnu_ld_interface" = yes; then 8971 # If archive_cmds runs LD, not CC, wlarc should be empty 8972 wlarc='${wl}' 8973 8974 # Set some defaults for GNU ld with shared library support. These 8975 # are reset later if shared libraries are not supported. Putting them 8976 # here allows them to be overridden if necessary. 8977 runpath_var=LD_RUN_PATH 8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8979 export_dynamic_flag_spec='${wl}--export-dynamic' 8980 # ancient GNU ld didn't support --whole-archive et. al. 8981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8983 else 8984 whole_archive_flag_spec= 8985 fi 8986 supports_anon_versioning=no 8987 case `$LD -v 2>&1` in 8988 *GNU\ gold*) supports_anon_versioning=yes ;; 8989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8992 *\ 2.11.*) ;; # other 2.11 versions 8993 *) supports_anon_versioning=yes ;; 8994 esac 8995 8996 # See if GNU ld supports shared libraries. 8997 case $host_os in 8998 aix[3-9]*) 8999 # On AIX/PPC, the GNU linker is very broken 9000 if test "$host_cpu" != ia64; then 9001 ld_shlibs=no 9002 cat <<_LT_EOF 1>&2 9003 9004*** Warning: the GNU linker, at least up to release 2.19, is reported 9005*** to be unable to reliably create shared libraries on AIX. 9006*** Therefore, libtool is disabling shared libraries support. If you 9007*** really care for shared libraries, you may want to install binutils 9008*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9009*** You will then need to restart the configuration process. 9010 9011_LT_EOF 9012 fi 9013 ;; 9014 9015 amigaos*) 9016 case $host_cpu in 9017 powerpc) 9018 # see comment about AmigaOS4 .so support 9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9020 archive_expsym_cmds='' 9021 ;; 9022 m68k) 9023 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)' 9024 hardcode_libdir_flag_spec='-L$libdir' 9025 hardcode_minus_L=yes 9026 ;; 9027 esac 9028 ;; 9029 9030 beos*) 9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9032 allow_undefined_flag=unsupported 9033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9034 # support --undefined. This deserves some investigation. FIXME 9035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9036 else 9037 ld_shlibs=no 9038 fi 9039 ;; 9040 9041 cygwin* | mingw* | pw32* | cegcc*) 9042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9043 # as there is no search path for DLLs. 9044 hardcode_libdir_flag_spec='-L$libdir' 9045 export_dynamic_flag_spec='${wl}--export-all-symbols' 9046 allow_undefined_flag=unsupported 9047 always_export_symbols=no 9048 enable_shared_with_static_runtimes=yes 9049 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' 9050 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9051 9052 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9054 # If the export-symbols file already is a .def file (1st line 9055 # is EXPORTS), use it as is; otherwise, prepend... 9056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9057 cp $export_symbols $output_objdir/$soname.def; 9058 else 9059 echo EXPORTS > $output_objdir/$soname.def; 9060 cat $export_symbols >> $output_objdir/$soname.def; 9061 fi~ 9062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9063 else 9064 ld_shlibs=no 9065 fi 9066 ;; 9067 9068 haiku*) 9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9070 link_all_deplibs=yes 9071 ;; 9072 9073 interix[3-9]*) 9074 hardcode_direct=no 9075 hardcode_shlibpath_var=no 9076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9077 export_dynamic_flag_spec='${wl}-E' 9078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9079 # Instead, shared libraries are loaded at an image base (0x10000000 by 9080 # default) and relocated if they conflict, which is a slow very memory 9081 # consuming and fragmenting process. To avoid this, we pick a random, 9082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9083 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9085 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' 9086 ;; 9087 9088 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9089 tmp_diet=no 9090 if test "$host_os" = linux-dietlibc; then 9091 case $cc_basename in 9092 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9093 esac 9094 fi 9095 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9096 && test "$tmp_diet" = no 9097 then 9098 tmp_addflag=' $pic_flag' 9099 tmp_sharedflag='-shared' 9100 case $cc_basename,$host_cpu in 9101 pgcc*) # Portland Group C compiler 9102 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' 9103 tmp_addflag=' $pic_flag' 9104 ;; 9105 pgf77* | pgf90* | pgf95* | pgfortran*) 9106 # Portland Group f77 and f90 compilers 9107 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' 9108 tmp_addflag=' $pic_flag -Mnomain' ;; 9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9110 tmp_addflag=' -i_dynamic' ;; 9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9112 tmp_addflag=' -i_dynamic -nofor_main' ;; 9113 ifc* | ifort*) # Intel Fortran compiler 9114 tmp_addflag=' -nofor_main' ;; 9115 lf95*) # Lahey Fortran 8.1 9116 whole_archive_flag_spec= 9117 tmp_sharedflag='--shared' ;; 9118 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9119 tmp_sharedflag='-qmkshrobj' 9120 tmp_addflag= ;; 9121 nvcc*) # Cuda Compiler Driver 2.2 9122 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' 9123 compiler_needs_object=yes 9124 ;; 9125 esac 9126 case `$CC -V 2>&1 | sed 5q` in 9127 *Sun\ C*) # Sun C 5.9 9128 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' 9129 compiler_needs_object=yes 9130 tmp_sharedflag='-G' ;; 9131 *Sun\ F*) # Sun Fortran 8.3 9132 tmp_sharedflag='-G' ;; 9133 esac 9134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9135 9136 if test "x$supports_anon_versioning" = xyes; then 9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9139 echo "local: *; };" >> $output_objdir/$libname.ver~ 9140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9141 fi 9142 9143 case $cc_basename in 9144 xlf* | bgf* | bgxlf* | mpixlf*) 9145 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9146 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9148 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9149 if test "x$supports_anon_versioning" = xyes; then 9150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9152 echo "local: *; };" >> $output_objdir/$libname.ver~ 9153 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9154 fi 9155 ;; 9156 esac 9157 else 9158 ld_shlibs=no 9159 fi 9160 ;; 9161 9162 netbsd* | netbsdelf*-gnu) 9163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9164 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9165 wlarc= 9166 else 9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9169 fi 9170 ;; 9171 9172 solaris*) 9173 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9174 ld_shlibs=no 9175 cat <<_LT_EOF 1>&2 9176 9177*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9178*** create shared libraries on Solaris systems. Therefore, libtool 9179*** is disabling shared libraries support. We urge you to upgrade GNU 9180*** binutils to release 2.9.1 or newer. Another option is to modify 9181*** your PATH or compiler configuration so that the native linker is 9182*** used, and then restart. 9183 9184_LT_EOF 9185 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9187 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9188 else 9189 ld_shlibs=no 9190 fi 9191 ;; 9192 9193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9194 case `$LD -v 2>&1` in 9195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9196 ld_shlibs=no 9197 cat <<_LT_EOF 1>&2 9198 9199*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9200*** reliably create shared libraries on SCO systems. Therefore, libtool 9201*** is disabling shared libraries support. We urge you to upgrade GNU 9202*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9203*** your PATH or compiler configuration so that the native linker is 9204*** used, and then restart. 9205 9206_LT_EOF 9207 ;; 9208 *) 9209 # For security reasons, it is highly recommended that you always 9210 # use absolute paths for naming shared libraries, and exclude the 9211 # DT_RUNPATH tag from executables and libraries. But doing so 9212 # requires that you compile everything twice, which is a pain. 9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9217 else 9218 ld_shlibs=no 9219 fi 9220 ;; 9221 esac 9222 ;; 9223 9224 sunos4*) 9225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9226 wlarc= 9227 hardcode_direct=yes 9228 hardcode_shlibpath_var=no 9229 ;; 9230 9231 *) 9232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9234 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9235 else 9236 ld_shlibs=no 9237 fi 9238 ;; 9239 esac 9240 9241 if test "$ld_shlibs" = no; then 9242 runpath_var= 9243 hardcode_libdir_flag_spec= 9244 export_dynamic_flag_spec= 9245 whole_archive_flag_spec= 9246 fi 9247 else 9248 # PORTME fill in a description of your system's linker (not GNU ld) 9249 case $host_os in 9250 aix3*) 9251 allow_undefined_flag=unsupported 9252 always_export_symbols=yes 9253 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' 9254 # Note: this linker hardcodes the directories in LIBPATH if there 9255 # are no directories specified by -L. 9256 hardcode_minus_L=yes 9257 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9258 # Neither direct hardcoding nor static linking is supported with a 9259 # broken collect2. 9260 hardcode_direct=unsupported 9261 fi 9262 ;; 9263 9264 aix[4-9]*) 9265 if test "$host_cpu" = ia64; then 9266 # On IA64, the linker does run time linking by default, so we don't 9267 # have to do anything special. 9268 aix_use_runtimelinking=no 9269 exp_sym_flag='-Bexport' 9270 no_entry_flag="" 9271 else 9272 # If we're using GNU nm, then we don't want the "-C" option. 9273 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9274 # Also, AIX nm treats weak defined symbols like other global 9275 # defined symbols, whereas GNU nm marks them as "W". 9276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9277 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9278 else 9279 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9280 fi 9281 aix_use_runtimelinking=no 9282 9283 # Test if we are trying to use run time linking or normal 9284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9285 # need to do runtime linking. 9286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9287 for ld_flag in $LDFLAGS; do 9288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9289 aix_use_runtimelinking=yes 9290 break 9291 fi 9292 done 9293 ;; 9294 esac 9295 9296 exp_sym_flag='-bexport' 9297 no_entry_flag='-bnoentry' 9298 fi 9299 9300 # When large executables or shared objects are built, AIX ld can 9301 # have problems creating the table of contents. If linking a library 9302 # or program results in "error TOC overflow" add -mminimal-toc to 9303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9305 9306 archive_cmds='' 9307 hardcode_direct=yes 9308 hardcode_direct_absolute=yes 9309 hardcode_libdir_separator=':' 9310 link_all_deplibs=yes 9311 file_list_spec='${wl}-f,' 9312 9313 if test "$GCC" = yes; then 9314 case $host_os in aix4.[012]|aix4.[012].*) 9315 # We only want to do this on AIX 4.2 and lower, the check 9316 # below for broken collect2 doesn't work under 4.3+ 9317 collect2name=`${CC} -print-prog-name=collect2` 9318 if test -f "$collect2name" && 9319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9320 then 9321 # We have reworked collect2 9322 : 9323 else 9324 # We have old collect2 9325 hardcode_direct=unsupported 9326 # It fails to find uninstalled libraries when the uninstalled 9327 # path is not listed in the libpath. Setting hardcode_minus_L 9328 # to unsupported forces relinking 9329 hardcode_minus_L=yes 9330 hardcode_libdir_flag_spec='-L$libdir' 9331 hardcode_libdir_separator= 9332 fi 9333 ;; 9334 esac 9335 shared_flag='-shared' 9336 if test "$aix_use_runtimelinking" = yes; then 9337 shared_flag="$shared_flag "'${wl}-G' 9338 fi 9339 link_all_deplibs=no 9340 else 9341 # not using gcc 9342 if test "$host_cpu" = ia64; then 9343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9344 # chokes on -Wl,-G. The following line is correct: 9345 shared_flag='-G' 9346 else 9347 if test "$aix_use_runtimelinking" = yes; then 9348 shared_flag='${wl}-G' 9349 else 9350 shared_flag='${wl}-bM:SRE' 9351 fi 9352 fi 9353 fi 9354 9355 export_dynamic_flag_spec='${wl}-bexpall' 9356 # It seems that -bexpall does not export symbols beginning with 9357 # underscore (_), so it is better to generate a list of symbols to export. 9358 always_export_symbols=yes 9359 if test "$aix_use_runtimelinking" = yes; then 9360 # Warning - without using the other runtime loading flags (-brtl), 9361 # -berok will link without error, but may produce a broken library. 9362 allow_undefined_flag='-berok' 9363 # Determine the default libpath from the value encoded in an 9364 # empty executable. 9365 if test "${lt_cv_aix_libpath+set}" = set; then 9366 aix_libpath=$lt_cv_aix_libpath 9367else 9368 if ${lt_cv_aix_libpath_+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373 9374int 9375main () 9376{ 9377 9378 ; 9379 return 0; 9380} 9381_ACEOF 9382if ac_fn_c_try_link "$LINENO"; then : 9383 9384 lt_aix_libpath_sed=' 9385 /Import File Strings/,/^$/ { 9386 /^0/ { 9387 s/^0 *\([^ ]*\) *$/\1/ 9388 p 9389 } 9390 }' 9391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9392 # Check for a 64-bit object if we didn't find anything. 9393 if test -z "$lt_cv_aix_libpath_"; then 9394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9395 fi 9396fi 9397rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399 if test -z "$lt_cv_aix_libpath_"; then 9400 lt_cv_aix_libpath_="/usr/lib:/lib" 9401 fi 9402 9403fi 9404 9405 aix_libpath=$lt_cv_aix_libpath_ 9406fi 9407 9408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9409 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9410 else 9411 if test "$host_cpu" = ia64; then 9412 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9413 allow_undefined_flag="-z nodefs" 9414 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" 9415 else 9416 # Determine the default libpath from the value encoded in an 9417 # empty executable. 9418 if test "${lt_cv_aix_libpath+set}" = set; then 9419 aix_libpath=$lt_cv_aix_libpath 9420else 9421 if ${lt_cv_aix_libpath_+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425/* end confdefs.h. */ 9426 9427int 9428main () 9429{ 9430 9431 ; 9432 return 0; 9433} 9434_ACEOF 9435if ac_fn_c_try_link "$LINENO"; then : 9436 9437 lt_aix_libpath_sed=' 9438 /Import File Strings/,/^$/ { 9439 /^0/ { 9440 s/^0 *\([^ ]*\) *$/\1/ 9441 p 9442 } 9443 }' 9444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9445 # Check for a 64-bit object if we didn't find anything. 9446 if test -z "$lt_cv_aix_libpath_"; then 9447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9448 fi 9449fi 9450rm -f core conftest.err conftest.$ac_objext \ 9451 conftest$ac_exeext conftest.$ac_ext 9452 if test -z "$lt_cv_aix_libpath_"; then 9453 lt_cv_aix_libpath_="/usr/lib:/lib" 9454 fi 9455 9456fi 9457 9458 aix_libpath=$lt_cv_aix_libpath_ 9459fi 9460 9461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9462 # Warning - without using the other run time loading flags, 9463 # -berok will link without error, but may produce a broken library. 9464 no_undefined_flag=' ${wl}-bernotok' 9465 allow_undefined_flag=' ${wl}-berok' 9466 if test "$with_gnu_ld" = yes; then 9467 # We only use this code for GNU lds that support --whole-archive. 9468 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9469 else 9470 # Exported symbols can be pulled into shared objects from archives 9471 whole_archive_flag_spec='$convenience' 9472 fi 9473 archive_cmds_need_lc=yes 9474 # This is similar to how AIX traditionally builds its shared libraries. 9475 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9476 fi 9477 fi 9478 ;; 9479 9480 amigaos*) 9481 case $host_cpu in 9482 powerpc) 9483 # see comment about AmigaOS4 .so support 9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9485 archive_expsym_cmds='' 9486 ;; 9487 m68k) 9488 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)' 9489 hardcode_libdir_flag_spec='-L$libdir' 9490 hardcode_minus_L=yes 9491 ;; 9492 esac 9493 ;; 9494 9495 bsdi[45]*) 9496 export_dynamic_flag_spec=-rdynamic 9497 ;; 9498 9499 cygwin* | mingw* | pw32* | cegcc*) 9500 # When not using gcc, we currently assume that we are using 9501 # Microsoft Visual C++. 9502 # hardcode_libdir_flag_spec is actually meaningless, as there is 9503 # no search path for DLLs. 9504 case $cc_basename in 9505 cl*) 9506 # Native MSVC 9507 hardcode_libdir_flag_spec=' ' 9508 allow_undefined_flag=unsupported 9509 always_export_symbols=yes 9510 file_list_spec='@' 9511 # Tell ltmain to make .lib files, not .a files. 9512 libext=lib 9513 # Tell ltmain to make .dll files, not .so files. 9514 shrext_cmds=".dll" 9515 # FIXME: Setting linknames here is a bad hack. 9516 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9518 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9519 else 9520 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9521 fi~ 9522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9523 linknames=' 9524 # The linker will not automatically build a static lib if we build a DLL. 9525 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9526 enable_shared_with_static_runtimes=yes 9527 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9529 # Don't use ranlib 9530 old_postinstall_cmds='chmod 644 $oldlib' 9531 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9532 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9533 case $lt_outputfile in 9534 *.exe|*.EXE) ;; 9535 *) 9536 lt_outputfile="$lt_outputfile.exe" 9537 lt_tool_outputfile="$lt_tool_outputfile.exe" 9538 ;; 9539 esac~ 9540 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9541 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9542 $RM "$lt_outputfile.manifest"; 9543 fi' 9544 ;; 9545 *) 9546 # Assume MSVC wrapper 9547 hardcode_libdir_flag_spec=' ' 9548 allow_undefined_flag=unsupported 9549 # Tell ltmain to make .lib files, not .a files. 9550 libext=lib 9551 # Tell ltmain to make .dll files, not .so files. 9552 shrext_cmds=".dll" 9553 # FIXME: Setting linknames here is a bad hack. 9554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9555 # The linker will automatically build a .lib file if we build a DLL. 9556 old_archive_from_new_cmds='true' 9557 # FIXME: Should let the user specify the lib program. 9558 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9559 enable_shared_with_static_runtimes=yes 9560 ;; 9561 esac 9562 ;; 9563 9564 darwin* | rhapsody*) 9565 9566 9567 archive_cmds_need_lc=no 9568 hardcode_direct=no 9569 hardcode_automatic=yes 9570 hardcode_shlibpath_var=unsupported 9571 if test "$lt_cv_ld_force_load" = "yes"; then 9572 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\"`' 9573 9574 else 9575 whole_archive_flag_spec='' 9576 fi 9577 link_all_deplibs=yes 9578 allow_undefined_flag="$_lt_dar_allow_undefined" 9579 case $cc_basename in 9580 ifort*) _lt_dar_can_shared=yes ;; 9581 *) _lt_dar_can_shared=$GCC ;; 9582 esac 9583 if test "$_lt_dar_can_shared" = "yes"; then 9584 output_verbose_link_cmd=func_echo_all 9585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9587 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}" 9588 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}" 9589 9590 else 9591 ld_shlibs=no 9592 fi 9593 9594 ;; 9595 9596 dgux*) 9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9598 hardcode_libdir_flag_spec='-L$libdir' 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9603 # support. Future versions do this automatically, but an explicit c++rt0.o 9604 # does not break anything, and helps significantly (at the cost of a little 9605 # extra space). 9606 freebsd2.2*) 9607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9608 hardcode_libdir_flag_spec='-R$libdir' 9609 hardcode_direct=yes 9610 hardcode_shlibpath_var=no 9611 ;; 9612 9613 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9614 freebsd2.*) 9615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9616 hardcode_direct=yes 9617 hardcode_minus_L=yes 9618 hardcode_shlibpath_var=no 9619 ;; 9620 9621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9622 freebsd* | dragonfly*) 9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9624 hardcode_libdir_flag_spec='-R$libdir' 9625 hardcode_direct=yes 9626 hardcode_shlibpath_var=no 9627 ;; 9628 9629 hpux9*) 9630 if test "$GCC" = yes; then 9631 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9632 else 9633 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9634 fi 9635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9636 hardcode_libdir_separator=: 9637 hardcode_direct=yes 9638 9639 # hardcode_minus_L: Not really in the search PATH, 9640 # but as the default location of the library. 9641 hardcode_minus_L=yes 9642 export_dynamic_flag_spec='${wl}-E' 9643 ;; 9644 9645 hpux10*) 9646 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9647 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9648 else 9649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9650 fi 9651 if test "$with_gnu_ld" = no; then 9652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9653 hardcode_libdir_separator=: 9654 hardcode_direct=yes 9655 hardcode_direct_absolute=yes 9656 export_dynamic_flag_spec='${wl}-E' 9657 # hardcode_minus_L: Not really in the search PATH, 9658 # but as the default location of the library. 9659 hardcode_minus_L=yes 9660 fi 9661 ;; 9662 9663 hpux11*) 9664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9665 case $host_cpu in 9666 hppa*64*) 9667 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 ;; 9669 ia64*) 9670 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9671 ;; 9672 *) 9673 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9674 ;; 9675 esac 9676 else 9677 case $host_cpu in 9678 hppa*64*) 9679 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9680 ;; 9681 ia64*) 9682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9683 ;; 9684 *) 9685 9686 # Older versions of the 11.00 compiler do not understand -b yet 9687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9689$as_echo_n "checking if $CC understands -b... " >&6; } 9690if ${lt_cv_prog_compiler__b+:} false; then : 9691 $as_echo_n "(cached) " >&6 9692else 9693 lt_cv_prog_compiler__b=no 9694 save_LDFLAGS="$LDFLAGS" 9695 LDFLAGS="$LDFLAGS -b" 9696 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9698 # The linker can only warn and ignore the option if not recognized 9699 # So say no if there are warnings 9700 if test -s conftest.err; then 9701 # Append any errors to the config.log. 9702 cat conftest.err 1>&5 9703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9705 if diff conftest.exp conftest.er2 >/dev/null; then 9706 lt_cv_prog_compiler__b=yes 9707 fi 9708 else 9709 lt_cv_prog_compiler__b=yes 9710 fi 9711 fi 9712 $RM -r conftest* 9713 LDFLAGS="$save_LDFLAGS" 9714 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9717$as_echo "$lt_cv_prog_compiler__b" >&6; } 9718 9719if test x"$lt_cv_prog_compiler__b" = xyes; then 9720 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9721else 9722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9723fi 9724 9725 ;; 9726 esac 9727 fi 9728 if test "$with_gnu_ld" = no; then 9729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9730 hardcode_libdir_separator=: 9731 9732 case $host_cpu in 9733 hppa*64*|ia64*) 9734 hardcode_direct=no 9735 hardcode_shlibpath_var=no 9736 ;; 9737 *) 9738 hardcode_direct=yes 9739 hardcode_direct_absolute=yes 9740 export_dynamic_flag_spec='${wl}-E' 9741 9742 # hardcode_minus_L: Not really in the search PATH, 9743 # but as the default location of the library. 9744 hardcode_minus_L=yes 9745 ;; 9746 esac 9747 fi 9748 ;; 9749 9750 irix5* | irix6* | nonstopux*) 9751 if test "$GCC" = yes; then 9752 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' 9753 # Try to use the -exported_symbol ld option, if it does not 9754 # work, assume that -exports_file does not work either and 9755 # implicitly export all symbols. 9756 # This should be the same for all languages, so no per-tag cache variable. 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9758$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9759if ${lt_cv_irix_exported_symbol+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 save_LDFLAGS="$LDFLAGS" 9763 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9765/* end confdefs.h. */ 9766int foo (void) { return 0; } 9767_ACEOF 9768if ac_fn_c_try_link "$LINENO"; then : 9769 lt_cv_irix_exported_symbol=yes 9770else 9771 lt_cv_irix_exported_symbol=no 9772fi 9773rm -f core conftest.err conftest.$ac_objext \ 9774 conftest$ac_exeext conftest.$ac_ext 9775 LDFLAGS="$save_LDFLAGS" 9776fi 9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9778$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9779 if test "$lt_cv_irix_exported_symbol" = yes; then 9780 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' 9781 fi 9782 else 9783 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' 9784 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' 9785 fi 9786 archive_cmds_need_lc='no' 9787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9788 hardcode_libdir_separator=: 9789 inherit_rpath=yes 9790 link_all_deplibs=yes 9791 ;; 9792 9793 netbsd* | netbsdelf*-gnu) 9794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9796 else 9797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9798 fi 9799 hardcode_libdir_flag_spec='-R$libdir' 9800 hardcode_direct=yes 9801 hardcode_shlibpath_var=no 9802 ;; 9803 9804 newsos6) 9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9806 hardcode_direct=yes 9807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9808 hardcode_libdir_separator=: 9809 hardcode_shlibpath_var=no 9810 ;; 9811 9812 *nto* | *qnx*) 9813 ;; 9814 9815 openbsd*) 9816 if test -f /usr/libexec/ld.so; then 9817 hardcode_direct=yes 9818 hardcode_shlibpath_var=no 9819 hardcode_direct_absolute=yes 9820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9822 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9824 export_dynamic_flag_spec='${wl}-E' 9825 else 9826 case $host_os in 9827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9829 hardcode_libdir_flag_spec='-R$libdir' 9830 ;; 9831 *) 9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9834 ;; 9835 esac 9836 fi 9837 else 9838 ld_shlibs=no 9839 fi 9840 ;; 9841 9842 os2*) 9843 hardcode_libdir_flag_spec='-L$libdir' 9844 hardcode_minus_L=yes 9845 allow_undefined_flag=unsupported 9846 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9848 ;; 9849 9850 osf3*) 9851 if test "$GCC" = yes; then 9852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9853 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' 9854 else 9855 allow_undefined_flag=' -expect_unresolved \*' 9856 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' 9857 fi 9858 archive_cmds_need_lc='no' 9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9860 hardcode_libdir_separator=: 9861 ;; 9862 9863 osf4* | osf5*) # as osf3* with the addition of -msym flag 9864 if test "$GCC" = yes; then 9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9866 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' 9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9868 else 9869 allow_undefined_flag=' -expect_unresolved \*' 9870 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' 9871 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~ 9872 $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' 9873 9874 # Both c and cxx compiler support -rpath directly 9875 hardcode_libdir_flag_spec='-rpath $libdir' 9876 fi 9877 archive_cmds_need_lc='no' 9878 hardcode_libdir_separator=: 9879 ;; 9880 9881 solaris*) 9882 no_undefined_flag=' -z defs' 9883 if test "$GCC" = yes; then 9884 wlarc='${wl}' 9885 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9887 $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' 9888 else 9889 case `$CC -V 2>&1` in 9890 *"Compilers 5.0"*) 9891 wlarc='' 9892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9895 ;; 9896 *) 9897 wlarc='${wl}' 9898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9901 ;; 9902 esac 9903 fi 9904 hardcode_libdir_flag_spec='-R$libdir' 9905 hardcode_shlibpath_var=no 9906 case $host_os in 9907 solaris2.[0-5] | solaris2.[0-5].*) ;; 9908 *) 9909 # The compiler driver will combine and reorder linker options, 9910 # but understands `-z linker_flag'. GCC discards it without `$wl', 9911 # but is careful enough not to reorder. 9912 # Supported since Solaris 2.6 (maybe 2.5.1?) 9913 if test "$GCC" = yes; then 9914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9915 else 9916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9917 fi 9918 ;; 9919 esac 9920 link_all_deplibs=yes 9921 ;; 9922 9923 sunos4*) 9924 if test "x$host_vendor" = xsequent; then 9925 # Use $CC to link under sequent, because it throws in some extra .o 9926 # files that make .init and .fini sections work. 9927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9928 else 9929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9930 fi 9931 hardcode_libdir_flag_spec='-L$libdir' 9932 hardcode_direct=yes 9933 hardcode_minus_L=yes 9934 hardcode_shlibpath_var=no 9935 ;; 9936 9937 sysv4) 9938 case $host_vendor in 9939 sni) 9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9941 hardcode_direct=yes # is this really true??? 9942 ;; 9943 siemens) 9944 ## LD is ld it makes a PLAMLIB 9945 ## CC just makes a GrossModule. 9946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9947 reload_cmds='$CC -r -o $output$reload_objs' 9948 hardcode_direct=no 9949 ;; 9950 motorola) 9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9953 ;; 9954 esac 9955 runpath_var='LD_RUN_PATH' 9956 hardcode_shlibpath_var=no 9957 ;; 9958 9959 sysv4.3*) 9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9961 hardcode_shlibpath_var=no 9962 export_dynamic_flag_spec='-Bexport' 9963 ;; 9964 9965 sysv4*MP*) 9966 if test -d /usr/nec; then 9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9968 hardcode_shlibpath_var=no 9969 runpath_var=LD_RUN_PATH 9970 hardcode_runpath_var=yes 9971 ld_shlibs=yes 9972 fi 9973 ;; 9974 9975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9976 no_undefined_flag='${wl}-z,text' 9977 archive_cmds_need_lc=no 9978 hardcode_shlibpath_var=no 9979 runpath_var='LD_RUN_PATH' 9980 9981 if test "$GCC" = yes; then 9982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9984 else 9985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9987 fi 9988 ;; 9989 9990 sysv5* | sco3.2v5* | sco5v6*) 9991 # Note: We can NOT use -z defs as we might desire, because we do not 9992 # link with -lc, and that would cause any symbols used from libc to 9993 # always be unresolved, which means just about no library would 9994 # ever link correctly. If we're not using GNU ld we use -z text 9995 # though, which does catch some bad symbols but isn't as heavy-handed 9996 # as -z defs. 9997 no_undefined_flag='${wl}-z,text' 9998 allow_undefined_flag='${wl}-z,nodefs' 9999 archive_cmds_need_lc=no 10000 hardcode_shlibpath_var=no 10001 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10002 hardcode_libdir_separator=':' 10003 link_all_deplibs=yes 10004 export_dynamic_flag_spec='${wl}-Bexport' 10005 runpath_var='LD_RUN_PATH' 10006 10007 if test "$GCC" = yes; then 10008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10010 else 10011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10013 fi 10014 ;; 10015 10016 uts4*) 10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 hardcode_libdir_flag_spec='-L$libdir' 10019 hardcode_shlibpath_var=no 10020 ;; 10021 10022 *) 10023 ld_shlibs=no 10024 ;; 10025 esac 10026 10027 if test x$host_vendor = xsni; then 10028 case $host in 10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10030 export_dynamic_flag_spec='${wl}-Blargedynsym' 10031 ;; 10032 esac 10033 fi 10034 fi 10035 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10037$as_echo "$ld_shlibs" >&6; } 10038test "$ld_shlibs" = no && can_build_shared=no 10039 10040with_gnu_ld=$with_gnu_ld 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056# 10057# Do we need to explicitly link libc? 10058# 10059case "x$archive_cmds_need_lc" in 10060x|xyes) 10061 # Assume -lc should be added 10062 archive_cmds_need_lc=yes 10063 10064 if test "$enable_shared" = yes && test "$GCC" = yes; then 10065 case $archive_cmds in 10066 *'~'*) 10067 # FIXME: we may have to deal with multi-command sequences. 10068 ;; 10069 '$CC '*) 10070 # Test whether the compiler implicitly links with -lc since on some 10071 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10072 # to ld, don't add -lc before -lgcc. 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10074$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10075if ${lt_cv_archive_cmds_need_lc+:} false; then : 10076 $as_echo_n "(cached) " >&6 10077else 10078 $RM conftest* 10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10080 10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10082 (eval $ac_compile) 2>&5 10083 ac_status=$? 10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10085 test $ac_status = 0; } 2>conftest.err; then 10086 soname=conftest 10087 lib=conftest 10088 libobjs=conftest.$ac_objext 10089 deplibs= 10090 wl=$lt_prog_compiler_wl 10091 pic_flag=$lt_prog_compiler_pic 10092 compiler_flags=-v 10093 linker_flags=-v 10094 verstring= 10095 output_objdir=. 10096 libname=conftest 10097 lt_save_allow_undefined_flag=$allow_undefined_flag 10098 allow_undefined_flag= 10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10101 ac_status=$? 10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10103 test $ac_status = 0; } 10104 then 10105 lt_cv_archive_cmds_need_lc=no 10106 else 10107 lt_cv_archive_cmds_need_lc=yes 10108 fi 10109 allow_undefined_flag=$lt_save_allow_undefined_flag 10110 else 10111 cat conftest.err 1>&5 10112 fi 10113 $RM conftest* 10114 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10117$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10119 ;; 10120 esac 10121 fi 10122 ;; 10123esac 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10277$as_echo_n "checking dynamic linker characteristics... " >&6; } 10278 10279if test "$GCC" = yes; then 10280 case $host_os in 10281 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10282 *) lt_awk_arg="/^libraries:/" ;; 10283 esac 10284 case $host_os in 10285 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10286 *) lt_sed_strip_eq="s,=/,/,g" ;; 10287 esac 10288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10289 case $lt_search_path_spec in 10290 *\;*) 10291 # if the path contains ";" then we assume it to be the separator 10292 # otherwise default to the standard path separator (i.e. ":") - it is 10293 # assumed that no part of a normal pathname contains ";" but that should 10294 # okay in the real world where ";" in dirpaths is itself problematic. 10295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10296 ;; 10297 *) 10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10299 ;; 10300 esac 10301 # Ok, now we have the path, separated by spaces, we can step through it 10302 # and add multilib dir if necessary. 10303 lt_tmp_lt_search_path_spec= 10304 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10305 for lt_sys_path in $lt_search_path_spec; do 10306 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10308 else 10309 test -d "$lt_sys_path" && \ 10310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10311 fi 10312 done 10313 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10314BEGIN {RS=" "; FS="/|\n";} { 10315 lt_foo=""; 10316 lt_count=0; 10317 for (lt_i = NF; lt_i > 0; lt_i--) { 10318 if ($lt_i != "" && $lt_i != ".") { 10319 if ($lt_i == "..") { 10320 lt_count++; 10321 } else { 10322 if (lt_count == 0) { 10323 lt_foo="/" $lt_i lt_foo; 10324 } else { 10325 lt_count--; 10326 } 10327 } 10328 } 10329 } 10330 if (lt_foo != "") { lt_freq[lt_foo]++; } 10331 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10332}'` 10333 # AWK program above erroneously prepends '/' to C:/dos/paths 10334 # for these hosts. 10335 case $host_os in 10336 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10337 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10338 esac 10339 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10340else 10341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10342fi 10343library_names_spec= 10344libname_spec='lib$name' 10345soname_spec= 10346shrext_cmds=".so" 10347postinstall_cmds= 10348postuninstall_cmds= 10349finish_cmds= 10350finish_eval= 10351shlibpath_var= 10352shlibpath_overrides_runpath=unknown 10353version_type=none 10354dynamic_linker="$host_os ld.so" 10355sys_lib_dlsearch_path_spec="/lib /usr/lib" 10356need_lib_prefix=unknown 10357hardcode_into_libs=no 10358 10359# when you set need_version to no, make sure it does not cause -set_version 10360# flags to be left without arguments 10361need_version=unknown 10362 10363case $host_os in 10364aix3*) 10365 version_type=linux # correct to gnu/linux during the next big refactor 10366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10367 shlibpath_var=LIBPATH 10368 10369 # AIX 3 has no versioning support, so we append a major version to the name. 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 ;; 10372 10373aix[4-9]*) 10374 version_type=linux # correct to gnu/linux during the next big refactor 10375 need_lib_prefix=no 10376 need_version=no 10377 hardcode_into_libs=yes 10378 if test "$host_cpu" = ia64; then 10379 # AIX 5 supports IA64 10380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10381 shlibpath_var=LD_LIBRARY_PATH 10382 else 10383 # With GCC up to 2.95.x, collect2 would create an import file 10384 # for dependence libraries. The import file would start with 10385 # the line `#! .'. This would cause the generated library to 10386 # depend on `.', always an invalid library. This was fixed in 10387 # development snapshots of GCC prior to 3.0. 10388 case $host_os in 10389 aix4 | aix4.[01] | aix4.[01].*) 10390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10391 echo ' yes ' 10392 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10393 : 10394 else 10395 can_build_shared=no 10396 fi 10397 ;; 10398 esac 10399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10400 # soname into executable. Probably we can add versioning support to 10401 # collect2, so additional links can be useful in future. 10402 if test "$aix_use_runtimelinking" = yes; then 10403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10404 # instead of lib<name>.a to let people know that these are not 10405 # typical AIX shared libraries. 10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10407 else 10408 # We preserve .a as extension for shared libraries through AIX4.2 10409 # and later when we are not doing run time linking. 10410 library_names_spec='${libname}${release}.a $libname.a' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 fi 10413 shlibpath_var=LIBPATH 10414 fi 10415 ;; 10416 10417amigaos*) 10418 case $host_cpu in 10419 powerpc) 10420 # Since July 2007 AmigaOS4 officially supports .so libraries. 10421 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10423 ;; 10424 m68k) 10425 library_names_spec='$libname.ixlibrary $libname.a' 10426 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10427 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10428 ;; 10429 esac 10430 ;; 10431 10432beos*) 10433 library_names_spec='${libname}${shared_ext}' 10434 dynamic_linker="$host_os ld.so" 10435 shlibpath_var=LIBRARY_PATH 10436 ;; 10437 10438bsdi[45]*) 10439 version_type=linux # correct to gnu/linux during the next big refactor 10440 need_version=no 10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10442 soname_spec='${libname}${release}${shared_ext}$major' 10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10444 shlibpath_var=LD_LIBRARY_PATH 10445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10447 # the default ld.so.conf also contains /usr/contrib/lib and 10448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10449 # libtool to hard-code these into programs 10450 ;; 10451 10452cygwin* | mingw* | pw32* | cegcc*) 10453 version_type=windows 10454 shrext_cmds=".dll" 10455 need_version=no 10456 need_lib_prefix=no 10457 10458 case $GCC,$cc_basename in 10459 yes,*) 10460 # gcc 10461 library_names_spec='$libname.dll.a' 10462 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10463 postinstall_cmds='base_file=`basename \${file}`~ 10464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10465 dldir=$destdir/`dirname \$dlpath`~ 10466 test -d \$dldir || mkdir -p \$dldir~ 10467 $install_prog $dir/$dlname \$dldir/$dlname~ 10468 chmod a+x \$dldir/$dlname~ 10469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10471 fi' 10472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10473 dlpath=$dir/\$dldll~ 10474 $RM \$dlpath' 10475 shlibpath_overrides_runpath=yes 10476 10477 case $host_os in 10478 cygwin*) 10479 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10481 10482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10483 ;; 10484 mingw* | cegcc*) 10485 # MinGW DLLs use traditional 'lib' prefix 10486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10487 ;; 10488 pw32*) 10489 # pw32 DLLs use 'pw' prefix rather than 'lib' 10490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10491 ;; 10492 esac 10493 dynamic_linker='Win32 ld.exe' 10494 ;; 10495 10496 *,cl*) 10497 # Native MSVC 10498 libname_spec='$name' 10499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10500 library_names_spec='${libname}.dll.lib' 10501 10502 case $build_os in 10503 mingw*) 10504 sys_lib_search_path_spec= 10505 lt_save_ifs=$IFS 10506 IFS=';' 10507 for lt_path in $LIB 10508 do 10509 IFS=$lt_save_ifs 10510 # Let DOS variable expansion print the short 8.3 style file name. 10511 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10512 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10513 done 10514 IFS=$lt_save_ifs 10515 # Convert to MSYS style. 10516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10517 ;; 10518 cygwin*) 10519 # Convert to unix form, then to dos form, then back to unix form 10520 # but this time dos style (no spaces!) so that the unix form looks 10521 # like /cygdrive/c/PROGRA~1:/cygdr... 10522 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10523 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10524 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10525 ;; 10526 *) 10527 sys_lib_search_path_spec="$LIB" 10528 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10529 # It is most probably a Windows format PATH. 10530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10531 else 10532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10533 fi 10534 # FIXME: find the short name or the path components, as spaces are 10535 # common. (e.g. "Program Files" -> "PROGRA~1") 10536 ;; 10537 esac 10538 10539 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10540 postinstall_cmds='base_file=`basename \${file}`~ 10541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10542 dldir=$destdir/`dirname \$dlpath`~ 10543 test -d \$dldir || mkdir -p \$dldir~ 10544 $install_prog $dir/$dlname \$dldir/$dlname' 10545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10546 dlpath=$dir/\$dldll~ 10547 $RM \$dlpath' 10548 shlibpath_overrides_runpath=yes 10549 dynamic_linker='Win32 link.exe' 10550 ;; 10551 10552 *) 10553 # Assume MSVC wrapper 10554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10555 dynamic_linker='Win32 ld.exe' 10556 ;; 10557 esac 10558 # FIXME: first we should search . and the directory the executable is in 10559 shlibpath_var=PATH 10560 ;; 10561 10562darwin* | rhapsody*) 10563 dynamic_linker="$host_os dyld" 10564 version_type=darwin 10565 need_lib_prefix=no 10566 need_version=no 10567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10568 soname_spec='${libname}${release}${major}$shared_ext' 10569 shlibpath_overrides_runpath=yes 10570 shlibpath_var=DYLD_LIBRARY_PATH 10571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10572 10573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10575 ;; 10576 10577dgux*) 10578 version_type=linux # correct to gnu/linux during the next big refactor 10579 need_lib_prefix=no 10580 need_version=no 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10582 soname_spec='${libname}${release}${shared_ext}$major' 10583 shlibpath_var=LD_LIBRARY_PATH 10584 ;; 10585 10586freebsd* | dragonfly*) 10587 # DragonFly does not have aout. When/if they implement a new 10588 # versioning mechanism, adjust this. 10589 if test -x /usr/bin/objformat; then 10590 objformat=`/usr/bin/objformat` 10591 else 10592 case $host_os in 10593 freebsd[23].*) objformat=aout ;; 10594 *) objformat=elf ;; 10595 esac 10596 fi 10597 version_type=freebsd-$objformat 10598 case $version_type in 10599 freebsd-elf*) 10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10601 need_version=no 10602 need_lib_prefix=no 10603 ;; 10604 freebsd-*) 10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10606 need_version=yes 10607 ;; 10608 esac 10609 shlibpath_var=LD_LIBRARY_PATH 10610 case $host_os in 10611 freebsd2.*) 10612 shlibpath_overrides_runpath=yes 10613 ;; 10614 freebsd3.[01]* | freebsdelf3.[01]*) 10615 shlibpath_overrides_runpath=yes 10616 hardcode_into_libs=yes 10617 ;; 10618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10620 shlibpath_overrides_runpath=no 10621 hardcode_into_libs=yes 10622 ;; 10623 *) # from 4.6 on, and DragonFly 10624 shlibpath_overrides_runpath=yes 10625 hardcode_into_libs=yes 10626 ;; 10627 esac 10628 ;; 10629 10630haiku*) 10631 version_type=linux # correct to gnu/linux during the next big refactor 10632 need_lib_prefix=no 10633 need_version=no 10634 dynamic_linker="$host_os runtime_loader" 10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10636 soname_spec='${libname}${release}${shared_ext}$major' 10637 shlibpath_var=LIBRARY_PATH 10638 shlibpath_overrides_runpath=yes 10639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10640 hardcode_into_libs=yes 10641 ;; 10642 10643hpux9* | hpux10* | hpux11*) 10644 # Give a soname corresponding to the major version so that dld.sl refuses to 10645 # link against other versions. 10646 version_type=sunos 10647 need_lib_prefix=no 10648 need_version=no 10649 case $host_cpu in 10650 ia64*) 10651 shrext_cmds='.so' 10652 hardcode_into_libs=yes 10653 dynamic_linker="$host_os dld.so" 10654 shlibpath_var=LD_LIBRARY_PATH 10655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10657 soname_spec='${libname}${release}${shared_ext}$major' 10658 if test "X$HPUX_IA64_MODE" = X32; then 10659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10660 else 10661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10662 fi 10663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10664 ;; 10665 hppa*64*) 10666 shrext_cmds='.sl' 10667 hardcode_into_libs=yes 10668 dynamic_linker="$host_os dld.sl" 10669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10672 soname_spec='${libname}${release}${shared_ext}$major' 10673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10675 ;; 10676 *) 10677 shrext_cmds='.sl' 10678 dynamic_linker="$host_os dld.sl" 10679 shlibpath_var=SHLIB_PATH 10680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10682 soname_spec='${libname}${release}${shared_ext}$major' 10683 ;; 10684 esac 10685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10686 postinstall_cmds='chmod 555 $lib' 10687 # or fails outright, so override atomically: 10688 install_override_mode=555 10689 ;; 10690 10691interix[3-9]*) 10692 version_type=linux # correct to gnu/linux during the next big refactor 10693 need_lib_prefix=no 10694 need_version=no 10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10696 soname_spec='${libname}${release}${shared_ext}$major' 10697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=no 10700 hardcode_into_libs=yes 10701 ;; 10702 10703irix5* | irix6* | nonstopux*) 10704 case $host_os in 10705 nonstopux*) version_type=nonstopux ;; 10706 *) 10707 if test "$lt_cv_prog_gnu_ld" = yes; then 10708 version_type=linux # correct to gnu/linux during the next big refactor 10709 else 10710 version_type=irix 10711 fi ;; 10712 esac 10713 need_lib_prefix=no 10714 need_version=no 10715 soname_spec='${libname}${release}${shared_ext}$major' 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10717 case $host_os in 10718 irix5* | nonstopux*) 10719 libsuff= shlibsuff= 10720 ;; 10721 *) 10722 case $LD in # libtool.m4 will add one of these switches to LD 10723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10724 libsuff= shlibsuff= libmagic=32-bit;; 10725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10726 libsuff=32 shlibsuff=N32 libmagic=N32;; 10727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10728 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10729 *) libsuff= shlibsuff= libmagic=never-match;; 10730 esac 10731 ;; 10732 esac 10733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10734 shlibpath_overrides_runpath=no 10735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10737 hardcode_into_libs=yes 10738 ;; 10739 10740# No shared lib support for Linux oldld, aout, or coff. 10741linux*oldld* | linux*aout* | linux*coff*) 10742 dynamic_linker=no 10743 ;; 10744 10745# This must be glibc/ELF. 10746linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10747 version_type=linux # correct to gnu/linux during the next big refactor 10748 need_lib_prefix=no 10749 need_version=no 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10753 shlibpath_var=LD_LIBRARY_PATH 10754 shlibpath_overrides_runpath=no 10755 10756 # Some binutils ld are patched to set DT_RUNPATH 10757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10758 $as_echo_n "(cached) " >&6 10759else 10760 lt_cv_shlibpath_overrides_runpath=no 10761 save_LDFLAGS=$LDFLAGS 10762 save_libdir=$libdir 10763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10766/* end confdefs.h. */ 10767 10768int 10769main () 10770{ 10771 10772 ; 10773 return 0; 10774} 10775_ACEOF 10776if ac_fn_c_try_link "$LINENO"; then : 10777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10778 lt_cv_shlibpath_overrides_runpath=yes 10779fi 10780fi 10781rm -f core conftest.err conftest.$ac_objext \ 10782 conftest$ac_exeext conftest.$ac_ext 10783 LDFLAGS=$save_LDFLAGS 10784 libdir=$save_libdir 10785 10786fi 10787 10788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10789 10790 # This implies no fast_install, which is unacceptable. 10791 # Some rework will be needed to allow for fast_install 10792 # before this can be enabled. 10793 hardcode_into_libs=yes 10794 10795 # Append ld.so.conf contents to the search path 10796 if test -f /etc/ld.so.conf; then 10797 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' ' '` 10798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10799 fi 10800 10801 # We used to test for /lib/ld.so.1 and disable shared libraries on 10802 # powerpc, because MkLinux only supported shared libraries with the 10803 # GNU dynamic linker. Since this was broken with cross compilers, 10804 # most powerpc-linux boxes support dynamic linking these days and 10805 # people can always --disable-shared, the test was removed, and we 10806 # assume the GNU/Linux dynamic linker is in use. 10807 dynamic_linker='GNU/Linux ld.so' 10808 ;; 10809 10810netbsdelf*-gnu) 10811 version_type=linux 10812 need_lib_prefix=no 10813 need_version=no 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10815 soname_spec='${libname}${release}${shared_ext}$major' 10816 shlibpath_var=LD_LIBRARY_PATH 10817 shlibpath_overrides_runpath=no 10818 hardcode_into_libs=yes 10819 dynamic_linker='NetBSD ld.elf_so' 10820 ;; 10821 10822netbsd*) 10823 version_type=sunos 10824 need_lib_prefix=no 10825 need_version=no 10826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10829 dynamic_linker='NetBSD (a.out) ld.so' 10830 else 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 dynamic_linker='NetBSD ld.elf_so' 10834 fi 10835 shlibpath_var=LD_LIBRARY_PATH 10836 shlibpath_overrides_runpath=yes 10837 hardcode_into_libs=yes 10838 ;; 10839 10840newsos6) 10841 version_type=linux # correct to gnu/linux during the next big refactor 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10843 shlibpath_var=LD_LIBRARY_PATH 10844 shlibpath_overrides_runpath=yes 10845 ;; 10846 10847*nto* | *qnx*) 10848 version_type=qnx 10849 need_lib_prefix=no 10850 need_version=no 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10852 soname_spec='${libname}${release}${shared_ext}$major' 10853 shlibpath_var=LD_LIBRARY_PATH 10854 shlibpath_overrides_runpath=no 10855 hardcode_into_libs=yes 10856 dynamic_linker='ldqnx.so' 10857 ;; 10858 10859openbsd*) 10860 version_type=sunos 10861 sys_lib_dlsearch_path_spec="/usr/lib" 10862 need_lib_prefix=no 10863 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10864 case $host_os in 10865 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10866 *) need_version=no ;; 10867 esac 10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10870 shlibpath_var=LD_LIBRARY_PATH 10871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10872 case $host_os in 10873 openbsd2.[89] | openbsd2.[89].*) 10874 shlibpath_overrides_runpath=no 10875 ;; 10876 *) 10877 shlibpath_overrides_runpath=yes 10878 ;; 10879 esac 10880 else 10881 shlibpath_overrides_runpath=yes 10882 fi 10883 ;; 10884 10885os2*) 10886 libname_spec='$name' 10887 shrext_cmds=".dll" 10888 need_lib_prefix=no 10889 library_names_spec='$libname${shared_ext} $libname.a' 10890 dynamic_linker='OS/2 ld.exe' 10891 shlibpath_var=LIBPATH 10892 ;; 10893 10894osf3* | osf4* | osf5*) 10895 version_type=osf 10896 need_lib_prefix=no 10897 need_version=no 10898 soname_spec='${libname}${release}${shared_ext}$major' 10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10903 ;; 10904 10905rdos*) 10906 dynamic_linker=no 10907 ;; 10908 10909solaris*) 10910 version_type=linux # correct to gnu/linux during the next big refactor 10911 need_lib_prefix=no 10912 need_version=no 10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10914 soname_spec='${libname}${release}${shared_ext}$major' 10915 shlibpath_var=LD_LIBRARY_PATH 10916 shlibpath_overrides_runpath=yes 10917 hardcode_into_libs=yes 10918 # ldd complains unless libraries are executable 10919 postinstall_cmds='chmod +x $lib' 10920 ;; 10921 10922sunos4*) 10923 version_type=sunos 10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10926 shlibpath_var=LD_LIBRARY_PATH 10927 shlibpath_overrides_runpath=yes 10928 if test "$with_gnu_ld" = yes; then 10929 need_lib_prefix=no 10930 fi 10931 need_version=yes 10932 ;; 10933 10934sysv4 | sysv4.3*) 10935 version_type=linux # correct to gnu/linux during the next big refactor 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10937 soname_spec='${libname}${release}${shared_ext}$major' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 case $host_vendor in 10940 sni) 10941 shlibpath_overrides_runpath=no 10942 need_lib_prefix=no 10943 runpath_var=LD_RUN_PATH 10944 ;; 10945 siemens) 10946 need_lib_prefix=no 10947 ;; 10948 motorola) 10949 need_lib_prefix=no 10950 need_version=no 10951 shlibpath_overrides_runpath=no 10952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10953 ;; 10954 esac 10955 ;; 10956 10957sysv4*MP*) 10958 if test -d /usr/nec ;then 10959 version_type=linux # correct to gnu/linux during the next big refactor 10960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10961 soname_spec='$libname${shared_ext}.$major' 10962 shlibpath_var=LD_LIBRARY_PATH 10963 fi 10964 ;; 10965 10966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10967 version_type=freebsd-elf 10968 need_lib_prefix=no 10969 need_version=no 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10971 soname_spec='${libname}${release}${shared_ext}$major' 10972 shlibpath_var=LD_LIBRARY_PATH 10973 shlibpath_overrides_runpath=yes 10974 hardcode_into_libs=yes 10975 if test "$with_gnu_ld" = yes; then 10976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10977 else 10978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10979 case $host_os in 10980 sco3.2v5*) 10981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10982 ;; 10983 esac 10984 fi 10985 sys_lib_dlsearch_path_spec='/usr/lib' 10986 ;; 10987 10988tpf*) 10989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10990 version_type=linux # correct to gnu/linux during the next big refactor 10991 need_lib_prefix=no 10992 need_version=no 10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10994 shlibpath_var=LD_LIBRARY_PATH 10995 shlibpath_overrides_runpath=no 10996 hardcode_into_libs=yes 10997 ;; 10998 10999uts4*) 11000 version_type=linux # correct to gnu/linux during the next big refactor 11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11002 soname_spec='${libname}${release}${shared_ext}$major' 11003 shlibpath_var=LD_LIBRARY_PATH 11004 ;; 11005 11006*) 11007 dynamic_linker=no 11008 ;; 11009esac 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11011$as_echo "$dynamic_linker" >&6; } 11012test "$dynamic_linker" = no && can_build_shared=no 11013 11014variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11015if test "$GCC" = yes; then 11016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11017fi 11018 11019if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11020 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11021fi 11022if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11023 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11024fi 11025 11026 11027 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11118$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11119hardcode_action= 11120if test -n "$hardcode_libdir_flag_spec" || 11121 test -n "$runpath_var" || 11122 test "X$hardcode_automatic" = "Xyes" ; then 11123 11124 # We can hardcode non-existent directories. 11125 if test "$hardcode_direct" != no && 11126 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11127 # have to relink, otherwise we might link with an installed library 11128 # when we should be linking with a yet-to-be-installed one 11129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11130 test "$hardcode_minus_L" != no; then 11131 # Linking always hardcodes the temporary library directory. 11132 hardcode_action=relink 11133 else 11134 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11135 hardcode_action=immediate 11136 fi 11137else 11138 # We cannot hardcode anything, or else we can only hardcode existing 11139 # directories. 11140 hardcode_action=unsupported 11141fi 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11143$as_echo "$hardcode_action" >&6; } 11144 11145if test "$hardcode_action" = relink || 11146 test "$inherit_rpath" = yes; then 11147 # Fast installation is not supported 11148 enable_fast_install=no 11149elif test "$shlibpath_overrides_runpath" = yes || 11150 test "$enable_shared" = no; then 11151 # Fast installation is not necessary 11152 enable_fast_install=needless 11153fi 11154 11155 11156 11157 11158 11159 11160 if test "x$enable_dlopen" != xyes; then 11161 enable_dlopen=unknown 11162 enable_dlopen_self=unknown 11163 enable_dlopen_self_static=unknown 11164else 11165 lt_cv_dlopen=no 11166 lt_cv_dlopen_libs= 11167 11168 case $host_os in 11169 beos*) 11170 lt_cv_dlopen="load_add_on" 11171 lt_cv_dlopen_libs= 11172 lt_cv_dlopen_self=yes 11173 ;; 11174 11175 mingw* | pw32* | cegcc*) 11176 lt_cv_dlopen="LoadLibrary" 11177 lt_cv_dlopen_libs= 11178 ;; 11179 11180 cygwin*) 11181 lt_cv_dlopen="dlopen" 11182 lt_cv_dlopen_libs= 11183 ;; 11184 11185 darwin*) 11186 # if libdl is installed we need to link against it 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11188$as_echo_n "checking for dlopen in -ldl... " >&6; } 11189if ${ac_cv_lib_dl_dlopen+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 ac_check_lib_save_LIBS=$LIBS 11193LIBS="-ldl $LIBS" 11194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11195/* end confdefs.h. */ 11196 11197/* Override any GCC internal prototype to avoid an error. 11198 Use char because int might match the return type of a GCC 11199 builtin and then its argument prototype would still apply. */ 11200#ifdef __cplusplus 11201extern "C" 11202#endif 11203char dlopen (); 11204int 11205main () 11206{ 11207return dlopen (); 11208 ; 11209 return 0; 11210} 11211_ACEOF 11212if ac_fn_c_try_link "$LINENO"; then : 11213 ac_cv_lib_dl_dlopen=yes 11214else 11215 ac_cv_lib_dl_dlopen=no 11216fi 11217rm -f core conftest.err conftest.$ac_objext \ 11218 conftest$ac_exeext conftest.$ac_ext 11219LIBS=$ac_check_lib_save_LIBS 11220fi 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11222$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11223if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11225else 11226 11227 lt_cv_dlopen="dyld" 11228 lt_cv_dlopen_libs= 11229 lt_cv_dlopen_self=yes 11230 11231fi 11232 11233 ;; 11234 11235 *) 11236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11237if test "x$ac_cv_func_shl_load" = xyes; then : 11238 lt_cv_dlopen="shl_load" 11239else 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11241$as_echo_n "checking for shl_load in -ldld... " >&6; } 11242if ${ac_cv_lib_dld_shl_load+:} false; then : 11243 $as_echo_n "(cached) " >&6 11244else 11245 ac_check_lib_save_LIBS=$LIBS 11246LIBS="-ldld $LIBS" 11247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249 11250/* Override any GCC internal prototype to avoid an error. 11251 Use char because int might match the return type of a GCC 11252 builtin and then its argument prototype would still apply. */ 11253#ifdef __cplusplus 11254extern "C" 11255#endif 11256char shl_load (); 11257int 11258main () 11259{ 11260return shl_load (); 11261 ; 11262 return 0; 11263} 11264_ACEOF 11265if ac_fn_c_try_link "$LINENO"; then : 11266 ac_cv_lib_dld_shl_load=yes 11267else 11268 ac_cv_lib_dld_shl_load=no 11269fi 11270rm -f core conftest.err conftest.$ac_objext \ 11271 conftest$ac_exeext conftest.$ac_ext 11272LIBS=$ac_check_lib_save_LIBS 11273fi 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11275$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11276if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11278else 11279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11280if test "x$ac_cv_func_dlopen" = xyes; then : 11281 lt_cv_dlopen="dlopen" 11282else 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11284$as_echo_n "checking for dlopen in -ldl... " >&6; } 11285if ${ac_cv_lib_dl_dlopen+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287else 11288 ac_check_lib_save_LIBS=$LIBS 11289LIBS="-ldl $LIBS" 11290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11291/* end confdefs.h. */ 11292 11293/* Override any GCC internal prototype to avoid an error. 11294 Use char because int might match the return type of a GCC 11295 builtin and then its argument prototype would still apply. */ 11296#ifdef __cplusplus 11297extern "C" 11298#endif 11299char dlopen (); 11300int 11301main () 11302{ 11303return dlopen (); 11304 ; 11305 return 0; 11306} 11307_ACEOF 11308if ac_fn_c_try_link "$LINENO"; then : 11309 ac_cv_lib_dl_dlopen=yes 11310else 11311 ac_cv_lib_dl_dlopen=no 11312fi 11313rm -f core conftest.err conftest.$ac_objext \ 11314 conftest$ac_exeext conftest.$ac_ext 11315LIBS=$ac_check_lib_save_LIBS 11316fi 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11318$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11319if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11321else 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11323$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11324if ${ac_cv_lib_svld_dlopen+:} false; then : 11325 $as_echo_n "(cached) " >&6 11326else 11327 ac_check_lib_save_LIBS=$LIBS 11328LIBS="-lsvld $LIBS" 11329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11330/* end confdefs.h. */ 11331 11332/* Override any GCC internal prototype to avoid an error. 11333 Use char because int might match the return type of a GCC 11334 builtin and then its argument prototype would still apply. */ 11335#ifdef __cplusplus 11336extern "C" 11337#endif 11338char dlopen (); 11339int 11340main () 11341{ 11342return dlopen (); 11343 ; 11344 return 0; 11345} 11346_ACEOF 11347if ac_fn_c_try_link "$LINENO"; then : 11348 ac_cv_lib_svld_dlopen=yes 11349else 11350 ac_cv_lib_svld_dlopen=no 11351fi 11352rm -f core conftest.err conftest.$ac_objext \ 11353 conftest$ac_exeext conftest.$ac_ext 11354LIBS=$ac_check_lib_save_LIBS 11355fi 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11357$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11358if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11360else 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11362$as_echo_n "checking for dld_link in -ldld... " >&6; } 11363if ${ac_cv_lib_dld_dld_link+:} false; then : 11364 $as_echo_n "(cached) " >&6 11365else 11366 ac_check_lib_save_LIBS=$LIBS 11367LIBS="-ldld $LIBS" 11368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11369/* end confdefs.h. */ 11370 11371/* Override any GCC internal prototype to avoid an error. 11372 Use char because int might match the return type of a GCC 11373 builtin and then its argument prototype would still apply. */ 11374#ifdef __cplusplus 11375extern "C" 11376#endif 11377char dld_link (); 11378int 11379main () 11380{ 11381return dld_link (); 11382 ; 11383 return 0; 11384} 11385_ACEOF 11386if ac_fn_c_try_link "$LINENO"; then : 11387 ac_cv_lib_dld_dld_link=yes 11388else 11389 ac_cv_lib_dld_dld_link=no 11390fi 11391rm -f core conftest.err conftest.$ac_objext \ 11392 conftest$ac_exeext conftest.$ac_ext 11393LIBS=$ac_check_lib_save_LIBS 11394fi 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11396$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11397if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11399fi 11400 11401 11402fi 11403 11404 11405fi 11406 11407 11408fi 11409 11410 11411fi 11412 11413 11414fi 11415 11416 ;; 11417 esac 11418 11419 if test "x$lt_cv_dlopen" != xno; then 11420 enable_dlopen=yes 11421 else 11422 enable_dlopen=no 11423 fi 11424 11425 case $lt_cv_dlopen in 11426 dlopen) 11427 save_CPPFLAGS="$CPPFLAGS" 11428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11429 11430 save_LDFLAGS="$LDFLAGS" 11431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11432 11433 save_LIBS="$LIBS" 11434 LIBS="$lt_cv_dlopen_libs $LIBS" 11435 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11437$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11438if ${lt_cv_dlopen_self+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440else 11441 if test "$cross_compiling" = yes; then : 11442 lt_cv_dlopen_self=cross 11443else 11444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11445 lt_status=$lt_dlunknown 11446 cat > conftest.$ac_ext <<_LT_EOF 11447#line $LINENO "configure" 11448#include "confdefs.h" 11449 11450#if HAVE_DLFCN_H 11451#include <dlfcn.h> 11452#endif 11453 11454#include <stdio.h> 11455 11456#ifdef RTLD_GLOBAL 11457# define LT_DLGLOBAL RTLD_GLOBAL 11458#else 11459# ifdef DL_GLOBAL 11460# define LT_DLGLOBAL DL_GLOBAL 11461# else 11462# define LT_DLGLOBAL 0 11463# endif 11464#endif 11465 11466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11467 find out it does not work in some platform. */ 11468#ifndef LT_DLLAZY_OR_NOW 11469# ifdef RTLD_LAZY 11470# define LT_DLLAZY_OR_NOW RTLD_LAZY 11471# else 11472# ifdef DL_LAZY 11473# define LT_DLLAZY_OR_NOW DL_LAZY 11474# else 11475# ifdef RTLD_NOW 11476# define LT_DLLAZY_OR_NOW RTLD_NOW 11477# else 11478# ifdef DL_NOW 11479# define LT_DLLAZY_OR_NOW DL_NOW 11480# else 11481# define LT_DLLAZY_OR_NOW 0 11482# endif 11483# endif 11484# endif 11485# endif 11486#endif 11487 11488/* When -fvisbility=hidden is used, assume the code has been annotated 11489 correspondingly for the symbols needed. */ 11490#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11491int fnord () __attribute__((visibility("default"))); 11492#endif 11493 11494int fnord () { return 42; } 11495int main () 11496{ 11497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11498 int status = $lt_dlunknown; 11499 11500 if (self) 11501 { 11502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11503 else 11504 { 11505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11506 else puts (dlerror ()); 11507 } 11508 /* dlclose (self); */ 11509 } 11510 else 11511 puts (dlerror ()); 11512 11513 return status; 11514} 11515_LT_EOF 11516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11517 (eval $ac_link) 2>&5 11518 ac_status=$? 11519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11521 (./conftest; exit; ) >&5 2>/dev/null 11522 lt_status=$? 11523 case x$lt_status in 11524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11527 esac 11528 else : 11529 # compilation failed 11530 lt_cv_dlopen_self=no 11531 fi 11532fi 11533rm -fr conftest* 11534 11535 11536fi 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11538$as_echo "$lt_cv_dlopen_self" >&6; } 11539 11540 if test "x$lt_cv_dlopen_self" = xyes; then 11541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11543$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11544if ${lt_cv_dlopen_self_static+:} false; then : 11545 $as_echo_n "(cached) " >&6 11546else 11547 if test "$cross_compiling" = yes; then : 11548 lt_cv_dlopen_self_static=cross 11549else 11550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11551 lt_status=$lt_dlunknown 11552 cat > conftest.$ac_ext <<_LT_EOF 11553#line $LINENO "configure" 11554#include "confdefs.h" 11555 11556#if HAVE_DLFCN_H 11557#include <dlfcn.h> 11558#endif 11559 11560#include <stdio.h> 11561 11562#ifdef RTLD_GLOBAL 11563# define LT_DLGLOBAL RTLD_GLOBAL 11564#else 11565# ifdef DL_GLOBAL 11566# define LT_DLGLOBAL DL_GLOBAL 11567# else 11568# define LT_DLGLOBAL 0 11569# endif 11570#endif 11571 11572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11573 find out it does not work in some platform. */ 11574#ifndef LT_DLLAZY_OR_NOW 11575# ifdef RTLD_LAZY 11576# define LT_DLLAZY_OR_NOW RTLD_LAZY 11577# else 11578# ifdef DL_LAZY 11579# define LT_DLLAZY_OR_NOW DL_LAZY 11580# else 11581# ifdef RTLD_NOW 11582# define LT_DLLAZY_OR_NOW RTLD_NOW 11583# else 11584# ifdef DL_NOW 11585# define LT_DLLAZY_OR_NOW DL_NOW 11586# else 11587# define LT_DLLAZY_OR_NOW 0 11588# endif 11589# endif 11590# endif 11591# endif 11592#endif 11593 11594/* When -fvisbility=hidden is used, assume the code has been annotated 11595 correspondingly for the symbols needed. */ 11596#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11597int fnord () __attribute__((visibility("default"))); 11598#endif 11599 11600int fnord () { return 42; } 11601int main () 11602{ 11603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11604 int status = $lt_dlunknown; 11605 11606 if (self) 11607 { 11608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11609 else 11610 { 11611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11612 else puts (dlerror ()); 11613 } 11614 /* dlclose (self); */ 11615 } 11616 else 11617 puts (dlerror ()); 11618 11619 return status; 11620} 11621_LT_EOF 11622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11623 (eval $ac_link) 2>&5 11624 ac_status=$? 11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11627 (./conftest; exit; ) >&5 2>/dev/null 11628 lt_status=$? 11629 case x$lt_status in 11630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11633 esac 11634 else : 11635 # compilation failed 11636 lt_cv_dlopen_self_static=no 11637 fi 11638fi 11639rm -fr conftest* 11640 11641 11642fi 11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11644$as_echo "$lt_cv_dlopen_self_static" >&6; } 11645 fi 11646 11647 CPPFLAGS="$save_CPPFLAGS" 11648 LDFLAGS="$save_LDFLAGS" 11649 LIBS="$save_LIBS" 11650 ;; 11651 esac 11652 11653 case $lt_cv_dlopen_self in 11654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11655 *) enable_dlopen_self=unknown ;; 11656 esac 11657 11658 case $lt_cv_dlopen_self_static in 11659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11660 *) enable_dlopen_self_static=unknown ;; 11661 esac 11662fi 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680striplib= 11681old_striplib= 11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11683$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11684if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11686 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11688$as_echo "yes" >&6; } 11689else 11690# FIXME - insert some real tests, host_os isn't really good enough 11691 case $host_os in 11692 darwin*) 11693 if test -n "$STRIP" ; then 11694 striplib="$STRIP -x" 11695 old_striplib="$STRIP -S" 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11697$as_echo "yes" >&6; } 11698 else 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11700$as_echo "no" >&6; } 11701 fi 11702 ;; 11703 *) 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11705$as_echo "no" >&6; } 11706 ;; 11707 esac 11708fi 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 # Report which library types will actually be built 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11723$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11725$as_echo "$can_build_shared" >&6; } 11726 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11728$as_echo_n "checking whether to build shared libraries... " >&6; } 11729 test "$can_build_shared" = "no" && enable_shared=no 11730 11731 # On AIX, shared libraries and static libraries use the same namespace, and 11732 # are all built from PIC. 11733 case $host_os in 11734 aix3*) 11735 test "$enable_shared" = yes && enable_static=no 11736 if test -n "$RANLIB"; then 11737 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11738 postinstall_cmds='$RANLIB $lib' 11739 fi 11740 ;; 11741 11742 aix[4-9]*) 11743 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11744 test "$enable_shared" = yes && enable_static=no 11745 fi 11746 ;; 11747 esac 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11749$as_echo "$enable_shared" >&6; } 11750 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11752$as_echo_n "checking whether to build static libraries... " >&6; } 11753 # Make sure either enable_shared or enable_static is yes. 11754 test "$enable_shared" = yes || enable_static=yes 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11756$as_echo "$enable_static" >&6; } 11757 11758 11759 11760 11761fi 11762ac_ext=c 11763ac_cpp='$CPP $CPPFLAGS' 11764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11766ac_compiler_gnu=$ac_cv_c_compiler_gnu 11767 11768CC="$lt_save_CC" 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 ac_config_commands="$ac_config_commands libtool" 11785 11786 11787 11788 11789# Only expand once: 11790 11791 11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 11793$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } 11794if ${libltdl_cv_shlibext+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796else 11797 11798module=yes 11799eval libltdl_cv_shlibext=$shrext_cmds 11800module=no 11801eval libltdl_cv_shrext=$shrext_cmds 11802 11803fi 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 11805$as_echo "$libltdl_cv_shlibext" >&6; } 11806if test -n "$libltdl_cv_shlibext"; then 11807 11808cat >>confdefs.h <<_ACEOF 11809#define LT_MODULE_EXT "$libltdl_cv_shlibext" 11810_ACEOF 11811 11812fi 11813if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then 11814 11815cat >>confdefs.h <<_ACEOF 11816#define LT_SHARED_EXT "$libltdl_cv_shrext" 11817_ACEOF 11818 11819fi 11820 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 11822$as_echo_n "checking which variable specifies run-time module search path... " >&6; } 11823if ${lt_cv_module_path_var+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 lt_cv_module_path_var="$shlibpath_var" 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 11829$as_echo "$lt_cv_module_path_var" >&6; } 11830if test -n "$lt_cv_module_path_var"; then 11831 11832cat >>confdefs.h <<_ACEOF 11833#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 11834_ACEOF 11835 11836fi 11837 11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 11839$as_echo_n "checking for the default library search path... " >&6; } 11840if ${lt_cv_sys_dlsearch_path+:} false; then : 11841 $as_echo_n "(cached) " >&6 11842else 11843 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" 11844fi 11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 11846$as_echo "$lt_cv_sys_dlsearch_path" >&6; } 11847if test -n "$lt_cv_sys_dlsearch_path"; then 11848 sys_dlsearch_path= 11849 for dir in $lt_cv_sys_dlsearch_path; do 11850 if test -z "$sys_dlsearch_path"; then 11851 sys_dlsearch_path="$dir" 11852 else 11853 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 11854 fi 11855 done 11856 11857cat >>confdefs.h <<_ACEOF 11858#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 11859_ACEOF 11860 11861fi 11862 11863 11864LT_DLLOADERS= 11865 11866 11867ac_ext=c 11868ac_cpp='$CPP $CPPFLAGS' 11869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11871ac_compiler_gnu=$ac_cv_c_compiler_gnu 11872 11873 11874LIBADD_DLOPEN= 11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11876$as_echo_n "checking for library containing dlopen... " >&6; } 11877if ${ac_cv_search_dlopen+:} false; then : 11878 $as_echo_n "(cached) " >&6 11879else 11880 ac_func_search_save_LIBS=$LIBS 11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11882/* end confdefs.h. */ 11883 11884/* Override any GCC internal prototype to avoid an error. 11885 Use char because int might match the return type of a GCC 11886 builtin and then its argument prototype would still apply. */ 11887#ifdef __cplusplus 11888extern "C" 11889#endif 11890char dlopen (); 11891int 11892main () 11893{ 11894return dlopen (); 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899for ac_lib in '' dl; do 11900 if test -z "$ac_lib"; then 11901 ac_res="none required" 11902 else 11903 ac_res=-l$ac_lib 11904 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11905 fi 11906 if ac_fn_c_try_link "$LINENO"; then : 11907 ac_cv_search_dlopen=$ac_res 11908fi 11909rm -f core conftest.err conftest.$ac_objext \ 11910 conftest$ac_exeext 11911 if ${ac_cv_search_dlopen+:} false; then : 11912 break 11913fi 11914done 11915if ${ac_cv_search_dlopen+:} false; then : 11916 11917else 11918 ac_cv_search_dlopen=no 11919fi 11920rm conftest.$ac_ext 11921LIBS=$ac_func_search_save_LIBS 11922fi 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11924$as_echo "$ac_cv_search_dlopen" >&6; } 11925ac_res=$ac_cv_search_dlopen 11926if test "$ac_res" != no; then : 11927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11928 11929$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 11930 11931 if test "$ac_cv_search_dlopen" != "none required" ; then 11932 LIBADD_DLOPEN="-ldl" 11933 fi 11934 libltdl_cv_lib_dl_dlopen="yes" 11935 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11936else 11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939#if HAVE_DLFCN_H 11940# include <dlfcn.h> 11941#endif 11942 11943int 11944main () 11945{ 11946dlopen(0, 0); 11947 ; 11948 return 0; 11949} 11950_ACEOF 11951if ac_fn_c_try_link "$LINENO"; then : 11952 11953$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 11954 11955 libltdl_cv_func_dlopen="yes" 11956 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11957else 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11959$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11960if ${ac_cv_lib_svld_dlopen+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962else 11963 ac_check_lib_save_LIBS=$LIBS 11964LIBS="-lsvld $LIBS" 11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966/* end confdefs.h. */ 11967 11968/* Override any GCC internal prototype to avoid an error. 11969 Use char because int might match the return type of a GCC 11970 builtin and then its argument prototype would still apply. */ 11971#ifdef __cplusplus 11972extern "C" 11973#endif 11974char dlopen (); 11975int 11976main () 11977{ 11978return dlopen (); 11979 ; 11980 return 0; 11981} 11982_ACEOF 11983if ac_fn_c_try_link "$LINENO"; then : 11984 ac_cv_lib_svld_dlopen=yes 11985else 11986 ac_cv_lib_svld_dlopen=no 11987fi 11988rm -f core conftest.err conftest.$ac_objext \ 11989 conftest$ac_exeext conftest.$ac_ext 11990LIBS=$ac_check_lib_save_LIBS 11991fi 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11993$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11994if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11995 11996$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 11997 11998 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 11999 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 12000fi 12001 12002fi 12003rm -f core conftest.err conftest.$ac_objext \ 12004 conftest$ac_exeext conftest.$ac_ext 12005fi 12006 12007if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 12008then 12009 lt_save_LIBS="$LIBS" 12010 LIBS="$LIBS $LIBADD_DLOPEN" 12011 for ac_func in dlerror 12012do : 12013 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 12014if test "x$ac_cv_func_dlerror" = xyes; then : 12015 cat >>confdefs.h <<_ACEOF 12016#define HAVE_DLERROR 1 12017_ACEOF 12018 12019fi 12020done 12021 12022 LIBS="$lt_save_LIBS" 12023fi 12024 12025 12026LIBADD_SHL_LOAD= 12027ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12028if test "x$ac_cv_func_shl_load" = xyes; then : 12029 12030$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12031 12032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 12033else 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12035$as_echo_n "checking for shl_load in -ldld... " >&6; } 12036if ${ac_cv_lib_dld_shl_load+:} false; then : 12037 $as_echo_n "(cached) " >&6 12038else 12039 ac_check_lib_save_LIBS=$LIBS 12040LIBS="-ldld $LIBS" 12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12042/* end confdefs.h. */ 12043 12044/* Override any GCC internal prototype to avoid an error. 12045 Use char because int might match the return type of a GCC 12046 builtin and then its argument prototype would still apply. */ 12047#ifdef __cplusplus 12048extern "C" 12049#endif 12050char shl_load (); 12051int 12052main () 12053{ 12054return shl_load (); 12055 ; 12056 return 0; 12057} 12058_ACEOF 12059if ac_fn_c_try_link "$LINENO"; then : 12060 ac_cv_lib_dld_shl_load=yes 12061else 12062 ac_cv_lib_dld_shl_load=no 12063fi 12064rm -f core conftest.err conftest.$ac_objext \ 12065 conftest$ac_exeext conftest.$ac_ext 12066LIBS=$ac_check_lib_save_LIBS 12067fi 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12069$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12070if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12071 12072$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12073 12074 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 12075 LIBADD_SHL_LOAD="-ldld" 12076fi 12077 12078fi 12079 12080 12081 12082case $host_os in 12083darwin[1567].*) 12084# We only want this for pre-Mac OS X 10.4. 12085 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 12086if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 12087 12088$as_echo "#define HAVE_DYLD 1" >>confdefs.h 12089 12090 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 12091fi 12092 12093 ;; 12094beos*) 12095 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 12096 ;; 12097cygwin* | mingw* | os2* | pw32*) 12098 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 12099" 12100if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 12101 ac_have_decl=1 12102else 12103 ac_have_decl=0 12104fi 12105 12106cat >>confdefs.h <<_ACEOF 12107#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 12108_ACEOF 12109 12110 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 12111 ;; 12112esac 12113 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12115$as_echo_n "checking for dld_link in -ldld... " >&6; } 12116if ${ac_cv_lib_dld_dld_link+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 ac_check_lib_save_LIBS=$LIBS 12120LIBS="-ldld $LIBS" 12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12122/* end confdefs.h. */ 12123 12124/* Override any GCC internal prototype to avoid an error. 12125 Use char because int might match the return type of a GCC 12126 builtin and then its argument prototype would still apply. */ 12127#ifdef __cplusplus 12128extern "C" 12129#endif 12130char dld_link (); 12131int 12132main () 12133{ 12134return dld_link (); 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_link "$LINENO"; then : 12140 ac_cv_lib_dld_dld_link=yes 12141else 12142 ac_cv_lib_dld_dld_link=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146LIBS=$ac_check_lib_save_LIBS 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12149$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12150if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12151 12152$as_echo "#define HAVE_DLD 1" >>confdefs.h 12153 12154 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 12155fi 12156 12157 12158 12159 12160LT_DLPREOPEN= 12161if test -n "$LT_DLLOADERS" 12162then 12163 for lt_loader in $LT_DLLOADERS; do 12164 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 12165 done 12166 12167$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 12168 12169fi 12170 12171 12172LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 12173 12174 12175ac_ext=c 12176ac_cpp='$CPP $CPPFLAGS' 12177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12179ac_compiler_gnu=$ac_cv_c_compiler_gnu 12180 12181 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 12183$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 12184if ${lt_cv_sys_symbol_underscore+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 lt_cv_sys_symbol_underscore=no 12188 cat > conftest.$ac_ext <<_LT_EOF 12189void nm_test_func(){} 12190int main(){nm_test_func;return 0;} 12191_LT_EOF 12192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12193 (eval $ac_compile) 2>&5 12194 ac_status=$? 12195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12196 test $ac_status = 0; }; then 12197 # Now try to grab the symbols. 12198 ac_nlist=conftest.nm 12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 12200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 12201 ac_status=$? 12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12203 test $ac_status = 0; } && test -s "$ac_nlist"; then 12204 # See whether the symbols have a leading underscore. 12205 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 12206 lt_cv_sys_symbol_underscore=yes 12207 else 12208 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 12209 : 12210 else 12211 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 12212 fi 12213 fi 12214 else 12215 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 12216 fi 12217 else 12218 echo "configure: failed program was:" >&5 12219 cat conftest.c >&5 12220 fi 12221 rm -rf conftest* 12222 12223fi 12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 12225$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 12226 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 12227 12228 12229if test x"$lt_cv_sys_symbol_underscore" = xyes; then 12230 if test x"$libltdl_cv_func_dlopen" = xyes || 12231 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 12233$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 12234if ${libltdl_cv_need_uscore+:} false; then : 12235 $as_echo_n "(cached) " >&6 12236else 12237 libltdl_cv_need_uscore=unknown 12238 save_LIBS="$LIBS" 12239 LIBS="$LIBS $LIBADD_DLOPEN" 12240 if test "$cross_compiling" = yes; then : 12241 libltdl_cv_need_uscore=cross 12242else 12243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12244 lt_status=$lt_dlunknown 12245 cat > conftest.$ac_ext <<_LT_EOF 12246#line $LINENO "configure" 12247#include "confdefs.h" 12248 12249#if HAVE_DLFCN_H 12250#include <dlfcn.h> 12251#endif 12252 12253#include <stdio.h> 12254 12255#ifdef RTLD_GLOBAL 12256# define LT_DLGLOBAL RTLD_GLOBAL 12257#else 12258# ifdef DL_GLOBAL 12259# define LT_DLGLOBAL DL_GLOBAL 12260# else 12261# define LT_DLGLOBAL 0 12262# endif 12263#endif 12264 12265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12266 find out it does not work in some platform. */ 12267#ifndef LT_DLLAZY_OR_NOW 12268# ifdef RTLD_LAZY 12269# define LT_DLLAZY_OR_NOW RTLD_LAZY 12270# else 12271# ifdef DL_LAZY 12272# define LT_DLLAZY_OR_NOW DL_LAZY 12273# else 12274# ifdef RTLD_NOW 12275# define LT_DLLAZY_OR_NOW RTLD_NOW 12276# else 12277# ifdef DL_NOW 12278# define LT_DLLAZY_OR_NOW DL_NOW 12279# else 12280# define LT_DLLAZY_OR_NOW 0 12281# endif 12282# endif 12283# endif 12284# endif 12285#endif 12286 12287/* When -fvisbility=hidden is used, assume the code has been annotated 12288 correspondingly for the symbols needed. */ 12289#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12290int fnord () __attribute__((visibility("default"))); 12291#endif 12292 12293int fnord () { return 42; } 12294int main () 12295{ 12296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12297 int status = $lt_dlunknown; 12298 12299 if (self) 12300 { 12301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12302 else 12303 { 12304 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12305 else puts (dlerror ()); 12306 } 12307 /* dlclose (self); */ 12308 } 12309 else 12310 puts (dlerror ()); 12311 12312 return status; 12313} 12314_LT_EOF 12315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12316 (eval $ac_link) 2>&5 12317 ac_status=$? 12318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12319 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12320 (./conftest; exit; ) >&5 2>/dev/null 12321 lt_status=$? 12322 case x$lt_status in 12323 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 12324 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 12325 x$lt_dlunknown|x*) ;; 12326 esac 12327 else : 12328 # compilation failed 12329 12330 fi 12331fi 12332rm -fr conftest* 12333 12334 LIBS="$save_LIBS" 12335 12336fi 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 12338$as_echo "$libltdl_cv_need_uscore" >&6; } 12339 fi 12340fi 12341 12342if test x"$libltdl_cv_need_uscore" = xyes; then 12343 12344$as_echo "#define NEED_USCORE 1" >>confdefs.h 12345 12346fi 12347 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 12349$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 12350if ${lt_cv_sys_dlopen_deplibs+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 # PORTME does your system automatically load deplibs for dlopen? 12354 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 12355 # For now, we just catch OSes we know something about -- in the 12356 # future, we'll try test this programmatically. 12357 lt_cv_sys_dlopen_deplibs=unknown 12358 case $host_os in 12359 aix3*|aix4.1.*|aix4.2.*) 12360 # Unknown whether this is true for these versions of AIX, but 12361 # we want this `case' here to explicitly catch those versions. 12362 lt_cv_sys_dlopen_deplibs=unknown 12363 ;; 12364 aix[4-9]*) 12365 lt_cv_sys_dlopen_deplibs=yes 12366 ;; 12367 amigaos*) 12368 case $host_cpu in 12369 powerpc) 12370 lt_cv_sys_dlopen_deplibs=no 12371 ;; 12372 esac 12373 ;; 12374 darwin*) 12375 # Assuming the user has installed a libdl from somewhere, this is true 12376 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 12377 lt_cv_sys_dlopen_deplibs=yes 12378 ;; 12379 freebsd* | dragonfly*) 12380 lt_cv_sys_dlopen_deplibs=yes 12381 ;; 12382 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 12383 # GNU and its variants, using gnu ld.so (Glibc) 12384 lt_cv_sys_dlopen_deplibs=yes 12385 ;; 12386 hpux10*|hpux11*) 12387 lt_cv_sys_dlopen_deplibs=yes 12388 ;; 12389 interix*) 12390 lt_cv_sys_dlopen_deplibs=yes 12391 ;; 12392 irix[12345]*|irix6.[01]*) 12393 # Catch all versions of IRIX before 6.2, and indicate that we don't 12394 # know how it worked for any of those versions. 12395 lt_cv_sys_dlopen_deplibs=unknown 12396 ;; 12397 irix*) 12398 # The case above catches anything before 6.2, and it's known that 12399 # at 6.2 and later dlopen does load deplibs. 12400 lt_cv_sys_dlopen_deplibs=yes 12401 ;; 12402 netbsd* | netbsdelf*-gnu) 12403 lt_cv_sys_dlopen_deplibs=yes 12404 ;; 12405 openbsd*) 12406 lt_cv_sys_dlopen_deplibs=yes 12407 ;; 12408 osf[1234]*) 12409 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 12410 # it did *not* use an RPATH in a shared library to find objects the 12411 # library depends on, so we explicitly say `no'. 12412 lt_cv_sys_dlopen_deplibs=no 12413 ;; 12414 osf5.0|osf5.0a|osf5.1) 12415 # dlopen *does* load deplibs and with the right loader patch applied 12416 # it even uses RPATH in a shared library to search for shared objects 12417 # that the library depends on, but there's no easy way to know if that 12418 # patch is installed. Since this is the case, all we can really 12419 # say is unknown -- it depends on the patch being installed. If 12420 # it is, this changes to `yes'. Without it, it would be `no'. 12421 lt_cv_sys_dlopen_deplibs=unknown 12422 ;; 12423 osf*) 12424 # the two cases above should catch all versions of osf <= 5.1. Read 12425 # the comments above for what we know about them. 12426 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 12427 # is used to find them so we can finally say `yes'. 12428 lt_cv_sys_dlopen_deplibs=yes 12429 ;; 12430 qnx*) 12431 lt_cv_sys_dlopen_deplibs=yes 12432 ;; 12433 solaris*) 12434 lt_cv_sys_dlopen_deplibs=yes 12435 ;; 12436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12437 libltdl_cv_sys_dlopen_deplibs=yes 12438 ;; 12439 esac 12440 12441fi 12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 12443$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 12444if test "$lt_cv_sys_dlopen_deplibs" != yes; then 12445 12446$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 12447 12448fi 12449 12450: 12451 12452for ac_header in argz.h 12453do : 12454 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 12455" 12456if test "x$ac_cv_header_argz_h" = xyes; then : 12457 cat >>confdefs.h <<_ACEOF 12458#define HAVE_ARGZ_H 1 12459_ACEOF 12460 12461fi 12462 12463done 12464 12465 12466ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 12467# include <argz.h> 12468#endif 12469" 12470if test "x$ac_cv_type_error_t" = xyes; then : 12471 12472cat >>confdefs.h <<_ACEOF 12473#define HAVE_ERROR_T 1 12474_ACEOF 12475 12476 12477else 12478 12479$as_echo "#define error_t int" >>confdefs.h 12480 12481 12482$as_echo "#define __error_t_defined 1" >>confdefs.h 12483 12484fi 12485 12486 12487ARGZ_H= 12488for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 12489 argz_next argz_stringify 12490do : 12491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12492ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12493if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12494 cat >>confdefs.h <<_ACEOF 12495#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12496_ACEOF 12497 12498else 12499 ARGZ_H=argz.h; case " $LIBOBJS " in 12500 *" argz.$ac_objext "* ) ;; 12501 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12502 ;; 12503esac 12504 12505fi 12506done 12507 12508 12509if test -z "$ARGZ_H"; then : 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 12511$as_echo_n "checking if argz actually works... " >&6; } 12512if ${lt_cv_sys_argz_works+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514else 12515 case $host_os in #( 12516 *cygwin*) 12517 lt_cv_sys_argz_works=no 12518 if test "$cross_compiling" != no; then 12519 lt_cv_sys_argz_works="guessing no" 12520 else 12521 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 12522 save_IFS=$IFS 12523 IFS=-. 12524 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 12525 IFS=$save_IFS 12526 lt_os_major=${2-0} 12527 lt_os_minor=${3-0} 12528 lt_os_micro=${4-0} 12529 if test "$lt_os_major" -gt 1 \ 12530 || { test "$lt_os_major" -eq 1 \ 12531 && { test "$lt_os_minor" -gt 5 \ 12532 || { test "$lt_os_minor" -eq 5 \ 12533 && test "$lt_os_micro" -gt 24; }; }; }; then 12534 lt_cv_sys_argz_works=yes 12535 fi 12536 fi 12537 ;; #( 12538 *) lt_cv_sys_argz_works=yes ;; 12539 esac 12540fi 12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 12542$as_echo "$lt_cv_sys_argz_works" >&6; } 12543 if test "$lt_cv_sys_argz_works" = yes; then : 12544 12545$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 12546 12547else 12548 ARGZ_H=argz.h 12549 case " $LIBOBJS " in 12550 *" argz.$ac_objext "* ) ;; 12551 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12552 ;; 12553esac 12554 12555fi 12556fi 12557 12558 12559 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 12561$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } 12562if ${libltdl_cv_preloaded_symbols+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 if test -n "$lt_cv_sys_global_symbol_pipe"; then 12566 libltdl_cv_preloaded_symbols=yes 12567 else 12568 libltdl_cv_preloaded_symbols=no 12569 fi 12570 12571fi 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 12573$as_echo "$libltdl_cv_preloaded_symbols" >&6; } 12574if test x"$libltdl_cv_preloaded_symbols" = xyes; then 12575 12576$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h 12577 12578fi 12579 12580 12581 12582# Check whether --enable-ltdl-install was given. 12583if test "${enable_ltdl_install+set}" = set; then : 12584 enableval=$enable_ltdl_install; 12585fi 12586 12587 12588case ,${enable_ltdl_install},${enable_ltdl_convenience} in 12589 *yes*) ;; 12590 *) enable_ltdl_convenience=yes ;; 12591esac 12592 12593 if test x"${enable_ltdl_install-no}" != xno; then 12594 INSTALL_LTDL_TRUE= 12595 INSTALL_LTDL_FALSE='#' 12596else 12597 INSTALL_LTDL_TRUE='#' 12598 INSTALL_LTDL_FALSE= 12599fi 12600 12601 if test x"${enable_ltdl_convenience-no}" != xno; then 12602 CONVENIENCE_LTDL_TRUE= 12603 CONVENIENCE_LTDL_FALSE='#' 12604else 12605 CONVENIENCE_LTDL_TRUE='#' 12606 CONVENIENCE_LTDL_FALSE= 12607fi 12608 12609 12610 12611 12612 12613 12614# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 12615# the user used. This is so that ltdl.h can pick up the parent projects 12616# config.h file, The first file in AC_CONFIG_HEADERS must contain the 12617# definitions required by ltdl.c. 12618# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 12619 12620 12621 12622for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 12623do : 12624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12625ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12626" 12627if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12628 cat >>confdefs.h <<_ACEOF 12629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12630_ACEOF 12631 12632fi 12633 12634done 12635 12636 12637for ac_func in closedir opendir readdir 12638do : 12639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12641if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12642 cat >>confdefs.h <<_ACEOF 12643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12644_ACEOF 12645 12646else 12647 case " $LIBOBJS " in 12648 *" lt__dirent.$ac_objext "* ) ;; 12649 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext" 12650 ;; 12651esac 12652 12653fi 12654done 12655 12656for ac_func in strlcat strlcpy 12657do : 12658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12659ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12660if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12661 cat >>confdefs.h <<_ACEOF 12662#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12663_ACEOF 12664 12665else 12666 case " $LIBOBJS " in 12667 *" lt__strl.$ac_objext "* ) ;; 12668 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext" 12669 ;; 12670esac 12671 12672fi 12673done 12674 12675 12676 12677cat >>confdefs.h <<_ACEOF 12678#define LT_LIBEXT "$libext" 12679_ACEOF 12680 12681 12682name= 12683eval "lt_libprefix=\"$libname_spec\"" 12684 12685cat >>confdefs.h <<_ACEOF 12686#define LT_LIBPREFIX "$lt_libprefix" 12687_ACEOF 12688 12689 12690name=ltdl 12691eval "LTDLOPEN=\"$libname_spec\"" 12692 12693 12694 12695 12696## -------- ## 12697## Outputs. ## 12698## -------- ## 12699ac_config_files="$ac_config_files Makefile" 12700 12701cat >confcache <<\_ACEOF 12702# This file is a shell script that caches the results of configure 12703# tests run on this system so they can be shared between configure 12704# scripts and configure runs, see configure's option --config-cache. 12705# It is not useful on other systems. If it contains results you don't 12706# want to keep, you may remove or edit it. 12707# 12708# config.status only pays attention to the cache file if you give it 12709# the --recheck option to rerun configure. 12710# 12711# `ac_cv_env_foo' variables (set or unset) will be overridden when 12712# loading this file, other *unset* `ac_cv_foo' will be assigned the 12713# following values. 12714 12715_ACEOF 12716 12717# The following way of writing the cache mishandles newlines in values, 12718# but we know of no workaround that is simple, portable, and efficient. 12719# So, we kill variables containing newlines. 12720# Ultrix sh set writes to stderr and can't be redirected directly, 12721# and sets the high bit in the cache file unless we assign to the vars. 12722( 12723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12724 eval ac_val=\$$ac_var 12725 case $ac_val in #( 12726 *${as_nl}*) 12727 case $ac_var in #( 12728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12729$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12730 esac 12731 case $ac_var in #( 12732 _ | IFS | as_nl) ;; #( 12733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12734 *) { eval $ac_var=; unset $ac_var;} ;; 12735 esac ;; 12736 esac 12737 done 12738 12739 (set) 2>&1 | 12740 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12741 *${as_nl}ac_space=\ *) 12742 # `set' does not quote correctly, so add quotes: double-quote 12743 # substitution turns \\\\ into \\, and sed turns \\ into \. 12744 sed -n \ 12745 "s/'/'\\\\''/g; 12746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12747 ;; #( 12748 *) 12749 # `set' quotes correctly as required by POSIX, so do not add quotes. 12750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12751 ;; 12752 esac | 12753 sort 12754) | 12755 sed ' 12756 /^ac_cv_env_/b end 12757 t clear 12758 :clear 12759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12760 t end 12761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12762 :end' >>confcache 12763if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12764 if test -w "$cache_file"; then 12765 if test "x$cache_file" != "x/dev/null"; then 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12767$as_echo "$as_me: updating cache $cache_file" >&6;} 12768 if test ! -f "$cache_file" || test -h "$cache_file"; then 12769 cat confcache >"$cache_file" 12770 else 12771 case $cache_file in #( 12772 */* | ?:*) 12773 mv -f confcache "$cache_file"$$ && 12774 mv -f "$cache_file"$$ "$cache_file" ;; #( 12775 *) 12776 mv -f confcache "$cache_file" ;; 12777 esac 12778 fi 12779 fi 12780 else 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12782$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12783 fi 12784fi 12785rm -f confcache 12786 12787test "x$prefix" = xNONE && prefix=$ac_default_prefix 12788# Let make expand exec_prefix. 12789test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12790 12791DEFS=-DHAVE_CONFIG_H 12792 12793ac_libobjs= 12794ac_ltlibobjs= 12795U= 12796for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12797 # 1. Remove the extension, and $U if already installed. 12798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12801 # will be set to the directory where LIBOBJS objects are built. 12802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12804done 12805LIBOBJS=$ac_libobjs 12806 12807LTLIBOBJS=$ac_ltlibobjs 12808 12809 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12811$as_echo_n "checking that generated files are newer than configure... " >&6; } 12812 if test -n "$am_sleep_pid"; then 12813 # Hide warnings about reused PIDs. 12814 wait $am_sleep_pid 2>/dev/null 12815 fi 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12817$as_echo "done" >&6; } 12818 if test -n "$EXEEXT"; then 12819 am__EXEEXT_TRUE= 12820 am__EXEEXT_FALSE='#' 12821else 12822 am__EXEEXT_TRUE='#' 12823 am__EXEEXT_FALSE= 12824fi 12825 12826if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12827 as_fn_error $? "conditional \"AMDEP\" was never defined. 12828Usually this means the macro was only invoked conditionally." "$LINENO" 5 12829fi 12830if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12832Usually this means the macro was only invoked conditionally." "$LINENO" 5 12833fi 12834if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 12835 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. 12836Usually this means the macro was only invoked conditionally." "$LINENO" 5 12837fi 12838if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 12839 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. 12840Usually this means the macro was only invoked conditionally." "$LINENO" 5 12841fi 12842LT_CONFIG_H=config.h 12843 12844: "${CONFIG_STATUS=./config.status}" 12845ac_write_fail=0 12846ac_clean_files_save=$ac_clean_files 12847ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12850as_write_fail=0 12851cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12852#! $SHELL 12853# Generated by $as_me. 12854# Run this file to recreate the current configuration. 12855# Compiler output produced by configure, useful for debugging 12856# configure, is in config.log if it exists. 12857 12858debug=false 12859ac_cs_recheck=false 12860ac_cs_silent=false 12861 12862SHELL=\${CONFIG_SHELL-$SHELL} 12863export SHELL 12864_ASEOF 12865cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12866## -------------------- ## 12867## M4sh Initialization. ## 12868## -------------------- ## 12869 12870# Be more Bourne compatible 12871DUALCASE=1; export DUALCASE # for MKS sh 12872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12873 emulate sh 12874 NULLCMD=: 12875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12876 # is contrary to our usage. Disable this feature. 12877 alias -g '${1+"$@"}'='"$@"' 12878 setopt NO_GLOB_SUBST 12879else 12880 case `(set -o) 2>/dev/null` in #( 12881 *posix*) : 12882 set -o posix ;; #( 12883 *) : 12884 ;; 12885esac 12886fi 12887 12888 12889as_nl=' 12890' 12891export as_nl 12892# Printing a long string crashes Solaris 7 /usr/bin/printf. 12893as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12896# Prefer a ksh shell builtin over an external printf program on Solaris, 12897# but without wasting forks for bash or zsh. 12898if test -z "$BASH_VERSION$ZSH_VERSION" \ 12899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12900 as_echo='print -r --' 12901 as_echo_n='print -rn --' 12902elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12903 as_echo='printf %s\n' 12904 as_echo_n='printf %s' 12905else 12906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12908 as_echo_n='/usr/ucb/echo -n' 12909 else 12910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12911 as_echo_n_body='eval 12912 arg=$1; 12913 case $arg in #( 12914 *"$as_nl"*) 12915 expr "X$arg" : "X\\(.*\\)$as_nl"; 12916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12917 esac; 12918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12919 ' 12920 export as_echo_n_body 12921 as_echo_n='sh -c $as_echo_n_body as_echo' 12922 fi 12923 export as_echo_body 12924 as_echo='sh -c $as_echo_body as_echo' 12925fi 12926 12927# The user is always right. 12928if test "${PATH_SEPARATOR+set}" != set; then 12929 PATH_SEPARATOR=: 12930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12932 PATH_SEPARATOR=';' 12933 } 12934fi 12935 12936 12937# IFS 12938# We need space, tab and new line, in precisely that order. Quoting is 12939# there to prevent editors from complaining about space-tab. 12940# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12941# splitting by setting IFS to empty value.) 12942IFS=" "" $as_nl" 12943 12944# Find who we are. Look in the path if we contain no directory separator. 12945as_myself= 12946case $0 in #(( 12947 *[\\/]* ) as_myself=$0 ;; 12948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12949for as_dir in $PATH 12950do 12951 IFS=$as_save_IFS 12952 test -z "$as_dir" && as_dir=. 12953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12954 done 12955IFS=$as_save_IFS 12956 12957 ;; 12958esac 12959# We did not find ourselves, most probably we were run as `sh COMMAND' 12960# in which case we are not to be found in the path. 12961if test "x$as_myself" = x; then 12962 as_myself=$0 12963fi 12964if test ! -f "$as_myself"; then 12965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12966 exit 1 12967fi 12968 12969# Unset variables that we do not need and which cause bugs (e.g. in 12970# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12971# suppresses any "Segmentation fault" message there. '((' could 12972# trigger a bug in pdksh 5.2.14. 12973for as_var in BASH_ENV ENV MAIL MAILPATH 12974do eval test x\${$as_var+set} = xset \ 12975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12976done 12977PS1='$ ' 12978PS2='> ' 12979PS4='+ ' 12980 12981# NLS nuisances. 12982LC_ALL=C 12983export LC_ALL 12984LANGUAGE=C 12985export LANGUAGE 12986 12987# CDPATH. 12988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12989 12990 12991# as_fn_error STATUS ERROR [LINENO LOG_FD] 12992# ---------------------------------------- 12993# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12994# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12995# script with STATUS, using 1 if that was 0. 12996as_fn_error () 12997{ 12998 as_status=$1; test $as_status -eq 0 && as_status=1 12999 if test "$4"; then 13000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13002 fi 13003 $as_echo "$as_me: error: $2" >&2 13004 as_fn_exit $as_status 13005} # as_fn_error 13006 13007 13008# as_fn_set_status STATUS 13009# ----------------------- 13010# Set $? to STATUS, without forking. 13011as_fn_set_status () 13012{ 13013 return $1 13014} # as_fn_set_status 13015 13016# as_fn_exit STATUS 13017# ----------------- 13018# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13019as_fn_exit () 13020{ 13021 set +e 13022 as_fn_set_status $1 13023 exit $1 13024} # as_fn_exit 13025 13026# as_fn_unset VAR 13027# --------------- 13028# Portably unset VAR. 13029as_fn_unset () 13030{ 13031 { eval $1=; unset $1;} 13032} 13033as_unset=as_fn_unset 13034# as_fn_append VAR VALUE 13035# ---------------------- 13036# Append the text in VALUE to the end of the definition contained in VAR. Take 13037# advantage of any shell optimizations that allow amortized linear growth over 13038# repeated appends, instead of the typical quadratic growth present in naive 13039# implementations. 13040if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13041 eval 'as_fn_append () 13042 { 13043 eval $1+=\$2 13044 }' 13045else 13046 as_fn_append () 13047 { 13048 eval $1=\$$1\$2 13049 } 13050fi # as_fn_append 13051 13052# as_fn_arith ARG... 13053# ------------------ 13054# Perform arithmetic evaluation on the ARGs, and store the result in the 13055# global $as_val. Take advantage of shells that can avoid forks. The arguments 13056# must be portable across $(()) and expr. 13057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13058 eval 'as_fn_arith () 13059 { 13060 as_val=$(( $* )) 13061 }' 13062else 13063 as_fn_arith () 13064 { 13065 as_val=`expr "$@" || test $? -eq 1` 13066 } 13067fi # as_fn_arith 13068 13069 13070if expr a : '\(a\)' >/dev/null 2>&1 && 13071 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13072 as_expr=expr 13073else 13074 as_expr=false 13075fi 13076 13077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13078 as_basename=basename 13079else 13080 as_basename=false 13081fi 13082 13083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13084 as_dirname=dirname 13085else 13086 as_dirname=false 13087fi 13088 13089as_me=`$as_basename -- "$0" || 13090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13091 X"$0" : 'X\(//\)$' \| \ 13092 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13093$as_echo X/"$0" | 13094 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13095 s//\1/ 13096 q 13097 } 13098 /^X\/\(\/\/\)$/{ 13099 s//\1/ 13100 q 13101 } 13102 /^X\/\(\/\).*/{ 13103 s//\1/ 13104 q 13105 } 13106 s/.*/./; q'` 13107 13108# Avoid depending upon Character Ranges. 13109as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13111as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13112as_cr_digits='0123456789' 13113as_cr_alnum=$as_cr_Letters$as_cr_digits 13114 13115ECHO_C= ECHO_N= ECHO_T= 13116case `echo -n x` in #((((( 13117-n*) 13118 case `echo 'xy\c'` in 13119 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13120 xy) ECHO_C='\c';; 13121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13122 ECHO_T=' ';; 13123 esac;; 13124*) 13125 ECHO_N='-n';; 13126esac 13127 13128rm -f conf$$ conf$$.exe conf$$.file 13129if test -d conf$$.dir; then 13130 rm -f conf$$.dir/conf$$.file 13131else 13132 rm -f conf$$.dir 13133 mkdir conf$$.dir 2>/dev/null 13134fi 13135if (echo >conf$$.file) 2>/dev/null; then 13136 if ln -s conf$$.file conf$$ 2>/dev/null; then 13137 as_ln_s='ln -s' 13138 # ... but there are two gotchas: 13139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13141 # In both cases, we have to default to `cp -pR'. 13142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13143 as_ln_s='cp -pR' 13144 elif ln conf$$.file conf$$ 2>/dev/null; then 13145 as_ln_s=ln 13146 else 13147 as_ln_s='cp -pR' 13148 fi 13149else 13150 as_ln_s='cp -pR' 13151fi 13152rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13153rmdir conf$$.dir 2>/dev/null 13154 13155 13156# as_fn_mkdir_p 13157# ------------- 13158# Create "$as_dir" as a directory, including parents if necessary. 13159as_fn_mkdir_p () 13160{ 13161 13162 case $as_dir in #( 13163 -*) as_dir=./$as_dir;; 13164 esac 13165 test -d "$as_dir" || eval $as_mkdir_p || { 13166 as_dirs= 13167 while :; do 13168 case $as_dir in #( 13169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13170 *) as_qdir=$as_dir;; 13171 esac 13172 as_dirs="'$as_qdir' $as_dirs" 13173 as_dir=`$as_dirname -- "$as_dir" || 13174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13175 X"$as_dir" : 'X\(//\)[^/]' \| \ 13176 X"$as_dir" : 'X\(//\)$' \| \ 13177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13178$as_echo X"$as_dir" | 13179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13180 s//\1/ 13181 q 13182 } 13183 /^X\(\/\/\)[^/].*/{ 13184 s//\1/ 13185 q 13186 } 13187 /^X\(\/\/\)$/{ 13188 s//\1/ 13189 q 13190 } 13191 /^X\(\/\).*/{ 13192 s//\1/ 13193 q 13194 } 13195 s/.*/./; q'` 13196 test -d "$as_dir" && break 13197 done 13198 test -z "$as_dirs" || eval "mkdir $as_dirs" 13199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13200 13201 13202} # as_fn_mkdir_p 13203if mkdir -p . 2>/dev/null; then 13204 as_mkdir_p='mkdir -p "$as_dir"' 13205else 13206 test -d ./-p && rmdir ./-p 13207 as_mkdir_p=false 13208fi 13209 13210 13211# as_fn_executable_p FILE 13212# ----------------------- 13213# Test if FILE is an executable regular file. 13214as_fn_executable_p () 13215{ 13216 test -f "$1" && test -x "$1" 13217} # as_fn_executable_p 13218as_test_x='test -x' 13219as_executable_p=as_fn_executable_p 13220 13221# Sed expression to map a string onto a valid CPP name. 13222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13223 13224# Sed expression to map a string onto a valid variable name. 13225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13226 13227 13228exec 6>&1 13229## ----------------------------------- ## 13230## Main body of $CONFIG_STATUS script. ## 13231## ----------------------------------- ## 13232_ASEOF 13233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13234 13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13236# Save the log message, to keep $0 and so on meaningful, and to 13237# report actual input values of CONFIG_FILES etc. instead of their 13238# values after options handling. 13239ac_log=" 13240This file was extended by libltdl $as_me 2.4.2, which was 13241generated by GNU Autoconf 2.69. Invocation command line was 13242 13243 CONFIG_FILES = $CONFIG_FILES 13244 CONFIG_HEADERS = $CONFIG_HEADERS 13245 CONFIG_LINKS = $CONFIG_LINKS 13246 CONFIG_COMMANDS = $CONFIG_COMMANDS 13247 $ $0 $@ 13248 13249on `(hostname || uname -n) 2>/dev/null | sed 1q` 13250" 13251 13252_ACEOF 13253 13254case $ac_config_files in *" 13255"*) set x $ac_config_files; shift; ac_config_files=$*;; 13256esac 13257 13258case $ac_config_headers in *" 13259"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13260esac 13261 13262 13263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13264# Files that config.status was made for. 13265config_files="$ac_config_files" 13266config_headers="$ac_config_headers" 13267config_commands="$ac_config_commands" 13268 13269_ACEOF 13270 13271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13272ac_cs_usage="\ 13273\`$as_me' instantiates files and other configuration actions 13274from templates according to the current configuration. Unless the files 13275and actions are specified as TAGs, all are instantiated by default. 13276 13277Usage: $0 [OPTION]... [TAG]... 13278 13279 -h, --help print this help, then exit 13280 -V, --version print version number and configuration settings, then exit 13281 --config print configuration, then exit 13282 -q, --quiet, --silent 13283 do not print progress messages 13284 -d, --debug don't remove temporary files 13285 --recheck update $as_me by reconfiguring in the same conditions 13286 --file=FILE[:TEMPLATE] 13287 instantiate the configuration file FILE 13288 --header=FILE[:TEMPLATE] 13289 instantiate the configuration header FILE 13290 13291Configuration files: 13292$config_files 13293 13294Configuration headers: 13295$config_headers 13296 13297Configuration commands: 13298$config_commands 13299 13300Report bugs to <bug-libtool@gnu.org>." 13301 13302_ACEOF 13303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13305ac_cs_version="\\ 13306libltdl config.status 2.4.2 13307configured by $0, generated by GNU Autoconf 2.69, 13308 with options \\"\$ac_cs_config\\" 13309 13310Copyright (C) 2012 Free Software Foundation, Inc. 13311This config.status script is free software; the Free Software Foundation 13312gives unlimited permission to copy, distribute and modify it." 13313 13314ac_pwd='$ac_pwd' 13315srcdir='$srcdir' 13316INSTALL='$INSTALL' 13317MKDIR_P='$MKDIR_P' 13318AWK='$AWK' 13319test -n "\$AWK" || AWK=awk 13320_ACEOF 13321 13322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13323# The default lists apply if the user does not specify any file. 13324ac_need_defaults=: 13325while test $# != 0 13326do 13327 case $1 in 13328 --*=?*) 13329 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13331 ac_shift=: 13332 ;; 13333 --*=) 13334 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13335 ac_optarg= 13336 ac_shift=: 13337 ;; 13338 *) 13339 ac_option=$1 13340 ac_optarg=$2 13341 ac_shift=shift 13342 ;; 13343 esac 13344 13345 case $ac_option in 13346 # Handling of the options. 13347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13348 ac_cs_recheck=: ;; 13349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13350 $as_echo "$ac_cs_version"; exit ;; 13351 --config | --confi | --conf | --con | --co | --c ) 13352 $as_echo "$ac_cs_config"; exit ;; 13353 --debug | --debu | --deb | --de | --d | -d ) 13354 debug=: ;; 13355 --file | --fil | --fi | --f ) 13356 $ac_shift 13357 case $ac_optarg in 13358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13359 '') as_fn_error $? "missing file argument" ;; 13360 esac 13361 as_fn_append CONFIG_FILES " '$ac_optarg'" 13362 ac_need_defaults=false;; 13363 --header | --heade | --head | --hea ) 13364 $ac_shift 13365 case $ac_optarg in 13366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13367 esac 13368 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13369 ac_need_defaults=false;; 13370 --he | --h) 13371 # Conflict between --help and --header 13372 as_fn_error $? "ambiguous option: \`$1' 13373Try \`$0 --help' for more information.";; 13374 --help | --hel | -h ) 13375 $as_echo "$ac_cs_usage"; exit ;; 13376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13377 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13378 ac_cs_silent=: ;; 13379 13380 # This is an error. 13381 -*) as_fn_error $? "unrecognized option: \`$1' 13382Try \`$0 --help' for more information." ;; 13383 13384 *) as_fn_append ac_config_targets " $1" 13385 ac_need_defaults=false ;; 13386 13387 esac 13388 shift 13389done 13390 13391ac_configure_extra_args= 13392 13393if $ac_cs_silent; then 13394 exec 6>/dev/null 13395 ac_configure_extra_args="$ac_configure_extra_args --silent" 13396fi 13397 13398_ACEOF 13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13400if \$ac_cs_recheck; then 13401 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13402 shift 13403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13404 CONFIG_SHELL='$SHELL' 13405 export CONFIG_SHELL 13406 exec "\$@" 13407fi 13408 13409_ACEOF 13410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13411exec 5>>config.log 13412{ 13413 echo 13414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13415## Running $as_me. ## 13416_ASBOX 13417 $as_echo "$ac_log" 13418} >&5 13419 13420_ACEOF 13421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13422# 13423# INIT-COMMANDS 13424# 13425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13426 13427 13428# The HP-UX ksh and POSIX shell print the target directory to stdout 13429# if CDPATH is set. 13430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13431 13432sed_quote_subst='$sed_quote_subst' 13433double_quote_subst='$double_quote_subst' 13434delay_variable_subst='$delay_variable_subst' 13435macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13436macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13437AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13438DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13439OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13440enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13441enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13442pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13443enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13444SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13445ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13446PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13447host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13448host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13449host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13450build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13451build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13452build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13453SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13454Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13455GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13456EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13457FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13458LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13459NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13460LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13461max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13462ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13463exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13464lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13465lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13466lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13467lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13468lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13469reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13470reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13473file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13474want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13475sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13476AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13477AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13478archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13479STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13480RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13481old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13482old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13483old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13484lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13485CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13486CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13487compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13488GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13489lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13490lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13491lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13492lt_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"`' 13493nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13494lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13495objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13496MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13497lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13498lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13499lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13500lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13501lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13502need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13503MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13504DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13505NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13506LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13507OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13508OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13509libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13510shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13511extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13512archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13513enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13514export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13515whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13516compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13517old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13518old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13519archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13520archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13521module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13522module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13523with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13524allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13525no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13526hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13527hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13528hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13529hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13530hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13531hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13532hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13533inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13534link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13535always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13536export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13537exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13538include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13539prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13540postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13541file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13542variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13543need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13544need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13545version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13546runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13547shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13548shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13549libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13550library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13551soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13552install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13553postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13554postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13555finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13556finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13557hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13558sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13559sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13560hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13561enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13562enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13563enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13564old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13565striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13566 13567LTCC='$LTCC' 13568LTCFLAGS='$LTCFLAGS' 13569compiler='$compiler_DEFAULT' 13570 13571# A function that is used when there is no print builtin or printf. 13572func_fallback_echo () 13573{ 13574 eval 'cat <<_LTECHO_EOF 13575\$1 13576_LTECHO_EOF' 13577} 13578 13579# Quote evaled strings. 13580for var in AS \ 13581DLLTOOL \ 13582OBJDUMP \ 13583SHELL \ 13584ECHO \ 13585PATH_SEPARATOR \ 13586SED \ 13587GREP \ 13588EGREP \ 13589FGREP \ 13590LD \ 13591NM \ 13592LN_S \ 13593lt_SP2NL \ 13594lt_NL2SP \ 13595reload_flag \ 13596deplibs_check_method \ 13597file_magic_cmd \ 13598file_magic_glob \ 13599want_nocaseglob \ 13600sharedlib_from_linklib_cmd \ 13601AR \ 13602AR_FLAGS \ 13603archiver_list_spec \ 13604STRIP \ 13605RANLIB \ 13606CC \ 13607CFLAGS \ 13608compiler \ 13609lt_cv_sys_global_symbol_pipe \ 13610lt_cv_sys_global_symbol_to_cdecl \ 13611lt_cv_sys_global_symbol_to_c_name_address \ 13612lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13613nm_file_list_spec \ 13614lt_prog_compiler_no_builtin_flag \ 13615lt_prog_compiler_pic \ 13616lt_prog_compiler_wl \ 13617lt_prog_compiler_static \ 13618lt_cv_prog_compiler_c_o \ 13619need_locks \ 13620MANIFEST_TOOL \ 13621DSYMUTIL \ 13622NMEDIT \ 13623LIPO \ 13624OTOOL \ 13625OTOOL64 \ 13626shrext_cmds \ 13627export_dynamic_flag_spec \ 13628whole_archive_flag_spec \ 13629compiler_needs_object \ 13630with_gnu_ld \ 13631allow_undefined_flag \ 13632no_undefined_flag \ 13633hardcode_libdir_flag_spec \ 13634hardcode_libdir_separator \ 13635exclude_expsyms \ 13636include_expsyms \ 13637file_list_spec \ 13638variables_saved_for_relink \ 13639libname_spec \ 13640library_names_spec \ 13641soname_spec \ 13642install_override_mode \ 13643finish_eval \ 13644old_striplib \ 13645striplib; do 13646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13647 *[\\\\\\\`\\"\\\$]*) 13648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13649 ;; 13650 *) 13651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13652 ;; 13653 esac 13654done 13655 13656# Double-quote double-evaled strings. 13657for var in reload_cmds \ 13658old_postinstall_cmds \ 13659old_postuninstall_cmds \ 13660old_archive_cmds \ 13661extract_expsyms_cmds \ 13662old_archive_from_new_cmds \ 13663old_archive_from_expsyms_cmds \ 13664archive_cmds \ 13665archive_expsym_cmds \ 13666module_cmds \ 13667module_expsym_cmds \ 13668export_symbols_cmds \ 13669prelink_cmds \ 13670postlink_cmds \ 13671postinstall_cmds \ 13672postuninstall_cmds \ 13673finish_cmds \ 13674sys_lib_search_path_spec \ 13675sys_lib_dlsearch_path_spec; do 13676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13677 *[\\\\\\\`\\"\\\$]*) 13678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13679 ;; 13680 *) 13681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13682 ;; 13683 esac 13684done 13685 13686ac_aux_dir='$ac_aux_dir' 13687xsi_shell='$xsi_shell' 13688lt_shell_append='$lt_shell_append' 13689 13690# See if we are running on zsh, and set the options which allow our 13691# commands through without removal of \ escapes INIT. 13692if test -n "\${ZSH_VERSION+set}" ; then 13693 setopt NO_GLOB_SUBST 13694fi 13695 13696 13697 PACKAGE='$PACKAGE' 13698 VERSION='$VERSION' 13699 TIMESTAMP='$TIMESTAMP' 13700 RM='$RM' 13701 ofile='$ofile' 13702 13703 13704 13705 13706_ACEOF 13707 13708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13709 13710# Handling of arguments. 13711for ac_config_target in $ac_config_targets 13712do 13713 case $ac_config_target in 13714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; 13715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13716 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13718 13719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13720 esac 13721done 13722 13723 13724# If the user did not use the arguments to specify the items to instantiate, 13725# then the envvar interface is used. Set only those that are not. 13726# We use the long form for the default assignment because of an extremely 13727# bizarre bug on SunOS 4.1.3. 13728if $ac_need_defaults; then 13729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13732fi 13733 13734# Have a temporary directory for convenience. Make it in the build tree 13735# simply because there is no reason against having it here, and in addition, 13736# creating and moving files from /tmp can sometimes cause problems. 13737# Hook for its removal unless debugging. 13738# Note that there is a small window in which the directory will not be cleaned: 13739# after its creation but before its name has been assigned to `$tmp'. 13740$debug || 13741{ 13742 tmp= ac_tmp= 13743 trap 'exit_status=$? 13744 : "${ac_tmp:=$tmp}" 13745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13746' 0 13747 trap 'as_fn_exit 1' 1 2 13 15 13748} 13749# Create a (secure) tmp directory for tmp files. 13750 13751{ 13752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13753 test -d "$tmp" 13754} || 13755{ 13756 tmp=./conf$$-$RANDOM 13757 (umask 077 && mkdir "$tmp") 13758} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13759ac_tmp=$tmp 13760 13761# Set up the scripts for CONFIG_FILES section. 13762# No need to generate them if there are no CONFIG_FILES. 13763# This happens for instance with `./config.status config.h'. 13764if test -n "$CONFIG_FILES"; then 13765 13766 13767ac_cr=`echo X | tr X '\015'` 13768# On cygwin, bash can eat \r inside `` if the user requested igncr. 13769# But we know of no other shell where ac_cr would be empty at this 13770# point, so we can use a bashism as a fallback. 13771if test "x$ac_cr" = x; then 13772 eval ac_cr=\$\'\\r\' 13773fi 13774ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13775if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13776 ac_cs_awk_cr='\\r' 13777else 13778 ac_cs_awk_cr=$ac_cr 13779fi 13780 13781echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13782_ACEOF 13783 13784 13785{ 13786 echo "cat >conf$$subs.awk <<_ACEOF" && 13787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13788 echo "_ACEOF" 13789} >conf$$subs.sh || 13790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13791ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13792ac_delim='%!_!# ' 13793for ac_last_try in false false false false false :; do 13794 . ./conf$$subs.sh || 13795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13796 13797 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13798 if test $ac_delim_n = $ac_delim_num; then 13799 break 13800 elif $ac_last_try; then 13801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13802 else 13803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13804 fi 13805done 13806rm -f conf$$subs.sh 13807 13808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13809cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13810_ACEOF 13811sed -n ' 13812h 13813s/^/S["/; s/!.*/"]=/ 13814p 13815g 13816s/^[^!]*!// 13817:repl 13818t repl 13819s/'"$ac_delim"'$// 13820t delim 13821:nl 13822h 13823s/\(.\{148\}\)..*/\1/ 13824t more1 13825s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13826p 13827n 13828b repl 13829:more1 13830s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13831p 13832g 13833s/.\{148\}// 13834t nl 13835:delim 13836h 13837s/\(.\{148\}\)..*/\1/ 13838t more2 13839s/["\\]/\\&/g; s/^/"/; s/$/"/ 13840p 13841b 13842:more2 13843s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13844p 13845g 13846s/.\{148\}// 13847t delim 13848' <conf$$subs.awk | sed ' 13849/^[^""]/{ 13850 N 13851 s/\n// 13852} 13853' >>$CONFIG_STATUS || ac_write_fail=1 13854rm -f conf$$subs.awk 13855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13856_ACAWK 13857cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13858 for (key in S) S_is_set[key] = 1 13859 FS = "" 13860 13861} 13862{ 13863 line = $ 0 13864 nfields = split(line, field, "@") 13865 substed = 0 13866 len = length(field[1]) 13867 for (i = 2; i < nfields; i++) { 13868 key = field[i] 13869 keylen = length(key) 13870 if (S_is_set[key]) { 13871 value = S[key] 13872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13873 len += length(value) + length(field[++i]) 13874 substed = 1 13875 } else 13876 len += 1 + keylen 13877 } 13878 13879 print line 13880} 13881 13882_ACAWK 13883_ACEOF 13884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13885if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13886 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13887else 13888 cat 13889fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13890 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13891_ACEOF 13892 13893# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13894# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13895# trailing colons and then remove the whole line if VPATH becomes empty 13896# (actually we leave an empty line to preserve line numbers). 13897if test "x$srcdir" = x.; then 13898 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13899h 13900s/// 13901s/^/:/ 13902s/[ ]*$/:/ 13903s/:\$(srcdir):/:/g 13904s/:\${srcdir}:/:/g 13905s/:@srcdir@:/:/g 13906s/^:*// 13907s/:*$// 13908x 13909s/\(=[ ]*\).*/\1/ 13910G 13911s/\n// 13912s/^[^=]*=[ ]*$// 13913}' 13914fi 13915 13916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13917fi # test -n "$CONFIG_FILES" 13918 13919# Set up the scripts for CONFIG_HEADERS section. 13920# No need to generate them if there are no CONFIG_HEADERS. 13921# This happens for instance with `./config.status Makefile'. 13922if test -n "$CONFIG_HEADERS"; then 13923cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13924BEGIN { 13925_ACEOF 13926 13927# Transform confdefs.h into an awk script `defines.awk', embedded as 13928# here-document in config.status, that substitutes the proper values into 13929# config.h.in to produce config.h. 13930 13931# Create a delimiter string that does not exist in confdefs.h, to ease 13932# handling of long lines. 13933ac_delim='%!_!# ' 13934for ac_last_try in false false :; do 13935 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13936 if test -z "$ac_tt"; then 13937 break 13938 elif $ac_last_try; then 13939 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13940 else 13941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13942 fi 13943done 13944 13945# For the awk script, D is an array of macro values keyed by name, 13946# likewise P contains macro parameters if any. Preserve backslash 13947# newline sequences. 13948 13949ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13950sed -n ' 13951s/.\{148\}/&'"$ac_delim"'/g 13952t rset 13953:rset 13954s/^[ ]*#[ ]*define[ ][ ]*/ / 13955t def 13956d 13957:def 13958s/\\$// 13959t bsnl 13960s/["\\]/\\&/g 13961s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13962D["\1"]=" \3"/p 13963s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13964d 13965:bsnl 13966s/["\\]/\\&/g 13967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13968D["\1"]=" \3\\\\\\n"\\/p 13969t cont 13970s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13971t cont 13972d 13973:cont 13974n 13975s/.\{148\}/&'"$ac_delim"'/g 13976t clear 13977:clear 13978s/\\$// 13979t bsnlc 13980s/["\\]/\\&/g; s/^/"/; s/$/"/p 13981d 13982:bsnlc 13983s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13984b cont 13985' <confdefs.h | sed ' 13986s/'"$ac_delim"'/"\\\ 13987"/g' >>$CONFIG_STATUS || ac_write_fail=1 13988 13989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13990 for (key in D) D_is_set[key] = 1 13991 FS = "" 13992} 13993/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13994 line = \$ 0 13995 split(line, arg, " ") 13996 if (arg[1] == "#") { 13997 defundef = arg[2] 13998 mac1 = arg[3] 13999 } else { 14000 defundef = substr(arg[1], 2) 14001 mac1 = arg[2] 14002 } 14003 split(mac1, mac2, "(") #) 14004 macro = mac2[1] 14005 prefix = substr(line, 1, index(line, defundef) - 1) 14006 if (D_is_set[macro]) { 14007 # Preserve the white space surrounding the "#". 14008 print prefix "define", macro P[macro] D[macro] 14009 next 14010 } else { 14011 # Replace #undef with comments. This is necessary, for example, 14012 # in the case of _POSIX_SOURCE, which is predefined and required 14013 # on some systems where configure will not decide to define it. 14014 if (defundef == "undef") { 14015 print "/*", prefix defundef, macro, "*/" 14016 next 14017 } 14018 } 14019} 14020{ print } 14021_ACAWK 14022_ACEOF 14023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14024 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14025fi # test -n "$CONFIG_HEADERS" 14026 14027 14028eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14029shift 14030for ac_tag 14031do 14032 case $ac_tag in 14033 :[FHLC]) ac_mode=$ac_tag; continue;; 14034 esac 14035 case $ac_mode$ac_tag in 14036 :[FHL]*:*);; 14037 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14038 :[FH]-) ac_tag=-:-;; 14039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14040 esac 14041 ac_save_IFS=$IFS 14042 IFS=: 14043 set x $ac_tag 14044 IFS=$ac_save_IFS 14045 shift 14046 ac_file=$1 14047 shift 14048 14049 case $ac_mode in 14050 :L) ac_source=$1;; 14051 :[FH]) 14052 ac_file_inputs= 14053 for ac_f 14054 do 14055 case $ac_f in 14056 -) ac_f="$ac_tmp/stdin";; 14057 *) # Look for the file first in the build tree, then in the source tree 14058 # (if the path is not absolute). The absolute path cannot be DOS-style, 14059 # because $ac_f cannot contain `:'. 14060 test -f "$ac_f" || 14061 case $ac_f in 14062 [\\/$]*) false;; 14063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14064 esac || 14065 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14066 esac 14067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14068 as_fn_append ac_file_inputs " '$ac_f'" 14069 done 14070 14071 # Let's still pretend it is `configure' which instantiates (i.e., don't 14072 # use $as_me), people would be surprised to read: 14073 # /* config.h. Generated by config.status. */ 14074 configure_input='Generated from '` 14075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14076 `' by configure.' 14077 if test x"$ac_file" != x-; then 14078 configure_input="$ac_file. $configure_input" 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14080$as_echo "$as_me: creating $ac_file" >&6;} 14081 fi 14082 # Neutralize special characters interpreted by sed in replacement strings. 14083 case $configure_input in #( 14084 *\&* | *\|* | *\\* ) 14085 ac_sed_conf_input=`$as_echo "$configure_input" | 14086 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14087 *) ac_sed_conf_input=$configure_input;; 14088 esac 14089 14090 case $ac_tag in 14091 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14093 esac 14094 ;; 14095 esac 14096 14097 ac_dir=`$as_dirname -- "$ac_file" || 14098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14099 X"$ac_file" : 'X\(//\)[^/]' \| \ 14100 X"$ac_file" : 'X\(//\)$' \| \ 14101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14102$as_echo X"$ac_file" | 14103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14104 s//\1/ 14105 q 14106 } 14107 /^X\(\/\/\)[^/].*/{ 14108 s//\1/ 14109 q 14110 } 14111 /^X\(\/\/\)$/{ 14112 s//\1/ 14113 q 14114 } 14115 /^X\(\/\).*/{ 14116 s//\1/ 14117 q 14118 } 14119 s/.*/./; q'` 14120 as_dir="$ac_dir"; as_fn_mkdir_p 14121 ac_builddir=. 14122 14123case "$ac_dir" in 14124.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14125*) 14126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14127 # A ".." for each directory in $ac_dir_suffix. 14128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14129 case $ac_top_builddir_sub in 14130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14132 esac ;; 14133esac 14134ac_abs_top_builddir=$ac_pwd 14135ac_abs_builddir=$ac_pwd$ac_dir_suffix 14136# for backward compatibility: 14137ac_top_builddir=$ac_top_build_prefix 14138 14139case $srcdir in 14140 .) # We are building in place. 14141 ac_srcdir=. 14142 ac_top_srcdir=$ac_top_builddir_sub 14143 ac_abs_top_srcdir=$ac_pwd ;; 14144 [\\/]* | ?:[\\/]* ) # Absolute name. 14145 ac_srcdir=$srcdir$ac_dir_suffix; 14146 ac_top_srcdir=$srcdir 14147 ac_abs_top_srcdir=$srcdir ;; 14148 *) # Relative name. 14149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14150 ac_top_srcdir=$ac_top_build_prefix$srcdir 14151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14152esac 14153ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14154 14155 14156 case $ac_mode in 14157 :F) 14158 # 14159 # CONFIG_FILE 14160 # 14161 14162 case $INSTALL in 14163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14165 esac 14166 ac_MKDIR_P=$MKDIR_P 14167 case $MKDIR_P in 14168 [\\/$]* | ?:[\\/]* ) ;; 14169 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14170 esac 14171_ACEOF 14172 14173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14174# If the template does not know about datarootdir, expand it. 14175# FIXME: This hack should be removed a few years after 2.60. 14176ac_datarootdir_hack=; ac_datarootdir_seen= 14177ac_sed_dataroot=' 14178/datarootdir/ { 14179 p 14180 q 14181} 14182/@datadir@/p 14183/@docdir@/p 14184/@infodir@/p 14185/@localedir@/p 14186/@mandir@/p' 14187case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14188*datarootdir*) ac_datarootdir_seen=yes;; 14189*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14191$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14192_ACEOF 14193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14194 ac_datarootdir_hack=' 14195 s&@datadir@&$datadir&g 14196 s&@docdir@&$docdir&g 14197 s&@infodir@&$infodir&g 14198 s&@localedir@&$localedir&g 14199 s&@mandir@&$mandir&g 14200 s&\\\${datarootdir}&$datarootdir&g' ;; 14201esac 14202_ACEOF 14203 14204# Neutralize VPATH when `$srcdir' = `.'. 14205# Shell code in configure.ac might set extrasub. 14206# FIXME: do we really want to maintain this feature? 14207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14208ac_sed_extra="$ac_vpsub 14209$extrasub 14210_ACEOF 14211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14212:t 14213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14214s|@configure_input@|$ac_sed_conf_input|;t t 14215s&@top_builddir@&$ac_top_builddir_sub&;t t 14216s&@top_build_prefix@&$ac_top_build_prefix&;t t 14217s&@srcdir@&$ac_srcdir&;t t 14218s&@abs_srcdir@&$ac_abs_srcdir&;t t 14219s&@top_srcdir@&$ac_top_srcdir&;t t 14220s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14221s&@builddir@&$ac_builddir&;t t 14222s&@abs_builddir@&$ac_abs_builddir&;t t 14223s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14224s&@INSTALL@&$ac_INSTALL&;t t 14225s&@MKDIR_P@&$ac_MKDIR_P&;t t 14226$ac_datarootdir_hack 14227" 14228eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14230 14231test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14234 "$ac_tmp/out"`; test -z "$ac_out"; } && 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14236which seems to be undefined. Please make sure it is defined" >&5 14237$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14238which seems to be undefined. Please make sure it is defined" >&2;} 14239 14240 rm -f "$ac_tmp/stdin" 14241 case $ac_file in 14242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14244 esac \ 14245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14246 ;; 14247 :H) 14248 # 14249 # CONFIG_HEADER 14250 # 14251 if test x"$ac_file" != x-; then 14252 { 14253 $as_echo "/* $configure_input */" \ 14254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14255 } >"$ac_tmp/config.h" \ 14256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14259$as_echo "$as_me: $ac_file is unchanged" >&6;} 14260 else 14261 rm -f "$ac_file" 14262 mv "$ac_tmp/config.h" "$ac_file" \ 14263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14264 fi 14265 else 14266 $as_echo "/* $configure_input */" \ 14267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14268 || as_fn_error $? "could not create -" "$LINENO" 5 14269 fi 14270# Compute "$ac_file"'s index in $config_headers. 14271_am_arg="$ac_file" 14272_am_stamp_count=1 14273for _am_header in $config_headers :; do 14274 case $_am_header in 14275 $_am_arg | $_am_arg:* ) 14276 break ;; 14277 * ) 14278 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14279 esac 14280done 14281echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14282$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14283 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14284 X"$_am_arg" : 'X\(//\)$' \| \ 14285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14286$as_echo X"$_am_arg" | 14287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14288 s//\1/ 14289 q 14290 } 14291 /^X\(\/\/\)[^/].*/{ 14292 s//\1/ 14293 q 14294 } 14295 /^X\(\/\/\)$/{ 14296 s//\1/ 14297 q 14298 } 14299 /^X\(\/\).*/{ 14300 s//\1/ 14301 q 14302 } 14303 s/.*/./; q'`/stamp-h$_am_stamp_count 14304 ;; 14305 14306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14307$as_echo "$as_me: executing $ac_file commands" >&6;} 14308 ;; 14309 esac 14310 14311 14312 case $ac_file$ac_mode in 14313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14314 # Older Autoconf quotes --file arguments for eval, but not when files 14315 # are listed without --file. Let's play safe and only enable the eval 14316 # if we detect the quoting. 14317 case $CONFIG_FILES in 14318 *\'*) eval set x "$CONFIG_FILES" ;; 14319 *) set x $CONFIG_FILES ;; 14320 esac 14321 shift 14322 for mf 14323 do 14324 # Strip MF so we end up with the name of the file. 14325 mf=`echo "$mf" | sed -e 's/:.*$//'` 14326 # Check whether this is an Automake generated Makefile or not. 14327 # We used to match only the files named 'Makefile.in', but 14328 # some people rename them; so instead we look at the file content. 14329 # Grep'ing the first line is not enough: some people post-process 14330 # each Makefile.in and add a new line on top of each file to say so. 14331 # Grep'ing the whole file is not good either: AIX grep has a line 14332 # limit of 2048, but all sed's we know have understand at least 4000. 14333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14334 dirpart=`$as_dirname -- "$mf" || 14335$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14336 X"$mf" : 'X\(//\)[^/]' \| \ 14337 X"$mf" : 'X\(//\)$' \| \ 14338 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14339$as_echo X"$mf" | 14340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14341 s//\1/ 14342 q 14343 } 14344 /^X\(\/\/\)[^/].*/{ 14345 s//\1/ 14346 q 14347 } 14348 /^X\(\/\/\)$/{ 14349 s//\1/ 14350 q 14351 } 14352 /^X\(\/\).*/{ 14353 s//\1/ 14354 q 14355 } 14356 s/.*/./; q'` 14357 else 14358 continue 14359 fi 14360 # Extract the definition of DEPDIR, am__include, and am__quote 14361 # from the Makefile without running 'make'. 14362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14363 test -z "$DEPDIR" && continue 14364 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14365 test -z "$am__include" && continue 14366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14367 # Find all dependency output files, they are included files with 14368 # $(DEPDIR) in their names. We invoke sed twice because it is the 14369 # simplest approach to changing $(DEPDIR) to its actual value in the 14370 # expansion. 14371 for file in `sed -n " 14372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14374 # Make sure the directory exists. 14375 test -f "$dirpart/$file" && continue 14376 fdir=`$as_dirname -- "$file" || 14377$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14378 X"$file" : 'X\(//\)[^/]' \| \ 14379 X"$file" : 'X\(//\)$' \| \ 14380 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14381$as_echo X"$file" | 14382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14383 s//\1/ 14384 q 14385 } 14386 /^X\(\/\/\)[^/].*/{ 14387 s//\1/ 14388 q 14389 } 14390 /^X\(\/\/\)$/{ 14391 s//\1/ 14392 q 14393 } 14394 /^X\(\/\).*/{ 14395 s//\1/ 14396 q 14397 } 14398 s/.*/./; q'` 14399 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14400 # echo "creating $dirpart/$file" 14401 echo '# dummy' > "$dirpart/$file" 14402 done 14403 done 14404} 14405 ;; 14406 "libtool":C) 14407 14408 # See if we are running on zsh, and set the options which allow our 14409 # commands through without removal of \ escapes. 14410 if test -n "${ZSH_VERSION+set}" ; then 14411 setopt NO_GLOB_SUBST 14412 fi 14413 14414 cfgfile="${ofile}T" 14415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14416 $RM "$cfgfile" 14417 14418 cat <<_LT_EOF >> "$cfgfile" 14419#! $SHELL 14420 14421# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14422# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14424# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14425# 14426# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14427# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14428# Foundation, Inc. 14429# Written by Gordon Matzigkeit, 1996 14430# 14431# This file is part of GNU Libtool. 14432# 14433# GNU Libtool is free software; you can redistribute it and/or 14434# modify it under the terms of the GNU General Public License as 14435# published by the Free Software Foundation; either version 2 of 14436# the License, or (at your option) any later version. 14437# 14438# As a special exception to the GNU General Public License, 14439# if you distribute this file as part of a program or library that 14440# is built using GNU Libtool, you may include this file under the 14441# same distribution terms that you use for the rest of that program. 14442# 14443# GNU Libtool is distributed in the hope that it will be useful, 14444# but WITHOUT ANY WARRANTY; without even the implied warranty of 14445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14446# GNU General Public License for more details. 14447# 14448# You should have received a copy of the GNU General Public License 14449# along with GNU Libtool; see the file COPYING. If not, a copy 14450# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14451# obtained by writing to the Free Software Foundation, Inc., 14452# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14453 14454 14455# The names of the tagged configurations supported by this script. 14456available_tags="" 14457 14458# ### BEGIN LIBTOOL CONFIG 14459 14460# Which release of libtool.m4 was used? 14461macro_version=$macro_version 14462macro_revision=$macro_revision 14463 14464# Assembler program. 14465AS=$lt_AS 14466 14467# DLL creation program. 14468DLLTOOL=$lt_DLLTOOL 14469 14470# Object dumper program. 14471OBJDUMP=$lt_OBJDUMP 14472 14473# Whether or not to build shared libraries. 14474build_libtool_libs=$enable_shared 14475 14476# Whether or not to build static libraries. 14477build_old_libs=$enable_static 14478 14479# What type of objects to build. 14480pic_mode=$pic_mode 14481 14482# Whether or not to optimize for fast installation. 14483fast_install=$enable_fast_install 14484 14485# Shell to use when invoking shell scripts. 14486SHELL=$lt_SHELL 14487 14488# An echo program that protects backslashes. 14489ECHO=$lt_ECHO 14490 14491# The PATH separator for the build system. 14492PATH_SEPARATOR=$lt_PATH_SEPARATOR 14493 14494# The host system. 14495host_alias=$host_alias 14496host=$host 14497host_os=$host_os 14498 14499# The build system. 14500build_alias=$build_alias 14501build=$build 14502build_os=$build_os 14503 14504# A sed program that does not truncate output. 14505SED=$lt_SED 14506 14507# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14508Xsed="\$SED -e 1s/^X//" 14509 14510# A grep program that handles long lines. 14511GREP=$lt_GREP 14512 14513# An ERE matcher. 14514EGREP=$lt_EGREP 14515 14516# A literal string matcher. 14517FGREP=$lt_FGREP 14518 14519# A BSD- or MS-compatible name lister. 14520NM=$lt_NM 14521 14522# Whether we need soft or hard links. 14523LN_S=$lt_LN_S 14524 14525# What is the maximum length of a command? 14526max_cmd_len=$max_cmd_len 14527 14528# Object file suffix (normally "o"). 14529objext=$ac_objext 14530 14531# Executable file suffix (normally ""). 14532exeext=$exeext 14533 14534# whether the shell understands "unset". 14535lt_unset=$lt_unset 14536 14537# turn spaces into newlines. 14538SP2NL=$lt_lt_SP2NL 14539 14540# turn newlines into spaces. 14541NL2SP=$lt_lt_NL2SP 14542 14543# convert \$build file names to \$host format. 14544to_host_file_cmd=$lt_cv_to_host_file_cmd 14545 14546# convert \$build files to toolchain format. 14547to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14548 14549# Method to check whether dependent libraries are shared objects. 14550deplibs_check_method=$lt_deplibs_check_method 14551 14552# Command to use when deplibs_check_method = "file_magic". 14553file_magic_cmd=$lt_file_magic_cmd 14554 14555# How to find potential files when deplibs_check_method = "file_magic". 14556file_magic_glob=$lt_file_magic_glob 14557 14558# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14559want_nocaseglob=$lt_want_nocaseglob 14560 14561# Command to associate shared and link libraries. 14562sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14563 14564# The archiver. 14565AR=$lt_AR 14566 14567# Flags to create an archive. 14568AR_FLAGS=$lt_AR_FLAGS 14569 14570# How to feed a file listing to the archiver. 14571archiver_list_spec=$lt_archiver_list_spec 14572 14573# A symbol stripping program. 14574STRIP=$lt_STRIP 14575 14576# Commands used to install an old-style archive. 14577RANLIB=$lt_RANLIB 14578old_postinstall_cmds=$lt_old_postinstall_cmds 14579old_postuninstall_cmds=$lt_old_postuninstall_cmds 14580 14581# Whether to use a lock for old archive extraction. 14582lock_old_archive_extraction=$lock_old_archive_extraction 14583 14584# A C compiler. 14585LTCC=$lt_CC 14586 14587# LTCC compiler flags. 14588LTCFLAGS=$lt_CFLAGS 14589 14590# Take the output of nm and produce a listing of raw symbols and C names. 14591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14592 14593# Transform the output of nm in a proper C declaration. 14594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14595 14596# Transform the output of nm in a C name address pair. 14597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14598 14599# Transform the output of nm in a C name address pair when lib prefix is needed. 14600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14601 14602# Specify filename containing input files for \$NM. 14603nm_file_list_spec=$lt_nm_file_list_spec 14604 14605# The root where to search for dependent libraries,and in which our libraries should be installed. 14606lt_sysroot=$lt_sysroot 14607 14608# The name of the directory that contains temporary libtool files. 14609objdir=$objdir 14610 14611# Used to examine libraries when file_magic_cmd begins with "file". 14612MAGIC_CMD=$MAGIC_CMD 14613 14614# Must we lock files when doing compilation? 14615need_locks=$lt_need_locks 14616 14617# Manifest tool. 14618MANIFEST_TOOL=$lt_MANIFEST_TOOL 14619 14620# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14621DSYMUTIL=$lt_DSYMUTIL 14622 14623# Tool to change global to local symbols on Mac OS X. 14624NMEDIT=$lt_NMEDIT 14625 14626# Tool to manipulate fat objects and archives on Mac OS X. 14627LIPO=$lt_LIPO 14628 14629# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14630OTOOL=$lt_OTOOL 14631 14632# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14633OTOOL64=$lt_OTOOL64 14634 14635# Old archive suffix (normally "a"). 14636libext=$libext 14637 14638# Shared library suffix (normally ".so"). 14639shrext_cmds=$lt_shrext_cmds 14640 14641# The commands to extract the exported symbol list from a shared archive. 14642extract_expsyms_cmds=$lt_extract_expsyms_cmds 14643 14644# Variables whose values should be saved in libtool wrapper scripts and 14645# restored at link time. 14646variables_saved_for_relink=$lt_variables_saved_for_relink 14647 14648# Do we need the "lib" prefix for modules? 14649need_lib_prefix=$need_lib_prefix 14650 14651# Do we need a version for libraries? 14652need_version=$need_version 14653 14654# Library versioning type. 14655version_type=$version_type 14656 14657# Shared library runtime path variable. 14658runpath_var=$runpath_var 14659 14660# Shared library path variable. 14661shlibpath_var=$shlibpath_var 14662 14663# Is shlibpath searched before the hard-coded library search path? 14664shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14665 14666# Format of library name prefix. 14667libname_spec=$lt_libname_spec 14668 14669# List of archive names. First name is the real one, the rest are links. 14670# The last name is the one that the linker finds with -lNAME 14671library_names_spec=$lt_library_names_spec 14672 14673# The coded name of the library, if different from the real name. 14674soname_spec=$lt_soname_spec 14675 14676# Permission mode override for installation of shared libraries. 14677install_override_mode=$lt_install_override_mode 14678 14679# Command to use after installation of a shared archive. 14680postinstall_cmds=$lt_postinstall_cmds 14681 14682# Command to use after uninstallation of a shared archive. 14683postuninstall_cmds=$lt_postuninstall_cmds 14684 14685# Commands used to finish a libtool library installation in a directory. 14686finish_cmds=$lt_finish_cmds 14687 14688# As "finish_cmds", except a single script fragment to be evaled but 14689# not shown. 14690finish_eval=$lt_finish_eval 14691 14692# Whether we should hardcode library paths into libraries. 14693hardcode_into_libs=$hardcode_into_libs 14694 14695# Compile-time system search path for libraries. 14696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14697 14698# Run-time system search path for libraries. 14699sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14700 14701# Whether dlopen is supported. 14702dlopen_support=$enable_dlopen 14703 14704# Whether dlopen of programs is supported. 14705dlopen_self=$enable_dlopen_self 14706 14707# Whether dlopen of statically linked programs is supported. 14708dlopen_self_static=$enable_dlopen_self_static 14709 14710# Commands to strip libraries. 14711old_striplib=$lt_old_striplib 14712striplib=$lt_striplib 14713 14714 14715# The linker used to build libraries. 14716LD=$lt_LD 14717 14718# How to create reloadable object files. 14719reload_flag=$lt_reload_flag 14720reload_cmds=$lt_reload_cmds 14721 14722# Commands used to build an old-style archive. 14723old_archive_cmds=$lt_old_archive_cmds 14724 14725# A language specific compiler. 14726CC=$lt_compiler 14727 14728# Is the compiler the GNU compiler? 14729with_gcc=$GCC 14730 14731# Compiler flag to turn off builtin functions. 14732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14733 14734# Additional compiler flags for building library objects. 14735pic_flag=$lt_lt_prog_compiler_pic 14736 14737# How to pass a linker flag through the compiler. 14738wl=$lt_lt_prog_compiler_wl 14739 14740# Compiler flag to prevent dynamic linking. 14741link_static_flag=$lt_lt_prog_compiler_static 14742 14743# Does compiler simultaneously support -c and -o options? 14744compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14745 14746# Whether or not to add -lc for building shared libraries. 14747build_libtool_need_lc=$archive_cmds_need_lc 14748 14749# Whether or not to disallow shared libs when runtime libs are static. 14750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14751 14752# Compiler flag to allow reflexive dlopens. 14753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14754 14755# Compiler flag to generate shared objects directly from archives. 14756whole_archive_flag_spec=$lt_whole_archive_flag_spec 14757 14758# Whether the compiler copes with passing no objects directly. 14759compiler_needs_object=$lt_compiler_needs_object 14760 14761# Create an old-style archive from a shared archive. 14762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14763 14764# Create a temporary old-style archive to link instead of a shared archive. 14765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14766 14767# Commands used to build a shared archive. 14768archive_cmds=$lt_archive_cmds 14769archive_expsym_cmds=$lt_archive_expsym_cmds 14770 14771# Commands used to build a loadable module if different from building 14772# a shared archive. 14773module_cmds=$lt_module_cmds 14774module_expsym_cmds=$lt_module_expsym_cmds 14775 14776# Whether we are building with GNU ld or not. 14777with_gnu_ld=$lt_with_gnu_ld 14778 14779# Flag that allows shared libraries with undefined symbols to be built. 14780allow_undefined_flag=$lt_allow_undefined_flag 14781 14782# Flag that enforces no undefined symbols. 14783no_undefined_flag=$lt_no_undefined_flag 14784 14785# Flag to hardcode \$libdir into a binary during linking. 14786# This must work even if \$libdir does not exist 14787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14788 14789# Whether we need a single "-rpath" flag with a separated argument. 14790hardcode_libdir_separator=$lt_hardcode_libdir_separator 14791 14792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14793# DIR into the resulting binary. 14794hardcode_direct=$hardcode_direct 14795 14796# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14797# DIR into the resulting binary and the resulting library dependency is 14798# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14799# library is relocated. 14800hardcode_direct_absolute=$hardcode_direct_absolute 14801 14802# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14803# into the resulting binary. 14804hardcode_minus_L=$hardcode_minus_L 14805 14806# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14807# into the resulting binary. 14808hardcode_shlibpath_var=$hardcode_shlibpath_var 14809 14810# Set to "yes" if building a shared library automatically hardcodes DIR 14811# into the library and all subsequent libraries and executables linked 14812# against it. 14813hardcode_automatic=$hardcode_automatic 14814 14815# Set to yes if linker adds runtime paths of dependent libraries 14816# to runtime path list. 14817inherit_rpath=$inherit_rpath 14818 14819# Whether libtool must link a program against all its dependency libraries. 14820link_all_deplibs=$link_all_deplibs 14821 14822# Set to "yes" if exported symbols are required. 14823always_export_symbols=$always_export_symbols 14824 14825# The commands to list exported symbols. 14826export_symbols_cmds=$lt_export_symbols_cmds 14827 14828# Symbols that should not be listed in the preloaded symbols. 14829exclude_expsyms=$lt_exclude_expsyms 14830 14831# Symbols that must always be exported. 14832include_expsyms=$lt_include_expsyms 14833 14834# Commands necessary for linking programs (against libraries) with templates. 14835prelink_cmds=$lt_prelink_cmds 14836 14837# Commands necessary for finishing linking programs. 14838postlink_cmds=$lt_postlink_cmds 14839 14840# Specify filename containing input files. 14841file_list_spec=$lt_file_list_spec 14842 14843# How to hardcode a shared library path into an executable. 14844hardcode_action=$hardcode_action 14845 14846# ### END LIBTOOL CONFIG 14847 14848_LT_EOF 14849 14850 case $host_os in 14851 aix3*) 14852 cat <<\_LT_EOF >> "$cfgfile" 14853# AIX sometimes has problems with the GCC collect2 program. For some 14854# reason, if we set the COLLECT_NAMES environment variable, the problems 14855# vanish in a puff of smoke. 14856if test "X${COLLECT_NAMES+set}" != Xset; then 14857 COLLECT_NAMES= 14858 export COLLECT_NAMES 14859fi 14860_LT_EOF 14861 ;; 14862 esac 14863 14864 14865ltmain="$ac_aux_dir/ltmain.sh" 14866 14867 14868 # We use sed instead of cat because bash on DJGPP gets confused if 14869 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14870 # text mode, it properly converts lines to CR/LF. This bash problem 14871 # is reportedly fixed, but why not run on old versions too? 14872 sed '$q' "$ltmain" >> "$cfgfile" \ 14873 || (rm -f "$cfgfile"; exit 1) 14874 14875 if test x"$xsi_shell" = xyes; then 14876 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14877func_dirname ()\ 14878{\ 14879\ case ${1} in\ 14880\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14881\ * ) func_dirname_result="${3}" ;;\ 14882\ esac\ 14883} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14884 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14886test 0 -eq $? || _lt_function_replace_fail=: 14887 14888 14889 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14890func_basename ()\ 14891{\ 14892\ func_basename_result="${1##*/}"\ 14893} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14894 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14896test 0 -eq $? || _lt_function_replace_fail=: 14897 14898 14899 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14900func_dirname_and_basename ()\ 14901{\ 14902\ case ${1} in\ 14903\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14904\ * ) func_dirname_result="${3}" ;;\ 14905\ esac\ 14906\ func_basename_result="${1##*/}"\ 14907} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14908 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14910test 0 -eq $? || _lt_function_replace_fail=: 14911 14912 14913 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14914func_stripname ()\ 14915{\ 14916\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14917\ # positional parameters, so assign one to ordinary parameter first.\ 14918\ func_stripname_result=${3}\ 14919\ func_stripname_result=${func_stripname_result#"${1}"}\ 14920\ func_stripname_result=${func_stripname_result%"${2}"}\ 14921} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14924test 0 -eq $? || _lt_function_replace_fail=: 14925 14926 14927 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14928func_split_long_opt ()\ 14929{\ 14930\ func_split_long_opt_name=${1%%=*}\ 14931\ func_split_long_opt_arg=${1#*=}\ 14932} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14935test 0 -eq $? || _lt_function_replace_fail=: 14936 14937 14938 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14939func_split_short_opt ()\ 14940{\ 14941\ func_split_short_opt_arg=${1#??}\ 14942\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14943} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14944 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14946test 0 -eq $? || _lt_function_replace_fail=: 14947 14948 14949 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14950func_lo2o ()\ 14951{\ 14952\ case ${1} in\ 14953\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14954\ *) func_lo2o_result=${1} ;;\ 14955\ esac\ 14956} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14959test 0 -eq $? || _lt_function_replace_fail=: 14960 14961 14962 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14963func_xform ()\ 14964{\ 14965 func_xform_result=${1%.*}.lo\ 14966} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14967 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14969test 0 -eq $? || _lt_function_replace_fail=: 14970 14971 14972 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14973func_arith ()\ 14974{\ 14975 func_arith_result=$(( $* ))\ 14976} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14977 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14979test 0 -eq $? || _lt_function_replace_fail=: 14980 14981 14982 sed -e '/^func_len ()$/,/^} # func_len /c\ 14983func_len ()\ 14984{\ 14985 func_len_result=${#1}\ 14986} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14987 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14989test 0 -eq $? || _lt_function_replace_fail=: 14990 14991fi 14992 14993if test x"$lt_shell_append" = xyes; then 14994 sed -e '/^func_append ()$/,/^} # func_append /c\ 14995func_append ()\ 14996{\ 14997 eval "${1}+=\\${2}"\ 14998} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14999 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15001test 0 -eq $? || _lt_function_replace_fail=: 15002 15003 15004 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15005func_append_quoted ()\ 15006{\ 15007\ func_quote_for_eval "${2}"\ 15008\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15009} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15010 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15012test 0 -eq $? || _lt_function_replace_fail=: 15013 15014 15015 # Save a `func_append' function call where possible by direct use of '+=' 15016 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15017 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15019 test 0 -eq $? || _lt_function_replace_fail=: 15020else 15021 # Save a `func_append' function call even when '+=' is not available 15022 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15023 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15025 test 0 -eq $? || _lt_function_replace_fail=: 15026fi 15027 15028if test x"$_lt_function_replace_fail" = x":"; then 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15030$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15031fi 15032 15033 15034 mv -f "$cfgfile" "$ofile" || 15035 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15036 chmod +x "$ofile" 15037 15038 ;; 15039 15040 esac 15041done # for ac_tag 15042 15043 15044as_fn_exit 0 15045_ACEOF 15046ac_clean_files=$ac_clean_files_save 15047 15048test $ac_write_fail = 0 || 15049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15050 15051 15052# configure is writing to config.log, and then calls config.status. 15053# config.status does its own redirection, appending to config.log. 15054# Unfortunately, on DOS this fails, as config.log is still kept open 15055# by configure, so config.status won't be able to write to it; its 15056# output is simply discarded. So we exec the FD to /dev/null, 15057# effectively closing config.log, so it can be properly (re)opened and 15058# appended to by config.status. When coming back to configure, we 15059# need to make the FD available again. 15060if test "$no_create" != yes; then 15061 ac_cs_success=: 15062 ac_config_status_args= 15063 test "$silent" = yes && 15064 ac_config_status_args="$ac_config_status_args --quiet" 15065 exec 5>/dev/null 15066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15067 exec 5>>config.log 15068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15069 # would make configure fail if this is the last instruction. 15070 $ac_cs_success || as_fn_exit 1 15071fi 15072if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15074$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15075fi 15076 15077