1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ding-libs 0.6.1. 4# 5# Report bugs to <sssd-devel@lists.fedorahosted.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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: sssd-devel@lists.fedorahosted.org about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ding-libs' 592PACKAGE_TARNAME='ding-libs' 593PACKAGE_VERSION='0.6.1' 594PACKAGE_STRING='ding-libs 0.6.1' 595PACKAGE_BUGREPORT='sssd-devel@lists.fedorahosted.org' 596PACKAGE_URL='' 597 598ac_unique_file="README" 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 638LIBOBJS 639TRACE_VAR 640HAVE_DOXYGEN_FALSE 641HAVE_DOXYGEN_TRUE 642DOXYGEN 643GIT_CHECKOUT_FALSE 644GIT_CHECKOUT_TRUE 645INI_CONFIG_VERSION 646BASICOBJECTS_VERSION 647REF_ARRAY_VERSION 648COLLECTION_VERSION 649DHASH_VERSION 650PATH_UTILS_VERSION 651PRERELEASE_VERSION 652HAVE_CHECK_FALSE 653HAVE_CHECK_TRUE 654CHECK_LIBS 655CHECK_CFLAGS 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659HAVE_GCC_FALSE 660HAVE_GCC_TRUE 661LT_SYS_LIBRARY_PATH 662OTOOL64 663OTOOL 664LIPO 665NMEDIT 666DSYMUTIL 667MANIFEST_TOOL 668RANLIB 669DLLTOOL 670OBJDUMP 671LN_S 672NM 673ac_ct_DUMPBIN 674DUMPBIN 675LD 676FGREP 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686LIBTOOL 687ac_ct_AR 688AR 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__quote 701am__include 702DEPDIR 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726EGREP 727GREP 728CPP 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_dependency_tracking 778enable_silent_rules 779enable_shared 780enable_static 781with_pic 782enable_fast_install 783with_aix_soname 784with_gnu_ld 785with_sysroot 786enable_libtool_lock 787enable_trace 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797CPP 798LT_SYS_LIBRARY_PATH 799PKG_CONFIG 800PKG_CONFIG_PATH 801PKG_CONFIG_LIBDIR 802CHECK_CFLAGS 803CHECK_LIBS' 804 805 806# Initialize some variables set by options. 807ac_init_help= 808ac_init_version=false 809ac_unrecognized_opts= 810ac_unrecognized_sep= 811# The variables have the same names as the options, with 812# dashes changed to underlines. 813cache_file=/dev/null 814exec_prefix=NONE 815no_create= 816no_recursion= 817prefix=NONE 818program_prefix=NONE 819program_suffix=NONE 820program_transform_name=s,x,x, 821silent= 822site= 823srcdir= 824verbose= 825x_includes=NONE 826x_libraries=NONE 827 828# Installation directory options. 829# These are left unexpanded so users can "make install exec_prefix=/foo" 830# and all the variables that are supposed to be based on exec_prefix 831# by default will actually change. 832# Use braces instead of parens because sh, perl, etc. also accept them. 833# (The list follows the same order as the GNU Coding Standards.) 834bindir='${exec_prefix}/bin' 835sbindir='${exec_prefix}/sbin' 836libexecdir='${exec_prefix}/libexec' 837datarootdir='${prefix}/share' 838datadir='${datarootdir}' 839sysconfdir='${prefix}/etc' 840sharedstatedir='${prefix}/com' 841localstatedir='${prefix}/var' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 # Accept the important Cygnus configure options, so we can diagnose typos. 872 873 case $ac_dashdash$ac_option in 874 --) 875 ac_dashdash=yes ;; 876 877 -bindir | --bindir | --bindi | --bind | --bin | --bi) 878 ac_prev=bindir ;; 879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 880 bindir=$ac_optarg ;; 881 882 -build | --build | --buil | --bui | --bu) 883 ac_prev=build_alias ;; 884 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 885 build_alias=$ac_optarg ;; 886 887 -cache-file | --cache-file | --cache-fil | --cache-fi \ 888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 889 ac_prev=cache_file ;; 890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 892 cache_file=$ac_optarg ;; 893 894 --config-cache | -C) 895 cache_file=config.cache ;; 896 897 -datadir | --datadir | --datadi | --datad) 898 ac_prev=datadir ;; 899 -datadir=* | --datadir=* | --datadi=* | --datad=*) 900 datadir=$ac_optarg ;; 901 902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 903 | --dataroo | --dataro | --datar) 904 ac_prev=datarootdir ;; 905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 907 datarootdir=$ac_optarg ;; 908 909 -disable-* | --disable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=no ;; 924 925 -docdir | --docdir | --docdi | --doc | --do) 926 ac_prev=docdir ;; 927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 928 docdir=$ac_optarg ;; 929 930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 931 ac_prev=dvidir ;; 932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 933 dvidir=$ac_optarg ;; 934 935 -enable-* | --enable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: $ac_useropt" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=\$ac_optarg ;; 950 951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 953 | --exec | --exe | --ex) 954 ac_prev=exec_prefix ;; 955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 957 | --exec=* | --exe=* | --ex=*) 958 exec_prefix=$ac_optarg ;; 959 960 -gas | --gas | --ga | --g) 961 # Obsolete; use --with-gas. 962 with_gas=yes ;; 963 964 -help | --help | --hel | --he | -h) 965 ac_init_help=long ;; 966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 967 ac_init_help=recursive ;; 968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 969 ac_init_help=short ;; 970 971 -host | --host | --hos | --ho) 972 ac_prev=host_alias ;; 973 -host=* | --host=* | --hos=* | --ho=*) 974 host_alias=$ac_optarg ;; 975 976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 977 ac_prev=htmldir ;; 978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 979 | --ht=*) 980 htmldir=$ac_optarg ;; 981 982 -includedir | --includedir | --includedi | --included | --include \ 983 | --includ | --inclu | --incl | --inc) 984 ac_prev=includedir ;; 985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 986 | --includ=* | --inclu=* | --incl=* | --inc=*) 987 includedir=$ac_optarg ;; 988 989 -infodir | --infodir | --infodi | --infod | --info | --inf) 990 ac_prev=infodir ;; 991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 992 infodir=$ac_optarg ;; 993 994 -libdir | --libdir | --libdi | --libd) 995 ac_prev=libdir ;; 996 -libdir=* | --libdir=* | --libdi=* | --libd=*) 997 libdir=$ac_optarg ;; 998 999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1000 | --libexe | --libex | --libe) 1001 ac_prev=libexecdir ;; 1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1003 | --libexe=* | --libex=* | --libe=*) 1004 libexecdir=$ac_optarg ;; 1005 1006 -localedir | --localedir | --localedi | --localed | --locale) 1007 ac_prev=localedir ;; 1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1009 localedir=$ac_optarg ;; 1010 1011 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1012 | --localstate | --localstat | --localsta | --localst | --locals) 1013 ac_prev=localstatedir ;; 1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1016 localstatedir=$ac_optarg ;; 1017 1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1019 ac_prev=mandir ;; 1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1021 mandir=$ac_optarg ;; 1022 1023 -nfp | --nfp | --nf) 1024 # Obsolete; use --without-fp. 1025 with_fp=no ;; 1026 1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1028 | --no-cr | --no-c | -n) 1029 no_create=yes ;; 1030 1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1033 no_recursion=yes ;; 1034 1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1037 | --oldin | --oldi | --old | --ol | --o) 1038 ac_prev=oldincludedir ;; 1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1042 oldincludedir=$ac_optarg ;; 1043 1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1045 ac_prev=prefix ;; 1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1047 prefix=$ac_optarg ;; 1048 1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1050 | --program-pre | --program-pr | --program-p) 1051 ac_prev=program_prefix ;; 1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1054 program_prefix=$ac_optarg ;; 1055 1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1057 | --program-suf | --program-su | --program-s) 1058 ac_prev=program_suffix ;; 1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1061 program_suffix=$ac_optarg ;; 1062 1063 -program-transform-name | --program-transform-name \ 1064 | --program-transform-nam | --program-transform-na \ 1065 | --program-transform-n | --program-transform- \ 1066 | --program-transform | --program-transfor \ 1067 | --program-transfo | --program-transf \ 1068 | --program-trans | --program-tran \ 1069 | --progr-tra | --program-tr | --program-t) 1070 ac_prev=program_transform_name ;; 1071 -program-transform-name=* | --program-transform-name=* \ 1072 | --program-transform-nam=* | --program-transform-na=* \ 1073 | --program-transform-n=* | --program-transform-=* \ 1074 | --program-transform=* | --program-transfor=* \ 1075 | --program-transfo=* | --program-transf=* \ 1076 | --program-trans=* | --program-tran=* \ 1077 | --progr-tra=* | --program-tr=* | --program-t=*) 1078 program_transform_name=$ac_optarg ;; 1079 1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1081 ac_prev=pdfdir ;; 1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1083 pdfdir=$ac_optarg ;; 1084 1085 -psdir | --psdir | --psdi | --psd | --ps) 1086 ac_prev=psdir ;; 1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1088 psdir=$ac_optarg ;; 1089 1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1091 | -silent | --silent | --silen | --sile | --sil) 1092 silent=yes ;; 1093 1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1095 ac_prev=sbindir ;; 1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1097 | --sbi=* | --sb=*) 1098 sbindir=$ac_optarg ;; 1099 1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1102 | --sharedst | --shareds | --shared | --share | --shar \ 1103 | --sha | --sh) 1104 ac_prev=sharedstatedir ;; 1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1108 | --sha=* | --sh=*) 1109 sharedstatedir=$ac_optarg ;; 1110 1111 -site | --site | --sit) 1112 ac_prev=site ;; 1113 -site=* | --site=* | --sit=*) 1114 site=$ac_optarg ;; 1115 1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1117 ac_prev=srcdir ;; 1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1119 srcdir=$ac_optarg ;; 1120 1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1122 | --syscon | --sysco | --sysc | --sys | --sy) 1123 ac_prev=sysconfdir ;; 1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1126 sysconfdir=$ac_optarg ;; 1127 1128 -target | --target | --targe | --targ | --tar | --ta | --t) 1129 ac_prev=target_alias ;; 1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1131 target_alias=$ac_optarg ;; 1132 1133 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1134 verbose=yes ;; 1135 1136 -version | --version | --versio | --versi | --vers | -V) 1137 ac_init_version=: ;; 1138 1139 -with-* | --with-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=\$ac_optarg ;; 1154 1155 -without-* | --without-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=no ;; 1170 1171 --x) 1172 # Obsolete; use --with-x. 1173 with_x=yes ;; 1174 1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1176 | --x-incl | --x-inc | --x-in | --x-i) 1177 ac_prev=x_includes ;; 1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1180 x_includes=$ac_optarg ;; 1181 1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1184 ac_prev=x_libraries ;; 1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1187 x_libraries=$ac_optarg ;; 1188 1189 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1190Try \`$0 --help' for more information" 1191 ;; 1192 1193 *=*) 1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1195 # Reject names that are not valid shell variable names. 1196 case $ac_envvar in #( 1197 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1199 esac 1200 eval $ac_envvar=\$ac_optarg 1201 export $ac_envvar ;; 1202 1203 *) 1204 # FIXME: should be removed in autoconf 3.0. 1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1209 ;; 1210 1211 esac 1212done 1213 1214if test -n "$ac_prev"; then 1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1216 as_fn_error $? "missing argument to $ac_option" 1217fi 1218 1219if test -n "$ac_unrecognized_opts"; then 1220 case $enable_option_checking in 1221 no) ;; 1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1224 esac 1225fi 1226 1227# Check all directory arguments for consistency. 1228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1229 datadir sysconfdir sharedstatedir localstatedir includedir \ 1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1231 libdir localedir mandir 1232do 1233 eval ac_val=\$$ac_var 1234 # Remove trailing slashes. 1235 case $ac_val in 1236 */ ) 1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1238 eval $ac_var=\$ac_val;; 1239 esac 1240 # Be sure to have absolute directory names. 1241 case $ac_val in 1242 [\\/$]* | ?:[\\/]* ) continue;; 1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1244 esac 1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1246done 1247 1248# There might be people who depend on the old broken behavior: `$host' 1249# used to hold the argument of --host etc. 1250# FIXME: To remove some day. 1251build=$build_alias 1252host=$host_alias 1253target=$target_alias 1254 1255# FIXME: To remove some day. 1256if test "x$host_alias" != x; then 1257 if test "x$build_alias" = x; then 1258 cross_compiling=maybe 1259 elif test "x$build_alias" != "x$host_alias"; then 1260 cross_compiling=yes 1261 fi 1262fi 1263 1264ac_tool_prefix= 1265test -n "$host_alias" && ac_tool_prefix=$host_alias- 1266 1267test "$silent" = yes && exec 6>/dev/null 1268 1269 1270ac_pwd=`pwd` && test -n "$ac_pwd" && 1271ac_ls_di=`ls -di .` && 1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1273 as_fn_error $? "working directory cannot be determined" 1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1275 as_fn_error $? "pwd does not report name of working directory" 1276 1277 1278# Find the source files, if location was not specified. 1279if test -z "$srcdir"; then 1280 ac_srcdir_defaulted=yes 1281 # Try the directory containing this script, then the parent directory. 1282 ac_confdir=`$as_dirname -- "$as_myself" || 1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1284 X"$as_myself" : 'X\(//\)[^/]' \| \ 1285 X"$as_myself" : 'X\(//\)$' \| \ 1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1287$as_echo X"$as_myself" | 1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)[^/].*/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\).*/{ 1301 s//\1/ 1302 q 1303 } 1304 s/.*/./; q'` 1305 srcdir=$ac_confdir 1306 if test ! -r "$srcdir/$ac_unique_file"; then 1307 srcdir=.. 1308 fi 1309else 1310 ac_srcdir_defaulted=no 1311fi 1312if test ! -r "$srcdir/$ac_unique_file"; then 1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1315fi 1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1317ac_abs_confdir=`( 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1319 pwd)` 1320# When building in place, set srcdir=. 1321if test "$ac_abs_confdir" = "$ac_pwd"; then 1322 srcdir=. 1323fi 1324# Remove unnecessary trailing slashes from srcdir. 1325# Double slashes in file names in object file debugging info 1326# mess up M-x gdb in Emacs. 1327case $srcdir in 1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1329esac 1330for ac_var in $ac_precious_vars; do 1331 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_env_${ac_var}_value=\$${ac_var} 1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1335done 1336 1337# 1338# Report the --help message. 1339# 1340if test "$ac_init_help" = "long"; then 1341 # Omit some internal or obsolete options to make the list less imposing. 1342 # This message is too long to be a string in the A/UX 3.1 sh. 1343 cat <<_ACEOF 1344\`configure' configures ding-libs 0.6.1 to adapt to many kinds of systems. 1345 1346Usage: $0 [OPTION]... [VAR=VALUE]... 1347 1348To assign environment variables (e.g., CC, CFLAGS...), specify them as 1349VAR=VALUE. See below for descriptions of some of the useful variables. 1350 1351Defaults for the options are specified in brackets. 1352 1353Configuration: 1354 -h, --help display this help and exit 1355 --help=short display options specific to this package 1356 --help=recursive display the short help of all the included packages 1357 -V, --version display version information and exit 1358 -q, --quiet, --silent do not print \`checking ...' messages 1359 --cache-file=FILE cache test results in FILE [disabled] 1360 -C, --config-cache alias for \`--cache-file=config.cache' 1361 -n, --no-create do not create output files 1362 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1363 1364Installation directories: 1365 --prefix=PREFIX install architecture-independent files in PREFIX 1366 [$ac_default_prefix] 1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1368 [PREFIX] 1369 1370By default, \`make install' will install all the files in 1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1372an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1373for instance \`--prefix=\$HOME'. 1374 1375For better control, use the options below. 1376 1377Fine tuning of the installation directories: 1378 --bindir=DIR user executables [EPREFIX/bin] 1379 --sbindir=DIR system admin executables [EPREFIX/sbin] 1380 --libexecdir=DIR program executables [EPREFIX/libexec] 1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1384 --libdir=DIR object code libraries [EPREFIX/lib] 1385 --includedir=DIR C header files [PREFIX/include] 1386 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1389 --infodir=DIR info documentation [DATAROOTDIR/info] 1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1391 --mandir=DIR man documentation [DATAROOTDIR/man] 1392 --docdir=DIR documentation root [DATAROOTDIR/doc/ding-libs] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397_ACEOF 1398 1399 cat <<\_ACEOF 1400 1401Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of ding-libs 0.6.1:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-shared[=PKGS] build shared libraries [default=yes] 1429 --enable-static[=PKGS] build static libraries [default=yes] 1430 --enable-fast-install[=PKGS] 1431 optimize for fast installation [default=yes] 1432 --disable-libtool-lock avoid locking (might break parallel builds) 1433 --enable-trace=LEVEL build with low level tracing enabled 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1439 both] 1440 --with-aix-soname=aix|svr4|both 1441 shared library versioning (aka "SONAME") variant to 1442 provide on AIX, [default=aix]. 1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1444 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1445 compiler's sysroot if not specified). 1446 1447Some influential environment variables: 1448 CC C compiler command 1449 CFLAGS C compiler flags 1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1451 nonstandard directory <lib dir> 1452 LIBS libraries to pass to the linker, e.g. -l<library> 1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1454 you have headers in a nonstandard directory <include dir> 1455 CPP C preprocessor 1456 LT_SYS_LIBRARY_PATH 1457 User-defined run-time library search path. 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 CHECK_CFLAGS 1464 C compiler flags for CHECK, overriding pkg-config 1465 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <sssd-devel@lists.fedorahosted.org>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || 1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1480 continue 1481 ac_builddir=. 1482 1483case "$ac_dir" in 1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485*) 1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1487 # A ".." for each directory in $ac_dir_suffix. 1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1489 case $ac_top_builddir_sub in 1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1492 esac ;; 1493esac 1494ac_abs_top_builddir=$ac_pwd 1495ac_abs_builddir=$ac_pwd$ac_dir_suffix 1496# for backward compatibility: 1497ac_top_builddir=$ac_top_build_prefix 1498 1499case $srcdir in 1500 .) # We are building in place. 1501 ac_srcdir=. 1502 ac_top_srcdir=$ac_top_builddir_sub 1503 ac_abs_top_srcdir=$ac_pwd ;; 1504 [\\/]* | ?:[\\/]* ) # Absolute name. 1505 ac_srcdir=$srcdir$ac_dir_suffix; 1506 ac_top_srcdir=$srcdir 1507 ac_abs_top_srcdir=$srcdir ;; 1508 *) # Relative name. 1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1510 ac_top_srcdir=$ac_top_build_prefix$srcdir 1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1512esac 1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1514 1515 cd "$ac_dir" || { ac_status=$?; continue; } 1516 # Check for guested configure. 1517 if test -f "$ac_srcdir/configure.gnu"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1520 elif test -f "$ac_srcdir/configure"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure" --help=recursive 1523 else 1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1525 fi || ac_status=$? 1526 cd "$ac_pwd" || { ac_status=$?; break; } 1527 done 1528fi 1529 1530test -n "$ac_init_help" && exit $ac_status 1531if $ac_init_version; then 1532 cat <<\_ACEOF 1533ding-libs configure 0.6.1 1534generated by GNU Autoconf 2.69 1535 1536Copyright (C) 2012 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539_ACEOF 1540 exit 1541fi 1542 1543## ------------------------ ## 1544## Autoconf initialization. ## 1545## ------------------------ ## 1546 1547# ac_fn_c_try_compile LINENO 1548# -------------------------- 1549# Try to compile conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_compile () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 rm -f conftest.$ac_objext 1554 if { { ac_try="$ac_compile" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_compile") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { 1570 test -z "$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 } && test -s conftest.$ac_objext; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_c_try_cpp LINENO 1586# ---------------------- 1587# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_cpp () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 if { { ac_try="$ac_cpp conftest.$ac_ext" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597$as_echo "$ac_try_echo"; } >&5 1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } > conftest.i && { 1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 }; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: failed program was:" >&5 1613sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_cpp 1621 1622# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1625# the include files in INCLUDES and setting the cache variable VAR 1626# accordingly. 1627ac_fn_c_check_header_mongrel () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 if eval \${$3+:} false; then : 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632$as_echo_n "checking for $2... " >&6; } 1633if eval \${$3+:} false; then : 1634 $as_echo_n "(cached) " >&6 1635fi 1636eval ac_res=\$$3 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1638$as_echo "$ac_res" >&6; } 1639else 1640 # Is the header compilable? 1641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1642$as_echo_n "checking $2 usability... " >&6; } 1643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1644/* end confdefs.h. */ 1645$4 1646#include <$2> 1647_ACEOF 1648if ac_fn_c_try_compile "$LINENO"; then : 1649 ac_header_compiler=yes 1650else 1651 ac_header_compiler=no 1652fi 1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1655$as_echo "$ac_header_compiler" >&6; } 1656 1657# Is the header present? 1658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1659$as_echo_n "checking $2 presence... " >&6; } 1660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661/* end confdefs.h. */ 1662#include <$2> 1663_ACEOF 1664if ac_fn_c_try_cpp "$LINENO"; then : 1665 ac_header_preproc=yes 1666else 1667 ac_header_preproc=no 1668fi 1669rm -f conftest.err conftest.i conftest.$ac_ext 1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1671$as_echo "$ac_header_preproc" >&6; } 1672 1673# So? What about this header? 1674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1675 yes:no: ) 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1677$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1680 ;; 1681 no:yes:* ) 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1683$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1685$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1687$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1689$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1691$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1692( $as_echo "## ------------------------------------------------ ## 1693## Report this to sssd-devel@lists.fedorahosted.org ## 1694## ------------------------------------------------ ##" 1695 ) | sed "s/^/$as_me: WARNING: /" >&2 1696 ;; 1697esac 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval \${$3+:} false; then : 1701 $as_echo_n "(cached) " >&6 1702else 1703 eval "$3=\$ac_header_compiler" 1704fi 1705eval ac_res=\$$3 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1707$as_echo "$ac_res" >&6; } 1708fi 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 1711} # ac_fn_c_check_header_mongrel 1712 1713# ac_fn_c_try_run LINENO 1714# ---------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1716# that executables *can* be run. 1717ac_fn_c_try_run () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>&5 1728 ac_status=$? 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1731 { { case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_try") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; }; }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: program exited with status $ac_status" >&5 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=$ac_status 1748fi 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_run 1754 1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1756# ------------------------------------------------------- 1757# Tests whether HEADER exists and can be compiled using the include files in 1758# INCLUDES, setting the cache variable VAR accordingly. 1759ac_fn_c_check_header_compile () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763$as_echo_n "checking for $2... " >&6; } 1764if eval \${$3+:} false; then : 1765 $as_echo_n "(cached) " >&6 1766else 1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1768/* end confdefs.h. */ 1769$4 1770#include <$2> 1771_ACEOF 1772if ac_fn_c_try_compile "$LINENO"; then : 1773 eval "$3=yes" 1774else 1775 eval "$3=no" 1776fi 1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1778fi 1779eval ac_res=\$$3 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781$as_echo "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_header_compile 1785 1786# ac_fn_c_try_link LINENO 1787# ----------------------- 1788# Try to link conftest.$ac_ext, and return whether this succeeded. 1789ac_fn_c_try_link () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 rm -f conftest.$ac_objext conftest$ac_exeext 1793 if { { ac_try="$ac_link" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_link") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { 1809 test -z "$ac_c_werror_flag" || 1810 test ! -s conftest.err 1811 } && test -s conftest$ac_exeext && { 1812 test "$cross_compiling" = yes || 1813 test -x conftest$ac_exeext 1814 }; then : 1815 ac_retval=0 1816else 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1824 # interfere with the next link command; also delete a directory that is 1825 # left behind by Apple's compiler. We do this before executing the actions. 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_link 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1900# -------------------------------------------- 1901# Tries to find the compile-time value of EXPR in a program that includes 1902# INCLUDES, setting VAR accordingly. Returns whether the value could be 1903# computed 1904ac_fn_c_compute_int () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 if test "$cross_compiling" = yes; then 1908 # Depending upon the size, compute the lo and hi bounds. 1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912int 1913main () 1914{ 1915static int test_array [1 - 2 * !(($2) >= 0)]; 1916test_array [0] = 0; 1917return test_array [0]; 1918 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 ac_lo=0 ac_mid=0 1925 while :; do 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928$4 1929int 1930main () 1931{ 1932static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1933test_array [0] = 0; 1934return test_array [0]; 1935 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_c_try_compile "$LINENO"; then : 1941 ac_hi=$ac_mid; break 1942else 1943 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1944 if test $ac_lo -le $ac_mid; then 1945 ac_lo= ac_hi= 1946 break 1947 fi 1948 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951 done 1952else 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956int 1957main () 1958{ 1959static int test_array [1 - 2 * !(($2) < 0)]; 1960test_array [0] = 0; 1961return test_array [0]; 1962 1963 ; 1964 return 0; 1965} 1966_ACEOF 1967if ac_fn_c_try_compile "$LINENO"; then : 1968 ac_hi=-1 ac_mid=-1 1969 while :; do 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972$4 1973int 1974main () 1975{ 1976static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1977test_array [0] = 0; 1978return test_array [0]; 1979 1980 ; 1981 return 0; 1982} 1983_ACEOF 1984if ac_fn_c_try_compile "$LINENO"; then : 1985 ac_lo=$ac_mid; break 1986else 1987 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1988 if test $ac_mid -le $ac_hi; then 1989 ac_lo= ac_hi= 1990 break 1991 fi 1992 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995 done 1996else 1997 ac_lo= ac_hi= 1998fi 1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002# Binary search between lo and hi bounds. 2003while test "x$ac_lo" != "x$ac_hi"; do 2004 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007$4 2008int 2009main () 2010{ 2011static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2012test_array [0] = 0; 2013return test_array [0]; 2014 2015 ; 2016 return 0; 2017} 2018_ACEOF 2019if ac_fn_c_try_compile "$LINENO"; then : 2020 ac_hi=$ac_mid 2021else 2022 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2023fi 2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025done 2026case $ac_lo in #(( 2027?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2028'') ac_retval=1 ;; 2029esac 2030 else 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033$4 2034static long int longval () { return $2; } 2035static unsigned long int ulongval () { return $2; } 2036#include <stdio.h> 2037#include <stdlib.h> 2038int 2039main () 2040{ 2041 2042 FILE *f = fopen ("conftest.val", "w"); 2043 if (! f) 2044 return 1; 2045 if (($2) < 0) 2046 { 2047 long int i = longval (); 2048 if (i != ($2)) 2049 return 1; 2050 fprintf (f, "%ld", i); 2051 } 2052 else 2053 { 2054 unsigned long int i = ulongval (); 2055 if (i != ($2)) 2056 return 1; 2057 fprintf (f, "%lu", i); 2058 } 2059 /* Do not output a trailing newline, as this causes \r\n confusion 2060 on some platforms. */ 2061 return ferror (f) || fclose (f) != 0; 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_run "$LINENO"; then : 2068 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2069else 2070 ac_retval=1 2071fi 2072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2073 conftest.$ac_objext conftest.beam conftest.$ac_ext 2074rm -f conftest.val 2075 2076 fi 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 as_fn_set_status $ac_retval 2079 2080} # ac_fn_c_compute_int 2081cat >config.log <<_ACEOF 2082This file contains any messages produced by compilers while 2083running configure, to aid debugging if configure makes a mistake. 2084 2085It was created by ding-libs $as_me 0.6.1, which was 2086generated by GNU Autoconf 2.69. Invocation command line was 2087 2088 $ $0 $@ 2089 2090_ACEOF 2091exec 5>>config.log 2092{ 2093cat <<_ASUNAME 2094## --------- ## 2095## Platform. ## 2096## --------- ## 2097 2098hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2099uname -m = `(uname -m) 2>/dev/null || echo unknown` 2100uname -r = `(uname -r) 2>/dev/null || echo unknown` 2101uname -s = `(uname -s) 2>/dev/null || echo unknown` 2102uname -v = `(uname -v) 2>/dev/null || echo unknown` 2103 2104/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2105/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2106 2107/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2108/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2109/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2110/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2111/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2112/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2113/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2114 2115_ASUNAME 2116 2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2118for as_dir in $PATH 2119do 2120 IFS=$as_save_IFS 2121 test -z "$as_dir" && as_dir=. 2122 $as_echo "PATH: $as_dir" 2123 done 2124IFS=$as_save_IFS 2125 2126} >&5 2127 2128cat >&5 <<_ACEOF 2129 2130 2131## ----------- ## 2132## Core tests. ## 2133## ----------- ## 2134 2135_ACEOF 2136 2137 2138# Keep a trace of the command line. 2139# Strip out --no-create and --no-recursion so they do not pile up. 2140# Strip out --silent because we don't want to record it for future runs. 2141# Also quote any args containing shell meta-characters. 2142# Make two passes to allow for proper duplicate-argument suppression. 2143ac_configure_args= 2144ac_configure_args0= 2145ac_configure_args1= 2146ac_must_keep_next=false 2147for ac_pass in 1 2 2148do 2149 for ac_arg 2150 do 2151 case $ac_arg in 2152 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2154 | -silent | --silent | --silen | --sile | --sil) 2155 continue ;; 2156 *\'*) 2157 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2158 esac 2159 case $ac_pass in 2160 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2161 2) 2162 as_fn_append ac_configure_args1 " '$ac_arg'" 2163 if test $ac_must_keep_next = true; then 2164 ac_must_keep_next=false # Got value, back to normal. 2165 else 2166 case $ac_arg in 2167 *=* | --config-cache | -C | -disable-* | --disable-* \ 2168 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2169 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2170 | -with-* | --with-* | -without-* | --without-* | --x) 2171 case "$ac_configure_args0 " in 2172 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2173 esac 2174 ;; 2175 -* ) ac_must_keep_next=true ;; 2176 esac 2177 fi 2178 as_fn_append ac_configure_args " '$ac_arg'" 2179 ;; 2180 esac 2181 done 2182done 2183{ ac_configure_args0=; unset ac_configure_args0;} 2184{ ac_configure_args1=; unset ac_configure_args1;} 2185 2186# When interrupted or exit'd, cleanup temporary files, and complete 2187# config.log. We remove comments because anyway the quotes in there 2188# would cause problems or look ugly. 2189# WARNING: Use '\'' to represent an apostrophe within the trap. 2190# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2191trap 'exit_status=$? 2192 # Save into config.log some information that might help in debugging. 2193 { 2194 echo 2195 2196 $as_echo "## ---------------- ## 2197## Cache variables. ## 2198## ---------------- ##" 2199 echo 2200 # The following way of writing the cache mishandles newlines in values, 2201( 2202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2203 eval ac_val=\$$ac_var 2204 case $ac_val in #( 2205 *${as_nl}*) 2206 case $ac_var in #( 2207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2209 esac 2210 case $ac_var in #( 2211 _ | IFS | as_nl) ;; #( 2212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2213 *) { eval $ac_var=; unset $ac_var;} ;; 2214 esac ;; 2215 esac 2216 done 2217 (set) 2>&1 | 2218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2219 *${as_nl}ac_space=\ *) 2220 sed -n \ 2221 "s/'\''/'\''\\\\'\'''\''/g; 2222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2223 ;; #( 2224 *) 2225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2226 ;; 2227 esac | 2228 sort 2229) 2230 echo 2231 2232 $as_echo "## ----------------- ## 2233## Output variables. ## 2234## ----------------- ##" 2235 echo 2236 for ac_var in $ac_subst_vars 2237 do 2238 eval ac_val=\$$ac_var 2239 case $ac_val in 2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2241 esac 2242 $as_echo "$ac_var='\''$ac_val'\''" 2243 done | sort 2244 echo 2245 2246 if test -n "$ac_subst_files"; then 2247 $as_echo "## ------------------- ## 2248## File substitutions. ## 2249## ------------------- ##" 2250 echo 2251 for ac_var in $ac_subst_files 2252 do 2253 eval ac_val=\$$ac_var 2254 case $ac_val in 2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2256 esac 2257 $as_echo "$ac_var='\''$ac_val'\''" 2258 done | sort 2259 echo 2260 fi 2261 2262 if test -s confdefs.h; then 2263 $as_echo "## ----------- ## 2264## confdefs.h. ## 2265## ----------- ##" 2266 echo 2267 cat confdefs.h 2268 echo 2269 fi 2270 test "$ac_signal" != 0 && 2271 $as_echo "$as_me: caught signal $ac_signal" 2272 $as_echo "$as_me: exit $exit_status" 2273 } >&5 2274 rm -f core *.core core.conftest.* && 2275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2276 exit $exit_status 2277' 0 2278for ac_signal in 1 2 13 15; do 2279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2280done 2281ac_signal=0 2282 2283# confdefs.h avoids OS command line length limits that DEFS can exceed. 2284rm -f -r conftest* confdefs.h 2285 2286$as_echo "/* confdefs.h */" > confdefs.h 2287 2288# Predefined preprocessor variables. 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_NAME "$PACKAGE_NAME" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2296_ACEOF 2297 2298cat >>confdefs.h <<_ACEOF 2299#define PACKAGE_VERSION "$PACKAGE_VERSION" 2300_ACEOF 2301 2302cat >>confdefs.h <<_ACEOF 2303#define PACKAGE_STRING "$PACKAGE_STRING" 2304_ACEOF 2305 2306cat >>confdefs.h <<_ACEOF 2307#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2308_ACEOF 2309 2310cat >>confdefs.h <<_ACEOF 2311#define PACKAGE_URL "$PACKAGE_URL" 2312_ACEOF 2313 2314 2315# Let the site file select an alternate cache file if it wants to. 2316# Prefer an explicitly selected file to automatically selected ones. 2317ac_site_file1=NONE 2318ac_site_file2=NONE 2319if test -n "$CONFIG_SITE"; then 2320 # We do not want a PATH search for config.site. 2321 case $CONFIG_SITE in #(( 2322 -*) ac_site_file1=./$CONFIG_SITE;; 2323 */*) ac_site_file1=$CONFIG_SITE;; 2324 *) ac_site_file1=./$CONFIG_SITE;; 2325 esac 2326elif test "x$prefix" != xNONE; then 2327 ac_site_file1=$prefix/share/config.site 2328 ac_site_file2=$prefix/etc/config.site 2329else 2330 ac_site_file1=$ac_default_prefix/share/config.site 2331 ac_site_file2=$ac_default_prefix/etc/config.site 2332fi 2333for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2334do 2335 test "x$ac_site_file" = xNONE && continue 2336 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2338$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2339 sed 's/^/| /' "$ac_site_file" >&5 2340 . "$ac_site_file" \ 2341 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2343as_fn_error $? "failed to load site script $ac_site_file 2344See \`config.log' for more details" "$LINENO" 5; } 2345 fi 2346done 2347 2348if test -r "$cache_file"; then 2349 # Some versions of bash will fail to source /dev/null (special files 2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2353$as_echo "$as_me: loading cache $cache_file" >&6;} 2354 case $cache_file in 2355 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2356 *) . "./$cache_file";; 2357 esac 2358 fi 2359else 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2361$as_echo "$as_me: creating cache $cache_file" >&6;} 2362 >$cache_file 2363fi 2364 2365# Check that the precious variables saved in the cache have kept the same 2366# value. 2367ac_cache_corrupted=false 2368for ac_var in $ac_precious_vars; do 2369 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2370 eval ac_new_set=\$ac_env_${ac_var}_set 2371 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2372 eval ac_new_val=\$ac_env_${ac_var}_value 2373 case $ac_old_set,$ac_new_set in 2374 set,) 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2376$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2377 ac_cache_corrupted=: ;; 2378 ,set) 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2380$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2381 ac_cache_corrupted=: ;; 2382 ,);; 2383 *) 2384 if test "x$ac_old_val" != "x$ac_new_val"; then 2385 # differences in whitespace do not lead to failure. 2386 ac_old_val_w=`echo x $ac_old_val` 2387 ac_new_val_w=`echo x $ac_new_val` 2388 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2390$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2391 ac_cache_corrupted=: 2392 else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2394$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2395 eval $ac_var=\$ac_old_val 2396 fi 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2398$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2400$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2401 fi;; 2402 esac 2403 # Pass precious variables to config.status. 2404 if test "$ac_new_set" = set; then 2405 case $ac_new_val in 2406 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2407 *) ac_arg=$ac_var=$ac_new_val ;; 2408 esac 2409 case " $ac_configure_args " in 2410 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2411 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2412 esac 2413 fi 2414done 2415if $ac_cache_corrupted; then 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2419$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2420 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2421fi 2422## -------------------- ## 2423## Main body of script. ## 2424## -------------------- ## 2425 2426ac_ext=c 2427ac_cpp='$CPP $CPPFLAGS' 2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2430ac_compiler_gnu=$ac_cv_c_compiler_gnu 2431 2432 2433 2434ac_aux_dir= 2435for ac_dir in build "$srcdir"/build; do 2436 if test -f "$ac_dir/install-sh"; then 2437 ac_aux_dir=$ac_dir 2438 ac_install_sh="$ac_aux_dir/install-sh -c" 2439 break 2440 elif test -f "$ac_dir/install.sh"; then 2441 ac_aux_dir=$ac_dir 2442 ac_install_sh="$ac_aux_dir/install.sh -c" 2443 break 2444 elif test -f "$ac_dir/shtool"; then 2445 ac_aux_dir=$ac_dir 2446 ac_install_sh="$ac_aux_dir/shtool install -c" 2447 break 2448 fi 2449done 2450if test -z "$ac_aux_dir"; then 2451 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2452fi 2453 2454# These three variables are undocumented and unsupported, 2455# and are intended to be withdrawn in a future Autoconf release. 2456# They can cause serious problems if a builder's source tree is in a directory 2457# whose full name contains unusual characters. 2458ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2459ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2460ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2461 2462 2463 2464# Expand $ac_aux_dir to an absolute path. 2465am_aux_dir=`cd "$ac_aux_dir" && pwd` 2466 2467ac_ext=c 2468ac_cpp='$CPP $CPPFLAGS' 2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2471ac_compiler_gnu=$ac_cv_c_compiler_gnu 2472if test -n "$ac_tool_prefix"; then 2473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2474set dummy ${ac_tool_prefix}gcc; ac_word=$2 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2476$as_echo_n "checking for $ac_word... " >&6; } 2477if ${ac_cv_prog_CC+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test -n "$CC"; then 2481 ac_cv_prog_CC="$CC" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2490 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495 done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500CC=$ac_cv_prog_CC 2501if test -n "$CC"; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2503$as_echo "$CC" >&6; } 2504else 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2506$as_echo "no" >&6; } 2507fi 2508 2509 2510fi 2511if test -z "$ac_cv_prog_CC"; then 2512 ac_ct_CC=$CC 2513 # Extract the first word of "gcc", so it can be a program name with args. 2514set dummy gcc; ac_word=$2 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2516$as_echo_n "checking for $ac_word... " >&6; } 2517if ${ac_cv_prog_ac_ct_CC+:} false; then : 2518 $as_echo_n "(cached) " >&6 2519else 2520 if test -n "$ac_ct_CC"; then 2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2522else 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2530 ac_cv_prog_ac_ct_CC="gcc" 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535 done 2536IFS=$as_save_IFS 2537 2538fi 2539fi 2540ac_ct_CC=$ac_cv_prog_ac_ct_CC 2541if test -n "$ac_ct_CC"; then 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2543$as_echo "$ac_ct_CC" >&6; } 2544else 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2546$as_echo "no" >&6; } 2547fi 2548 2549 if test "x$ac_ct_CC" = x; then 2550 CC="" 2551 else 2552 case $cross_compiling:$ac_tool_warned in 2553yes:) 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2556ac_tool_warned=yes ;; 2557esac 2558 CC=$ac_ct_CC 2559 fi 2560else 2561 CC="$ac_cv_prog_CC" 2562fi 2563 2564if test -z "$CC"; then 2565 if test -n "$ac_tool_prefix"; then 2566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2567set dummy ${ac_tool_prefix}cc; ac_word=$2 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2569$as_echo_n "checking for $ac_word... " >&6; } 2570if ${ac_cv_prog_CC+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if test -n "$CC"; then 2574 ac_cv_prog_CC="$CC" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2583 ac_cv_prog_CC="${ac_tool_prefix}cc" 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588 done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593CC=$ac_cv_prog_CC 2594if test -n "$CC"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2596$as_echo "$CC" >&6; } 2597else 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2599$as_echo "no" >&6; } 2600fi 2601 2602 2603 fi 2604fi 2605if test -z "$CC"; then 2606 # Extract the first word of "cc", so it can be a program name with args. 2607set dummy cc; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_CC+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$CC"; then 2614 ac_cv_prog_CC="$CC" # Let the user override the test. 2615else 2616 ac_prog_rejected=no 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2625 ac_prog_rejected=yes 2626 continue 2627 fi 2628 ac_cv_prog_CC="cc" 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633 done 2634IFS=$as_save_IFS 2635 2636if test $ac_prog_rejected = yes; then 2637 # We found a bogon in the path, so make sure we never use it. 2638 set dummy $ac_cv_prog_CC 2639 shift 2640 if test $# != 0; then 2641 # We chose a different compiler from the bogus one. 2642 # However, it has the same basename, so the bogon will be chosen 2643 # first if we set CC to just the basename; use the full file name. 2644 shift 2645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2646 fi 2647fi 2648fi 2649fi 2650CC=$ac_cv_prog_CC 2651if test -n "$CC"; then 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2653$as_echo "$CC" >&6; } 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656$as_echo "no" >&6; } 2657fi 2658 2659 2660fi 2661if test -z "$CC"; then 2662 if test -n "$ac_tool_prefix"; then 2663 for ac_prog in cl.exe 2664 do 2665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2666set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if ${ac_cv_prog_CC+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$CC"; then 2673 ac_cv_prog_CC="$CC" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692CC=$ac_cv_prog_CC 2693if test -n "$CC"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2695$as_echo "$CC" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 2702 test -n "$CC" && break 2703 done 2704fi 2705if test -z "$CC"; then 2706 ac_ct_CC=$CC 2707 for ac_prog in cl.exe 2708do 2709 # Extract the first word of "$ac_prog", so it can be a program name with args. 2710set dummy $ac_prog; ac_word=$2 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if ${ac_cv_prog_ac_ct_CC+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$ac_ct_CC"; then 2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_ac_ct_CC="$ac_prog" 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736ac_ct_CC=$ac_cv_prog_ac_ct_CC 2737if test -n "$ac_ct_CC"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2739$as_echo "$ac_ct_CC" >&6; } 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 2746 test -n "$ac_ct_CC" && break 2747done 2748 2749 if test "x$ac_ct_CC" = x; then 2750 CC="" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2756ac_tool_warned=yes ;; 2757esac 2758 CC=$ac_ct_CC 2759 fi 2760fi 2761 2762fi 2763 2764 2765test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2767as_fn_error $? "no acceptable C compiler found in \$PATH 2768See \`config.log' for more details" "$LINENO" 5; } 2769 2770# Provide some information about the compiler. 2771$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2772set X $ac_compile 2773ac_compiler=$2 2774for ac_option in --version -v -V -qversion; do 2775 { { ac_try="$ac_compiler $ac_option >&5" 2776case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779esac 2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2781$as_echo "$ac_try_echo"; } >&5 2782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2783 ac_status=$? 2784 if test -s conftest.err; then 2785 sed '10a\ 2786... rest of stderr output deleted ... 2787 10q' conftest.err >conftest.er1 2788 cat conftest.er1 >&5 2789 fi 2790 rm -f conftest.er1 conftest.err 2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2792 test $ac_status = 0; } 2793done 2794 2795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2796/* end confdefs.h. */ 2797 2798int 2799main () 2800{ 2801 2802 ; 2803 return 0; 2804} 2805_ACEOF 2806ac_clean_files_save=$ac_clean_files 2807ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2808# Try to create an executable without -o first, disregard a.out. 2809# It will help us diagnose broken compilers, and finding out an intuition 2810# of exeext. 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2812$as_echo_n "checking whether the C compiler works... " >&6; } 2813ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2814 2815# The possible output files: 2816ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2817 2818ac_rmfiles= 2819for ac_file in $ac_files 2820do 2821 case $ac_file in 2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2823 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2824 esac 2825done 2826rm -f $ac_rmfiles 2827 2828if { { ac_try="$ac_link_default" 2829case "(($ac_try" in 2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2831 *) ac_try_echo=$ac_try;; 2832esac 2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2834$as_echo "$ac_try_echo"; } >&5 2835 (eval "$ac_link_default") 2>&5 2836 ac_status=$? 2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2838 test $ac_status = 0; }; then : 2839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2840# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2841# in a Makefile. We should not override ac_cv_exeext if it was cached, 2842# so that the user can short-circuit this test for compilers unknown to 2843# Autoconf. 2844for ac_file in $ac_files '' 2845do 2846 test -f "$ac_file" || continue 2847 case $ac_file in 2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2849 ;; 2850 [ab].out ) 2851 # We found the default executable, but exeext='' is most 2852 # certainly right. 2853 break;; 2854 *.* ) 2855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2856 then :; else 2857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2858 fi 2859 # We set ac_cv_exeext here because the later test for it is not 2860 # safe: cross compilers may not add the suffix if given an `-o' 2861 # argument, so we may need to know it at that point already. 2862 # Even if this section looks crufty: it has the advantage of 2863 # actually working. 2864 break;; 2865 * ) 2866 break;; 2867 esac 2868done 2869test "$ac_cv_exeext" = no && ac_cv_exeext= 2870 2871else 2872 ac_file='' 2873fi 2874if test -z "$ac_file"; then : 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877$as_echo "$as_me: failed program was:" >&5 2878sed 's/^/| /' conftest.$ac_ext >&5 2879 2880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error 77 "C compiler cannot create executables 2883See \`config.log' for more details" "$LINENO" 5; } 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2886$as_echo "yes" >&6; } 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2889$as_echo_n "checking for C compiler default output file name... " >&6; } 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2891$as_echo "$ac_file" >&6; } 2892ac_exeext=$ac_cv_exeext 2893 2894rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2895ac_clean_files=$ac_clean_files_save 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2897$as_echo_n "checking for suffix of executables... " >&6; } 2898if { { ac_try="$ac_link" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2904$as_echo "$ac_try_echo"; } >&5 2905 (eval "$ac_link") 2>&5 2906 ac_status=$? 2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2908 test $ac_status = 0; }; then : 2909 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2910# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2911# work properly (i.e., refer to `conftest.exe'), while it won't with 2912# `rm'. 2913for ac_file in conftest.exe conftest conftest.*; do 2914 test -f "$ac_file" || continue 2915 case $ac_file in 2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2918 break;; 2919 * ) break;; 2920 esac 2921done 2922else 2923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2925as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2926See \`config.log' for more details" "$LINENO" 5; } 2927fi 2928rm -f conftest conftest$ac_cv_exeext 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2930$as_echo "$ac_cv_exeext" >&6; } 2931 2932rm -f conftest.$ac_ext 2933EXEEXT=$ac_cv_exeext 2934ac_exeext=$EXEEXT 2935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2936/* end confdefs.h. */ 2937#include <stdio.h> 2938int 2939main () 2940{ 2941FILE *f = fopen ("conftest.out", "w"); 2942 return ferror (f) || fclose (f) != 0; 2943 2944 ; 2945 return 0; 2946} 2947_ACEOF 2948ac_clean_files="$ac_clean_files conftest.out" 2949# Check that the compiler produces executables we can run. If not, either 2950# the compiler is broken, or we cross compile. 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2952$as_echo_n "checking whether we are cross compiling... " >&6; } 2953if test "$cross_compiling" != yes; then 2954 { { ac_try="$ac_link" 2955case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958esac 2959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2960$as_echo "$ac_try_echo"; } >&5 2961 (eval "$ac_link") 2>&5 2962 ac_status=$? 2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2964 test $ac_status = 0; } 2965 if { ac_try='./conftest$ac_cv_exeext' 2966 { { case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2971$as_echo "$ac_try_echo"; } >&5 2972 (eval "$ac_try") 2>&5 2973 ac_status=$? 2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2975 test $ac_status = 0; }; }; then 2976 cross_compiling=no 2977 else 2978 if test "$cross_compiling" = maybe; then 2979 cross_compiling=yes 2980 else 2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2983as_fn_error $? "cannot run C compiled programs. 2984If you meant to cross compile, use \`--host'. 2985See \`config.log' for more details" "$LINENO" 5; } 2986 fi 2987 fi 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2990$as_echo "$cross_compiling" >&6; } 2991 2992rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2993ac_clean_files=$ac_clean_files_save 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2995$as_echo_n "checking for suffix of object files... " >&6; } 2996if ${ac_cv_objext+:} false; then : 2997 $as_echo_n "(cached) " >&6 2998else 2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3000/* end confdefs.h. */ 3001 3002int 3003main () 3004{ 3005 3006 ; 3007 return 0; 3008} 3009_ACEOF 3010rm -f conftest.o conftest.obj 3011if { { ac_try="$ac_compile" 3012case "(($ac_try" in 3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3014 *) ac_try_echo=$ac_try;; 3015esac 3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3017$as_echo "$ac_try_echo"; } >&5 3018 (eval "$ac_compile") 2>&5 3019 ac_status=$? 3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3021 test $ac_status = 0; }; then : 3022 for ac_file in conftest.o conftest.obj conftest.*; do 3023 test -f "$ac_file" || continue; 3024 case $ac_file in 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3027 break;; 3028 esac 3029done 3030else 3031 $as_echo "$as_me: failed program was:" >&5 3032sed 's/^/| /' conftest.$ac_ext >&5 3033 3034{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3036as_fn_error $? "cannot compute suffix of object files: cannot compile 3037See \`config.log' for more details" "$LINENO" 5; } 3038fi 3039rm -f conftest.$ac_cv_objext conftest.$ac_ext 3040fi 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3042$as_echo "$ac_cv_objext" >&6; } 3043OBJEXT=$ac_cv_objext 3044ac_objext=$OBJEXT 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3046$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3047if ${ac_cv_c_compiler_gnu+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3051/* end confdefs.h. */ 3052 3053int 3054main () 3055{ 3056#ifndef __GNUC__ 3057 choke me 3058#endif 3059 3060 ; 3061 return 0; 3062} 3063_ACEOF 3064if ac_fn_c_try_compile "$LINENO"; then : 3065 ac_compiler_gnu=yes 3066else 3067 ac_compiler_gnu=no 3068fi 3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3070ac_cv_c_compiler_gnu=$ac_compiler_gnu 3071 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3074$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3075if test $ac_compiler_gnu = yes; then 3076 GCC=yes 3077else 3078 GCC= 3079fi 3080ac_test_CFLAGS=${CFLAGS+set} 3081ac_save_CFLAGS=$CFLAGS 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3083$as_echo_n "checking whether $CC accepts -g... " >&6; } 3084if ${ac_cv_prog_cc_g+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 ac_save_c_werror_flag=$ac_c_werror_flag 3088 ac_c_werror_flag=yes 3089 ac_cv_prog_cc_g=no 3090 CFLAGS="-g" 3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3092/* end confdefs.h. */ 3093 3094int 3095main () 3096{ 3097 3098 ; 3099 return 0; 3100} 3101_ACEOF 3102if ac_fn_c_try_compile "$LINENO"; then : 3103 ac_cv_prog_cc_g=yes 3104else 3105 CFLAGS="" 3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117if ac_fn_c_try_compile "$LINENO"; then : 3118 3119else 3120 ac_c_werror_flag=$ac_save_c_werror_flag 3121 CFLAGS="-g" 3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3123/* end confdefs.h. */ 3124 3125int 3126main () 3127{ 3128 3129 ; 3130 return 0; 3131} 3132_ACEOF 3133if ac_fn_c_try_compile "$LINENO"; then : 3134 ac_cv_prog_cc_g=yes 3135fi 3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3137fi 3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3139fi 3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3141 ac_c_werror_flag=$ac_save_c_werror_flag 3142fi 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3144$as_echo "$ac_cv_prog_cc_g" >&6; } 3145if test "$ac_test_CFLAGS" = set; then 3146 CFLAGS=$ac_save_CFLAGS 3147elif test $ac_cv_prog_cc_g = yes; then 3148 if test "$GCC" = yes; then 3149 CFLAGS="-g -O2" 3150 else 3151 CFLAGS="-g" 3152 fi 3153else 3154 if test "$GCC" = yes; then 3155 CFLAGS="-O2" 3156 else 3157 CFLAGS= 3158 fi 3159fi 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3161$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3162if ${ac_cv_prog_cc_c89+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 ac_cv_prog_cc_c89=no 3166ac_save_CC=$CC 3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3168/* end confdefs.h. */ 3169#include <stdarg.h> 3170#include <stdio.h> 3171struct stat; 3172/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3173struct buf { int x; }; 3174FILE * (*rcsopen) (struct buf *, struct stat *, int); 3175static char *e (p, i) 3176 char **p; 3177 int i; 3178{ 3179 return p[i]; 3180} 3181static char *f (char * (*g) (char **, int), char **p, ...) 3182{ 3183 char *s; 3184 va_list v; 3185 va_start (v,p); 3186 s = g (p, va_arg (v,int)); 3187 va_end (v); 3188 return s; 3189} 3190 3191/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3192 function prototypes and stuff, but not '\xHH' hex character constants. 3193 These don't provoke an error unfortunately, instead are silently treated 3194 as 'x'. The following induces an error, until -std is added to get 3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3196 array size at least. It's necessary to write '\x00'==0 to get something 3197 that's true only with -std. */ 3198int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3199 3200/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3201 inside strings and character constants. */ 3202#define FOO(x) 'x' 3203int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3204 3205int test (int i, double x); 3206struct s1 {int (*f) (int a);}; 3207struct s2 {int (*f) (double a);}; 3208int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3209int argc; 3210char **argv; 3211int 3212main () 3213{ 3214return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3221do 3222 CC="$ac_save_CC $ac_arg" 3223 if ac_fn_c_try_compile "$LINENO"; then : 3224 ac_cv_prog_cc_c89=$ac_arg 3225fi 3226rm -f core conftest.err conftest.$ac_objext 3227 test "x$ac_cv_prog_cc_c89" != "xno" && break 3228done 3229rm -f conftest.$ac_ext 3230CC=$ac_save_CC 3231 3232fi 3233# AC_CACHE_VAL 3234case "x$ac_cv_prog_cc_c89" in 3235 x) 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3237$as_echo "none needed" >&6; } ;; 3238 xno) 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3240$as_echo "unsupported" >&6; } ;; 3241 *) 3242 CC="$CC $ac_cv_prog_cc_c89" 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3244$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3245esac 3246if test "x$ac_cv_prog_cc_c89" != xno; then : 3247 3248fi 3249 3250ac_ext=c 3251ac_cpp='$CPP $CPPFLAGS' 3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3254ac_compiler_gnu=$ac_cv_c_compiler_gnu 3255 3256ac_ext=c 3257ac_cpp='$CPP $CPPFLAGS' 3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3260ac_compiler_gnu=$ac_cv_c_compiler_gnu 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3262$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3263if ${am_cv_prog_cc_c_o+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3267/* end confdefs.h. */ 3268 3269int 3270main () 3271{ 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277 # Make sure it works both with $CC and with simple cc. 3278 # Following AC_PROG_CC_C_O, we do the test twice because some 3279 # compilers refuse to overwrite an existing .o file with -o, 3280 # though they will create one. 3281 am_cv_prog_cc_c_o=yes 3282 for am_i in 1 2; do 3283 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3284 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3285 ac_status=$? 3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3287 (exit $ac_status); } \ 3288 && test -f conftest2.$ac_objext; then 3289 : OK 3290 else 3291 am_cv_prog_cc_c_o=no 3292 break 3293 fi 3294 done 3295 rm -f core conftest* 3296 unset am_i 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3299$as_echo "$am_cv_prog_cc_c_o" >&6; } 3300if test "$am_cv_prog_cc_c_o" != yes; then 3301 # Losing compiler, so override with the script. 3302 # FIXME: It is wrong to rewrite CC. 3303 # But if we don't then we get into trouble of one sort or another. 3304 # A longer-term fix would be to have automake use am__CC in this case, 3305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3306 CC="$am_aux_dir/compile $CC" 3307fi 3308ac_ext=c 3309ac_cpp='$CPP $CPPFLAGS' 3310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3312ac_compiler_gnu=$ac_cv_c_compiler_gnu 3313 3314 3315 3316ac_ext=c 3317ac_cpp='$CPP $CPPFLAGS' 3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3320ac_compiler_gnu=$ac_cv_c_compiler_gnu 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3322$as_echo_n "checking how to run the C preprocessor... " >&6; } 3323# On Suns, sometimes $CPP names a directory. 3324if test -n "$CPP" && test -d "$CPP"; then 3325 CPP= 3326fi 3327if test -z "$CPP"; then 3328 if ${ac_cv_prog_CPP+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 # Double quotes because CPP needs to be expanded 3332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3333 do 3334 ac_preproc_ok=false 3335for ac_c_preproc_warn_flag in '' yes 3336do 3337 # Use a header file that comes with gcc, so configuring glibc 3338 # with a fresh cross-compiler works. 3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3340 # <limits.h> exists even on freestanding compilers. 3341 # On the NeXT, cc -E runs the code through the compiler's parser, 3342 # not just through cpp. "Syntax error" is here to catch this case. 3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3344/* end confdefs.h. */ 3345#ifdef __STDC__ 3346# include <limits.h> 3347#else 3348# include <assert.h> 3349#endif 3350 Syntax error 3351_ACEOF 3352if ac_fn_c_try_cpp "$LINENO"; then : 3353 3354else 3355 # Broken: fails on valid input. 3356continue 3357fi 3358rm -f conftest.err conftest.i conftest.$ac_ext 3359 3360 # OK, works on sane cases. Now check whether nonexistent headers 3361 # can be detected and how. 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364#include <ac_nonexistent.h> 3365_ACEOF 3366if ac_fn_c_try_cpp "$LINENO"; then : 3367 # Broken: success on invalid input. 3368continue 3369else 3370 # Passes both tests. 3371ac_preproc_ok=: 3372break 3373fi 3374rm -f conftest.err conftest.i conftest.$ac_ext 3375 3376done 3377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3378rm -f conftest.i conftest.err conftest.$ac_ext 3379if $ac_preproc_ok; then : 3380 break 3381fi 3382 3383 done 3384 ac_cv_prog_CPP=$CPP 3385 3386fi 3387 CPP=$ac_cv_prog_CPP 3388else 3389 ac_cv_prog_CPP=$CPP 3390fi 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3392$as_echo "$CPP" >&6; } 3393ac_preproc_ok=false 3394for ac_c_preproc_warn_flag in '' yes 3395do 3396 # Use a header file that comes with gcc, so configuring glibc 3397 # with a fresh cross-compiler works. 3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3399 # <limits.h> exists even on freestanding compilers. 3400 # On the NeXT, cc -E runs the code through the compiler's parser, 3401 # not just through cpp. "Syntax error" is here to catch this case. 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404#ifdef __STDC__ 3405# include <limits.h> 3406#else 3407# include <assert.h> 3408#endif 3409 Syntax error 3410_ACEOF 3411if ac_fn_c_try_cpp "$LINENO"; then : 3412 3413else 3414 # Broken: fails on valid input. 3415continue 3416fi 3417rm -f conftest.err conftest.i conftest.$ac_ext 3418 3419 # OK, works on sane cases. Now check whether nonexistent headers 3420 # can be detected and how. 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423#include <ac_nonexistent.h> 3424_ACEOF 3425if ac_fn_c_try_cpp "$LINENO"; then : 3426 # Broken: success on invalid input. 3427continue 3428else 3429 # Passes both tests. 3430ac_preproc_ok=: 3431break 3432fi 3433rm -f conftest.err conftest.i conftest.$ac_ext 3434 3435done 3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3437rm -f conftest.i conftest.err conftest.$ac_ext 3438if $ac_preproc_ok; then : 3439 3440else 3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3443as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3444See \`config.log' for more details" "$LINENO" 5; } 3445fi 3446 3447ac_ext=c 3448ac_cpp='$CPP $CPPFLAGS' 3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3451ac_compiler_gnu=$ac_cv_c_compiler_gnu 3452 3453 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3455$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3456if ${ac_cv_path_GREP+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if test -z "$GREP"; then 3460 ac_path_GREP_found=false 3461 # Loop through the user's path and test for each of PROGNAME-LIST 3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_prog in grep ggrep; do 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3470 as_fn_executable_p "$ac_path_GREP" || continue 3471# Check for GNU ac_path_GREP and select it if it is found. 3472 # Check for GNU $ac_path_GREP 3473case `"$ac_path_GREP" --version 2>&1` in 3474*GNU*) 3475 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3476*) 3477 ac_count=0 3478 $as_echo_n 0123456789 >"conftest.in" 3479 while : 3480 do 3481 cat "conftest.in" "conftest.in" >"conftest.tmp" 3482 mv "conftest.tmp" "conftest.in" 3483 cp "conftest.in" "conftest.nl" 3484 $as_echo 'GREP' >> "conftest.nl" 3485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3487 as_fn_arith $ac_count + 1 && ac_count=$as_val 3488 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3489 # Best one so far, save it but keep looking for a better one 3490 ac_cv_path_GREP="$ac_path_GREP" 3491 ac_path_GREP_max=$ac_count 3492 fi 3493 # 10*(2^10) chars as input seems more than enough 3494 test $ac_count -gt 10 && break 3495 done 3496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3497esac 3498 3499 $ac_path_GREP_found && break 3 3500 done 3501 done 3502 done 3503IFS=$as_save_IFS 3504 if test -z "$ac_cv_path_GREP"; then 3505 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3506 fi 3507else 3508 ac_cv_path_GREP=$GREP 3509fi 3510 3511fi 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3513$as_echo "$ac_cv_path_GREP" >&6; } 3514 GREP="$ac_cv_path_GREP" 3515 3516 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3518$as_echo_n "checking for egrep... " >&6; } 3519if ${ac_cv_path_EGREP+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3523 then ac_cv_path_EGREP="$GREP -E" 3524 else 3525 if test -z "$EGREP"; then 3526 ac_path_EGREP_found=false 3527 # Loop through the user's path and test for each of PROGNAME-LIST 3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_prog in egrep; do 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3536 as_fn_executable_p "$ac_path_EGREP" || continue 3537# Check for GNU ac_path_EGREP and select it if it is found. 3538 # Check for GNU $ac_path_EGREP 3539case `"$ac_path_EGREP" --version 2>&1` in 3540*GNU*) 3541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3542*) 3543 ac_count=0 3544 $as_echo_n 0123456789 >"conftest.in" 3545 while : 3546 do 3547 cat "conftest.in" "conftest.in" >"conftest.tmp" 3548 mv "conftest.tmp" "conftest.in" 3549 cp "conftest.in" "conftest.nl" 3550 $as_echo 'EGREP' >> "conftest.nl" 3551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3553 as_fn_arith $ac_count + 1 && ac_count=$as_val 3554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3555 # Best one so far, save it but keep looking for a better one 3556 ac_cv_path_EGREP="$ac_path_EGREP" 3557 ac_path_EGREP_max=$ac_count 3558 fi 3559 # 10*(2^10) chars as input seems more than enough 3560 test $ac_count -gt 10 && break 3561 done 3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3563esac 3564 3565 $ac_path_EGREP_found && break 3 3566 done 3567 done 3568 done 3569IFS=$as_save_IFS 3570 if test -z "$ac_cv_path_EGREP"; then 3571 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3572 fi 3573else 3574 ac_cv_path_EGREP=$EGREP 3575fi 3576 3577 fi 3578fi 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3580$as_echo "$ac_cv_path_EGREP" >&6; } 3581 EGREP="$ac_cv_path_EGREP" 3582 3583 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3585$as_echo_n "checking for ANSI C header files... " >&6; } 3586if ${ac_cv_header_stdc+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590/* end confdefs.h. */ 3591#include <stdlib.h> 3592#include <stdarg.h> 3593#include <string.h> 3594#include <float.h> 3595 3596int 3597main () 3598{ 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604if ac_fn_c_try_compile "$LINENO"; then : 3605 ac_cv_header_stdc=yes 3606else 3607 ac_cv_header_stdc=no 3608fi 3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3610 3611if test $ac_cv_header_stdc = yes; then 3612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615#include <string.h> 3616 3617_ACEOF 3618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3619 $EGREP "memchr" >/dev/null 2>&1; then : 3620 3621else 3622 ac_cv_header_stdc=no 3623fi 3624rm -f conftest* 3625 3626fi 3627 3628if test $ac_cv_header_stdc = yes; then 3629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632#include <stdlib.h> 3633 3634_ACEOF 3635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3636 $EGREP "free" >/dev/null 2>&1; then : 3637 3638else 3639 ac_cv_header_stdc=no 3640fi 3641rm -f conftest* 3642 3643fi 3644 3645if test $ac_cv_header_stdc = yes; then 3646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3647 if test "$cross_compiling" = yes; then : 3648 : 3649else 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652#include <ctype.h> 3653#include <stdlib.h> 3654#if ((' ' & 0x0FF) == 0x020) 3655# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3656# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3657#else 3658# define ISLOWER(c) \ 3659 (('a' <= (c) && (c) <= 'i') \ 3660 || ('j' <= (c) && (c) <= 'r') \ 3661 || ('s' <= (c) && (c) <= 'z')) 3662# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3663#endif 3664 3665#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3666int 3667main () 3668{ 3669 int i; 3670 for (i = 0; i < 256; i++) 3671 if (XOR (islower (i), ISLOWER (i)) 3672 || toupper (i) != TOUPPER (i)) 3673 return 2; 3674 return 0; 3675} 3676_ACEOF 3677if ac_fn_c_try_run "$LINENO"; then : 3678 3679else 3680 ac_cv_header_stdc=no 3681fi 3682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3683 conftest.$ac_objext conftest.beam conftest.$ac_ext 3684fi 3685 3686fi 3687fi 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3689$as_echo "$ac_cv_header_stdc" >&6; } 3690if test $ac_cv_header_stdc = yes; then 3691 3692$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3693 3694fi 3695 3696# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3697for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3698 inttypes.h stdint.h unistd.h 3699do : 3700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3701ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3702" 3703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3704 cat >>confdefs.h <<_ACEOF 3705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3706_ACEOF 3707 3708fi 3709 3710done 3711 3712 3713 3714 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3715if test "x$ac_cv_header_minix_config_h" = xyes; then : 3716 MINIX=yes 3717else 3718 MINIX= 3719fi 3720 3721 3722 if test "$MINIX" = yes; then 3723 3724$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3725 3726 3727$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3728 3729 3730$as_echo "#define _MINIX 1" >>confdefs.h 3731 3732 fi 3733 3734 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3736$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3737if ${ac_cv_safe_to_define___extensions__+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743# define __EXTENSIONS__ 1 3744 $ac_includes_default 3745int 3746main () 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_safe_to_define___extensions__=yes 3755else 3756 ac_cv_safe_to_define___extensions__=no 3757fi 3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3761$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3762 test $ac_cv_safe_to_define___extensions__ = yes && 3763 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3764 3765 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3766 3767 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3768 3769 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3770 3771 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3772 3773 3774am__api_version='1.15' 3775 3776# Find a good install program. We prefer a C program (faster), 3777# so one script is as good as another. But avoid the broken or 3778# incompatible versions: 3779# SysV /etc/install, /usr/sbin/install 3780# SunOS /usr/etc/install 3781# IRIX /sbin/install 3782# AIX /bin/install 3783# AmigaOS /C/install, which installs bootblocks on floppy discs 3784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3785# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3787# OS/2's system install, which has a completely different semantic 3788# ./install, which can be erroneously created by make from ./install.sh. 3789# Reject install programs that cannot install multiple files. 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3791$as_echo_n "checking for a BSD-compatible install... " >&6; } 3792if test -z "$INSTALL"; then 3793if ${ac_cv_path_install+:} false; then : 3794 $as_echo_n "(cached) " >&6 3795else 3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3797for as_dir in $PATH 3798do 3799 IFS=$as_save_IFS 3800 test -z "$as_dir" && as_dir=. 3801 # Account for people who put trailing slashes in PATH elements. 3802case $as_dir/ in #(( 3803 ./ | .// | /[cC]/* | \ 3804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3806 /usr/ucb/* ) ;; 3807 *) 3808 # OSF1 and SCO ODT 3.0 have their own names for install. 3809 # Don't use installbsd from OSF since it installs stuff as root 3810 # by default. 3811 for ac_prog in ginstall scoinst install; do 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3814 if test $ac_prog = install && 3815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3816 # AIX install. It has an incompatible calling convention. 3817 : 3818 elif test $ac_prog = install && 3819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3820 # program-specific install script used by HP pwplus--don't use. 3821 : 3822 else 3823 rm -rf conftest.one conftest.two conftest.dir 3824 echo one > conftest.one 3825 echo two > conftest.two 3826 mkdir conftest.dir 3827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3828 test -s conftest.one && test -s conftest.two && 3829 test -s conftest.dir/conftest.one && 3830 test -s conftest.dir/conftest.two 3831 then 3832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3833 break 3 3834 fi 3835 fi 3836 fi 3837 done 3838 done 3839 ;; 3840esac 3841 3842 done 3843IFS=$as_save_IFS 3844 3845rm -rf conftest.one conftest.two conftest.dir 3846 3847fi 3848 if test "${ac_cv_path_install+set}" = set; then 3849 INSTALL=$ac_cv_path_install 3850 else 3851 # As a last resort, use the slow shell script. Don't cache a 3852 # value for INSTALL within a source directory, because that will 3853 # break other packages using the cache if that directory is 3854 # removed, or if the value is a relative name. 3855 INSTALL=$ac_install_sh 3856 fi 3857fi 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3859$as_echo "$INSTALL" >&6; } 3860 3861# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3862# It thinks the first close brace ends the variable substitution. 3863test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3864 3865test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3866 3867test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3868 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3870$as_echo_n "checking whether build environment is sane... " >&6; } 3871# Reject unsafe characters in $srcdir or the absolute working directory 3872# name. Accept space and tab only in the latter. 3873am_lf=' 3874' 3875case `pwd` in 3876 *[\\\"\#\$\&\'\`$am_lf]*) 3877 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3878esac 3879case $srcdir in 3880 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3881 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3882esac 3883 3884# Do 'set' in a subshell so we don't clobber the current shell's 3885# arguments. Must try -L first in case configure is actually a 3886# symlink; some systems play weird games with the mod time of symlinks 3887# (eg FreeBSD returns the mod time of the symlink's containing 3888# directory). 3889if ( 3890 am_has_slept=no 3891 for am_try in 1 2; do 3892 echo "timestamp, slept: $am_has_slept" > conftest.file 3893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3894 if test "$*" = "X"; then 3895 # -L didn't work. 3896 set X `ls -t "$srcdir/configure" conftest.file` 3897 fi 3898 if test "$*" != "X $srcdir/configure conftest.file" \ 3899 && test "$*" != "X conftest.file $srcdir/configure"; then 3900 3901 # If neither matched, then we have a broken ls. This can happen 3902 # if, for instance, CONFIG_SHELL is bash and it inherits a 3903 # broken ls alias from the environment. This has actually 3904 # happened. Such a system could not be considered "sane". 3905 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3906 alias in your environment" "$LINENO" 5 3907 fi 3908 if test "$2" = conftest.file || test $am_try -eq 2; then 3909 break 3910 fi 3911 # Just in case. 3912 sleep 1 3913 am_has_slept=yes 3914 done 3915 test "$2" = conftest.file 3916 ) 3917then 3918 # Ok. 3919 : 3920else 3921 as_fn_error $? "newly created file is older than distributed files! 3922Check your system clock" "$LINENO" 5 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3925$as_echo "yes" >&6; } 3926# If we didn't sleep, we still need to ensure time stamps of config.status and 3927# generated files are strictly newer. 3928am_sleep_pid= 3929if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3930 ( sleep 1 ) & 3931 am_sleep_pid=$! 3932fi 3933 3934rm -f conftest.file 3935 3936test "$program_prefix" != NONE && 3937 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3938# Use a double $ so make ignores it. 3939test "$program_suffix" != NONE && 3940 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3941# Double any \ or $. 3942# By default was `s,x,x', remove it if useless. 3943ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3944program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3945 3946if test x"${MISSING+set}" != xset; then 3947 case $am_aux_dir in 3948 *\ * | *\ *) 3949 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3950 *) 3951 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3952 esac 3953fi 3954# Use eval to expand $SHELL 3955if eval "$MISSING --is-lightweight"; then 3956 am_missing_run="$MISSING " 3957else 3958 am_missing_run= 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3960$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3961fi 3962 3963if test x"${install_sh+set}" != xset; then 3964 case $am_aux_dir in 3965 *\ * | *\ *) 3966 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3967 *) 3968 install_sh="\${SHELL} $am_aux_dir/install-sh" 3969 esac 3970fi 3971 3972# Installed binaries are usually stripped using 'strip' when the user 3973# run "make install-strip". However 'strip' might not be the right 3974# tool to use in cross-compilation environments, therefore Automake 3975# will honor the 'STRIP' environment variable to overrule this program. 3976if test "$cross_compiling" != no; then 3977 if test -n "$ac_tool_prefix"; then 3978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3979set dummy ${ac_tool_prefix}strip; ac_word=$2 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3981$as_echo_n "checking for $ac_word... " >&6; } 3982if ${ac_cv_prog_STRIP+:} false; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 if test -n "$STRIP"; then 3986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3987else 3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH 3990do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 for ac_exec_ext in '' $ac_executable_extensions; do 3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3997 break 2 3998 fi 3999done 4000 done 4001IFS=$as_save_IFS 4002 4003fi 4004fi 4005STRIP=$ac_cv_prog_STRIP 4006if test -n "$STRIP"; then 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4008$as_echo "$STRIP" >&6; } 4009else 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4011$as_echo "no" >&6; } 4012fi 4013 4014 4015fi 4016if test -z "$ac_cv_prog_STRIP"; then 4017 ac_ct_STRIP=$STRIP 4018 # Extract the first word of "strip", so it can be a program name with args. 4019set dummy strip; ac_word=$2 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4021$as_echo_n "checking for $ac_word... " >&6; } 4022if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 if test -n "$ac_ct_STRIP"; then 4026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4027else 4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4029for as_dir in $PATH 4030do 4031 IFS=$as_save_IFS 4032 test -z "$as_dir" && as_dir=. 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4035 ac_cv_prog_ac_ct_STRIP="strip" 4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4037 break 2 4038 fi 4039done 4040 done 4041IFS=$as_save_IFS 4042 4043fi 4044fi 4045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4046if test -n "$ac_ct_STRIP"; then 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4048$as_echo "$ac_ct_STRIP" >&6; } 4049else 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4051$as_echo "no" >&6; } 4052fi 4053 4054 if test "x$ac_ct_STRIP" = x; then 4055 STRIP=":" 4056 else 4057 case $cross_compiling:$ac_tool_warned in 4058yes:) 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4061ac_tool_warned=yes ;; 4062esac 4063 STRIP=$ac_ct_STRIP 4064 fi 4065else 4066 STRIP="$ac_cv_prog_STRIP" 4067fi 4068 4069fi 4070INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4071 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4073$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4074if test -z "$MKDIR_P"; then 4075 if ${ac_cv_path_mkdir+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_prog in mkdir gmkdir; do 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4086 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4087 'mkdir (GNU coreutils) '* | \ 4088 'mkdir (coreutils) '* | \ 4089 'mkdir (fileutils) '4.1*) 4090 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4091 break 3;; 4092 esac 4093 done 4094 done 4095 done 4096IFS=$as_save_IFS 4097 4098fi 4099 4100 test -d ./--version && rmdir ./--version 4101 if test "${ac_cv_path_mkdir+set}" = set; then 4102 MKDIR_P="$ac_cv_path_mkdir -p" 4103 else 4104 # As a last resort, use the slow shell script. Don't cache a 4105 # value for MKDIR_P within a source directory, because that will 4106 # break other packages using the cache if that directory is 4107 # removed, or if the value is a relative name. 4108 MKDIR_P="$ac_install_sh -d" 4109 fi 4110fi 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4112$as_echo "$MKDIR_P" >&6; } 4113 4114for ac_prog in gawk mawk nawk awk 4115do 4116 # Extract the first word of "$ac_prog", so it can be a program name with args. 4117set dummy $ac_prog; ac_word=$2 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119$as_echo_n "checking for $ac_word... " >&6; } 4120if ${ac_cv_prog_AWK+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -n "$AWK"; then 4124 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_AWK="$ac_prog" 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143AWK=$ac_cv_prog_AWK 4144if test -n "$AWK"; then 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4146$as_echo "$AWK" >&6; } 4147else 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; } 4150fi 4151 4152 4153 test -n "$AWK" && break 4154done 4155 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4157$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4158set x ${MAKE-make} 4159ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4160if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 cat >conftest.make <<\_ACEOF 4164SHELL = /bin/sh 4165all: 4166 @echo '@@@%%%=$(MAKE)=@@@%%%' 4167_ACEOF 4168# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4169case `${MAKE-make} -f conftest.make 2>/dev/null` in 4170 *@@@%%%=?*=@@@%%%*) 4171 eval ac_cv_prog_make_${ac_make}_set=yes;; 4172 *) 4173 eval ac_cv_prog_make_${ac_make}_set=no;; 4174esac 4175rm -f conftest.make 4176fi 4177if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4179$as_echo "yes" >&6; } 4180 SET_MAKE= 4181else 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4183$as_echo "no" >&6; } 4184 SET_MAKE="MAKE=${MAKE-make}" 4185fi 4186 4187rm -rf .tst 2>/dev/null 4188mkdir .tst 2>/dev/null 4189if test -d .tst; then 4190 am__leading_dot=. 4191else 4192 am__leading_dot=_ 4193fi 4194rmdir .tst 2>/dev/null 4195 4196DEPDIR="${am__leading_dot}deps" 4197 4198ac_config_commands="$ac_config_commands depfiles" 4199 4200 4201am_make=${MAKE-make} 4202cat > confinc << 'END' 4203am__doit: 4204 @echo this is the am__doit target 4205.PHONY: am__doit 4206END 4207# If we don't find an include directive, just comment out the code. 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4209$as_echo_n "checking for style of include used by $am_make... " >&6; } 4210am__include="#" 4211am__quote= 4212_am_result=none 4213# First try GNU make style include. 4214echo "include confinc" > confmf 4215# Ignore all kinds of additional output from 'make'. 4216case `$am_make -s -f confmf 2> /dev/null` in #( 4217*the\ am__doit\ target*) 4218 am__include=include 4219 am__quote= 4220 _am_result=GNU 4221 ;; 4222esac 4223# Now try BSD make style include. 4224if test "$am__include" = "#"; then 4225 echo '.include "confinc"' > confmf 4226 case `$am_make -s -f confmf 2> /dev/null` in #( 4227 *the\ am__doit\ target*) 4228 am__include=.include 4229 am__quote="\"" 4230 _am_result=BSD 4231 ;; 4232 esac 4233fi 4234 4235 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4237$as_echo "$_am_result" >&6; } 4238rm -f confinc confmf 4239 4240# Check whether --enable-dependency-tracking was given. 4241if test "${enable_dependency_tracking+set}" = set; then : 4242 enableval=$enable_dependency_tracking; 4243fi 4244 4245if test "x$enable_dependency_tracking" != xno; then 4246 am_depcomp="$ac_aux_dir/depcomp" 4247 AMDEPBACKSLASH='\' 4248 am__nodep='_no' 4249fi 4250 if test "x$enable_dependency_tracking" != xno; then 4251 AMDEP_TRUE= 4252 AMDEP_FALSE='#' 4253else 4254 AMDEP_TRUE='#' 4255 AMDEP_FALSE= 4256fi 4257 4258 4259# Check whether --enable-silent-rules was given. 4260if test "${enable_silent_rules+set}" = set; then : 4261 enableval=$enable_silent_rules; 4262fi 4263 4264case $enable_silent_rules in # ((( 4265 yes) AM_DEFAULT_VERBOSITY=0;; 4266 no) AM_DEFAULT_VERBOSITY=1;; 4267 *) AM_DEFAULT_VERBOSITY=1;; 4268esac 4269am_make=${MAKE-make} 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4271$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4272if ${am_cv_make_support_nested_variables+:} false; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 if $as_echo 'TRUE=$(BAR$(V)) 4276BAR0=false 4277BAR1=true 4278V=1 4279am__doit: 4280 @$(TRUE) 4281.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4282 am_cv_make_support_nested_variables=yes 4283else 4284 am_cv_make_support_nested_variables=no 4285fi 4286fi 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4288$as_echo "$am_cv_make_support_nested_variables" >&6; } 4289if test $am_cv_make_support_nested_variables = yes; then 4290 AM_V='$(V)' 4291 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4292else 4293 AM_V=$AM_DEFAULT_VERBOSITY 4294 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4295fi 4296AM_BACKSLASH='\' 4297 4298if test "`cd $srcdir && pwd`" != "`pwd`"; then 4299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4300 # is not polluted with repeated "-I." 4301 am__isrc=' -I$(srcdir)' 4302 # test to see if srcdir already configured 4303 if test -f $srcdir/config.status; then 4304 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4305 fi 4306fi 4307 4308# test whether we have cygpath 4309if test -z "$CYGPATH_W"; then 4310 if (cygpath --version) >/dev/null 2>/dev/null; then 4311 CYGPATH_W='cygpath -w' 4312 else 4313 CYGPATH_W=echo 4314 fi 4315fi 4316 4317 4318# Define the identity of the package. 4319 PACKAGE='ding-libs' 4320 VERSION='0.6.1' 4321 4322 4323cat >>confdefs.h <<_ACEOF 4324#define PACKAGE "$PACKAGE" 4325_ACEOF 4326 4327 4328cat >>confdefs.h <<_ACEOF 4329#define VERSION "$VERSION" 4330_ACEOF 4331 4332# Some tools Automake needs. 4333 4334ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4335 4336 4337AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4338 4339 4340AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4341 4342 4343AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4344 4345 4346MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4347 4348# For better backward compatibility. To be removed once Automake 1.9.x 4349# dies out for good. For more background, see: 4350# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4351# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4352mkdir_p='$(MKDIR_P)' 4353 4354# We need awk for the "check" target (and possibly the TAP driver). The 4355# system "awk" is bad on some platforms. 4356# Always define AMTAR for backward compatibility. Yes, it's still used 4357# in the wild :-( We should find a proper way to deprecate it ... 4358AMTAR='$${TAR-tar}' 4359 4360 4361# We'll loop over all known methods to create a tar archive until one works. 4362_am_tools='gnutar pax cpio none' 4363 4364am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4365 4366 4367 4368 4369 4370depcc="$CC" am_compiler_list= 4371 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4373$as_echo_n "checking dependency style of $depcc... " >&6; } 4374if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4375 $as_echo_n "(cached) " >&6 4376else 4377 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4378 # We make a subdir and do the tests there. Otherwise we can end up 4379 # making bogus files that we don't know about and never remove. For 4380 # instance it was reported that on HP-UX the gcc test will end up 4381 # making a dummy file named 'D' -- because '-MD' means "put the output 4382 # in D". 4383 rm -rf conftest.dir 4384 mkdir conftest.dir 4385 # Copy depcomp to subdir because otherwise we won't find it if we're 4386 # using a relative directory. 4387 cp "$am_depcomp" conftest.dir 4388 cd conftest.dir 4389 # We will build objects and dependencies in a subdirectory because 4390 # it helps to detect inapplicable dependency modes. For instance 4391 # both Tru64's cc and ICC support -MD to output dependencies as a 4392 # side effect of compilation, but ICC will put the dependencies in 4393 # the current directory while Tru64 will put them in the object 4394 # directory. 4395 mkdir sub 4396 4397 am_cv_CC_dependencies_compiler_type=none 4398 if test "$am_compiler_list" = ""; then 4399 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4400 fi 4401 am__universal=false 4402 case " $depcc " in #( 4403 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4404 esac 4405 4406 for depmode in $am_compiler_list; do 4407 # Setup a source with many dependencies, because some compilers 4408 # like to wrap large dependency lists on column 80 (with \), and 4409 # we should not choose a depcomp mode which is confused by this. 4410 # 4411 # We need to recreate these files for each test, as the compiler may 4412 # overwrite some of them when testing with obscure command lines. 4413 # This happens at least with the AIX C compiler. 4414 : > sub/conftest.c 4415 for i in 1 2 3 4 5 6; do 4416 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4417 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4418 # Solaris 10 /bin/sh. 4419 echo '/* dummy */' > sub/conftst$i.h 4420 done 4421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4422 4423 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4424 # mode. It turns out that the SunPro C++ compiler does not properly 4425 # handle '-M -o', and we need to detect this. Also, some Intel 4426 # versions had trouble with output in subdirs. 4427 am__obj=sub/conftest.${OBJEXT-o} 4428 am__minus_obj="-o $am__obj" 4429 case $depmode in 4430 gcc) 4431 # This depmode causes a compiler race in universal mode. 4432 test "$am__universal" = false || continue 4433 ;; 4434 nosideeffect) 4435 # After this tag, mechanisms are not by side-effect, so they'll 4436 # only be used when explicitly requested. 4437 if test "x$enable_dependency_tracking" = xyes; then 4438 continue 4439 else 4440 break 4441 fi 4442 ;; 4443 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4444 # This compiler won't grok '-c -o', but also, the minuso test has 4445 # not run yet. These depmodes are late enough in the game, and 4446 # so weak that their functioning should not be impacted. 4447 am__obj=conftest.${OBJEXT-o} 4448 am__minus_obj= 4449 ;; 4450 none) break ;; 4451 esac 4452 if depmode=$depmode \ 4453 source=sub/conftest.c object=$am__obj \ 4454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4455 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4456 >/dev/null 2>conftest.err && 4457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4459 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4461 # icc doesn't choke on unknown options, it will just issue warnings 4462 # or remarks (even with -Werror). So we grep stderr for any message 4463 # that says an option was ignored or not supported. 4464 # When given -MP, icc 7.0 and 7.1 complain thusly: 4465 # icc: Command line warning: ignoring option '-M'; no argument required 4466 # The diagnosis changed in icc 8.0: 4467 # icc: Command line remark: option '-MP' not supported 4468 if (grep 'ignoring option' conftest.err || 4469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4470 am_cv_CC_dependencies_compiler_type=$depmode 4471 break 4472 fi 4473 fi 4474 done 4475 4476 cd .. 4477 rm -rf conftest.dir 4478else 4479 am_cv_CC_dependencies_compiler_type=none 4480fi 4481 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4484$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4485CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4486 4487 if 4488 test "x$enable_dependency_tracking" != xno \ 4489 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4490 am__fastdepCC_TRUE= 4491 am__fastdepCC_FALSE='#' 4492else 4493 am__fastdepCC_TRUE='#' 4494 am__fastdepCC_FALSE= 4495fi 4496 4497 4498 4499# POSIX will say in a future version that running "rm -f" with no argument 4500# is OK; and we want to be able to make that assumption in our Makefile 4501# recipes. So use an aggressive probe to check that the usage we want is 4502# actually supported "in the wild" to an acceptable degree. 4503# See automake bug#10828. 4504# To make any issue more visible, cause the running configure to be aborted 4505# by default if the 'rm' program in use doesn't match our expectations; the 4506# user can still override this though. 4507if rm -f && rm -fr && rm -rf; then : OK; else 4508 cat >&2 <<'END' 4509Oops! 4510 4511Your 'rm' program seems unable to run without file operands specified 4512on the command line, even when the '-f' option is present. This is contrary 4513to the behaviour of most rm programs out there, and not conforming with 4514the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4515 4516Please tell bug-automake@gnu.org about your system, including the value 4517of your $PATH and any error possibly output before this message. This 4518can help us improve future automake versions. 4519 4520END 4521 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4522 echo 'Configuration will proceed anyway, since you have set the' >&2 4523 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4524 echo >&2 4525 else 4526 cat >&2 <<'END' 4527Aborting the configuration process, to ensure you take notice of the issue. 4528 4529You can download and install GNU coreutils to get an 'rm' implementation 4530that behaves properly: <http://www.gnu.org/software/coreutils/>. 4531 4532If you want to complete the configuration process using your problematic 4533'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4534to "yes", and re-run configure. 4535 4536END 4537 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4538 fi 4539fi 4540 4541 4542if test -n "$ac_tool_prefix"; then 4543 for ac_prog in ar lib "link -lib" 4544 do 4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4546set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548$as_echo_n "checking for $ac_word... " >&6; } 4549if ${ac_cv_prog_AR+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551else 4552 if test -n "$AR"; then 4553 ac_cv_prog_AR="$AR" # Let the user override the test. 4554else 4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4562 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566done 4567 done 4568IFS=$as_save_IFS 4569 4570fi 4571fi 4572AR=$ac_cv_prog_AR 4573if test -n "$AR"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4575$as_echo "$AR" >&6; } 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578$as_echo "no" >&6; } 4579fi 4580 4581 4582 test -n "$AR" && break 4583 done 4584fi 4585if test -z "$AR"; then 4586 ac_ct_AR=$AR 4587 for ac_prog in ar lib "link -lib" 4588do 4589 # Extract the first word of "$ac_prog", so it can be a program name with args. 4590set dummy $ac_prog; ac_word=$2 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4592$as_echo_n "checking for $ac_word... " >&6; } 4593if ${ac_cv_prog_ac_ct_AR+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 if test -n "$ac_ct_AR"; then 4597 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4598else 4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4606 ac_cv_prog_ac_ct_AR="$ac_prog" 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611 done 4612IFS=$as_save_IFS 4613 4614fi 4615fi 4616ac_ct_AR=$ac_cv_prog_ac_ct_AR 4617if test -n "$ac_ct_AR"; then 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4619$as_echo "$ac_ct_AR" >&6; } 4620else 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4622$as_echo "no" >&6; } 4623fi 4624 4625 4626 test -n "$ac_ct_AR" && break 4627done 4628 4629 if test "x$ac_ct_AR" = x; then 4630 AR="false" 4631 else 4632 case $cross_compiling:$ac_tool_warned in 4633yes:) 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4636ac_tool_warned=yes ;; 4637esac 4638 AR=$ac_ct_AR 4639 fi 4640fi 4641 4642: ${AR=ar} 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4645$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4646if ${am_cv_ar_interface+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654 4655 am_cv_ar_interface=ar 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658int some_variable = 0; 4659_ACEOF 4660if ac_fn_c_try_compile "$LINENO"; then : 4661 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4663 (eval $am_ar_try) 2>&5 4664 ac_status=$? 4665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4666 test $ac_status = 0; } 4667 if test "$ac_status" -eq 0; then 4668 am_cv_ar_interface=ar 4669 else 4670 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4672 (eval $am_ar_try) 2>&5 4673 ac_status=$? 4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4675 test $ac_status = 0; } 4676 if test "$ac_status" -eq 0; then 4677 am_cv_ar_interface=lib 4678 else 4679 am_cv_ar_interface=unknown 4680 fi 4681 fi 4682 rm -f conftest.lib libconftest.a 4683 4684fi 4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4686 ac_ext=c 4687ac_cpp='$CPP $CPPFLAGS' 4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4690ac_compiler_gnu=$ac_cv_c_compiler_gnu 4691 4692fi 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4694$as_echo "$am_cv_ar_interface" >&6; } 4695 4696case $am_cv_ar_interface in 4697ar) 4698 ;; 4699lib) 4700 # Microsoft lib, so override with the ar-lib wrapper script. 4701 # FIXME: It is wrong to rewrite AR. 4702 # But if we don't then we get into trouble of one sort or another. 4703 # A longer-term fix would be to have automake use am__AR in this case, 4704 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4705 # similar. 4706 AR="$am_aux_dir/ar-lib $AR" 4707 ;; 4708unknown) 4709 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4710 ;; 4711esac 4712 4713case `pwd` in 4714 *\ * | *\ *) 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4716$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4717esac 4718 4719 4720 4721macro_version='2.4.6' 4722macro_revision='2.4.6' 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736ltmain=$ac_aux_dir/ltmain.sh 4737 4738# Make sure we can run config.sub. 4739$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4740 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4741 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4743$as_echo_n "checking build system type... " >&6; } 4744if ${ac_cv_build+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 ac_build_alias=$build_alias 4748test "x$ac_build_alias" = x && 4749 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4750test "x$ac_build_alias" = x && 4751 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4752ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4753 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4754 4755fi 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4757$as_echo "$ac_cv_build" >&6; } 4758case $ac_cv_build in 4759*-*-*) ;; 4760*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4761esac 4762build=$ac_cv_build 4763ac_save_IFS=$IFS; IFS='-' 4764set x $ac_cv_build 4765shift 4766build_cpu=$1 4767build_vendor=$2 4768shift; shift 4769# Remember, the first character of IFS is used to create $*, 4770# except with old shells: 4771build_os=$* 4772IFS=$ac_save_IFS 4773case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4774 4775 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4777$as_echo_n "checking host system type... " >&6; } 4778if ${ac_cv_host+:} false; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 if test "x$host_alias" = x; then 4782 ac_cv_host=$ac_cv_build 4783else 4784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4786fi 4787 4788fi 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4790$as_echo "$ac_cv_host" >&6; } 4791case $ac_cv_host in 4792*-*-*) ;; 4793*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4794esac 4795host=$ac_cv_host 4796ac_save_IFS=$IFS; IFS='-' 4797set x $ac_cv_host 4798shift 4799host_cpu=$1 4800host_vendor=$2 4801shift; shift 4802# Remember, the first character of IFS is used to create $*, 4803# except with old shells: 4804host_os=$* 4805IFS=$ac_save_IFS 4806case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4807 4808 4809# Backslashify metacharacters that are still active within 4810# double-quoted strings. 4811sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4812 4813# Same as above, but do not quote variable references. 4814double_quote_subst='s/\(["`\\]\)/\\\1/g' 4815 4816# Sed substitution to delay expansion of an escaped shell variable in a 4817# double_quote_subst'ed string. 4818delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4819 4820# Sed substitution to delay expansion of an escaped single quote. 4821delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4822 4823# Sed substitution to avoid accidental globbing in evaled expressions 4824no_glob_subst='s/\*/\\\*/g' 4825 4826ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4827ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4828ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4829 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4831$as_echo_n "checking how to print strings... " >&6; } 4832# Test print first, because it will be a builtin if present. 4833if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4834 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4835 ECHO='print -r --' 4836elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4837 ECHO='printf %s\n' 4838else 4839 # Use this function as a fallback that always works. 4840 func_fallback_echo () 4841 { 4842 eval 'cat <<_LTECHO_EOF 4843$1 4844_LTECHO_EOF' 4845 } 4846 ECHO='func_fallback_echo' 4847fi 4848 4849# func_echo_all arg... 4850# Invoke $ECHO with all args, space-separated. 4851func_echo_all () 4852{ 4853 $ECHO "" 4854} 4855 4856case $ECHO in 4857 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4858$as_echo "printf" >&6; } ;; 4859 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4860$as_echo "print -r" >&6; } ;; 4861 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4862$as_echo "cat" >&6; } ;; 4863esac 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4879$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4880if ${ac_cv_path_SED+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4884 for ac_i in 1 2 3 4 5 6 7; do 4885 ac_script="$ac_script$as_nl$ac_script" 4886 done 4887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4888 { ac_script=; unset ac_script;} 4889 if test -z "$SED"; then 4890 ac_path_SED_found=false 4891 # Loop through the user's path and test for each of PROGNAME-LIST 4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_prog in sed gsed; do 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4900 as_fn_executable_p "$ac_path_SED" || continue 4901# Check for GNU ac_path_SED and select it if it is found. 4902 # Check for GNU $ac_path_SED 4903case `"$ac_path_SED" --version 2>&1` in 4904*GNU*) 4905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4906*) 4907 ac_count=0 4908 $as_echo_n 0123456789 >"conftest.in" 4909 while : 4910 do 4911 cat "conftest.in" "conftest.in" >"conftest.tmp" 4912 mv "conftest.tmp" "conftest.in" 4913 cp "conftest.in" "conftest.nl" 4914 $as_echo '' >> "conftest.nl" 4915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4917 as_fn_arith $ac_count + 1 && ac_count=$as_val 4918 if test $ac_count -gt ${ac_path_SED_max-0}; then 4919 # Best one so far, save it but keep looking for a better one 4920 ac_cv_path_SED="$ac_path_SED" 4921 ac_path_SED_max=$ac_count 4922 fi 4923 # 10*(2^10) chars as input seems more than enough 4924 test $ac_count -gt 10 && break 4925 done 4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4927esac 4928 4929 $ac_path_SED_found && break 3 4930 done 4931 done 4932 done 4933IFS=$as_save_IFS 4934 if test -z "$ac_cv_path_SED"; then 4935 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4936 fi 4937else 4938 ac_cv_path_SED=$SED 4939fi 4940 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4943$as_echo "$ac_cv_path_SED" >&6; } 4944 SED="$ac_cv_path_SED" 4945 rm -f conftest.sed 4946 4947test -z "$SED" && SED=sed 4948Xsed="$SED -e 1s/^X//" 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4961$as_echo_n "checking for fgrep... " >&6; } 4962if ${ac_cv_path_FGREP+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4966 then ac_cv_path_FGREP="$GREP -F" 4967 else 4968 if test -z "$FGREP"; then 4969 ac_path_FGREP_found=false 4970 # Loop through the user's path and test for each of PROGNAME-LIST 4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4972for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4973do 4974 IFS=$as_save_IFS 4975 test -z "$as_dir" && as_dir=. 4976 for ac_prog in fgrep; do 4977 for ac_exec_ext in '' $ac_executable_extensions; do 4978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4979 as_fn_executable_p "$ac_path_FGREP" || continue 4980# Check for GNU ac_path_FGREP and select it if it is found. 4981 # Check for GNU $ac_path_FGREP 4982case `"$ac_path_FGREP" --version 2>&1` in 4983*GNU*) 4984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4985*) 4986 ac_count=0 4987 $as_echo_n 0123456789 >"conftest.in" 4988 while : 4989 do 4990 cat "conftest.in" "conftest.in" >"conftest.tmp" 4991 mv "conftest.tmp" "conftest.in" 4992 cp "conftest.in" "conftest.nl" 4993 $as_echo 'FGREP' >> "conftest.nl" 4994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4996 as_fn_arith $ac_count + 1 && ac_count=$as_val 4997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4998 # Best one so far, save it but keep looking for a better one 4999 ac_cv_path_FGREP="$ac_path_FGREP" 5000 ac_path_FGREP_max=$ac_count 5001 fi 5002 # 10*(2^10) chars as input seems more than enough 5003 test $ac_count -gt 10 && break 5004 done 5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5006esac 5007 5008 $ac_path_FGREP_found && break 3 5009 done 5010 done 5011 done 5012IFS=$as_save_IFS 5013 if test -z "$ac_cv_path_FGREP"; then 5014 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5015 fi 5016else 5017 ac_cv_path_FGREP=$FGREP 5018fi 5019 5020 fi 5021fi 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5023$as_echo "$ac_cv_path_FGREP" >&6; } 5024 FGREP="$ac_cv_path_FGREP" 5025 5026 5027test -z "$GREP" && GREP=grep 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047# Check whether --with-gnu-ld was given. 5048if test "${with_gnu_ld+set}" = set; then : 5049 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5050else 5051 with_gnu_ld=no 5052fi 5053 5054ac_prog=ld 5055if test yes = "$GCC"; then 5056 # Check if gcc -print-prog-name=ld gives a path. 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5058$as_echo_n "checking for ld used by $CC... " >&6; } 5059 case $host in 5060 *-*-mingw*) 5061 # gcc leaves a trailing carriage return, which upsets mingw 5062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5063 *) 5064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5065 esac 5066 case $ac_prog in 5067 # Accept absolute paths. 5068 [\\/]* | ?:[\\/]*) 5069 re_direlt='/[^/][^/]*/\.\./' 5070 # Canonicalize the pathname of ld 5071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5074 done 5075 test -z "$LD" && LD=$ac_prog 5076 ;; 5077 "") 5078 # If it fails, then pretend we aren't using GCC. 5079 ac_prog=ld 5080 ;; 5081 *) 5082 # If it is relative, then search for the first ld in PATH. 5083 with_gnu_ld=unknown 5084 ;; 5085 esac 5086elif test yes = "$with_gnu_ld"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5088$as_echo_n "checking for GNU ld... " >&6; } 5089else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5091$as_echo_n "checking for non-GNU ld... " >&6; } 5092fi 5093if ${lt_cv_path_LD+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 if test -z "$LD"; then 5097 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5098 for ac_dir in $PATH; do 5099 IFS=$lt_save_ifs 5100 test -z "$ac_dir" && ac_dir=. 5101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5102 lt_cv_path_LD=$ac_dir/$ac_prog 5103 # Check to see if the program is GNU ld. I'd rather use --version, 5104 # but apparently some variants of GNU ld only accept -v. 5105 # Break only if it was the GNU/non-GNU ld that we prefer. 5106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5107 *GNU* | *'with BFD'*) 5108 test no != "$with_gnu_ld" && break 5109 ;; 5110 *) 5111 test yes != "$with_gnu_ld" && break 5112 ;; 5113 esac 5114 fi 5115 done 5116 IFS=$lt_save_ifs 5117else 5118 lt_cv_path_LD=$LD # Let the user override the test with a path. 5119fi 5120fi 5121 5122LD=$lt_cv_path_LD 5123if test -n "$LD"; then 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5125$as_echo "$LD" >&6; } 5126else 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5128$as_echo "no" >&6; } 5129fi 5130test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5132$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5133if ${lt_cv_prog_gnu_ld+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5137case `$LD -v 2>&1 </dev/null` in 5138*GNU* | *'with BFD'*) 5139 lt_cv_prog_gnu_ld=yes 5140 ;; 5141*) 5142 lt_cv_prog_gnu_ld=no 5143 ;; 5144esac 5145fi 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5147$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5148with_gnu_ld=$lt_cv_prog_gnu_ld 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5159$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5160if ${lt_cv_path_NM+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 if test -n "$NM"; then 5164 # Let the user override the test. 5165 lt_cv_path_NM=$NM 5166else 5167 lt_nm_to_check=${ac_tool_prefix}nm 5168 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5169 lt_nm_to_check="$lt_nm_to_check nm" 5170 fi 5171 for lt_tmp_nm in $lt_nm_to_check; do 5172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5173 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5174 IFS=$lt_save_ifs 5175 test -z "$ac_dir" && ac_dir=. 5176 tmp_nm=$ac_dir/$lt_tmp_nm 5177 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5178 # Check to see if the nm accepts a BSD-compat flag. 5179 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5180 # nm: unknown option "B" ignored 5181 # Tru64's nm complains that /dev/null is an invalid object file 5182 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5183 case $build_os in 5184 mingw*) lt_bad_file=conftest.nm/nofile ;; 5185 *) lt_bad_file=/dev/null ;; 5186 esac 5187 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5188 *$lt_bad_file* | *'Invalid file or object type'*) 5189 lt_cv_path_NM="$tmp_nm -B" 5190 break 2 5191 ;; 5192 *) 5193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5194 */dev/null*) 5195 lt_cv_path_NM="$tmp_nm -p" 5196 break 2 5197 ;; 5198 *) 5199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5200 continue # so that we can try to find one that supports BSD flags 5201 ;; 5202 esac 5203 ;; 5204 esac 5205 fi 5206 done 5207 IFS=$lt_save_ifs 5208 done 5209 : ${lt_cv_path_NM=no} 5210fi 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5213$as_echo "$lt_cv_path_NM" >&6; } 5214if test no != "$lt_cv_path_NM"; then 5215 NM=$lt_cv_path_NM 5216else 5217 # Didn't find any BSD compatible name lister, look for dumpbin. 5218 if test -n "$DUMPBIN"; then : 5219 # Let the user override the test. 5220 else 5221 if test -n "$ac_tool_prefix"; then 5222 for ac_prog in dumpbin "link -dump" 5223 do 5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5225set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227$as_echo_n "checking for $ac_word... " >&6; } 5228if ${ac_cv_prog_DUMPBIN+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 if test -n "$DUMPBIN"; then 5232 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5233else 5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5235for as_dir in $PATH 5236do 5237 IFS=$as_save_IFS 5238 test -z "$as_dir" && as_dir=. 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245done 5246 done 5247IFS=$as_save_IFS 5248 5249fi 5250fi 5251DUMPBIN=$ac_cv_prog_DUMPBIN 5252if test -n "$DUMPBIN"; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5254$as_echo "$DUMPBIN" >&6; } 5255else 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5257$as_echo "no" >&6; } 5258fi 5259 5260 5261 test -n "$DUMPBIN" && break 5262 done 5263fi 5264if test -z "$DUMPBIN"; then 5265 ac_ct_DUMPBIN=$DUMPBIN 5266 for ac_prog in dumpbin "link -dump" 5267do 5268 # Extract the first word of "$ac_prog", so it can be a program name with args. 5269set dummy $ac_prog; ac_word=$2 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271$as_echo_n "checking for $ac_word... " >&6; } 5272if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 if test -n "$ac_ct_DUMPBIN"; then 5276 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5277else 5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289done 5290 done 5291IFS=$as_save_IFS 5292 5293fi 5294fi 5295ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5296if test -n "$ac_ct_DUMPBIN"; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5298$as_echo "$ac_ct_DUMPBIN" >&6; } 5299else 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5301$as_echo "no" >&6; } 5302fi 5303 5304 5305 test -n "$ac_ct_DUMPBIN" && break 5306done 5307 5308 if test "x$ac_ct_DUMPBIN" = x; then 5309 DUMPBIN=":" 5310 else 5311 case $cross_compiling:$ac_tool_warned in 5312yes:) 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5315ac_tool_warned=yes ;; 5316esac 5317 DUMPBIN=$ac_ct_DUMPBIN 5318 fi 5319fi 5320 5321 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5322 *COFF*) 5323 DUMPBIN="$DUMPBIN -symbols -headers" 5324 ;; 5325 *) 5326 DUMPBIN=: 5327 ;; 5328 esac 5329 fi 5330 5331 if test : != "$DUMPBIN"; then 5332 NM=$DUMPBIN 5333 fi 5334fi 5335test -z "$NM" && NM=nm 5336 5337 5338 5339 5340 5341 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5343$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5344if ${lt_cv_nm_interface+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 lt_cv_nm_interface="BSD nm" 5348 echo "int some_variable = 0;" > conftest.$ac_ext 5349 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5350 (eval "$ac_compile" 2>conftest.err) 5351 cat conftest.err >&5 5352 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5354 cat conftest.err >&5 5355 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5356 cat conftest.out >&5 5357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5358 lt_cv_nm_interface="MS dumpbin" 5359 fi 5360 rm -f conftest* 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5363$as_echo "$lt_cv_nm_interface" >&6; } 5364 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5366$as_echo_n "checking whether ln -s works... " >&6; } 5367LN_S=$as_ln_s 5368if test "$LN_S" = "ln -s"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5370$as_echo "yes" >&6; } 5371else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5373$as_echo "no, using $LN_S" >&6; } 5374fi 5375 5376# find the maximum length of command line arguments 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5378$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5379if ${lt_cv_sys_max_cmd_len+:} false; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 i=0 5383 teststring=ABCD 5384 5385 case $build_os in 5386 msdosdjgpp*) 5387 # On DJGPP, this test can blow up pretty badly due to problems in libc 5388 # (any single argument exceeding 2000 bytes causes a buffer overrun 5389 # during glob expansion). Even if it were fixed, the result of this 5390 # check would be larger than it should be. 5391 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5392 ;; 5393 5394 gnu*) 5395 # Under GNU Hurd, this test is not required because there is 5396 # no limit to the length of command line arguments. 5397 # Libtool will interpret -1 as no limit whatsoever 5398 lt_cv_sys_max_cmd_len=-1; 5399 ;; 5400 5401 cygwin* | mingw* | cegcc*) 5402 # On Win9x/ME, this test blows up -- it succeeds, but takes 5403 # about 5 minutes as the teststring grows exponentially. 5404 # Worse, since 9x/ME are not pre-emptively multitasking, 5405 # you end up with a "frozen" computer, even though with patience 5406 # the test eventually succeeds (with a max line length of 256k). 5407 # Instead, let's just punt: use the minimum linelength reported by 5408 # all of the supported platforms: 8192 (on NT/2K/XP). 5409 lt_cv_sys_max_cmd_len=8192; 5410 ;; 5411 5412 mint*) 5413 # On MiNT this can take a long time and run out of memory. 5414 lt_cv_sys_max_cmd_len=8192; 5415 ;; 5416 5417 amigaos*) 5418 # On AmigaOS with pdksh, this test takes hours, literally. 5419 # So we just punt and use a minimum line length of 8192. 5420 lt_cv_sys_max_cmd_len=8192; 5421 ;; 5422 5423 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5424 # This has been around since 386BSD, at least. Likely further. 5425 if test -x /sbin/sysctl; then 5426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5427 elif test -x /usr/sbin/sysctl; then 5428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5429 else 5430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5431 fi 5432 # And add a safety zone 5433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5435 ;; 5436 5437 interix*) 5438 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5439 lt_cv_sys_max_cmd_len=196608 5440 ;; 5441 5442 os2*) 5443 # The test takes a long time on OS/2. 5444 lt_cv_sys_max_cmd_len=8192 5445 ;; 5446 5447 osf*) 5448 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5449 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5450 # nice to cause kernel panics so lets avoid the loop below. 5451 # First set a reasonable default. 5452 lt_cv_sys_max_cmd_len=16384 5453 # 5454 if test -x /sbin/sysconfig; then 5455 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5456 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5457 esac 5458 fi 5459 ;; 5460 sco3.2v5*) 5461 lt_cv_sys_max_cmd_len=102400 5462 ;; 5463 sysv5* | sco5v6* | sysv4.2uw2*) 5464 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5465 if test -n "$kargmax"; then 5466 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5467 else 5468 lt_cv_sys_max_cmd_len=32768 5469 fi 5470 ;; 5471 *) 5472 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5473 if test -n "$lt_cv_sys_max_cmd_len" && \ 5474 test undefined != "$lt_cv_sys_max_cmd_len"; then 5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5477 else 5478 # Make teststring a little bigger before we do anything with it. 5479 # a 1K string should be a reasonable start. 5480 for i in 1 2 3 4 5 6 7 8; do 5481 teststring=$teststring$teststring 5482 done 5483 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5484 # If test is not a shell built-in, we'll probably end up computing a 5485 # maximum length that is only half of the actual maximum length, but 5486 # we can't tell. 5487 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5488 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5489 test 17 != "$i" # 1/2 MB should be enough 5490 do 5491 i=`expr $i + 1` 5492 teststring=$teststring$teststring 5493 done 5494 # Only check the string length outside the loop. 5495 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5496 teststring= 5497 # Add a significant safety factor because C++ compilers can tack on 5498 # massive amounts of additional arguments before passing them to the 5499 # linker. It appears as though 1/2 is a usable value. 5500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5501 fi 5502 ;; 5503 esac 5504 5505fi 5506 5507if test -n "$lt_cv_sys_max_cmd_len"; then 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5509$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5510else 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5512$as_echo "none" >&6; } 5513fi 5514max_cmd_len=$lt_cv_sys_max_cmd_len 5515 5516 5517 5518 5519 5520 5521: ${CP="cp -f"} 5522: ${MV="mv -f"} 5523: ${RM="rm -f"} 5524 5525if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5526 lt_unset=unset 5527else 5528 lt_unset=false 5529fi 5530 5531 5532 5533 5534 5535# test EBCDIC or ASCII 5536case `echo X|tr X '\101'` in 5537 A) # ASCII based system 5538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5539 lt_SP2NL='tr \040 \012' 5540 lt_NL2SP='tr \015\012 \040\040' 5541 ;; 5542 *) # EBCDIC based system 5543 lt_SP2NL='tr \100 \n' 5544 lt_NL2SP='tr \r\n \100\100' 5545 ;; 5546esac 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5557$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5558if ${lt_cv_to_host_file_cmd+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 case $host in 5562 *-*-mingw* ) 5563 case $build in 5564 *-*-mingw* ) # actually msys 5565 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5566 ;; 5567 *-*-cygwin* ) 5568 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5569 ;; 5570 * ) # otherwise, assume *nix 5571 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5572 ;; 5573 esac 5574 ;; 5575 *-*-cygwin* ) 5576 case $build in 5577 *-*-mingw* ) # actually msys 5578 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5579 ;; 5580 *-*-cygwin* ) 5581 lt_cv_to_host_file_cmd=func_convert_file_noop 5582 ;; 5583 * ) # otherwise, assume *nix 5584 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5585 ;; 5586 esac 5587 ;; 5588 * ) # unhandled hosts (and "normal" native builds) 5589 lt_cv_to_host_file_cmd=func_convert_file_noop 5590 ;; 5591esac 5592 5593fi 5594 5595to_host_file_cmd=$lt_cv_to_host_file_cmd 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5597$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5598 5599 5600 5601 5602 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5604$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5605if ${lt_cv_to_tool_file_cmd+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 #assume ordinary cross tools, or native build. 5609lt_cv_to_tool_file_cmd=func_convert_file_noop 5610case $host in 5611 *-*-mingw* ) 5612 case $build in 5613 *-*-mingw* ) # actually msys 5614 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5615 ;; 5616 esac 5617 ;; 5618esac 5619 5620fi 5621 5622to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5624$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5625 5626 5627 5628 5629 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5631$as_echo_n "checking for $LD option to reload object files... " >&6; } 5632if ${lt_cv_ld_reload_flag+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 lt_cv_ld_reload_flag='-r' 5636fi 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5638$as_echo "$lt_cv_ld_reload_flag" >&6; } 5639reload_flag=$lt_cv_ld_reload_flag 5640case $reload_flag in 5641"" | " "*) ;; 5642*) reload_flag=" $reload_flag" ;; 5643esac 5644reload_cmds='$LD$reload_flag -o $output$reload_objs' 5645case $host_os in 5646 cygwin* | mingw* | pw32* | cegcc*) 5647 if test yes != "$GCC"; then 5648 reload_cmds=false 5649 fi 5650 ;; 5651 darwin*) 5652 if test yes = "$GCC"; then 5653 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5654 else 5655 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5656 fi 5657 ;; 5658esac 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668if test -n "$ac_tool_prefix"; then 5669 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5670set dummy ${ac_tool_prefix}objdump; ac_word=$2 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5672$as_echo_n "checking for $ac_word... " >&6; } 5673if ${ac_cv_prog_OBJDUMP+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675else 5676 if test -n "$OBJDUMP"; then 5677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5678else 5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5680for as_dir in $PATH 5681do 5682 IFS=$as_save_IFS 5683 test -z "$as_dir" && as_dir=. 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5686 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690done 5691 done 5692IFS=$as_save_IFS 5693 5694fi 5695fi 5696OBJDUMP=$ac_cv_prog_OBJDUMP 5697if test -n "$OBJDUMP"; then 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5699$as_echo "$OBJDUMP" >&6; } 5700else 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702$as_echo "no" >&6; } 5703fi 5704 5705 5706fi 5707if test -z "$ac_cv_prog_OBJDUMP"; then 5708 ac_ct_OBJDUMP=$OBJDUMP 5709 # Extract the first word of "objdump", so it can be a program name with args. 5710set dummy objdump; ac_word=$2 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5712$as_echo_n "checking for $ac_word... " >&6; } 5713if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 if test -n "$ac_ct_OBJDUMP"; then 5717 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5718else 5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5720for as_dir in $PATH 5721do 5722 IFS=$as_save_IFS 5723 test -z "$as_dir" && as_dir=. 5724 for ac_exec_ext in '' $ac_executable_extensions; do 5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5726 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5728 break 2 5729 fi 5730done 5731 done 5732IFS=$as_save_IFS 5733 5734fi 5735fi 5736ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5737if test -n "$ac_ct_OBJDUMP"; then 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5739$as_echo "$ac_ct_OBJDUMP" >&6; } 5740else 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5742$as_echo "no" >&6; } 5743fi 5744 5745 if test "x$ac_ct_OBJDUMP" = x; then 5746 OBJDUMP="false" 5747 else 5748 case $cross_compiling:$ac_tool_warned in 5749yes:) 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5752ac_tool_warned=yes ;; 5753esac 5754 OBJDUMP=$ac_ct_OBJDUMP 5755 fi 5756else 5757 OBJDUMP="$ac_cv_prog_OBJDUMP" 5758fi 5759 5760test -z "$OBJDUMP" && OBJDUMP=objdump 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5771$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5772if ${lt_cv_deplibs_check_method+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 lt_cv_file_magic_cmd='$MAGIC_CMD' 5776lt_cv_file_magic_test_file= 5777lt_cv_deplibs_check_method='unknown' 5778# Need to set the preceding variable on all platforms that support 5779# interlibrary dependencies. 5780# 'none' -- dependencies not supported. 5781# 'unknown' -- same as none, but documents that we really don't know. 5782# 'pass_all' -- all dependencies passed with no checks. 5783# 'test_compile' -- check by making test program. 5784# 'file_magic [[regex]]' -- check by looking for files in library path 5785# that responds to the $file_magic_cmd with a given extended regex. 5786# If you have 'file' or equivalent on your system and you're not sure 5787# whether 'pass_all' will *always* work, you probably want this one. 5788 5789case $host_os in 5790aix[4-9]*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794beos*) 5795 lt_cv_deplibs_check_method=pass_all 5796 ;; 5797 5798bsdi[45]*) 5799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5800 lt_cv_file_magic_cmd='/usr/bin/file -L' 5801 lt_cv_file_magic_test_file=/shlib/libc.so 5802 ;; 5803 5804cygwin*) 5805 # func_win32_libid is a shell function defined in ltmain.sh 5806 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5807 lt_cv_file_magic_cmd='func_win32_libid' 5808 ;; 5809 5810mingw* | pw32*) 5811 # Base MSYS/MinGW do not provide the 'file' command needed by 5812 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5813 # unless we find 'file', for example because we are cross-compiling. 5814 if ( file / ) >/dev/null 2>&1; then 5815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5816 lt_cv_file_magic_cmd='func_win32_libid' 5817 else 5818 # Keep this pattern in sync with the one in func_win32_libid. 5819 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5820 lt_cv_file_magic_cmd='$OBJDUMP -f' 5821 fi 5822 ;; 5823 5824cegcc*) 5825 # use the weaker test based on 'objdump'. See mingw*. 5826 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5827 lt_cv_file_magic_cmd='$OBJDUMP -f' 5828 ;; 5829 5830darwin* | rhapsody*) 5831 lt_cv_deplibs_check_method=pass_all 5832 ;; 5833 5834freebsd* | dragonfly*) 5835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5836 case $host_cpu in 5837 i*86 ) 5838 # Not sure whether the presence of OpenBSD here was a mistake. 5839 # Let's accept both of them until this is cleared up. 5840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5841 lt_cv_file_magic_cmd=/usr/bin/file 5842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5843 ;; 5844 esac 5845 else 5846 lt_cv_deplibs_check_method=pass_all 5847 fi 5848 ;; 5849 5850haiku*) 5851 lt_cv_deplibs_check_method=pass_all 5852 ;; 5853 5854hpux10.20* | hpux11*) 5855 lt_cv_file_magic_cmd=/usr/bin/file 5856 case $host_cpu in 5857 ia64*) 5858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5860 ;; 5861 hppa*64*) 5862 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]' 5863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5864 ;; 5865 *) 5866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5867 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5868 ;; 5869 esac 5870 ;; 5871 5872interix[3-9]*) 5873 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5875 ;; 5876 5877irix5* | irix6* | nonstopux*) 5878 case $LD in 5879 *-32|*"-32 ") libmagic=32-bit;; 5880 *-n32|*"-n32 ") libmagic=N32;; 5881 *-64|*"-64 ") libmagic=64-bit;; 5882 *) libmagic=never-match;; 5883 esac 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 5887# This must be glibc/ELF. 5888linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5889 lt_cv_deplibs_check_method=pass_all 5890 ;; 5891 5892netbsd*) 5893 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5895 else 5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5897 fi 5898 ;; 5899 5900newos6*) 5901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5902 lt_cv_file_magic_cmd=/usr/bin/file 5903 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5904 ;; 5905 5906*nto* | *qnx*) 5907 lt_cv_deplibs_check_method=pass_all 5908 ;; 5909 5910openbsd* | bitrig*) 5911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5913 else 5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5915 fi 5916 ;; 5917 5918osf3* | osf4* | osf5*) 5919 lt_cv_deplibs_check_method=pass_all 5920 ;; 5921 5922rdos*) 5923 lt_cv_deplibs_check_method=pass_all 5924 ;; 5925 5926solaris*) 5927 lt_cv_deplibs_check_method=pass_all 5928 ;; 5929 5930sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933 5934sysv4 | sysv4.3*) 5935 case $host_vendor in 5936 motorola) 5937 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]' 5938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5939 ;; 5940 ncr) 5941 lt_cv_deplibs_check_method=pass_all 5942 ;; 5943 sequent) 5944 lt_cv_file_magic_cmd='/bin/file' 5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5946 ;; 5947 sni) 5948 lt_cv_file_magic_cmd='/bin/file' 5949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5950 lt_cv_file_magic_test_file=/lib/libc.so 5951 ;; 5952 siemens) 5953 lt_cv_deplibs_check_method=pass_all 5954 ;; 5955 pc) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 esac 5959 ;; 5960 5961tpf*) 5962 lt_cv_deplibs_check_method=pass_all 5963 ;; 5964os2*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967esac 5968 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5971$as_echo "$lt_cv_deplibs_check_method" >&6; } 5972 5973file_magic_glob= 5974want_nocaseglob=no 5975if test "$build" = "$host"; then 5976 case $host_os in 5977 mingw* | pw32*) 5978 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5979 want_nocaseglob=yes 5980 else 5981 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5982 fi 5983 ;; 5984 esac 5985fi 5986 5987file_magic_cmd=$lt_cv_file_magic_cmd 5988deplibs_check_method=$lt_cv_deplibs_check_method 5989test -z "$deplibs_check_method" && deplibs_check_method=unknown 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012if test -n "$ac_tool_prefix"; then 6013 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6014set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6016$as_echo_n "checking for $ac_word... " >&6; } 6017if ${ac_cv_prog_DLLTOOL+:} false; then : 6018 $as_echo_n "(cached) " >&6 6019else 6020 if test -n "$DLLTOOL"; then 6021 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6022else 6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6024for as_dir in $PATH 6025do 6026 IFS=$as_save_IFS 6027 test -z "$as_dir" && as_dir=. 6028 for ac_exec_ext in '' $ac_executable_extensions; do 6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6030 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6032 break 2 6033 fi 6034done 6035 done 6036IFS=$as_save_IFS 6037 6038fi 6039fi 6040DLLTOOL=$ac_cv_prog_DLLTOOL 6041if test -n "$DLLTOOL"; then 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6043$as_echo "$DLLTOOL" >&6; } 6044else 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6046$as_echo "no" >&6; } 6047fi 6048 6049 6050fi 6051if test -z "$ac_cv_prog_DLLTOOL"; then 6052 ac_ct_DLLTOOL=$DLLTOOL 6053 # Extract the first word of "dlltool", so it can be a program name with args. 6054set dummy dlltool; ac_word=$2 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 if test -n "$ac_ct_DLLTOOL"; then 6061 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6062else 6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064for as_dir in $PATH 6065do 6066 IFS=$as_save_IFS 6067 test -z "$as_dir" && as_dir=. 6068 for ac_exec_ext in '' $ac_executable_extensions; do 6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6070 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6072 break 2 6073 fi 6074done 6075 done 6076IFS=$as_save_IFS 6077 6078fi 6079fi 6080ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6081if test -n "$ac_ct_DLLTOOL"; then 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6083$as_echo "$ac_ct_DLLTOOL" >&6; } 6084else 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086$as_echo "no" >&6; } 6087fi 6088 6089 if test "x$ac_ct_DLLTOOL" = x; then 6090 DLLTOOL="false" 6091 else 6092 case $cross_compiling:$ac_tool_warned in 6093yes:) 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6096ac_tool_warned=yes ;; 6097esac 6098 DLLTOOL=$ac_ct_DLLTOOL 6099 fi 6100else 6101 DLLTOOL="$ac_cv_prog_DLLTOOL" 6102fi 6103 6104test -z "$DLLTOOL" && DLLTOOL=dlltool 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6116$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6117if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 lt_cv_sharedlib_from_linklib_cmd='unknown' 6121 6122case $host_os in 6123cygwin* | mingw* | pw32* | cegcc*) 6124 # two different shell functions defined in ltmain.sh; 6125 # decide which one to use based on capabilities of $DLLTOOL 6126 case `$DLLTOOL --help 2>&1` in 6127 *--identify-strict*) 6128 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6129 ;; 6130 *) 6131 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6132 ;; 6133 esac 6134 ;; 6135*) 6136 # fallback: assume linklib IS sharedlib 6137 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6138 ;; 6139esac 6140 6141fi 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6143$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6144sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6145test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6146 6147 6148 6149 6150 6151 6152 6153if test -n "$ac_tool_prefix"; then 6154 for ac_prog in ar 6155 do 6156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6157set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if ${ac_cv_prog_AR+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$AR"; then 6164 ac_cv_prog_AR="$AR" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6173 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178 done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183AR=$ac_cv_prog_AR 6184if test -n "$AR"; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6186$as_echo "$AR" >&6; } 6187else 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 6193 test -n "$AR" && break 6194 done 6195fi 6196if test -z "$AR"; then 6197 ac_ct_AR=$AR 6198 for ac_prog in ar 6199do 6200 # Extract the first word of "$ac_prog", so it can be a program name with args. 6201set dummy $ac_prog; ac_word=$2 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6203$as_echo_n "checking for $ac_word... " >&6; } 6204if ${ac_cv_prog_ac_ct_AR+:} false; then : 6205 $as_echo_n "(cached) " >&6 6206else 6207 if test -n "$ac_ct_AR"; then 6208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6209else 6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6211for as_dir in $PATH 6212do 6213 IFS=$as_save_IFS 6214 test -z "$as_dir" && as_dir=. 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6217 ac_cv_prog_ac_ct_AR="$ac_prog" 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221done 6222 done 6223IFS=$as_save_IFS 6224 6225fi 6226fi 6227ac_ct_AR=$ac_cv_prog_ac_ct_AR 6228if test -n "$ac_ct_AR"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6230$as_echo "$ac_ct_AR" >&6; } 6231else 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233$as_echo "no" >&6; } 6234fi 6235 6236 6237 test -n "$ac_ct_AR" && break 6238done 6239 6240 if test "x$ac_ct_AR" = x; then 6241 AR="false" 6242 else 6243 case $cross_compiling:$ac_tool_warned in 6244yes:) 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6247ac_tool_warned=yes ;; 6248esac 6249 AR=$ac_ct_AR 6250 fi 6251fi 6252 6253: ${AR=ar} 6254: ${AR_FLAGS=cru} 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6267$as_echo_n "checking for archiver @FILE support... " >&6; } 6268if ${lt_cv_ar_at_file+:} false; then : 6269 $as_echo_n "(cached) " >&6 6270else 6271 lt_cv_ar_at_file=no 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274 6275int 6276main () 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283if ac_fn_c_try_compile "$LINENO"; then : 6284 echo conftest.$ac_objext > conftest.lst 6285 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6287 (eval $lt_ar_try) 2>&5 6288 ac_status=$? 6289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6290 test $ac_status = 0; } 6291 if test 0 -eq "$ac_status"; then 6292 # Ensure the archiver fails upon bogus file names. 6293 rm -f conftest.$ac_objext libconftest.a 6294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6295 (eval $lt_ar_try) 2>&5 6296 ac_status=$? 6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6298 test $ac_status = 0; } 6299 if test 0 -ne "$ac_status"; then 6300 lt_cv_ar_at_file=@ 6301 fi 6302 fi 6303 rm -f conftest.* libconftest.a 6304 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307 6308fi 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6310$as_echo "$lt_cv_ar_at_file" >&6; } 6311 6312if test no = "$lt_cv_ar_at_file"; then 6313 archiver_list_spec= 6314else 6315 archiver_list_spec=$lt_cv_ar_at_file 6316fi 6317 6318 6319 6320 6321 6322 6323 6324if test -n "$ac_tool_prefix"; then 6325 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6326set dummy ${ac_tool_prefix}strip; ac_word=$2 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6328$as_echo_n "checking for $ac_word... " >&6; } 6329if ${ac_cv_prog_STRIP+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 if test -n "$STRIP"; then 6333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6342 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352STRIP=$ac_cv_prog_STRIP 6353if test -n "$STRIP"; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6355$as_echo "$STRIP" >&6; } 6356else 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358$as_echo "no" >&6; } 6359fi 6360 6361 6362fi 6363if test -z "$ac_cv_prog_STRIP"; then 6364 ac_ct_STRIP=$STRIP 6365 # Extract the first word of "strip", so it can be a program name with args. 6366set dummy strip; ac_word=$2 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6368$as_echo_n "checking for $ac_word... " >&6; } 6369if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -n "$ac_ct_STRIP"; then 6373 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6374else 6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376for as_dir in $PATH 6377do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6382 ac_cv_prog_ac_ct_STRIP="strip" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386done 6387 done 6388IFS=$as_save_IFS 6389 6390fi 6391fi 6392ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6393if test -n "$ac_ct_STRIP"; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6395$as_echo "$ac_ct_STRIP" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399fi 6400 6401 if test "x$ac_ct_STRIP" = x; then 6402 STRIP=":" 6403 else 6404 case $cross_compiling:$ac_tool_warned in 6405yes:) 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6408ac_tool_warned=yes ;; 6409esac 6410 STRIP=$ac_ct_STRIP 6411 fi 6412else 6413 STRIP="$ac_cv_prog_STRIP" 6414fi 6415 6416test -z "$STRIP" && STRIP=: 6417 6418 6419 6420 6421 6422 6423if test -n "$ac_tool_prefix"; then 6424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6425set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6427$as_echo_n "checking for $ac_word... " >&6; } 6428if ${ac_cv_prog_RANLIB+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 if test -n "$RANLIB"; then 6432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6433else 6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6435for as_dir in $PATH 6436do 6437 IFS=$as_save_IFS 6438 test -z "$as_dir" && as_dir=. 6439 for ac_exec_ext in '' $ac_executable_extensions; do 6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6443 break 2 6444 fi 6445done 6446 done 6447IFS=$as_save_IFS 6448 6449fi 6450fi 6451RANLIB=$ac_cv_prog_RANLIB 6452if test -n "$RANLIB"; then 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6454$as_echo "$RANLIB" >&6; } 6455else 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457$as_echo "no" >&6; } 6458fi 6459 6460 6461fi 6462if test -z "$ac_cv_prog_RANLIB"; then 6463 ac_ct_RANLIB=$RANLIB 6464 # Extract the first word of "ranlib", so it can be a program name with args. 6465set dummy ranlib; ac_word=$2 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467$as_echo_n "checking for $ac_word... " >&6; } 6468if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 if test -n "$ac_ct_RANLIB"; then 6472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6473else 6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6475for as_dir in $PATH 6476do 6477 IFS=$as_save_IFS 6478 test -z "$as_dir" && as_dir=. 6479 for ac_exec_ext in '' $ac_executable_extensions; do 6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6481 ac_cv_prog_ac_ct_RANLIB="ranlib" 6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6483 break 2 6484 fi 6485done 6486 done 6487IFS=$as_save_IFS 6488 6489fi 6490fi 6491ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6492if test -n "$ac_ct_RANLIB"; then 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6494$as_echo "$ac_ct_RANLIB" >&6; } 6495else 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6497$as_echo "no" >&6; } 6498fi 6499 6500 if test "x$ac_ct_RANLIB" = x; then 6501 RANLIB=":" 6502 else 6503 case $cross_compiling:$ac_tool_warned in 6504yes:) 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6507ac_tool_warned=yes ;; 6508esac 6509 RANLIB=$ac_ct_RANLIB 6510 fi 6511else 6512 RANLIB="$ac_cv_prog_RANLIB" 6513fi 6514 6515test -z "$RANLIB" && RANLIB=: 6516 6517 6518 6519 6520 6521 6522# Determine commands to create old-style static archives. 6523old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6524old_postinstall_cmds='chmod 644 $oldlib' 6525old_postuninstall_cmds= 6526 6527if test -n "$RANLIB"; then 6528 case $host_os in 6529 bitrig* | openbsd*) 6530 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6531 ;; 6532 *) 6533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6534 ;; 6535 esac 6536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6537fi 6538 6539case $host_os in 6540 darwin*) 6541 lock_old_archive_extraction=yes ;; 6542 *) 6543 lock_old_archive_extraction=no ;; 6544esac 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584# If no C compiler was specified, use CC. 6585LTCC=${LTCC-"$CC"} 6586 6587# If no C compiler flags were specified, use CFLAGS. 6588LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6589 6590# Allow CC to be a program name with arguments. 6591compiler=$CC 6592 6593 6594# Check for command to grab the raw symbol name followed by C symbol from nm. 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6596$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6597if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 6601# These are sane defaults that work on at least a few old systems. 6602# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6603 6604# Character class describing NM global symbol codes. 6605symcode='[BCDEGRST]' 6606 6607# Regexp to match symbols that can be accessed directly from C. 6608sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6609 6610# Define system-specific variables. 6611case $host_os in 6612aix*) 6613 symcode='[BCDT]' 6614 ;; 6615cygwin* | mingw* | pw32* | cegcc*) 6616 symcode='[ABCDGISTW]' 6617 ;; 6618hpux*) 6619 if test ia64 = "$host_cpu"; then 6620 symcode='[ABCDEGRST]' 6621 fi 6622 ;; 6623irix* | nonstopux*) 6624 symcode='[BCDEGRST]' 6625 ;; 6626osf*) 6627 symcode='[BCDEGQRST]' 6628 ;; 6629solaris*) 6630 symcode='[BDRT]' 6631 ;; 6632sco3.2v5*) 6633 symcode='[DT]' 6634 ;; 6635sysv4.2uw2*) 6636 symcode='[DT]' 6637 ;; 6638sysv5* | sco5v6* | unixware* | OpenUNIX*) 6639 symcode='[ABDT]' 6640 ;; 6641sysv4) 6642 symcode='[DFNSTU]' 6643 ;; 6644esac 6645 6646# If we're using GNU nm, then use its standard symbol codes. 6647case `$NM -V 2>&1` in 6648*GNU* | *'with BFD'*) 6649 symcode='[ABCDGIRSTW]' ;; 6650esac 6651 6652if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6653 # Gets list of data symbols to import. 6654 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6655 # Adjust the below global symbol transforms to fixup imported variables. 6656 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6657 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6658 lt_c_name_lib_hook="\ 6659 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6660 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6661else 6662 # Disable hooks by default. 6663 lt_cv_sys_global_symbol_to_import= 6664 lt_cdecl_hook= 6665 lt_c_name_hook= 6666 lt_c_name_lib_hook= 6667fi 6668 6669# Transform an extracted symbol line into a proper C declaration. 6670# Some systems (esp. on ia64) link data and code symbols differently, 6671# so use this general approach. 6672lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6673$lt_cdecl_hook\ 6674" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6675" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6676 6677# Transform an extracted symbol line into symbol name and symbol address 6678lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6679$lt_c_name_hook\ 6680" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6681" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6682 6683# Transform an extracted symbol line into symbol name with lib prefix and 6684# symbol address. 6685lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6686$lt_c_name_lib_hook\ 6687" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6688" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6689" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6690 6691# Handle CRLF in mingw tool chain 6692opt_cr= 6693case $build_os in 6694mingw*) 6695 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6696 ;; 6697esac 6698 6699# Try without a prefix underscore, then with it. 6700for ac_symprfx in "" "_"; do 6701 6702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6703 symxfrm="\\1 $ac_symprfx\\2 \\2" 6704 6705 # Write the raw and C identifiers. 6706 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6707 # Fake it for dumpbin and say T for any non-static function, 6708 # D for any global variable and I for any imported variable. 6709 # Also find C++ and __fastcall symbols from MSVC++, 6710 # which start with @ or ?. 6711 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6712" {last_section=section; section=\$ 3};"\ 6713" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6714" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6715" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6716" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6717" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6718" \$ 0!~/External *\|/{next};"\ 6719" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6720" {if(hide[section]) next};"\ 6721" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6722" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6723" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6724" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6725" ' prfx=^$ac_symprfx" 6726 else 6727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6728 fi 6729 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6730 6731 # Check to see that the pipe works correctly. 6732 pipe_works=no 6733 6734 rm -f conftest* 6735 cat > conftest.$ac_ext <<_LT_EOF 6736#ifdef __cplusplus 6737extern "C" { 6738#endif 6739char nm_test_var; 6740void nm_test_func(void); 6741void nm_test_func(void){} 6742#ifdef __cplusplus 6743} 6744#endif 6745int main(){nm_test_var='a';nm_test_func();return(0);} 6746_LT_EOF 6747 6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6749 (eval $ac_compile) 2>&5 6750 ac_status=$? 6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6752 test $ac_status = 0; }; then 6753 # Now try to grab the symbols. 6754 nlist=conftest.nm 6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6756 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6757 ac_status=$? 6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6759 test $ac_status = 0; } && test -s "$nlist"; then 6760 # Try sorting and uniquifying the output. 6761 if sort "$nlist" | uniq > "$nlist"T; then 6762 mv -f "$nlist"T "$nlist" 6763 else 6764 rm -f "$nlist"T 6765 fi 6766 6767 # Make sure that we snagged all the symbols we need. 6768 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6769 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6770 cat <<_LT_EOF > conftest.$ac_ext 6771/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6772#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6773/* DATA imports from DLLs on WIN32 can't be const, because runtime 6774 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6775# define LT_DLSYM_CONST 6776#elif defined __osf__ 6777/* This system does not cope well with relocations in const data. */ 6778# define LT_DLSYM_CONST 6779#else 6780# define LT_DLSYM_CONST const 6781#endif 6782 6783#ifdef __cplusplus 6784extern "C" { 6785#endif 6786 6787_LT_EOF 6788 # Now generate the symbol file. 6789 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6790 6791 cat <<_LT_EOF >> conftest.$ac_ext 6792 6793/* The mapping between symbol names and symbols. */ 6794LT_DLSYM_CONST struct { 6795 const char *name; 6796 void *address; 6797} 6798lt__PROGRAM__LTX_preloaded_symbols[] = 6799{ 6800 { "@PROGRAM@", (void *) 0 }, 6801_LT_EOF 6802 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6803 cat <<\_LT_EOF >> conftest.$ac_ext 6804 {0, (void *) 0} 6805}; 6806 6807/* This works around a problem in FreeBSD linker */ 6808#ifdef FREEBSD_WORKAROUND 6809static const void *lt_preloaded_setup() { 6810 return lt__PROGRAM__LTX_preloaded_symbols; 6811} 6812#endif 6813 6814#ifdef __cplusplus 6815} 6816#endif 6817_LT_EOF 6818 # Now try linking the two files. 6819 mv conftest.$ac_objext conftstm.$ac_objext 6820 lt_globsym_save_LIBS=$LIBS 6821 lt_globsym_save_CFLAGS=$CFLAGS 6822 LIBS=conftstm.$ac_objext 6823 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6825 (eval $ac_link) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6829 pipe_works=yes 6830 fi 6831 LIBS=$lt_globsym_save_LIBS 6832 CFLAGS=$lt_globsym_save_CFLAGS 6833 else 6834 echo "cannot find nm_test_func in $nlist" >&5 6835 fi 6836 else 6837 echo "cannot find nm_test_var in $nlist" >&5 6838 fi 6839 else 6840 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6841 fi 6842 else 6843 echo "$progname: failed program was:" >&5 6844 cat conftest.$ac_ext >&5 6845 fi 6846 rm -rf conftest* conftst* 6847 6848 # Do not use the global_symbol_pipe unless it works. 6849 if test yes = "$pipe_works"; then 6850 break 6851 else 6852 lt_cv_sys_global_symbol_pipe= 6853 fi 6854done 6855 6856fi 6857 6858if test -z "$lt_cv_sys_global_symbol_pipe"; then 6859 lt_cv_sys_global_symbol_to_cdecl= 6860fi 6861if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6863$as_echo "failed" >&6; } 6864else 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6866$as_echo "ok" >&6; } 6867fi 6868 6869# Response file support. 6870if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6871 nm_file_list_spec='@' 6872elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6873 nm_file_list_spec='@' 6874fi 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6913$as_echo_n "checking for sysroot... " >&6; } 6914 6915# Check whether --with-sysroot was given. 6916if test "${with_sysroot+set}" = set; then : 6917 withval=$with_sysroot; 6918else 6919 with_sysroot=no 6920fi 6921 6922 6923lt_sysroot= 6924case $with_sysroot in #( 6925 yes) 6926 if test yes = "$GCC"; then 6927 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6928 fi 6929 ;; #( 6930 /*) 6931 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6932 ;; #( 6933 no|'') 6934 ;; #( 6935 *) 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6937$as_echo "$with_sysroot" >&6; } 6938 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6939 ;; 6940esac 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6943$as_echo "${lt_sysroot:-no}" >&6; } 6944 6945 6946 6947 6948 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6950$as_echo_n "checking for a working dd... " >&6; } 6951if ${ac_cv_path_lt_DD+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 printf 0123456789abcdef0123456789abcdef >conftest.i 6955cat conftest.i conftest.i >conftest2.i 6956: ${lt_DD:=$DD} 6957if test -z "$lt_DD"; then 6958 ac_path_lt_DD_found=false 6959 # Loop through the user's path and test for each of PROGNAME-LIST 6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_prog in dd; do 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6968 as_fn_executable_p "$ac_path_lt_DD" || continue 6969if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6970 cmp -s conftest.i conftest.out \ 6971 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6972fi 6973 $ac_path_lt_DD_found && break 3 6974 done 6975 done 6976 done 6977IFS=$as_save_IFS 6978 if test -z "$ac_cv_path_lt_DD"; then 6979 : 6980 fi 6981else 6982 ac_cv_path_lt_DD=$lt_DD 6983fi 6984 6985rm -f conftest.i conftest2.i conftest.out 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6988$as_echo "$ac_cv_path_lt_DD" >&6; } 6989 6990 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6992$as_echo_n "checking how to truncate binary pipes... " >&6; } 6993if ${lt_cv_truncate_bin+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 printf 0123456789abcdef0123456789abcdef >conftest.i 6997cat conftest.i conftest.i >conftest2.i 6998lt_cv_truncate_bin= 6999if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7000 cmp -s conftest.i conftest.out \ 7001 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7002fi 7003rm -f conftest.i conftest2.i conftest.out 7004test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7005fi 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7007$as_echo "$lt_cv_truncate_bin" >&6; } 7008 7009 7010 7011 7012 7013 7014 7015# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7016func_cc_basename () 7017{ 7018 for cc_temp in $*""; do 7019 case $cc_temp in 7020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7022 \-*) ;; 7023 *) break;; 7024 esac 7025 done 7026 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7027} 7028 7029# Check whether --enable-libtool-lock was given. 7030if test "${enable_libtool_lock+set}" = set; then : 7031 enableval=$enable_libtool_lock; 7032fi 7033 7034test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7035 7036# Some flags need to be propagated to the compiler or linker for good 7037# libtool support. 7038case $host in 7039ia64-*-hpux*) 7040 # Find out what ABI is being produced by ac_compile, and set mode 7041 # options accordingly. 7042 echo 'int i;' > conftest.$ac_ext 7043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7044 (eval $ac_compile) 2>&5 7045 ac_status=$? 7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7047 test $ac_status = 0; }; then 7048 case `/usr/bin/file conftest.$ac_objext` in 7049 *ELF-32*) 7050 HPUX_IA64_MODE=32 7051 ;; 7052 *ELF-64*) 7053 HPUX_IA64_MODE=64 7054 ;; 7055 esac 7056 fi 7057 rm -rf conftest* 7058 ;; 7059*-*-irix6*) 7060 # Find out what ABI is being produced by ac_compile, and set linker 7061 # options accordingly. 7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7064 (eval $ac_compile) 2>&5 7065 ac_status=$? 7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7067 test $ac_status = 0; }; then 7068 if test yes = "$lt_cv_prog_gnu_ld"; then 7069 case `/usr/bin/file conftest.$ac_objext` in 7070 *32-bit*) 7071 LD="${LD-ld} -melf32bsmip" 7072 ;; 7073 *N32*) 7074 LD="${LD-ld} -melf32bmipn32" 7075 ;; 7076 *64-bit*) 7077 LD="${LD-ld} -melf64bmip" 7078 ;; 7079 esac 7080 else 7081 case `/usr/bin/file conftest.$ac_objext` in 7082 *32-bit*) 7083 LD="${LD-ld} -32" 7084 ;; 7085 *N32*) 7086 LD="${LD-ld} -n32" 7087 ;; 7088 *64-bit*) 7089 LD="${LD-ld} -64" 7090 ;; 7091 esac 7092 fi 7093 fi 7094 rm -rf conftest* 7095 ;; 7096 7097mips64*-*linux*) 7098 # Find out what ABI is being produced by ac_compile, and set linker 7099 # options accordingly. 7100 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7102 (eval $ac_compile) 2>&5 7103 ac_status=$? 7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7105 test $ac_status = 0; }; then 7106 emul=elf 7107 case `/usr/bin/file conftest.$ac_objext` in 7108 *32-bit*) 7109 emul="${emul}32" 7110 ;; 7111 *64-bit*) 7112 emul="${emul}64" 7113 ;; 7114 esac 7115 case `/usr/bin/file conftest.$ac_objext` in 7116 *MSB*) 7117 emul="${emul}btsmip" 7118 ;; 7119 *LSB*) 7120 emul="${emul}ltsmip" 7121 ;; 7122 esac 7123 case `/usr/bin/file conftest.$ac_objext` in 7124 *N32*) 7125 emul="${emul}n32" 7126 ;; 7127 esac 7128 LD="${LD-ld} -m $emul" 7129 fi 7130 rm -rf conftest* 7131 ;; 7132 7133x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7134s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7135 # Find out what ABI is being produced by ac_compile, and set linker 7136 # options accordingly. Note that the listed cases only cover the 7137 # situations where additional linker options are needed (such as when 7138 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7139 # vice versa); the common cases where no linker options are needed do 7140 # not appear in the list. 7141 echo 'int i;' > conftest.$ac_ext 7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7143 (eval $ac_compile) 2>&5 7144 ac_status=$? 7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7146 test $ac_status = 0; }; then 7147 case `/usr/bin/file conftest.o` in 7148 *32-bit*) 7149 case $host in 7150 x86_64-*kfreebsd*-gnu) 7151 LD="${LD-ld} -m elf_i386_fbsd" 7152 ;; 7153 x86_64-*linux*) 7154 case `/usr/bin/file conftest.o` in 7155 *x86-64*) 7156 LD="${LD-ld} -m elf32_x86_64" 7157 ;; 7158 *) 7159 LD="${LD-ld} -m elf_i386" 7160 ;; 7161 esac 7162 ;; 7163 powerpc64le-*linux*) 7164 LD="${LD-ld} -m elf32lppclinux" 7165 ;; 7166 powerpc64-*linux*) 7167 LD="${LD-ld} -m elf32ppclinux" 7168 ;; 7169 s390x-*linux*) 7170 LD="${LD-ld} -m elf_s390" 7171 ;; 7172 sparc64-*linux*) 7173 LD="${LD-ld} -m elf32_sparc" 7174 ;; 7175 esac 7176 ;; 7177 *64-bit*) 7178 case $host in 7179 x86_64-*kfreebsd*-gnu) 7180 LD="${LD-ld} -m elf_x86_64_fbsd" 7181 ;; 7182 x86_64-*linux*) 7183 LD="${LD-ld} -m elf_x86_64" 7184 ;; 7185 powerpcle-*linux*) 7186 LD="${LD-ld} -m elf64lppc" 7187 ;; 7188 powerpc-*linux*) 7189 LD="${LD-ld} -m elf64ppc" 7190 ;; 7191 s390*-*linux*|s390*-*tpf*) 7192 LD="${LD-ld} -m elf64_s390" 7193 ;; 7194 sparc*-*linux*) 7195 LD="${LD-ld} -m elf64_sparc" 7196 ;; 7197 esac 7198 ;; 7199 esac 7200 fi 7201 rm -rf conftest* 7202 ;; 7203 7204*-*-sco3.2v5*) 7205 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7206 SAVE_CFLAGS=$CFLAGS 7207 CFLAGS="$CFLAGS -belf" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7209$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7210if ${lt_cv_cc_needs_belf+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 ac_ext=c 7214ac_cpp='$CPP $CPPFLAGS' 7215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7217ac_compiler_gnu=$ac_cv_c_compiler_gnu 7218 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221 7222int 7223main () 7224{ 7225 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_c_try_link "$LINENO"; then : 7231 lt_cv_cc_needs_belf=yes 7232else 7233 lt_cv_cc_needs_belf=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext \ 7236 conftest$ac_exeext conftest.$ac_ext 7237 ac_ext=c 7238ac_cpp='$CPP $CPPFLAGS' 7239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7241ac_compiler_gnu=$ac_cv_c_compiler_gnu 7242 7243fi 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7245$as_echo "$lt_cv_cc_needs_belf" >&6; } 7246 if test yes != "$lt_cv_cc_needs_belf"; then 7247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7248 CFLAGS=$SAVE_CFLAGS 7249 fi 7250 ;; 7251*-*solaris*) 7252 # Find out what ABI is being produced by ac_compile, and set linker 7253 # options accordingly. 7254 echo 'int i;' > conftest.$ac_ext 7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7256 (eval $ac_compile) 2>&5 7257 ac_status=$? 7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7259 test $ac_status = 0; }; then 7260 case `/usr/bin/file conftest.o` in 7261 *64-bit*) 7262 case $lt_cv_prog_gnu_ld in 7263 yes*) 7264 case $host in 7265 i?86-*-solaris*|x86_64-*-solaris*) 7266 LD="${LD-ld} -m elf_x86_64" 7267 ;; 7268 sparc*-*-solaris*) 7269 LD="${LD-ld} -m elf64_sparc" 7270 ;; 7271 esac 7272 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7273 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7274 LD=${LD-ld}_sol2 7275 fi 7276 ;; 7277 *) 7278 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7279 LD="${LD-ld} -64" 7280 fi 7281 ;; 7282 esac 7283 ;; 7284 esac 7285 fi 7286 rm -rf conftest* 7287 ;; 7288esac 7289 7290need_locks=$enable_libtool_lock 7291 7292if test -n "$ac_tool_prefix"; then 7293 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7294set dummy ${ac_tool_prefix}mt; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$MANIFEST_TOOL"; then 7301 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7321if test -n "$MANIFEST_TOOL"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7323$as_echo "$MANIFEST_TOOL" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 7330fi 7331if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7332 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7333 # Extract the first word of "mt", so it can be a program name with args. 7334set dummy mt; ac_word=$2 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7336$as_echo_n "checking for $ac_word... " >&6; } 7337if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if test -n "$ac_ct_MANIFEST_TOOL"; then 7341 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7342else 7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7350 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi 7359fi 7360ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7361if test -n "$ac_ct_MANIFEST_TOOL"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7363$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7370 MANIFEST_TOOL=":" 7371 else 7372 case $cross_compiling:$ac_tool_warned in 7373yes:) 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7376ac_tool_warned=yes ;; 7377esac 7378 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7379 fi 7380else 7381 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7382fi 7383 7384test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7386$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7387if ${lt_cv_path_mainfest_tool+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389else 7390 lt_cv_path_mainfest_tool=no 7391 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7392 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7393 cat conftest.err >&5 7394 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7395 lt_cv_path_mainfest_tool=yes 7396 fi 7397 rm -f conftest* 7398fi 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7400$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7401if test yes != "$lt_cv_path_mainfest_tool"; then 7402 MANIFEST_TOOL=: 7403fi 7404 7405 7406 7407 7408 7409 7410 case $host_os in 7411 rhapsody* | darwin*) 7412 if test -n "$ac_tool_prefix"; then 7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7414set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416$as_echo_n "checking for $ac_word... " >&6; } 7417if ${ac_cv_prog_DSYMUTIL+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 if test -n "$DSYMUTIL"; then 7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7422else 7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424for as_dir in $PATH 7425do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435 done 7436IFS=$as_save_IFS 7437 7438fi 7439fi 7440DSYMUTIL=$ac_cv_prog_DSYMUTIL 7441if test -n "$DSYMUTIL"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7443$as_echo "$DSYMUTIL" >&6; } 7444else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446$as_echo "no" >&6; } 7447fi 7448 7449 7450fi 7451if test -z "$ac_cv_prog_DSYMUTIL"; then 7452 ac_ct_DSYMUTIL=$DSYMUTIL 7453 # Extract the first word of "dsymutil", so it can be a program name with args. 7454set dummy dsymutil; ac_word=$2 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7456$as_echo_n "checking for $ac_word... " >&6; } 7457if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 if test -n "$ac_ct_DSYMUTIL"; then 7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7481if test -n "$ac_ct_DSYMUTIL"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7483$as_echo "$ac_ct_DSYMUTIL" >&6; } 7484else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486$as_echo "no" >&6; } 7487fi 7488 7489 if test "x$ac_ct_DSYMUTIL" = x; then 7490 DSYMUTIL=":" 7491 else 7492 case $cross_compiling:$ac_tool_warned in 7493yes:) 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7496ac_tool_warned=yes ;; 7497esac 7498 DSYMUTIL=$ac_ct_DSYMUTIL 7499 fi 7500else 7501 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7502fi 7503 7504 if test -n "$ac_tool_prefix"; then 7505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7506set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508$as_echo_n "checking for $ac_word... " >&6; } 7509if ${ac_cv_prog_NMEDIT+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 if test -n "$NMEDIT"; then 7513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7514else 7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527 done 7528IFS=$as_save_IFS 7529 7530fi 7531fi 7532NMEDIT=$ac_cv_prog_NMEDIT 7533if test -n "$NMEDIT"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7535$as_echo "$NMEDIT" >&6; } 7536else 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7538$as_echo "no" >&6; } 7539fi 7540 7541 7542fi 7543if test -z "$ac_cv_prog_NMEDIT"; then 7544 ac_ct_NMEDIT=$NMEDIT 7545 # Extract the first word of "nmedit", so it can be a program name with args. 7546set dummy nmedit; ac_word=$2 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$ac_ct_NMEDIT"; then 7553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7562 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567 done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7573if test -n "$ac_ct_NMEDIT"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7575$as_echo "$ac_ct_NMEDIT" >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 if test "x$ac_ct_NMEDIT" = x; then 7582 NMEDIT=":" 7583 else 7584 case $cross_compiling:$ac_tool_warned in 7585yes:) 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7588ac_tool_warned=yes ;; 7589esac 7590 NMEDIT=$ac_ct_NMEDIT 7591 fi 7592else 7593 NMEDIT="$ac_cv_prog_NMEDIT" 7594fi 7595 7596 if test -n "$ac_tool_prefix"; then 7597 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7598set dummy ${ac_tool_prefix}lipo; ac_word=$2 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7600$as_echo_n "checking for $ac_word... " >&6; } 7601if ${ac_cv_prog_LIPO+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 if test -n "$LIPO"; then 7605 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7606else 7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608for as_dir in $PATH 7609do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7614 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618done 7619 done 7620IFS=$as_save_IFS 7621 7622fi 7623fi 7624LIPO=$ac_cv_prog_LIPO 7625if test -n "$LIPO"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7627$as_echo "$LIPO" >&6; } 7628else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632 7633 7634fi 7635if test -z "$ac_cv_prog_LIPO"; then 7636 ac_ct_LIPO=$LIPO 7637 # Extract the first word of "lipo", so it can be a program name with args. 7638set dummy lipo; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$ac_ct_LIPO"; then 7645 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_ac_ct_LIPO="lipo" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7665if test -n "$ac_ct_LIPO"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7667$as_echo "$ac_ct_LIPO" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 if test "x$ac_ct_LIPO" = x; then 7674 LIPO=":" 7675 else 7676 case $cross_compiling:$ac_tool_warned in 7677yes:) 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7680ac_tool_warned=yes ;; 7681esac 7682 LIPO=$ac_ct_LIPO 7683 fi 7684else 7685 LIPO="$ac_cv_prog_LIPO" 7686fi 7687 7688 if test -n "$ac_tool_prefix"; then 7689 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7690set dummy ${ac_tool_prefix}otool; ac_word=$2 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7692$as_echo_n "checking for $ac_word... " >&6; } 7693if ${ac_cv_prog_OTOOL+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 if test -n "$OTOOL"; then 7697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7698else 7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7700for as_dir in $PATH 7701do 7702 IFS=$as_save_IFS 7703 test -z "$as_dir" && as_dir=. 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7708 break 2 7709 fi 7710done 7711 done 7712IFS=$as_save_IFS 7713 7714fi 7715fi 7716OTOOL=$ac_cv_prog_OTOOL 7717if test -n "$OTOOL"; then 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7719$as_echo "$OTOOL" >&6; } 7720else 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7722$as_echo "no" >&6; } 7723fi 7724 7725 7726fi 7727if test -z "$ac_cv_prog_OTOOL"; then 7728 ac_ct_OTOOL=$OTOOL 7729 # Extract the first word of "otool", so it can be a program name with args. 7730set dummy otool; ac_word=$2 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732$as_echo_n "checking for $ac_word... " >&6; } 7733if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 if test -n "$ac_ct_OTOOL"; then 7737 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7738else 7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740for as_dir in $PATH 7741do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_ac_ct_OTOOL="otool" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750done 7751 done 7752IFS=$as_save_IFS 7753 7754fi 7755fi 7756ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7757if test -n "$ac_ct_OTOOL"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7759$as_echo "$ac_ct_OTOOL" >&6; } 7760else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762$as_echo "no" >&6; } 7763fi 7764 7765 if test "x$ac_ct_OTOOL" = x; then 7766 OTOOL=":" 7767 else 7768 case $cross_compiling:$ac_tool_warned in 7769yes:) 7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7772ac_tool_warned=yes ;; 7773esac 7774 OTOOL=$ac_ct_OTOOL 7775 fi 7776else 7777 OTOOL="$ac_cv_prog_OTOOL" 7778fi 7779 7780 if test -n "$ac_tool_prefix"; then 7781 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7782set dummy ${ac_tool_prefix}otool64; ac_word=$2 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7784$as_echo_n "checking for $ac_word... " >&6; } 7785if ${ac_cv_prog_OTOOL64+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 if test -n "$OTOOL64"; then 7789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7790else 7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 test -z "$as_dir" && as_dir=. 7796 for ac_exec_ext in '' $ac_executable_extensions; do 7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7798 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7800 break 2 7801 fi 7802done 7803 done 7804IFS=$as_save_IFS 7805 7806fi 7807fi 7808OTOOL64=$ac_cv_prog_OTOOL64 7809if test -n "$OTOOL64"; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7811$as_echo "$OTOOL64" >&6; } 7812else 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7814$as_echo "no" >&6; } 7815fi 7816 7817 7818fi 7819if test -z "$ac_cv_prog_OTOOL64"; then 7820 ac_ct_OTOOL64=$OTOOL64 7821 # Extract the first word of "otool64", so it can be a program name with args. 7822set dummy otool64; ac_word=$2 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7824$as_echo_n "checking for $ac_word... " >&6; } 7825if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 if test -n "$ac_ct_OTOOL64"; then 7829 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7830else 7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832for as_dir in $PATH 7833do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_prog_ac_ct_OTOOL64="otool64" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842done 7843 done 7844IFS=$as_save_IFS 7845 7846fi 7847fi 7848ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7849if test -n "$ac_ct_OTOOL64"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7851$as_echo "$ac_ct_OTOOL64" >&6; } 7852else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854$as_echo "no" >&6; } 7855fi 7856 7857 if test "x$ac_ct_OTOOL64" = x; then 7858 OTOOL64=":" 7859 else 7860 case $cross_compiling:$ac_tool_warned in 7861yes:) 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7864ac_tool_warned=yes ;; 7865esac 7866 OTOOL64=$ac_ct_OTOOL64 7867 fi 7868else 7869 OTOOL64="$ac_cv_prog_OTOOL64" 7870fi 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7899$as_echo_n "checking for -single_module linker flag... " >&6; } 7900if ${lt_cv_apple_cc_single_mod+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 lt_cv_apple_cc_single_mod=no 7904 if test -z "$LT_MULTI_MODULE"; then 7905 # By default we will add the -single_module flag. You can override 7906 # by either setting the environment variable LT_MULTI_MODULE 7907 # non-empty at configure time, or by adding -multi_module to the 7908 # link flags. 7909 rm -rf libconftest.dylib* 7910 echo "int foo(void){return 1;}" > conftest.c 7911 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7912-dynamiclib -Wl,-single_module conftest.c" >&5 7913 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7914 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7915 _lt_result=$? 7916 # If there is a non-empty error log, and "single_module" 7917 # appears in it, assume the flag caused a linker warning 7918 if test -s conftest.err && $GREP single_module conftest.err; then 7919 cat conftest.err >&5 7920 # Otherwise, if the output was created with a 0 exit code from 7921 # the compiler, it worked. 7922 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7923 lt_cv_apple_cc_single_mod=yes 7924 else 7925 cat conftest.err >&5 7926 fi 7927 rm -rf libconftest.dylib* 7928 rm -f conftest.* 7929 fi 7930fi 7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7932$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7933 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7935$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7936if ${lt_cv_ld_exported_symbols_list+:} false; then : 7937 $as_echo_n "(cached) " >&6 7938else 7939 lt_cv_ld_exported_symbols_list=no 7940 save_LDFLAGS=$LDFLAGS 7941 echo "_main" > conftest.sym 7942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945 7946int 7947main () 7948{ 7949 7950 ; 7951 return 0; 7952} 7953_ACEOF 7954if ac_fn_c_try_link "$LINENO"; then : 7955 lt_cv_ld_exported_symbols_list=yes 7956else 7957 lt_cv_ld_exported_symbols_list=no 7958fi 7959rm -f core conftest.err conftest.$ac_objext \ 7960 conftest$ac_exeext conftest.$ac_ext 7961 LDFLAGS=$save_LDFLAGS 7962 7963fi 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7965$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7966 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7968$as_echo_n "checking for -force_load linker flag... " >&6; } 7969if ${lt_cv_ld_force_load+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 lt_cv_ld_force_load=no 7973 cat > conftest.c << _LT_EOF 7974int forced_loaded() { return 2;} 7975_LT_EOF 7976 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7977 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7978 echo "$AR cru libconftest.a conftest.o" >&5 7979 $AR cru libconftest.a conftest.o 2>&5 7980 echo "$RANLIB libconftest.a" >&5 7981 $RANLIB libconftest.a 2>&5 7982 cat > conftest.c << _LT_EOF 7983int main() { return 0;} 7984_LT_EOF 7985 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7986 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7987 _lt_result=$? 7988 if test -s conftest.err && $GREP force_load conftest.err; then 7989 cat conftest.err >&5 7990 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7991 lt_cv_ld_force_load=yes 7992 else 7993 cat conftest.err >&5 7994 fi 7995 rm -f conftest.err libconftest.a conftest conftest.c 7996 rm -rf conftest.dSYM 7997 7998fi 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8000$as_echo "$lt_cv_ld_force_load" >&6; } 8001 case $host_os in 8002 rhapsody* | darwin1.[012]) 8003 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8004 darwin1.*) 8005 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8006 darwin*) # darwin 5.x on 8007 # if running on 10.5 or later, the deployment target defaults 8008 # to the OS version, if on x86, and 10.4, the deployment 8009 # target defaults to 10.4. Don't you love it? 8010 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8011 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8012 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8013 10.[012][,.]*) 8014 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8015 10.*) 8016 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8017 esac 8018 ;; 8019 esac 8020 if test yes = "$lt_cv_apple_cc_single_mod"; then 8021 _lt_dar_single_mod='$single_module' 8022 fi 8023 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8024 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8025 else 8026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8027 fi 8028 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8029 _lt_dsymutil='~$DSYMUTIL $lib || :' 8030 else 8031 _lt_dsymutil= 8032 fi 8033 ;; 8034 esac 8035 8036# func_munge_path_list VARIABLE PATH 8037# ----------------------------------- 8038# VARIABLE is name of variable containing _space_ separated list of 8039# directories to be munged by the contents of PATH, which is string 8040# having a format: 8041# "DIR[:DIR]:" 8042# string "DIR[ DIR]" will be prepended to VARIABLE 8043# ":DIR[:DIR]" 8044# string "DIR[ DIR]" will be appended to VARIABLE 8045# "DIRP[:DIRP]::[DIRA:]DIRA" 8046# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8047# "DIRA[ DIRA]" will be appended to VARIABLE 8048# "DIR[:DIR]" 8049# VARIABLE will be replaced by "DIR[ DIR]" 8050func_munge_path_list () 8051{ 8052 case x$2 in 8053 x) 8054 ;; 8055 *:) 8056 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8057 ;; 8058 x:*) 8059 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8060 ;; 8061 *::*) 8062 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8063 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8064 ;; 8065 *) 8066 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8067 ;; 8068 esac 8069} 8070 8071for ac_header in dlfcn.h 8072do : 8073 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8074" 8075if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8076 cat >>confdefs.h <<_ACEOF 8077#define HAVE_DLFCN_H 1 8078_ACEOF 8079 8080fi 8081 8082done 8083 8084 8085 8086 8087 8088# Set options 8089 8090 8091 8092 enable_dlopen=no 8093 8094 8095 enable_win32_dll=no 8096 8097 8098 # Check whether --enable-shared was given. 8099if test "${enable_shared+set}" = set; then : 8100 enableval=$enable_shared; p=${PACKAGE-default} 8101 case $enableval in 8102 yes) enable_shared=yes ;; 8103 no) enable_shared=no ;; 8104 *) 8105 enable_shared=no 8106 # Look at the argument we got. We use all the common list separators. 8107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8108 for pkg in $enableval; do 8109 IFS=$lt_save_ifs 8110 if test "X$pkg" = "X$p"; then 8111 enable_shared=yes 8112 fi 8113 done 8114 IFS=$lt_save_ifs 8115 ;; 8116 esac 8117else 8118 enable_shared=yes 8119fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 # Check whether --enable-static was given. 8130if test "${enable_static+set}" = set; then : 8131 enableval=$enable_static; p=${PACKAGE-default} 8132 case $enableval in 8133 yes) enable_static=yes ;; 8134 no) enable_static=no ;; 8135 *) 8136 enable_static=no 8137 # Look at the argument we got. We use all the common list separators. 8138 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8139 for pkg in $enableval; do 8140 IFS=$lt_save_ifs 8141 if test "X$pkg" = "X$p"; then 8142 enable_static=yes 8143 fi 8144 done 8145 IFS=$lt_save_ifs 8146 ;; 8147 esac 8148else 8149 enable_static=yes 8150fi 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161# Check whether --with-pic was given. 8162if test "${with_pic+set}" = set; then : 8163 withval=$with_pic; lt_p=${PACKAGE-default} 8164 case $withval in 8165 yes|no) pic_mode=$withval ;; 8166 *) 8167 pic_mode=default 8168 # Look at the argument we got. We use all the common list separators. 8169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8170 for lt_pkg in $withval; do 8171 IFS=$lt_save_ifs 8172 if test "X$lt_pkg" = "X$lt_p"; then 8173 pic_mode=yes 8174 fi 8175 done 8176 IFS=$lt_save_ifs 8177 ;; 8178 esac 8179else 8180 pic_mode=default 8181fi 8182 8183 8184 8185 8186 8187 8188 8189 8190 # Check whether --enable-fast-install was given. 8191if test "${enable_fast_install+set}" = set; then : 8192 enableval=$enable_fast_install; p=${PACKAGE-default} 8193 case $enableval in 8194 yes) enable_fast_install=yes ;; 8195 no) enable_fast_install=no ;; 8196 *) 8197 enable_fast_install=no 8198 # Look at the argument we got. We use all the common list separators. 8199 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8200 for pkg in $enableval; do 8201 IFS=$lt_save_ifs 8202 if test "X$pkg" = "X$p"; then 8203 enable_fast_install=yes 8204 fi 8205 done 8206 IFS=$lt_save_ifs 8207 ;; 8208 esac 8209else 8210 enable_fast_install=yes 8211fi 8212 8213 8214 8215 8216 8217 8218 8219 8220 shared_archive_member_spec= 8221case $host,$enable_shared in 8222power*-*-aix[5-9]*,yes) 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8224$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8225 8226# Check whether --with-aix-soname was given. 8227if test "${with_aix_soname+set}" = set; then : 8228 withval=$with_aix_soname; case $withval in 8229 aix|svr4|both) 8230 ;; 8231 *) 8232 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8233 ;; 8234 esac 8235 lt_cv_with_aix_soname=$with_aix_soname 8236else 8237 if ${lt_cv_with_aix_soname+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 lt_cv_with_aix_soname=aix 8241fi 8242 8243 with_aix_soname=$lt_cv_with_aix_soname 8244fi 8245 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8247$as_echo "$with_aix_soname" >&6; } 8248 if test aix != "$with_aix_soname"; then 8249 # For the AIX way of multilib, we name the shared archive member 8250 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8251 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8252 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8253 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8254 if test 64 = "${OBJECT_MODE-32}"; then 8255 shared_archive_member_spec=shr_64 8256 else 8257 shared_archive_member_spec=shr 8258 fi 8259 fi 8260 ;; 8261*) 8262 with_aix_soname=aix 8263 ;; 8264esac 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275# This can be used to rebuild libtool when needed 8276LIBTOOL_DEPS=$ltmain 8277 8278# Always use our own libtool. 8279LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310test -z "$LN_S" && LN_S="ln -s" 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325if test -n "${ZSH_VERSION+set}"; then 8326 setopt NO_GLOB_SUBST 8327fi 8328 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8330$as_echo_n "checking for objdir... " >&6; } 8331if ${lt_cv_objdir+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 rm -f .libs 2>/dev/null 8335mkdir .libs 2>/dev/null 8336if test -d .libs; then 8337 lt_cv_objdir=.libs 8338else 8339 # MS-DOS does not allow filenames that begin with a dot. 8340 lt_cv_objdir=_libs 8341fi 8342rmdir .libs 2>/dev/null 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8345$as_echo "$lt_cv_objdir" >&6; } 8346objdir=$lt_cv_objdir 8347 8348 8349 8350 8351 8352cat >>confdefs.h <<_ACEOF 8353#define LT_OBJDIR "$lt_cv_objdir/" 8354_ACEOF 8355 8356 8357 8358 8359case $host_os in 8360aix3*) 8361 # AIX sometimes has problems with the GCC collect2 program. For some 8362 # reason, if we set the COLLECT_NAMES environment variable, the problems 8363 # vanish in a puff of smoke. 8364 if test set != "${COLLECT_NAMES+set}"; then 8365 COLLECT_NAMES= 8366 export COLLECT_NAMES 8367 fi 8368 ;; 8369esac 8370 8371# Global variables: 8372ofile=libtool 8373can_build_shared=yes 8374 8375# All known linkers require a '.a' archive for static linking (except MSVC, 8376# which needs '.lib'). 8377libext=a 8378 8379with_gnu_ld=$lt_cv_prog_gnu_ld 8380 8381old_CC=$CC 8382old_CFLAGS=$CFLAGS 8383 8384# Set sane defaults for various variables 8385test -z "$CC" && CC=cc 8386test -z "$LTCC" && LTCC=$CC 8387test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8388test -z "$LD" && LD=ld 8389test -z "$ac_objext" && ac_objext=o 8390 8391func_cc_basename $compiler 8392cc_basename=$func_cc_basename_result 8393 8394 8395# Only perform the check for file, if the check method requires it 8396test -z "$MAGIC_CMD" && MAGIC_CMD=file 8397case $deplibs_check_method in 8398file_magic*) 8399 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8401$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8402if ${lt_cv_path_MAGIC_CMD+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 case $MAGIC_CMD in 8406[\\/*] | ?:[\\/]*) 8407 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8408 ;; 8409*) 8410 lt_save_MAGIC_CMD=$MAGIC_CMD 8411 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8412 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8413 for ac_dir in $ac_dummy; do 8414 IFS=$lt_save_ifs 8415 test -z "$ac_dir" && ac_dir=. 8416 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8417 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8418 if test -n "$file_magic_test_file"; then 8419 case $deplibs_check_method in 8420 "file_magic "*) 8421 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8422 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8424 $EGREP "$file_magic_regex" > /dev/null; then 8425 : 8426 else 8427 cat <<_LT_EOF 1>&2 8428 8429*** Warning: the command libtool uses to detect shared libraries, 8430*** $file_magic_cmd, produces output that libtool cannot recognize. 8431*** The result is that libtool may fail to recognize shared libraries 8432*** as such. This will affect the creation of libtool libraries that 8433*** depend on shared libraries, but programs linked with such libtool 8434*** libraries will work regardless of this problem. Nevertheless, you 8435*** may want to report the problem to your system manager and/or to 8436*** bug-libtool@gnu.org 8437 8438_LT_EOF 8439 fi ;; 8440 esac 8441 fi 8442 break 8443 fi 8444 done 8445 IFS=$lt_save_ifs 8446 MAGIC_CMD=$lt_save_MAGIC_CMD 8447 ;; 8448esac 8449fi 8450 8451MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8452if test -n "$MAGIC_CMD"; then 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8454$as_echo "$MAGIC_CMD" >&6; } 8455else 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8457$as_echo "no" >&6; } 8458fi 8459 8460 8461 8462 8463 8464if test -z "$lt_cv_path_MAGIC_CMD"; then 8465 if test -n "$ac_tool_prefix"; then 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8467$as_echo_n "checking for file... " >&6; } 8468if ${lt_cv_path_MAGIC_CMD+:} false; then : 8469 $as_echo_n "(cached) " >&6 8470else 8471 case $MAGIC_CMD in 8472[\\/*] | ?:[\\/]*) 8473 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8474 ;; 8475*) 8476 lt_save_MAGIC_CMD=$MAGIC_CMD 8477 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8479 for ac_dir in $ac_dummy; do 8480 IFS=$lt_save_ifs 8481 test -z "$ac_dir" && ac_dir=. 8482 if test -f "$ac_dir/file"; then 8483 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8484 if test -n "$file_magic_test_file"; then 8485 case $deplibs_check_method in 8486 "file_magic "*) 8487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8488 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8490 $EGREP "$file_magic_regex" > /dev/null; then 8491 : 8492 else 8493 cat <<_LT_EOF 1>&2 8494 8495*** Warning: the command libtool uses to detect shared libraries, 8496*** $file_magic_cmd, produces output that libtool cannot recognize. 8497*** The result is that libtool may fail to recognize shared libraries 8498*** as such. This will affect the creation of libtool libraries that 8499*** depend on shared libraries, but programs linked with such libtool 8500*** libraries will work regardless of this problem. Nevertheless, you 8501*** may want to report the problem to your system manager and/or to 8502*** bug-libtool@gnu.org 8503 8504_LT_EOF 8505 fi ;; 8506 esac 8507 fi 8508 break 8509 fi 8510 done 8511 IFS=$lt_save_ifs 8512 MAGIC_CMD=$lt_save_MAGIC_CMD 8513 ;; 8514esac 8515fi 8516 8517MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8518if test -n "$MAGIC_CMD"; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8520$as_echo "$MAGIC_CMD" >&6; } 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8523$as_echo "no" >&6; } 8524fi 8525 8526 8527 else 8528 MAGIC_CMD=: 8529 fi 8530fi 8531 8532 fi 8533 ;; 8534esac 8535 8536# Use C for the default configuration in the libtool script 8537 8538lt_save_CC=$CC 8539ac_ext=c 8540ac_cpp='$CPP $CPPFLAGS' 8541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8543ac_compiler_gnu=$ac_cv_c_compiler_gnu 8544 8545 8546# Source file extension for C test sources. 8547ac_ext=c 8548 8549# Object file extension for compiled C test sources. 8550objext=o 8551objext=$objext 8552 8553# Code to be used in simple compile tests 8554lt_simple_compile_test_code="int some_variable = 0;" 8555 8556# Code to be used in simple link tests 8557lt_simple_link_test_code='int main(){return(0);}' 8558 8559 8560 8561 8562 8563 8564 8565# If no C compiler was specified, use CC. 8566LTCC=${LTCC-"$CC"} 8567 8568# If no C compiler flags were specified, use CFLAGS. 8569LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8570 8571# Allow CC to be a program name with arguments. 8572compiler=$CC 8573 8574# Save the default compiler, since it gets overwritten when the other 8575# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8576compiler_DEFAULT=$CC 8577 8578# save warnings/boilerplate of simple test code 8579ac_outfile=conftest.$ac_objext 8580echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8581eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8582_lt_compiler_boilerplate=`cat conftest.err` 8583$RM conftest* 8584 8585ac_outfile=conftest.$ac_objext 8586echo "$lt_simple_link_test_code" >conftest.$ac_ext 8587eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8588_lt_linker_boilerplate=`cat conftest.err` 8589$RM -r conftest* 8590 8591 8592## CAVEAT EMPTOR: 8593## There is no encapsulation within the following macros, do not change 8594## the running order or otherwise move them around unless you know exactly 8595## what you are doing... 8596if test -n "$compiler"; then 8597 8598lt_prog_compiler_no_builtin_flag= 8599 8600if test yes = "$GCC"; then 8601 case $cc_basename in 8602 nvcc*) 8603 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8604 *) 8605 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8606 esac 8607 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8609$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8610if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 lt_cv_prog_compiler_rtti_exceptions=no 8614 ac_outfile=conftest.$ac_objext 8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8616 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8617 # Insert the option either (1) after the last *FLAGS variable, or 8618 # (2) before a word containing "conftest.", or (3) at the end. 8619 # Note that $ac_compile itself does not contain backslashes and begins 8620 # with a dollar sign (not a hyphen), so the echo should work correctly. 8621 # The option is referenced via a variable to avoid confusing sed. 8622 lt_compile=`echo "$ac_compile" | $SED \ 8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8625 -e 's:$: $lt_compiler_flag:'` 8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8627 (eval "$lt_compile" 2>conftest.err) 8628 ac_status=$? 8629 cat conftest.err >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8631 if (exit $ac_status) && test -s "$ac_outfile"; then 8632 # The compiler can only warn and ignore the option if not recognized 8633 # So say no if there are warnings other than the usual output. 8634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8637 lt_cv_prog_compiler_rtti_exceptions=yes 8638 fi 8639 fi 8640 $RM conftest* 8641 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8644$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8645 8646if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8647 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8648else 8649 : 8650fi 8651 8652fi 8653 8654 8655 8656 8657 8658 8659 lt_prog_compiler_wl= 8660lt_prog_compiler_pic= 8661lt_prog_compiler_static= 8662 8663 8664 if test yes = "$GCC"; then 8665 lt_prog_compiler_wl='-Wl,' 8666 lt_prog_compiler_static='-static' 8667 8668 case $host_os in 8669 aix*) 8670 # All AIX code is PIC. 8671 if test ia64 = "$host_cpu"; then 8672 # AIX 5 now supports IA64 processor 8673 lt_prog_compiler_static='-Bstatic' 8674 fi 8675 lt_prog_compiler_pic='-fPIC' 8676 ;; 8677 8678 amigaos*) 8679 case $host_cpu in 8680 powerpc) 8681 # see comment about AmigaOS4 .so support 8682 lt_prog_compiler_pic='-fPIC' 8683 ;; 8684 m68k) 8685 # FIXME: we need at least 68020 code to build shared libraries, but 8686 # adding the '-m68020' flag to GCC prevents building anything better, 8687 # like '-m68040'. 8688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8689 ;; 8690 esac 8691 ;; 8692 8693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8694 # PIC is the default for these OSes. 8695 ;; 8696 8697 mingw* | cygwin* | pw32* | os2* | cegcc*) 8698 # This hack is so that the source file can tell whether it is being 8699 # built for inclusion in a dll (and should export symbols for example). 8700 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8701 # (--disable-auto-import) libraries 8702 lt_prog_compiler_pic='-DDLL_EXPORT' 8703 case $host_os in 8704 os2*) 8705 lt_prog_compiler_static='$wl-static' 8706 ;; 8707 esac 8708 ;; 8709 8710 darwin* | rhapsody*) 8711 # PIC is the default on this platform 8712 # Common symbols not allowed in MH_DYLIB files 8713 lt_prog_compiler_pic='-fno-common' 8714 ;; 8715 8716 haiku*) 8717 # PIC is the default for Haiku. 8718 # The "-static" flag exists, but is broken. 8719 lt_prog_compiler_static= 8720 ;; 8721 8722 hpux*) 8723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8725 # sets the default TLS model and affects inlining. 8726 case $host_cpu in 8727 hppa*64*) 8728 # +Z the default 8729 ;; 8730 *) 8731 lt_prog_compiler_pic='-fPIC' 8732 ;; 8733 esac 8734 ;; 8735 8736 interix[3-9]*) 8737 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8738 # Instead, we relocate shared libraries at runtime. 8739 ;; 8740 8741 msdosdjgpp*) 8742 # Just because we use GCC doesn't mean we suddenly get shared libraries 8743 # on systems that don't support them. 8744 lt_prog_compiler_can_build_shared=no 8745 enable_shared=no 8746 ;; 8747 8748 *nto* | *qnx*) 8749 # QNX uses GNU C++, but need to define -shared option too, otherwise 8750 # it will coredump. 8751 lt_prog_compiler_pic='-fPIC -shared' 8752 ;; 8753 8754 sysv4*MP*) 8755 if test -d /usr/nec; then 8756 lt_prog_compiler_pic=-Kconform_pic 8757 fi 8758 ;; 8759 8760 *) 8761 lt_prog_compiler_pic='-fPIC' 8762 ;; 8763 esac 8764 8765 case $cc_basename in 8766 nvcc*) # Cuda Compiler Driver 2.2 8767 lt_prog_compiler_wl='-Xlinker ' 8768 if test -n "$lt_prog_compiler_pic"; then 8769 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8770 fi 8771 ;; 8772 esac 8773 else 8774 # PORTME Check for flag to pass linker flags through the system compiler. 8775 case $host_os in 8776 aix*) 8777 lt_prog_compiler_wl='-Wl,' 8778 if test ia64 = "$host_cpu"; then 8779 # AIX 5 now supports IA64 processor 8780 lt_prog_compiler_static='-Bstatic' 8781 else 8782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8783 fi 8784 ;; 8785 8786 darwin* | rhapsody*) 8787 # PIC is the default on this platform 8788 # Common symbols not allowed in MH_DYLIB files 8789 lt_prog_compiler_pic='-fno-common' 8790 case $cc_basename in 8791 nagfor*) 8792 # NAG Fortran compiler 8793 lt_prog_compiler_wl='-Wl,-Wl,,' 8794 lt_prog_compiler_pic='-PIC' 8795 lt_prog_compiler_static='-Bstatic' 8796 ;; 8797 esac 8798 ;; 8799 8800 mingw* | cygwin* | pw32* | os2* | cegcc*) 8801 # This hack is so that the source file can tell whether it is being 8802 # built for inclusion in a dll (and should export symbols for example). 8803 lt_prog_compiler_pic='-DDLL_EXPORT' 8804 case $host_os in 8805 os2*) 8806 lt_prog_compiler_static='$wl-static' 8807 ;; 8808 esac 8809 ;; 8810 8811 hpux9* | hpux10* | hpux11*) 8812 lt_prog_compiler_wl='-Wl,' 8813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8814 # not for PA HP-UX. 8815 case $host_cpu in 8816 hppa*64*|ia64*) 8817 # +Z the default 8818 ;; 8819 *) 8820 lt_prog_compiler_pic='+Z' 8821 ;; 8822 esac 8823 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8824 lt_prog_compiler_static='$wl-a ${wl}archive' 8825 ;; 8826 8827 irix5* | irix6* | nonstopux*) 8828 lt_prog_compiler_wl='-Wl,' 8829 # PIC (with -KPIC) is the default. 8830 lt_prog_compiler_static='-non_shared' 8831 ;; 8832 8833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8834 case $cc_basename in 8835 # old Intel for x86_64, which still supported -KPIC. 8836 ecc*) 8837 lt_prog_compiler_wl='-Wl,' 8838 lt_prog_compiler_pic='-KPIC' 8839 lt_prog_compiler_static='-static' 8840 ;; 8841 # icc used to be incompatible with GCC. 8842 # ICC 10 doesn't accept -KPIC any more. 8843 icc* | ifort*) 8844 lt_prog_compiler_wl='-Wl,' 8845 lt_prog_compiler_pic='-fPIC' 8846 lt_prog_compiler_static='-static' 8847 ;; 8848 # Lahey Fortran 8.1. 8849 lf95*) 8850 lt_prog_compiler_wl='-Wl,' 8851 lt_prog_compiler_pic='--shared' 8852 lt_prog_compiler_static='--static' 8853 ;; 8854 nagfor*) 8855 # NAG Fortran compiler 8856 lt_prog_compiler_wl='-Wl,-Wl,,' 8857 lt_prog_compiler_pic='-PIC' 8858 lt_prog_compiler_static='-Bstatic' 8859 ;; 8860 tcc*) 8861 # Fabrice Bellard et al's Tiny C Compiler 8862 lt_prog_compiler_wl='-Wl,' 8863 lt_prog_compiler_pic='-fPIC' 8864 lt_prog_compiler_static='-static' 8865 ;; 8866 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8867 # Portland Group compilers (*not* the Pentium gcc compiler, 8868 # which looks to be a dead project) 8869 lt_prog_compiler_wl='-Wl,' 8870 lt_prog_compiler_pic='-fpic' 8871 lt_prog_compiler_static='-Bstatic' 8872 ;; 8873 ccc*) 8874 lt_prog_compiler_wl='-Wl,' 8875 # All Alpha code is PIC. 8876 lt_prog_compiler_static='-non_shared' 8877 ;; 8878 xl* | bgxl* | bgf* | mpixl*) 8879 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8880 lt_prog_compiler_wl='-Wl,' 8881 lt_prog_compiler_pic='-qpic' 8882 lt_prog_compiler_static='-qstaticlink' 8883 ;; 8884 *) 8885 case `$CC -V 2>&1 | sed 5q` in 8886 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8887 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8888 lt_prog_compiler_pic='-KPIC' 8889 lt_prog_compiler_static='-Bstatic' 8890 lt_prog_compiler_wl='' 8891 ;; 8892 *Sun\ F* | *Sun*Fortran*) 8893 lt_prog_compiler_pic='-KPIC' 8894 lt_prog_compiler_static='-Bstatic' 8895 lt_prog_compiler_wl='-Qoption ld ' 8896 ;; 8897 *Sun\ C*) 8898 # Sun C 5.9 8899 lt_prog_compiler_pic='-KPIC' 8900 lt_prog_compiler_static='-Bstatic' 8901 lt_prog_compiler_wl='-Wl,' 8902 ;; 8903 *Intel*\ [CF]*Compiler*) 8904 lt_prog_compiler_wl='-Wl,' 8905 lt_prog_compiler_pic='-fPIC' 8906 lt_prog_compiler_static='-static' 8907 ;; 8908 *Portland\ Group*) 8909 lt_prog_compiler_wl='-Wl,' 8910 lt_prog_compiler_pic='-fpic' 8911 lt_prog_compiler_static='-Bstatic' 8912 ;; 8913 esac 8914 ;; 8915 esac 8916 ;; 8917 8918 newsos6) 8919 lt_prog_compiler_pic='-KPIC' 8920 lt_prog_compiler_static='-Bstatic' 8921 ;; 8922 8923 *nto* | *qnx*) 8924 # QNX uses GNU C++, but need to define -shared option too, otherwise 8925 # it will coredump. 8926 lt_prog_compiler_pic='-fPIC -shared' 8927 ;; 8928 8929 osf3* | osf4* | osf5*) 8930 lt_prog_compiler_wl='-Wl,' 8931 # All OSF/1 code is PIC. 8932 lt_prog_compiler_static='-non_shared' 8933 ;; 8934 8935 rdos*) 8936 lt_prog_compiler_static='-non_shared' 8937 ;; 8938 8939 solaris*) 8940 lt_prog_compiler_pic='-KPIC' 8941 lt_prog_compiler_static='-Bstatic' 8942 case $cc_basename in 8943 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8944 lt_prog_compiler_wl='-Qoption ld ';; 8945 *) 8946 lt_prog_compiler_wl='-Wl,';; 8947 esac 8948 ;; 8949 8950 sunos4*) 8951 lt_prog_compiler_wl='-Qoption ld ' 8952 lt_prog_compiler_pic='-PIC' 8953 lt_prog_compiler_static='-Bstatic' 8954 ;; 8955 8956 sysv4 | sysv4.2uw2* | sysv4.3*) 8957 lt_prog_compiler_wl='-Wl,' 8958 lt_prog_compiler_pic='-KPIC' 8959 lt_prog_compiler_static='-Bstatic' 8960 ;; 8961 8962 sysv4*MP*) 8963 if test -d /usr/nec; then 8964 lt_prog_compiler_pic='-Kconform_pic' 8965 lt_prog_compiler_static='-Bstatic' 8966 fi 8967 ;; 8968 8969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8970 lt_prog_compiler_wl='-Wl,' 8971 lt_prog_compiler_pic='-KPIC' 8972 lt_prog_compiler_static='-Bstatic' 8973 ;; 8974 8975 unicos*) 8976 lt_prog_compiler_wl='-Wl,' 8977 lt_prog_compiler_can_build_shared=no 8978 ;; 8979 8980 uts4*) 8981 lt_prog_compiler_pic='-pic' 8982 lt_prog_compiler_static='-Bstatic' 8983 ;; 8984 8985 *) 8986 lt_prog_compiler_can_build_shared=no 8987 ;; 8988 esac 8989 fi 8990 8991case $host_os in 8992 # For platforms that do not support PIC, -DPIC is meaningless: 8993 *djgpp*) 8994 lt_prog_compiler_pic= 8995 ;; 8996 *) 8997 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8998 ;; 8999esac 9000 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9002$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9003if ${lt_cv_prog_compiler_pic+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9009$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9010lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9011 9012# 9013# Check to make sure the PIC flag actually works. 9014# 9015if test -n "$lt_prog_compiler_pic"; then 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9018if ${lt_cv_prog_compiler_pic_works+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 lt_cv_prog_compiler_pic_works=no 9022 ac_outfile=conftest.$ac_objext 9023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9024 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9025 # Insert the option either (1) after the last *FLAGS variable, or 9026 # (2) before a word containing "conftest.", or (3) at the end. 9027 # Note that $ac_compile itself does not contain backslashes and begins 9028 # with a dollar sign (not a hyphen), so the echo should work correctly. 9029 # The option is referenced via a variable to avoid confusing sed. 9030 lt_compile=`echo "$ac_compile" | $SED \ 9031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9033 -e 's:$: $lt_compiler_flag:'` 9034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9035 (eval "$lt_compile" 2>conftest.err) 9036 ac_status=$? 9037 cat conftest.err >&5 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 if (exit $ac_status) && test -s "$ac_outfile"; then 9040 # The compiler can only warn and ignore the option if not recognized 9041 # So say no if there are warnings other than the usual output. 9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9045 lt_cv_prog_compiler_pic_works=yes 9046 fi 9047 fi 9048 $RM conftest* 9049 9050fi 9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9052$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9053 9054if test yes = "$lt_cv_prog_compiler_pic_works"; then 9055 case $lt_prog_compiler_pic in 9056 "" | " "*) ;; 9057 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9058 esac 9059else 9060 lt_prog_compiler_pic= 9061 lt_prog_compiler_can_build_shared=no 9062fi 9063 9064fi 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076# 9077# Check to make sure the static flag actually works. 9078# 9079wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9081$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9082if ${lt_cv_prog_compiler_static_works+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 lt_cv_prog_compiler_static_works=no 9086 save_LDFLAGS=$LDFLAGS 9087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9088 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9090 # The linker can only warn and ignore the option if not recognized 9091 # So say no if there are warnings 9092 if test -s conftest.err; then 9093 # Append any errors to the config.log. 9094 cat conftest.err 1>&5 9095 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9097 if diff conftest.exp conftest.er2 >/dev/null; then 9098 lt_cv_prog_compiler_static_works=yes 9099 fi 9100 else 9101 lt_cv_prog_compiler_static_works=yes 9102 fi 9103 fi 9104 $RM -r conftest* 9105 LDFLAGS=$save_LDFLAGS 9106 9107fi 9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9109$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9110 9111if test yes = "$lt_cv_prog_compiler_static_works"; then 9112 : 9113else 9114 lt_prog_compiler_static= 9115fi 9116 9117 9118 9119 9120 9121 9122 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9124$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9125if ${lt_cv_prog_compiler_c_o+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 lt_cv_prog_compiler_c_o=no 9129 $RM -r conftest 2>/dev/null 9130 mkdir conftest 9131 cd conftest 9132 mkdir out 9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9134 9135 lt_compiler_flag="-o out/conftest2.$ac_objext" 9136 # Insert the option either (1) after the last *FLAGS variable, or 9137 # (2) before a word containing "conftest.", or (3) at the end. 9138 # Note that $ac_compile itself does not contain backslashes and begins 9139 # with a dollar sign (not a hyphen), so the echo should work correctly. 9140 lt_compile=`echo "$ac_compile" | $SED \ 9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9143 -e 's:$: $lt_compiler_flag:'` 9144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9145 (eval "$lt_compile" 2>out/conftest.err) 9146 ac_status=$? 9147 cat out/conftest.err >&5 9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9149 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9150 then 9151 # The compiler can only warn and ignore the option if not recognized 9152 # So say no if there are warnings 9153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9156 lt_cv_prog_compiler_c_o=yes 9157 fi 9158 fi 9159 chmod u+w . 2>&5 9160 $RM conftest* 9161 # SGI C++ compiler will create directory out/ii_files/ for 9162 # template instantiation 9163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9164 $RM out/* && rmdir out 9165 cd .. 9166 $RM -r conftest 9167 $RM conftest* 9168 9169fi 9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9171$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9172 9173 9174 9175 9176 9177 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9179$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9180if ${lt_cv_prog_compiler_c_o+:} false; then : 9181 $as_echo_n "(cached) " >&6 9182else 9183 lt_cv_prog_compiler_c_o=no 9184 $RM -r conftest 2>/dev/null 9185 mkdir conftest 9186 cd conftest 9187 mkdir out 9188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9189 9190 lt_compiler_flag="-o out/conftest2.$ac_objext" 9191 # Insert the option either (1) after the last *FLAGS variable, or 9192 # (2) before a word containing "conftest.", or (3) at the end. 9193 # Note that $ac_compile itself does not contain backslashes and begins 9194 # with a dollar sign (not a hyphen), so the echo should work correctly. 9195 lt_compile=`echo "$ac_compile" | $SED \ 9196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9198 -e 's:$: $lt_compiler_flag:'` 9199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9200 (eval "$lt_compile" 2>out/conftest.err) 9201 ac_status=$? 9202 cat out/conftest.err >&5 9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9205 then 9206 # The compiler can only warn and ignore the option if not recognized 9207 # So say no if there are warnings 9208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9211 lt_cv_prog_compiler_c_o=yes 9212 fi 9213 fi 9214 chmod u+w . 2>&5 9215 $RM conftest* 9216 # SGI C++ compiler will create directory out/ii_files/ for 9217 # template instantiation 9218 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9219 $RM out/* && rmdir out 9220 cd .. 9221 $RM -r conftest 9222 $RM conftest* 9223 9224fi 9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9226$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9227 9228 9229 9230 9231hard_links=nottested 9232if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9233 # do not overwrite the value of need_locks provided by the user 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9235$as_echo_n "checking if we can lock with hard links... " >&6; } 9236 hard_links=yes 9237 $RM conftest* 9238 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9239 touch conftest.a 9240 ln conftest.a conftest.b 2>&5 || hard_links=no 9241 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9243$as_echo "$hard_links" >&6; } 9244 if test no = "$hard_links"; then 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9246$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9247 need_locks=warn 9248 fi 9249else 9250 need_locks=no 9251fi 9252 9253 9254 9255 9256 9257 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9259$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9260 9261 runpath_var= 9262 allow_undefined_flag= 9263 always_export_symbols=no 9264 archive_cmds= 9265 archive_expsym_cmds= 9266 compiler_needs_object=no 9267 enable_shared_with_static_runtimes=no 9268 export_dynamic_flag_spec= 9269 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9270 hardcode_automatic=no 9271 hardcode_direct=no 9272 hardcode_direct_absolute=no 9273 hardcode_libdir_flag_spec= 9274 hardcode_libdir_separator= 9275 hardcode_minus_L=no 9276 hardcode_shlibpath_var=unsupported 9277 inherit_rpath=no 9278 link_all_deplibs=unknown 9279 module_cmds= 9280 module_expsym_cmds= 9281 old_archive_from_new_cmds= 9282 old_archive_from_expsyms_cmds= 9283 thread_safe_flag_spec= 9284 whole_archive_flag_spec= 9285 # include_expsyms should be a list of space-separated symbols to be *always* 9286 # included in the symbol list 9287 include_expsyms= 9288 # exclude_expsyms can be an extended regexp of symbols to exclude 9289 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9290 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9291 # as well as any symbol that contains 'd'. 9292 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9293 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9294 # platforms (ab)use it in PIC code, but their linkers get confused if 9295 # the symbol is explicitly referenced. Since portable code cannot 9296 # rely on this symbol name, it's probably fine to never include it in 9297 # preloaded symbol tables. 9298 # Exclude shared library initialization/finalization symbols. 9299 extract_expsyms_cmds= 9300 9301 case $host_os in 9302 cygwin* | mingw* | pw32* | cegcc*) 9303 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9304 # When not using gcc, we currently assume that we are using 9305 # Microsoft Visual C++. 9306 if test yes != "$GCC"; then 9307 with_gnu_ld=no 9308 fi 9309 ;; 9310 interix*) 9311 # we just hope/assume this is gcc and not c89 (= MSVC++) 9312 with_gnu_ld=yes 9313 ;; 9314 openbsd* | bitrig*) 9315 with_gnu_ld=no 9316 ;; 9317 esac 9318 9319 ld_shlibs=yes 9320 9321 # On some targets, GNU ld is compatible enough with the native linker 9322 # that we're better off using the native interface for both. 9323 lt_use_gnu_ld_interface=no 9324 if test yes = "$with_gnu_ld"; then 9325 case $host_os in 9326 aix*) 9327 # The AIX port of GNU ld has always aspired to compatibility 9328 # with the native linker. However, as the warning in the GNU ld 9329 # block says, versions before 2.19.5* couldn't really create working 9330 # shared libraries, regardless of the interface used. 9331 case `$LD -v 2>&1` in 9332 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9333 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9334 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9335 *) 9336 lt_use_gnu_ld_interface=yes 9337 ;; 9338 esac 9339 ;; 9340 *) 9341 lt_use_gnu_ld_interface=yes 9342 ;; 9343 esac 9344 fi 9345 9346 if test yes = "$lt_use_gnu_ld_interface"; then 9347 # If archive_cmds runs LD, not CC, wlarc should be empty 9348 wlarc='$wl' 9349 9350 # Set some defaults for GNU ld with shared library support. These 9351 # are reset later if shared libraries are not supported. Putting them 9352 # here allows them to be overridden if necessary. 9353 runpath_var=LD_RUN_PATH 9354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9355 export_dynamic_flag_spec='$wl--export-dynamic' 9356 # ancient GNU ld didn't support --whole-archive et. al. 9357 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9358 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9359 else 9360 whole_archive_flag_spec= 9361 fi 9362 supports_anon_versioning=no 9363 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9364 *GNU\ gold*) supports_anon_versioning=yes ;; 9365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9368 *\ 2.11.*) ;; # other 2.11 versions 9369 *) supports_anon_versioning=yes ;; 9370 esac 9371 9372 # See if GNU ld supports shared libraries. 9373 case $host_os in 9374 aix[3-9]*) 9375 # On AIX/PPC, the GNU linker is very broken 9376 if test ia64 != "$host_cpu"; then 9377 ld_shlibs=no 9378 cat <<_LT_EOF 1>&2 9379 9380*** Warning: the GNU linker, at least up to release 2.19, is reported 9381*** to be unable to reliably create shared libraries on AIX. 9382*** Therefore, libtool is disabling shared libraries support. If you 9383*** really care for shared libraries, you may want to install binutils 9384*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9385*** You will then need to restart the configuration process. 9386 9387_LT_EOF 9388 fi 9389 ;; 9390 9391 amigaos*) 9392 case $host_cpu in 9393 powerpc) 9394 # see comment about AmigaOS4 .so support 9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9396 archive_expsym_cmds='' 9397 ;; 9398 m68k) 9399 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)' 9400 hardcode_libdir_flag_spec='-L$libdir' 9401 hardcode_minus_L=yes 9402 ;; 9403 esac 9404 ;; 9405 9406 beos*) 9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9408 allow_undefined_flag=unsupported 9409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9410 # support --undefined. This deserves some investigation. FIXME 9411 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9412 else 9413 ld_shlibs=no 9414 fi 9415 ;; 9416 9417 cygwin* | mingw* | pw32* | cegcc*) 9418 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9419 # as there is no search path for DLLs. 9420 hardcode_libdir_flag_spec='-L$libdir' 9421 export_dynamic_flag_spec='$wl--export-all-symbols' 9422 allow_undefined_flag=unsupported 9423 always_export_symbols=no 9424 enable_shared_with_static_runtimes=yes 9425 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' 9426 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9427 9428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9430 # If the export-symbols file already is a .def file, use it as 9431 # is; otherwise, prepend EXPORTS... 9432 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9433 cp $export_symbols $output_objdir/$soname.def; 9434 else 9435 echo EXPORTS > $output_objdir/$soname.def; 9436 cat $export_symbols >> $output_objdir/$soname.def; 9437 fi~ 9438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9439 else 9440 ld_shlibs=no 9441 fi 9442 ;; 9443 9444 haiku*) 9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9446 link_all_deplibs=yes 9447 ;; 9448 9449 os2*) 9450 hardcode_libdir_flag_spec='-L$libdir' 9451 hardcode_minus_L=yes 9452 allow_undefined_flag=unsupported 9453 shrext_cmds=.dll 9454 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9455 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9456 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9457 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9458 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9460 emximp -o $lib $output_objdir/$libname.def' 9461 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9462 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9463 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9464 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9465 prefix_cmds="$SED"~ 9466 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9467 prefix_cmds="$prefix_cmds -e 1d"; 9468 fi~ 9469 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9470 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9471 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9472 emximp -o $lib $output_objdir/$libname.def' 9473 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9474 enable_shared_with_static_runtimes=yes 9475 ;; 9476 9477 interix[3-9]*) 9478 hardcode_direct=no 9479 hardcode_shlibpath_var=no 9480 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9481 export_dynamic_flag_spec='$wl-E' 9482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9483 # Instead, shared libraries are loaded at an image base (0x10000000 by 9484 # default) and relocated if they conflict, which is a slow very memory 9485 # consuming and fragmenting process. To avoid this, we pick a random, 9486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9487 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9489 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' 9490 ;; 9491 9492 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9493 tmp_diet=no 9494 if test linux-dietlibc = "$host_os"; then 9495 case $cc_basename in 9496 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9497 esac 9498 fi 9499 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9500 && test no = "$tmp_diet" 9501 then 9502 tmp_addflag=' $pic_flag' 9503 tmp_sharedflag='-shared' 9504 case $cc_basename,$host_cpu in 9505 pgcc*) # Portland Group C compiler 9506 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' 9507 tmp_addflag=' $pic_flag' 9508 ;; 9509 pgf77* | pgf90* | pgf95* | pgfortran*) 9510 # Portland Group f77 and f90 compilers 9511 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' 9512 tmp_addflag=' $pic_flag -Mnomain' ;; 9513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9514 tmp_addflag=' -i_dynamic' ;; 9515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9516 tmp_addflag=' -i_dynamic -nofor_main' ;; 9517 ifc* | ifort*) # Intel Fortran compiler 9518 tmp_addflag=' -nofor_main' ;; 9519 lf95*) # Lahey Fortran 8.1 9520 whole_archive_flag_spec= 9521 tmp_sharedflag='--shared' ;; 9522 nagfor*) # NAGFOR 5.3 9523 tmp_sharedflag='-Wl,-shared' ;; 9524 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9525 tmp_sharedflag='-qmkshrobj' 9526 tmp_addflag= ;; 9527 nvcc*) # Cuda Compiler Driver 2.2 9528 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' 9529 compiler_needs_object=yes 9530 ;; 9531 esac 9532 case `$CC -V 2>&1 | sed 5q` in 9533 *Sun\ C*) # Sun C 5.9 9534 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' 9535 compiler_needs_object=yes 9536 tmp_sharedflag='-G' ;; 9537 *Sun\ F*) # Sun Fortran 8.3 9538 tmp_sharedflag='-G' ;; 9539 esac 9540 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9541 9542 if test yes = "$supports_anon_versioning"; then 9543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9545 echo "local: *; };" >> $output_objdir/$libname.ver~ 9546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9547 fi 9548 9549 case $cc_basename in 9550 tcc*) 9551 export_dynamic_flag_spec='-rdynamic' 9552 ;; 9553 xlf* | bgf* | bgxlf* | mpixlf*) 9554 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9555 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9556 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9557 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9558 if test yes = "$supports_anon_versioning"; then 9559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9561 echo "local: *; };" >> $output_objdir/$libname.ver~ 9562 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9563 fi 9564 ;; 9565 esac 9566 else 9567 ld_shlibs=no 9568 fi 9569 ;; 9570 9571 netbsd*) 9572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9574 wlarc= 9575 else 9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9578 fi 9579 ;; 9580 9581 solaris*) 9582 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9583 ld_shlibs=no 9584 cat <<_LT_EOF 1>&2 9585 9586*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9587*** create shared libraries on Solaris systems. Therefore, libtool 9588*** is disabling shared libraries support. We urge you to upgrade GNU 9589*** binutils to release 2.9.1 or newer. Another option is to modify 9590*** your PATH or compiler configuration so that the native linker is 9591*** used, and then restart. 9592 9593_LT_EOF 9594 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9597 else 9598 ld_shlibs=no 9599 fi 9600 ;; 9601 9602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9603 case `$LD -v 2>&1` in 9604 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9605 ld_shlibs=no 9606 cat <<_LT_EOF 1>&2 9607 9608*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9609*** reliably create shared libraries on SCO systems. Therefore, libtool 9610*** is disabling shared libraries support. We urge you to upgrade GNU 9611*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9612*** your PATH or compiler configuration so that the native linker is 9613*** used, and then restart. 9614 9615_LT_EOF 9616 ;; 9617 *) 9618 # For security reasons, it is highly recommended that you always 9619 # use absolute paths for naming shared libraries, and exclude the 9620 # DT_RUNPATH tag from executables and libraries. But doing so 9621 # requires that you compile everything twice, which is a pain. 9622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9626 else 9627 ld_shlibs=no 9628 fi 9629 ;; 9630 esac 9631 ;; 9632 9633 sunos4*) 9634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9635 wlarc= 9636 hardcode_direct=yes 9637 hardcode_shlibpath_var=no 9638 ;; 9639 9640 *) 9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9643 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9644 else 9645 ld_shlibs=no 9646 fi 9647 ;; 9648 esac 9649 9650 if test no = "$ld_shlibs"; then 9651 runpath_var= 9652 hardcode_libdir_flag_spec= 9653 export_dynamic_flag_spec= 9654 whole_archive_flag_spec= 9655 fi 9656 else 9657 # PORTME fill in a description of your system's linker (not GNU ld) 9658 case $host_os in 9659 aix3*) 9660 allow_undefined_flag=unsupported 9661 always_export_symbols=yes 9662 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' 9663 # Note: this linker hardcodes the directories in LIBPATH if there 9664 # are no directories specified by -L. 9665 hardcode_minus_L=yes 9666 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9667 # Neither direct hardcoding nor static linking is supported with a 9668 # broken collect2. 9669 hardcode_direct=unsupported 9670 fi 9671 ;; 9672 9673 aix[4-9]*) 9674 if test ia64 = "$host_cpu"; then 9675 # On IA64, the linker does run time linking by default, so we don't 9676 # have to do anything special. 9677 aix_use_runtimelinking=no 9678 exp_sym_flag='-Bexport' 9679 no_entry_flag= 9680 else 9681 # If we're using GNU nm, then we don't want the "-C" option. 9682 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9683 # Without the "-l" option, or with the "-B" option, AIX nm treats 9684 # weak defined symbols like other global defined symbols, whereas 9685 # GNU nm marks them as "W". 9686 # While the 'weak' keyword is ignored in the Export File, we need 9687 # it in the Import File for the 'aix-soname' feature, so we have 9688 # to replace the "-B" option with "-P" for AIX nm. 9689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9690 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9691 else 9692 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9693 fi 9694 aix_use_runtimelinking=no 9695 9696 # Test if we are trying to use run time linking or normal 9697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9698 # have runtime linking enabled, and use it for executables. 9699 # For shared libraries, we enable/disable runtime linking 9700 # depending on the kind of the shared library created - 9701 # when "with_aix_soname,aix_use_runtimelinking" is: 9702 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9703 # "aix,yes" lib.so shared, rtl:yes, for executables 9704 # lib.a static archive 9705 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9706 # lib.a(lib.so.V) shared, rtl:no, for executables 9707 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9708 # lib.a(lib.so.V) shared, rtl:no 9709 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9710 # lib.a static archive 9711 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9712 for ld_flag in $LDFLAGS; do 9713 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9714 aix_use_runtimelinking=yes 9715 break 9716 fi 9717 done 9718 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9719 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9720 # so we don't have lib.a shared libs to link our executables. 9721 # We have to force runtime linking in this case. 9722 aix_use_runtimelinking=yes 9723 LDFLAGS="$LDFLAGS -Wl,-brtl" 9724 fi 9725 ;; 9726 esac 9727 9728 exp_sym_flag='-bexport' 9729 no_entry_flag='-bnoentry' 9730 fi 9731 9732 # When large executables or shared objects are built, AIX ld can 9733 # have problems creating the table of contents. If linking a library 9734 # or program results in "error TOC overflow" add -mminimal-toc to 9735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9737 9738 archive_cmds='' 9739 hardcode_direct=yes 9740 hardcode_direct_absolute=yes 9741 hardcode_libdir_separator=':' 9742 link_all_deplibs=yes 9743 file_list_spec='$wl-f,' 9744 case $with_aix_soname,$aix_use_runtimelinking in 9745 aix,*) ;; # traditional, no import file 9746 svr4,* | *,yes) # use import file 9747 # The Import File defines what to hardcode. 9748 hardcode_direct=no 9749 hardcode_direct_absolute=no 9750 ;; 9751 esac 9752 9753 if test yes = "$GCC"; then 9754 case $host_os in aix4.[012]|aix4.[012].*) 9755 # We only want to do this on AIX 4.2 and lower, the check 9756 # below for broken collect2 doesn't work under 4.3+ 9757 collect2name=`$CC -print-prog-name=collect2` 9758 if test -f "$collect2name" && 9759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9760 then 9761 # We have reworked collect2 9762 : 9763 else 9764 # We have old collect2 9765 hardcode_direct=unsupported 9766 # It fails to find uninstalled libraries when the uninstalled 9767 # path is not listed in the libpath. Setting hardcode_minus_L 9768 # to unsupported forces relinking 9769 hardcode_minus_L=yes 9770 hardcode_libdir_flag_spec='-L$libdir' 9771 hardcode_libdir_separator= 9772 fi 9773 ;; 9774 esac 9775 shared_flag='-shared' 9776 if test yes = "$aix_use_runtimelinking"; then 9777 shared_flag="$shared_flag "'$wl-G' 9778 fi 9779 # Need to ensure runtime linking is disabled for the traditional 9780 # shared library, or the linker may eventually find shared libraries 9781 # /with/ Import File - we do not want to mix them. 9782 shared_flag_aix='-shared' 9783 shared_flag_svr4='-shared $wl-G' 9784 else 9785 # not using gcc 9786 if test ia64 = "$host_cpu"; then 9787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9788 # chokes on -Wl,-G. The following line is correct: 9789 shared_flag='-G' 9790 else 9791 if test yes = "$aix_use_runtimelinking"; then 9792 shared_flag='$wl-G' 9793 else 9794 shared_flag='$wl-bM:SRE' 9795 fi 9796 shared_flag_aix='$wl-bM:SRE' 9797 shared_flag_svr4='$wl-G' 9798 fi 9799 fi 9800 9801 export_dynamic_flag_spec='$wl-bexpall' 9802 # It seems that -bexpall does not export symbols beginning with 9803 # underscore (_), so it is better to generate a list of symbols to export. 9804 always_export_symbols=yes 9805 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9806 # Warning - without using the other runtime loading flags (-brtl), 9807 # -berok will link without error, but may produce a broken library. 9808 allow_undefined_flag='-berok' 9809 # Determine the default libpath from the value encoded in an 9810 # empty executable. 9811 if test set = "${lt_cv_aix_libpath+set}"; then 9812 aix_libpath=$lt_cv_aix_libpath 9813else 9814 if ${lt_cv_aix_libpath_+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818/* end confdefs.h. */ 9819 9820int 9821main () 9822{ 9823 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828if ac_fn_c_try_link "$LINENO"; then : 9829 9830 lt_aix_libpath_sed=' 9831 /Import File Strings/,/^$/ { 9832 /^0/ { 9833 s/^0 *\([^ ]*\) *$/\1/ 9834 p 9835 } 9836 }' 9837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9838 # Check for a 64-bit object if we didn't find anything. 9839 if test -z "$lt_cv_aix_libpath_"; then 9840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9841 fi 9842fi 9843rm -f core conftest.err conftest.$ac_objext \ 9844 conftest$ac_exeext conftest.$ac_ext 9845 if test -z "$lt_cv_aix_libpath_"; then 9846 lt_cv_aix_libpath_=/usr/lib:/lib 9847 fi 9848 9849fi 9850 9851 aix_libpath=$lt_cv_aix_libpath_ 9852fi 9853 9854 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9855 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9856 else 9857 if test ia64 = "$host_cpu"; then 9858 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9859 allow_undefined_flag="-z nodefs" 9860 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" 9861 else 9862 # Determine the default libpath from the value encoded in an 9863 # empty executable. 9864 if test set = "${lt_cv_aix_libpath+set}"; then 9865 aix_libpath=$lt_cv_aix_libpath 9866else 9867 if ${lt_cv_aix_libpath_+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872 9873int 9874main () 9875{ 9876 9877 ; 9878 return 0; 9879} 9880_ACEOF 9881if ac_fn_c_try_link "$LINENO"; then : 9882 9883 lt_aix_libpath_sed=' 9884 /Import File Strings/,/^$/ { 9885 /^0/ { 9886 s/^0 *\([^ ]*\) *$/\1/ 9887 p 9888 } 9889 }' 9890 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9891 # Check for a 64-bit object if we didn't find anything. 9892 if test -z "$lt_cv_aix_libpath_"; then 9893 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9894 fi 9895fi 9896rm -f core conftest.err conftest.$ac_objext \ 9897 conftest$ac_exeext conftest.$ac_ext 9898 if test -z "$lt_cv_aix_libpath_"; then 9899 lt_cv_aix_libpath_=/usr/lib:/lib 9900 fi 9901 9902fi 9903 9904 aix_libpath=$lt_cv_aix_libpath_ 9905fi 9906 9907 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9908 # Warning - without using the other run time loading flags, 9909 # -berok will link without error, but may produce a broken library. 9910 no_undefined_flag=' $wl-bernotok' 9911 allow_undefined_flag=' $wl-berok' 9912 if test yes = "$with_gnu_ld"; then 9913 # We only use this code for GNU lds that support --whole-archive. 9914 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9915 else 9916 # Exported symbols can be pulled into shared objects from archives 9917 whole_archive_flag_spec='$convenience' 9918 fi 9919 archive_cmds_need_lc=yes 9920 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9921 # -brtl affects multiple linker settings, -berok does not and is overridden later 9922 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9923 if test svr4 != "$with_aix_soname"; then 9924 # This is similar to how AIX traditionally builds its shared libraries. 9925 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9926 fi 9927 if test aix != "$with_aix_soname"; then 9928 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9929 else 9930 # used by -dlpreopen to get the symbols 9931 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9932 fi 9933 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9934 fi 9935 fi 9936 ;; 9937 9938 amigaos*) 9939 case $host_cpu in 9940 powerpc) 9941 # see comment about AmigaOS4 .so support 9942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9943 archive_expsym_cmds='' 9944 ;; 9945 m68k) 9946 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)' 9947 hardcode_libdir_flag_spec='-L$libdir' 9948 hardcode_minus_L=yes 9949 ;; 9950 esac 9951 ;; 9952 9953 bsdi[45]*) 9954 export_dynamic_flag_spec=-rdynamic 9955 ;; 9956 9957 cygwin* | mingw* | pw32* | cegcc*) 9958 # When not using gcc, we currently assume that we are using 9959 # Microsoft Visual C++. 9960 # hardcode_libdir_flag_spec is actually meaningless, as there is 9961 # no search path for DLLs. 9962 case $cc_basename in 9963 cl*) 9964 # Native MSVC 9965 hardcode_libdir_flag_spec=' ' 9966 allow_undefined_flag=unsupported 9967 always_export_symbols=yes 9968 file_list_spec='@' 9969 # Tell ltmain to make .lib files, not .a files. 9970 libext=lib 9971 # Tell ltmain to make .dll files, not .so files. 9972 shrext_cmds=.dll 9973 # FIXME: Setting linknames here is a bad hack. 9974 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9975 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9976 cp "$export_symbols" "$output_objdir/$soname.def"; 9977 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9978 else 9979 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9980 fi~ 9981 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9982 linknames=' 9983 # The linker will not automatically build a static lib if we build a DLL. 9984 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9985 enable_shared_with_static_runtimes=yes 9986 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9988 # Don't use ranlib 9989 old_postinstall_cmds='chmod 644 $oldlib' 9990 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9991 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9992 case $lt_outputfile in 9993 *.exe|*.EXE) ;; 9994 *) 9995 lt_outputfile=$lt_outputfile.exe 9996 lt_tool_outputfile=$lt_tool_outputfile.exe 9997 ;; 9998 esac~ 9999 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10000 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10001 $RM "$lt_outputfile.manifest"; 10002 fi' 10003 ;; 10004 *) 10005 # Assume MSVC wrapper 10006 hardcode_libdir_flag_spec=' ' 10007 allow_undefined_flag=unsupported 10008 # Tell ltmain to make .lib files, not .a files. 10009 libext=lib 10010 # Tell ltmain to make .dll files, not .so files. 10011 shrext_cmds=.dll 10012 # FIXME: Setting linknames here is a bad hack. 10013 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10014 # The linker will automatically build a .lib file if we build a DLL. 10015 old_archive_from_new_cmds='true' 10016 # FIXME: Should let the user specify the lib program. 10017 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10018 enable_shared_with_static_runtimes=yes 10019 ;; 10020 esac 10021 ;; 10022 10023 darwin* | rhapsody*) 10024 10025 10026 archive_cmds_need_lc=no 10027 hardcode_direct=no 10028 hardcode_automatic=yes 10029 hardcode_shlibpath_var=unsupported 10030 if test yes = "$lt_cv_ld_force_load"; then 10031 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\"`' 10032 10033 else 10034 whole_archive_flag_spec='' 10035 fi 10036 link_all_deplibs=yes 10037 allow_undefined_flag=$_lt_dar_allow_undefined 10038 case $cc_basename in 10039 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10040 *) _lt_dar_can_shared=$GCC ;; 10041 esac 10042 if test yes = "$_lt_dar_can_shared"; then 10043 output_verbose_link_cmd=func_echo_all 10044 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10045 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10046 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" 10047 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" 10048 10049 else 10050 ld_shlibs=no 10051 fi 10052 10053 ;; 10054 10055 dgux*) 10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10057 hardcode_libdir_flag_spec='-L$libdir' 10058 hardcode_shlibpath_var=no 10059 ;; 10060 10061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10062 # support. Future versions do this automatically, but an explicit c++rt0.o 10063 # does not break anything, and helps significantly (at the cost of a little 10064 # extra space). 10065 freebsd2.2*) 10066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10067 hardcode_libdir_flag_spec='-R$libdir' 10068 hardcode_direct=yes 10069 hardcode_shlibpath_var=no 10070 ;; 10071 10072 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10073 freebsd2.*) 10074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10075 hardcode_direct=yes 10076 hardcode_minus_L=yes 10077 hardcode_shlibpath_var=no 10078 ;; 10079 10080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10081 freebsd* | dragonfly*) 10082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10083 hardcode_libdir_flag_spec='-R$libdir' 10084 hardcode_direct=yes 10085 hardcode_shlibpath_var=no 10086 ;; 10087 10088 hpux9*) 10089 if test yes = "$GCC"; then 10090 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10091 else 10092 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10093 fi 10094 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10095 hardcode_libdir_separator=: 10096 hardcode_direct=yes 10097 10098 # hardcode_minus_L: Not really in the search PATH, 10099 # but as the default location of the library. 10100 hardcode_minus_L=yes 10101 export_dynamic_flag_spec='$wl-E' 10102 ;; 10103 10104 hpux10*) 10105 if test yes,no = "$GCC,$with_gnu_ld"; then 10106 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10107 else 10108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10109 fi 10110 if test no = "$with_gnu_ld"; then 10111 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10112 hardcode_libdir_separator=: 10113 hardcode_direct=yes 10114 hardcode_direct_absolute=yes 10115 export_dynamic_flag_spec='$wl-E' 10116 # hardcode_minus_L: Not really in the search PATH, 10117 # but as the default location of the library. 10118 hardcode_minus_L=yes 10119 fi 10120 ;; 10121 10122 hpux11*) 10123 if test yes,no = "$GCC,$with_gnu_ld"; then 10124 case $host_cpu in 10125 hppa*64*) 10126 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10127 ;; 10128 ia64*) 10129 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10130 ;; 10131 *) 10132 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10133 ;; 10134 esac 10135 else 10136 case $host_cpu in 10137 hppa*64*) 10138 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10139 ;; 10140 ia64*) 10141 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10142 ;; 10143 *) 10144 10145 # Older versions of the 11.00 compiler do not understand -b yet 10146 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10148$as_echo_n "checking if $CC understands -b... " >&6; } 10149if ${lt_cv_prog_compiler__b+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 lt_cv_prog_compiler__b=no 10153 save_LDFLAGS=$LDFLAGS 10154 LDFLAGS="$LDFLAGS -b" 10155 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10157 # The linker can only warn and ignore the option if not recognized 10158 # So say no if there are warnings 10159 if test -s conftest.err; then 10160 # Append any errors to the config.log. 10161 cat conftest.err 1>&5 10162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10164 if diff conftest.exp conftest.er2 >/dev/null; then 10165 lt_cv_prog_compiler__b=yes 10166 fi 10167 else 10168 lt_cv_prog_compiler__b=yes 10169 fi 10170 fi 10171 $RM -r conftest* 10172 LDFLAGS=$save_LDFLAGS 10173 10174fi 10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10176$as_echo "$lt_cv_prog_compiler__b" >&6; } 10177 10178if test yes = "$lt_cv_prog_compiler__b"; then 10179 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10180else 10181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10182fi 10183 10184 ;; 10185 esac 10186 fi 10187 if test no = "$with_gnu_ld"; then 10188 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10189 hardcode_libdir_separator=: 10190 10191 case $host_cpu in 10192 hppa*64*|ia64*) 10193 hardcode_direct=no 10194 hardcode_shlibpath_var=no 10195 ;; 10196 *) 10197 hardcode_direct=yes 10198 hardcode_direct_absolute=yes 10199 export_dynamic_flag_spec='$wl-E' 10200 10201 # hardcode_minus_L: Not really in the search PATH, 10202 # but as the default location of the library. 10203 hardcode_minus_L=yes 10204 ;; 10205 esac 10206 fi 10207 ;; 10208 10209 irix5* | irix6* | nonstopux*) 10210 if test yes = "$GCC"; then 10211 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' 10212 # Try to use the -exported_symbol ld option, if it does not 10213 # work, assume that -exports_file does not work either and 10214 # implicitly export all symbols. 10215 # This should be the same for all languages, so no per-tag cache variable. 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10217$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10218if ${lt_cv_irix_exported_symbol+:} false; then : 10219 $as_echo_n "(cached) " >&6 10220else 10221 save_LDFLAGS=$LDFLAGS 10222 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int foo (void) { return 0; } 10226_ACEOF 10227if ac_fn_c_try_link "$LINENO"; then : 10228 lt_cv_irix_exported_symbol=yes 10229else 10230 lt_cv_irix_exported_symbol=no 10231fi 10232rm -f core conftest.err conftest.$ac_objext \ 10233 conftest$ac_exeext conftest.$ac_ext 10234 LDFLAGS=$save_LDFLAGS 10235fi 10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10237$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10238 if test yes = "$lt_cv_irix_exported_symbol"; then 10239 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' 10240 fi 10241 else 10242 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' 10243 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' 10244 fi 10245 archive_cmds_need_lc='no' 10246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10247 hardcode_libdir_separator=: 10248 inherit_rpath=yes 10249 link_all_deplibs=yes 10250 ;; 10251 10252 linux*) 10253 case $cc_basename in 10254 tcc*) 10255 # Fabrice Bellard et al's Tiny C Compiler 10256 ld_shlibs=yes 10257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10258 ;; 10259 esac 10260 ;; 10261 10262 netbsd*) 10263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10265 else 10266 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10267 fi 10268 hardcode_libdir_flag_spec='-R$libdir' 10269 hardcode_direct=yes 10270 hardcode_shlibpath_var=no 10271 ;; 10272 10273 newsos6) 10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10275 hardcode_direct=yes 10276 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10277 hardcode_libdir_separator=: 10278 hardcode_shlibpath_var=no 10279 ;; 10280 10281 *nto* | *qnx*) 10282 ;; 10283 10284 openbsd* | bitrig*) 10285 if test -f /usr/libexec/ld.so; then 10286 hardcode_direct=yes 10287 hardcode_shlibpath_var=no 10288 hardcode_direct_absolute=yes 10289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10291 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10292 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10293 export_dynamic_flag_spec='$wl-E' 10294 else 10295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10296 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10297 fi 10298 else 10299 ld_shlibs=no 10300 fi 10301 ;; 10302 10303 os2*) 10304 hardcode_libdir_flag_spec='-L$libdir' 10305 hardcode_minus_L=yes 10306 allow_undefined_flag=unsupported 10307 shrext_cmds=.dll 10308 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10309 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10310 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10311 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10312 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10313 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10314 emximp -o $lib $output_objdir/$libname.def' 10315 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10316 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10317 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10318 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10319 prefix_cmds="$SED"~ 10320 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10321 prefix_cmds="$prefix_cmds -e 1d"; 10322 fi~ 10323 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10324 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10325 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10326 emximp -o $lib $output_objdir/$libname.def' 10327 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10328 enable_shared_with_static_runtimes=yes 10329 ;; 10330 10331 osf3*) 10332 if test yes = "$GCC"; then 10333 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10334 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' 10335 else 10336 allow_undefined_flag=' -expect_unresolved \*' 10337 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' 10338 fi 10339 archive_cmds_need_lc='no' 10340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10341 hardcode_libdir_separator=: 10342 ;; 10343 10344 osf4* | osf5*) # as osf3* with the addition of -msym flag 10345 if test yes = "$GCC"; then 10346 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10347 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' 10348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10349 else 10350 allow_undefined_flag=' -expect_unresolved \*' 10351 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' 10352 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~ 10353 $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' 10354 10355 # Both c and cxx compiler support -rpath directly 10356 hardcode_libdir_flag_spec='-rpath $libdir' 10357 fi 10358 archive_cmds_need_lc='no' 10359 hardcode_libdir_separator=: 10360 ;; 10361 10362 solaris*) 10363 no_undefined_flag=' -z defs' 10364 if test yes = "$GCC"; then 10365 wlarc='$wl' 10366 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10368 $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' 10369 else 10370 case `$CC -V 2>&1` in 10371 *"Compilers 5.0"*) 10372 wlarc='' 10373 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10375 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10376 ;; 10377 *) 10378 wlarc='$wl' 10379 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10381 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10382 ;; 10383 esac 10384 fi 10385 hardcode_libdir_flag_spec='-R$libdir' 10386 hardcode_shlibpath_var=no 10387 case $host_os in 10388 solaris2.[0-5] | solaris2.[0-5].*) ;; 10389 *) 10390 # The compiler driver will combine and reorder linker options, 10391 # but understands '-z linker_flag'. GCC discards it without '$wl', 10392 # but is careful enough not to reorder. 10393 # Supported since Solaris 2.6 (maybe 2.5.1?) 10394 if test yes = "$GCC"; then 10395 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10396 else 10397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10398 fi 10399 ;; 10400 esac 10401 link_all_deplibs=yes 10402 ;; 10403 10404 sunos4*) 10405 if test sequent = "$host_vendor"; then 10406 # Use $CC to link under sequent, because it throws in some extra .o 10407 # files that make .init and .fini sections work. 10408 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10409 else 10410 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10411 fi 10412 hardcode_libdir_flag_spec='-L$libdir' 10413 hardcode_direct=yes 10414 hardcode_minus_L=yes 10415 hardcode_shlibpath_var=no 10416 ;; 10417 10418 sysv4) 10419 case $host_vendor in 10420 sni) 10421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10422 hardcode_direct=yes # is this really true??? 10423 ;; 10424 siemens) 10425 ## LD is ld it makes a PLAMLIB 10426 ## CC just makes a GrossModule. 10427 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10428 reload_cmds='$CC -r -o $output$reload_objs' 10429 hardcode_direct=no 10430 ;; 10431 motorola) 10432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10433 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10434 ;; 10435 esac 10436 runpath_var='LD_RUN_PATH' 10437 hardcode_shlibpath_var=no 10438 ;; 10439 10440 sysv4.3*) 10441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10442 hardcode_shlibpath_var=no 10443 export_dynamic_flag_spec='-Bexport' 10444 ;; 10445 10446 sysv4*MP*) 10447 if test -d /usr/nec; then 10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10449 hardcode_shlibpath_var=no 10450 runpath_var=LD_RUN_PATH 10451 hardcode_runpath_var=yes 10452 ld_shlibs=yes 10453 fi 10454 ;; 10455 10456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10457 no_undefined_flag='$wl-z,text' 10458 archive_cmds_need_lc=no 10459 hardcode_shlibpath_var=no 10460 runpath_var='LD_RUN_PATH' 10461 10462 if test yes = "$GCC"; then 10463 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10464 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10465 else 10466 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10467 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10468 fi 10469 ;; 10470 10471 sysv5* | sco3.2v5* | sco5v6*) 10472 # Note: We CANNOT use -z defs as we might desire, because we do not 10473 # link with -lc, and that would cause any symbols used from libc to 10474 # always be unresolved, which means just about no library would 10475 # ever link correctly. If we're not using GNU ld we use -z text 10476 # though, which does catch some bad symbols but isn't as heavy-handed 10477 # as -z defs. 10478 no_undefined_flag='$wl-z,text' 10479 allow_undefined_flag='$wl-z,nodefs' 10480 archive_cmds_need_lc=no 10481 hardcode_shlibpath_var=no 10482 hardcode_libdir_flag_spec='$wl-R,$libdir' 10483 hardcode_libdir_separator=':' 10484 link_all_deplibs=yes 10485 export_dynamic_flag_spec='$wl-Bexport' 10486 runpath_var='LD_RUN_PATH' 10487 10488 if test yes = "$GCC"; then 10489 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10490 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10491 else 10492 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10493 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10494 fi 10495 ;; 10496 10497 uts4*) 10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10499 hardcode_libdir_flag_spec='-L$libdir' 10500 hardcode_shlibpath_var=no 10501 ;; 10502 10503 *) 10504 ld_shlibs=no 10505 ;; 10506 esac 10507 10508 if test sni = "$host_vendor"; then 10509 case $host in 10510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10511 export_dynamic_flag_spec='$wl-Blargedynsym' 10512 ;; 10513 esac 10514 fi 10515 fi 10516 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10518$as_echo "$ld_shlibs" >&6; } 10519test no = "$ld_shlibs" && can_build_shared=no 10520 10521with_gnu_ld=$with_gnu_ld 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537# 10538# Do we need to explicitly link libc? 10539# 10540case "x$archive_cmds_need_lc" in 10541x|xyes) 10542 # Assume -lc should be added 10543 archive_cmds_need_lc=yes 10544 10545 if test yes,yes = "$GCC,$enable_shared"; then 10546 case $archive_cmds in 10547 *'~'*) 10548 # FIXME: we may have to deal with multi-command sequences. 10549 ;; 10550 '$CC '*) 10551 # Test whether the compiler implicitly links with -lc since on some 10552 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10553 # to ld, don't add -lc before -lgcc. 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10555$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10556if ${lt_cv_archive_cmds_need_lc+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 $RM conftest* 10560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10561 10562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10563 (eval $ac_compile) 2>&5 10564 ac_status=$? 10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10566 test $ac_status = 0; } 2>conftest.err; then 10567 soname=conftest 10568 lib=conftest 10569 libobjs=conftest.$ac_objext 10570 deplibs= 10571 wl=$lt_prog_compiler_wl 10572 pic_flag=$lt_prog_compiler_pic 10573 compiler_flags=-v 10574 linker_flags=-v 10575 verstring= 10576 output_objdir=. 10577 libname=conftest 10578 lt_save_allow_undefined_flag=$allow_undefined_flag 10579 allow_undefined_flag= 10580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10582 ac_status=$? 10583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10584 test $ac_status = 0; } 10585 then 10586 lt_cv_archive_cmds_need_lc=no 10587 else 10588 lt_cv_archive_cmds_need_lc=yes 10589 fi 10590 allow_undefined_flag=$lt_save_allow_undefined_flag 10591 else 10592 cat conftest.err 1>&5 10593 fi 10594 $RM conftest* 10595 10596fi 10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10598$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10599 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10600 ;; 10601 esac 10602 fi 10603 ;; 10604esac 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10758$as_echo_n "checking dynamic linker characteristics... " >&6; } 10759 10760if test yes = "$GCC"; then 10761 case $host_os in 10762 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10763 *) lt_awk_arg='/^libraries:/' ;; 10764 esac 10765 case $host_os in 10766 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10767 *) lt_sed_strip_eq='s|=/|/|g' ;; 10768 esac 10769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10770 case $lt_search_path_spec in 10771 *\;*) 10772 # if the path contains ";" then we assume it to be the separator 10773 # otherwise default to the standard path separator (i.e. ":") - it is 10774 # assumed that no part of a normal pathname contains ";" but that should 10775 # okay in the real world where ";" in dirpaths is itself problematic. 10776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10777 ;; 10778 *) 10779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10780 ;; 10781 esac 10782 # Ok, now we have the path, separated by spaces, we can step through it 10783 # and add multilib dir if necessary... 10784 lt_tmp_lt_search_path_spec= 10785 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10786 # ...but if some path component already ends with the multilib dir we assume 10787 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10788 case "$lt_multi_os_dir; $lt_search_path_spec " in 10789 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10790 lt_multi_os_dir= 10791 ;; 10792 esac 10793 for lt_sys_path in $lt_search_path_spec; do 10794 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10796 elif test -n "$lt_multi_os_dir"; then 10797 test -d "$lt_sys_path" && \ 10798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10799 fi 10800 done 10801 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10802BEGIN {RS = " "; FS = "/|\n";} { 10803 lt_foo = ""; 10804 lt_count = 0; 10805 for (lt_i = NF; lt_i > 0; lt_i--) { 10806 if ($lt_i != "" && $lt_i != ".") { 10807 if ($lt_i == "..") { 10808 lt_count++; 10809 } else { 10810 if (lt_count == 0) { 10811 lt_foo = "/" $lt_i lt_foo; 10812 } else { 10813 lt_count--; 10814 } 10815 } 10816 } 10817 } 10818 if (lt_foo != "") { lt_freq[lt_foo]++; } 10819 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10820}'` 10821 # AWK program above erroneously prepends '/' to C:/dos/paths 10822 # for these hosts. 10823 case $host_os in 10824 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10825 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10826 esac 10827 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10828else 10829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10830fi 10831library_names_spec= 10832libname_spec='lib$name' 10833soname_spec= 10834shrext_cmds=.so 10835postinstall_cmds= 10836postuninstall_cmds= 10837finish_cmds= 10838finish_eval= 10839shlibpath_var= 10840shlibpath_overrides_runpath=unknown 10841version_type=none 10842dynamic_linker="$host_os ld.so" 10843sys_lib_dlsearch_path_spec="/lib /usr/lib" 10844need_lib_prefix=unknown 10845hardcode_into_libs=no 10846 10847# when you set need_version to no, make sure it does not cause -set_version 10848# flags to be left without arguments 10849need_version=unknown 10850 10851 10852 10853case $host_os in 10854aix3*) 10855 version_type=linux # correct to gnu/linux during the next big refactor 10856 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10857 shlibpath_var=LIBPATH 10858 10859 # AIX 3 has no versioning support, so we append a major version to the name. 10860 soname_spec='$libname$release$shared_ext$major' 10861 ;; 10862 10863aix[4-9]*) 10864 version_type=linux # correct to gnu/linux during the next big refactor 10865 need_lib_prefix=no 10866 need_version=no 10867 hardcode_into_libs=yes 10868 if test ia64 = "$host_cpu"; then 10869 # AIX 5 supports IA64 10870 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 else 10873 # With GCC up to 2.95.x, collect2 would create an import file 10874 # for dependence libraries. The import file would start with 10875 # the line '#! .'. This would cause the generated library to 10876 # depend on '.', always an invalid library. This was fixed in 10877 # development snapshots of GCC prior to 3.0. 10878 case $host_os in 10879 aix4 | aix4.[01] | aix4.[01].*) 10880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10881 echo ' yes ' 10882 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10883 : 10884 else 10885 can_build_shared=no 10886 fi 10887 ;; 10888 esac 10889 # Using Import Files as archive members, it is possible to support 10890 # filename-based versioning of shared library archives on AIX. While 10891 # this would work for both with and without runtime linking, it will 10892 # prevent static linking of such archives. So we do filename-based 10893 # shared library versioning with .so extension only, which is used 10894 # when both runtime linking and shared linking is enabled. 10895 # Unfortunately, runtime linking may impact performance, so we do 10896 # not want this to be the default eventually. Also, we use the 10897 # versioned .so libs for executables only if there is the -brtl 10898 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10899 # To allow for filename-based versioning support, we need to create 10900 # libNAME.so.V as an archive file, containing: 10901 # *) an Import File, referring to the versioned filename of the 10902 # archive as well as the shared archive member, telling the 10903 # bitwidth (32 or 64) of that shared object, and providing the 10904 # list of exported symbols of that shared object, eventually 10905 # decorated with the 'weak' keyword 10906 # *) the shared object with the F_LOADONLY flag set, to really avoid 10907 # it being seen by the linker. 10908 # At run time we better use the real file rather than another symlink, 10909 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10910 10911 case $with_aix_soname,$aix_use_runtimelinking in 10912 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10913 # soname into executable. Probably we can add versioning support to 10914 # collect2, so additional links can be useful in future. 10915 aix,yes) # traditional libtool 10916 dynamic_linker='AIX unversionable lib.so' 10917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10918 # instead of lib<name>.a to let people know that these are not 10919 # typical AIX shared libraries. 10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10921 ;; 10922 aix,no) # traditional AIX only 10923 dynamic_linker='AIX lib.a(lib.so.V)' 10924 # We preserve .a as extension for shared libraries through AIX4.2 10925 # and later when we are not doing run time linking. 10926 library_names_spec='$libname$release.a $libname.a' 10927 soname_spec='$libname$release$shared_ext$major' 10928 ;; 10929 svr4,*) # full svr4 only 10930 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10931 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10932 # We do not specify a path in Import Files, so LIBPATH fires. 10933 shlibpath_overrides_runpath=yes 10934 ;; 10935 *,yes) # both, prefer svr4 10936 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10937 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10938 # unpreferred sharedlib libNAME.a needs extra handling 10939 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10940 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10941 # We do not specify a path in Import Files, so LIBPATH fires. 10942 shlibpath_overrides_runpath=yes 10943 ;; 10944 *,no) # both, prefer aix 10945 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10946 library_names_spec='$libname$release.a $libname.a' 10947 soname_spec='$libname$release$shared_ext$major' 10948 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10949 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10950 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10951 ;; 10952 esac 10953 shlibpath_var=LIBPATH 10954 fi 10955 ;; 10956 10957amigaos*) 10958 case $host_cpu in 10959 powerpc) 10960 # Since July 2007 AmigaOS4 officially supports .so libraries. 10961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10963 ;; 10964 m68k) 10965 library_names_spec='$libname.ixlibrary $libname.a' 10966 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10967 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10968 ;; 10969 esac 10970 ;; 10971 10972beos*) 10973 library_names_spec='$libname$shared_ext' 10974 dynamic_linker="$host_os ld.so" 10975 shlibpath_var=LIBRARY_PATH 10976 ;; 10977 10978bsdi[45]*) 10979 version_type=linux # correct to gnu/linux during the next big refactor 10980 need_version=no 10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10982 soname_spec='$libname$release$shared_ext$major' 10983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10987 # the default ld.so.conf also contains /usr/contrib/lib and 10988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10989 # libtool to hard-code these into programs 10990 ;; 10991 10992cygwin* | mingw* | pw32* | cegcc*) 10993 version_type=windows 10994 shrext_cmds=.dll 10995 need_version=no 10996 need_lib_prefix=no 10997 10998 case $GCC,$cc_basename in 10999 yes,*) 11000 # gcc 11001 library_names_spec='$libname.dll.a' 11002 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11003 postinstall_cmds='base_file=`basename \$file`~ 11004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11005 dldir=$destdir/`dirname \$dlpath`~ 11006 test -d \$dldir || mkdir -p \$dldir~ 11007 $install_prog $dir/$dlname \$dldir/$dlname~ 11008 chmod a+x \$dldir/$dlname~ 11009 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11010 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11011 fi' 11012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11013 dlpath=$dir/\$dldll~ 11014 $RM \$dlpath' 11015 shlibpath_overrides_runpath=yes 11016 11017 case $host_os in 11018 cygwin*) 11019 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11020 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11021 11022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11023 ;; 11024 mingw* | cegcc*) 11025 # MinGW DLLs use traditional 'lib' prefix 11026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11027 ;; 11028 pw32*) 11029 # pw32 DLLs use 'pw' prefix rather than 'lib' 11030 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11031 ;; 11032 esac 11033 dynamic_linker='Win32 ld.exe' 11034 ;; 11035 11036 *,cl*) 11037 # Native MSVC 11038 libname_spec='$name' 11039 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11040 library_names_spec='$libname.dll.lib' 11041 11042 case $build_os in 11043 mingw*) 11044 sys_lib_search_path_spec= 11045 lt_save_ifs=$IFS 11046 IFS=';' 11047 for lt_path in $LIB 11048 do 11049 IFS=$lt_save_ifs 11050 # Let DOS variable expansion print the short 8.3 style file name. 11051 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11052 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11053 done 11054 IFS=$lt_save_ifs 11055 # Convert to MSYS style. 11056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11057 ;; 11058 cygwin*) 11059 # Convert to unix form, then to dos form, then back to unix form 11060 # but this time dos style (no spaces!) so that the unix form looks 11061 # like /cygdrive/c/PROGRA~1:/cygdr... 11062 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11063 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11064 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11065 ;; 11066 *) 11067 sys_lib_search_path_spec=$LIB 11068 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11069 # It is most probably a Windows format PATH. 11070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11071 else 11072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11073 fi 11074 # FIXME: find the short name or the path components, as spaces are 11075 # common. (e.g. "Program Files" -> "PROGRA~1") 11076 ;; 11077 esac 11078 11079 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11080 postinstall_cmds='base_file=`basename \$file`~ 11081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11082 dldir=$destdir/`dirname \$dlpath`~ 11083 test -d \$dldir || mkdir -p \$dldir~ 11084 $install_prog $dir/$dlname \$dldir/$dlname' 11085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11086 dlpath=$dir/\$dldll~ 11087 $RM \$dlpath' 11088 shlibpath_overrides_runpath=yes 11089 dynamic_linker='Win32 link.exe' 11090 ;; 11091 11092 *) 11093 # Assume MSVC wrapper 11094 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11095 dynamic_linker='Win32 ld.exe' 11096 ;; 11097 esac 11098 # FIXME: first we should search . and the directory the executable is in 11099 shlibpath_var=PATH 11100 ;; 11101 11102darwin* | rhapsody*) 11103 dynamic_linker="$host_os dyld" 11104 version_type=darwin 11105 need_lib_prefix=no 11106 need_version=no 11107 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11108 soname_spec='$libname$release$major$shared_ext' 11109 shlibpath_overrides_runpath=yes 11110 shlibpath_var=DYLD_LIBRARY_PATH 11111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11112 11113 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11115 ;; 11116 11117dgux*) 11118 version_type=linux # correct to gnu/linux during the next big refactor 11119 need_lib_prefix=no 11120 need_version=no 11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11122 soname_spec='$libname$release$shared_ext$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 ;; 11125 11126freebsd* | dragonfly*) 11127 # DragonFly does not have aout. When/if they implement a new 11128 # versioning mechanism, adjust this. 11129 if test -x /usr/bin/objformat; then 11130 objformat=`/usr/bin/objformat` 11131 else 11132 case $host_os in 11133 freebsd[23].*) objformat=aout ;; 11134 *) objformat=elf ;; 11135 esac 11136 fi 11137 version_type=freebsd-$objformat 11138 case $version_type in 11139 freebsd-elf*) 11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11141 soname_spec='$libname$release$shared_ext$major' 11142 need_version=no 11143 need_lib_prefix=no 11144 ;; 11145 freebsd-*) 11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11147 need_version=yes 11148 ;; 11149 esac 11150 shlibpath_var=LD_LIBRARY_PATH 11151 case $host_os in 11152 freebsd2.*) 11153 shlibpath_overrides_runpath=yes 11154 ;; 11155 freebsd3.[01]* | freebsdelf3.[01]*) 11156 shlibpath_overrides_runpath=yes 11157 hardcode_into_libs=yes 11158 ;; 11159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11161 shlibpath_overrides_runpath=no 11162 hardcode_into_libs=yes 11163 ;; 11164 *) # from 4.6 on, and DragonFly 11165 shlibpath_overrides_runpath=yes 11166 hardcode_into_libs=yes 11167 ;; 11168 esac 11169 ;; 11170 11171haiku*) 11172 version_type=linux # correct to gnu/linux during the next big refactor 11173 need_lib_prefix=no 11174 need_version=no 11175 dynamic_linker="$host_os runtime_loader" 11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11177 soname_spec='$libname$release$shared_ext$major' 11178 shlibpath_var=LIBRARY_PATH 11179 shlibpath_overrides_runpath=no 11180 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11181 hardcode_into_libs=yes 11182 ;; 11183 11184hpux9* | hpux10* | hpux11*) 11185 # Give a soname corresponding to the major version so that dld.sl refuses to 11186 # link against other versions. 11187 version_type=sunos 11188 need_lib_prefix=no 11189 need_version=no 11190 case $host_cpu in 11191 ia64*) 11192 shrext_cmds='.so' 11193 hardcode_into_libs=yes 11194 dynamic_linker="$host_os dld.so" 11195 shlibpath_var=LD_LIBRARY_PATH 11196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11198 soname_spec='$libname$release$shared_ext$major' 11199 if test 32 = "$HPUX_IA64_MODE"; then 11200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11201 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11202 else 11203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11204 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11205 fi 11206 ;; 11207 hppa*64*) 11208 shrext_cmds='.sl' 11209 hardcode_into_libs=yes 11210 dynamic_linker="$host_os dld.sl" 11211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 soname_spec='$libname$release$shared_ext$major' 11215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11217 ;; 11218 *) 11219 shrext_cmds='.sl' 11220 dynamic_linker="$host_os dld.sl" 11221 shlibpath_var=SHLIB_PATH 11222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11224 soname_spec='$libname$release$shared_ext$major' 11225 ;; 11226 esac 11227 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11228 postinstall_cmds='chmod 555 $lib' 11229 # or fails outright, so override atomically: 11230 install_override_mode=555 11231 ;; 11232 11233interix[3-9]*) 11234 version_type=linux # correct to gnu/linux during the next big refactor 11235 need_lib_prefix=no 11236 need_version=no 11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11238 soname_spec='$libname$release$shared_ext$major' 11239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11240 shlibpath_var=LD_LIBRARY_PATH 11241 shlibpath_overrides_runpath=no 11242 hardcode_into_libs=yes 11243 ;; 11244 11245irix5* | irix6* | nonstopux*) 11246 case $host_os in 11247 nonstopux*) version_type=nonstopux ;; 11248 *) 11249 if test yes = "$lt_cv_prog_gnu_ld"; then 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 else 11252 version_type=irix 11253 fi ;; 11254 esac 11255 need_lib_prefix=no 11256 need_version=no 11257 soname_spec='$libname$release$shared_ext$major' 11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11259 case $host_os in 11260 irix5* | nonstopux*) 11261 libsuff= shlibsuff= 11262 ;; 11263 *) 11264 case $LD in # libtool.m4 will add one of these switches to LD 11265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11266 libsuff= shlibsuff= libmagic=32-bit;; 11267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11268 libsuff=32 shlibsuff=N32 libmagic=N32;; 11269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11270 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11271 *) libsuff= shlibsuff= libmagic=never-match;; 11272 esac 11273 ;; 11274 esac 11275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11276 shlibpath_overrides_runpath=no 11277 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11278 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11279 hardcode_into_libs=yes 11280 ;; 11281 11282# No shared lib support for Linux oldld, aout, or coff. 11283linux*oldld* | linux*aout* | linux*coff*) 11284 dynamic_linker=no 11285 ;; 11286 11287linux*android*) 11288 version_type=none # Android doesn't support versioned libraries. 11289 need_lib_prefix=no 11290 need_version=no 11291 library_names_spec='$libname$release$shared_ext' 11292 soname_spec='$libname$release$shared_ext' 11293 finish_cmds= 11294 shlibpath_var=LD_LIBRARY_PATH 11295 shlibpath_overrides_runpath=yes 11296 11297 # This implies no fast_install, which is unacceptable. 11298 # Some rework will be needed to allow for fast_install 11299 # before this can be enabled. 11300 hardcode_into_libs=yes 11301 11302 dynamic_linker='Android linker' 11303 # Don't embed -rpath directories since the linker doesn't support them. 11304 hardcode_libdir_flag_spec='-L$libdir' 11305 ;; 11306 11307# This must be glibc/ELF. 11308linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11309 version_type=linux # correct to gnu/linux during the next big refactor 11310 need_lib_prefix=no 11311 need_version=no 11312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11313 soname_spec='$libname$release$shared_ext$major' 11314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11315 shlibpath_var=LD_LIBRARY_PATH 11316 shlibpath_overrides_runpath=no 11317 11318 # Some binutils ld are patched to set DT_RUNPATH 11319 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 lt_cv_shlibpath_overrides_runpath=no 11323 save_LDFLAGS=$LDFLAGS 11324 save_libdir=$libdir 11325 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11326 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329 11330int 11331main () 11332{ 11333 11334 ; 11335 return 0; 11336} 11337_ACEOF 11338if ac_fn_c_try_link "$LINENO"; then : 11339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11340 lt_cv_shlibpath_overrides_runpath=yes 11341fi 11342fi 11343rm -f core conftest.err conftest.$ac_objext \ 11344 conftest$ac_exeext conftest.$ac_ext 11345 LDFLAGS=$save_LDFLAGS 11346 libdir=$save_libdir 11347 11348fi 11349 11350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11351 11352 # This implies no fast_install, which is unacceptable. 11353 # Some rework will be needed to allow for fast_install 11354 # before this can be enabled. 11355 hardcode_into_libs=yes 11356 11357 # Add ABI-specific directories to the system library path. 11358 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11359 11360 # Ideally, we could use ldconfig to report *all* directores which are 11361 # searched for libraries, however this is still not possible. Aside from not 11362 # being certain /sbin/ldconfig is available, command 11363 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11364 # even though it is searched at run-time. Try to do the best guess by 11365 # appending ld.so.conf contents (and includes) to the search path. 11366 if test -f /etc/ld.so.conf; then 11367 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' ' '` 11368 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11369 fi 11370 11371 # We used to test for /lib/ld.so.1 and disable shared libraries on 11372 # powerpc, because MkLinux only supported shared libraries with the 11373 # GNU dynamic linker. Since this was broken with cross compilers, 11374 # most powerpc-linux boxes support dynamic linking these days and 11375 # people can always --disable-shared, the test was removed, and we 11376 # assume the GNU/Linux dynamic linker is in use. 11377 dynamic_linker='GNU/Linux ld.so' 11378 ;; 11379 11380netbsd*) 11381 version_type=sunos 11382 need_lib_prefix=no 11383 need_version=no 11384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11387 dynamic_linker='NetBSD (a.out) ld.so' 11388 else 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 dynamic_linker='NetBSD ld.elf_so' 11392 fi 11393 shlibpath_var=LD_LIBRARY_PATH 11394 shlibpath_overrides_runpath=yes 11395 hardcode_into_libs=yes 11396 ;; 11397 11398newsos6) 11399 version_type=linux # correct to gnu/linux during the next big refactor 11400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11401 shlibpath_var=LD_LIBRARY_PATH 11402 shlibpath_overrides_runpath=yes 11403 ;; 11404 11405*nto* | *qnx*) 11406 version_type=qnx 11407 need_lib_prefix=no 11408 need_version=no 11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11410 soname_spec='$libname$release$shared_ext$major' 11411 shlibpath_var=LD_LIBRARY_PATH 11412 shlibpath_overrides_runpath=no 11413 hardcode_into_libs=yes 11414 dynamic_linker='ldqnx.so' 11415 ;; 11416 11417openbsd* | bitrig*) 11418 version_type=sunos 11419 sys_lib_dlsearch_path_spec=/usr/lib 11420 need_lib_prefix=no 11421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11422 need_version=no 11423 else 11424 need_version=yes 11425 fi 11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11428 shlibpath_var=LD_LIBRARY_PATH 11429 shlibpath_overrides_runpath=yes 11430 ;; 11431 11432os2*) 11433 libname_spec='$name' 11434 version_type=windows 11435 shrext_cmds=.dll 11436 need_version=no 11437 need_lib_prefix=no 11438 # OS/2 can only load a DLL with a base name of 8 characters or less. 11439 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11440 v=$($ECHO $release$versuffix | tr -d .-); 11441 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11442 $ECHO $n$v`$shared_ext' 11443 library_names_spec='${libname}_dll.$libext' 11444 dynamic_linker='OS/2 ld.exe' 11445 shlibpath_var=BEGINLIBPATH 11446 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11448 postinstall_cmds='base_file=`basename \$file`~ 11449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11450 dldir=$destdir/`dirname \$dlpath`~ 11451 test -d \$dldir || mkdir -p \$dldir~ 11452 $install_prog $dir/$dlname \$dldir/$dlname~ 11453 chmod a+x \$dldir/$dlname~ 11454 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11455 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11456 fi' 11457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11458 dlpath=$dir/\$dldll~ 11459 $RM \$dlpath' 11460 ;; 11461 11462osf3* | osf4* | osf5*) 11463 version_type=osf 11464 need_lib_prefix=no 11465 need_version=no 11466 soname_spec='$libname$release$shared_ext$major' 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11471 ;; 11472 11473rdos*) 11474 dynamic_linker=no 11475 ;; 11476 11477solaris*) 11478 version_type=linux # correct to gnu/linux during the next big refactor 11479 need_lib_prefix=no 11480 need_version=no 11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11482 soname_spec='$libname$release$shared_ext$major' 11483 shlibpath_var=LD_LIBRARY_PATH 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 # ldd complains unless libraries are executable 11487 postinstall_cmds='chmod +x $lib' 11488 ;; 11489 11490sunos4*) 11491 version_type=sunos 11492 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11494 shlibpath_var=LD_LIBRARY_PATH 11495 shlibpath_overrides_runpath=yes 11496 if test yes = "$with_gnu_ld"; then 11497 need_lib_prefix=no 11498 fi 11499 need_version=yes 11500 ;; 11501 11502sysv4 | sysv4.3*) 11503 version_type=linux # correct to gnu/linux during the next big refactor 11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11505 soname_spec='$libname$release$shared_ext$major' 11506 shlibpath_var=LD_LIBRARY_PATH 11507 case $host_vendor in 11508 sni) 11509 shlibpath_overrides_runpath=no 11510 need_lib_prefix=no 11511 runpath_var=LD_RUN_PATH 11512 ;; 11513 siemens) 11514 need_lib_prefix=no 11515 ;; 11516 motorola) 11517 need_lib_prefix=no 11518 need_version=no 11519 shlibpath_overrides_runpath=no 11520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11521 ;; 11522 esac 11523 ;; 11524 11525sysv4*MP*) 11526 if test -d /usr/nec; then 11527 version_type=linux # correct to gnu/linux during the next big refactor 11528 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11529 soname_spec='$libname$shared_ext.$major' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 fi 11532 ;; 11533 11534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11535 version_type=sco 11536 need_lib_prefix=no 11537 need_version=no 11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11539 soname_spec='$libname$release$shared_ext$major' 11540 shlibpath_var=LD_LIBRARY_PATH 11541 shlibpath_overrides_runpath=yes 11542 hardcode_into_libs=yes 11543 if test yes = "$with_gnu_ld"; then 11544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11545 else 11546 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11547 case $host_os in 11548 sco3.2v5*) 11549 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11550 ;; 11551 esac 11552 fi 11553 sys_lib_dlsearch_path_spec='/usr/lib' 11554 ;; 11555 11556tpf*) 11557 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11558 version_type=linux # correct to gnu/linux during the next big refactor 11559 need_lib_prefix=no 11560 need_version=no 11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11562 shlibpath_var=LD_LIBRARY_PATH 11563 shlibpath_overrides_runpath=no 11564 hardcode_into_libs=yes 11565 ;; 11566 11567uts4*) 11568 version_type=linux # correct to gnu/linux during the next big refactor 11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11570 soname_spec='$libname$release$shared_ext$major' 11571 shlibpath_var=LD_LIBRARY_PATH 11572 ;; 11573 11574*) 11575 dynamic_linker=no 11576 ;; 11577esac 11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11579$as_echo "$dynamic_linker" >&6; } 11580test no = "$dynamic_linker" && can_build_shared=no 11581 11582variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11583if test yes = "$GCC"; then 11584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11585fi 11586 11587if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11588 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11589fi 11590 11591if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11592 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11593fi 11594 11595# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11596configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11597 11598# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11599func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11600 11601# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11602configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11701$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11702hardcode_action= 11703if test -n "$hardcode_libdir_flag_spec" || 11704 test -n "$runpath_var" || 11705 test yes = "$hardcode_automatic"; then 11706 11707 # We can hardcode non-existent directories. 11708 if test no != "$hardcode_direct" && 11709 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11710 # have to relink, otherwise we might link with an installed library 11711 # when we should be linking with a yet-to-be-installed one 11712 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11713 test no != "$hardcode_minus_L"; then 11714 # Linking always hardcodes the temporary library directory. 11715 hardcode_action=relink 11716 else 11717 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11718 hardcode_action=immediate 11719 fi 11720else 11721 # We cannot hardcode anything, or else we can only hardcode existing 11722 # directories. 11723 hardcode_action=unsupported 11724fi 11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11726$as_echo "$hardcode_action" >&6; } 11727 11728if test relink = "$hardcode_action" || 11729 test yes = "$inherit_rpath"; then 11730 # Fast installation is not supported 11731 enable_fast_install=no 11732elif test yes = "$shlibpath_overrides_runpath" || 11733 test no = "$enable_shared"; then 11734 # Fast installation is not necessary 11735 enable_fast_install=needless 11736fi 11737 11738 11739 11740 11741 11742 11743 if test yes != "$enable_dlopen"; then 11744 enable_dlopen=unknown 11745 enable_dlopen_self=unknown 11746 enable_dlopen_self_static=unknown 11747else 11748 lt_cv_dlopen=no 11749 lt_cv_dlopen_libs= 11750 11751 case $host_os in 11752 beos*) 11753 lt_cv_dlopen=load_add_on 11754 lt_cv_dlopen_libs= 11755 lt_cv_dlopen_self=yes 11756 ;; 11757 11758 mingw* | pw32* | cegcc*) 11759 lt_cv_dlopen=LoadLibrary 11760 lt_cv_dlopen_libs= 11761 ;; 11762 11763 cygwin*) 11764 lt_cv_dlopen=dlopen 11765 lt_cv_dlopen_libs= 11766 ;; 11767 11768 darwin*) 11769 # if libdl is installed we need to link against it 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11771$as_echo_n "checking for dlopen in -ldl... " >&6; } 11772if ${ac_cv_lib_dl_dlopen+:} false; then : 11773 $as_echo_n "(cached) " >&6 11774else 11775 ac_check_lib_save_LIBS=$LIBS 11776LIBS="-ldl $LIBS" 11777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779 11780/* Override any GCC internal prototype to avoid an error. 11781 Use char because int might match the return type of a GCC 11782 builtin and then its argument prototype would still apply. */ 11783#ifdef __cplusplus 11784extern "C" 11785#endif 11786char dlopen (); 11787int 11788main () 11789{ 11790return dlopen (); 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795if ac_fn_c_try_link "$LINENO"; then : 11796 ac_cv_lib_dl_dlopen=yes 11797else 11798 ac_cv_lib_dl_dlopen=no 11799fi 11800rm -f core conftest.err conftest.$ac_objext \ 11801 conftest$ac_exeext conftest.$ac_ext 11802LIBS=$ac_check_lib_save_LIBS 11803fi 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11805$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11806if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11807 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11808else 11809 11810 lt_cv_dlopen=dyld 11811 lt_cv_dlopen_libs= 11812 lt_cv_dlopen_self=yes 11813 11814fi 11815 11816 ;; 11817 11818 tpf*) 11819 # Don't try to run any link tests for TPF. We know it's impossible 11820 # because TPF is a cross-compiler, and we know how we open DSOs. 11821 lt_cv_dlopen=dlopen 11822 lt_cv_dlopen_libs= 11823 lt_cv_dlopen_self=no 11824 ;; 11825 11826 *) 11827 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11828if test "x$ac_cv_func_shl_load" = xyes; then : 11829 lt_cv_dlopen=shl_load 11830else 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11832$as_echo_n "checking for shl_load in -ldld... " >&6; } 11833if ${ac_cv_lib_dld_shl_load+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835else 11836 ac_check_lib_save_LIBS=$LIBS 11837LIBS="-ldld $LIBS" 11838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840 11841/* Override any GCC internal prototype to avoid an error. 11842 Use char because int might match the return type of a GCC 11843 builtin and then its argument prototype would still apply. */ 11844#ifdef __cplusplus 11845extern "C" 11846#endif 11847char shl_load (); 11848int 11849main () 11850{ 11851return shl_load (); 11852 ; 11853 return 0; 11854} 11855_ACEOF 11856if ac_fn_c_try_link "$LINENO"; then : 11857 ac_cv_lib_dld_shl_load=yes 11858else 11859 ac_cv_lib_dld_shl_load=no 11860fi 11861rm -f core conftest.err conftest.$ac_objext \ 11862 conftest$ac_exeext conftest.$ac_ext 11863LIBS=$ac_check_lib_save_LIBS 11864fi 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11866$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11867if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11868 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11869else 11870 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11871if test "x$ac_cv_func_dlopen" = xyes; then : 11872 lt_cv_dlopen=dlopen 11873else 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11875$as_echo_n "checking for dlopen in -ldl... " >&6; } 11876if ${ac_cv_lib_dl_dlopen+:} false; then : 11877 $as_echo_n "(cached) " >&6 11878else 11879 ac_check_lib_save_LIBS=$LIBS 11880LIBS="-ldl $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 11899if ac_fn_c_try_link "$LINENO"; then : 11900 ac_cv_lib_dl_dlopen=yes 11901else 11902 ac_cv_lib_dl_dlopen=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext \ 11905 conftest$ac_exeext conftest.$ac_ext 11906LIBS=$ac_check_lib_save_LIBS 11907fi 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11909$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11910if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11911 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11912else 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11914$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11915if ${ac_cv_lib_svld_dlopen+:} false; then : 11916 $as_echo_n "(cached) " >&6 11917else 11918 ac_check_lib_save_LIBS=$LIBS 11919LIBS="-lsvld $LIBS" 11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922 11923/* Override any GCC internal prototype to avoid an error. 11924 Use char because int might match the return type of a GCC 11925 builtin and then its argument prototype would still apply. */ 11926#ifdef __cplusplus 11927extern "C" 11928#endif 11929char dlopen (); 11930int 11931main () 11932{ 11933return dlopen (); 11934 ; 11935 return 0; 11936} 11937_ACEOF 11938if ac_fn_c_try_link "$LINENO"; then : 11939 ac_cv_lib_svld_dlopen=yes 11940else 11941 ac_cv_lib_svld_dlopen=no 11942fi 11943rm -f core conftest.err conftest.$ac_objext \ 11944 conftest$ac_exeext conftest.$ac_ext 11945LIBS=$ac_check_lib_save_LIBS 11946fi 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11948$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11949if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11950 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11951else 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11953$as_echo_n "checking for dld_link in -ldld... " >&6; } 11954if ${ac_cv_lib_dld_dld_link+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956else 11957 ac_check_lib_save_LIBS=$LIBS 11958LIBS="-ldld $LIBS" 11959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961 11962/* Override any GCC internal prototype to avoid an error. 11963 Use char because int might match the return type of a GCC 11964 builtin and then its argument prototype would still apply. */ 11965#ifdef __cplusplus 11966extern "C" 11967#endif 11968char dld_link (); 11969int 11970main () 11971{ 11972return dld_link (); 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977if ac_fn_c_try_link "$LINENO"; then : 11978 ac_cv_lib_dld_dld_link=yes 11979else 11980 ac_cv_lib_dld_dld_link=no 11981fi 11982rm -f core conftest.err conftest.$ac_objext \ 11983 conftest$ac_exeext conftest.$ac_ext 11984LIBS=$ac_check_lib_save_LIBS 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11987$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11988if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11989 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11990fi 11991 11992 11993fi 11994 11995 11996fi 11997 11998 11999fi 12000 12001 12002fi 12003 12004 12005fi 12006 12007 ;; 12008 esac 12009 12010 if test no = "$lt_cv_dlopen"; then 12011 enable_dlopen=no 12012 else 12013 enable_dlopen=yes 12014 fi 12015 12016 case $lt_cv_dlopen in 12017 dlopen) 12018 save_CPPFLAGS=$CPPFLAGS 12019 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12020 12021 save_LDFLAGS=$LDFLAGS 12022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12023 12024 save_LIBS=$LIBS 12025 LIBS="$lt_cv_dlopen_libs $LIBS" 12026 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12028$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12029if ${lt_cv_dlopen_self+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031else 12032 if test yes = "$cross_compiling"; then : 12033 lt_cv_dlopen_self=cross 12034else 12035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12036 lt_status=$lt_dlunknown 12037 cat > conftest.$ac_ext <<_LT_EOF 12038#line $LINENO "configure" 12039#include "confdefs.h" 12040 12041#if HAVE_DLFCN_H 12042#include <dlfcn.h> 12043#endif 12044 12045#include <stdio.h> 12046 12047#ifdef RTLD_GLOBAL 12048# define LT_DLGLOBAL RTLD_GLOBAL 12049#else 12050# ifdef DL_GLOBAL 12051# define LT_DLGLOBAL DL_GLOBAL 12052# else 12053# define LT_DLGLOBAL 0 12054# endif 12055#endif 12056 12057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12058 find out it does not work in some platform. */ 12059#ifndef LT_DLLAZY_OR_NOW 12060# ifdef RTLD_LAZY 12061# define LT_DLLAZY_OR_NOW RTLD_LAZY 12062# else 12063# ifdef DL_LAZY 12064# define LT_DLLAZY_OR_NOW DL_LAZY 12065# else 12066# ifdef RTLD_NOW 12067# define LT_DLLAZY_OR_NOW RTLD_NOW 12068# else 12069# ifdef DL_NOW 12070# define LT_DLLAZY_OR_NOW DL_NOW 12071# else 12072# define LT_DLLAZY_OR_NOW 0 12073# endif 12074# endif 12075# endif 12076# endif 12077#endif 12078 12079/* When -fvisibility=hidden is used, assume the code has been annotated 12080 correspondingly for the symbols needed. */ 12081#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12082int fnord () __attribute__((visibility("default"))); 12083#endif 12084 12085int fnord () { return 42; } 12086int main () 12087{ 12088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12089 int status = $lt_dlunknown; 12090 12091 if (self) 12092 { 12093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12094 else 12095 { 12096 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12097 else puts (dlerror ()); 12098 } 12099 /* dlclose (self); */ 12100 } 12101 else 12102 puts (dlerror ()); 12103 12104 return status; 12105} 12106_LT_EOF 12107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12108 (eval $ac_link) 2>&5 12109 ac_status=$? 12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12111 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12112 (./conftest; exit; ) >&5 2>/dev/null 12113 lt_status=$? 12114 case x$lt_status in 12115 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12116 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12117 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12118 esac 12119 else : 12120 # compilation failed 12121 lt_cv_dlopen_self=no 12122 fi 12123fi 12124rm -fr conftest* 12125 12126 12127fi 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12129$as_echo "$lt_cv_dlopen_self" >&6; } 12130 12131 if test yes = "$lt_cv_dlopen_self"; then 12132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12134$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12135if ${lt_cv_dlopen_self_static+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 if test yes = "$cross_compiling"; then : 12139 lt_cv_dlopen_self_static=cross 12140else 12141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12142 lt_status=$lt_dlunknown 12143 cat > conftest.$ac_ext <<_LT_EOF 12144#line $LINENO "configure" 12145#include "confdefs.h" 12146 12147#if HAVE_DLFCN_H 12148#include <dlfcn.h> 12149#endif 12150 12151#include <stdio.h> 12152 12153#ifdef RTLD_GLOBAL 12154# define LT_DLGLOBAL RTLD_GLOBAL 12155#else 12156# ifdef DL_GLOBAL 12157# define LT_DLGLOBAL DL_GLOBAL 12158# else 12159# define LT_DLGLOBAL 0 12160# endif 12161#endif 12162 12163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12164 find out it does not work in some platform. */ 12165#ifndef LT_DLLAZY_OR_NOW 12166# ifdef RTLD_LAZY 12167# define LT_DLLAZY_OR_NOW RTLD_LAZY 12168# else 12169# ifdef DL_LAZY 12170# define LT_DLLAZY_OR_NOW DL_LAZY 12171# else 12172# ifdef RTLD_NOW 12173# define LT_DLLAZY_OR_NOW RTLD_NOW 12174# else 12175# ifdef DL_NOW 12176# define LT_DLLAZY_OR_NOW DL_NOW 12177# else 12178# define LT_DLLAZY_OR_NOW 0 12179# endif 12180# endif 12181# endif 12182# endif 12183#endif 12184 12185/* When -fvisibility=hidden is used, assume the code has been annotated 12186 correspondingly for the symbols needed. */ 12187#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12188int fnord () __attribute__((visibility("default"))); 12189#endif 12190 12191int fnord () { return 42; } 12192int main () 12193{ 12194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12195 int status = $lt_dlunknown; 12196 12197 if (self) 12198 { 12199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12200 else 12201 { 12202 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12203 else puts (dlerror ()); 12204 } 12205 /* dlclose (self); */ 12206 } 12207 else 12208 puts (dlerror ()); 12209 12210 return status; 12211} 12212_LT_EOF 12213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12214 (eval $ac_link) 2>&5 12215 ac_status=$? 12216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12217 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12218 (./conftest; exit; ) >&5 2>/dev/null 12219 lt_status=$? 12220 case x$lt_status in 12221 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12222 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12223 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12224 esac 12225 else : 12226 # compilation failed 12227 lt_cv_dlopen_self_static=no 12228 fi 12229fi 12230rm -fr conftest* 12231 12232 12233fi 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12235$as_echo "$lt_cv_dlopen_self_static" >&6; } 12236 fi 12237 12238 CPPFLAGS=$save_CPPFLAGS 12239 LDFLAGS=$save_LDFLAGS 12240 LIBS=$save_LIBS 12241 ;; 12242 esac 12243 12244 case $lt_cv_dlopen_self in 12245 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12246 *) enable_dlopen_self=unknown ;; 12247 esac 12248 12249 case $lt_cv_dlopen_self_static in 12250 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12251 *) enable_dlopen_self_static=unknown ;; 12252 esac 12253fi 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271striplib= 12272old_striplib= 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12274$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12275if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12277 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12279$as_echo "yes" >&6; } 12280else 12281# FIXME - insert some real tests, host_os isn't really good enough 12282 case $host_os in 12283 darwin*) 12284 if test -n "$STRIP"; then 12285 striplib="$STRIP -x" 12286 old_striplib="$STRIP -S" 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12288$as_echo "yes" >&6; } 12289 else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12291$as_echo "no" >&6; } 12292 fi 12293 ;; 12294 *) 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12296$as_echo "no" >&6; } 12297 ;; 12298 esac 12299fi 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 # Report what library types will actually be built 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12314$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12316$as_echo "$can_build_shared" >&6; } 12317 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12319$as_echo_n "checking whether to build shared libraries... " >&6; } 12320 test no = "$can_build_shared" && enable_shared=no 12321 12322 # On AIX, shared libraries and static libraries use the same namespace, and 12323 # are all built from PIC. 12324 case $host_os in 12325 aix3*) 12326 test yes = "$enable_shared" && enable_static=no 12327 if test -n "$RANLIB"; then 12328 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12329 postinstall_cmds='$RANLIB $lib' 12330 fi 12331 ;; 12332 12333 aix[4-9]*) 12334 if test ia64 != "$host_cpu"; then 12335 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12336 yes,aix,yes) ;; # shared object as lib.so file only 12337 yes,svr4,*) ;; # shared object as lib.so archive member only 12338 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12339 esac 12340 fi 12341 ;; 12342 esac 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12344$as_echo "$enable_shared" >&6; } 12345 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12347$as_echo_n "checking whether to build static libraries... " >&6; } 12348 # Make sure either enable_shared or enable_static is yes. 12349 test yes = "$enable_shared" || enable_static=yes 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12351$as_echo "$enable_static" >&6; } 12352 12353 12354 12355 12356fi 12357ac_ext=c 12358ac_cpp='$CPP $CPPFLAGS' 12359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12361ac_compiler_gnu=$ac_cv_c_compiler_gnu 12362 12363CC=$lt_save_CC 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 ac_config_commands="$ac_config_commands libtool" 12380 12381 12382 12383 12384# Only expand once: 12385 12386 12387 12388 12389 12390 if test "$ac_cv_c_compiler_gnu" = yes; then 12391 HAVE_GCC_TRUE= 12392 HAVE_GCC_FALSE='#' 12393else 12394 HAVE_GCC_TRUE='#' 12395 HAVE_GCC_FALSE= 12396fi 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12407 if test -n "$ac_tool_prefix"; then 12408 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12409set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12411$as_echo_n "checking for $ac_word... " >&6; } 12412if ${ac_cv_path_PKG_CONFIG+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 case $PKG_CONFIG in 12416 [\\/]* | ?:[\\/]*) 12417 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12418 ;; 12419 *) 12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12421for as_dir in $PATH 12422do 12423 IFS=$as_save_IFS 12424 test -z "$as_dir" && as_dir=. 12425 for ac_exec_ext in '' $ac_executable_extensions; do 12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12427 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12429 break 2 12430 fi 12431done 12432 done 12433IFS=$as_save_IFS 12434 12435 ;; 12436esac 12437fi 12438PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12439if test -n "$PKG_CONFIG"; then 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12441$as_echo "$PKG_CONFIG" >&6; } 12442else 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12444$as_echo "no" >&6; } 12445fi 12446 12447 12448fi 12449if test -z "$ac_cv_path_PKG_CONFIG"; then 12450 ac_pt_PKG_CONFIG=$PKG_CONFIG 12451 # Extract the first word of "pkg-config", so it can be a program name with args. 12452set dummy pkg-config; ac_word=$2 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12454$as_echo_n "checking for $ac_word... " >&6; } 12455if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12456 $as_echo_n "(cached) " >&6 12457else 12458 case $ac_pt_PKG_CONFIG in 12459 [\\/]* | ?:[\\/]*) 12460 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12461 ;; 12462 *) 12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12464for as_dir in $PATH 12465do 12466 IFS=$as_save_IFS 12467 test -z "$as_dir" && as_dir=. 12468 for ac_exec_ext in '' $ac_executable_extensions; do 12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12470 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12472 break 2 12473 fi 12474done 12475 done 12476IFS=$as_save_IFS 12477 12478 ;; 12479esac 12480fi 12481ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12482if test -n "$ac_pt_PKG_CONFIG"; then 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12484$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12485else 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12487$as_echo "no" >&6; } 12488fi 12489 12490 if test "x$ac_pt_PKG_CONFIG" = x; then 12491 PKG_CONFIG="" 12492 else 12493 case $cross_compiling:$ac_tool_warned in 12494yes:) 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12497ac_tool_warned=yes ;; 12498esac 12499 PKG_CONFIG=$ac_pt_PKG_CONFIG 12500 fi 12501else 12502 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12503fi 12504 12505fi 12506if test -n "$PKG_CONFIG"; then 12507 _pkg_min_version=0.9.0 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12509$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12510 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12512$as_echo "yes" >&6; } 12513 else 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12515$as_echo "no" >&6; } 12516 PKG_CONFIG="" 12517 fi 12518fi 12519 12520pkg_failed=no 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 12522$as_echo_n "checking for CHECK... " >&6; } 12523 12524if test -n "$CHECK_CFLAGS"; then 12525 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 12526 elif test -n "$PKG_CONFIG"; then 12527 if test -n "$PKG_CONFIG" && \ 12528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 12529 ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 12530 ac_status=$? 12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12532 test $ac_status = 0; }; then 12533 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` 12534 test "x$?" != "x0" && pkg_failed=yes 12535else 12536 pkg_failed=yes 12537fi 12538 else 12539 pkg_failed=untried 12540fi 12541if test -n "$CHECK_LIBS"; then 12542 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 12543 elif test -n "$PKG_CONFIG"; then 12544 if test -n "$PKG_CONFIG" && \ 12545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 12546 ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 12547 ac_status=$? 12548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12549 test $ac_status = 0; }; then 12550 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` 12551 test "x$?" != "x0" && pkg_failed=yes 12552else 12553 pkg_failed=yes 12554fi 12555 else 12556 pkg_failed=untried 12557fi 12558 12559 12560 12561if test $pkg_failed = yes; then 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563$as_echo "no" >&6; } 12564 12565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12566 _pkg_short_errors_supported=yes 12567else 12568 _pkg_short_errors_supported=no 12569fi 12570 if test $_pkg_short_errors_supported = yes; then 12571 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.5" 2>&1` 12572 else 12573 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.5" 2>&1` 12574 fi 12575 # Put the nasty error message in config.log where it belongs 12576 echo "$CHECK_PKG_ERRORS" >&5 12577 12578 have_check= 12579elif test $pkg_failed = untried; then 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12581$as_echo "no" >&6; } 12582 have_check= 12583else 12584 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 12585 CHECK_LIBS=$pkg_cv_CHECK_LIBS 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12587$as_echo "yes" >&6; } 12588 have_check=1 12589fi 12590if test x$have_check = x; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&5 12592$as_echo "$as_me: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&2;} 12593fi 12594 if test x$have_check != x; then 12595 HAVE_CHECK_TRUE= 12596 HAVE_CHECK_FALSE='#' 12597else 12598 HAVE_CHECK_TRUE='#' 12599 HAVE_CHECK_FALSE= 12600fi 12601 12602 12603# Check whether --enable-silent-rules was given. 12604if test "${enable_silent_rules+set}" = set; then : 12605 enableval=$enable_silent_rules; 12606fi 12607 12608case $enable_silent_rules in # ((( 12609 yes) AM_DEFAULT_VERBOSITY=0;; 12610 no) AM_DEFAULT_VERBOSITY=1;; 12611 *) AM_DEFAULT_VERBOSITY=1;; 12612esac 12613am_make=${MAKE-make} 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12615$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12616if ${am_cv_make_support_nested_variables+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618else 12619 if $as_echo 'TRUE=$(BAR$(V)) 12620BAR0=false 12621BAR1=true 12622V=1 12623am__doit: 12624 @$(TRUE) 12625.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12626 am_cv_make_support_nested_variables=yes 12627else 12628 am_cv_make_support_nested_variables=no 12629fi 12630fi 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12632$as_echo "$am_cv_make_support_nested_variables" >&6; } 12633if test $am_cv_make_support_nested_variables = yes; then 12634 AM_V='$(V)' 12635 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12636else 12637 AM_V=$AM_DEFAULT_VERBOSITY 12638 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12639fi 12640AM_BACKSLASH='\' 12641 12642 12643ac_config_headers="$ac_config_headers config.h" 12644 12645 12646 12647 12648PATH_UTILS_VERSION=0.2.1 12649 12650DHASH_VERSION=0.5.0 12651 12652COLLECTION_VERSION=0.7.0 12653 12654REF_ARRAY_VERSION=0.1.5 12655 12656BASICOBJECTS_VERSION=0.1.1 12657 12658INI_CONFIG_VERSION=1.3.1 12659 12660 12661 if git log -1 > /dev/null 2>&1; then 12662 GIT_CHECKOUT_TRUE= 12663 GIT_CHECKOUT_FALSE='#' 12664else 12665 GIT_CHECKOUT_TRUE='#' 12666 GIT_CHECKOUT_FALSE= 12667fi 12668 12669 12670# Extract the first word of "doxygen", so it can be a program name with args. 12671set dummy doxygen; ac_word=$2 12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12673$as_echo_n "checking for $ac_word... " >&6; } 12674if ${ac_cv_path_DOXYGEN+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 case $DOXYGEN in 12678 [\\/]* | ?:[\\/]*) 12679 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12680 ;; 12681 *) 12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12683for as_dir in $PATH 12684do 12685 IFS=$as_save_IFS 12686 test -z "$as_dir" && as_dir=. 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12689 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12691 break 2 12692 fi 12693done 12694 done 12695IFS=$as_save_IFS 12696 12697 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false" 12698 ;; 12699esac 12700fi 12701DOXYGEN=$ac_cv_path_DOXYGEN 12702if test -n "$DOXYGEN"; then 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12704$as_echo "$DOXYGEN" >&6; } 12705else 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12707$as_echo "no" >&6; } 12708fi 12709 12710 12711 if test x$DOXYGEN != xfalse ; then 12712 HAVE_DOXYGEN_TRUE= 12713 HAVE_DOXYGEN_FALSE='#' 12714else 12715 HAVE_DOXYGEN_TRUE='#' 12716 HAVE_DOXYGEN_FALSE= 12717fi 12718 12719 12720# Enable trace build 12721# Check whether --enable-trace was given. 12722if test "${enable_trace+set}" = set; then : 12723 enableval=$enable_trace; trace_level="$enableval" 12724else 12725 trace_level="0" 12726fi 12727 12728if test "$trace_level" -gt "0" -a "$trace_level" -lt "8" ; then : 12729 TRACE_VAR="-DTRACE_LEVEL=$trace_level" 12730 12731fi 12732 12733# The cast to long int works around a bug in the HP C Compiler 12734# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12735# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12736# This bug is HP SR number 8606223364. 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12738$as_echo_n "checking size of long... " >&6; } 12739if ${ac_cv_sizeof_long+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12743 12744else 12745 if test "$ac_cv_type_long" = yes; then 12746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12748as_fn_error 77 "cannot compute sizeof (long) 12749See \`config.log' for more details" "$LINENO" 5; } 12750 else 12751 ac_cv_sizeof_long=0 12752 fi 12753fi 12754 12755fi 12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12757$as_echo "$ac_cv_sizeof_long" >&6; } 12758 12759 12760 12761cat >>confdefs.h <<_ACEOF 12762#define SIZEOF_LONG $ac_cv_sizeof_long 12763_ACEOF 12764 12765 12766# The cast to long int works around a bug in the HP C Compiler 12767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12769# This bug is HP SR number 8606223364. 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12771$as_echo_n "checking size of long long... " >&6; } 12772if ${ac_cv_sizeof_long_long+:} false; then : 12773 $as_echo_n "(cached) " >&6 12774else 12775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12776 12777else 12778 if test "$ac_cv_type_long_long" = yes; then 12779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12781as_fn_error 77 "cannot compute sizeof (long long) 12782See \`config.log' for more details" "$LINENO" 5; } 12783 else 12784 ac_cv_sizeof_long_long=0 12785 fi 12786fi 12787 12788fi 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12790$as_echo "$ac_cv_sizeof_long_long" >&6; } 12791 12792 12793 12794cat >>confdefs.h <<_ACEOF 12795#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12796_ACEOF 12797 12798 12799 12800ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 12801if test "x$ac_cv_func_strcasestr" = xyes; then : 12802 12803$as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 12804 12805else 12806 as_fn_error $? "\"Platform must support strcasestr\"" "$LINENO" 5 12807fi 12808 12809 12810ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 12811if test "x$ac_cv_func_getline" = xyes; then : 12812 12813$as_echo "#define HAVE_GETLINE 1" >>confdefs.h 12814 12815else 12816 as_fn_error $? "\"Platform must support getline()\"" "$LINENO" 5 12817fi 12818 12819 12820 12821$as_echo "#define COL_MAX_DATA 65535" >>confdefs.h 12822 12823 12824 12825$as_echo "#define MAX_KEY 1024" >>confdefs.h 12826 12827 12828#Support old versions of autotools that don't provide docdir 12829 12830if test x$docdir = x; then 12831 docdir=${datadir}/doc/ding-libs 12832 12833fi 12834 12835ac_config_files="$ac_config_files Makefile contrib/ding-libs.spec path_utils/path_utils.cfg.doxy path_utils/path_utils.pc dhash/dhash.pc collection/collection.cfg.doxy collection/collection.pc refarray/ref_array.cfg.doxy refarray/ref_array.pc basicobjects/basicobjects.cfg.doxy basicobjects/basicobjects.pc ini/ini_config.cfg.doxy ini/ini_config.pc" 12836 12837cat >confcache <<\_ACEOF 12838# This file is a shell script that caches the results of configure 12839# tests run on this system so they can be shared between configure 12840# scripts and configure runs, see configure's option --config-cache. 12841# It is not useful on other systems. If it contains results you don't 12842# want to keep, you may remove or edit it. 12843# 12844# config.status only pays attention to the cache file if you give it 12845# the --recheck option to rerun configure. 12846# 12847# `ac_cv_env_foo' variables (set or unset) will be overridden when 12848# loading this file, other *unset* `ac_cv_foo' will be assigned the 12849# following values. 12850 12851_ACEOF 12852 12853# The following way of writing the cache mishandles newlines in values, 12854# but we know of no workaround that is simple, portable, and efficient. 12855# So, we kill variables containing newlines. 12856# Ultrix sh set writes to stderr and can't be redirected directly, 12857# and sets the high bit in the cache file unless we assign to the vars. 12858( 12859 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12860 eval ac_val=\$$ac_var 12861 case $ac_val in #( 12862 *${as_nl}*) 12863 case $ac_var in #( 12864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12866 esac 12867 case $ac_var in #( 12868 _ | IFS | as_nl) ;; #( 12869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12870 *) { eval $ac_var=; unset $ac_var;} ;; 12871 esac ;; 12872 esac 12873 done 12874 12875 (set) 2>&1 | 12876 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12877 *${as_nl}ac_space=\ *) 12878 # `set' does not quote correctly, so add quotes: double-quote 12879 # substitution turns \\\\ into \\, and sed turns \\ into \. 12880 sed -n \ 12881 "s/'/'\\\\''/g; 12882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12883 ;; #( 12884 *) 12885 # `set' quotes correctly as required by POSIX, so do not add quotes. 12886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12887 ;; 12888 esac | 12889 sort 12890) | 12891 sed ' 12892 /^ac_cv_env_/b end 12893 t clear 12894 :clear 12895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12896 t end 12897 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12898 :end' >>confcache 12899if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12900 if test -w "$cache_file"; then 12901 if test "x$cache_file" != "x/dev/null"; then 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12903$as_echo "$as_me: updating cache $cache_file" >&6;} 12904 if test ! -f "$cache_file" || test -h "$cache_file"; then 12905 cat confcache >"$cache_file" 12906 else 12907 case $cache_file in #( 12908 */* | ?:*) 12909 mv -f confcache "$cache_file"$$ && 12910 mv -f "$cache_file"$$ "$cache_file" ;; #( 12911 *) 12912 mv -f confcache "$cache_file" ;; 12913 esac 12914 fi 12915 fi 12916 else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12918$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12919 fi 12920fi 12921rm -f confcache 12922 12923test "x$prefix" = xNONE && prefix=$ac_default_prefix 12924# Let make expand exec_prefix. 12925test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12926 12927DEFS=-DHAVE_CONFIG_H 12928 12929ac_libobjs= 12930ac_ltlibobjs= 12931U= 12932for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12933 # 1. Remove the extension, and $U if already installed. 12934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12935 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12937 # will be set to the directory where LIBOBJS objects are built. 12938 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12939 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12940done 12941LIBOBJS=$ac_libobjs 12942 12943LTLIBOBJS=$ac_ltlibobjs 12944 12945 12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12947$as_echo_n "checking that generated files are newer than configure... " >&6; } 12948 if test -n "$am_sleep_pid"; then 12949 # Hide warnings about reused PIDs. 12950 wait $am_sleep_pid 2>/dev/null 12951 fi 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12953$as_echo "done" >&6; } 12954if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12955 as_fn_error $? "conditional \"AMDEP\" was never defined. 12956Usually this means the macro was only invoked conditionally." "$LINENO" 5 12957fi 12958if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12959 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12960Usually this means the macro was only invoked conditionally." "$LINENO" 5 12961fi 12962 if test -n "$EXEEXT"; then 12963 am__EXEEXT_TRUE= 12964 am__EXEEXT_FALSE='#' 12965else 12966 am__EXEEXT_TRUE='#' 12967 am__EXEEXT_FALSE= 12968fi 12969 12970if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then 12971 as_fn_error $? "conditional \"HAVE_GCC\" was never defined. 12972Usually this means the macro was only invoked conditionally." "$LINENO" 5 12973fi 12974if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 12975 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 12976Usually this means the macro was only invoked conditionally." "$LINENO" 5 12977fi 12978if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then 12979 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined. 12980Usually this means the macro was only invoked conditionally." "$LINENO" 5 12981fi 12982if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 12983 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 12984Usually this means the macro was only invoked conditionally." "$LINENO" 5 12985fi 12986 12987: "${CONFIG_STATUS=./config.status}" 12988ac_write_fail=0 12989ac_clean_files_save=$ac_clean_files 12990ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12991{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12992$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12993as_write_fail=0 12994cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12995#! $SHELL 12996# Generated by $as_me. 12997# Run this file to recreate the current configuration. 12998# Compiler output produced by configure, useful for debugging 12999# configure, is in config.log if it exists. 13000 13001debug=false 13002ac_cs_recheck=false 13003ac_cs_silent=false 13004 13005SHELL=\${CONFIG_SHELL-$SHELL} 13006export SHELL 13007_ASEOF 13008cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13009## -------------------- ## 13010## M4sh Initialization. ## 13011## -------------------- ## 13012 13013# Be more Bourne compatible 13014DUALCASE=1; export DUALCASE # for MKS sh 13015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13016 emulate sh 13017 NULLCMD=: 13018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13019 # is contrary to our usage. Disable this feature. 13020 alias -g '${1+"$@"}'='"$@"' 13021 setopt NO_GLOB_SUBST 13022else 13023 case `(set -o) 2>/dev/null` in #( 13024 *posix*) : 13025 set -o posix ;; #( 13026 *) : 13027 ;; 13028esac 13029fi 13030 13031 13032as_nl=' 13033' 13034export as_nl 13035# Printing a long string crashes Solaris 7 /usr/bin/printf. 13036as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13039# Prefer a ksh shell builtin over an external printf program on Solaris, 13040# but without wasting forks for bash or zsh. 13041if test -z "$BASH_VERSION$ZSH_VERSION" \ 13042 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13043 as_echo='print -r --' 13044 as_echo_n='print -rn --' 13045elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13046 as_echo='printf %s\n' 13047 as_echo_n='printf %s' 13048else 13049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13050 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13051 as_echo_n='/usr/ucb/echo -n' 13052 else 13053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13054 as_echo_n_body='eval 13055 arg=$1; 13056 case $arg in #( 13057 *"$as_nl"*) 13058 expr "X$arg" : "X\\(.*\\)$as_nl"; 13059 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13060 esac; 13061 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13062 ' 13063 export as_echo_n_body 13064 as_echo_n='sh -c $as_echo_n_body as_echo' 13065 fi 13066 export as_echo_body 13067 as_echo='sh -c $as_echo_body as_echo' 13068fi 13069 13070# The user is always right. 13071if test "${PATH_SEPARATOR+set}" != set; then 13072 PATH_SEPARATOR=: 13073 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13074 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13075 PATH_SEPARATOR=';' 13076 } 13077fi 13078 13079 13080# IFS 13081# We need space, tab and new line, in precisely that order. Quoting is 13082# there to prevent editors from complaining about space-tab. 13083# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13084# splitting by setting IFS to empty value.) 13085IFS=" "" $as_nl" 13086 13087# Find who we are. Look in the path if we contain no directory separator. 13088as_myself= 13089case $0 in #(( 13090 *[\\/]* ) as_myself=$0 ;; 13091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13092for as_dir in $PATH 13093do 13094 IFS=$as_save_IFS 13095 test -z "$as_dir" && as_dir=. 13096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13097 done 13098IFS=$as_save_IFS 13099 13100 ;; 13101esac 13102# We did not find ourselves, most probably we were run as `sh COMMAND' 13103# in which case we are not to be found in the path. 13104if test "x$as_myself" = x; then 13105 as_myself=$0 13106fi 13107if test ! -f "$as_myself"; then 13108 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13109 exit 1 13110fi 13111 13112# Unset variables that we do not need and which cause bugs (e.g. in 13113# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13114# suppresses any "Segmentation fault" message there. '((' could 13115# trigger a bug in pdksh 5.2.14. 13116for as_var in BASH_ENV ENV MAIL MAILPATH 13117do eval test x\${$as_var+set} = xset \ 13118 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13119done 13120PS1='$ ' 13121PS2='> ' 13122PS4='+ ' 13123 13124# NLS nuisances. 13125LC_ALL=C 13126export LC_ALL 13127LANGUAGE=C 13128export LANGUAGE 13129 13130# CDPATH. 13131(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13132 13133 13134# as_fn_error STATUS ERROR [LINENO LOG_FD] 13135# ---------------------------------------- 13136# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13137# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13138# script with STATUS, using 1 if that was 0. 13139as_fn_error () 13140{ 13141 as_status=$1; test $as_status -eq 0 && as_status=1 13142 if test "$4"; then 13143 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13144 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13145 fi 13146 $as_echo "$as_me: error: $2" >&2 13147 as_fn_exit $as_status 13148} # as_fn_error 13149 13150 13151# as_fn_set_status STATUS 13152# ----------------------- 13153# Set $? to STATUS, without forking. 13154as_fn_set_status () 13155{ 13156 return $1 13157} # as_fn_set_status 13158 13159# as_fn_exit STATUS 13160# ----------------- 13161# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13162as_fn_exit () 13163{ 13164 set +e 13165 as_fn_set_status $1 13166 exit $1 13167} # as_fn_exit 13168 13169# as_fn_unset VAR 13170# --------------- 13171# Portably unset VAR. 13172as_fn_unset () 13173{ 13174 { eval $1=; unset $1;} 13175} 13176as_unset=as_fn_unset 13177# as_fn_append VAR VALUE 13178# ---------------------- 13179# Append the text in VALUE to the end of the definition contained in VAR. Take 13180# advantage of any shell optimizations that allow amortized linear growth over 13181# repeated appends, instead of the typical quadratic growth present in naive 13182# implementations. 13183if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13184 eval 'as_fn_append () 13185 { 13186 eval $1+=\$2 13187 }' 13188else 13189 as_fn_append () 13190 { 13191 eval $1=\$$1\$2 13192 } 13193fi # as_fn_append 13194 13195# as_fn_arith ARG... 13196# ------------------ 13197# Perform arithmetic evaluation on the ARGs, and store the result in the 13198# global $as_val. Take advantage of shells that can avoid forks. The arguments 13199# must be portable across $(()) and expr. 13200if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13201 eval 'as_fn_arith () 13202 { 13203 as_val=$(( $* )) 13204 }' 13205else 13206 as_fn_arith () 13207 { 13208 as_val=`expr "$@" || test $? -eq 1` 13209 } 13210fi # as_fn_arith 13211 13212 13213if expr a : '\(a\)' >/dev/null 2>&1 && 13214 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13215 as_expr=expr 13216else 13217 as_expr=false 13218fi 13219 13220if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13221 as_basename=basename 13222else 13223 as_basename=false 13224fi 13225 13226if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13227 as_dirname=dirname 13228else 13229 as_dirname=false 13230fi 13231 13232as_me=`$as_basename -- "$0" || 13233$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13234 X"$0" : 'X\(//\)$' \| \ 13235 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13236$as_echo X/"$0" | 13237 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13238 s//\1/ 13239 q 13240 } 13241 /^X\/\(\/\/\)$/{ 13242 s//\1/ 13243 q 13244 } 13245 /^X\/\(\/\).*/{ 13246 s//\1/ 13247 q 13248 } 13249 s/.*/./; q'` 13250 13251# Avoid depending upon Character Ranges. 13252as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13253as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13254as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13255as_cr_digits='0123456789' 13256as_cr_alnum=$as_cr_Letters$as_cr_digits 13257 13258ECHO_C= ECHO_N= ECHO_T= 13259case `echo -n x` in #((((( 13260-n*) 13261 case `echo 'xy\c'` in 13262 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13263 xy) ECHO_C='\c';; 13264 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13265 ECHO_T=' ';; 13266 esac;; 13267*) 13268 ECHO_N='-n';; 13269esac 13270 13271rm -f conf$$ conf$$.exe conf$$.file 13272if test -d conf$$.dir; then 13273 rm -f conf$$.dir/conf$$.file 13274else 13275 rm -f conf$$.dir 13276 mkdir conf$$.dir 2>/dev/null 13277fi 13278if (echo >conf$$.file) 2>/dev/null; then 13279 if ln -s conf$$.file conf$$ 2>/dev/null; then 13280 as_ln_s='ln -s' 13281 # ... but there are two gotchas: 13282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13284 # In both cases, we have to default to `cp -pR'. 13285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13286 as_ln_s='cp -pR' 13287 elif ln conf$$.file conf$$ 2>/dev/null; then 13288 as_ln_s=ln 13289 else 13290 as_ln_s='cp -pR' 13291 fi 13292else 13293 as_ln_s='cp -pR' 13294fi 13295rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13296rmdir conf$$.dir 2>/dev/null 13297 13298 13299# as_fn_mkdir_p 13300# ------------- 13301# Create "$as_dir" as a directory, including parents if necessary. 13302as_fn_mkdir_p () 13303{ 13304 13305 case $as_dir in #( 13306 -*) as_dir=./$as_dir;; 13307 esac 13308 test -d "$as_dir" || eval $as_mkdir_p || { 13309 as_dirs= 13310 while :; do 13311 case $as_dir in #( 13312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13313 *) as_qdir=$as_dir;; 13314 esac 13315 as_dirs="'$as_qdir' $as_dirs" 13316 as_dir=`$as_dirname -- "$as_dir" || 13317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13318 X"$as_dir" : 'X\(//\)[^/]' \| \ 13319 X"$as_dir" : 'X\(//\)$' \| \ 13320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13321$as_echo X"$as_dir" | 13322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13323 s//\1/ 13324 q 13325 } 13326 /^X\(\/\/\)[^/].*/{ 13327 s//\1/ 13328 q 13329 } 13330 /^X\(\/\/\)$/{ 13331 s//\1/ 13332 q 13333 } 13334 /^X\(\/\).*/{ 13335 s//\1/ 13336 q 13337 } 13338 s/.*/./; q'` 13339 test -d "$as_dir" && break 13340 done 13341 test -z "$as_dirs" || eval "mkdir $as_dirs" 13342 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13343 13344 13345} # as_fn_mkdir_p 13346if mkdir -p . 2>/dev/null; then 13347 as_mkdir_p='mkdir -p "$as_dir"' 13348else 13349 test -d ./-p && rmdir ./-p 13350 as_mkdir_p=false 13351fi 13352 13353 13354# as_fn_executable_p FILE 13355# ----------------------- 13356# Test if FILE is an executable regular file. 13357as_fn_executable_p () 13358{ 13359 test -f "$1" && test -x "$1" 13360} # as_fn_executable_p 13361as_test_x='test -x' 13362as_executable_p=as_fn_executable_p 13363 13364# Sed expression to map a string onto a valid CPP name. 13365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13366 13367# Sed expression to map a string onto a valid variable name. 13368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13369 13370 13371exec 6>&1 13372## ----------------------------------- ## 13373## Main body of $CONFIG_STATUS script. ## 13374## ----------------------------------- ## 13375_ASEOF 13376test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13377 13378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13379# Save the log message, to keep $0 and so on meaningful, and to 13380# report actual input values of CONFIG_FILES etc. instead of their 13381# values after options handling. 13382ac_log=" 13383This file was extended by ding-libs $as_me 0.6.1, which was 13384generated by GNU Autoconf 2.69. Invocation command line was 13385 13386 CONFIG_FILES = $CONFIG_FILES 13387 CONFIG_HEADERS = $CONFIG_HEADERS 13388 CONFIG_LINKS = $CONFIG_LINKS 13389 CONFIG_COMMANDS = $CONFIG_COMMANDS 13390 $ $0 $@ 13391 13392on `(hostname || uname -n) 2>/dev/null | sed 1q` 13393" 13394 13395_ACEOF 13396 13397case $ac_config_files in *" 13398"*) set x $ac_config_files; shift; ac_config_files=$*;; 13399esac 13400 13401case $ac_config_headers in *" 13402"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13403esac 13404 13405 13406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13407# Files that config.status was made for. 13408config_files="$ac_config_files" 13409config_headers="$ac_config_headers" 13410config_commands="$ac_config_commands" 13411 13412_ACEOF 13413 13414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13415ac_cs_usage="\ 13416\`$as_me' instantiates files and other configuration actions 13417from templates according to the current configuration. Unless the files 13418and actions are specified as TAGs, all are instantiated by default. 13419 13420Usage: $0 [OPTION]... [TAG]... 13421 13422 -h, --help print this help, then exit 13423 -V, --version print version number and configuration settings, then exit 13424 --config print configuration, then exit 13425 -q, --quiet, --silent 13426 do not print progress messages 13427 -d, --debug don't remove temporary files 13428 --recheck update $as_me by reconfiguring in the same conditions 13429 --file=FILE[:TEMPLATE] 13430 instantiate the configuration file FILE 13431 --header=FILE[:TEMPLATE] 13432 instantiate the configuration header FILE 13433 13434Configuration files: 13435$config_files 13436 13437Configuration headers: 13438$config_headers 13439 13440Configuration commands: 13441$config_commands 13442 13443Report bugs to <sssd-devel@lists.fedorahosted.org>." 13444 13445_ACEOF 13446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13447ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13448ac_cs_version="\\ 13449ding-libs config.status 0.6.1 13450configured by $0, generated by GNU Autoconf 2.69, 13451 with options \\"\$ac_cs_config\\" 13452 13453Copyright (C) 2012 Free Software Foundation, Inc. 13454This config.status script is free software; the Free Software Foundation 13455gives unlimited permission to copy, distribute and modify it." 13456 13457ac_pwd='$ac_pwd' 13458srcdir='$srcdir' 13459INSTALL='$INSTALL' 13460MKDIR_P='$MKDIR_P' 13461AWK='$AWK' 13462test -n "\$AWK" || AWK=awk 13463_ACEOF 13464 13465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13466# The default lists apply if the user does not specify any file. 13467ac_need_defaults=: 13468while test $# != 0 13469do 13470 case $1 in 13471 --*=?*) 13472 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13474 ac_shift=: 13475 ;; 13476 --*=) 13477 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13478 ac_optarg= 13479 ac_shift=: 13480 ;; 13481 *) 13482 ac_option=$1 13483 ac_optarg=$2 13484 ac_shift=shift 13485 ;; 13486 esac 13487 13488 case $ac_option in 13489 # Handling of the options. 13490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13491 ac_cs_recheck=: ;; 13492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13493 $as_echo "$ac_cs_version"; exit ;; 13494 --config | --confi | --conf | --con | --co | --c ) 13495 $as_echo "$ac_cs_config"; exit ;; 13496 --debug | --debu | --deb | --de | --d | -d ) 13497 debug=: ;; 13498 --file | --fil | --fi | --f ) 13499 $ac_shift 13500 case $ac_optarg in 13501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13502 '') as_fn_error $? "missing file argument" ;; 13503 esac 13504 as_fn_append CONFIG_FILES " '$ac_optarg'" 13505 ac_need_defaults=false;; 13506 --header | --heade | --head | --hea ) 13507 $ac_shift 13508 case $ac_optarg in 13509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13510 esac 13511 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13512 ac_need_defaults=false;; 13513 --he | --h) 13514 # Conflict between --help and --header 13515 as_fn_error $? "ambiguous option: \`$1' 13516Try \`$0 --help' for more information.";; 13517 --help | --hel | -h ) 13518 $as_echo "$ac_cs_usage"; exit ;; 13519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13520 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13521 ac_cs_silent=: ;; 13522 13523 # This is an error. 13524 -*) as_fn_error $? "unrecognized option: \`$1' 13525Try \`$0 --help' for more information." ;; 13526 13527 *) as_fn_append ac_config_targets " $1" 13528 ac_need_defaults=false ;; 13529 13530 esac 13531 shift 13532done 13533 13534ac_configure_extra_args= 13535 13536if $ac_cs_silent; then 13537 exec 6>/dev/null 13538 ac_configure_extra_args="$ac_configure_extra_args --silent" 13539fi 13540 13541_ACEOF 13542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13543if \$ac_cs_recheck; then 13544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13545 shift 13546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13547 CONFIG_SHELL='$SHELL' 13548 export CONFIG_SHELL 13549 exec "\$@" 13550fi 13551 13552_ACEOF 13553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13554exec 5>>config.log 13555{ 13556 echo 13557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13558## Running $as_me. ## 13559_ASBOX 13560 $as_echo "$ac_log" 13561} >&5 13562 13563_ACEOF 13564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13565# 13566# INIT-COMMANDS 13567# 13568AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13569 13570 13571# The HP-UX ksh and POSIX shell print the target directory to stdout 13572# if CDPATH is set. 13573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13574 13575sed_quote_subst='$sed_quote_subst' 13576double_quote_subst='$double_quote_subst' 13577delay_variable_subst='$delay_variable_subst' 13578macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13579macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13580enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13581enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13582pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13583enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13584shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13585SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13586ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13587PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13588host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13589host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13590host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13591build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13592build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13593build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13594SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13595Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13596GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13597EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13598FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13599LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13600NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13601LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13602max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13603ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13604exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13605lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13606lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13607lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13608lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13609lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13610reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13611reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13612OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13613deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13614file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13615file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13616want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13617DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13618sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13619AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13620AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13621archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13622STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13623RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13624old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13625old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13626old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13627lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13628CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13629CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13630compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13631GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13632lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13633lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13634lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13635lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13636lt_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"`' 13637lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13638nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13639lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13640lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13641objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13642MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13643lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13644lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13645lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13646lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13647lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13648need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13649MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13650DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13651NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13652LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13653OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13654OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13655libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13656shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13657extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13658archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13659enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13660export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13661whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13662compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13663old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13664old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13665archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13666archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13667module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13668module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13669with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13670allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13671no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13672hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13673hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13674hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13675hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13676hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13677hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13678hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13679inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13680link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13681always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13682export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13683exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13684include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13685prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13686postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13687file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13688variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13689need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13690need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13691version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13692runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13693shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13694shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13695libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13696library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13697soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13698install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13699postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13700postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13701finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13702finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13703hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13704sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13705configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13706configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13707hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13708enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13709enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13710enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13711old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13712striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13713 13714LTCC='$LTCC' 13715LTCFLAGS='$LTCFLAGS' 13716compiler='$compiler_DEFAULT' 13717 13718# A function that is used when there is no print builtin or printf. 13719func_fallback_echo () 13720{ 13721 eval 'cat <<_LTECHO_EOF 13722\$1 13723_LTECHO_EOF' 13724} 13725 13726# Quote evaled strings. 13727for var in SHELL \ 13728ECHO \ 13729PATH_SEPARATOR \ 13730SED \ 13731GREP \ 13732EGREP \ 13733FGREP \ 13734LD \ 13735NM \ 13736LN_S \ 13737lt_SP2NL \ 13738lt_NL2SP \ 13739reload_flag \ 13740OBJDUMP \ 13741deplibs_check_method \ 13742file_magic_cmd \ 13743file_magic_glob \ 13744want_nocaseglob \ 13745DLLTOOL \ 13746sharedlib_from_linklib_cmd \ 13747AR \ 13748AR_FLAGS \ 13749archiver_list_spec \ 13750STRIP \ 13751RANLIB \ 13752CC \ 13753CFLAGS \ 13754compiler \ 13755lt_cv_sys_global_symbol_pipe \ 13756lt_cv_sys_global_symbol_to_cdecl \ 13757lt_cv_sys_global_symbol_to_import \ 13758lt_cv_sys_global_symbol_to_c_name_address \ 13759lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13760lt_cv_nm_interface \ 13761nm_file_list_spec \ 13762lt_cv_truncate_bin \ 13763lt_prog_compiler_no_builtin_flag \ 13764lt_prog_compiler_pic \ 13765lt_prog_compiler_wl \ 13766lt_prog_compiler_static \ 13767lt_cv_prog_compiler_c_o \ 13768need_locks \ 13769MANIFEST_TOOL \ 13770DSYMUTIL \ 13771NMEDIT \ 13772LIPO \ 13773OTOOL \ 13774OTOOL64 \ 13775shrext_cmds \ 13776export_dynamic_flag_spec \ 13777whole_archive_flag_spec \ 13778compiler_needs_object \ 13779with_gnu_ld \ 13780allow_undefined_flag \ 13781no_undefined_flag \ 13782hardcode_libdir_flag_spec \ 13783hardcode_libdir_separator \ 13784exclude_expsyms \ 13785include_expsyms \ 13786file_list_spec \ 13787variables_saved_for_relink \ 13788libname_spec \ 13789library_names_spec \ 13790soname_spec \ 13791install_override_mode \ 13792finish_eval \ 13793old_striplib \ 13794striplib; do 13795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13796 *[\\\\\\\`\\"\\\$]*) 13797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13798 ;; 13799 *) 13800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13801 ;; 13802 esac 13803done 13804 13805# Double-quote double-evaled strings. 13806for var in reload_cmds \ 13807old_postinstall_cmds \ 13808old_postuninstall_cmds \ 13809old_archive_cmds \ 13810extract_expsyms_cmds \ 13811old_archive_from_new_cmds \ 13812old_archive_from_expsyms_cmds \ 13813archive_cmds \ 13814archive_expsym_cmds \ 13815module_cmds \ 13816module_expsym_cmds \ 13817export_symbols_cmds \ 13818prelink_cmds \ 13819postlink_cmds \ 13820postinstall_cmds \ 13821postuninstall_cmds \ 13822finish_cmds \ 13823sys_lib_search_path_spec \ 13824configure_time_dlsearch_path \ 13825configure_time_lt_sys_library_path; do 13826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13827 *[\\\\\\\`\\"\\\$]*) 13828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13829 ;; 13830 *) 13831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13832 ;; 13833 esac 13834done 13835 13836ac_aux_dir='$ac_aux_dir' 13837 13838# See if we are running on zsh, and set the options that allow our 13839# commands through without removal of \ escapes INIT. 13840if test -n "\${ZSH_VERSION+set}"; then 13841 setopt NO_GLOB_SUBST 13842fi 13843 13844 13845 PACKAGE='$PACKAGE' 13846 VERSION='$VERSION' 13847 RM='$RM' 13848 ofile='$ofile' 13849 13850 13851 13852 13853_ACEOF 13854 13855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13856 13857# Handling of arguments. 13858for ac_config_target in $ac_config_targets 13859do 13860 case $ac_config_target in 13861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13862 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13863 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13864 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13865 "contrib/ding-libs.spec") CONFIG_FILES="$CONFIG_FILES contrib/ding-libs.spec" ;; 13866 "path_utils/path_utils.cfg.doxy") CONFIG_FILES="$CONFIG_FILES path_utils/path_utils.cfg.doxy" ;; 13867 "path_utils/path_utils.pc") CONFIG_FILES="$CONFIG_FILES path_utils/path_utils.pc" ;; 13868 "dhash/dhash.pc") CONFIG_FILES="$CONFIG_FILES dhash/dhash.pc" ;; 13869 "collection/collection.cfg.doxy") CONFIG_FILES="$CONFIG_FILES collection/collection.cfg.doxy" ;; 13870 "collection/collection.pc") CONFIG_FILES="$CONFIG_FILES collection/collection.pc" ;; 13871 "refarray/ref_array.cfg.doxy") CONFIG_FILES="$CONFIG_FILES refarray/ref_array.cfg.doxy" ;; 13872 "refarray/ref_array.pc") CONFIG_FILES="$CONFIG_FILES refarray/ref_array.pc" ;; 13873 "basicobjects/basicobjects.cfg.doxy") CONFIG_FILES="$CONFIG_FILES basicobjects/basicobjects.cfg.doxy" ;; 13874 "basicobjects/basicobjects.pc") CONFIG_FILES="$CONFIG_FILES basicobjects/basicobjects.pc" ;; 13875 "ini/ini_config.cfg.doxy") CONFIG_FILES="$CONFIG_FILES ini/ini_config.cfg.doxy" ;; 13876 "ini/ini_config.pc") CONFIG_FILES="$CONFIG_FILES ini/ini_config.pc" ;; 13877 13878 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13879 esac 13880done 13881 13882 13883# If the user did not use the arguments to specify the items to instantiate, 13884# then the envvar interface is used. Set only those that are not. 13885# We use the long form for the default assignment because of an extremely 13886# bizarre bug on SunOS 4.1.3. 13887if $ac_need_defaults; then 13888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13891fi 13892 13893# Have a temporary directory for convenience. Make it in the build tree 13894# simply because there is no reason against having it here, and in addition, 13895# creating and moving files from /tmp can sometimes cause problems. 13896# Hook for its removal unless debugging. 13897# Note that there is a small window in which the directory will not be cleaned: 13898# after its creation but before its name has been assigned to `$tmp'. 13899$debug || 13900{ 13901 tmp= ac_tmp= 13902 trap 'exit_status=$? 13903 : "${ac_tmp:=$tmp}" 13904 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13905' 0 13906 trap 'as_fn_exit 1' 1 2 13 15 13907} 13908# Create a (secure) tmp directory for tmp files. 13909 13910{ 13911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13912 test -d "$tmp" 13913} || 13914{ 13915 tmp=./conf$$-$RANDOM 13916 (umask 077 && mkdir "$tmp") 13917} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13918ac_tmp=$tmp 13919 13920# Set up the scripts for CONFIG_FILES section. 13921# No need to generate them if there are no CONFIG_FILES. 13922# This happens for instance with `./config.status config.h'. 13923if test -n "$CONFIG_FILES"; then 13924 13925 13926ac_cr=`echo X | tr X '\015'` 13927# On cygwin, bash can eat \r inside `` if the user requested igncr. 13928# But we know of no other shell where ac_cr would be empty at this 13929# point, so we can use a bashism as a fallback. 13930if test "x$ac_cr" = x; then 13931 eval ac_cr=\$\'\\r\' 13932fi 13933ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13934if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13935 ac_cs_awk_cr='\\r' 13936else 13937 ac_cs_awk_cr=$ac_cr 13938fi 13939 13940echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13941_ACEOF 13942 13943 13944{ 13945 echo "cat >conf$$subs.awk <<_ACEOF" && 13946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13947 echo "_ACEOF" 13948} >conf$$subs.sh || 13949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13950ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13951ac_delim='%!_!# ' 13952for ac_last_try in false false false false false :; do 13953 . ./conf$$subs.sh || 13954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13955 13956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13957 if test $ac_delim_n = $ac_delim_num; then 13958 break 13959 elif $ac_last_try; then 13960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13961 else 13962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13963 fi 13964done 13965rm -f conf$$subs.sh 13966 13967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13968cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13969_ACEOF 13970sed -n ' 13971h 13972s/^/S["/; s/!.*/"]=/ 13973p 13974g 13975s/^[^!]*!// 13976:repl 13977t repl 13978s/'"$ac_delim"'$// 13979t delim 13980:nl 13981h 13982s/\(.\{148\}\)..*/\1/ 13983t more1 13984s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13985p 13986n 13987b repl 13988:more1 13989s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13990p 13991g 13992s/.\{148\}// 13993t nl 13994:delim 13995h 13996s/\(.\{148\}\)..*/\1/ 13997t more2 13998s/["\\]/\\&/g; s/^/"/; s/$/"/ 13999p 14000b 14001:more2 14002s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14003p 14004g 14005s/.\{148\}// 14006t delim 14007' <conf$$subs.awk | sed ' 14008/^[^""]/{ 14009 N 14010 s/\n// 14011} 14012' >>$CONFIG_STATUS || ac_write_fail=1 14013rm -f conf$$subs.awk 14014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14015_ACAWK 14016cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14017 for (key in S) S_is_set[key] = 1 14018 FS = "" 14019 14020} 14021{ 14022 line = $ 0 14023 nfields = split(line, field, "@") 14024 substed = 0 14025 len = length(field[1]) 14026 for (i = 2; i < nfields; i++) { 14027 key = field[i] 14028 keylen = length(key) 14029 if (S_is_set[key]) { 14030 value = S[key] 14031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14032 len += length(value) + length(field[++i]) 14033 substed = 1 14034 } else 14035 len += 1 + keylen 14036 } 14037 14038 print line 14039} 14040 14041_ACAWK 14042_ACEOF 14043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14044if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14045 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14046else 14047 cat 14048fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14049 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14050_ACEOF 14051 14052# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14053# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14054# trailing colons and then remove the whole line if VPATH becomes empty 14055# (actually we leave an empty line to preserve line numbers). 14056if test "x$srcdir" = x.; then 14057 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14058h 14059s/// 14060s/^/:/ 14061s/[ ]*$/:/ 14062s/:\$(srcdir):/:/g 14063s/:\${srcdir}:/:/g 14064s/:@srcdir@:/:/g 14065s/^:*// 14066s/:*$// 14067x 14068s/\(=[ ]*\).*/\1/ 14069G 14070s/\n// 14071s/^[^=]*=[ ]*$// 14072}' 14073fi 14074 14075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14076fi # test -n "$CONFIG_FILES" 14077 14078# Set up the scripts for CONFIG_HEADERS section. 14079# No need to generate them if there are no CONFIG_HEADERS. 14080# This happens for instance with `./config.status Makefile'. 14081if test -n "$CONFIG_HEADERS"; then 14082cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14083BEGIN { 14084_ACEOF 14085 14086# Transform confdefs.h into an awk script `defines.awk', embedded as 14087# here-document in config.status, that substitutes the proper values into 14088# config.h.in to produce config.h. 14089 14090# Create a delimiter string that does not exist in confdefs.h, to ease 14091# handling of long lines. 14092ac_delim='%!_!# ' 14093for ac_last_try in false false :; do 14094 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14095 if test -z "$ac_tt"; then 14096 break 14097 elif $ac_last_try; then 14098 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14099 else 14100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14101 fi 14102done 14103 14104# For the awk script, D is an array of macro values keyed by name, 14105# likewise P contains macro parameters if any. Preserve backslash 14106# newline sequences. 14107 14108ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14109sed -n ' 14110s/.\{148\}/&'"$ac_delim"'/g 14111t rset 14112:rset 14113s/^[ ]*#[ ]*define[ ][ ]*/ / 14114t def 14115d 14116:def 14117s/\\$// 14118t bsnl 14119s/["\\]/\\&/g 14120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14121D["\1"]=" \3"/p 14122s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14123d 14124:bsnl 14125s/["\\]/\\&/g 14126s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14127D["\1"]=" \3\\\\\\n"\\/p 14128t cont 14129s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14130t cont 14131d 14132:cont 14133n 14134s/.\{148\}/&'"$ac_delim"'/g 14135t clear 14136:clear 14137s/\\$// 14138t bsnlc 14139s/["\\]/\\&/g; s/^/"/; s/$/"/p 14140d 14141:bsnlc 14142s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14143b cont 14144' <confdefs.h | sed ' 14145s/'"$ac_delim"'/"\\\ 14146"/g' >>$CONFIG_STATUS || ac_write_fail=1 14147 14148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14149 for (key in D) D_is_set[key] = 1 14150 FS = "" 14151} 14152/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14153 line = \$ 0 14154 split(line, arg, " ") 14155 if (arg[1] == "#") { 14156 defundef = arg[2] 14157 mac1 = arg[3] 14158 } else { 14159 defundef = substr(arg[1], 2) 14160 mac1 = arg[2] 14161 } 14162 split(mac1, mac2, "(") #) 14163 macro = mac2[1] 14164 prefix = substr(line, 1, index(line, defundef) - 1) 14165 if (D_is_set[macro]) { 14166 # Preserve the white space surrounding the "#". 14167 print prefix "define", macro P[macro] D[macro] 14168 next 14169 } else { 14170 # Replace #undef with comments. This is necessary, for example, 14171 # in the case of _POSIX_SOURCE, which is predefined and required 14172 # on some systems where configure will not decide to define it. 14173 if (defundef == "undef") { 14174 print "/*", prefix defundef, macro, "*/" 14175 next 14176 } 14177 } 14178} 14179{ print } 14180_ACAWK 14181_ACEOF 14182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14183 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14184fi # test -n "$CONFIG_HEADERS" 14185 14186 14187eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14188shift 14189for ac_tag 14190do 14191 case $ac_tag in 14192 :[FHLC]) ac_mode=$ac_tag; continue;; 14193 esac 14194 case $ac_mode$ac_tag in 14195 :[FHL]*:*);; 14196 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14197 :[FH]-) ac_tag=-:-;; 14198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14199 esac 14200 ac_save_IFS=$IFS 14201 IFS=: 14202 set x $ac_tag 14203 IFS=$ac_save_IFS 14204 shift 14205 ac_file=$1 14206 shift 14207 14208 case $ac_mode in 14209 :L) ac_source=$1;; 14210 :[FH]) 14211 ac_file_inputs= 14212 for ac_f 14213 do 14214 case $ac_f in 14215 -) ac_f="$ac_tmp/stdin";; 14216 *) # Look for the file first in the build tree, then in the source tree 14217 # (if the path is not absolute). The absolute path cannot be DOS-style, 14218 # because $ac_f cannot contain `:'. 14219 test -f "$ac_f" || 14220 case $ac_f in 14221 [\\/$]*) false;; 14222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14223 esac || 14224 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14225 esac 14226 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14227 as_fn_append ac_file_inputs " '$ac_f'" 14228 done 14229 14230 # Let's still pretend it is `configure' which instantiates (i.e., don't 14231 # use $as_me), people would be surprised to read: 14232 # /* config.h. Generated by config.status. */ 14233 configure_input='Generated from '` 14234 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14235 `' by configure.' 14236 if test x"$ac_file" != x-; then 14237 configure_input="$ac_file. $configure_input" 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14239$as_echo "$as_me: creating $ac_file" >&6;} 14240 fi 14241 # Neutralize special characters interpreted by sed in replacement strings. 14242 case $configure_input in #( 14243 *\&* | *\|* | *\\* ) 14244 ac_sed_conf_input=`$as_echo "$configure_input" | 14245 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14246 *) ac_sed_conf_input=$configure_input;; 14247 esac 14248 14249 case $ac_tag in 14250 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14252 esac 14253 ;; 14254 esac 14255 14256 ac_dir=`$as_dirname -- "$ac_file" || 14257$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14258 X"$ac_file" : 'X\(//\)[^/]' \| \ 14259 X"$ac_file" : 'X\(//\)$' \| \ 14260 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14261$as_echo X"$ac_file" | 14262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14263 s//\1/ 14264 q 14265 } 14266 /^X\(\/\/\)[^/].*/{ 14267 s//\1/ 14268 q 14269 } 14270 /^X\(\/\/\)$/{ 14271 s//\1/ 14272 q 14273 } 14274 /^X\(\/\).*/{ 14275 s//\1/ 14276 q 14277 } 14278 s/.*/./; q'` 14279 as_dir="$ac_dir"; as_fn_mkdir_p 14280 ac_builddir=. 14281 14282case "$ac_dir" in 14283.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14284*) 14285 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14286 # A ".." for each directory in $ac_dir_suffix. 14287 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14288 case $ac_top_builddir_sub in 14289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14291 esac ;; 14292esac 14293ac_abs_top_builddir=$ac_pwd 14294ac_abs_builddir=$ac_pwd$ac_dir_suffix 14295# for backward compatibility: 14296ac_top_builddir=$ac_top_build_prefix 14297 14298case $srcdir in 14299 .) # We are building in place. 14300 ac_srcdir=. 14301 ac_top_srcdir=$ac_top_builddir_sub 14302 ac_abs_top_srcdir=$ac_pwd ;; 14303 [\\/]* | ?:[\\/]* ) # Absolute name. 14304 ac_srcdir=$srcdir$ac_dir_suffix; 14305 ac_top_srcdir=$srcdir 14306 ac_abs_top_srcdir=$srcdir ;; 14307 *) # Relative name. 14308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14309 ac_top_srcdir=$ac_top_build_prefix$srcdir 14310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14311esac 14312ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14313 14314 14315 case $ac_mode in 14316 :F) 14317 # 14318 # CONFIG_FILE 14319 # 14320 14321 case $INSTALL in 14322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14323 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14324 esac 14325 ac_MKDIR_P=$MKDIR_P 14326 case $MKDIR_P in 14327 [\\/$]* | ?:[\\/]* ) ;; 14328 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14329 esac 14330_ACEOF 14331 14332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14333# If the template does not know about datarootdir, expand it. 14334# FIXME: This hack should be removed a few years after 2.60. 14335ac_datarootdir_hack=; ac_datarootdir_seen= 14336ac_sed_dataroot=' 14337/datarootdir/ { 14338 p 14339 q 14340} 14341/@datadir@/p 14342/@docdir@/p 14343/@infodir@/p 14344/@localedir@/p 14345/@mandir@/p' 14346case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14347*datarootdir*) ac_datarootdir_seen=yes;; 14348*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14350$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14351_ACEOF 14352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14353 ac_datarootdir_hack=' 14354 s&@datadir@&$datadir&g 14355 s&@docdir@&$docdir&g 14356 s&@infodir@&$infodir&g 14357 s&@localedir@&$localedir&g 14358 s&@mandir@&$mandir&g 14359 s&\\\${datarootdir}&$datarootdir&g' ;; 14360esac 14361_ACEOF 14362 14363# Neutralize VPATH when `$srcdir' = `.'. 14364# Shell code in configure.ac might set extrasub. 14365# FIXME: do we really want to maintain this feature? 14366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14367ac_sed_extra="$ac_vpsub 14368$extrasub 14369_ACEOF 14370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14371:t 14372/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14373s|@configure_input@|$ac_sed_conf_input|;t t 14374s&@top_builddir@&$ac_top_builddir_sub&;t t 14375s&@top_build_prefix@&$ac_top_build_prefix&;t t 14376s&@srcdir@&$ac_srcdir&;t t 14377s&@abs_srcdir@&$ac_abs_srcdir&;t t 14378s&@top_srcdir@&$ac_top_srcdir&;t t 14379s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14380s&@builddir@&$ac_builddir&;t t 14381s&@abs_builddir@&$ac_abs_builddir&;t t 14382s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14383s&@INSTALL@&$ac_INSTALL&;t t 14384s&@MKDIR_P@&$ac_MKDIR_P&;t t 14385$ac_datarootdir_hack 14386" 14387eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14389 14390test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14393 "$ac_tmp/out"`; test -z "$ac_out"; } && 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14395which seems to be undefined. Please make sure it is defined" >&5 14396$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14397which seems to be undefined. Please make sure it is defined" >&2;} 14398 14399 rm -f "$ac_tmp/stdin" 14400 case $ac_file in 14401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14403 esac \ 14404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14405 ;; 14406 :H) 14407 # 14408 # CONFIG_HEADER 14409 # 14410 if test x"$ac_file" != x-; then 14411 { 14412 $as_echo "/* $configure_input */" \ 14413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14414 } >"$ac_tmp/config.h" \ 14415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14418$as_echo "$as_me: $ac_file is unchanged" >&6;} 14419 else 14420 rm -f "$ac_file" 14421 mv "$ac_tmp/config.h" "$ac_file" \ 14422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14423 fi 14424 else 14425 $as_echo "/* $configure_input */" \ 14426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14427 || as_fn_error $? "could not create -" "$LINENO" 5 14428 fi 14429# Compute "$ac_file"'s index in $config_headers. 14430_am_arg="$ac_file" 14431_am_stamp_count=1 14432for _am_header in $config_headers :; do 14433 case $_am_header in 14434 $_am_arg | $_am_arg:* ) 14435 break ;; 14436 * ) 14437 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14438 esac 14439done 14440echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14441$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14442 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14443 X"$_am_arg" : 'X\(//\)$' \| \ 14444 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14445$as_echo X"$_am_arg" | 14446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14447 s//\1/ 14448 q 14449 } 14450 /^X\(\/\/\)[^/].*/{ 14451 s//\1/ 14452 q 14453 } 14454 /^X\(\/\/\)$/{ 14455 s//\1/ 14456 q 14457 } 14458 /^X\(\/\).*/{ 14459 s//\1/ 14460 q 14461 } 14462 s/.*/./; q'`/stamp-h$_am_stamp_count 14463 ;; 14464 14465 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14466$as_echo "$as_me: executing $ac_file commands" >&6;} 14467 ;; 14468 esac 14469 14470 14471 case $ac_file$ac_mode in 14472 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14473 # Older Autoconf quotes --file arguments for eval, but not when files 14474 # are listed without --file. Let's play safe and only enable the eval 14475 # if we detect the quoting. 14476 case $CONFIG_FILES in 14477 *\'*) eval set x "$CONFIG_FILES" ;; 14478 *) set x $CONFIG_FILES ;; 14479 esac 14480 shift 14481 for mf 14482 do 14483 # Strip MF so we end up with the name of the file. 14484 mf=`echo "$mf" | sed -e 's/:.*$//'` 14485 # Check whether this is an Automake generated Makefile or not. 14486 # We used to match only the files named 'Makefile.in', but 14487 # some people rename them; so instead we look at the file content. 14488 # Grep'ing the first line is not enough: some people post-process 14489 # each Makefile.in and add a new line on top of each file to say so. 14490 # Grep'ing the whole file is not good either: AIX grep has a line 14491 # limit of 2048, but all sed's we know have understand at least 4000. 14492 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14493 dirpart=`$as_dirname -- "$mf" || 14494$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14495 X"$mf" : 'X\(//\)[^/]' \| \ 14496 X"$mf" : 'X\(//\)$' \| \ 14497 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14498$as_echo X"$mf" | 14499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14500 s//\1/ 14501 q 14502 } 14503 /^X\(\/\/\)[^/].*/{ 14504 s//\1/ 14505 q 14506 } 14507 /^X\(\/\/\)$/{ 14508 s//\1/ 14509 q 14510 } 14511 /^X\(\/\).*/{ 14512 s//\1/ 14513 q 14514 } 14515 s/.*/./; q'` 14516 else 14517 continue 14518 fi 14519 # Extract the definition of DEPDIR, am__include, and am__quote 14520 # from the Makefile without running 'make'. 14521 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14522 test -z "$DEPDIR" && continue 14523 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14524 test -z "$am__include" && continue 14525 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14526 # Find all dependency output files, they are included files with 14527 # $(DEPDIR) in their names. We invoke sed twice because it is the 14528 # simplest approach to changing $(DEPDIR) to its actual value in the 14529 # expansion. 14530 for file in `sed -n " 14531 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14532 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14533 # Make sure the directory exists. 14534 test -f "$dirpart/$file" && continue 14535 fdir=`$as_dirname -- "$file" || 14536$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14537 X"$file" : 'X\(//\)[^/]' \| \ 14538 X"$file" : 'X\(//\)$' \| \ 14539 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14540$as_echo X"$file" | 14541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14542 s//\1/ 14543 q 14544 } 14545 /^X\(\/\/\)[^/].*/{ 14546 s//\1/ 14547 q 14548 } 14549 /^X\(\/\/\)$/{ 14550 s//\1/ 14551 q 14552 } 14553 /^X\(\/\).*/{ 14554 s//\1/ 14555 q 14556 } 14557 s/.*/./; q'` 14558 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14559 # echo "creating $dirpart/$file" 14560 echo '# dummy' > "$dirpart/$file" 14561 done 14562 done 14563} 14564 ;; 14565 "libtool":C) 14566 14567 # See if we are running on zsh, and set the options that allow our 14568 # commands through without removal of \ escapes. 14569 if test -n "${ZSH_VERSION+set}"; then 14570 setopt NO_GLOB_SUBST 14571 fi 14572 14573 cfgfile=${ofile}T 14574 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14575 $RM "$cfgfile" 14576 14577 cat <<_LT_EOF >> "$cfgfile" 14578#! $SHELL 14579# Generated automatically by $as_me ($PACKAGE) $VERSION 14580# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14581# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14582 14583# Provide generalized library-building support services. 14584# Written by Gordon Matzigkeit, 1996 14585 14586# Copyright (C) 2014 Free Software Foundation, Inc. 14587# This is free software; see the source for copying conditions. There is NO 14588# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14589 14590# GNU Libtool is free software; you can redistribute it and/or modify 14591# it under the terms of the GNU General Public License as published by 14592# the Free Software Foundation; either version 2 of of the License, or 14593# (at your option) any later version. 14594# 14595# As a special exception to the GNU General Public License, if you 14596# distribute this file as part of a program or library that is built 14597# using GNU Libtool, you may include this file under the same 14598# distribution terms that you use for the rest of that program. 14599# 14600# GNU Libtool is distributed in the hope that it will be useful, but 14601# WITHOUT ANY WARRANTY; without even the implied warranty of 14602# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14603# GNU General Public License for more details. 14604# 14605# You should have received a copy of the GNU General Public License 14606# along with this program. If not, see <http://www.gnu.org/licenses/>. 14607 14608 14609# The names of the tagged configurations supported by this script. 14610available_tags='' 14611 14612# Configured defaults for sys_lib_dlsearch_path munging. 14613: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14614 14615# ### BEGIN LIBTOOL CONFIG 14616 14617# Which release of libtool.m4 was used? 14618macro_version=$macro_version 14619macro_revision=$macro_revision 14620 14621# Whether or not to build shared libraries. 14622build_libtool_libs=$enable_shared 14623 14624# Whether or not to build static libraries. 14625build_old_libs=$enable_static 14626 14627# What type of objects to build. 14628pic_mode=$pic_mode 14629 14630# Whether or not to optimize for fast installation. 14631fast_install=$enable_fast_install 14632 14633# Shared archive member basename,for filename based shared library versioning on AIX. 14634shared_archive_member_spec=$shared_archive_member_spec 14635 14636# Shell to use when invoking shell scripts. 14637SHELL=$lt_SHELL 14638 14639# An echo program that protects backslashes. 14640ECHO=$lt_ECHO 14641 14642# The PATH separator for the build system. 14643PATH_SEPARATOR=$lt_PATH_SEPARATOR 14644 14645# The host system. 14646host_alias=$host_alias 14647host=$host 14648host_os=$host_os 14649 14650# The build system. 14651build_alias=$build_alias 14652build=$build 14653build_os=$build_os 14654 14655# A sed program that does not truncate output. 14656SED=$lt_SED 14657 14658# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14659Xsed="\$SED -e 1s/^X//" 14660 14661# A grep program that handles long lines. 14662GREP=$lt_GREP 14663 14664# An ERE matcher. 14665EGREP=$lt_EGREP 14666 14667# A literal string matcher. 14668FGREP=$lt_FGREP 14669 14670# A BSD- or MS-compatible name lister. 14671NM=$lt_NM 14672 14673# Whether we need soft or hard links. 14674LN_S=$lt_LN_S 14675 14676# What is the maximum length of a command? 14677max_cmd_len=$max_cmd_len 14678 14679# Object file suffix (normally "o"). 14680objext=$ac_objext 14681 14682# Executable file suffix (normally ""). 14683exeext=$exeext 14684 14685# whether the shell understands "unset". 14686lt_unset=$lt_unset 14687 14688# turn spaces into newlines. 14689SP2NL=$lt_lt_SP2NL 14690 14691# turn newlines into spaces. 14692NL2SP=$lt_lt_NL2SP 14693 14694# convert \$build file names to \$host format. 14695to_host_file_cmd=$lt_cv_to_host_file_cmd 14696 14697# convert \$build files to toolchain format. 14698to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14699 14700# An object symbol dumper. 14701OBJDUMP=$lt_OBJDUMP 14702 14703# Method to check whether dependent libraries are shared objects. 14704deplibs_check_method=$lt_deplibs_check_method 14705 14706# Command to use when deplibs_check_method = "file_magic". 14707file_magic_cmd=$lt_file_magic_cmd 14708 14709# How to find potential files when deplibs_check_method = "file_magic". 14710file_magic_glob=$lt_file_magic_glob 14711 14712# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14713want_nocaseglob=$lt_want_nocaseglob 14714 14715# DLL creation program. 14716DLLTOOL=$lt_DLLTOOL 14717 14718# Command to associate shared and link libraries. 14719sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14720 14721# The archiver. 14722AR=$lt_AR 14723 14724# Flags to create an archive. 14725AR_FLAGS=$lt_AR_FLAGS 14726 14727# How to feed a file listing to the archiver. 14728archiver_list_spec=$lt_archiver_list_spec 14729 14730# A symbol stripping program. 14731STRIP=$lt_STRIP 14732 14733# Commands used to install an old-style archive. 14734RANLIB=$lt_RANLIB 14735old_postinstall_cmds=$lt_old_postinstall_cmds 14736old_postuninstall_cmds=$lt_old_postuninstall_cmds 14737 14738# Whether to use a lock for old archive extraction. 14739lock_old_archive_extraction=$lock_old_archive_extraction 14740 14741# A C compiler. 14742LTCC=$lt_CC 14743 14744# LTCC compiler flags. 14745LTCFLAGS=$lt_CFLAGS 14746 14747# Take the output of nm and produce a listing of raw symbols and C names. 14748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14749 14750# Transform the output of nm in a proper C declaration. 14751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14752 14753# Transform the output of nm into a list of symbols to manually relocate. 14754global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14755 14756# Transform the output of nm in a C name address pair. 14757global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14758 14759# Transform the output of nm in a C name address pair when lib prefix is needed. 14760global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14761 14762# The name lister interface. 14763nm_interface=$lt_lt_cv_nm_interface 14764 14765# Specify filename containing input files for \$NM. 14766nm_file_list_spec=$lt_nm_file_list_spec 14767 14768# The root where to search for dependent libraries,and where our libraries should be installed. 14769lt_sysroot=$lt_sysroot 14770 14771# Command to truncate a binary pipe. 14772lt_truncate_bin=$lt_lt_cv_truncate_bin 14773 14774# The name of the directory that contains temporary libtool files. 14775objdir=$objdir 14776 14777# Used to examine libraries when file_magic_cmd begins with "file". 14778MAGIC_CMD=$MAGIC_CMD 14779 14780# Must we lock files when doing compilation? 14781need_locks=$lt_need_locks 14782 14783# Manifest tool. 14784MANIFEST_TOOL=$lt_MANIFEST_TOOL 14785 14786# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14787DSYMUTIL=$lt_DSYMUTIL 14788 14789# Tool to change global to local symbols on Mac OS X. 14790NMEDIT=$lt_NMEDIT 14791 14792# Tool to manipulate fat objects and archives on Mac OS X. 14793LIPO=$lt_LIPO 14794 14795# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14796OTOOL=$lt_OTOOL 14797 14798# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14799OTOOL64=$lt_OTOOL64 14800 14801# Old archive suffix (normally "a"). 14802libext=$libext 14803 14804# Shared library suffix (normally ".so"). 14805shrext_cmds=$lt_shrext_cmds 14806 14807# The commands to extract the exported symbol list from a shared archive. 14808extract_expsyms_cmds=$lt_extract_expsyms_cmds 14809 14810# Variables whose values should be saved in libtool wrapper scripts and 14811# restored at link time. 14812variables_saved_for_relink=$lt_variables_saved_for_relink 14813 14814# Do we need the "lib" prefix for modules? 14815need_lib_prefix=$need_lib_prefix 14816 14817# Do we need a version for libraries? 14818need_version=$need_version 14819 14820# Library versioning type. 14821version_type=$version_type 14822 14823# Shared library runtime path variable. 14824runpath_var=$runpath_var 14825 14826# Shared library path variable. 14827shlibpath_var=$shlibpath_var 14828 14829# Is shlibpath searched before the hard-coded library search path? 14830shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14831 14832# Format of library name prefix. 14833libname_spec=$lt_libname_spec 14834 14835# List of archive names. First name is the real one, the rest are links. 14836# The last name is the one that the linker finds with -lNAME 14837library_names_spec=$lt_library_names_spec 14838 14839# The coded name of the library, if different from the real name. 14840soname_spec=$lt_soname_spec 14841 14842# Permission mode override for installation of shared libraries. 14843install_override_mode=$lt_install_override_mode 14844 14845# Command to use after installation of a shared archive. 14846postinstall_cmds=$lt_postinstall_cmds 14847 14848# Command to use after uninstallation of a shared archive. 14849postuninstall_cmds=$lt_postuninstall_cmds 14850 14851# Commands used to finish a libtool library installation in a directory. 14852finish_cmds=$lt_finish_cmds 14853 14854# As "finish_cmds", except a single script fragment to be evaled but 14855# not shown. 14856finish_eval=$lt_finish_eval 14857 14858# Whether we should hardcode library paths into libraries. 14859hardcode_into_libs=$hardcode_into_libs 14860 14861# Compile-time system search path for libraries. 14862sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14863 14864# Detected run-time system search path for libraries. 14865sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14866 14867# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14868configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14869 14870# Whether dlopen is supported. 14871dlopen_support=$enable_dlopen 14872 14873# Whether dlopen of programs is supported. 14874dlopen_self=$enable_dlopen_self 14875 14876# Whether dlopen of statically linked programs is supported. 14877dlopen_self_static=$enable_dlopen_self_static 14878 14879# Commands to strip libraries. 14880old_striplib=$lt_old_striplib 14881striplib=$lt_striplib 14882 14883 14884# The linker used to build libraries. 14885LD=$lt_LD 14886 14887# How to create reloadable object files. 14888reload_flag=$lt_reload_flag 14889reload_cmds=$lt_reload_cmds 14890 14891# Commands used to build an old-style archive. 14892old_archive_cmds=$lt_old_archive_cmds 14893 14894# A language specific compiler. 14895CC=$lt_compiler 14896 14897# Is the compiler the GNU compiler? 14898with_gcc=$GCC 14899 14900# Compiler flag to turn off builtin functions. 14901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14902 14903# Additional compiler flags for building library objects. 14904pic_flag=$lt_lt_prog_compiler_pic 14905 14906# How to pass a linker flag through the compiler. 14907wl=$lt_lt_prog_compiler_wl 14908 14909# Compiler flag to prevent dynamic linking. 14910link_static_flag=$lt_lt_prog_compiler_static 14911 14912# Does compiler simultaneously support -c and -o options? 14913compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14914 14915# Whether or not to add -lc for building shared libraries. 14916build_libtool_need_lc=$archive_cmds_need_lc 14917 14918# Whether or not to disallow shared libs when runtime libs are static. 14919allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14920 14921# Compiler flag to allow reflexive dlopens. 14922export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14923 14924# Compiler flag to generate shared objects directly from archives. 14925whole_archive_flag_spec=$lt_whole_archive_flag_spec 14926 14927# Whether the compiler copes with passing no objects directly. 14928compiler_needs_object=$lt_compiler_needs_object 14929 14930# Create an old-style archive from a shared archive. 14931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14932 14933# Create a temporary old-style archive to link instead of a shared archive. 14934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14935 14936# Commands used to build a shared archive. 14937archive_cmds=$lt_archive_cmds 14938archive_expsym_cmds=$lt_archive_expsym_cmds 14939 14940# Commands used to build a loadable module if different from building 14941# a shared archive. 14942module_cmds=$lt_module_cmds 14943module_expsym_cmds=$lt_module_expsym_cmds 14944 14945# Whether we are building with GNU ld or not. 14946with_gnu_ld=$lt_with_gnu_ld 14947 14948# Flag that allows shared libraries with undefined symbols to be built. 14949allow_undefined_flag=$lt_allow_undefined_flag 14950 14951# Flag that enforces no undefined symbols. 14952no_undefined_flag=$lt_no_undefined_flag 14953 14954# Flag to hardcode \$libdir into a binary during linking. 14955# This must work even if \$libdir does not exist 14956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14957 14958# Whether we need a single "-rpath" flag with a separated argument. 14959hardcode_libdir_separator=$lt_hardcode_libdir_separator 14960 14961# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14962# DIR into the resulting binary. 14963hardcode_direct=$hardcode_direct 14964 14965# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14966# DIR into the resulting binary and the resulting library dependency is 14967# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14968# library is relocated. 14969hardcode_direct_absolute=$hardcode_direct_absolute 14970 14971# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14972# into the resulting binary. 14973hardcode_minus_L=$hardcode_minus_L 14974 14975# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14976# into the resulting binary. 14977hardcode_shlibpath_var=$hardcode_shlibpath_var 14978 14979# Set to "yes" if building a shared library automatically hardcodes DIR 14980# into the library and all subsequent libraries and executables linked 14981# against it. 14982hardcode_automatic=$hardcode_automatic 14983 14984# Set to yes if linker adds runtime paths of dependent libraries 14985# to runtime path list. 14986inherit_rpath=$inherit_rpath 14987 14988# Whether libtool must link a program against all its dependency libraries. 14989link_all_deplibs=$link_all_deplibs 14990 14991# Set to "yes" if exported symbols are required. 14992always_export_symbols=$always_export_symbols 14993 14994# The commands to list exported symbols. 14995export_symbols_cmds=$lt_export_symbols_cmds 14996 14997# Symbols that should not be listed in the preloaded symbols. 14998exclude_expsyms=$lt_exclude_expsyms 14999 15000# Symbols that must always be exported. 15001include_expsyms=$lt_include_expsyms 15002 15003# Commands necessary for linking programs (against libraries) with templates. 15004prelink_cmds=$lt_prelink_cmds 15005 15006# Commands necessary for finishing linking programs. 15007postlink_cmds=$lt_postlink_cmds 15008 15009# Specify filename containing input files. 15010file_list_spec=$lt_file_list_spec 15011 15012# How to hardcode a shared library path into an executable. 15013hardcode_action=$hardcode_action 15014 15015# ### END LIBTOOL CONFIG 15016 15017_LT_EOF 15018 15019 cat <<'_LT_EOF' >> "$cfgfile" 15020 15021# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15022 15023# func_munge_path_list VARIABLE PATH 15024# ----------------------------------- 15025# VARIABLE is name of variable containing _space_ separated list of 15026# directories to be munged by the contents of PATH, which is string 15027# having a format: 15028# "DIR[:DIR]:" 15029# string "DIR[ DIR]" will be prepended to VARIABLE 15030# ":DIR[:DIR]" 15031# string "DIR[ DIR]" will be appended to VARIABLE 15032# "DIRP[:DIRP]::[DIRA:]DIRA" 15033# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15034# "DIRA[ DIRA]" will be appended to VARIABLE 15035# "DIR[:DIR]" 15036# VARIABLE will be replaced by "DIR[ DIR]" 15037func_munge_path_list () 15038{ 15039 case x$2 in 15040 x) 15041 ;; 15042 *:) 15043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15044 ;; 15045 x:*) 15046 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15047 ;; 15048 *::*) 15049 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15050 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15051 ;; 15052 *) 15053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15054 ;; 15055 esac 15056} 15057 15058 15059# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15060func_cc_basename () 15061{ 15062 for cc_temp in $*""; do 15063 case $cc_temp in 15064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15066 \-*) ;; 15067 *) break;; 15068 esac 15069 done 15070 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15071} 15072 15073 15074# ### END FUNCTIONS SHARED WITH CONFIGURE 15075 15076_LT_EOF 15077 15078 case $host_os in 15079 aix3*) 15080 cat <<\_LT_EOF >> "$cfgfile" 15081# AIX sometimes has problems with the GCC collect2 program. For some 15082# reason, if we set the COLLECT_NAMES environment variable, the problems 15083# vanish in a puff of smoke. 15084if test set != "${COLLECT_NAMES+set}"; then 15085 COLLECT_NAMES= 15086 export COLLECT_NAMES 15087fi 15088_LT_EOF 15089 ;; 15090 esac 15091 15092 15093ltmain=$ac_aux_dir/ltmain.sh 15094 15095 15096 # We use sed instead of cat because bash on DJGPP gets confused if 15097 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15098 # text mode, it properly converts lines to CR/LF. This bash problem 15099 # is reportedly fixed, but why not run on old versions too? 15100 sed '$q' "$ltmain" >> "$cfgfile" \ 15101 || (rm -f "$cfgfile"; exit 1) 15102 15103 mv -f "$cfgfile" "$ofile" || 15104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15105 chmod +x "$ofile" 15106 15107 ;; 15108 15109 esac 15110done # for ac_tag 15111 15112 15113as_fn_exit 0 15114_ACEOF 15115ac_clean_files=$ac_clean_files_save 15116 15117test $ac_write_fail = 0 || 15118 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15119 15120 15121# configure is writing to config.log, and then calls config.status. 15122# config.status does its own redirection, appending to config.log. 15123# Unfortunately, on DOS this fails, as config.log is still kept open 15124# by configure, so config.status won't be able to write to it; its 15125# output is simply discarded. So we exec the FD to /dev/null, 15126# effectively closing config.log, so it can be properly (re)opened and 15127# appended to by config.status. When coming back to configure, we 15128# need to make the FD available again. 15129if test "$no_create" != yes; then 15130 ac_cs_success=: 15131 ac_config_status_args= 15132 test "$silent" = yes && 15133 ac_config_status_args="$ac_config_status_args --quiet" 15134 exec 5>/dev/null 15135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15136 exec 5>>config.log 15137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15138 # would make configure fail if this is the last instruction. 15139 $ac_cs_success || as_fn_exit 1 15140fi 15141if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15143$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15144fi 15145 15146