1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for SoX 14.4.2. 4# 5# Report bugs to <sox-devel@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: sox-devel@lists.sourceforge.net 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 569as_awk_strverscmp=' 570 # Use only awk features that work with 7th edition Unix awk (1978). 571 # My, what an old awk you have, Mr. Solaris! 572 END { 573 while (length(v1) && length(v2)) { 574 # Set d1 to be the next thing to compare from v1, and likewise for d2. 575 # Normally this is a single character, but if v1 and v2 contain digits, 576 # compare them as integers and fractions as strverscmp does. 577 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 578 # Split v1 and v2 into their leading digit string components d1 and d2, 579 # and advance v1 and v2 past the leading digit strings. 580 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 581 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 582 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 583 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 584 if (d1 ~ /^0/) { 585 if (d2 ~ /^0/) { 586 # Compare two fractions. 587 while (d1 ~ /^0/ && d2 ~ /^0/) { 588 d1 = substr(d1, 2); len1-- 589 d2 = substr(d2, 2); len2-- 590 } 591 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 592 # The two components differ in length, and the common prefix 593 # contains only leading zeros. Consider the longer to be less. 594 d1 = -len1 595 d2 = -len2 596 } else { 597 # Otherwise, compare as strings. 598 d1 = "x" d1 599 d2 = "x" d2 600 } 601 } else { 602 # A fraction is less than an integer. 603 exit 1 604 } 605 } else { 606 if (d2 ~ /^0/) { 607 # An integer is greater than a fraction. 608 exit 2 609 } else { 610 # Compare two integers. 611 d1 += 0 612 d2 += 0 613 } 614 } 615 } else { 616 # The normal case, without worrying about digits. 617 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 618 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 619 } 620 if (d1 < d2) exit 1 621 if (d1 > d2) exit 2 622 } 623 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 624 # which mishandles some comparisons of empty strings to integers. 625 if (length(v2)) exit 1 626 if (length(v1)) exit 2 627 } 628' 629 630test -n "$DJDIR" || exec 7<&0 </dev/null 631exec 6>&1 632 633# Name of the host. 634# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 635# so uname gets run too. 636ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 637 638# 639# Initializations. 640# 641ac_default_prefix=/usr/local 642ac_clean_files= 643ac_config_libobj_dir=. 644LIBOBJS= 645cross_compiling=no 646subdirs= 647MFLAGS= 648MAKEFLAGS= 649 650# Identity of this package. 651PACKAGE_NAME='SoX' 652PACKAGE_TARNAME='sox' 653PACKAGE_VERSION='14.4.2' 654PACKAGE_STRING='SoX 14.4.2' 655PACKAGE_BUGREPORT='sox-devel@lists.sourceforge.net' 656PACKAGE_URL='' 657 658ac_unique_file="sox.1" 659# Factoring default headers for most tests. 660ac_includes_default="\ 661#include <stdio.h> 662#ifdef HAVE_SYS_TYPES_H 663# include <sys/types.h> 664#endif 665#ifdef HAVE_SYS_STAT_H 666# include <sys/stat.h> 667#endif 668#ifdef STDC_HEADERS 669# include <stdlib.h> 670# include <stddef.h> 671#else 672# ifdef HAVE_STDLIB_H 673# include <stdlib.h> 674# endif 675#endif 676#ifdef HAVE_STRING_H 677# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 678# include <memory.h> 679# endif 680# include <string.h> 681#endif 682#ifdef HAVE_STRINGS_H 683# include <strings.h> 684#endif 685#ifdef HAVE_INTTYPES_H 686# include <inttypes.h> 687#endif 688#ifdef HAVE_STDINT_H 689# include <stdint.h> 690#endif 691#ifdef HAVE_UNISTD_H 692# include <unistd.h> 693#endif" 694 695ac_subst_vars='am__EXEEXT_FALSE 696am__EXEEXT_TRUE 697LTLIBOBJS 698LIBOBJS 699STATIC_LIBSOX_ONLY_FALSE 700STATIC_LIBSOX_ONLY_TRUE 701PLAYRECLINKS 702SYMLINKS 703LPC10_LIBS 704LPC10_CFLAGS 705STATIC_LPC10_FALSE 706STATIC_LPC10_TRUE 707HAVE_LPC10_FALSE 708HAVE_LPC10_TRUE 709GSM_LIBS 710GSM_CFLAGS 711STATIC_GSM_FALSE 712STATIC_GSM_TRUE 713HAVE_GSM_FALSE 714HAVE_GSM_TRUE 715MP3_LIBS 716MP3_CFLAGS 717STATIC_MP3_FALSE 718STATIC_MP3_TRUE 719HAVE_MP3_FALSE 720HAVE_MP3_TRUE 721SUN_AUDIO_LIBS 722SUN_AUDIO_CFLAGS 723STATIC_SUN_AUDIO_FALSE 724STATIC_SUN_AUDIO_TRUE 725HAVE_SUN_AUDIO_FALSE 726HAVE_SUN_AUDIO_TRUE 727OSS_LIBS 728OSS_CFLAGS 729STATIC_OSS_FALSE 730STATIC_OSS_TRUE 731HAVE_OSS_FALSE 732HAVE_OSS_TRUE 733STATIC_SNDFILE_FALSE 734STATIC_SNDFILE_TRUE 735HAVE_SNDFILE_FALSE 736HAVE_SNDFILE_TRUE 737SNDFILE_LIBS 738SNDFILE_CFLAGS 739WAVEAUDIO_LIBS 740WAVEAUDIO_CFLAGS 741STATIC_WAVEAUDIO_FALSE 742STATIC_WAVEAUDIO_TRUE 743HAVE_WAVEAUDIO_FALSE 744HAVE_WAVEAUDIO_TRUE 745PULSEAUDIO_LIBS 746PULSEAUDIO_CFLAGS 747STATIC_PULSEAUDIO_FALSE 748STATIC_PULSEAUDIO_TRUE 749HAVE_PULSEAUDIO_FALSE 750HAVE_PULSEAUDIO_TRUE 751AO_LIBS 752AO_CFLAGS 753STATIC_AO_FALSE 754STATIC_AO_TRUE 755HAVE_AO_FALSE 756HAVE_AO_TRUE 757ALSA_LIBS 758ALSA_CFLAGS 759STATIC_ALSA_FALSE 760STATIC_ALSA_TRUE 761HAVE_ALSA_FALSE 762HAVE_ALSA_TRUE 763COREAUDIO_LIBS 764COREAUDIO_CFLAGS 765STATIC_COREAUDIO_FALSE 766STATIC_COREAUDIO_TRUE 767HAVE_COREAUDIO_FALSE 768HAVE_COREAUDIO_TRUE 769SNDIO_LIBS 770SNDIO_CFLAGS 771STATIC_SNDIO_FALSE 772STATIC_SNDIO_TRUE 773HAVE_SNDIO_FALSE 774HAVE_SNDIO_TRUE 775WAVPACK_LIBS 776WAVPACK_CFLAGS 777STATIC_WAVPACK_FALSE 778STATIC_WAVPACK_TRUE 779HAVE_WAVPACK_FALSE 780HAVE_WAVPACK_TRUE 781AMRNB_LIBS 782AMRNB_CFLAGS 783STATIC_AMRNB_FALSE 784STATIC_AMRNB_TRUE 785HAVE_AMRNB_FALSE 786HAVE_AMRNB_TRUE 787AMRWB_LIBS 788AMRWB_CFLAGS 789STATIC_AMRWB_FALSE 790STATIC_AMRWB_TRUE 791HAVE_AMRWB_FALSE 792HAVE_AMRWB_TRUE 793FLAC_LIBS 794FLAC_CFLAGS 795STATIC_FLAC_FALSE 796STATIC_FLAC_TRUE 797HAVE_FLAC_FALSE 798HAVE_FLAC_TRUE 799STATIC_OPUS_FALSE 800STATIC_OPUS_TRUE 801HAVE_OPUS_FALSE 802HAVE_OPUS_TRUE 803OPUS_LIBS 804OPUS_CFLAGS 805OGG_VORBIS_LIBS 806OGG_VORBIS_CFLAGS 807STATIC_OGG_VORBIS_FALSE 808STATIC_OGG_VORBIS_TRUE 809HAVE_OGG_VORBIS_FALSE 810HAVE_OGG_VORBIS_TRUE 811LIBLPC10_LIBADD 812EXTERNAL_LPC10_FALSE 813EXTERNAL_LPC10_TRUE 814LIBGSM_LIBADD 815EXTERNAL_GSM_FALSE 816EXTERNAL_GSM_TRUE 817HAVE_ID3TAG_FALSE 818HAVE_ID3TAG_TRUE 819LADSPA_PATH 820PNG_LIBS 821HAVE_PNG_FALSE 822HAVE_PNG_TRUE 823MAGIC_LIBS 824HAVE_MAGIC_FALSE 825HAVE_MAGIC_TRUE 826GOMP_LIBS 827OPENMP_CFLAGS 828LIBLTDL 829HAVE_WIN32_LTDL_FALSE 830HAVE_WIN32_LTDL_TRUE 831HAVE_LIBLTDL_FALSE 832HAVE_LIBLTDL_TRUE 833LIBTOOLFLAGS 834HAVE_DISTRO_FALSE 835HAVE_DISTRO_TRUE 836DISTRO 837WARN_CFLAGS 838APP_LDFLAGS 839HAVE_WIN32_GLOB_FALSE 840HAVE_WIN32_GLOB_TRUE 841PKGCONFIGDIR 842HAVE_PKGCONFIG_FALSE 843HAVE_PKGCONFIG_TRUE 844PKG_CONFIG_LIBDIR 845PKG_CONFIG_PATH 846PKG_CONFIG 847LIBTOOL_DEPS 848CPP 849OTOOL64 850OTOOL 851LIPO 852NMEDIT 853DSYMUTIL 854MANIFEST_TOOL 855RANLIB 856ac_ct_AR 857AR 858NM 859ac_ct_DUMPBIN 860DUMPBIN 861LD 862FGREP 863EGREP 864GREP 865SED 866LIBTOOL 867OBJDUMP 868DLLTOOL 869AS 870SHLIB_VERSION 871LN_S 872am__fastdepCC_FALSE 873am__fastdepCC_TRUE 874CCDEPMODE 875am__nodep 876AMDEPBACKSLASH 877AMDEP_FALSE 878AMDEP_TRUE 879am__quote 880am__include 881DEPDIR 882OBJEXT 883EXEEXT 884ac_ct_CC 885CPPFLAGS 886LDFLAGS 887CFLAGS 888CC 889AM_BACKSLASH 890AM_DEFAULT_VERBOSITY 891AM_DEFAULT_V 892AM_V 893am__untar 894am__tar 895AMTAR 896am__leading_dot 897SET_MAKE 898AWK 899mkdir_p 900MKDIR_P 901INSTALL_STRIP_PROGRAM 902STRIP 903install_sh 904MAKEINFO 905AUTOHEADER 906AUTOMAKE 907AUTOCONF 908ACLOCAL 909VERSION 910PACKAGE 911CYGPATH_W 912am__isrc 913INSTALL_DATA 914INSTALL_SCRIPT 915INSTALL_PROGRAM 916target_os 917target_vendor 918target_cpu 919target 920host_os 921host_vendor 922host_cpu 923host 924build_os 925build_vendor 926build_cpu 927build 928target_alias 929host_alias 930build_alias 931LIBS 932ECHO_T 933ECHO_N 934ECHO_C 935DEFS 936mandir 937localedir 938libdir 939psdir 940pdfdir 941dvidir 942htmldir 943infodir 944docdir 945oldincludedir 946includedir 947localstatedir 948sharedstatedir 949sysconfdir 950datadir 951datarootdir 952libexecdir 953sbindir 954bindir 955program_transform_name 956prefix 957exec_prefix 958PACKAGE_URL 959PACKAGE_BUGREPORT 960PACKAGE_STRING 961PACKAGE_VERSION 962PACKAGE_TARNAME 963PACKAGE_NAME 964PATH_SEPARATOR 965SHELL' 966ac_subst_files='' 967ac_user_opts=' 968enable_option_checking 969enable_silent_rules 970enable_dependency_tracking 971with_libltdl 972enable_shared 973enable_static 974with_pic 975enable_fast_install 976with_gnu_ld 977with_sysroot 978enable_libtool_lock 979with_dyn_default 980with_pkgconfigdir 981enable_debug 982enable_stack_protector 983with_distro 984enable_largefile 985enable_silent_libtool 986enable_openmp 987with_magic 988with_png 989with_ladspa 990with_ladspa_path 991with_mad 992enable_dl_mad 993with_id3tag 994with_lame 995enable_dl_lame 996with_twolame 997enable_dl_twolame 998with_oggvorbis 999with_opus 1000with_flac 1001enable_dl_amrwb 1002with_amrwb 1003enable_dl_amrnb 1004with_amrnb 1005with_wavpack 1006with_sndio 1007with_coreaudio 1008with_alsa 1009with_ao 1010with_pulseaudio 1011with_waveaudio 1012enable_dl_sndfile 1013with_sndfile 1014with_oss 1015with_sunaudio 1016with_mp3 1017with_gsm 1018with_lpc10 1019enable_symlinks 1020' 1021 ac_precious_vars='build_alias 1022host_alias 1023target_alias 1024CC 1025CFLAGS 1026LDFLAGS 1027LIBS 1028CPPFLAGS 1029CPP 1030PKG_CONFIG 1031PKG_CONFIG_PATH 1032PKG_CONFIG_LIBDIR 1033OPUS_CFLAGS 1034OPUS_LIBS 1035SNDFILE_CFLAGS 1036SNDFILE_LIBS' 1037 1038 1039# Initialize some variables set by options. 1040ac_init_help= 1041ac_init_version=false 1042ac_unrecognized_opts= 1043ac_unrecognized_sep= 1044# The variables have the same names as the options, with 1045# dashes changed to underlines. 1046cache_file=/dev/null 1047exec_prefix=NONE 1048no_create= 1049no_recursion= 1050prefix=NONE 1051program_prefix=NONE 1052program_suffix=NONE 1053program_transform_name=s,x,x, 1054silent= 1055site= 1056srcdir= 1057verbose= 1058x_includes=NONE 1059x_libraries=NONE 1060 1061# Installation directory options. 1062# These are left unexpanded so users can "make install exec_prefix=/foo" 1063# and all the variables that are supposed to be based on exec_prefix 1064# by default will actually change. 1065# Use braces instead of parens because sh, perl, etc. also accept them. 1066# (The list follows the same order as the GNU Coding Standards.) 1067bindir='${exec_prefix}/bin' 1068sbindir='${exec_prefix}/sbin' 1069libexecdir='${exec_prefix}/libexec' 1070datarootdir='${prefix}/share' 1071datadir='${datarootdir}' 1072sysconfdir='${prefix}/etc' 1073sharedstatedir='${prefix}/com' 1074localstatedir='${prefix}/var' 1075includedir='${prefix}/include' 1076oldincludedir='/usr/include' 1077docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1078infodir='${datarootdir}/info' 1079htmldir='${docdir}' 1080dvidir='${docdir}' 1081pdfdir='${docdir}' 1082psdir='${docdir}' 1083libdir='${exec_prefix}/lib' 1084localedir='${datarootdir}/locale' 1085mandir='${datarootdir}/man' 1086 1087ac_prev= 1088ac_dashdash= 1089for ac_option 1090do 1091 # If the previous option needs an argument, assign it. 1092 if test -n "$ac_prev"; then 1093 eval $ac_prev=\$ac_option 1094 ac_prev= 1095 continue 1096 fi 1097 1098 case $ac_option in 1099 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1100 *=) ac_optarg= ;; 1101 *) ac_optarg=yes ;; 1102 esac 1103 1104 # Accept the important Cygnus configure options, so we can diagnose typos. 1105 1106 case $ac_dashdash$ac_option in 1107 --) 1108 ac_dashdash=yes ;; 1109 1110 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1111 ac_prev=bindir ;; 1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1113 bindir=$ac_optarg ;; 1114 1115 -build | --build | --buil | --bui | --bu) 1116 ac_prev=build_alias ;; 1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1118 build_alias=$ac_optarg ;; 1119 1120 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1122 ac_prev=cache_file ;; 1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1125 cache_file=$ac_optarg ;; 1126 1127 --config-cache | -C) 1128 cache_file=config.cache ;; 1129 1130 -datadir | --datadir | --datadi | --datad) 1131 ac_prev=datadir ;; 1132 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1133 datadir=$ac_optarg ;; 1134 1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1136 | --dataroo | --dataro | --datar) 1137 ac_prev=datarootdir ;; 1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1140 datarootdir=$ac_optarg ;; 1141 1142 -disable-* | --disable-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid feature name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"enable_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval enable_$ac_useropt=no ;; 1157 1158 -docdir | --docdir | --docdi | --doc | --do) 1159 ac_prev=docdir ;; 1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1161 docdir=$ac_optarg ;; 1162 1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1164 ac_prev=dvidir ;; 1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1166 dvidir=$ac_optarg ;; 1167 1168 -enable-* | --enable-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid feature name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"enable_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval enable_$ac_useropt=\$ac_optarg ;; 1183 1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1186 | --exec | --exe | --ex) 1187 ac_prev=exec_prefix ;; 1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1190 | --exec=* | --exe=* | --ex=*) 1191 exec_prefix=$ac_optarg ;; 1192 1193 -gas | --gas | --ga | --g) 1194 # Obsolete; use --with-gas. 1195 with_gas=yes ;; 1196 1197 -help | --help | --hel | --he | -h) 1198 ac_init_help=long ;; 1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1200 ac_init_help=recursive ;; 1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1202 ac_init_help=short ;; 1203 1204 -host | --host | --hos | --ho) 1205 ac_prev=host_alias ;; 1206 -host=* | --host=* | --hos=* | --ho=*) 1207 host_alias=$ac_optarg ;; 1208 1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1210 ac_prev=htmldir ;; 1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1212 | --ht=*) 1213 htmldir=$ac_optarg ;; 1214 1215 -includedir | --includedir | --includedi | --included | --include \ 1216 | --includ | --inclu | --incl | --inc) 1217 ac_prev=includedir ;; 1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1219 | --includ=* | --inclu=* | --incl=* | --inc=*) 1220 includedir=$ac_optarg ;; 1221 1222 -infodir | --infodir | --infodi | --infod | --info | --inf) 1223 ac_prev=infodir ;; 1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1225 infodir=$ac_optarg ;; 1226 1227 -libdir | --libdir | --libdi | --libd) 1228 ac_prev=libdir ;; 1229 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1230 libdir=$ac_optarg ;; 1231 1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1233 | --libexe | --libex | --libe) 1234 ac_prev=libexecdir ;; 1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1236 | --libexe=* | --libex=* | --libe=*) 1237 libexecdir=$ac_optarg ;; 1238 1239 -localedir | --localedir | --localedi | --localed | --locale) 1240 ac_prev=localedir ;; 1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1242 localedir=$ac_optarg ;; 1243 1244 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1245 | --localstate | --localstat | --localsta | --localst | --locals) 1246 ac_prev=localstatedir ;; 1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1249 localstatedir=$ac_optarg ;; 1250 1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1252 ac_prev=mandir ;; 1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1254 mandir=$ac_optarg ;; 1255 1256 -nfp | --nfp | --nf) 1257 # Obsolete; use --without-fp. 1258 with_fp=no ;; 1259 1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1261 | --no-cr | --no-c | -n) 1262 no_create=yes ;; 1263 1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1266 no_recursion=yes ;; 1267 1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1270 | --oldin | --oldi | --old | --ol | --o) 1271 ac_prev=oldincludedir ;; 1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1275 oldincludedir=$ac_optarg ;; 1276 1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1278 ac_prev=prefix ;; 1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1280 prefix=$ac_optarg ;; 1281 1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1283 | --program-pre | --program-pr | --program-p) 1284 ac_prev=program_prefix ;; 1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1287 program_prefix=$ac_optarg ;; 1288 1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1290 | --program-suf | --program-su | --program-s) 1291 ac_prev=program_suffix ;; 1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1294 program_suffix=$ac_optarg ;; 1295 1296 -program-transform-name | --program-transform-name \ 1297 | --program-transform-nam | --program-transform-na \ 1298 | --program-transform-n | --program-transform- \ 1299 | --program-transform | --program-transfor \ 1300 | --program-transfo | --program-transf \ 1301 | --program-trans | --program-tran \ 1302 | --progr-tra | --program-tr | --program-t) 1303 ac_prev=program_transform_name ;; 1304 -program-transform-name=* | --program-transform-name=* \ 1305 | --program-transform-nam=* | --program-transform-na=* \ 1306 | --program-transform-n=* | --program-transform-=* \ 1307 | --program-transform=* | --program-transfor=* \ 1308 | --program-transfo=* | --program-transf=* \ 1309 | --program-trans=* | --program-tran=* \ 1310 | --progr-tra=* | --program-tr=* | --program-t=*) 1311 program_transform_name=$ac_optarg ;; 1312 1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1314 ac_prev=pdfdir ;; 1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1316 pdfdir=$ac_optarg ;; 1317 1318 -psdir | --psdir | --psdi | --psd | --ps) 1319 ac_prev=psdir ;; 1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1321 psdir=$ac_optarg ;; 1322 1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1324 | -silent | --silent | --silen | --sile | --sil) 1325 silent=yes ;; 1326 1327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1328 ac_prev=sbindir ;; 1329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1330 | --sbi=* | --sb=*) 1331 sbindir=$ac_optarg ;; 1332 1333 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1335 | --sharedst | --shareds | --shared | --share | --shar \ 1336 | --sha | --sh) 1337 ac_prev=sharedstatedir ;; 1338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1341 | --sha=* | --sh=*) 1342 sharedstatedir=$ac_optarg ;; 1343 1344 -site | --site | --sit) 1345 ac_prev=site ;; 1346 -site=* | --site=* | --sit=*) 1347 site=$ac_optarg ;; 1348 1349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1350 ac_prev=srcdir ;; 1351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1352 srcdir=$ac_optarg ;; 1353 1354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1355 | --syscon | --sysco | --sysc | --sys | --sy) 1356 ac_prev=sysconfdir ;; 1357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1359 sysconfdir=$ac_optarg ;; 1360 1361 -target | --target | --targe | --targ | --tar | --ta | --t) 1362 ac_prev=target_alias ;; 1363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1364 target_alias=$ac_optarg ;; 1365 1366 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1367 verbose=yes ;; 1368 1369 -version | --version | --versio | --versi | --vers | -V) 1370 ac_init_version=: ;; 1371 1372 -with-* | --with-*) 1373 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1374 # Reject names that are not valid shell variable names. 1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1376 as_fn_error $? "invalid package name: $ac_useropt" 1377 ac_useropt_orig=$ac_useropt 1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1379 case $ac_user_opts in 1380 *" 1381"with_$ac_useropt" 1382"*) ;; 1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1384 ac_unrecognized_sep=', ';; 1385 esac 1386 eval with_$ac_useropt=\$ac_optarg ;; 1387 1388 -without-* | --without-*) 1389 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1390 # Reject names that are not valid shell variable names. 1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1392 as_fn_error $? "invalid package name: $ac_useropt" 1393 ac_useropt_orig=$ac_useropt 1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1395 case $ac_user_opts in 1396 *" 1397"with_$ac_useropt" 1398"*) ;; 1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1400 ac_unrecognized_sep=', ';; 1401 esac 1402 eval with_$ac_useropt=no ;; 1403 1404 --x) 1405 # Obsolete; use --with-x. 1406 with_x=yes ;; 1407 1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1409 | --x-incl | --x-inc | --x-in | --x-i) 1410 ac_prev=x_includes ;; 1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1413 x_includes=$ac_optarg ;; 1414 1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1417 ac_prev=x_libraries ;; 1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1420 x_libraries=$ac_optarg ;; 1421 1422 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1423Try \`$0 --help' for more information" 1424 ;; 1425 1426 *=*) 1427 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1428 # Reject names that are not valid shell variable names. 1429 case $ac_envvar in #( 1430 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1431 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1432 esac 1433 eval $ac_envvar=\$ac_optarg 1434 export $ac_envvar ;; 1435 1436 *) 1437 # FIXME: should be removed in autoconf 3.0. 1438 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1440 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1441 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1442 ;; 1443 1444 esac 1445done 1446 1447if test -n "$ac_prev"; then 1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1449 as_fn_error $? "missing argument to $ac_option" 1450fi 1451 1452if test -n "$ac_unrecognized_opts"; then 1453 case $enable_option_checking in 1454 no) ;; 1455 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1456 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1457 esac 1458fi 1459 1460# Check all directory arguments for consistency. 1461for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1462 datadir sysconfdir sharedstatedir localstatedir includedir \ 1463 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1464 libdir localedir mandir 1465do 1466 eval ac_val=\$$ac_var 1467 # Remove trailing slashes. 1468 case $ac_val in 1469 */ ) 1470 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1471 eval $ac_var=\$ac_val;; 1472 esac 1473 # Be sure to have absolute directory names. 1474 case $ac_val in 1475 [\\/$]* | ?:[\\/]* ) continue;; 1476 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1477 esac 1478 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1479done 1480 1481# There might be people who depend on the old broken behavior: `$host' 1482# used to hold the argument of --host etc. 1483# FIXME: To remove some day. 1484build=$build_alias 1485host=$host_alias 1486target=$target_alias 1487 1488# FIXME: To remove some day. 1489if test "x$host_alias" != x; then 1490 if test "x$build_alias" = x; then 1491 cross_compiling=maybe 1492 elif test "x$build_alias" != "x$host_alias"; then 1493 cross_compiling=yes 1494 fi 1495fi 1496 1497ac_tool_prefix= 1498test -n "$host_alias" && ac_tool_prefix=$host_alias- 1499 1500test "$silent" = yes && exec 6>/dev/null 1501 1502 1503ac_pwd=`pwd` && test -n "$ac_pwd" && 1504ac_ls_di=`ls -di .` && 1505ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1506 as_fn_error $? "working directory cannot be determined" 1507test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1508 as_fn_error $? "pwd does not report name of working directory" 1509 1510 1511# Find the source files, if location was not specified. 1512if test -z "$srcdir"; then 1513 ac_srcdir_defaulted=yes 1514 # Try the directory containing this script, then the parent directory. 1515 ac_confdir=`$as_dirname -- "$as_myself" || 1516$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1517 X"$as_myself" : 'X\(//\)[^/]' \| \ 1518 X"$as_myself" : 'X\(//\)$' \| \ 1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1520$as_echo X"$as_myself" | 1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1522 s//\1/ 1523 q 1524 } 1525 /^X\(\/\/\)[^/].*/{ 1526 s//\1/ 1527 q 1528 } 1529 /^X\(\/\/\)$/{ 1530 s//\1/ 1531 q 1532 } 1533 /^X\(\/\).*/{ 1534 s//\1/ 1535 q 1536 } 1537 s/.*/./; q'` 1538 srcdir=$ac_confdir 1539 if test ! -r "$srcdir/$ac_unique_file"; then 1540 srcdir=.. 1541 fi 1542else 1543 ac_srcdir_defaulted=no 1544fi 1545if test ! -r "$srcdir/$ac_unique_file"; then 1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1547 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1548fi 1549ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1550ac_abs_confdir=`( 1551 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1552 pwd)` 1553# When building in place, set srcdir=. 1554if test "$ac_abs_confdir" = "$ac_pwd"; then 1555 srcdir=. 1556fi 1557# Remove unnecessary trailing slashes from srcdir. 1558# Double slashes in file names in object file debugging info 1559# mess up M-x gdb in Emacs. 1560case $srcdir in 1561*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1562esac 1563for ac_var in $ac_precious_vars; do 1564 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1565 eval ac_env_${ac_var}_value=\$${ac_var} 1566 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1567 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1568done 1569 1570# 1571# Report the --help message. 1572# 1573if test "$ac_init_help" = "long"; then 1574 # Omit some internal or obsolete options to make the list less imposing. 1575 # This message is too long to be a string in the A/UX 3.1 sh. 1576 cat <<_ACEOF 1577\`configure' configures SoX 14.4.2 to adapt to many kinds of systems. 1578 1579Usage: $0 [OPTION]... [VAR=VALUE]... 1580 1581To assign environment variables (e.g., CC, CFLAGS...), specify them as 1582VAR=VALUE. See below for descriptions of some of the useful variables. 1583 1584Defaults for the options are specified in brackets. 1585 1586Configuration: 1587 -h, --help display this help and exit 1588 --help=short display options specific to this package 1589 --help=recursive display the short help of all the included packages 1590 -V, --version display version information and exit 1591 -q, --quiet, --silent do not print \`checking ...' messages 1592 --cache-file=FILE cache test results in FILE [disabled] 1593 -C, --config-cache alias for \`--cache-file=config.cache' 1594 -n, --no-create do not create output files 1595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1596 1597Installation directories: 1598 --prefix=PREFIX install architecture-independent files in PREFIX 1599 [$ac_default_prefix] 1600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1601 [PREFIX] 1602 1603By default, \`make install' will install all the files in 1604\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1605an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1606for instance \`--prefix=\$HOME'. 1607 1608For better control, use the options below. 1609 1610Fine tuning of the installation directories: 1611 --bindir=DIR user executables [EPREFIX/bin] 1612 --sbindir=DIR system admin executables [EPREFIX/sbin] 1613 --libexecdir=DIR program executables [EPREFIX/libexec] 1614 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1615 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1616 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1617 --libdir=DIR object code libraries [EPREFIX/lib] 1618 --includedir=DIR C header files [PREFIX/include] 1619 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1620 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1621 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1622 --infodir=DIR info documentation [DATAROOTDIR/info] 1623 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1624 --mandir=DIR man documentation [DATAROOTDIR/man] 1625 --docdir=DIR documentation root [DATAROOTDIR/doc/sox] 1626 --htmldir=DIR html documentation [DOCDIR] 1627 --dvidir=DIR dvi documentation [DOCDIR] 1628 --pdfdir=DIR pdf documentation [DOCDIR] 1629 --psdir=DIR ps documentation [DOCDIR] 1630_ACEOF 1631 1632 cat <<\_ACEOF 1633 1634Program names: 1635 --program-prefix=PREFIX prepend PREFIX to installed program names 1636 --program-suffix=SUFFIX append SUFFIX to installed program names 1637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1638 1639System types: 1640 --build=BUILD configure for building on BUILD [guessed] 1641 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1642 --target=TARGET configure for building compilers for TARGET [HOST] 1643_ACEOF 1644fi 1645 1646if test -n "$ac_init_help"; then 1647 case $ac_init_help in 1648 short | recursive ) echo "Configuration of SoX 14.4.2:";; 1649 esac 1650 cat <<\_ACEOF 1651 1652Optional Features: 1653 --disable-option-checking ignore unrecognized --enable/--with options 1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1656 --enable-silent-rules less verbose build output (undo: "make V=1") 1657 --disable-silent-rules verbose build output (undo: "make V=0") 1658 --enable-dependency-tracking 1659 do not reject slow dependency extractors 1660 --disable-dependency-tracking 1661 speeds up one-time build 1662 --enable-shared[=PKGS] build shared libraries [default=yes] 1663 --enable-static[=PKGS] build static libraries [default=yes] 1664 --enable-fast-install[=PKGS] 1665 optimize for fast installation [default=yes] 1666 --disable-libtool-lock avoid locking (might break parallel builds) 1667 --enable-debug make a debug build 1668 --disable-stack-protector 1669 Disable GCC's/libc's stack-smashing protection 1670 --disable-largefile omit support for large files 1671 --disable-silent-libtool 1672 Verbose libtool 1673 --disable-openmp do not use OpenMP 1674 --enable-dl-mad Dlopen mad instead of linking in. 1675 --enable-dl-lame Dlopen lame instead of linking in. 1676 --enable-dl-twolame Dlopen twolame instead of linking in. 1677 --enable-dl-amrwb Dlopen amrbw instead of linking in. 1678 --enable-dl-amrnb Dlopen amrnb instead of linking in. 1679 --enable-dl-sndfile Dlopen sndfile instead of linking in. 1680 --disable-symlinks Don't make any symlinks to sox. 1681 1682Optional Packages: 1683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1685 --without-libltdl Don't try to use libltdl for external dynamic 1686 library support 1687 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1688 both] 1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1690 --with-sysroot=DIR Search for dependent libraries within DIR 1691 (or the compiler's sysroot if not specified). 1692 --with-dyn-default Default to loading optional formats dynamically 1693 --with-pkgconfigdir location to install .pc files or "no" to disable 1694 (default=$(libdir)/pkgconfig) 1695 --with-distro=distro Provide distribution name 1696 --without-magic Don't try to use magic 1697 --without-png Don't try to use png 1698 --without-ladspa Don't try to use LADSPA 1699 --with-ladspa-path Default search path for LADSPA plugins 1700 --without-mad Don't try to use MAD (MP3 Audio Decoder) 1701 --without-id3tag Don't try to use id3tag 1702 --without-lame Don't try to use LAME (LAME Ain't an MP3 Encoder) 1703 --without-twolame Don't try to use Twolame (MP2 Audio Encoder) 1704 --with-oggvorbis=dyn load oggvorbis dynamically 1705 --with-opus=dyn load opus dynamically 1706 --with-flac=dyn load flac dynamically 1707 --with-amrwb=dyn load amrwb dynamically 1708 --with-amrnb=dyn load amrnb dynamically 1709 --with-wavpack=dyn load wavpack dynamically 1710 --with-sndio=dyn load sndio dynamically 1711 --with-coreaudio=dyn load coreaudio dynamically 1712 --with-alsa=dyn load alsa dynamically 1713 --with-ao=dyn load ao dynamically 1714 --with-pulseaudio=dyn load pulseaudio dynamically 1715 --with-waveaudio=dyn load waveaudio dynamically 1716 --with-sndfile=dyn load sndfile dynamically 1717 --with-oss=dyn load oss dynamically 1718 --with-sunaudio=dyn load sunaudio dynamically 1719 --with-mp3=dyn load mp3 dynamically 1720 --with-gsm=dyn load gsm dynamically 1721 --with-lpc10=dyn load lpc10 dynamically 1722 1723Some influential environment variables: 1724 CC C compiler command 1725 CFLAGS C compiler flags 1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1727 nonstandard directory <lib dir> 1728 LIBS libraries to pass to the linker, e.g. -l<library> 1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1730 you have headers in a nonstandard directory <include dir> 1731 CPP C preprocessor 1732 PKG_CONFIG path to pkg-config utility 1733 PKG_CONFIG_PATH 1734 directories to add to pkg-config's search path 1735 PKG_CONFIG_LIBDIR 1736 path overriding pkg-config's built-in search path 1737 OPUS_CFLAGS C compiler flags for OPUS, overriding pkg-config 1738 OPUS_LIBS linker flags for OPUS, overriding pkg-config 1739 SNDFILE_CFLAGS 1740 C compiler flags for SNDFILE, overriding pkg-config 1741 SNDFILE_LIBS 1742 linker flags for SNDFILE, overriding pkg-config 1743 1744Use these variables to override the choices made by `configure' or to help 1745it to find libraries and programs with nonstandard names/locations. 1746 1747Report bugs to <sox-devel@lists.sourceforge.net>. 1748_ACEOF 1749ac_status=$? 1750fi 1751 1752if test "$ac_init_help" = "recursive"; then 1753 # If there are subdirs, report their specific --help. 1754 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1755 test -d "$ac_dir" || 1756 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1757 continue 1758 ac_builddir=. 1759 1760case "$ac_dir" in 1761.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1762*) 1763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1764 # A ".." for each directory in $ac_dir_suffix. 1765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1766 case $ac_top_builddir_sub in 1767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1769 esac ;; 1770esac 1771ac_abs_top_builddir=$ac_pwd 1772ac_abs_builddir=$ac_pwd$ac_dir_suffix 1773# for backward compatibility: 1774ac_top_builddir=$ac_top_build_prefix 1775 1776case $srcdir in 1777 .) # We are building in place. 1778 ac_srcdir=. 1779 ac_top_srcdir=$ac_top_builddir_sub 1780 ac_abs_top_srcdir=$ac_pwd ;; 1781 [\\/]* | ?:[\\/]* ) # Absolute name. 1782 ac_srcdir=$srcdir$ac_dir_suffix; 1783 ac_top_srcdir=$srcdir 1784 ac_abs_top_srcdir=$srcdir ;; 1785 *) # Relative name. 1786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1787 ac_top_srcdir=$ac_top_build_prefix$srcdir 1788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1789esac 1790ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1791 1792 cd "$ac_dir" || { ac_status=$?; continue; } 1793 # Check for guested configure. 1794 if test -f "$ac_srcdir/configure.gnu"; then 1795 echo && 1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1797 elif test -f "$ac_srcdir/configure"; then 1798 echo && 1799 $SHELL "$ac_srcdir/configure" --help=recursive 1800 else 1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1802 fi || ac_status=$? 1803 cd "$ac_pwd" || { ac_status=$?; break; } 1804 done 1805fi 1806 1807test -n "$ac_init_help" && exit $ac_status 1808if $ac_init_version; then 1809 cat <<\_ACEOF 1810SoX configure 14.4.2 1811generated by GNU Autoconf 2.69 1812 1813Copyright (C) 2012 Free Software Foundation, Inc. 1814This configure script is free software; the Free Software Foundation 1815gives unlimited permission to copy, distribute and modify it. 1816_ACEOF 1817 exit 1818fi 1819 1820## ------------------------ ## 1821## Autoconf initialization. ## 1822## ------------------------ ## 1823 1824# ac_fn_c_try_compile LINENO 1825# -------------------------- 1826# Try to compile conftest.$ac_ext, and return whether this succeeded. 1827ac_fn_c_try_compile () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 rm -f conftest.$ac_objext 1831 if { { ac_try="$ac_compile" 1832case "(($ac_try" in 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1834 *) ac_try_echo=$ac_try;; 1835esac 1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1837$as_echo "$ac_try_echo"; } >&5 1838 (eval "$ac_compile") 2>conftest.err 1839 ac_status=$? 1840 if test -s conftest.err; then 1841 grep -v '^ *+' conftest.err >conftest.er1 1842 cat conftest.er1 >&5 1843 mv -f conftest.er1 conftest.err 1844 fi 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1846 test $ac_status = 0; } && { 1847 test -z "$ac_c_werror_flag" || 1848 test ! -s conftest.err 1849 } && test -s conftest.$ac_objext; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=1 1856fi 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 as_fn_set_status $ac_retval 1859 1860} # ac_fn_c_try_compile 1861 1862# ac_fn_c_try_link LINENO 1863# ----------------------- 1864# Try to link conftest.$ac_ext, and return whether this succeeded. 1865ac_fn_c_try_link () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 rm -f conftest.$ac_objext conftest$ac_exeext 1869 if { { ac_try="$ac_link" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_link") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { 1885 test -z "$ac_c_werror_flag" || 1886 test ! -s conftest.err 1887 } && test -s conftest$ac_exeext && { 1888 test "$cross_compiling" = yes || 1889 test -x conftest$ac_exeext 1890 }; then : 1891 ac_retval=0 1892else 1893 $as_echo "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897fi 1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1900 # interfere with the next link command; also delete a directory that is 1901 # left behind by Apple's compiler. We do this before executing the actions. 1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 as_fn_set_status $ac_retval 1905 1906} # ac_fn_c_try_link 1907 1908# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1909# ------------------------------------------------------- 1910# Tests whether HEADER exists and can be compiled using the include files in 1911# INCLUDES, setting the cache variable VAR accordingly. 1912ac_fn_c_check_header_compile () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1916$as_echo_n "checking for $2... " >&6; } 1917if eval \${$3+:} false; then : 1918 $as_echo_n "(cached) " >&6 1919else 1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922$4 1923#include <$2> 1924_ACEOF 1925if ac_fn_c_try_compile "$LINENO"; then : 1926 eval "$3=yes" 1927else 1928 eval "$3=no" 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_header_compile 1938 1939# ac_fn_c_try_cpp LINENO 1940# ---------------------- 1941# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1942ac_fn_c_try_cpp () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 if { { ac_try="$ac_cpp conftest.$ac_ext" 1946case "(($ac_try" in 1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1948 *) ac_try_echo=$ac_try;; 1949esac 1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1951$as_echo "$ac_try_echo"; } >&5 1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1953 ac_status=$? 1954 if test -s conftest.err; then 1955 grep -v '^ *+' conftest.err >conftest.er1 1956 cat conftest.er1 >&5 1957 mv -f conftest.er1 conftest.err 1958 fi 1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1960 test $ac_status = 0; } > conftest.i && { 1961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1962 test ! -s conftest.err 1963 }; then : 1964 ac_retval=0 1965else 1966 $as_echo "$as_me: failed program was:" >&5 1967sed 's/^/| /' conftest.$ac_ext >&5 1968 1969 ac_retval=1 1970fi 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974} # ac_fn_c_try_cpp 1975 1976# ac_fn_c_try_run LINENO 1977# ---------------------- 1978# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1979# that executables *can* be run. 1980ac_fn_c_try_run () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_link" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_link") 2>&5 1991 ac_status=$? 1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1994 { { case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_try") 2>&5 2001 ac_status=$? 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; }; }; then : 2004 ac_retval=0 2005else 2006 $as_echo "$as_me: program exited with status $ac_status" >&5 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_run 2017 2018# ac_fn_c_check_func LINENO FUNC VAR 2019# ---------------------------------- 2020# Tests whether FUNC exists, setting the cache variable VAR accordingly 2021ac_fn_c_check_func () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028else 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030/* end confdefs.h. */ 2031/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2032 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2033#define $2 innocuous_$2 2034 2035/* System header to define __stub macros and hopefully few prototypes, 2036 which can conflict with char $2 (); below. 2037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2038 <limits.h> exists even on freestanding compilers. */ 2039 2040#ifdef __STDC__ 2041# include <limits.h> 2042#else 2043# include <assert.h> 2044#endif 2045 2046#undef $2 2047 2048/* Override any GCC internal prototype to avoid an error. 2049 Use char because int might match the return type of a GCC 2050 builtin and then its argument prototype would still apply. */ 2051#ifdef __cplusplus 2052extern "C" 2053#endif 2054char $2 (); 2055/* The GNU C library defines this for functions which it implements 2056 to always fail with ENOSYS. Some functions are actually named 2057 something starting with __ and the normal name is an alias. */ 2058#if defined __stub_$2 || defined __stub___$2 2059choke me 2060#endif 2061 2062int 2063main () 2064{ 2065return $2 (); 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_link "$LINENO"; then : 2071 eval "$3=yes" 2072else 2073 eval "$3=no" 2074fi 2075rm -f core conftest.err conftest.$ac_objext \ 2076 conftest$ac_exeext conftest.$ac_ext 2077fi 2078eval ac_res=\$$3 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2080$as_echo "$ac_res" >&6; } 2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2082 2083} # ac_fn_c_check_func 2084 2085# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2086# ------------------------------------------------------- 2087# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2088# the include files in INCLUDES and setting the cache variable VAR 2089# accordingly. 2090ac_fn_c_check_header_mongrel () 2091{ 2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2093 if eval \${$3+:} false; then : 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2095$as_echo_n "checking for $2... " >&6; } 2096if eval \${$3+:} false; then : 2097 $as_echo_n "(cached) " >&6 2098fi 2099eval ac_res=\$$3 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2101$as_echo "$ac_res" >&6; } 2102else 2103 # Is the header compilable? 2104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2105$as_echo_n "checking $2 usability... " >&6; } 2106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109#include <$2> 2110_ACEOF 2111if ac_fn_c_try_compile "$LINENO"; then : 2112 ac_header_compiler=yes 2113else 2114 ac_header_compiler=no 2115fi 2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2118$as_echo "$ac_header_compiler" >&6; } 2119 2120# Is the header present? 2121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2122$as_echo_n "checking $2 presence... " >&6; } 2123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124/* end confdefs.h. */ 2125#include <$2> 2126_ACEOF 2127if ac_fn_c_try_cpp "$LINENO"; then : 2128 ac_header_preproc=yes 2129else 2130 ac_header_preproc=no 2131fi 2132rm -f conftest.err conftest.i conftest.$ac_ext 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2134$as_echo "$ac_header_preproc" >&6; } 2135 2136# So? What about this header? 2137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2138 yes:no: ) 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2140$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2142$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2143 ;; 2144 no:yes:* ) 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2146$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2148$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2150$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2152$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2154$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2155( $as_echo "## ---------------------------------------------- ## 2156## Report this to sox-devel@lists.sourceforge.net ## 2157## ---------------------------------------------- ##" 2158 ) | sed "s/^/$as_me: WARNING: /" >&2 2159 ;; 2160esac 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2162$as_echo_n "checking for $2... " >&6; } 2163if eval \${$3+:} false; then : 2164 $as_echo_n "(cached) " >&6 2165else 2166 eval "$3=\$ac_header_compiler" 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171fi 2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2173 2174} # ac_fn_c_check_header_mongrel 2175 2176# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2177# --------------------------------------------- 2178# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2179# accordingly. 2180ac_fn_c_check_decl () 2181{ 2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2183 as_decl_name=`echo $2|sed 's/ *(.*//'` 2184 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2186$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2187if eval \${$3+:} false; then : 2188 $as_echo_n "(cached) " >&6 2189else 2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2191/* end confdefs.h. */ 2192$4 2193int 2194main () 2195{ 2196#ifndef $as_decl_name 2197#ifdef __cplusplus 2198 (void) $as_decl_use; 2199#else 2200 (void) $as_decl_name; 2201#endif 2202#endif 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_compile "$LINENO"; then : 2209 eval "$3=yes" 2210else 2211 eval "$3=no" 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214fi 2215eval ac_res=\$$3 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2217$as_echo "$ac_res" >&6; } 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 2220} # ac_fn_c_check_decl 2221cat >config.log <<_ACEOF 2222This file contains any messages produced by compilers while 2223running configure, to aid debugging if configure makes a mistake. 2224 2225It was created by SoX $as_me 14.4.2, which was 2226generated by GNU Autoconf 2.69. Invocation command line was 2227 2228 $ $0 $@ 2229 2230_ACEOF 2231exec 5>>config.log 2232{ 2233cat <<_ASUNAME 2234## --------- ## 2235## Platform. ## 2236## --------- ## 2237 2238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2239uname -m = `(uname -m) 2>/dev/null || echo unknown` 2240uname -r = `(uname -r) 2>/dev/null || echo unknown` 2241uname -s = `(uname -s) 2>/dev/null || echo unknown` 2242uname -v = `(uname -v) 2>/dev/null || echo unknown` 2243 2244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2245/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2246 2247/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2248/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2250/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2251/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2252/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2253/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2254 2255_ASUNAME 2256 2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2258for as_dir in $PATH 2259do 2260 IFS=$as_save_IFS 2261 test -z "$as_dir" && as_dir=. 2262 $as_echo "PATH: $as_dir" 2263 done 2264IFS=$as_save_IFS 2265 2266} >&5 2267 2268cat >&5 <<_ACEOF 2269 2270 2271## ----------- ## 2272## Core tests. ## 2273## ----------- ## 2274 2275_ACEOF 2276 2277 2278# Keep a trace of the command line. 2279# Strip out --no-create and --no-recursion so they do not pile up. 2280# Strip out --silent because we don't want to record it for future runs. 2281# Also quote any args containing shell meta-characters. 2282# Make two passes to allow for proper duplicate-argument suppression. 2283ac_configure_args= 2284ac_configure_args0= 2285ac_configure_args1= 2286ac_must_keep_next=false 2287for ac_pass in 1 2 2288do 2289 for ac_arg 2290 do 2291 case $ac_arg in 2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2294 | -silent | --silent | --silen | --sile | --sil) 2295 continue ;; 2296 *\'*) 2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 esac 2299 case $ac_pass in 2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2301 2) 2302 as_fn_append ac_configure_args1 " '$ac_arg'" 2303 if test $ac_must_keep_next = true; then 2304 ac_must_keep_next=false # Got value, back to normal. 2305 else 2306 case $ac_arg in 2307 *=* | --config-cache | -C | -disable-* | --disable-* \ 2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2310 | -with-* | --with-* | -without-* | --without-* | --x) 2311 case "$ac_configure_args0 " in 2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2313 esac 2314 ;; 2315 -* ) ac_must_keep_next=true ;; 2316 esac 2317 fi 2318 as_fn_append ac_configure_args " '$ac_arg'" 2319 ;; 2320 esac 2321 done 2322done 2323{ ac_configure_args0=; unset ac_configure_args0;} 2324{ ac_configure_args1=; unset ac_configure_args1;} 2325 2326# When interrupted or exit'd, cleanup temporary files, and complete 2327# config.log. We remove comments because anyway the quotes in there 2328# would cause problems or look ugly. 2329# WARNING: Use '\'' to represent an apostrophe within the trap. 2330# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2331trap 'exit_status=$? 2332 # Save into config.log some information that might help in debugging. 2333 { 2334 echo 2335 2336 $as_echo "## ---------------- ## 2337## Cache variables. ## 2338## ---------------- ##" 2339 echo 2340 # The following way of writing the cache mishandles newlines in values, 2341( 2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in #( 2345 *${as_nl}*) 2346 case $ac_var in #( 2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2349 esac 2350 case $ac_var in #( 2351 _ | IFS | as_nl) ;; #( 2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2353 *) { eval $ac_var=; unset $ac_var;} ;; 2354 esac ;; 2355 esac 2356 done 2357 (set) 2>&1 | 2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2359 *${as_nl}ac_space=\ *) 2360 sed -n \ 2361 "s/'\''/'\''\\\\'\'''\''/g; 2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2363 ;; #( 2364 *) 2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2366 ;; 2367 esac | 2368 sort 2369) 2370 echo 2371 2372 $as_echo "## ----------------- ## 2373## Output variables. ## 2374## ----------------- ##" 2375 echo 2376 for ac_var in $ac_subst_vars 2377 do 2378 eval ac_val=\$$ac_var 2379 case $ac_val in 2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2381 esac 2382 $as_echo "$ac_var='\''$ac_val'\''" 2383 done | sort 2384 echo 2385 2386 if test -n "$ac_subst_files"; then 2387 $as_echo "## ------------------- ## 2388## File substitutions. ## 2389## ------------------- ##" 2390 echo 2391 for ac_var in $ac_subst_files 2392 do 2393 eval ac_val=\$$ac_var 2394 case $ac_val in 2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2396 esac 2397 $as_echo "$ac_var='\''$ac_val'\''" 2398 done | sort 2399 echo 2400 fi 2401 2402 if test -s confdefs.h; then 2403 $as_echo "## ----------- ## 2404## confdefs.h. ## 2405## ----------- ##" 2406 echo 2407 cat confdefs.h 2408 echo 2409 fi 2410 test "$ac_signal" != 0 && 2411 $as_echo "$as_me: caught signal $ac_signal" 2412 $as_echo "$as_me: exit $exit_status" 2413 } >&5 2414 rm -f core *.core core.conftest.* && 2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2416 exit $exit_status 2417' 0 2418for ac_signal in 1 2 13 15; do 2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2420done 2421ac_signal=0 2422 2423# confdefs.h avoids OS command line length limits that DEFS can exceed. 2424rm -f -r conftest* confdefs.h 2425 2426$as_echo "/* confdefs.h */" > confdefs.h 2427 2428# Predefined preprocessor variables. 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_NAME "$PACKAGE_NAME" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2436_ACEOF 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE_VERSION "$PACKAGE_VERSION" 2440_ACEOF 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE_STRING "$PACKAGE_STRING" 2444_ACEOF 2445 2446cat >>confdefs.h <<_ACEOF 2447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2448_ACEOF 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE_URL "$PACKAGE_URL" 2452_ACEOF 2453 2454 2455# Let the site file select an alternate cache file if it wants to. 2456# Prefer an explicitly selected file to automatically selected ones. 2457ac_site_file1=NONE 2458ac_site_file2=NONE 2459if test -n "$CONFIG_SITE"; then 2460 # We do not want a PATH search for config.site. 2461 case $CONFIG_SITE in #(( 2462 -*) ac_site_file1=./$CONFIG_SITE;; 2463 */*) ac_site_file1=$CONFIG_SITE;; 2464 *) ac_site_file1=./$CONFIG_SITE;; 2465 esac 2466elif test "x$prefix" != xNONE; then 2467 ac_site_file1=$prefix/share/config.site 2468 ac_site_file2=$prefix/etc/config.site 2469else 2470 ac_site_file1=$ac_default_prefix/share/config.site 2471 ac_site_file2=$ac_default_prefix/etc/config.site 2472fi 2473for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2474do 2475 test "x$ac_site_file" = xNONE && continue 2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2478$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2479 sed 's/^/| /' "$ac_site_file" >&5 2480 . "$ac_site_file" \ 2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2483as_fn_error $? "failed to load site script $ac_site_file 2484See \`config.log' for more details" "$LINENO" 5; } 2485 fi 2486done 2487 2488if test -r "$cache_file"; then 2489 # Some versions of bash will fail to source /dev/null (special files 2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2493$as_echo "$as_me: loading cache $cache_file" >&6;} 2494 case $cache_file in 2495 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2496 *) . "./$cache_file";; 2497 esac 2498 fi 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2501$as_echo "$as_me: creating cache $cache_file" >&6;} 2502 >$cache_file 2503fi 2504 2505# Check that the precious variables saved in the cache have kept the same 2506# value. 2507ac_cache_corrupted=false 2508for ac_var in $ac_precious_vars; do 2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2510 eval ac_new_set=\$ac_env_${ac_var}_set 2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2512 eval ac_new_val=\$ac_env_${ac_var}_value 2513 case $ac_old_set,$ac_new_set in 2514 set,) 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2516$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,set) 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2520$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2521 ac_cache_corrupted=: ;; 2522 ,);; 2523 *) 2524 if test "x$ac_old_val" != "x$ac_new_val"; then 2525 # differences in whitespace do not lead to failure. 2526 ac_old_val_w=`echo x $ac_old_val` 2527 ac_new_val_w=`echo x $ac_new_val` 2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2530$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2531 ac_cache_corrupted=: 2532 else 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2534$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2535 eval $ac_var=\$ac_old_val 2536 fi 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2538$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2540$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2541 fi;; 2542 esac 2543 # Pass precious variables to config.status. 2544 if test "$ac_new_set" = set; then 2545 case $ac_new_val in 2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2547 *) ac_arg=$ac_var=$ac_new_val ;; 2548 esac 2549 case " $ac_configure_args " in 2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2552 esac 2553 fi 2554done 2555if $ac_cache_corrupted; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2559$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2561fi 2562## -------------------- ## 2563## Main body of script. ## 2564## -------------------- ## 2565 2566ac_ext=c 2567ac_cpp='$CPP $CPPFLAGS' 2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_c_compiler_gnu 2571 2572 2573 2574 2575 2576ac_aux_dir= 2577for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2578 if test -f "$ac_dir/install-sh"; then 2579 ac_aux_dir=$ac_dir 2580 ac_install_sh="$ac_aux_dir/install-sh -c" 2581 break 2582 elif test -f "$ac_dir/install.sh"; then 2583 ac_aux_dir=$ac_dir 2584 ac_install_sh="$ac_aux_dir/install.sh -c" 2585 break 2586 elif test -f "$ac_dir/shtool"; then 2587 ac_aux_dir=$ac_dir 2588 ac_install_sh="$ac_aux_dir/shtool install -c" 2589 break 2590 fi 2591done 2592if test -z "$ac_aux_dir"; then 2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2594fi 2595 2596# These three variables are undocumented and unsupported, 2597# and are intended to be withdrawn in a future Autoconf release. 2598# They can cause serious problems if a builder's source tree is in a directory 2599# whose full name contains unusual characters. 2600ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2601ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2602ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2603 2604 2605# Make sure we can run config.sub. 2606$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2607 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2610$as_echo_n "checking build system type... " >&6; } 2611if ${ac_cv_build+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 ac_build_alias=$build_alias 2615test "x$ac_build_alias" = x && 2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2617test "x$ac_build_alias" = x && 2618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2619ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2621 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2624$as_echo "$ac_cv_build" >&6; } 2625case $ac_cv_build in 2626*-*-*) ;; 2627*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2628esac 2629build=$ac_cv_build 2630ac_save_IFS=$IFS; IFS='-' 2631set x $ac_cv_build 2632shift 2633build_cpu=$1 2634build_vendor=$2 2635shift; shift 2636# Remember, the first character of IFS is used to create $*, 2637# except with old shells: 2638build_os=$* 2639IFS=$ac_save_IFS 2640case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2641 2642 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2644$as_echo_n "checking host system type... " >&6; } 2645if ${ac_cv_host+:} false; then : 2646 $as_echo_n "(cached) " >&6 2647else 2648 if test "x$host_alias" = x; then 2649 ac_cv_host=$ac_cv_build 2650else 2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2653fi 2654 2655fi 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2657$as_echo "$ac_cv_host" >&6; } 2658case $ac_cv_host in 2659*-*-*) ;; 2660*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2661esac 2662host=$ac_cv_host 2663ac_save_IFS=$IFS; IFS='-' 2664set x $ac_cv_host 2665shift 2666host_cpu=$1 2667host_vendor=$2 2668shift; shift 2669# Remember, the first character of IFS is used to create $*, 2670# except with old shells: 2671host_os=$* 2672IFS=$ac_save_IFS 2673case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2674 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2677$as_echo_n "checking target system type... " >&6; } 2678if ${ac_cv_target+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test "x$target_alias" = x; then 2682 ac_cv_target=$ac_cv_host 2683else 2684 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2686fi 2687 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2690$as_echo "$ac_cv_target" >&6; } 2691case $ac_cv_target in 2692*-*-*) ;; 2693*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2694esac 2695target=$ac_cv_target 2696ac_save_IFS=$IFS; IFS='-' 2697set x $ac_cv_target 2698shift 2699target_cpu=$1 2700target_vendor=$2 2701shift; shift 2702# Remember, the first character of IFS is used to create $*, 2703# except with old shells: 2704target_os=$* 2705IFS=$ac_save_IFS 2706case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2707 2708 2709# The aliases save the names the user supplied, while $host etc. 2710# will get canonicalized. 2711test -n "$target_alias" && 2712 test "$program_prefix$program_suffix$program_transform_name" = \ 2713 NONENONEs,x,x, && 2714 program_prefix=${target_alias}- 2715 2716am__api_version='1.14' 2717 2718# Find a good install program. We prefer a C program (faster), 2719# so one script is as good as another. But avoid the broken or 2720# incompatible versions: 2721# SysV /etc/install, /usr/sbin/install 2722# SunOS /usr/etc/install 2723# IRIX /sbin/install 2724# AIX /bin/install 2725# AmigaOS /C/install, which installs bootblocks on floppy discs 2726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2727# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2729# OS/2's system install, which has a completely different semantic 2730# ./install, which can be erroneously created by make from ./install.sh. 2731# Reject install programs that cannot install multiple files. 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2733$as_echo_n "checking for a BSD-compatible install... " >&6; } 2734if test -z "$INSTALL"; then 2735if ${ac_cv_path_install+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 # Account for people who put trailing slashes in PATH elements. 2744case $as_dir/ in #(( 2745 ./ | .// | /[cC]/* | \ 2746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2747 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2748 /usr/ucb/* ) ;; 2749 *) 2750 # OSF1 and SCO ODT 3.0 have their own names for install. 2751 # Don't use installbsd from OSF since it installs stuff as root 2752 # by default. 2753 for ac_prog in ginstall scoinst install; do 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2756 if test $ac_prog = install && 2757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2758 # AIX install. It has an incompatible calling convention. 2759 : 2760 elif test $ac_prog = install && 2761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2762 # program-specific install script used by HP pwplus--don't use. 2763 : 2764 else 2765 rm -rf conftest.one conftest.two conftest.dir 2766 echo one > conftest.one 2767 echo two > conftest.two 2768 mkdir conftest.dir 2769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2770 test -s conftest.one && test -s conftest.two && 2771 test -s conftest.dir/conftest.one && 2772 test -s conftest.dir/conftest.two 2773 then 2774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2775 break 3 2776 fi 2777 fi 2778 fi 2779 done 2780 done 2781 ;; 2782esac 2783 2784 done 2785IFS=$as_save_IFS 2786 2787rm -rf conftest.one conftest.two conftest.dir 2788 2789fi 2790 if test "${ac_cv_path_install+set}" = set; then 2791 INSTALL=$ac_cv_path_install 2792 else 2793 # As a last resort, use the slow shell script. Don't cache a 2794 # value for INSTALL within a source directory, because that will 2795 # break other packages using the cache if that directory is 2796 # removed, or if the value is a relative name. 2797 INSTALL=$ac_install_sh 2798 fi 2799fi 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2801$as_echo "$INSTALL" >&6; } 2802 2803# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2804# It thinks the first close brace ends the variable substitution. 2805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2806 2807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2808 2809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2810 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2812$as_echo_n "checking whether build environment is sane... " >&6; } 2813# Reject unsafe characters in $srcdir or the absolute working directory 2814# name. Accept space and tab only in the latter. 2815am_lf=' 2816' 2817case `pwd` in 2818 *[\\\"\#\$\&\'\`$am_lf]*) 2819 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2820esac 2821case $srcdir in 2822 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2823 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2824esac 2825 2826# Do 'set' in a subshell so we don't clobber the current shell's 2827# arguments. Must try -L first in case configure is actually a 2828# symlink; some systems play weird games with the mod time of symlinks 2829# (eg FreeBSD returns the mod time of the symlink's containing 2830# directory). 2831if ( 2832 am_has_slept=no 2833 for am_try in 1 2; do 2834 echo "timestamp, slept: $am_has_slept" > conftest.file 2835 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2836 if test "$*" = "X"; then 2837 # -L didn't work. 2838 set X `ls -t "$srcdir/configure" conftest.file` 2839 fi 2840 if test "$*" != "X $srcdir/configure conftest.file" \ 2841 && test "$*" != "X conftest.file $srcdir/configure"; then 2842 2843 # If neither matched, then we have a broken ls. This can happen 2844 # if, for instance, CONFIG_SHELL is bash and it inherits a 2845 # broken ls alias from the environment. This has actually 2846 # happened. Such a system could not be considered "sane". 2847 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2848 alias in your environment" "$LINENO" 5 2849 fi 2850 if test "$2" = conftest.file || test $am_try -eq 2; then 2851 break 2852 fi 2853 # Just in case. 2854 sleep 1 2855 am_has_slept=yes 2856 done 2857 test "$2" = conftest.file 2858 ) 2859then 2860 # Ok. 2861 : 2862else 2863 as_fn_error $? "newly created file is older than distributed files! 2864Check your system clock" "$LINENO" 5 2865fi 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2867$as_echo "yes" >&6; } 2868# If we didn't sleep, we still need to ensure time stamps of config.status and 2869# generated files are strictly newer. 2870am_sleep_pid= 2871if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2872 ( sleep 1 ) & 2873 am_sleep_pid=$! 2874fi 2875 2876rm -f conftest.file 2877 2878test "$program_prefix" != NONE && 2879 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2880# Use a double $ so make ignores it. 2881test "$program_suffix" != NONE && 2882 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2883# Double any \ or $. 2884# By default was `s,x,x', remove it if useless. 2885ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2886program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2887 2888# expand $ac_aux_dir to an absolute path 2889am_aux_dir=`cd $ac_aux_dir && pwd` 2890 2891if test x"${MISSING+set}" != xset; then 2892 case $am_aux_dir in 2893 *\ * | *\ *) 2894 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2895 *) 2896 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2897 esac 2898fi 2899# Use eval to expand $SHELL 2900if eval "$MISSING --is-lightweight"; then 2901 am_missing_run="$MISSING " 2902else 2903 am_missing_run= 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2905$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2906fi 2907 2908if test x"${install_sh}" != xset; then 2909 case $am_aux_dir in 2910 *\ * | *\ *) 2911 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2912 *) 2913 install_sh="\${SHELL} $am_aux_dir/install-sh" 2914 esac 2915fi 2916 2917# Installed binaries are usually stripped using 'strip' when the user 2918# run "make install-strip". However 'strip' might not be the right 2919# tool to use in cross-compilation environments, therefore Automake 2920# will honor the 'STRIP' environment variable to overrule this program. 2921if test "$cross_compiling" != no; then 2922 if test -n "$ac_tool_prefix"; then 2923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2924set dummy ${ac_tool_prefix}strip; ac_word=$2 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2926$as_echo_n "checking for $ac_word... " >&6; } 2927if ${ac_cv_prog_STRIP+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 if test -n "$STRIP"; then 2931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950STRIP=$ac_cv_prog_STRIP 2951if test -n "$STRIP"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2953$as_echo "$STRIP" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 2960fi 2961if test -z "$ac_cv_prog_STRIP"; then 2962 ac_ct_STRIP=$STRIP 2963 # Extract the first word of "strip", so it can be a program name with args. 2964set dummy strip; ac_word=$2 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966$as_echo_n "checking for $ac_word... " >&6; } 2967if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2968 $as_echo_n "(cached) " >&6 2969else 2970 if test -n "$ac_ct_STRIP"; then 2971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_ac_ct_STRIP="strip" 2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985 done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2991if test -n "$ac_ct_STRIP"; then 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2993$as_echo "$ac_ct_STRIP" >&6; } 2994else 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996$as_echo "no" >&6; } 2997fi 2998 2999 if test "x$ac_ct_STRIP" = x; then 3000 STRIP=":" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003yes:) 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006ac_tool_warned=yes ;; 3007esac 3008 STRIP=$ac_ct_STRIP 3009 fi 3010else 3011 STRIP="$ac_cv_prog_STRIP" 3012fi 3013 3014fi 3015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3016 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3018$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3019if test -z "$MKDIR_P"; then 3020 if ${ac_cv_path_mkdir+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_prog in mkdir gmkdir; do 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3031 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3032 'mkdir (GNU coreutils) '* | \ 3033 'mkdir (coreutils) '* | \ 3034 'mkdir (fileutils) '4.1*) 3035 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3036 break 3;; 3037 esac 3038 done 3039 done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044 3045 test -d ./--version && rmdir ./--version 3046 if test "${ac_cv_path_mkdir+set}" = set; then 3047 MKDIR_P="$ac_cv_path_mkdir -p" 3048 else 3049 # As a last resort, use the slow shell script. Don't cache a 3050 # value for MKDIR_P within a source directory, because that will 3051 # break other packages using the cache if that directory is 3052 # removed, or if the value is a relative name. 3053 MKDIR_P="$ac_install_sh -d" 3054 fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3057$as_echo "$MKDIR_P" >&6; } 3058 3059for ac_prog in gawk mawk nawk awk 3060do 3061 # Extract the first word of "$ac_prog", so it can be a program name with args. 3062set dummy $ac_prog; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_AWK+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$AWK"; then 3069 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_AWK="$ac_prog" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088AWK=$ac_cv_prog_AWK 3089if test -n "$AWK"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3091$as_echo "$AWK" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098 test -n "$AWK" && break 3099done 3100 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3102$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3103set x ${MAKE-make} 3104ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3105if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 cat >conftest.make <<\_ACEOF 3109SHELL = /bin/sh 3110all: 3111 @echo '@@@%%%=$(MAKE)=@@@%%%' 3112_ACEOF 3113# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3114case `${MAKE-make} -f conftest.make 2>/dev/null` in 3115 *@@@%%%=?*=@@@%%%*) 3116 eval ac_cv_prog_make_${ac_make}_set=yes;; 3117 *) 3118 eval ac_cv_prog_make_${ac_make}_set=no;; 3119esac 3120rm -f conftest.make 3121fi 3122if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3124$as_echo "yes" >&6; } 3125 SET_MAKE= 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129 SET_MAKE="MAKE=${MAKE-make}" 3130fi 3131 3132rm -rf .tst 2>/dev/null 3133mkdir .tst 2>/dev/null 3134if test -d .tst; then 3135 am__leading_dot=. 3136else 3137 am__leading_dot=_ 3138fi 3139rmdir .tst 2>/dev/null 3140 3141# Check whether --enable-silent-rules was given. 3142if test "${enable_silent_rules+set}" = set; then : 3143 enableval=$enable_silent_rules; 3144fi 3145 3146case $enable_silent_rules in # ((( 3147 yes) AM_DEFAULT_VERBOSITY=0;; 3148 no) AM_DEFAULT_VERBOSITY=1;; 3149 *) AM_DEFAULT_VERBOSITY=1;; 3150esac 3151am_make=${MAKE-make} 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3153$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3154if ${am_cv_make_support_nested_variables+:} false; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if $as_echo 'TRUE=$(BAR$(V)) 3158BAR0=false 3159BAR1=true 3160V=1 3161am__doit: 3162 @$(TRUE) 3163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3164 am_cv_make_support_nested_variables=yes 3165else 3166 am_cv_make_support_nested_variables=no 3167fi 3168fi 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3170$as_echo "$am_cv_make_support_nested_variables" >&6; } 3171if test $am_cv_make_support_nested_variables = yes; then 3172 AM_V='$(V)' 3173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3174else 3175 AM_V=$AM_DEFAULT_VERBOSITY 3176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3177fi 3178AM_BACKSLASH='\' 3179 3180if test "`cd $srcdir && pwd`" != "`pwd`"; then 3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3182 # is not polluted with repeated "-I." 3183 am__isrc=' -I$(srcdir)' 3184 # test to see if srcdir already configured 3185 if test -f $srcdir/config.status; then 3186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3187 fi 3188fi 3189 3190# test whether we have cygpath 3191if test -z "$CYGPATH_W"; then 3192 if (cygpath --version) >/dev/null 2>/dev/null; then 3193 CYGPATH_W='cygpath -w' 3194 else 3195 CYGPATH_W=echo 3196 fi 3197fi 3198 3199 3200# Define the identity of the package. 3201 PACKAGE='sox' 3202 VERSION='14.4.2' 3203 3204 3205cat >>confdefs.h <<_ACEOF 3206#define PACKAGE "$PACKAGE" 3207_ACEOF 3208 3209 3210cat >>confdefs.h <<_ACEOF 3211#define VERSION "$VERSION" 3212_ACEOF 3213 3214# Some tools Automake needs. 3215 3216ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3217 3218 3219AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3220 3221 3222AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3223 3224 3225AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3226 3227 3228MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3229 3230# For better backward compatibility. To be removed once Automake 1.9.x 3231# dies out for good. For more background, see: 3232# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3233# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3234mkdir_p='$(MKDIR_P)' 3235 3236# We need awk for the "check" target. The system "awk" is bad on 3237# some platforms. 3238# Always define AMTAR for backward compatibility. Yes, it's still used 3239# in the wild :-( We should find a proper way to deprecate it ... 3240AMTAR='$${TAR-tar}' 3241 3242 3243# We'll loop over all known methods to create a tar archive until one works. 3244_am_tools='gnutar pax cpio none' 3245 3246am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3247 3248 3249 3250 3251 3252 3253# POSIX will say in a future version that running "rm -f" with no argument 3254# is OK; and we want to be able to make that assumption in our Makefile 3255# recipes. So use an aggressive probe to check that the usage we want is 3256# actually supported "in the wild" to an acceptable degree. 3257# See automake bug#10828. 3258# To make any issue more visible, cause the running configure to be aborted 3259# by default if the 'rm' program in use doesn't match our expectations; the 3260# user can still override this though. 3261if rm -f && rm -fr && rm -rf; then : OK; else 3262 cat >&2 <<'END' 3263Oops! 3264 3265Your 'rm' program seems unable to run without file operands specified 3266on the command line, even when the '-f' option is present. This is contrary 3267to the behaviour of most rm programs out there, and not conforming with 3268the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3269 3270Please tell bug-automake@gnu.org about your system, including the value 3271of your $PATH and any error possibly output before this message. This 3272can help us improve future automake versions. 3273 3274END 3275 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3276 echo 'Configuration will proceed anyway, since you have set the' >&2 3277 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3278 echo >&2 3279 else 3280 cat >&2 <<'END' 3281Aborting the configuration process, to ensure you take notice of the issue. 3282 3283You can download and install GNU coreutils to get an 'rm' implementation 3284that behaves properly: <http://www.gnu.org/software/coreutils/>. 3285 3286If you want to complete the configuration process using your problematic 3287'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3288to "yes", and re-run configure. 3289 3290END 3291 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3292 fi 3293fi 3294# Check whether --enable-silent-rules was given. 3295if test "${enable_silent_rules+set}" = set; then : 3296 enableval=$enable_silent_rules; 3297fi 3298 3299case $enable_silent_rules in # ((( 3300 yes) AM_DEFAULT_VERBOSITY=0;; 3301 no) AM_DEFAULT_VERBOSITY=1;; 3302 *) AM_DEFAULT_VERBOSITY=0;; 3303esac 3304am_make=${MAKE-make} 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3306$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3307if ${am_cv_make_support_nested_variables+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 if $as_echo 'TRUE=$(BAR$(V)) 3311BAR0=false 3312BAR1=true 3313V=1 3314am__doit: 3315 @$(TRUE) 3316.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3317 am_cv_make_support_nested_variables=yes 3318else 3319 am_cv_make_support_nested_variables=no 3320fi 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3323$as_echo "$am_cv_make_support_nested_variables" >&6; } 3324if test $am_cv_make_support_nested_variables = yes; then 3325 AM_V='$(V)' 3326 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3327else 3328 AM_V=$AM_DEFAULT_VERBOSITY 3329 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3330fi 3331AM_BACKSLASH='\' 3332 3333 3334ac_config_headers="$ac_config_headers src/soxconfig.h" 3335 3336 3337 3338 3339ac_ext=c 3340ac_cpp='$CPP $CPPFLAGS' 3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344if test -n "$ac_tool_prefix"; then 3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3346set dummy ${ac_tool_prefix}gcc; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if ${ac_cv_prog_CC+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test -n "$CC"; then 3353 ac_cv_prog_CC="$CC" # Let the user override the test. 3354else 3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3356for as_dir in $PATH 3357do 3358 IFS=$as_save_IFS 3359 test -z "$as_dir" && as_dir=. 3360 for ac_exec_ext in '' $ac_executable_extensions; do 3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3362 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3364 break 2 3365 fi 3366done 3367 done 3368IFS=$as_save_IFS 3369 3370fi 3371fi 3372CC=$ac_cv_prog_CC 3373if test -n "$CC"; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3375$as_echo "$CC" >&6; } 3376else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379fi 3380 3381 3382fi 3383if test -z "$ac_cv_prog_CC"; then 3384 ac_ct_CC=$CC 3385 # Extract the first word of "gcc", so it can be a program name with args. 3386set dummy gcc; ac_word=$2 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3388$as_echo_n "checking for $ac_word... " >&6; } 3389if ${ac_cv_prog_ac_ct_CC+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 if test -n "$ac_ct_CC"; then 3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3394else 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 test -z "$as_dir" && as_dir=. 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_ac_ct_CC="gcc" 3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi 3411fi 3412ac_ct_CC=$ac_cv_prog_ac_ct_CC 3413if test -n "$ac_ct_CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3415$as_echo "$ac_ct_CC" >&6; } 3416else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418$as_echo "no" >&6; } 3419fi 3420 3421 if test "x$ac_ct_CC" = x; then 3422 CC="" 3423 else 3424 case $cross_compiling:$ac_tool_warned in 3425yes:) 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3428ac_tool_warned=yes ;; 3429esac 3430 CC=$ac_ct_CC 3431 fi 3432else 3433 CC="$ac_cv_prog_CC" 3434fi 3435 3436if test -z "$CC"; then 3437 if test -n "$ac_tool_prefix"; then 3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3439set dummy ${ac_tool_prefix}cc; ac_word=$2 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441$as_echo_n "checking for $ac_word... " >&6; } 3442if ${ac_cv_prog_CC+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 if test -n "$CC"; then 3446 ac_cv_prog_CC="$CC" # Let the user override the test. 3447else 3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449for as_dir in $PATH 3450do 3451 IFS=$as_save_IFS 3452 test -z "$as_dir" && as_dir=. 3453 for ac_exec_ext in '' $ac_executable_extensions; do 3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3455 ac_cv_prog_CC="${ac_tool_prefix}cc" 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459done 3460 done 3461IFS=$as_save_IFS 3462 3463fi 3464fi 3465CC=$ac_cv_prog_CC 3466if test -n "$CC"; then 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468$as_echo "$CC" >&6; } 3469else 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471$as_echo "no" >&6; } 3472fi 3473 3474 3475 fi 3476fi 3477if test -z "$CC"; then 3478 # Extract the first word of "cc", so it can be a program name with args. 3479set dummy cc; ac_word=$2 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481$as_echo_n "checking for $ac_word... " >&6; } 3482if ${ac_cv_prog_CC+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -n "$CC"; then 3486 ac_cv_prog_CC="$CC" # Let the user override the test. 3487else 3488 ac_prog_rejected=no 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 test -z "$as_dir" && as_dir=. 3494 for ac_exec_ext in '' $ac_executable_extensions; do 3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3497 ac_prog_rejected=yes 3498 continue 3499 fi 3500 ac_cv_prog_CC="cc" 3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504done 3505 done 3506IFS=$as_save_IFS 3507 3508if test $ac_prog_rejected = yes; then 3509 # We found a bogon in the path, so make sure we never use it. 3510 set dummy $ac_cv_prog_CC 3511 shift 3512 if test $# != 0; then 3513 # We chose a different compiler from the bogus one. 3514 # However, it has the same basename, so the bogon will be chosen 3515 # first if we set CC to just the basename; use the full file name. 3516 shift 3517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3518 fi 3519fi 3520fi 3521fi 3522CC=$ac_cv_prog_CC 3523if test -n "$CC"; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525$as_echo "$CC" >&6; } 3526else 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528$as_echo "no" >&6; } 3529fi 3530 3531 3532fi 3533if test -z "$CC"; then 3534 if test -n "$ac_tool_prefix"; then 3535 for ac_prog in cl.exe 3536 do 3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3538set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540$as_echo_n "checking for $ac_word... " >&6; } 3541if ${ac_cv_prog_CC+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 if test -n "$CC"; then 3545 ac_cv_prog_CC="$CC" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi 3563fi 3564CC=$ac_cv_prog_CC 3565if test -n "$CC"; then 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3567$as_echo "$CC" >&6; } 3568else 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570$as_echo "no" >&6; } 3571fi 3572 3573 3574 test -n "$CC" && break 3575 done 3576fi 3577if test -z "$CC"; then 3578 ac_ct_CC=$CC 3579 for ac_prog in cl.exe 3580do 3581 # Extract the first word of "$ac_prog", so it can be a program name with args. 3582set dummy $ac_prog; ac_word=$2 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584$as_echo_n "checking for $ac_word... " >&6; } 3585if ${ac_cv_prog_ac_ct_CC+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 if test -n "$ac_ct_CC"; then 3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3590else 3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3592for as_dir in $PATH 3593do 3594 IFS=$as_save_IFS 3595 test -z "$as_dir" && as_dir=. 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3598 ac_cv_prog_ac_ct_CC="$ac_prog" 3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602done 3603 done 3604IFS=$as_save_IFS 3605 3606fi 3607fi 3608ac_ct_CC=$ac_cv_prog_ac_ct_CC 3609if test -n "$ac_ct_CC"; then 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3611$as_echo "$ac_ct_CC" >&6; } 3612else 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614$as_echo "no" >&6; } 3615fi 3616 3617 3618 test -n "$ac_ct_CC" && break 3619done 3620 3621 if test "x$ac_ct_CC" = x; then 3622 CC="" 3623 else 3624 case $cross_compiling:$ac_tool_warned in 3625yes:) 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3628ac_tool_warned=yes ;; 3629esac 3630 CC=$ac_ct_CC 3631 fi 3632fi 3633 3634fi 3635 3636 3637test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "no acceptable C compiler found in \$PATH 3640See \`config.log' for more details" "$LINENO" 5; } 3641 3642# Provide some information about the compiler. 3643$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3644set X $ac_compile 3645ac_compiler=$2 3646for ac_option in --version -v -V -qversion; do 3647 { { ac_try="$ac_compiler $ac_option >&5" 3648case "(($ac_try" in 3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3650 *) ac_try_echo=$ac_try;; 3651esac 3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3653$as_echo "$ac_try_echo"; } >&5 3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3655 ac_status=$? 3656 if test -s conftest.err; then 3657 sed '10a\ 3658... rest of stderr output deleted ... 3659 10q' conftest.err >conftest.er1 3660 cat conftest.er1 >&5 3661 fi 3662 rm -f conftest.er1 conftest.err 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; } 3665done 3666 3667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678ac_clean_files_save=$ac_clean_files 3679ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3680# Try to create an executable without -o first, disregard a.out. 3681# It will help us diagnose broken compilers, and finding out an intuition 3682# of exeext. 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3684$as_echo_n "checking whether the C compiler works... " >&6; } 3685ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3686 3687# The possible output files: 3688ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3689 3690ac_rmfiles= 3691for ac_file in $ac_files 3692do 3693 case $ac_file in 3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3695 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3696 esac 3697done 3698rm -f $ac_rmfiles 3699 3700if { { ac_try="$ac_link_default" 3701case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704esac 3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3706$as_echo "$ac_try_echo"; } >&5 3707 (eval "$ac_link_default") 2>&5 3708 ac_status=$? 3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3710 test $ac_status = 0; }; then : 3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3712# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3713# in a Makefile. We should not override ac_cv_exeext if it was cached, 3714# so that the user can short-circuit this test for compilers unknown to 3715# Autoconf. 3716for ac_file in $ac_files '' 3717do 3718 test -f "$ac_file" || continue 3719 case $ac_file in 3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3721 ;; 3722 [ab].out ) 3723 # We found the default executable, but exeext='' is most 3724 # certainly right. 3725 break;; 3726 *.* ) 3727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3728 then :; else 3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3730 fi 3731 # We set ac_cv_exeext here because the later test for it is not 3732 # safe: cross compilers may not add the suffix if given an `-o' 3733 # argument, so we may need to know it at that point already. 3734 # Even if this section looks crufty: it has the advantage of 3735 # actually working. 3736 break;; 3737 * ) 3738 break;; 3739 esac 3740done 3741test "$ac_cv_exeext" = no && ac_cv_exeext= 3742 3743else 3744 ac_file='' 3745fi 3746if test -z "$ac_file"; then : 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749$as_echo "$as_me: failed program was:" >&5 3750sed 's/^/| /' conftest.$ac_ext >&5 3751 3752{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3754as_fn_error 77 "C compiler cannot create executables 3755See \`config.log' for more details" "$LINENO" 5; } 3756else 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3758$as_echo "yes" >&6; } 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3761$as_echo_n "checking for C compiler default output file name... " >&6; } 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3763$as_echo "$ac_file" >&6; } 3764ac_exeext=$ac_cv_exeext 3765 3766rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3767ac_clean_files=$ac_clean_files_save 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3769$as_echo_n "checking for suffix of executables... " >&6; } 3770if { { ac_try="$ac_link" 3771case "(($ac_try" in 3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *) ac_try_echo=$ac_try;; 3774esac 3775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3776$as_echo "$ac_try_echo"; } >&5 3777 (eval "$ac_link") 2>&5 3778 ac_status=$? 3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3780 test $ac_status = 0; }; then : 3781 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3782# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3783# work properly (i.e., refer to `conftest.exe'), while it won't with 3784# `rm'. 3785for ac_file in conftest.exe conftest conftest.*; do 3786 test -f "$ac_file" || continue 3787 case $ac_file in 3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3790 break;; 3791 * ) break;; 3792 esac 3793done 3794else 3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3797as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3798See \`config.log' for more details" "$LINENO" 5; } 3799fi 3800rm -f conftest conftest$ac_cv_exeext 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3802$as_echo "$ac_cv_exeext" >&6; } 3803 3804rm -f conftest.$ac_ext 3805EXEEXT=$ac_cv_exeext 3806ac_exeext=$EXEEXT 3807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809#include <stdio.h> 3810int 3811main () 3812{ 3813FILE *f = fopen ("conftest.out", "w"); 3814 return ferror (f) || fclose (f) != 0; 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820ac_clean_files="$ac_clean_files conftest.out" 3821# Check that the compiler produces executables we can run. If not, either 3822# the compiler is broken, or we cross compile. 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3824$as_echo_n "checking whether we are cross compiling... " >&6; } 3825if test "$cross_compiling" != yes; then 3826 { { ac_try="$ac_link" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3832$as_echo "$ac_try_echo"; } >&5 3833 (eval "$ac_link") 2>&5 3834 ac_status=$? 3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3836 test $ac_status = 0; } 3837 if { ac_try='./conftest$ac_cv_exeext' 3838 { { case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_try") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; }; }; then 3848 cross_compiling=no 3849 else 3850 if test "$cross_compiling" = maybe; then 3851 cross_compiling=yes 3852 else 3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855as_fn_error $? "cannot run C compiled programs. 3856If you meant to cross compile, use \`--host'. 3857See \`config.log' for more details" "$LINENO" 5; } 3858 fi 3859 fi 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3862$as_echo "$cross_compiling" >&6; } 3863 3864rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3865ac_clean_files=$ac_clean_files_save 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3867$as_echo_n "checking for suffix of object files... " >&6; } 3868if ${ac_cv_objext+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882rm -f conftest.o conftest.obj 3883if { { ac_try="$ac_compile" 3884case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889$as_echo "$ac_try_echo"; } >&5 3890 (eval "$ac_compile") 2>&5 3891 ac_status=$? 3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893 test $ac_status = 0; }; then : 3894 for ac_file in conftest.o conftest.obj conftest.*; do 3895 test -f "$ac_file" || continue; 3896 case $ac_file in 3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3898 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3899 break;; 3900 esac 3901done 3902else 3903 $as_echo "$as_me: failed program was:" >&5 3904sed 's/^/| /' conftest.$ac_ext >&5 3905 3906{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3908as_fn_error $? "cannot compute suffix of object files: cannot compile 3909See \`config.log' for more details" "$LINENO" 5; } 3910fi 3911rm -f conftest.$ac_cv_objext conftest.$ac_ext 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3914$as_echo "$ac_cv_objext" >&6; } 3915OBJEXT=$ac_cv_objext 3916ac_objext=$OBJEXT 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3918$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3919if ${ac_cv_c_compiler_gnu+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924 3925int 3926main () 3927{ 3928#ifndef __GNUC__ 3929 choke me 3930#endif 3931 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936if ac_fn_c_try_compile "$LINENO"; then : 3937 ac_compiler_gnu=yes 3938else 3939 ac_compiler_gnu=no 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3942ac_cv_c_compiler_gnu=$ac_compiler_gnu 3943 3944fi 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3946$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3947if test $ac_compiler_gnu = yes; then 3948 GCC=yes 3949else 3950 GCC= 3951fi 3952ac_test_CFLAGS=${CFLAGS+set} 3953ac_save_CFLAGS=$CFLAGS 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3955$as_echo_n "checking whether $CC accepts -g... " >&6; } 3956if ${ac_cv_prog_cc_g+:} false; then : 3957 $as_echo_n "(cached) " >&6 3958else 3959 ac_save_c_werror_flag=$ac_c_werror_flag 3960 ac_c_werror_flag=yes 3961 ac_cv_prog_cc_g=no 3962 CFLAGS="-g" 3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965 3966int 3967main () 3968{ 3969 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974if ac_fn_c_try_compile "$LINENO"; then : 3975 ac_cv_prog_cc_g=yes 3976else 3977 CFLAGS="" 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980 3981int 3982main () 3983{ 3984 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989if ac_fn_c_try_compile "$LINENO"; then : 3990 3991else 3992 ac_c_werror_flag=$ac_save_c_werror_flag 3993 CFLAGS="-g" 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main () 3999{ 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005if ac_fn_c_try_compile "$LINENO"; then : 4006 ac_cv_prog_cc_g=yes 4007fi 4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4009fi 4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4011fi 4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013 ac_c_werror_flag=$ac_save_c_werror_flag 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4016$as_echo "$ac_cv_prog_cc_g" >&6; } 4017if test "$ac_test_CFLAGS" = set; then 4018 CFLAGS=$ac_save_CFLAGS 4019elif test $ac_cv_prog_cc_g = yes; then 4020 if test "$GCC" = yes; then 4021 CFLAGS="-g -O2" 4022 else 4023 CFLAGS="-g" 4024 fi 4025else 4026 if test "$GCC" = yes; then 4027 CFLAGS="-O2" 4028 else 4029 CFLAGS= 4030 fi 4031fi 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4033$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4034if ${ac_cv_prog_cc_c89+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 ac_cv_prog_cc_c89=no 4038ac_save_CC=$CC 4039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041#include <stdarg.h> 4042#include <stdio.h> 4043struct stat; 4044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4045struct buf { int x; }; 4046FILE * (*rcsopen) (struct buf *, struct stat *, int); 4047static char *e (p, i) 4048 char **p; 4049 int i; 4050{ 4051 return p[i]; 4052} 4053static char *f (char * (*g) (char **, int), char **p, ...) 4054{ 4055 char *s; 4056 va_list v; 4057 va_start (v,p); 4058 s = g (p, va_arg (v,int)); 4059 va_end (v); 4060 return s; 4061} 4062 4063/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4064 function prototypes and stuff, but not '\xHH' hex character constants. 4065 These don't provoke an error unfortunately, instead are silently treated 4066 as 'x'. The following induces an error, until -std is added to get 4067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4068 array size at least. It's necessary to write '\x00'==0 to get something 4069 that's true only with -std. */ 4070int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4071 4072/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4073 inside strings and character constants. */ 4074#define FOO(x) 'x' 4075int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4076 4077int test (int i, double x); 4078struct s1 {int (*f) (int a);}; 4079struct s2 {int (*f) (double a);}; 4080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4081int argc; 4082char **argv; 4083int 4084main () 4085{ 4086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4093do 4094 CC="$ac_save_CC $ac_arg" 4095 if ac_fn_c_try_compile "$LINENO"; then : 4096 ac_cv_prog_cc_c89=$ac_arg 4097fi 4098rm -f core conftest.err conftest.$ac_objext 4099 test "x$ac_cv_prog_cc_c89" != "xno" && break 4100done 4101rm -f conftest.$ac_ext 4102CC=$ac_save_CC 4103 4104fi 4105# AC_CACHE_VAL 4106case "x$ac_cv_prog_cc_c89" in 4107 x) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4109$as_echo "none needed" >&6; } ;; 4110 xno) 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4112$as_echo "unsupported" >&6; } ;; 4113 *) 4114 CC="$CC $ac_cv_prog_cc_c89" 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4117esac 4118if test "x$ac_cv_prog_cc_c89" != xno; then : 4119 4120fi 4121 4122ac_ext=c 4123ac_cpp='$CPP $CPPFLAGS' 4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4126ac_compiler_gnu=$ac_cv_c_compiler_gnu 4127 4128ac_ext=c 4129ac_cpp='$CPP $CPPFLAGS' 4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132ac_compiler_gnu=$ac_cv_c_compiler_gnu 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4134$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4135if ${am_cv_prog_cc_c_o+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int 4142main () 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149 # Make sure it works both with $CC and with simple cc. 4150 # Following AC_PROG_CC_C_O, we do the test twice because some 4151 # compilers refuse to overwrite an existing .o file with -o, 4152 # though they will create one. 4153 am_cv_prog_cc_c_o=yes 4154 for am_i in 1 2; do 4155 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4156 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); } \ 4160 && test -f conftest2.$ac_objext; then 4161 : OK 4162 else 4163 am_cv_prog_cc_c_o=no 4164 break 4165 fi 4166 done 4167 rm -f core conftest* 4168 unset am_i 4169fi 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4171$as_echo "$am_cv_prog_cc_c_o" >&6; } 4172if test "$am_cv_prog_cc_c_o" != yes; then 4173 # Losing compiler, so override with the script. 4174 # FIXME: It is wrong to rewrite CC. 4175 # But if we don't then we get into trouble of one sort or another. 4176 # A longer-term fix would be to have automake use am__CC in this case, 4177 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4178 CC="$am_aux_dir/compile $CC" 4179fi 4180ac_ext=c 4181ac_cpp='$CPP $CPPFLAGS' 4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184ac_compiler_gnu=$ac_cv_c_compiler_gnu 4185 4186DEPDIR="${am__leading_dot}deps" 4187 4188ac_config_commands="$ac_config_commands depfiles" 4189 4190 4191am_make=${MAKE-make} 4192cat > confinc << 'END' 4193am__doit: 4194 @echo this is the am__doit target 4195.PHONY: am__doit 4196END 4197# If we don't find an include directive, just comment out the code. 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4199$as_echo_n "checking for style of include used by $am_make... " >&6; } 4200am__include="#" 4201am__quote= 4202_am_result=none 4203# First try GNU make style include. 4204echo "include confinc" > confmf 4205# Ignore all kinds of additional output from 'make'. 4206case `$am_make -s -f confmf 2> /dev/null` in #( 4207*the\ am__doit\ target*) 4208 am__include=include 4209 am__quote= 4210 _am_result=GNU 4211 ;; 4212esac 4213# Now try BSD make style include. 4214if test "$am__include" = "#"; then 4215 echo '.include "confinc"' > confmf 4216 case `$am_make -s -f confmf 2> /dev/null` in #( 4217 *the\ am__doit\ target*) 4218 am__include=.include 4219 am__quote="\"" 4220 _am_result=BSD 4221 ;; 4222 esac 4223fi 4224 4225 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4227$as_echo "$_am_result" >&6; } 4228rm -f confinc confmf 4229 4230# Check whether --enable-dependency-tracking was given. 4231if test "${enable_dependency_tracking+set}" = set; then : 4232 enableval=$enable_dependency_tracking; 4233fi 4234 4235if test "x$enable_dependency_tracking" != xno; then 4236 am_depcomp="$ac_aux_dir/depcomp" 4237 AMDEPBACKSLASH='\' 4238 am__nodep='_no' 4239fi 4240 if test "x$enable_dependency_tracking" != xno; then 4241 AMDEP_TRUE= 4242 AMDEP_FALSE='#' 4243else 4244 AMDEP_TRUE='#' 4245 AMDEP_FALSE= 4246fi 4247 4248 4249 4250depcc="$CC" am_compiler_list= 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4253$as_echo_n "checking dependency style of $depcc... " >&6; } 4254if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4258 # We make a subdir and do the tests there. Otherwise we can end up 4259 # making bogus files that we don't know about and never remove. For 4260 # instance it was reported that on HP-UX the gcc test will end up 4261 # making a dummy file named 'D' -- because '-MD' means "put the output 4262 # in D". 4263 rm -rf conftest.dir 4264 mkdir conftest.dir 4265 # Copy depcomp to subdir because otherwise we won't find it if we're 4266 # using a relative directory. 4267 cp "$am_depcomp" conftest.dir 4268 cd conftest.dir 4269 # We will build objects and dependencies in a subdirectory because 4270 # it helps to detect inapplicable dependency modes. For instance 4271 # both Tru64's cc and ICC support -MD to output dependencies as a 4272 # side effect of compilation, but ICC will put the dependencies in 4273 # the current directory while Tru64 will put them in the object 4274 # directory. 4275 mkdir sub 4276 4277 am_cv_CC_dependencies_compiler_type=none 4278 if test "$am_compiler_list" = ""; then 4279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4280 fi 4281 am__universal=false 4282 case " $depcc " in #( 4283 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4284 esac 4285 4286 for depmode in $am_compiler_list; do 4287 # Setup a source with many dependencies, because some compilers 4288 # like to wrap large dependency lists on column 80 (with \), and 4289 # we should not choose a depcomp mode which is confused by this. 4290 # 4291 # We need to recreate these files for each test, as the compiler may 4292 # overwrite some of them when testing with obscure command lines. 4293 # This happens at least with the AIX C compiler. 4294 : > sub/conftest.c 4295 for i in 1 2 3 4 5 6; do 4296 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4297 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4298 # Solaris 10 /bin/sh. 4299 echo '/* dummy */' > sub/conftst$i.h 4300 done 4301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4302 4303 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4304 # mode. It turns out that the SunPro C++ compiler does not properly 4305 # handle '-M -o', and we need to detect this. Also, some Intel 4306 # versions had trouble with output in subdirs. 4307 am__obj=sub/conftest.${OBJEXT-o} 4308 am__minus_obj="-o $am__obj" 4309 case $depmode in 4310 gcc) 4311 # This depmode causes a compiler race in universal mode. 4312 test "$am__universal" = false || continue 4313 ;; 4314 nosideeffect) 4315 # After this tag, mechanisms are not by side-effect, so they'll 4316 # only be used when explicitly requested. 4317 if test "x$enable_dependency_tracking" = xyes; then 4318 continue 4319 else 4320 break 4321 fi 4322 ;; 4323 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4324 # This compiler won't grok '-c -o', but also, the minuso test has 4325 # not run yet. These depmodes are late enough in the game, and 4326 # so weak that their functioning should not be impacted. 4327 am__obj=conftest.${OBJEXT-o} 4328 am__minus_obj= 4329 ;; 4330 none) break ;; 4331 esac 4332 if depmode=$depmode \ 4333 source=sub/conftest.c object=$am__obj \ 4334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4335 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4336 >/dev/null 2>conftest.err && 4337 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4338 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4339 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4340 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4341 # icc doesn't choke on unknown options, it will just issue warnings 4342 # or remarks (even with -Werror). So we grep stderr for any message 4343 # that says an option was ignored or not supported. 4344 # When given -MP, icc 7.0 and 7.1 complain thusly: 4345 # icc: Command line warning: ignoring option '-M'; no argument required 4346 # The diagnosis changed in icc 8.0: 4347 # icc: Command line remark: option '-MP' not supported 4348 if (grep 'ignoring option' conftest.err || 4349 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4350 am_cv_CC_dependencies_compiler_type=$depmode 4351 break 4352 fi 4353 fi 4354 done 4355 4356 cd .. 4357 rm -rf conftest.dir 4358else 4359 am_cv_CC_dependencies_compiler_type=none 4360fi 4361 4362fi 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4364$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4365CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4366 4367 if 4368 test "x$enable_dependency_tracking" != xno \ 4369 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4370 am__fastdepCC_TRUE= 4371 am__fastdepCC_FALSE='#' 4372else 4373 am__fastdepCC_TRUE='#' 4374 am__fastdepCC_FALSE= 4375fi 4376 4377 4378 4379 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4381$as_echo_n "checking whether ln -s works... " >&6; } 4382LN_S=$as_ln_s 4383if test "$LN_S" = "ln -s"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4385$as_echo "yes" >&6; } 4386else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4388$as_echo "no, using $LN_S" >&6; } 4389fi 4390 4391 4392SHLIB_VERSION=3:0:0 4393 4394 4395 4396# Check whether --with-libltdl was given. 4397if test "${with_libltdl+set}" = set; then : 4398 withval=$with_libltdl; with_libltdl=$withval 4399else 4400 with_libltdl=default 4401fi 4402 4403 4404if test "$with_libltdl" = "default"; then 4405 if test "$enable_shared" != "no"; then 4406 using_libltdl=yes 4407 else 4408 using_libltdl=no 4409 fi 4410 with_libltdl="yes" 4411else 4412 using_libltdl=$with_libltdl 4413fi 4414 4415case `pwd` in 4416 *\ * | *\ *) 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4418$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4419esac 4420 4421 4422 4423macro_version='2.4.2' 4424macro_revision='1.3337' 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438ltmain="$ac_aux_dir/ltmain.sh" 4439 4440# Backslashify metacharacters that are still active within 4441# double-quoted strings. 4442sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4443 4444# Same as above, but do not quote variable references. 4445double_quote_subst='s/\(["`\\]\)/\\\1/g' 4446 4447# Sed substitution to delay expansion of an escaped shell variable in a 4448# double_quote_subst'ed string. 4449delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4450 4451# Sed substitution to delay expansion of an escaped single quote. 4452delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4453 4454# Sed substitution to avoid accidental globbing in evaled expressions 4455no_glob_subst='s/\*/\\\*/g' 4456 4457ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4460 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4462$as_echo_n "checking how to print strings... " >&6; } 4463# Test print first, because it will be a builtin if present. 4464if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4465 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4466 ECHO='print -r --' 4467elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4468 ECHO='printf %s\n' 4469else 4470 # Use this function as a fallback that always works. 4471 func_fallback_echo () 4472 { 4473 eval 'cat <<_LTECHO_EOF 4474$1 4475_LTECHO_EOF' 4476 } 4477 ECHO='func_fallback_echo' 4478fi 4479 4480# func_echo_all arg... 4481# Invoke $ECHO with all args, space-separated. 4482func_echo_all () 4483{ 4484 $ECHO "" 4485} 4486 4487case "$ECHO" in 4488 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4489$as_echo "printf" >&6; } ;; 4490 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4491$as_echo "print -r" >&6; } ;; 4492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4493$as_echo "cat" >&6; } ;; 4494esac 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4510$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4511if ${ac_cv_path_SED+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4515 for ac_i in 1 2 3 4 5 6 7; do 4516 ac_script="$ac_script$as_nl$ac_script" 4517 done 4518 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4519 { ac_script=; unset ac_script;} 4520 if test -z "$SED"; then 4521 ac_path_SED_found=false 4522 # Loop through the user's path and test for each of PROGNAME-LIST 4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524for as_dir in $PATH 4525do 4526 IFS=$as_save_IFS 4527 test -z "$as_dir" && as_dir=. 4528 for ac_prog in sed gsed; do 4529 for ac_exec_ext in '' $ac_executable_extensions; do 4530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4531 as_fn_executable_p "$ac_path_SED" || continue 4532# Check for GNU ac_path_SED and select it if it is found. 4533 # Check for GNU $ac_path_SED 4534case `"$ac_path_SED" --version 2>&1` in 4535*GNU*) 4536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4537*) 4538 ac_count=0 4539 $as_echo_n 0123456789 >"conftest.in" 4540 while : 4541 do 4542 cat "conftest.in" "conftest.in" >"conftest.tmp" 4543 mv "conftest.tmp" "conftest.in" 4544 cp "conftest.in" "conftest.nl" 4545 $as_echo '' >> "conftest.nl" 4546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4548 as_fn_arith $ac_count + 1 && ac_count=$as_val 4549 if test $ac_count -gt ${ac_path_SED_max-0}; then 4550 # Best one so far, save it but keep looking for a better one 4551 ac_cv_path_SED="$ac_path_SED" 4552 ac_path_SED_max=$ac_count 4553 fi 4554 # 10*(2^10) chars as input seems more than enough 4555 test $ac_count -gt 10 && break 4556 done 4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4558esac 4559 4560 $ac_path_SED_found && break 3 4561 done 4562 done 4563 done 4564IFS=$as_save_IFS 4565 if test -z "$ac_cv_path_SED"; then 4566 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4567 fi 4568else 4569 ac_cv_path_SED=$SED 4570fi 4571 4572fi 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4574$as_echo "$ac_cv_path_SED" >&6; } 4575 SED="$ac_cv_path_SED" 4576 rm -f conftest.sed 4577 4578test -z "$SED" && SED=sed 4579Xsed="$SED -e 1s/^X//" 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4592$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4593if ${ac_cv_path_GREP+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 if test -z "$GREP"; then 4597 ac_path_GREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in grep ggrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_GREP" || continue 4608# Check for GNU ac_path_GREP and select it if it is found. 4609 # Check for GNU $ac_path_GREP 4610case `"$ac_path_GREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'GREP' >> "conftest.nl" 4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_GREP="$ac_path_GREP" 4628 ac_path_GREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_GREP_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_GREP"; then 4642 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_GREP=$GREP 4646fi 4647 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4650$as_echo "$ac_cv_path_GREP" >&6; } 4651 GREP="$ac_cv_path_GREP" 4652 4653 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4655$as_echo_n "checking for egrep... " >&6; } 4656if ${ac_cv_path_EGREP+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4660 then ac_cv_path_EGREP="$GREP -E" 4661 else 4662 if test -z "$EGREP"; then 4663 ac_path_EGREP_found=false 4664 # Loop through the user's path and test for each of PROGNAME-LIST 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4667do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_prog in egrep; do 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4673 as_fn_executable_p "$ac_path_EGREP" || continue 4674# Check for GNU ac_path_EGREP and select it if it is found. 4675 # Check for GNU $ac_path_EGREP 4676case `"$ac_path_EGREP" --version 2>&1` in 4677*GNU*) 4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4679*) 4680 ac_count=0 4681 $as_echo_n 0123456789 >"conftest.in" 4682 while : 4683 do 4684 cat "conftest.in" "conftest.in" >"conftest.tmp" 4685 mv "conftest.tmp" "conftest.in" 4686 cp "conftest.in" "conftest.nl" 4687 $as_echo 'EGREP' >> "conftest.nl" 4688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4690 as_fn_arith $ac_count + 1 && ac_count=$as_val 4691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4692 # Best one so far, save it but keep looking for a better one 4693 ac_cv_path_EGREP="$ac_path_EGREP" 4694 ac_path_EGREP_max=$ac_count 4695 fi 4696 # 10*(2^10) chars as input seems more than enough 4697 test $ac_count -gt 10 && break 4698 done 4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4700esac 4701 4702 $ac_path_EGREP_found && break 3 4703 done 4704 done 4705 done 4706IFS=$as_save_IFS 4707 if test -z "$ac_cv_path_EGREP"; then 4708 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4709 fi 4710else 4711 ac_cv_path_EGREP=$EGREP 4712fi 4713 4714 fi 4715fi 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4717$as_echo "$ac_cv_path_EGREP" >&6; } 4718 EGREP="$ac_cv_path_EGREP" 4719 4720 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4722$as_echo_n "checking for fgrep... " >&6; } 4723if ${ac_cv_path_FGREP+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4727 then ac_cv_path_FGREP="$GREP -F" 4728 else 4729 if test -z "$FGREP"; then 4730 ac_path_FGREP_found=false 4731 # Loop through the user's path and test for each of PROGNAME-LIST 4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_prog in fgrep; do 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4740 as_fn_executable_p "$ac_path_FGREP" || continue 4741# Check for GNU ac_path_FGREP and select it if it is found. 4742 # Check for GNU $ac_path_FGREP 4743case `"$ac_path_FGREP" --version 2>&1` in 4744*GNU*) 4745 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4746*) 4747 ac_count=0 4748 $as_echo_n 0123456789 >"conftest.in" 4749 while : 4750 do 4751 cat "conftest.in" "conftest.in" >"conftest.tmp" 4752 mv "conftest.tmp" "conftest.in" 4753 cp "conftest.in" "conftest.nl" 4754 $as_echo 'FGREP' >> "conftest.nl" 4755 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4757 as_fn_arith $ac_count + 1 && ac_count=$as_val 4758 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4759 # Best one so far, save it but keep looking for a better one 4760 ac_cv_path_FGREP="$ac_path_FGREP" 4761 ac_path_FGREP_max=$ac_count 4762 fi 4763 # 10*(2^10) chars as input seems more than enough 4764 test $ac_count -gt 10 && break 4765 done 4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4767esac 4768 4769 $ac_path_FGREP_found && break 3 4770 done 4771 done 4772 done 4773IFS=$as_save_IFS 4774 if test -z "$ac_cv_path_FGREP"; then 4775 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4776 fi 4777else 4778 ac_cv_path_FGREP=$FGREP 4779fi 4780 4781 fi 4782fi 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4784$as_echo "$ac_cv_path_FGREP" >&6; } 4785 FGREP="$ac_cv_path_FGREP" 4786 4787 4788test -z "$GREP" && GREP=grep 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808# Check whether --with-gnu-ld was given. 4809if test "${with_gnu_ld+set}" = set; then : 4810 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4811else 4812 with_gnu_ld=no 4813fi 4814 4815ac_prog=ld 4816if test "$GCC" = yes; then 4817 # Check if gcc -print-prog-name=ld gives a path. 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4819$as_echo_n "checking for ld used by $CC... " >&6; } 4820 case $host in 4821 *-*-mingw*) 4822 # gcc leaves a trailing carriage return which upsets mingw 4823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4824 *) 4825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4826 esac 4827 case $ac_prog in 4828 # Accept absolute paths. 4829 [\\/]* | ?:[\\/]*) 4830 re_direlt='/[^/][^/]*/\.\./' 4831 # Canonicalize the pathname of ld 4832 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4833 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4834 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4835 done 4836 test -z "$LD" && LD="$ac_prog" 4837 ;; 4838 "") 4839 # If it fails, then pretend we aren't using GCC. 4840 ac_prog=ld 4841 ;; 4842 *) 4843 # If it is relative, then search for the first ld in PATH. 4844 with_gnu_ld=unknown 4845 ;; 4846 esac 4847elif test "$with_gnu_ld" = yes; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4849$as_echo_n "checking for GNU ld... " >&6; } 4850else 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4852$as_echo_n "checking for non-GNU ld... " >&6; } 4853fi 4854if ${lt_cv_path_LD+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 if test -z "$LD"; then 4858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4859 for ac_dir in $PATH; do 4860 IFS="$lt_save_ifs" 4861 test -z "$ac_dir" && ac_dir=. 4862 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4863 lt_cv_path_LD="$ac_dir/$ac_prog" 4864 # Check to see if the program is GNU ld. I'd rather use --version, 4865 # but apparently some variants of GNU ld only accept -v. 4866 # Break only if it was the GNU/non-GNU ld that we prefer. 4867 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4868 *GNU* | *'with BFD'*) 4869 test "$with_gnu_ld" != no && break 4870 ;; 4871 *) 4872 test "$with_gnu_ld" != yes && break 4873 ;; 4874 esac 4875 fi 4876 done 4877 IFS="$lt_save_ifs" 4878else 4879 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4880fi 4881fi 4882 4883LD="$lt_cv_path_LD" 4884if test -n "$LD"; then 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4886$as_echo "$LD" >&6; } 4887else 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4889$as_echo "no" >&6; } 4890fi 4891test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4893$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4894if ${lt_cv_prog_gnu_ld+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4898case `$LD -v 2>&1 </dev/null` in 4899*GNU* | *'with BFD'*) 4900 lt_cv_prog_gnu_ld=yes 4901 ;; 4902*) 4903 lt_cv_prog_gnu_ld=no 4904 ;; 4905esac 4906fi 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4908$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4909with_gnu_ld=$lt_cv_prog_gnu_ld 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4920$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4921if ${lt_cv_path_NM+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 if test -n "$NM"; then 4925 # Let the user override the test. 4926 lt_cv_path_NM="$NM" 4927else 4928 lt_nm_to_check="${ac_tool_prefix}nm" 4929 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4930 lt_nm_to_check="$lt_nm_to_check nm" 4931 fi 4932 for lt_tmp_nm in $lt_nm_to_check; do 4933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4934 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4935 IFS="$lt_save_ifs" 4936 test -z "$ac_dir" && ac_dir=. 4937 tmp_nm="$ac_dir/$lt_tmp_nm" 4938 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4939 # Check to see if the nm accepts a BSD-compat flag. 4940 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4941 # nm: unknown option "B" ignored 4942 # Tru64's nm complains that /dev/null is an invalid object file 4943 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4944 */dev/null* | *'Invalid file or object type'*) 4945 lt_cv_path_NM="$tmp_nm -B" 4946 break 4947 ;; 4948 *) 4949 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4950 */dev/null*) 4951 lt_cv_path_NM="$tmp_nm -p" 4952 break 4953 ;; 4954 *) 4955 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4956 continue # so that we can try to find one that supports BSD flags 4957 ;; 4958 esac 4959 ;; 4960 esac 4961 fi 4962 done 4963 IFS="$lt_save_ifs" 4964 done 4965 : ${lt_cv_path_NM=no} 4966fi 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4969$as_echo "$lt_cv_path_NM" >&6; } 4970if test "$lt_cv_path_NM" != "no"; then 4971 NM="$lt_cv_path_NM" 4972else 4973 # Didn't find any BSD compatible name lister, look for dumpbin. 4974 if test -n "$DUMPBIN"; then : 4975 # Let the user override the test. 4976 else 4977 if test -n "$ac_tool_prefix"; then 4978 for ac_prog in dumpbin "link -dump" 4979 do 4980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4981set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4983$as_echo_n "checking for $ac_word... " >&6; } 4984if ${ac_cv_prog_DUMPBIN+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 if test -n "$DUMPBIN"; then 4988 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4989else 4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991for as_dir in $PATH 4992do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for ac_exec_ext in '' $ac_executable_extensions; do 4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4997 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4999 break 2 5000 fi 5001done 5002 done 5003IFS=$as_save_IFS 5004 5005fi 5006fi 5007DUMPBIN=$ac_cv_prog_DUMPBIN 5008if test -n "$DUMPBIN"; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5010$as_echo "$DUMPBIN" >&6; } 5011else 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013$as_echo "no" >&6; } 5014fi 5015 5016 5017 test -n "$DUMPBIN" && break 5018 done 5019fi 5020if test -z "$DUMPBIN"; then 5021 ac_ct_DUMPBIN=$DUMPBIN 5022 for ac_prog in dumpbin "link -dump" 5023do 5024 # Extract the first word of "$ac_prog", so it can be a program name with args. 5025set dummy $ac_prog; ac_word=$2 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5027$as_echo_n "checking for $ac_word... " >&6; } 5028if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 if test -n "$ac_ct_DUMPBIN"; then 5032 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5033else 5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5035for as_dir in $PATH 5036do 5037 IFS=$as_save_IFS 5038 test -z "$as_dir" && as_dir=. 5039 for ac_exec_ext in '' $ac_executable_extensions; do 5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5041 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5043 break 2 5044 fi 5045done 5046 done 5047IFS=$as_save_IFS 5048 5049fi 5050fi 5051ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5052if test -n "$ac_ct_DUMPBIN"; then 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5054$as_echo "$ac_ct_DUMPBIN" >&6; } 5055else 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5057$as_echo "no" >&6; } 5058fi 5059 5060 5061 test -n "$ac_ct_DUMPBIN" && break 5062done 5063 5064 if test "x$ac_ct_DUMPBIN" = x; then 5065 DUMPBIN=":" 5066 else 5067 case $cross_compiling:$ac_tool_warned in 5068yes:) 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5071ac_tool_warned=yes ;; 5072esac 5073 DUMPBIN=$ac_ct_DUMPBIN 5074 fi 5075fi 5076 5077 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5078 *COFF*) 5079 DUMPBIN="$DUMPBIN -symbols" 5080 ;; 5081 *) 5082 DUMPBIN=: 5083 ;; 5084 esac 5085 fi 5086 5087 if test "$DUMPBIN" != ":"; then 5088 NM="$DUMPBIN" 5089 fi 5090fi 5091test -z "$NM" && NM=nm 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5099$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5100if ${lt_cv_nm_interface+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 lt_cv_nm_interface="BSD nm" 5104 echo "int some_variable = 0;" > conftest.$ac_ext 5105 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5106 (eval "$ac_compile" 2>conftest.err) 5107 cat conftest.err >&5 5108 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5109 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5110 cat conftest.err >&5 5111 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5112 cat conftest.out >&5 5113 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5114 lt_cv_nm_interface="MS dumpbin" 5115 fi 5116 rm -f conftest* 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5119$as_echo "$lt_cv_nm_interface" >&6; } 5120 5121# find the maximum length of command line arguments 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5123$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5124if ${lt_cv_sys_max_cmd_len+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 i=0 5128 teststring="ABCD" 5129 5130 case $build_os in 5131 msdosdjgpp*) 5132 # On DJGPP, this test can blow up pretty badly due to problems in libc 5133 # (any single argument exceeding 2000 bytes causes a buffer overrun 5134 # during glob expansion). Even if it were fixed, the result of this 5135 # check would be larger than it should be. 5136 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5137 ;; 5138 5139 gnu*) 5140 # Under GNU Hurd, this test is not required because there is 5141 # no limit to the length of command line arguments. 5142 # Libtool will interpret -1 as no limit whatsoever 5143 lt_cv_sys_max_cmd_len=-1; 5144 ;; 5145 5146 cygwin* | mingw* | cegcc*) 5147 # On Win9x/ME, this test blows up -- it succeeds, but takes 5148 # about 5 minutes as the teststring grows exponentially. 5149 # Worse, since 9x/ME are not pre-emptively multitasking, 5150 # you end up with a "frozen" computer, even though with patience 5151 # the test eventually succeeds (with a max line length of 256k). 5152 # Instead, let's just punt: use the minimum linelength reported by 5153 # all of the supported platforms: 8192 (on NT/2K/XP). 5154 lt_cv_sys_max_cmd_len=8192; 5155 ;; 5156 5157 mint*) 5158 # On MiNT this can take a long time and run out of memory. 5159 lt_cv_sys_max_cmd_len=8192; 5160 ;; 5161 5162 amigaos*) 5163 # On AmigaOS with pdksh, this test takes hours, literally. 5164 # So we just punt and use a minimum line length of 8192. 5165 lt_cv_sys_max_cmd_len=8192; 5166 ;; 5167 5168 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5169 # This has been around since 386BSD, at least. Likely further. 5170 if test -x /sbin/sysctl; then 5171 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5172 elif test -x /usr/sbin/sysctl; then 5173 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5174 else 5175 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5176 fi 5177 # And add a safety zone 5178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5180 ;; 5181 5182 interix*) 5183 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5184 lt_cv_sys_max_cmd_len=196608 5185 ;; 5186 5187 os2*) 5188 # The test takes a long time on OS/2. 5189 lt_cv_sys_max_cmd_len=8192 5190 ;; 5191 5192 osf*) 5193 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5194 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5195 # nice to cause kernel panics so lets avoid the loop below. 5196 # First set a reasonable default. 5197 lt_cv_sys_max_cmd_len=16384 5198 # 5199 if test -x /sbin/sysconfig; then 5200 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5201 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5202 esac 5203 fi 5204 ;; 5205 sco3.2v5*) 5206 lt_cv_sys_max_cmd_len=102400 5207 ;; 5208 sysv5* | sco5v6* | sysv4.2uw2*) 5209 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5210 if test -n "$kargmax"; then 5211 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5212 else 5213 lt_cv_sys_max_cmd_len=32768 5214 fi 5215 ;; 5216 *) 5217 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5218 if test -n "$lt_cv_sys_max_cmd_len"; then 5219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5221 else 5222 # Make teststring a little bigger before we do anything with it. 5223 # a 1K string should be a reasonable start. 5224 for i in 1 2 3 4 5 6 7 8 ; do 5225 teststring=$teststring$teststring 5226 done 5227 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5228 # If test is not a shell built-in, we'll probably end up computing a 5229 # maximum length that is only half of the actual maximum length, but 5230 # we can't tell. 5231 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5232 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5233 test $i != 17 # 1/2 MB should be enough 5234 do 5235 i=`expr $i + 1` 5236 teststring=$teststring$teststring 5237 done 5238 # Only check the string length outside the loop. 5239 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5240 teststring= 5241 # Add a significant safety factor because C++ compilers can tack on 5242 # massive amounts of additional arguments before passing them to the 5243 # linker. It appears as though 1/2 is a usable value. 5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5245 fi 5246 ;; 5247 esac 5248 5249fi 5250 5251if test -n $lt_cv_sys_max_cmd_len ; then 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5253$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5254else 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5256$as_echo "none" >&6; } 5257fi 5258max_cmd_len=$lt_cv_sys_max_cmd_len 5259 5260 5261 5262 5263 5264 5265: ${CP="cp -f"} 5266: ${MV="mv -f"} 5267: ${RM="rm -f"} 5268 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5270$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5271# Try some XSI features 5272xsi_shell=no 5273( _lt_dummy="a/b/c" 5274 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5275 = c,a/b,b/c, \ 5276 && eval 'test $(( 1 + 1 )) -eq 2 \ 5277 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5278 && xsi_shell=yes 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5280$as_echo "$xsi_shell" >&6; } 5281 5282 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5284$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5285lt_shell_append=no 5286( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5287 >/dev/null 2>&1 \ 5288 && lt_shell_append=yes 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5290$as_echo "$lt_shell_append" >&6; } 5291 5292 5293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5294 lt_unset=unset 5295else 5296 lt_unset=false 5297fi 5298 5299 5300 5301 5302 5303# test EBCDIC or ASCII 5304case `echo X|tr X '\101'` in 5305 A) # ASCII based system 5306 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5307 lt_SP2NL='tr \040 \012' 5308 lt_NL2SP='tr \015\012 \040\040' 5309 ;; 5310 *) # EBCDIC based system 5311 lt_SP2NL='tr \100 \n' 5312 lt_NL2SP='tr \r\n \100\100' 5313 ;; 5314esac 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5325$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5326if ${lt_cv_to_host_file_cmd+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 case $host in 5330 *-*-mingw* ) 5331 case $build in 5332 *-*-mingw* ) # actually msys 5333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5334 ;; 5335 *-*-cygwin* ) 5336 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5337 ;; 5338 * ) # otherwise, assume *nix 5339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5340 ;; 5341 esac 5342 ;; 5343 *-*-cygwin* ) 5344 case $build in 5345 *-*-mingw* ) # actually msys 5346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5347 ;; 5348 *-*-cygwin* ) 5349 lt_cv_to_host_file_cmd=func_convert_file_noop 5350 ;; 5351 * ) # otherwise, assume *nix 5352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5353 ;; 5354 esac 5355 ;; 5356 * ) # unhandled hosts (and "normal" native builds) 5357 lt_cv_to_host_file_cmd=func_convert_file_noop 5358 ;; 5359esac 5360 5361fi 5362 5363to_host_file_cmd=$lt_cv_to_host_file_cmd 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5365$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5366 5367 5368 5369 5370 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5372$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5373if ${lt_cv_to_tool_file_cmd+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 #assume ordinary cross tools, or native build. 5377lt_cv_to_tool_file_cmd=func_convert_file_noop 5378case $host in 5379 *-*-mingw* ) 5380 case $build in 5381 *-*-mingw* ) # actually msys 5382 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5383 ;; 5384 esac 5385 ;; 5386esac 5387 5388fi 5389 5390to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5392$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5393 5394 5395 5396 5397 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5399$as_echo_n "checking for $LD option to reload object files... " >&6; } 5400if ${lt_cv_ld_reload_flag+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402else 5403 lt_cv_ld_reload_flag='-r' 5404fi 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5406$as_echo "$lt_cv_ld_reload_flag" >&6; } 5407reload_flag=$lt_cv_ld_reload_flag 5408case $reload_flag in 5409"" | " "*) ;; 5410*) reload_flag=" $reload_flag" ;; 5411esac 5412reload_cmds='$LD$reload_flag -o $output$reload_objs' 5413case $host_os in 5414 cygwin* | mingw* | pw32* | cegcc*) 5415 if test "$GCC" != yes; then 5416 reload_cmds=false 5417 fi 5418 ;; 5419 darwin*) 5420 if test "$GCC" = yes; then 5421 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5422 else 5423 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5424 fi 5425 ;; 5426esac 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436if test -n "$ac_tool_prefix"; then 5437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5438set dummy ${ac_tool_prefix}objdump; ac_word=$2 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5440$as_echo_n "checking for $ac_word... " >&6; } 5441if ${ac_cv_prog_OBJDUMP+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 if test -n "$OBJDUMP"; then 5445 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5446else 5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5448for as_dir in $PATH 5449do 5450 IFS=$as_save_IFS 5451 test -z "$as_dir" && as_dir=. 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5454 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5456 break 2 5457 fi 5458done 5459 done 5460IFS=$as_save_IFS 5461 5462fi 5463fi 5464OBJDUMP=$ac_cv_prog_OBJDUMP 5465if test -n "$OBJDUMP"; then 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5467$as_echo "$OBJDUMP" >&6; } 5468else 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470$as_echo "no" >&6; } 5471fi 5472 5473 5474fi 5475if test -z "$ac_cv_prog_OBJDUMP"; then 5476 ac_ct_OBJDUMP=$OBJDUMP 5477 # Extract the first word of "objdump", so it can be a program name with args. 5478set dummy objdump; ac_word=$2 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480$as_echo_n "checking for $ac_word... " >&6; } 5481if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 if test -n "$ac_ct_OBJDUMP"; then 5485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5486else 5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH 5489do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5494 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498done 5499 done 5500IFS=$as_save_IFS 5501 5502fi 5503fi 5504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5505if test -n "$ac_ct_OBJDUMP"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5507$as_echo "$ac_ct_OBJDUMP" >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511fi 5512 5513 if test "x$ac_ct_OBJDUMP" = x; then 5514 OBJDUMP="false" 5515 else 5516 case $cross_compiling:$ac_tool_warned in 5517yes:) 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5520ac_tool_warned=yes ;; 5521esac 5522 OBJDUMP=$ac_ct_OBJDUMP 5523 fi 5524else 5525 OBJDUMP="$ac_cv_prog_OBJDUMP" 5526fi 5527 5528test -z "$OBJDUMP" && OBJDUMP=objdump 5529 5530 5531 5532 5533 5534 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5536$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5537if ${lt_cv_deplibs_check_method+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 lt_cv_file_magic_cmd='$MAGIC_CMD' 5541lt_cv_file_magic_test_file= 5542lt_cv_deplibs_check_method='unknown' 5543# Need to set the preceding variable on all platforms that support 5544# interlibrary dependencies. 5545# 'none' -- dependencies not supported. 5546# `unknown' -- same as none, but documents that we really don't know. 5547# 'pass_all' -- all dependencies passed with no checks. 5548# 'test_compile' -- check by making test program. 5549# 'file_magic [[regex]]' -- check by looking for files in library path 5550# which responds to the $file_magic_cmd with a given extended regex. 5551# If you have `file' or equivalent on your system and you're not sure 5552# whether `pass_all' will *always* work, you probably want this one. 5553 5554case $host_os in 5555aix[4-9]*) 5556 lt_cv_deplibs_check_method=pass_all 5557 ;; 5558 5559beos*) 5560 lt_cv_deplibs_check_method=pass_all 5561 ;; 5562 5563bsdi[45]*) 5564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5565 lt_cv_file_magic_cmd='/usr/bin/file -L' 5566 lt_cv_file_magic_test_file=/shlib/libc.so 5567 ;; 5568 5569cygwin*) 5570 # func_win32_libid is a shell function defined in ltmain.sh 5571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5572 lt_cv_file_magic_cmd='func_win32_libid' 5573 ;; 5574 5575mingw* | pw32*) 5576 # Base MSYS/MinGW do not provide the 'file' command needed by 5577 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5578 # unless we find 'file', for example because we are cross-compiling. 5579 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5580 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5582 lt_cv_file_magic_cmd='func_win32_libid' 5583 else 5584 # Keep this pattern in sync with the one in func_win32_libid. 5585 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5586 lt_cv_file_magic_cmd='$OBJDUMP -f' 5587 fi 5588 ;; 5589 5590cegcc*) 5591 # use the weaker test based on 'objdump'. See mingw*. 5592 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5593 lt_cv_file_magic_cmd='$OBJDUMP -f' 5594 ;; 5595 5596darwin* | rhapsody*) 5597 lt_cv_deplibs_check_method=pass_all 5598 ;; 5599 5600freebsd* | dragonfly*) 5601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5602 case $host_cpu in 5603 i*86 ) 5604 # Not sure whether the presence of OpenBSD here was a mistake. 5605 # Let's accept both of them until this is cleared up. 5606 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5607 lt_cv_file_magic_cmd=/usr/bin/file 5608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5609 ;; 5610 esac 5611 else 5612 lt_cv_deplibs_check_method=pass_all 5613 fi 5614 ;; 5615 5616gnu*) 5617 lt_cv_deplibs_check_method=pass_all 5618 ;; 5619 5620haiku*) 5621 lt_cv_deplibs_check_method=pass_all 5622 ;; 5623 5624hpux10.20* | hpux11*) 5625 lt_cv_file_magic_cmd=/usr/bin/file 5626 case $host_cpu in 5627 ia64*) 5628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5630 ;; 5631 hppa*64*) 5632 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]' 5633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5634 ;; 5635 *) 5636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5637 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5638 ;; 5639 esac 5640 ;; 5641 5642interix[3-9]*) 5643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5645 ;; 5646 5647irix5* | irix6* | nonstopux*) 5648 case $LD in 5649 *-32|*"-32 ") libmagic=32-bit;; 5650 *-n32|*"-n32 ") libmagic=N32;; 5651 *-64|*"-64 ") libmagic=64-bit;; 5652 *) libmagic=never-match;; 5653 esac 5654 lt_cv_deplibs_check_method=pass_all 5655 ;; 5656 5657# This must be glibc/ELF. 5658linux* | k*bsd*-gnu | kopensolaris*-gnu) 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 5662netbsd*) 5663 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5665 else 5666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5667 fi 5668 ;; 5669 5670newos6*) 5671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5672 lt_cv_file_magic_cmd=/usr/bin/file 5673 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5674 ;; 5675 5676*nto* | *qnx*) 5677 lt_cv_deplibs_check_method=pass_all 5678 ;; 5679 5680openbsd*) 5681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5683 else 5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5685 fi 5686 ;; 5687 5688osf3* | osf4* | osf5*) 5689 lt_cv_deplibs_check_method=pass_all 5690 ;; 5691 5692rdos*) 5693 lt_cv_deplibs_check_method=pass_all 5694 ;; 5695 5696solaris*) 5697 lt_cv_deplibs_check_method=pass_all 5698 ;; 5699 5700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5701 lt_cv_deplibs_check_method=pass_all 5702 ;; 5703 5704sysv4 | sysv4.3*) 5705 case $host_vendor in 5706 motorola) 5707 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]' 5708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5709 ;; 5710 ncr) 5711 lt_cv_deplibs_check_method=pass_all 5712 ;; 5713 sequent) 5714 lt_cv_file_magic_cmd='/bin/file' 5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5716 ;; 5717 sni) 5718 lt_cv_file_magic_cmd='/bin/file' 5719 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5720 lt_cv_file_magic_test_file=/lib/libc.so 5721 ;; 5722 siemens) 5723 lt_cv_deplibs_check_method=pass_all 5724 ;; 5725 pc) 5726 lt_cv_deplibs_check_method=pass_all 5727 ;; 5728 esac 5729 ;; 5730 5731tpf*) 5732 lt_cv_deplibs_check_method=pass_all 5733 ;; 5734esac 5735 5736fi 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5738$as_echo "$lt_cv_deplibs_check_method" >&6; } 5739 5740file_magic_glob= 5741want_nocaseglob=no 5742if test "$build" = "$host"; then 5743 case $host_os in 5744 mingw* | pw32*) 5745 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5746 want_nocaseglob=yes 5747 else 5748 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5749 fi 5750 ;; 5751 esac 5752fi 5753 5754file_magic_cmd=$lt_cv_file_magic_cmd 5755deplibs_check_method=$lt_cv_deplibs_check_method 5756test -z "$deplibs_check_method" && deplibs_check_method=unknown 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779if test -n "$ac_tool_prefix"; then 5780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5781set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5783$as_echo_n "checking for $ac_word... " >&6; } 5784if ${ac_cv_prog_DLLTOOL+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 if test -n "$DLLTOOL"; then 5788 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5789else 5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791for as_dir in $PATH 5792do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801done 5802 done 5803IFS=$as_save_IFS 5804 5805fi 5806fi 5807DLLTOOL=$ac_cv_prog_DLLTOOL 5808if test -n "$DLLTOOL"; then 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5810$as_echo "$DLLTOOL" >&6; } 5811else 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5813$as_echo "no" >&6; } 5814fi 5815 5816 5817fi 5818if test -z "$ac_cv_prog_DLLTOOL"; then 5819 ac_ct_DLLTOOL=$DLLTOOL 5820 # Extract the first word of "dlltool", so it can be a program name with args. 5821set dummy dlltool; ac_word=$2 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5823$as_echo_n "checking for $ac_word... " >&6; } 5824if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5825 $as_echo_n "(cached) " >&6 5826else 5827 if test -n "$ac_ct_DLLTOOL"; then 5828 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5829else 5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831for as_dir in $PATH 5832do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5837 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5839 break 2 5840 fi 5841done 5842 done 5843IFS=$as_save_IFS 5844 5845fi 5846fi 5847ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5848if test -n "$ac_ct_DLLTOOL"; then 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5850$as_echo "$ac_ct_DLLTOOL" >&6; } 5851else 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5853$as_echo "no" >&6; } 5854fi 5855 5856 if test "x$ac_ct_DLLTOOL" = x; then 5857 DLLTOOL="false" 5858 else 5859 case $cross_compiling:$ac_tool_warned in 5860yes:) 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5863ac_tool_warned=yes ;; 5864esac 5865 DLLTOOL=$ac_ct_DLLTOOL 5866 fi 5867else 5868 DLLTOOL="$ac_cv_prog_DLLTOOL" 5869fi 5870 5871test -z "$DLLTOOL" && DLLTOOL=dlltool 5872 5873 5874 5875 5876 5877 5878 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5880$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5881if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 lt_cv_sharedlib_from_linklib_cmd='unknown' 5885 5886case $host_os in 5887cygwin* | mingw* | pw32* | cegcc*) 5888 # two different shell functions defined in ltmain.sh 5889 # decide which to use based on capabilities of $DLLTOOL 5890 case `$DLLTOOL --help 2>&1` in 5891 *--identify-strict*) 5892 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5893 ;; 5894 *) 5895 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5896 ;; 5897 esac 5898 ;; 5899*) 5900 # fallback: assume linklib IS sharedlib 5901 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5902 ;; 5903esac 5904 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5907$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5908sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5909test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5910 5911 5912 5913 5914 5915 5916 5917 5918if test -n "$ac_tool_prefix"; then 5919 for ac_prog in ar 5920 do 5921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5922set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5924$as_echo_n "checking for $ac_word... " >&6; } 5925if ${ac_cv_prog_AR+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927else 5928 if test -n "$AR"; then 5929 ac_cv_prog_AR="$AR" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5938 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943 done 5944IFS=$as_save_IFS 5945 5946fi 5947fi 5948AR=$ac_cv_prog_AR 5949if test -n "$AR"; then 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5951$as_echo "$AR" >&6; } 5952else 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954$as_echo "no" >&6; } 5955fi 5956 5957 5958 test -n "$AR" && break 5959 done 5960fi 5961if test -z "$AR"; then 5962 ac_ct_AR=$AR 5963 for ac_prog in ar 5964do 5965 # Extract the first word of "$ac_prog", so it can be a program name with args. 5966set dummy $ac_prog; ac_word=$2 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5968$as_echo_n "checking for $ac_word... " >&6; } 5969if ${ac_cv_prog_ac_ct_AR+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 if test -n "$ac_ct_AR"; then 5973 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_prog_ac_ct_AR="$ac_prog" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987 done 5988IFS=$as_save_IFS 5989 5990fi 5991fi 5992ac_ct_AR=$ac_cv_prog_ac_ct_AR 5993if test -n "$ac_ct_AR"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5995$as_echo "$ac_ct_AR" >&6; } 5996else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5998$as_echo "no" >&6; } 5999fi 6000 6001 6002 test -n "$ac_ct_AR" && break 6003done 6004 6005 if test "x$ac_ct_AR" = x; then 6006 AR="false" 6007 else 6008 case $cross_compiling:$ac_tool_warned in 6009yes:) 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6012ac_tool_warned=yes ;; 6013esac 6014 AR=$ac_ct_AR 6015 fi 6016fi 6017 6018: ${AR=ar} 6019: ${AR_FLAGS=cru} 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6032$as_echo_n "checking for archiver @FILE support... " >&6; } 6033if ${lt_cv_ar_at_file+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 lt_cv_ar_at_file=no 6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038/* end confdefs.h. */ 6039 6040int 6041main () 6042{ 6043 6044 ; 6045 return 0; 6046} 6047_ACEOF 6048if ac_fn_c_try_compile "$LINENO"; then : 6049 echo conftest.$ac_objext > conftest.lst 6050 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6052 (eval $lt_ar_try) 2>&5 6053 ac_status=$? 6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6055 test $ac_status = 0; } 6056 if test "$ac_status" -eq 0; then 6057 # Ensure the archiver fails upon bogus file names. 6058 rm -f conftest.$ac_objext libconftest.a 6059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6060 (eval $lt_ar_try) 2>&5 6061 ac_status=$? 6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6063 test $ac_status = 0; } 6064 if test "$ac_status" -ne 0; then 6065 lt_cv_ar_at_file=@ 6066 fi 6067 fi 6068 rm -f conftest.* libconftest.a 6069 6070fi 6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6072 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6075$as_echo "$lt_cv_ar_at_file" >&6; } 6076 6077if test "x$lt_cv_ar_at_file" = xno; then 6078 archiver_list_spec= 6079else 6080 archiver_list_spec=$lt_cv_ar_at_file 6081fi 6082 6083 6084 6085 6086 6087 6088 6089if test -n "$ac_tool_prefix"; then 6090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6091set dummy ${ac_tool_prefix}strip; ac_word=$2 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6093$as_echo_n "checking for $ac_word... " >&6; } 6094if ${ac_cv_prog_STRIP+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 if test -n "$STRIP"; then 6098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6099else 6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6101for as_dir in $PATH 6102do 6103 IFS=$as_save_IFS 6104 test -z "$as_dir" && as_dir=. 6105 for ac_exec_ext in '' $ac_executable_extensions; do 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6107 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6109 break 2 6110 fi 6111done 6112 done 6113IFS=$as_save_IFS 6114 6115fi 6116fi 6117STRIP=$ac_cv_prog_STRIP 6118if test -n "$STRIP"; then 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6120$as_echo "$STRIP" >&6; } 6121else 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6123$as_echo "no" >&6; } 6124fi 6125 6126 6127fi 6128if test -z "$ac_cv_prog_STRIP"; then 6129 ac_ct_STRIP=$STRIP 6130 # Extract the first word of "strip", so it can be a program name with args. 6131set dummy strip; ac_word=$2 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6133$as_echo_n "checking for $ac_word... " >&6; } 6134if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 if test -n "$ac_ct_STRIP"; then 6138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6139else 6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6141for as_dir in $PATH 6142do 6143 IFS=$as_save_IFS 6144 test -z "$as_dir" && as_dir=. 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6147 ac_cv_prog_ac_ct_STRIP="strip" 6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151done 6152 done 6153IFS=$as_save_IFS 6154 6155fi 6156fi 6157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6158if test -n "$ac_ct_STRIP"; then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6160$as_echo "$ac_ct_STRIP" >&6; } 6161else 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6163$as_echo "no" >&6; } 6164fi 6165 6166 if test "x$ac_ct_STRIP" = x; then 6167 STRIP=":" 6168 else 6169 case $cross_compiling:$ac_tool_warned in 6170yes:) 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6173ac_tool_warned=yes ;; 6174esac 6175 STRIP=$ac_ct_STRIP 6176 fi 6177else 6178 STRIP="$ac_cv_prog_STRIP" 6179fi 6180 6181test -z "$STRIP" && STRIP=: 6182 6183 6184 6185 6186 6187 6188if test -n "$ac_tool_prefix"; then 6189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6190set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6192$as_echo_n "checking for $ac_word... " >&6; } 6193if ${ac_cv_prog_RANLIB+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 if test -n "$RANLIB"; then 6197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6198else 6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200for as_dir in $PATH 6201do 6202 IFS=$as_save_IFS 6203 test -z "$as_dir" && as_dir=. 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210done 6211 done 6212IFS=$as_save_IFS 6213 6214fi 6215fi 6216RANLIB=$ac_cv_prog_RANLIB 6217if test -n "$RANLIB"; then 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6219$as_echo "$RANLIB" >&6; } 6220else 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222$as_echo "no" >&6; } 6223fi 6224 6225 6226fi 6227if test -z "$ac_cv_prog_RANLIB"; then 6228 ac_ct_RANLIB=$RANLIB 6229 # Extract the first word of "ranlib", so it can be a program name with args. 6230set dummy ranlib; ac_word=$2 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6232$as_echo_n "checking for $ac_word... " >&6; } 6233if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 if test -n "$ac_ct_RANLIB"; then 6237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6238else 6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6240for as_dir in $PATH 6241do 6242 IFS=$as_save_IFS 6243 test -z "$as_dir" && as_dir=. 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6246 ac_cv_prog_ac_ct_RANLIB="ranlib" 6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6248 break 2 6249 fi 6250done 6251 done 6252IFS=$as_save_IFS 6253 6254fi 6255fi 6256ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6257if test -n "$ac_ct_RANLIB"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6259$as_echo "$ac_ct_RANLIB" >&6; } 6260else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262$as_echo "no" >&6; } 6263fi 6264 6265 if test "x$ac_ct_RANLIB" = x; then 6266 RANLIB=":" 6267 else 6268 case $cross_compiling:$ac_tool_warned in 6269yes:) 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6272ac_tool_warned=yes ;; 6273esac 6274 RANLIB=$ac_ct_RANLIB 6275 fi 6276else 6277 RANLIB="$ac_cv_prog_RANLIB" 6278fi 6279 6280test -z "$RANLIB" && RANLIB=: 6281 6282 6283 6284 6285 6286 6287# Determine commands to create old-style static archives. 6288old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6289old_postinstall_cmds='chmod 644 $oldlib' 6290old_postuninstall_cmds= 6291 6292if test -n "$RANLIB"; then 6293 case $host_os in 6294 openbsd*) 6295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6296 ;; 6297 *) 6298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6299 ;; 6300 esac 6301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6302fi 6303 6304case $host_os in 6305 darwin*) 6306 lock_old_archive_extraction=yes ;; 6307 *) 6308 lock_old_archive_extraction=no ;; 6309esac 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349# If no C compiler was specified, use CC. 6350LTCC=${LTCC-"$CC"} 6351 6352# If no C compiler flags were specified, use CFLAGS. 6353LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6354 6355# Allow CC to be a program name with arguments. 6356compiler=$CC 6357 6358 6359# Check for command to grab the raw symbol name followed by C symbol from nm. 6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6361$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6362if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 6366# These are sane defaults that work on at least a few old systems. 6367# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6368 6369# Character class describing NM global symbol codes. 6370symcode='[BCDEGRST]' 6371 6372# Regexp to match symbols that can be accessed directly from C. 6373sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6374 6375# Define system-specific variables. 6376case $host_os in 6377aix*) 6378 symcode='[BCDT]' 6379 ;; 6380cygwin* | mingw* | pw32* | cegcc*) 6381 symcode='[ABCDGISTW]' 6382 ;; 6383hpux*) 6384 if test "$host_cpu" = ia64; then 6385 symcode='[ABCDEGRST]' 6386 fi 6387 ;; 6388irix* | nonstopux*) 6389 symcode='[BCDEGRST]' 6390 ;; 6391osf*) 6392 symcode='[BCDEGQRST]' 6393 ;; 6394solaris*) 6395 symcode='[BDRT]' 6396 ;; 6397sco3.2v5*) 6398 symcode='[DT]' 6399 ;; 6400sysv4.2uw2*) 6401 symcode='[DT]' 6402 ;; 6403sysv5* | sco5v6* | unixware* | OpenUNIX*) 6404 symcode='[ABDT]' 6405 ;; 6406sysv4) 6407 symcode='[DFNSTU]' 6408 ;; 6409esac 6410 6411# If we're using GNU nm, then use its standard symbol codes. 6412case `$NM -V 2>&1` in 6413*GNU* | *'with BFD'*) 6414 symcode='[ABCDGIRSTW]' ;; 6415esac 6416 6417# Transform an extracted symbol line into a proper C declaration. 6418# Some systems (esp. on ia64) link data and code symbols differently, 6419# so use this general approach. 6420lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6421 6422# Transform an extracted symbol line into symbol name and symbol address 6423lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6424lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6425 6426# Handle CRLF in mingw tool chain 6427opt_cr= 6428case $build_os in 6429mingw*) 6430 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6431 ;; 6432esac 6433 6434# Try without a prefix underscore, then with it. 6435for ac_symprfx in "" "_"; do 6436 6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6438 symxfrm="\\1 $ac_symprfx\\2 \\2" 6439 6440 # Write the raw and C identifiers. 6441 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6442 # Fake it for dumpbin and say T for any non-static function 6443 # and D for any global variable. 6444 # Also find C++ and __fastcall symbols from MSVC++, 6445 # which start with @ or ?. 6446 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6447" {last_section=section; section=\$ 3};"\ 6448" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6449" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6450" \$ 0!~/External *\|/{next};"\ 6451" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6452" {if(hide[section]) next};"\ 6453" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6454" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6455" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6456" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6457" ' prfx=^$ac_symprfx" 6458 else 6459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6460 fi 6461 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6462 6463 # Check to see that the pipe works correctly. 6464 pipe_works=no 6465 6466 rm -f conftest* 6467 cat > conftest.$ac_ext <<_LT_EOF 6468#ifdef __cplusplus 6469extern "C" { 6470#endif 6471char nm_test_var; 6472void nm_test_func(void); 6473void nm_test_func(void){} 6474#ifdef __cplusplus 6475} 6476#endif 6477int main(){nm_test_var='a';nm_test_func();return(0);} 6478_LT_EOF 6479 6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6481 (eval $ac_compile) 2>&5 6482 ac_status=$? 6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6484 test $ac_status = 0; }; then 6485 # Now try to grab the symbols. 6486 nlist=conftest.nm 6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6488 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6489 ac_status=$? 6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6491 test $ac_status = 0; } && test -s "$nlist"; then 6492 # Try sorting and uniquifying the output. 6493 if sort "$nlist" | uniq > "$nlist"T; then 6494 mv -f "$nlist"T "$nlist" 6495 else 6496 rm -f "$nlist"T 6497 fi 6498 6499 # Make sure that we snagged all the symbols we need. 6500 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6501 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6502 cat <<_LT_EOF > conftest.$ac_ext 6503/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6504#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6505/* DATA imports from DLLs on WIN32 con't be const, because runtime 6506 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6507# define LT_DLSYM_CONST 6508#elif defined(__osf__) 6509/* This system does not cope well with relocations in const data. */ 6510# define LT_DLSYM_CONST 6511#else 6512# define LT_DLSYM_CONST const 6513#endif 6514 6515#ifdef __cplusplus 6516extern "C" { 6517#endif 6518 6519_LT_EOF 6520 # Now generate the symbol file. 6521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6522 6523 cat <<_LT_EOF >> conftest.$ac_ext 6524 6525/* The mapping between symbol names and symbols. */ 6526LT_DLSYM_CONST struct { 6527 const char *name; 6528 void *address; 6529} 6530lt__PROGRAM__LTX_preloaded_symbols[] = 6531{ 6532 { "@PROGRAM@", (void *) 0 }, 6533_LT_EOF 6534 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6535 cat <<\_LT_EOF >> conftest.$ac_ext 6536 {0, (void *) 0} 6537}; 6538 6539/* This works around a problem in FreeBSD linker */ 6540#ifdef FREEBSD_WORKAROUND 6541static const void *lt_preloaded_setup() { 6542 return lt__PROGRAM__LTX_preloaded_symbols; 6543} 6544#endif 6545 6546#ifdef __cplusplus 6547} 6548#endif 6549_LT_EOF 6550 # Now try linking the two files. 6551 mv conftest.$ac_objext conftstm.$ac_objext 6552 lt_globsym_save_LIBS=$LIBS 6553 lt_globsym_save_CFLAGS=$CFLAGS 6554 LIBS="conftstm.$ac_objext" 6555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6557 (eval $ac_link) 2>&5 6558 ac_status=$? 6559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6560 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6561 pipe_works=yes 6562 fi 6563 LIBS=$lt_globsym_save_LIBS 6564 CFLAGS=$lt_globsym_save_CFLAGS 6565 else 6566 echo "cannot find nm_test_func in $nlist" >&5 6567 fi 6568 else 6569 echo "cannot find nm_test_var in $nlist" >&5 6570 fi 6571 else 6572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6573 fi 6574 else 6575 echo "$progname: failed program was:" >&5 6576 cat conftest.$ac_ext >&5 6577 fi 6578 rm -rf conftest* conftst* 6579 6580 # Do not use the global_symbol_pipe unless it works. 6581 if test "$pipe_works" = yes; then 6582 break 6583 else 6584 lt_cv_sys_global_symbol_pipe= 6585 fi 6586done 6587 6588fi 6589 6590if test -z "$lt_cv_sys_global_symbol_pipe"; then 6591 lt_cv_sys_global_symbol_to_cdecl= 6592fi 6593if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6595$as_echo "failed" >&6; } 6596else 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6598$as_echo "ok" >&6; } 6599fi 6600 6601# Response file support. 6602if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6603 nm_file_list_spec='@' 6604elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6605 nm_file_list_spec='@' 6606fi 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6635$as_echo_n "checking for sysroot... " >&6; } 6636 6637# Check whether --with-sysroot was given. 6638if test "${with_sysroot+set}" = set; then : 6639 withval=$with_sysroot; 6640else 6641 with_sysroot=no 6642fi 6643 6644 6645lt_sysroot= 6646case ${with_sysroot} in #( 6647 yes) 6648 if test "$GCC" = yes; then 6649 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6650 fi 6651 ;; #( 6652 /*) 6653 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6654 ;; #( 6655 no|'') 6656 ;; #( 6657 *) 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6659$as_echo "${with_sysroot}" >&6; } 6660 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6661 ;; 6662esac 6663 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6665$as_echo "${lt_sysroot:-no}" >&6; } 6666 6667 6668 6669 6670 6671# Check whether --enable-libtool-lock was given. 6672if test "${enable_libtool_lock+set}" = set; then : 6673 enableval=$enable_libtool_lock; 6674fi 6675 6676test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6677 6678# Some flags need to be propagated to the compiler or linker for good 6679# libtool support. 6680case $host in 6681ia64-*-hpux*) 6682 # Find out which ABI we are using. 6683 echo 'int i;' > conftest.$ac_ext 6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6685 (eval $ac_compile) 2>&5 6686 ac_status=$? 6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6688 test $ac_status = 0; }; then 6689 case `/usr/bin/file conftest.$ac_objext` in 6690 *ELF-32*) 6691 HPUX_IA64_MODE="32" 6692 ;; 6693 *ELF-64*) 6694 HPUX_IA64_MODE="64" 6695 ;; 6696 esac 6697 fi 6698 rm -rf conftest* 6699 ;; 6700*-*-irix6*) 6701 # Find out which ABI we are using. 6702 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6704 (eval $ac_compile) 2>&5 6705 ac_status=$? 6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6707 test $ac_status = 0; }; then 6708 if test "$lt_cv_prog_gnu_ld" = yes; then 6709 case `/usr/bin/file conftest.$ac_objext` in 6710 *32-bit*) 6711 LD="${LD-ld} -melf32bsmip" 6712 ;; 6713 *N32*) 6714 LD="${LD-ld} -melf32bmipn32" 6715 ;; 6716 *64-bit*) 6717 LD="${LD-ld} -melf64bmip" 6718 ;; 6719 esac 6720 else 6721 case `/usr/bin/file conftest.$ac_objext` in 6722 *32-bit*) 6723 LD="${LD-ld} -32" 6724 ;; 6725 *N32*) 6726 LD="${LD-ld} -n32" 6727 ;; 6728 *64-bit*) 6729 LD="${LD-ld} -64" 6730 ;; 6731 esac 6732 fi 6733 fi 6734 rm -rf conftest* 6735 ;; 6736 6737x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6738s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6739 # Find out which ABI we are using. 6740 echo 'int i;' > conftest.$ac_ext 6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6742 (eval $ac_compile) 2>&5 6743 ac_status=$? 6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6745 test $ac_status = 0; }; then 6746 case `/usr/bin/file conftest.o` in 6747 *32-bit*) 6748 case $host in 6749 x86_64-*kfreebsd*-gnu) 6750 LD="${LD-ld} -m elf_i386_fbsd" 6751 ;; 6752 x86_64-*linux*) 6753 LD="${LD-ld} -m elf_i386" 6754 ;; 6755 powerpc64le-*linux*) 6756 LD="${LD-ld} -m elf32lppclinux" 6757 ;; 6758 powerpc64-*linux*) 6759 LD="${LD-ld} -m elf32ppclinux" 6760 ;; 6761 s390x-*linux*) 6762 LD="${LD-ld} -m elf_s390" 6763 ;; 6764 sparc64-*linux*) 6765 LD="${LD-ld} -m elf32_sparc" 6766 ;; 6767 esac 6768 ;; 6769 *64-bit*) 6770 case $host in 6771 x86_64-*kfreebsd*-gnu) 6772 LD="${LD-ld} -m elf_x86_64_fbsd" 6773 ;; 6774 x86_64-*linux*) 6775 LD="${LD-ld} -m elf_x86_64" 6776 ;; 6777 powerpcle-*linux*) 6778 LD="${LD-ld} -m elf64lppc" 6779 ;; 6780 powerpc-*linux*) 6781 LD="${LD-ld} -m elf64ppc" 6782 ;; 6783 s390*-*linux*|s390*-*tpf*) 6784 LD="${LD-ld} -m elf64_s390" 6785 ;; 6786 sparc*-*linux*) 6787 LD="${LD-ld} -m elf64_sparc" 6788 ;; 6789 esac 6790 ;; 6791 esac 6792 fi 6793 rm -rf conftest* 6794 ;; 6795 6796*-*-sco3.2v5*) 6797 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6798 SAVE_CFLAGS="$CFLAGS" 6799 CFLAGS="$CFLAGS -belf" 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6801$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6802if ${lt_cv_cc_needs_belf+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 ac_ext=c 6806ac_cpp='$CPP $CPPFLAGS' 6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6809ac_compiler_gnu=$ac_cv_c_compiler_gnu 6810 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813 6814int 6815main () 6816{ 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_link "$LINENO"; then : 6823 lt_cv_cc_needs_belf=yes 6824else 6825 lt_cv_cc_needs_belf=no 6826fi 6827rm -f core conftest.err conftest.$ac_objext \ 6828 conftest$ac_exeext conftest.$ac_ext 6829 ac_ext=c 6830ac_cpp='$CPP $CPPFLAGS' 6831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6833ac_compiler_gnu=$ac_cv_c_compiler_gnu 6834 6835fi 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6837$as_echo "$lt_cv_cc_needs_belf" >&6; } 6838 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6840 CFLAGS="$SAVE_CFLAGS" 6841 fi 6842 ;; 6843*-*solaris*) 6844 # Find out which ABI we are using. 6845 echo 'int i;' > conftest.$ac_ext 6846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6847 (eval $ac_compile) 2>&5 6848 ac_status=$? 6849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6850 test $ac_status = 0; }; then 6851 case `/usr/bin/file conftest.o` in 6852 *64-bit*) 6853 case $lt_cv_prog_gnu_ld in 6854 yes*) 6855 case $host in 6856 i?86-*-solaris*) 6857 LD="${LD-ld} -m elf_x86_64" 6858 ;; 6859 sparc*-*-solaris*) 6860 LD="${LD-ld} -m elf64_sparc" 6861 ;; 6862 esac 6863 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6864 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6865 LD="${LD-ld}_sol2" 6866 fi 6867 ;; 6868 *) 6869 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6870 LD="${LD-ld} -64" 6871 fi 6872 ;; 6873 esac 6874 ;; 6875 esac 6876 fi 6877 rm -rf conftest* 6878 ;; 6879esac 6880 6881need_locks="$enable_libtool_lock" 6882 6883if test -n "$ac_tool_prefix"; then 6884 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6885set dummy ${ac_tool_prefix}mt; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$MANIFEST_TOOL"; then 6892 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6912if test -n "$MANIFEST_TOOL"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6914$as_echo "$MANIFEST_TOOL" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921fi 6922if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6923 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6924 # Extract the first word of "mt", so it can be a program name with args. 6925set dummy mt; ac_word=$2 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927$as_echo_n "checking for $ac_word... " >&6; } 6928if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 if test -n "$ac_ct_MANIFEST_TOOL"; then 6932 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6933else 6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6935for as_dir in $PATH 6936do 6937 IFS=$as_save_IFS 6938 test -z "$as_dir" && as_dir=. 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6941 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949fi 6950fi 6951ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6952if test -n "$ac_ct_MANIFEST_TOOL"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6954$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6955else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957$as_echo "no" >&6; } 6958fi 6959 6960 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6961 MANIFEST_TOOL=":" 6962 else 6963 case $cross_compiling:$ac_tool_warned in 6964yes:) 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6967ac_tool_warned=yes ;; 6968esac 6969 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6970 fi 6971else 6972 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6973fi 6974 6975test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6977$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6978if ${lt_cv_path_mainfest_tool+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 lt_cv_path_mainfest_tool=no 6982 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6983 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6984 cat conftest.err >&5 6985 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6986 lt_cv_path_mainfest_tool=yes 6987 fi 6988 rm -f conftest* 6989fi 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6991$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6992if test "x$lt_cv_path_mainfest_tool" != xyes; then 6993 MANIFEST_TOOL=: 6994fi 6995 6996 6997 6998 6999 7000 7001 case $host_os in 7002 rhapsody* | darwin*) 7003 if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7007$as_echo_n "checking for $ac_word... " >&6; } 7008if ${ac_cv_prog_DSYMUTIL+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 if test -n "$DSYMUTIL"; then 7012 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7013else 7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7021 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031DSYMUTIL=$ac_cv_prog_DSYMUTIL 7032if test -n "$DSYMUTIL"; then 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7034$as_echo "$DSYMUTIL" >&6; } 7035else 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037$as_echo "no" >&6; } 7038fi 7039 7040 7041fi 7042if test -z "$ac_cv_prog_DSYMUTIL"; then 7043 ac_ct_DSYMUTIL=$DSYMUTIL 7044 # Extract the first word of "dsymutil", so it can be a program name with args. 7045set dummy dsymutil; ac_word=$2 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7047$as_echo_n "checking for $ac_word... " >&6; } 7048if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test -n "$ac_ct_DSYMUTIL"; then 7052 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7061 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066 done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7072if test -n "$ac_ct_DSYMUTIL"; then 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7074$as_echo "$ac_ct_DSYMUTIL" >&6; } 7075else 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7077$as_echo "no" >&6; } 7078fi 7079 7080 if test "x$ac_ct_DSYMUTIL" = x; then 7081 DSYMUTIL=":" 7082 else 7083 case $cross_compiling:$ac_tool_warned in 7084yes:) 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7087ac_tool_warned=yes ;; 7088esac 7089 DSYMUTIL=$ac_ct_DSYMUTIL 7090 fi 7091else 7092 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7093fi 7094 7095 if test -n "$ac_tool_prefix"; then 7096 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7097set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7099$as_echo_n "checking for $ac_word... " >&6; } 7100if ${ac_cv_prog_NMEDIT+:} false; then : 7101 $as_echo_n "(cached) " >&6 7102else 7103 if test -n "$NMEDIT"; then 7104 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7105else 7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7107for as_dir in $PATH 7108do 7109 IFS=$as_save_IFS 7110 test -z "$as_dir" && as_dir=. 7111 for ac_exec_ext in '' $ac_executable_extensions; do 7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7113 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7115 break 2 7116 fi 7117done 7118 done 7119IFS=$as_save_IFS 7120 7121fi 7122fi 7123NMEDIT=$ac_cv_prog_NMEDIT 7124if test -n "$NMEDIT"; then 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7126$as_echo "$NMEDIT" >&6; } 7127else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132 7133fi 7134if test -z "$ac_cv_prog_NMEDIT"; then 7135 ac_ct_NMEDIT=$NMEDIT 7136 # Extract the first word of "nmedit", so it can be a program name with args. 7137set dummy nmedit; ac_word=$2 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7139$as_echo_n "checking for $ac_word... " >&6; } 7140if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 if test -n "$ac_ct_NMEDIT"; then 7144 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7145else 7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147for as_dir in $PATH 7148do 7149 IFS=$as_save_IFS 7150 test -z "$as_dir" && as_dir=. 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7153 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157done 7158 done 7159IFS=$as_save_IFS 7160 7161fi 7162fi 7163ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7164if test -n "$ac_ct_NMEDIT"; then 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7166$as_echo "$ac_ct_NMEDIT" >&6; } 7167else 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172 if test "x$ac_ct_NMEDIT" = x; then 7173 NMEDIT=":" 7174 else 7175 case $cross_compiling:$ac_tool_warned in 7176yes:) 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7179ac_tool_warned=yes ;; 7180esac 7181 NMEDIT=$ac_ct_NMEDIT 7182 fi 7183else 7184 NMEDIT="$ac_cv_prog_NMEDIT" 7185fi 7186 7187 if test -n "$ac_tool_prefix"; then 7188 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7189set dummy ${ac_tool_prefix}lipo; ac_word=$2 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7191$as_echo_n "checking for $ac_word... " >&6; } 7192if ${ac_cv_prog_LIPO+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 if test -n "$LIPO"; then 7196 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7197else 7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7199for as_dir in $PATH 7200do 7201 IFS=$as_save_IFS 7202 test -z "$as_dir" && as_dir=. 7203 for ac_exec_ext in '' $ac_executable_extensions; do 7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7205 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7207 break 2 7208 fi 7209done 7210 done 7211IFS=$as_save_IFS 7212 7213fi 7214fi 7215LIPO=$ac_cv_prog_LIPO 7216if test -n "$LIPO"; then 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7218$as_echo "$LIPO" >&6; } 7219else 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7221$as_echo "no" >&6; } 7222fi 7223 7224 7225fi 7226if test -z "$ac_cv_prog_LIPO"; then 7227 ac_ct_LIPO=$LIPO 7228 # Extract the first word of "lipo", so it can be a program name with args. 7229set dummy lipo; ac_word=$2 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$ac_ct_LIPO"; then 7236 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7245 ac_cv_prog_ac_ct_LIPO="lipo" 7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250 done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7256if test -n "$ac_ct_LIPO"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7258$as_echo "$ac_ct_LIPO" >&6; } 7259else 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 if test "x$ac_ct_LIPO" = x; then 7265 LIPO=":" 7266 else 7267 case $cross_compiling:$ac_tool_warned in 7268yes:) 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7271ac_tool_warned=yes ;; 7272esac 7273 LIPO=$ac_ct_LIPO 7274 fi 7275else 7276 LIPO="$ac_cv_prog_LIPO" 7277fi 7278 7279 if test -n "$ac_tool_prefix"; then 7280 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7281set dummy ${ac_tool_prefix}otool; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_OTOOL+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$OTOOL"; then 7288 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi 7306fi 7307OTOOL=$ac_cv_prog_OTOOL 7308if test -n "$OTOOL"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7310$as_echo "$OTOOL" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 7317fi 7318if test -z "$ac_cv_prog_OTOOL"; then 7319 ac_ct_OTOOL=$OTOOL 7320 # Extract the first word of "otool", so it can be a program name with args. 7321set dummy otool; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$ac_ct_OTOOL"; then 7328 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_prog_ac_ct_OTOOL="otool" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7348if test -n "$ac_ct_OTOOL"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7350$as_echo "$ac_ct_OTOOL" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 if test "x$ac_ct_OTOOL" = x; then 7357 OTOOL=":" 7358 else 7359 case $cross_compiling:$ac_tool_warned in 7360yes:) 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7363ac_tool_warned=yes ;; 7364esac 7365 OTOOL=$ac_ct_OTOOL 7366 fi 7367else 7368 OTOOL="$ac_cv_prog_OTOOL" 7369fi 7370 7371 if test -n "$ac_tool_prefix"; then 7372 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7373set dummy ${ac_tool_prefix}otool64; ac_word=$2 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7375$as_echo_n "checking for $ac_word... " >&6; } 7376if ${ac_cv_prog_OTOOL64+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378else 7379 if test -n "$OTOOL64"; then 7380 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7381else 7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7383for as_dir in $PATH 7384do 7385 IFS=$as_save_IFS 7386 test -z "$as_dir" && as_dir=. 7387 for ac_exec_ext in '' $ac_executable_extensions; do 7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7389 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7391 break 2 7392 fi 7393done 7394 done 7395IFS=$as_save_IFS 7396 7397fi 7398fi 7399OTOOL64=$ac_cv_prog_OTOOL64 7400if test -n "$OTOOL64"; then 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7402$as_echo "$OTOOL64" >&6; } 7403else 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7405$as_echo "no" >&6; } 7406fi 7407 7408 7409fi 7410if test -z "$ac_cv_prog_OTOOL64"; then 7411 ac_ct_OTOOL64=$OTOOL64 7412 # Extract the first word of "otool64", so it can be a program name with args. 7413set dummy otool64; ac_word=$2 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7415$as_echo_n "checking for $ac_word... " >&6; } 7416if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 if test -n "$ac_ct_OTOOL64"; then 7420 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7421else 7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423for as_dir in $PATH 7424do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_prog_ac_ct_OTOOL64="otool64" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433done 7434 done 7435IFS=$as_save_IFS 7436 7437fi 7438fi 7439ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7440if test -n "$ac_ct_OTOOL64"; then 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7442$as_echo "$ac_ct_OTOOL64" >&6; } 7443else 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7445$as_echo "no" >&6; } 7446fi 7447 7448 if test "x$ac_ct_OTOOL64" = x; then 7449 OTOOL64=":" 7450 else 7451 case $cross_compiling:$ac_tool_warned in 7452yes:) 7453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7455ac_tool_warned=yes ;; 7456esac 7457 OTOOL64=$ac_ct_OTOOL64 7458 fi 7459else 7460 OTOOL64="$ac_cv_prog_OTOOL64" 7461fi 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7490$as_echo_n "checking for -single_module linker flag... " >&6; } 7491if ${lt_cv_apple_cc_single_mod+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 lt_cv_apple_cc_single_mod=no 7495 if test -z "${LT_MULTI_MODULE}"; then 7496 # By default we will add the -single_module flag. You can override 7497 # by either setting the environment variable LT_MULTI_MODULE 7498 # non-empty at configure time, or by adding -multi_module to the 7499 # link flags. 7500 rm -rf libconftest.dylib* 7501 echo "int foo(void){return 1;}" > conftest.c 7502 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7503-dynamiclib -Wl,-single_module conftest.c" >&5 7504 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7505 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7506 _lt_result=$? 7507 # If there is a non-empty error log, and "single_module" 7508 # appears in it, assume the flag caused a linker warning 7509 if test -s conftest.err && $GREP single_module conftest.err; then 7510 cat conftest.err >&5 7511 # Otherwise, if the output was created with a 0 exit code from 7512 # the compiler, it worked. 7513 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7514 lt_cv_apple_cc_single_mod=yes 7515 else 7516 cat conftest.err >&5 7517 fi 7518 rm -rf libconftest.dylib* 7519 rm -f conftest.* 7520 fi 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7523$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7524 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7527if ${lt_cv_ld_exported_symbols_list+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 lt_cv_ld_exported_symbols_list=no 7531 save_LDFLAGS=$LDFLAGS 7532 echo "_main" > conftest.sym 7533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536 7537int 7538main () 7539{ 7540 7541 ; 7542 return 0; 7543} 7544_ACEOF 7545if ac_fn_c_try_link "$LINENO"; then : 7546 lt_cv_ld_exported_symbols_list=yes 7547else 7548 lt_cv_ld_exported_symbols_list=no 7549fi 7550rm -f core conftest.err conftest.$ac_objext \ 7551 conftest$ac_exeext conftest.$ac_ext 7552 LDFLAGS="$save_LDFLAGS" 7553 7554fi 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7556$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7557 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7559$as_echo_n "checking for -force_load linker flag... " >&6; } 7560if ${lt_cv_ld_force_load+:} false; then : 7561 $as_echo_n "(cached) " >&6 7562else 7563 lt_cv_ld_force_load=no 7564 cat > conftest.c << _LT_EOF 7565int forced_loaded() { return 2;} 7566_LT_EOF 7567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7569 echo "$AR cru libconftest.a conftest.o" >&5 7570 $AR cru libconftest.a conftest.o 2>&5 7571 echo "$RANLIB libconftest.a" >&5 7572 $RANLIB libconftest.a 2>&5 7573 cat > conftest.c << _LT_EOF 7574int main() { return 0;} 7575_LT_EOF 7576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7578 _lt_result=$? 7579 if test -s conftest.err && $GREP force_load conftest.err; then 7580 cat conftest.err >&5 7581 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7582 lt_cv_ld_force_load=yes 7583 else 7584 cat conftest.err >&5 7585 fi 7586 rm -f conftest.err libconftest.a conftest conftest.c 7587 rm -rf conftest.dSYM 7588 7589fi 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7591$as_echo "$lt_cv_ld_force_load" >&6; } 7592 case $host_os in 7593 rhapsody* | darwin1.[012]) 7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7595 darwin1.*) 7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7597 darwin*) # darwin 5.x on 7598 # if running on 10.5 or later, the deployment target defaults 7599 # to the OS version, if on x86, and 10.4, the deployment 7600 # target defaults to 10.4. Don't you love it? 7601 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7602 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7603 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7604 10.[012]*) 7605 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7606 10.*) 7607 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7608 esac 7609 ;; 7610 esac 7611 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7612 _lt_dar_single_mod='$single_module' 7613 fi 7614 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7615 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7616 else 7617 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7618 fi 7619 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7620 _lt_dsymutil='~$DSYMUTIL $lib || :' 7621 else 7622 _lt_dsymutil= 7623 fi 7624 ;; 7625 esac 7626 7627ac_ext=c 7628ac_cpp='$CPP $CPPFLAGS' 7629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7631ac_compiler_gnu=$ac_cv_c_compiler_gnu 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7633$as_echo_n "checking how to run the C preprocessor... " >&6; } 7634# On Suns, sometimes $CPP names a directory. 7635if test -n "$CPP" && test -d "$CPP"; then 7636 CPP= 7637fi 7638if test -z "$CPP"; then 7639 if ${ac_cv_prog_CPP+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 # Double quotes because CPP needs to be expanded 7643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7644 do 7645 ac_preproc_ok=false 7646for ac_c_preproc_warn_flag in '' yes 7647do 7648 # Use a header file that comes with gcc, so configuring glibc 7649 # with a fresh cross-compiler works. 7650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7651 # <limits.h> exists even on freestanding compilers. 7652 # On the NeXT, cc -E runs the code through the compiler's parser, 7653 # not just through cpp. "Syntax error" is here to catch this case. 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656#ifdef __STDC__ 7657# include <limits.h> 7658#else 7659# include <assert.h> 7660#endif 7661 Syntax error 7662_ACEOF 7663if ac_fn_c_try_cpp "$LINENO"; then : 7664 7665else 7666 # Broken: fails on valid input. 7667continue 7668fi 7669rm -f conftest.err conftest.i conftest.$ac_ext 7670 7671 # OK, works on sane cases. Now check whether nonexistent headers 7672 # can be detected and how. 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675#include <ac_nonexistent.h> 7676_ACEOF 7677if ac_fn_c_try_cpp "$LINENO"; then : 7678 # Broken: success on invalid input. 7679continue 7680else 7681 # Passes both tests. 7682ac_preproc_ok=: 7683break 7684fi 7685rm -f conftest.err conftest.i conftest.$ac_ext 7686 7687done 7688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7689rm -f conftest.i conftest.err conftest.$ac_ext 7690if $ac_preproc_ok; then : 7691 break 7692fi 7693 7694 done 7695 ac_cv_prog_CPP=$CPP 7696 7697fi 7698 CPP=$ac_cv_prog_CPP 7699else 7700 ac_cv_prog_CPP=$CPP 7701fi 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7703$as_echo "$CPP" >&6; } 7704ac_preproc_ok=false 7705for ac_c_preproc_warn_flag in '' yes 7706do 7707 # Use a header file that comes with gcc, so configuring glibc 7708 # with a fresh cross-compiler works. 7709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7710 # <limits.h> exists even on freestanding compilers. 7711 # On the NeXT, cc -E runs the code through the compiler's parser, 7712 # not just through cpp. "Syntax error" is here to catch this case. 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715#ifdef __STDC__ 7716# include <limits.h> 7717#else 7718# include <assert.h> 7719#endif 7720 Syntax error 7721_ACEOF 7722if ac_fn_c_try_cpp "$LINENO"; then : 7723 7724else 7725 # Broken: fails on valid input. 7726continue 7727fi 7728rm -f conftest.err conftest.i conftest.$ac_ext 7729 7730 # OK, works on sane cases. Now check whether nonexistent headers 7731 # can be detected and how. 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733/* end confdefs.h. */ 7734#include <ac_nonexistent.h> 7735_ACEOF 7736if ac_fn_c_try_cpp "$LINENO"; then : 7737 # Broken: success on invalid input. 7738continue 7739else 7740 # Passes both tests. 7741ac_preproc_ok=: 7742break 7743fi 7744rm -f conftest.err conftest.i conftest.$ac_ext 7745 7746done 7747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7748rm -f conftest.i conftest.err conftest.$ac_ext 7749if $ac_preproc_ok; then : 7750 7751else 7752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7754as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7755See \`config.log' for more details" "$LINENO" 5; } 7756fi 7757 7758ac_ext=c 7759ac_cpp='$CPP $CPPFLAGS' 7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7762ac_compiler_gnu=$ac_cv_c_compiler_gnu 7763 7764 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7766$as_echo_n "checking for ANSI C header files... " >&6; } 7767if ${ac_cv_header_stdc+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772#include <stdlib.h> 7773#include <stdarg.h> 7774#include <string.h> 7775#include <float.h> 7776 7777int 7778main () 7779{ 7780 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO"; then : 7786 ac_cv_header_stdc=yes 7787else 7788 ac_cv_header_stdc=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791 7792if test $ac_cv_header_stdc = yes; then 7793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796#include <string.h> 7797 7798_ACEOF 7799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7800 $EGREP "memchr" >/dev/null 2>&1; then : 7801 7802else 7803 ac_cv_header_stdc=no 7804fi 7805rm -f conftest* 7806 7807fi 7808 7809if test $ac_cv_header_stdc = yes; then 7810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7812/* end confdefs.h. */ 7813#include <stdlib.h> 7814 7815_ACEOF 7816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7817 $EGREP "free" >/dev/null 2>&1; then : 7818 7819else 7820 ac_cv_header_stdc=no 7821fi 7822rm -f conftest* 7823 7824fi 7825 7826if test $ac_cv_header_stdc = yes; then 7827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7828 if test "$cross_compiling" = yes; then : 7829 : 7830else 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833#include <ctype.h> 7834#include <stdlib.h> 7835#if ((' ' & 0x0FF) == 0x020) 7836# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7837# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7838#else 7839# define ISLOWER(c) \ 7840 (('a' <= (c) && (c) <= 'i') \ 7841 || ('j' <= (c) && (c) <= 'r') \ 7842 || ('s' <= (c) && (c) <= 'z')) 7843# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7844#endif 7845 7846#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7847int 7848main () 7849{ 7850 int i; 7851 for (i = 0; i < 256; i++) 7852 if (XOR (islower (i), ISLOWER (i)) 7853 || toupper (i) != TOUPPER (i)) 7854 return 2; 7855 return 0; 7856} 7857_ACEOF 7858if ac_fn_c_try_run "$LINENO"; then : 7859 7860else 7861 ac_cv_header_stdc=no 7862fi 7863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7864 conftest.$ac_objext conftest.beam conftest.$ac_ext 7865fi 7866 7867fi 7868fi 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7870$as_echo "$ac_cv_header_stdc" >&6; } 7871if test $ac_cv_header_stdc = yes; then 7872 7873$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7874 7875fi 7876 7877# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7878for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7879 inttypes.h stdint.h unistd.h 7880do : 7881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7882ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7883" 7884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7885 cat >>confdefs.h <<_ACEOF 7886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7887_ACEOF 7888 7889fi 7890 7891done 7892 7893 7894for ac_header in dlfcn.h 7895do : 7896 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7897" 7898if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7899 cat >>confdefs.h <<_ACEOF 7900#define HAVE_DLFCN_H 1 7901_ACEOF 7902 7903fi 7904 7905done 7906 7907 7908 7909 7910 7911# Set options 7912enable_dlopen=yes 7913enable_win32_dll=yes 7914 7915case $host in 7916*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7917 if test -n "$ac_tool_prefix"; then 7918 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7919set dummy ${ac_tool_prefix}as; ac_word=$2 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921$as_echo_n "checking for $ac_word... " >&6; } 7922if ${ac_cv_prog_AS+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 if test -n "$AS"; then 7926 ac_cv_prog_AS="$AS" # Let the user override the test. 7927else 7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7929for as_dir in $PATH 7930do 7931 IFS=$as_save_IFS 7932 test -z "$as_dir" && as_dir=. 7933 for ac_exec_ext in '' $ac_executable_extensions; do 7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7935 ac_cv_prog_AS="${ac_tool_prefix}as" 7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7937 break 2 7938 fi 7939done 7940 done 7941IFS=$as_save_IFS 7942 7943fi 7944fi 7945AS=$ac_cv_prog_AS 7946if test -n "$AS"; then 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7948$as_echo "$AS" >&6; } 7949else 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7951$as_echo "no" >&6; } 7952fi 7953 7954 7955fi 7956if test -z "$ac_cv_prog_AS"; then 7957 ac_ct_AS=$AS 7958 # Extract the first word of "as", so it can be a program name with args. 7959set dummy as; ac_word=$2 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961$as_echo_n "checking for $ac_word... " >&6; } 7962if ${ac_cv_prog_ac_ct_AS+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 if test -n "$ac_ct_AS"; then 7966 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7975 ac_cv_prog_ac_ct_AS="as" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979done 7980 done 7981IFS=$as_save_IFS 7982 7983fi 7984fi 7985ac_ct_AS=$ac_cv_prog_ac_ct_AS 7986if test -n "$ac_ct_AS"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7988$as_echo "$ac_ct_AS" >&6; } 7989else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991$as_echo "no" >&6; } 7992fi 7993 7994 if test "x$ac_ct_AS" = x; then 7995 AS="false" 7996 else 7997 case $cross_compiling:$ac_tool_warned in 7998yes:) 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8001ac_tool_warned=yes ;; 8002esac 8003 AS=$ac_ct_AS 8004 fi 8005else 8006 AS="$ac_cv_prog_AS" 8007fi 8008 8009 if test -n "$ac_tool_prefix"; then 8010 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8011set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8013$as_echo_n "checking for $ac_word... " >&6; } 8014if ${ac_cv_prog_DLLTOOL+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 if test -n "$DLLTOOL"; then 8018 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8019else 8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8021for as_dir in $PATH 8022do 8023 IFS=$as_save_IFS 8024 test -z "$as_dir" && as_dir=. 8025 for ac_exec_ext in '' $ac_executable_extensions; do 8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8027 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8029 break 2 8030 fi 8031done 8032 done 8033IFS=$as_save_IFS 8034 8035fi 8036fi 8037DLLTOOL=$ac_cv_prog_DLLTOOL 8038if test -n "$DLLTOOL"; then 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8040$as_echo "$DLLTOOL" >&6; } 8041else 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8043$as_echo "no" >&6; } 8044fi 8045 8046 8047fi 8048if test -z "$ac_cv_prog_DLLTOOL"; then 8049 ac_ct_DLLTOOL=$DLLTOOL 8050 # Extract the first word of "dlltool", so it can be a program name with args. 8051set dummy dlltool; ac_word=$2 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053$as_echo_n "checking for $ac_word... " >&6; } 8054if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 if test -n "$ac_ct_DLLTOOL"; then 8058 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8059else 8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8067 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075fi 8076fi 8077ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8078if test -n "$ac_ct_DLLTOOL"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8080$as_echo "$ac_ct_DLLTOOL" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 if test "x$ac_ct_DLLTOOL" = x; then 8087 DLLTOOL="false" 8088 else 8089 case $cross_compiling:$ac_tool_warned in 8090yes:) 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8093ac_tool_warned=yes ;; 8094esac 8095 DLLTOOL=$ac_ct_DLLTOOL 8096 fi 8097else 8098 DLLTOOL="$ac_cv_prog_DLLTOOL" 8099fi 8100 8101 if test -n "$ac_tool_prefix"; then 8102 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8103set dummy ${ac_tool_prefix}objdump; ac_word=$2 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105$as_echo_n "checking for $ac_word... " >&6; } 8106if ${ac_cv_prog_OBJDUMP+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if test -n "$OBJDUMP"; then 8110 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8119 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123done 8124 done 8125IFS=$as_save_IFS 8126 8127fi 8128fi 8129OBJDUMP=$ac_cv_prog_OBJDUMP 8130if test -n "$OBJDUMP"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8132$as_echo "$OBJDUMP" >&6; } 8133else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135$as_echo "no" >&6; } 8136fi 8137 8138 8139fi 8140if test -z "$ac_cv_prog_OBJDUMP"; then 8141 ac_ct_OBJDUMP=$OBJDUMP 8142 # Extract the first word of "objdump", so it can be a program name with args. 8143set dummy objdump; ac_word=$2 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145$as_echo_n "checking for $ac_word... " >&6; } 8146if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 if test -n "$ac_ct_OBJDUMP"; then 8150 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8159 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi 8168fi 8169ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8170if test -n "$ac_ct_OBJDUMP"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8172$as_echo "$ac_ct_OBJDUMP" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 if test "x$ac_ct_OBJDUMP" = x; then 8179 OBJDUMP="false" 8180 else 8181 case $cross_compiling:$ac_tool_warned in 8182yes:) 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8185ac_tool_warned=yes ;; 8186esac 8187 OBJDUMP=$ac_ct_OBJDUMP 8188 fi 8189else 8190 OBJDUMP="$ac_cv_prog_OBJDUMP" 8191fi 8192 8193 ;; 8194esac 8195 8196test -z "$AS" && AS=as 8197 8198 8199 8200 8201 8202test -z "$DLLTOOL" && DLLTOOL=dlltool 8203 8204 8205 8206 8207 8208test -z "$OBJDUMP" && OBJDUMP=objdump 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 # Check whether --enable-shared was given. 8219if test "${enable_shared+set}" = set; then : 8220 enableval=$enable_shared; p=${PACKAGE-default} 8221 case $enableval in 8222 yes) enable_shared=yes ;; 8223 no) enable_shared=no ;; 8224 *) 8225 enable_shared=no 8226 # Look at the argument we got. We use all the common list separators. 8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8228 for pkg in $enableval; do 8229 IFS="$lt_save_ifs" 8230 if test "X$pkg" = "X$p"; then 8231 enable_shared=yes 8232 fi 8233 done 8234 IFS="$lt_save_ifs" 8235 ;; 8236 esac 8237else 8238 enable_shared=yes 8239fi 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 # Check whether --enable-static was given. 8250if test "${enable_static+set}" = set; then : 8251 enableval=$enable_static; p=${PACKAGE-default} 8252 case $enableval in 8253 yes) enable_static=yes ;; 8254 no) enable_static=no ;; 8255 *) 8256 enable_static=no 8257 # Look at the argument we got. We use all the common list separators. 8258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8259 for pkg in $enableval; do 8260 IFS="$lt_save_ifs" 8261 if test "X$pkg" = "X$p"; then 8262 enable_static=yes 8263 fi 8264 done 8265 IFS="$lt_save_ifs" 8266 ;; 8267 esac 8268else 8269 enable_static=yes 8270fi 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281# Check whether --with-pic was given. 8282if test "${with_pic+set}" = set; then : 8283 withval=$with_pic; lt_p=${PACKAGE-default} 8284 case $withval in 8285 yes|no) pic_mode=$withval ;; 8286 *) 8287 pic_mode=default 8288 # Look at the argument we got. We use all the common list separators. 8289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8290 for lt_pkg in $withval; do 8291 IFS="$lt_save_ifs" 8292 if test "X$lt_pkg" = "X$lt_p"; then 8293 pic_mode=yes 8294 fi 8295 done 8296 IFS="$lt_save_ifs" 8297 ;; 8298 esac 8299else 8300 pic_mode=default 8301fi 8302 8303 8304test -z "$pic_mode" && pic_mode=default 8305 8306 8307 8308 8309 8310 8311 8312 # Check whether --enable-fast-install was given. 8313if test "${enable_fast_install+set}" = set; then : 8314 enableval=$enable_fast_install; p=${PACKAGE-default} 8315 case $enableval in 8316 yes) enable_fast_install=yes ;; 8317 no) enable_fast_install=no ;; 8318 *) 8319 enable_fast_install=no 8320 # Look at the argument we got. We use all the common list separators. 8321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8322 for pkg in $enableval; do 8323 IFS="$lt_save_ifs" 8324 if test "X$pkg" = "X$p"; then 8325 enable_fast_install=yes 8326 fi 8327 done 8328 IFS="$lt_save_ifs" 8329 ;; 8330 esac 8331else 8332 enable_fast_install=yes 8333fi 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345# This can be used to rebuild libtool when needed 8346LIBTOOL_DEPS="$ltmain" 8347 8348# Always use our own libtool. 8349LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380test -z "$LN_S" && LN_S="ln -s" 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395if test -n "${ZSH_VERSION+set}" ; then 8396 setopt NO_GLOB_SUBST 8397fi 8398 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8400$as_echo_n "checking for objdir... " >&6; } 8401if ${lt_cv_objdir+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403else 8404 rm -f .libs 2>/dev/null 8405mkdir .libs 2>/dev/null 8406if test -d .libs; then 8407 lt_cv_objdir=.libs 8408else 8409 # MS-DOS does not allow filenames that begin with a dot. 8410 lt_cv_objdir=_libs 8411fi 8412rmdir .libs 2>/dev/null 8413fi 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8415$as_echo "$lt_cv_objdir" >&6; } 8416objdir=$lt_cv_objdir 8417 8418 8419 8420 8421 8422cat >>confdefs.h <<_ACEOF 8423#define LT_OBJDIR "$lt_cv_objdir/" 8424_ACEOF 8425 8426 8427 8428 8429case $host_os in 8430aix3*) 8431 # AIX sometimes has problems with the GCC collect2 program. For some 8432 # reason, if we set the COLLECT_NAMES environment variable, the problems 8433 # vanish in a puff of smoke. 8434 if test "X${COLLECT_NAMES+set}" != Xset; then 8435 COLLECT_NAMES= 8436 export COLLECT_NAMES 8437 fi 8438 ;; 8439esac 8440 8441# Global variables: 8442ofile=libtool 8443can_build_shared=yes 8444 8445# All known linkers require a `.a' archive for static linking (except MSVC, 8446# which needs '.lib'). 8447libext=a 8448 8449with_gnu_ld="$lt_cv_prog_gnu_ld" 8450 8451old_CC="$CC" 8452old_CFLAGS="$CFLAGS" 8453 8454# Set sane defaults for various variables 8455test -z "$CC" && CC=cc 8456test -z "$LTCC" && LTCC=$CC 8457test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8458test -z "$LD" && LD=ld 8459test -z "$ac_objext" && ac_objext=o 8460 8461for cc_temp in $compiler""; do 8462 case $cc_temp in 8463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8465 \-*) ;; 8466 *) break;; 8467 esac 8468done 8469cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8470 8471 8472# Only perform the check for file, if the check method requires it 8473test -z "$MAGIC_CMD" && MAGIC_CMD=file 8474case $deplibs_check_method in 8475file_magic*) 8476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8478$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8479if ${lt_cv_path_MAGIC_CMD+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 case $MAGIC_CMD in 8483[\\/*] | ?:[\\/]*) 8484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8485 ;; 8486*) 8487 lt_save_MAGIC_CMD="$MAGIC_CMD" 8488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8490 for ac_dir in $ac_dummy; do 8491 IFS="$lt_save_ifs" 8492 test -z "$ac_dir" && ac_dir=. 8493 if test -f $ac_dir/${ac_tool_prefix}file; then 8494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8495 if test -n "$file_magic_test_file"; then 8496 case $deplibs_check_method in 8497 "file_magic "*) 8498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8501 $EGREP "$file_magic_regex" > /dev/null; then 8502 : 8503 else 8504 cat <<_LT_EOF 1>&2 8505 8506*** Warning: the command libtool uses to detect shared libraries, 8507*** $file_magic_cmd, produces output that libtool cannot recognize. 8508*** The result is that libtool may fail to recognize shared libraries 8509*** as such. This will affect the creation of libtool libraries that 8510*** depend on shared libraries, but programs linked with such libtool 8511*** libraries will work regardless of this problem. Nevertheless, you 8512*** may want to report the problem to your system manager and/or to 8513*** bug-libtool@gnu.org 8514 8515_LT_EOF 8516 fi ;; 8517 esac 8518 fi 8519 break 8520 fi 8521 done 8522 IFS="$lt_save_ifs" 8523 MAGIC_CMD="$lt_save_MAGIC_CMD" 8524 ;; 8525esac 8526fi 8527 8528MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8529if test -n "$MAGIC_CMD"; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8531$as_echo "$MAGIC_CMD" >&6; } 8532else 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8534$as_echo "no" >&6; } 8535fi 8536 8537 8538 8539 8540 8541if test -z "$lt_cv_path_MAGIC_CMD"; then 8542 if test -n "$ac_tool_prefix"; then 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8544$as_echo_n "checking for file... " >&6; } 8545if ${lt_cv_path_MAGIC_CMD+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 case $MAGIC_CMD in 8549[\\/*] | ?:[\\/]*) 8550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8551 ;; 8552*) 8553 lt_save_MAGIC_CMD="$MAGIC_CMD" 8554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8556 for ac_dir in $ac_dummy; do 8557 IFS="$lt_save_ifs" 8558 test -z "$ac_dir" && ac_dir=. 8559 if test -f $ac_dir/file; then 8560 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8561 if test -n "$file_magic_test_file"; then 8562 case $deplibs_check_method in 8563 "file_magic "*) 8564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8567 $EGREP "$file_magic_regex" > /dev/null; then 8568 : 8569 else 8570 cat <<_LT_EOF 1>&2 8571 8572*** Warning: the command libtool uses to detect shared libraries, 8573*** $file_magic_cmd, produces output that libtool cannot recognize. 8574*** The result is that libtool may fail to recognize shared libraries 8575*** as such. This will affect the creation of libtool libraries that 8576*** depend on shared libraries, but programs linked with such libtool 8577*** libraries will work regardless of this problem. Nevertheless, you 8578*** may want to report the problem to your system manager and/or to 8579*** bug-libtool@gnu.org 8580 8581_LT_EOF 8582 fi ;; 8583 esac 8584 fi 8585 break 8586 fi 8587 done 8588 IFS="$lt_save_ifs" 8589 MAGIC_CMD="$lt_save_MAGIC_CMD" 8590 ;; 8591esac 8592fi 8593 8594MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8595if test -n "$MAGIC_CMD"; then 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8597$as_echo "$MAGIC_CMD" >&6; } 8598else 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8600$as_echo "no" >&6; } 8601fi 8602 8603 8604 else 8605 MAGIC_CMD=: 8606 fi 8607fi 8608 8609 fi 8610 ;; 8611esac 8612 8613# Use C for the default configuration in the libtool script 8614 8615lt_save_CC="$CC" 8616ac_ext=c 8617ac_cpp='$CPP $CPPFLAGS' 8618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8620ac_compiler_gnu=$ac_cv_c_compiler_gnu 8621 8622 8623# Source file extension for C test sources. 8624ac_ext=c 8625 8626# Object file extension for compiled C test sources. 8627objext=o 8628objext=$objext 8629 8630# Code to be used in simple compile tests 8631lt_simple_compile_test_code="int some_variable = 0;" 8632 8633# Code to be used in simple link tests 8634lt_simple_link_test_code='int main(){return(0);}' 8635 8636 8637 8638 8639 8640 8641 8642# If no C compiler was specified, use CC. 8643LTCC=${LTCC-"$CC"} 8644 8645# If no C compiler flags were specified, use CFLAGS. 8646LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8647 8648# Allow CC to be a program name with arguments. 8649compiler=$CC 8650 8651# Save the default compiler, since it gets overwritten when the other 8652# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8653compiler_DEFAULT=$CC 8654 8655# save warnings/boilerplate of simple test code 8656ac_outfile=conftest.$ac_objext 8657echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8659_lt_compiler_boilerplate=`cat conftest.err` 8660$RM conftest* 8661 8662ac_outfile=conftest.$ac_objext 8663echo "$lt_simple_link_test_code" >conftest.$ac_ext 8664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8665_lt_linker_boilerplate=`cat conftest.err` 8666$RM -r conftest* 8667 8668 8669## CAVEAT EMPTOR: 8670## There is no encapsulation within the following macros, do not change 8671## the running order or otherwise move them around unless you know exactly 8672## what you are doing... 8673if test -n "$compiler"; then 8674 8675lt_prog_compiler_no_builtin_flag= 8676 8677if test "$GCC" = yes; then 8678 case $cc_basename in 8679 nvcc*) 8680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8681 *) 8682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8683 esac 8684 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8686$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8687if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 lt_cv_prog_compiler_rtti_exceptions=no 8691 ac_outfile=conftest.$ac_objext 8692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8693 lt_compiler_flag="-fno-rtti -fno-exceptions" 8694 # Insert the option either (1) after the last *FLAGS variable, or 8695 # (2) before a word containing "conftest.", or (3) at the end. 8696 # Note that $ac_compile itself does not contain backslashes and begins 8697 # with a dollar sign (not a hyphen), so the echo should work correctly. 8698 # The option is referenced via a variable to avoid confusing sed. 8699 lt_compile=`echo "$ac_compile" | $SED \ 8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8702 -e 's:$: $lt_compiler_flag:'` 8703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8704 (eval "$lt_compile" 2>conftest.err) 8705 ac_status=$? 8706 cat conftest.err >&5 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 if (exit $ac_status) && test -s "$ac_outfile"; then 8709 # The compiler can only warn and ignore the option if not recognized 8710 # So say no if there are warnings other than the usual output. 8711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8714 lt_cv_prog_compiler_rtti_exceptions=yes 8715 fi 8716 fi 8717 $RM conftest* 8718 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8721$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8722 8723if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8725else 8726 : 8727fi 8728 8729fi 8730 8731 8732 8733 8734 8735 8736 lt_prog_compiler_wl= 8737lt_prog_compiler_pic= 8738lt_prog_compiler_static= 8739 8740 8741 if test "$GCC" = yes; then 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_static='-static' 8744 8745 case $host_os in 8746 aix*) 8747 # All AIX code is PIC. 8748 if test "$host_cpu" = ia64; then 8749 # AIX 5 now supports IA64 processor 8750 lt_prog_compiler_static='-Bstatic' 8751 fi 8752 ;; 8753 8754 amigaos*) 8755 case $host_cpu in 8756 powerpc) 8757 # see comment about AmigaOS4 .so support 8758 lt_prog_compiler_pic='-fPIC' 8759 ;; 8760 m68k) 8761 # FIXME: we need at least 68020 code to build shared libraries, but 8762 # adding the `-m68020' flag to GCC prevents building anything better, 8763 # like `-m68040'. 8764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8765 ;; 8766 esac 8767 ;; 8768 8769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8770 # PIC is the default for these OSes. 8771 ;; 8772 8773 mingw* | cygwin* | pw32* | os2* | cegcc*) 8774 # This hack is so that the source file can tell whether it is being 8775 # built for inclusion in a dll (and should export symbols for example). 8776 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8777 # (--disable-auto-import) libraries 8778 lt_prog_compiler_pic='-DDLL_EXPORT' 8779 ;; 8780 8781 darwin* | rhapsody*) 8782 # PIC is the default on this platform 8783 # Common symbols not allowed in MH_DYLIB files 8784 lt_prog_compiler_pic='-fno-common' 8785 ;; 8786 8787 haiku*) 8788 # PIC is the default for Haiku. 8789 # The "-static" flag exists, but is broken. 8790 lt_prog_compiler_static= 8791 ;; 8792 8793 hpux*) 8794 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8795 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8796 # sets the default TLS model and affects inlining. 8797 case $host_cpu in 8798 hppa*64*) 8799 # +Z the default 8800 ;; 8801 *) 8802 lt_prog_compiler_pic='-fPIC' 8803 ;; 8804 esac 8805 ;; 8806 8807 interix[3-9]*) 8808 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8809 # Instead, we relocate shared libraries at runtime. 8810 ;; 8811 8812 msdosdjgpp*) 8813 # Just because we use GCC doesn't mean we suddenly get shared libraries 8814 # on systems that don't support them. 8815 lt_prog_compiler_can_build_shared=no 8816 enable_shared=no 8817 ;; 8818 8819 *nto* | *qnx*) 8820 # QNX uses GNU C++, but need to define -shared option too, otherwise 8821 # it will coredump. 8822 lt_prog_compiler_pic='-fPIC -shared' 8823 ;; 8824 8825 sysv4*MP*) 8826 if test -d /usr/nec; then 8827 lt_prog_compiler_pic=-Kconform_pic 8828 fi 8829 ;; 8830 8831 *) 8832 lt_prog_compiler_pic='-fPIC' 8833 ;; 8834 esac 8835 8836 case $cc_basename in 8837 nvcc*) # Cuda Compiler Driver 2.2 8838 lt_prog_compiler_wl='-Xlinker ' 8839 if test -n "$lt_prog_compiler_pic"; then 8840 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8841 fi 8842 ;; 8843 esac 8844 else 8845 # PORTME Check for flag to pass linker flags through the system compiler. 8846 case $host_os in 8847 aix*) 8848 lt_prog_compiler_wl='-Wl,' 8849 if test "$host_cpu" = ia64; then 8850 # AIX 5 now supports IA64 processor 8851 lt_prog_compiler_static='-Bstatic' 8852 else 8853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8854 fi 8855 ;; 8856 8857 mingw* | cygwin* | pw32* | os2* | cegcc*) 8858 # This hack is so that the source file can tell whether it is being 8859 # built for inclusion in a dll (and should export symbols for example). 8860 lt_prog_compiler_pic='-DDLL_EXPORT' 8861 ;; 8862 8863 hpux9* | hpux10* | hpux11*) 8864 lt_prog_compiler_wl='-Wl,' 8865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8866 # not for PA HP-UX. 8867 case $host_cpu in 8868 hppa*64*|ia64*) 8869 # +Z the default 8870 ;; 8871 *) 8872 lt_prog_compiler_pic='+Z' 8873 ;; 8874 esac 8875 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8876 lt_prog_compiler_static='${wl}-a ${wl}archive' 8877 ;; 8878 8879 irix5* | irix6* | nonstopux*) 8880 lt_prog_compiler_wl='-Wl,' 8881 # PIC (with -KPIC) is the default. 8882 lt_prog_compiler_static='-non_shared' 8883 ;; 8884 8885 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8886 case $cc_basename in 8887 # old Intel for x86_64 which still supported -KPIC. 8888 ecc*) 8889 lt_prog_compiler_wl='-Wl,' 8890 lt_prog_compiler_pic='-KPIC' 8891 lt_prog_compiler_static='-static' 8892 ;; 8893 # icc used to be incompatible with GCC. 8894 # ICC 10 doesn't accept -KPIC any more. 8895 icc* | ifort*) 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_pic='-fPIC' 8898 lt_prog_compiler_static='-static' 8899 ;; 8900 # Lahey Fortran 8.1. 8901 lf95*) 8902 lt_prog_compiler_wl='-Wl,' 8903 lt_prog_compiler_pic='--shared' 8904 lt_prog_compiler_static='--static' 8905 ;; 8906 nagfor*) 8907 # NAG Fortran compiler 8908 lt_prog_compiler_wl='-Wl,-Wl,,' 8909 lt_prog_compiler_pic='-PIC' 8910 lt_prog_compiler_static='-Bstatic' 8911 ;; 8912 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8913 # Portland Group compilers (*not* the Pentium gcc compiler, 8914 # which looks to be a dead project) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-fpic' 8917 lt_prog_compiler_static='-Bstatic' 8918 ;; 8919 ccc*) 8920 lt_prog_compiler_wl='-Wl,' 8921 # All Alpha code is PIC. 8922 lt_prog_compiler_static='-non_shared' 8923 ;; 8924 xl* | bgxl* | bgf* | mpixl*) 8925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8926 lt_prog_compiler_wl='-Wl,' 8927 lt_prog_compiler_pic='-qpic' 8928 lt_prog_compiler_static='-qstaticlink' 8929 ;; 8930 *) 8931 case `$CC -V 2>&1 | sed 5q` in 8932 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8933 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8934 lt_prog_compiler_pic='-KPIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 lt_prog_compiler_wl='' 8937 ;; 8938 *Sun\ F* | *Sun*Fortran*) 8939 lt_prog_compiler_pic='-KPIC' 8940 lt_prog_compiler_static='-Bstatic' 8941 lt_prog_compiler_wl='-Qoption ld ' 8942 ;; 8943 *Sun\ C*) 8944 # Sun C 5.9 8945 lt_prog_compiler_pic='-KPIC' 8946 lt_prog_compiler_static='-Bstatic' 8947 lt_prog_compiler_wl='-Wl,' 8948 ;; 8949 *Intel*\ [CF]*Compiler*) 8950 lt_prog_compiler_wl='-Wl,' 8951 lt_prog_compiler_pic='-fPIC' 8952 lt_prog_compiler_static='-static' 8953 ;; 8954 *Portland\ Group*) 8955 lt_prog_compiler_wl='-Wl,' 8956 lt_prog_compiler_pic='-fpic' 8957 lt_prog_compiler_static='-Bstatic' 8958 ;; 8959 esac 8960 ;; 8961 esac 8962 ;; 8963 8964 newsos6) 8965 lt_prog_compiler_pic='-KPIC' 8966 lt_prog_compiler_static='-Bstatic' 8967 ;; 8968 8969 *nto* | *qnx*) 8970 # QNX uses GNU C++, but need to define -shared option too, otherwise 8971 # it will coredump. 8972 lt_prog_compiler_pic='-fPIC -shared' 8973 ;; 8974 8975 osf3* | osf4* | osf5*) 8976 lt_prog_compiler_wl='-Wl,' 8977 # All OSF/1 code is PIC. 8978 lt_prog_compiler_static='-non_shared' 8979 ;; 8980 8981 rdos*) 8982 lt_prog_compiler_static='-non_shared' 8983 ;; 8984 8985 solaris*) 8986 lt_prog_compiler_pic='-KPIC' 8987 lt_prog_compiler_static='-Bstatic' 8988 case $cc_basename in 8989 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8990 lt_prog_compiler_wl='-Qoption ld ';; 8991 *) 8992 lt_prog_compiler_wl='-Wl,';; 8993 esac 8994 ;; 8995 8996 sunos4*) 8997 lt_prog_compiler_wl='-Qoption ld ' 8998 lt_prog_compiler_pic='-PIC' 8999 lt_prog_compiler_static='-Bstatic' 9000 ;; 9001 9002 sysv4 | sysv4.2uw2* | sysv4.3*) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='-KPIC' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 9008 sysv4*MP*) 9009 if test -d /usr/nec ;then 9010 lt_prog_compiler_pic='-Kconform_pic' 9011 lt_prog_compiler_static='-Bstatic' 9012 fi 9013 ;; 9014 9015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9016 lt_prog_compiler_wl='-Wl,' 9017 lt_prog_compiler_pic='-KPIC' 9018 lt_prog_compiler_static='-Bstatic' 9019 ;; 9020 9021 unicos*) 9022 lt_prog_compiler_wl='-Wl,' 9023 lt_prog_compiler_can_build_shared=no 9024 ;; 9025 9026 uts4*) 9027 lt_prog_compiler_pic='-pic' 9028 lt_prog_compiler_static='-Bstatic' 9029 ;; 9030 9031 *) 9032 lt_prog_compiler_can_build_shared=no 9033 ;; 9034 esac 9035 fi 9036 9037case $host_os in 9038 # For platforms which do not support PIC, -DPIC is meaningless: 9039 *djgpp*) 9040 lt_prog_compiler_pic= 9041 ;; 9042 *) 9043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9044 ;; 9045esac 9046 9047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9048$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9049if ${lt_cv_prog_compiler_pic+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9053fi 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9055$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9056lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9057 9058# 9059# Check to make sure the PIC flag actually works. 9060# 9061if test -n "$lt_prog_compiler_pic"; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9063$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9064if ${lt_cv_prog_compiler_pic_works+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 lt_cv_prog_compiler_pic_works=no 9068 ac_outfile=conftest.$ac_objext 9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9071 # Insert the option either (1) after the last *FLAGS variable, or 9072 # (2) before a word containing "conftest.", or (3) at the end. 9073 # Note that $ac_compile itself does not contain backslashes and begins 9074 # with a dollar sign (not a hyphen), so the echo should work correctly. 9075 # The option is referenced via a variable to avoid confusing sed. 9076 lt_compile=`echo "$ac_compile" | $SED \ 9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9079 -e 's:$: $lt_compiler_flag:'` 9080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9081 (eval "$lt_compile" 2>conftest.err) 9082 ac_status=$? 9083 cat conftest.err >&5 9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9085 if (exit $ac_status) && test -s "$ac_outfile"; then 9086 # The compiler can only warn and ignore the option if not recognized 9087 # So say no if there are warnings other than the usual output. 9088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9091 lt_cv_prog_compiler_pic_works=yes 9092 fi 9093 fi 9094 $RM conftest* 9095 9096fi 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9098$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9099 9100if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9101 case $lt_prog_compiler_pic in 9102 "" | " "*) ;; 9103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9104 esac 9105else 9106 lt_prog_compiler_pic= 9107 lt_prog_compiler_can_build_shared=no 9108fi 9109 9110fi 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122# 9123# Check to make sure the static flag actually works. 9124# 9125wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9127$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9128if ${lt_cv_prog_compiler_static_works+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 lt_cv_prog_compiler_static_works=no 9132 save_LDFLAGS="$LDFLAGS" 9133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9134 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9136 # The linker can only warn and ignore the option if not recognized 9137 # So say no if there are warnings 9138 if test -s conftest.err; then 9139 # Append any errors to the config.log. 9140 cat conftest.err 1>&5 9141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9143 if diff conftest.exp conftest.er2 >/dev/null; then 9144 lt_cv_prog_compiler_static_works=yes 9145 fi 9146 else 9147 lt_cv_prog_compiler_static_works=yes 9148 fi 9149 fi 9150 $RM -r conftest* 9151 LDFLAGS="$save_LDFLAGS" 9152 9153fi 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9155$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9156 9157if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9158 : 9159else 9160 lt_prog_compiler_static= 9161fi 9162 9163 9164 9165 9166 9167 9168 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9171if ${lt_cv_prog_compiler_c_o+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173else 9174 lt_cv_prog_compiler_c_o=no 9175 $RM -r conftest 2>/dev/null 9176 mkdir conftest 9177 cd conftest 9178 mkdir out 9179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9180 9181 lt_compiler_flag="-o out/conftest2.$ac_objext" 9182 # Insert the option either (1) after the last *FLAGS variable, or 9183 # (2) before a word containing "conftest.", or (3) at the end. 9184 # Note that $ac_compile itself does not contain backslashes and begins 9185 # with a dollar sign (not a hyphen), so the echo should work correctly. 9186 lt_compile=`echo "$ac_compile" | $SED \ 9187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9189 -e 's:$: $lt_compiler_flag:'` 9190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9191 (eval "$lt_compile" 2>out/conftest.err) 9192 ac_status=$? 9193 cat out/conftest.err >&5 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9195 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9196 then 9197 # The compiler can only warn and ignore the option if not recognized 9198 # So say no if there are warnings 9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9202 lt_cv_prog_compiler_c_o=yes 9203 fi 9204 fi 9205 chmod u+w . 2>&5 9206 $RM conftest* 9207 # SGI C++ compiler will create directory out/ii_files/ for 9208 # template instantiation 9209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9210 $RM out/* && rmdir out 9211 cd .. 9212 $RM -r conftest 9213 $RM conftest* 9214 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9217$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9218 9219 9220 9221 9222 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9226if ${lt_cv_prog_compiler_c_o+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 lt_cv_prog_compiler_c_o=no 9230 $RM -r conftest 2>/dev/null 9231 mkdir conftest 9232 cd conftest 9233 mkdir out 9234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9235 9236 lt_compiler_flag="-o out/conftest2.$ac_objext" 9237 # Insert the option either (1) after the last *FLAGS variable, or 9238 # (2) before a word containing "conftest.", or (3) at the end. 9239 # Note that $ac_compile itself does not contain backslashes and begins 9240 # with a dollar sign (not a hyphen), so the echo should work correctly. 9241 lt_compile=`echo "$ac_compile" | $SED \ 9242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9244 -e 's:$: $lt_compiler_flag:'` 9245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9246 (eval "$lt_compile" 2>out/conftest.err) 9247 ac_status=$? 9248 cat out/conftest.err >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9251 then 9252 # The compiler can only warn and ignore the option if not recognized 9253 # So say no if there are warnings 9254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9257 lt_cv_prog_compiler_c_o=yes 9258 fi 9259 fi 9260 chmod u+w . 2>&5 9261 $RM conftest* 9262 # SGI C++ compiler will create directory out/ii_files/ for 9263 # template instantiation 9264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9265 $RM out/* && rmdir out 9266 cd .. 9267 $RM -r conftest 9268 $RM conftest* 9269 9270fi 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9272$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9273 9274 9275 9276 9277hard_links="nottested" 9278if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9279 # do not overwrite the value of need_locks provided by the user 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9281$as_echo_n "checking if we can lock with hard links... " >&6; } 9282 hard_links=yes 9283 $RM conftest* 9284 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9285 touch conftest.a 9286 ln conftest.a conftest.b 2>&5 || hard_links=no 9287 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9289$as_echo "$hard_links" >&6; } 9290 if test "$hard_links" = no; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9292$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9293 need_locks=warn 9294 fi 9295else 9296 need_locks=no 9297fi 9298 9299 9300 9301 9302 9303 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9305$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9306 9307 runpath_var= 9308 allow_undefined_flag= 9309 always_export_symbols=no 9310 archive_cmds= 9311 archive_expsym_cmds= 9312 compiler_needs_object=no 9313 enable_shared_with_static_runtimes=no 9314 export_dynamic_flag_spec= 9315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9316 hardcode_automatic=no 9317 hardcode_direct=no 9318 hardcode_direct_absolute=no 9319 hardcode_libdir_flag_spec= 9320 hardcode_libdir_separator= 9321 hardcode_minus_L=no 9322 hardcode_shlibpath_var=unsupported 9323 inherit_rpath=no 9324 link_all_deplibs=unknown 9325 module_cmds= 9326 module_expsym_cmds= 9327 old_archive_from_new_cmds= 9328 old_archive_from_expsyms_cmds= 9329 thread_safe_flag_spec= 9330 whole_archive_flag_spec= 9331 # include_expsyms should be a list of space-separated symbols to be *always* 9332 # included in the symbol list 9333 include_expsyms= 9334 # exclude_expsyms can be an extended regexp of symbols to exclude 9335 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9336 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9337 # as well as any symbol that contains `d'. 9338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9340 # platforms (ab)use it in PIC code, but their linkers get confused if 9341 # the symbol is explicitly referenced. Since portable code cannot 9342 # rely on this symbol name, it's probably fine to never include it in 9343 # preloaded symbol tables. 9344 # Exclude shared library initialization/finalization symbols. 9345 extract_expsyms_cmds= 9346 9347 case $host_os in 9348 cygwin* | mingw* | pw32* | cegcc*) 9349 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9350 # When not using gcc, we currently assume that we are using 9351 # Microsoft Visual C++. 9352 if test "$GCC" != yes; then 9353 with_gnu_ld=no 9354 fi 9355 ;; 9356 interix*) 9357 # we just hope/assume this is gcc and not c89 (= MSVC++) 9358 with_gnu_ld=yes 9359 ;; 9360 openbsd*) 9361 with_gnu_ld=no 9362 ;; 9363 esac 9364 9365 ld_shlibs=yes 9366 9367 # On some targets, GNU ld is compatible enough with the native linker 9368 # that we're better off using the native interface for both. 9369 lt_use_gnu_ld_interface=no 9370 if test "$with_gnu_ld" = yes; then 9371 case $host_os in 9372 aix*) 9373 # The AIX port of GNU ld has always aspired to compatibility 9374 # with the native linker. However, as the warning in the GNU ld 9375 # block says, versions before 2.19.5* couldn't really create working 9376 # shared libraries, regardless of the interface used. 9377 case `$LD -v 2>&1` in 9378 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9379 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9380 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9381 *) 9382 lt_use_gnu_ld_interface=yes 9383 ;; 9384 esac 9385 ;; 9386 *) 9387 lt_use_gnu_ld_interface=yes 9388 ;; 9389 esac 9390 fi 9391 9392 if test "$lt_use_gnu_ld_interface" = yes; then 9393 # If archive_cmds runs LD, not CC, wlarc should be empty 9394 wlarc='${wl}' 9395 9396 # Set some defaults for GNU ld with shared library support. These 9397 # are reset later if shared libraries are not supported. Putting them 9398 # here allows them to be overridden if necessary. 9399 runpath_var=LD_RUN_PATH 9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9401 export_dynamic_flag_spec='${wl}--export-dynamic' 9402 # ancient GNU ld didn't support --whole-archive et. al. 9403 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9404 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9405 else 9406 whole_archive_flag_spec= 9407 fi 9408 supports_anon_versioning=no 9409 case `$LD -v 2>&1` in 9410 *GNU\ gold*) supports_anon_versioning=yes ;; 9411 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9412 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9413 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9414 *\ 2.11.*) ;; # other 2.11 versions 9415 *) supports_anon_versioning=yes ;; 9416 esac 9417 9418 # See if GNU ld supports shared libraries. 9419 case $host_os in 9420 aix[3-9]*) 9421 # On AIX/PPC, the GNU linker is very broken 9422 if test "$host_cpu" != ia64; then 9423 ld_shlibs=no 9424 cat <<_LT_EOF 1>&2 9425 9426*** Warning: the GNU linker, at least up to release 2.19, is reported 9427*** to be unable to reliably create shared libraries on AIX. 9428*** Therefore, libtool is disabling shared libraries support. If you 9429*** really care for shared libraries, you may want to install binutils 9430*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9431*** You will then need to restart the configuration process. 9432 9433_LT_EOF 9434 fi 9435 ;; 9436 9437 amigaos*) 9438 case $host_cpu in 9439 powerpc) 9440 # see comment about AmigaOS4 .so support 9441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9442 archive_expsym_cmds='' 9443 ;; 9444 m68k) 9445 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)' 9446 hardcode_libdir_flag_spec='-L$libdir' 9447 hardcode_minus_L=yes 9448 ;; 9449 esac 9450 ;; 9451 9452 beos*) 9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9454 allow_undefined_flag=unsupported 9455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9456 # support --undefined. This deserves some investigation. FIXME 9457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9458 else 9459 ld_shlibs=no 9460 fi 9461 ;; 9462 9463 cygwin* | mingw* | pw32* | cegcc*) 9464 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9465 # as there is no search path for DLLs. 9466 hardcode_libdir_flag_spec='-L$libdir' 9467 export_dynamic_flag_spec='${wl}--export-all-symbols' 9468 allow_undefined_flag=unsupported 9469 always_export_symbols=no 9470 enable_shared_with_static_runtimes=yes 9471 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' 9472 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9473 9474 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9476 # If the export-symbols file already is a .def file (1st line 9477 # is EXPORTS), use it as is; otherwise, prepend... 9478 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9479 cp $export_symbols $output_objdir/$soname.def; 9480 else 9481 echo EXPORTS > $output_objdir/$soname.def; 9482 cat $export_symbols >> $output_objdir/$soname.def; 9483 fi~ 9484 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9485 else 9486 ld_shlibs=no 9487 fi 9488 ;; 9489 9490 haiku*) 9491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9492 link_all_deplibs=yes 9493 ;; 9494 9495 interix[3-9]*) 9496 hardcode_direct=no 9497 hardcode_shlibpath_var=no 9498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9499 export_dynamic_flag_spec='${wl}-E' 9500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9501 # Instead, shared libraries are loaded at an image base (0x10000000 by 9502 # default) and relocated if they conflict, which is a slow very memory 9503 # consuming and fragmenting process. To avoid this, we pick a random, 9504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9505 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9507 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' 9508 ;; 9509 9510 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9511 tmp_diet=no 9512 if test "$host_os" = linux-dietlibc; then 9513 case $cc_basename in 9514 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9515 esac 9516 fi 9517 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9518 && test "$tmp_diet" = no 9519 then 9520 tmp_addflag=' $pic_flag' 9521 tmp_sharedflag='-shared' 9522 case $cc_basename,$host_cpu in 9523 pgcc*) # Portland Group C compiler 9524 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' 9525 tmp_addflag=' $pic_flag' 9526 ;; 9527 pgf77* | pgf90* | pgf95* | pgfortran*) 9528 # Portland Group f77 and f90 compilers 9529 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' 9530 tmp_addflag=' $pic_flag -Mnomain' ;; 9531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9532 tmp_addflag=' -i_dynamic' ;; 9533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9534 tmp_addflag=' -i_dynamic -nofor_main' ;; 9535 ifc* | ifort*) # Intel Fortran compiler 9536 tmp_addflag=' -nofor_main' ;; 9537 lf95*) # Lahey Fortran 8.1 9538 whole_archive_flag_spec= 9539 tmp_sharedflag='--shared' ;; 9540 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9541 tmp_sharedflag='-qmkshrobj' 9542 tmp_addflag= ;; 9543 nvcc*) # Cuda Compiler Driver 2.2 9544 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' 9545 compiler_needs_object=yes 9546 ;; 9547 esac 9548 case `$CC -V 2>&1 | sed 5q` in 9549 *Sun\ C*) # Sun C 5.9 9550 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' 9551 compiler_needs_object=yes 9552 tmp_sharedflag='-G' ;; 9553 *Sun\ F*) # Sun Fortran 8.3 9554 tmp_sharedflag='-G' ;; 9555 esac 9556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9557 9558 if test "x$supports_anon_versioning" = xyes; 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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9563 fi 9564 9565 case $cc_basename in 9566 xlf* | bgf* | bgxlf* | mpixlf*) 9567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9570 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9571 if test "x$supports_anon_versioning" = xyes; then 9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9574 echo "local: *; };" >> $output_objdir/$libname.ver~ 9575 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9576 fi 9577 ;; 9578 esac 9579 else 9580 ld_shlibs=no 9581 fi 9582 ;; 9583 9584 netbsd*) 9585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9586 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9587 wlarc= 9588 else 9589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9590 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9591 fi 9592 ;; 9593 9594 solaris*) 9595 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9596 ld_shlibs=no 9597 cat <<_LT_EOF 1>&2 9598 9599*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9600*** create shared libraries on Solaris systems. Therefore, libtool 9601*** is disabling shared libraries support. We urge you to upgrade GNU 9602*** binutils to release 2.9.1 or newer. Another option is to modify 9603*** your PATH or compiler configuration so that the native linker is 9604*** used, and then restart. 9605 9606_LT_EOF 9607 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9609 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9610 else 9611 ld_shlibs=no 9612 fi 9613 ;; 9614 9615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9616 case `$LD -v 2>&1` in 9617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9618 ld_shlibs=no 9619 cat <<_LT_EOF 1>&2 9620 9621*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9622*** reliably create shared libraries on SCO systems. Therefore, libtool 9623*** is disabling shared libraries support. We urge you to upgrade GNU 9624*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9625*** your PATH or compiler configuration so that the native linker is 9626*** used, and then restart. 9627 9628_LT_EOF 9629 ;; 9630 *) 9631 # For security reasons, it is highly recommended that you always 9632 # use absolute paths for naming shared libraries, and exclude the 9633 # DT_RUNPATH tag from executables and libraries. But doing so 9634 # requires that you compile everything twice, which is a pain. 9635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9639 else 9640 ld_shlibs=no 9641 fi 9642 ;; 9643 esac 9644 ;; 9645 9646 sunos4*) 9647 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9648 wlarc= 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 ;; 9652 9653 *) 9654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9657 else 9658 ld_shlibs=no 9659 fi 9660 ;; 9661 esac 9662 9663 if test "$ld_shlibs" = no; then 9664 runpath_var= 9665 hardcode_libdir_flag_spec= 9666 export_dynamic_flag_spec= 9667 whole_archive_flag_spec= 9668 fi 9669 else 9670 # PORTME fill in a description of your system's linker (not GNU ld) 9671 case $host_os in 9672 aix3*) 9673 allow_undefined_flag=unsupported 9674 always_export_symbols=yes 9675 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' 9676 # Note: this linker hardcodes the directories in LIBPATH if there 9677 # are no directories specified by -L. 9678 hardcode_minus_L=yes 9679 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9680 # Neither direct hardcoding nor static linking is supported with a 9681 # broken collect2. 9682 hardcode_direct=unsupported 9683 fi 9684 ;; 9685 9686 aix[4-9]*) 9687 if test "$host_cpu" = ia64; then 9688 # On IA64, the linker does run time linking by default, so we don't 9689 # have to do anything special. 9690 aix_use_runtimelinking=no 9691 exp_sym_flag='-Bexport' 9692 no_entry_flag="" 9693 else 9694 # If we're using GNU nm, then we don't want the "-C" option. 9695 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9696 # Also, AIX nm treats weak defined symbols like other global 9697 # defined symbols, whereas GNU nm marks them as "W". 9698 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9699 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9700 else 9701 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9702 fi 9703 aix_use_runtimelinking=no 9704 9705 # Test if we are trying to use run time linking or normal 9706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9707 # need to do runtime linking. 9708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9709 for ld_flag in $LDFLAGS; do 9710 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9711 aix_use_runtimelinking=yes 9712 break 9713 fi 9714 done 9715 ;; 9716 esac 9717 9718 exp_sym_flag='-bexport' 9719 no_entry_flag='-bnoentry' 9720 fi 9721 9722 # When large executables or shared objects are built, AIX ld can 9723 # have problems creating the table of contents. If linking a library 9724 # or program results in "error TOC overflow" add -mminimal-toc to 9725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9727 9728 archive_cmds='' 9729 hardcode_direct=yes 9730 hardcode_direct_absolute=yes 9731 hardcode_libdir_separator=':' 9732 link_all_deplibs=yes 9733 file_list_spec='${wl}-f,' 9734 9735 if test "$GCC" = yes; then 9736 case $host_os in aix4.[012]|aix4.[012].*) 9737 # We only want to do this on AIX 4.2 and lower, the check 9738 # below for broken collect2 doesn't work under 4.3+ 9739 collect2name=`${CC} -print-prog-name=collect2` 9740 if test -f "$collect2name" && 9741 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9742 then 9743 # We have reworked collect2 9744 : 9745 else 9746 # We have old collect2 9747 hardcode_direct=unsupported 9748 # It fails to find uninstalled libraries when the uninstalled 9749 # path is not listed in the libpath. Setting hardcode_minus_L 9750 # to unsupported forces relinking 9751 hardcode_minus_L=yes 9752 hardcode_libdir_flag_spec='-L$libdir' 9753 hardcode_libdir_separator= 9754 fi 9755 ;; 9756 esac 9757 shared_flag='-shared' 9758 if test "$aix_use_runtimelinking" = yes; then 9759 shared_flag="$shared_flag "'${wl}-G' 9760 fi 9761 else 9762 # not using gcc 9763 if test "$host_cpu" = ia64; then 9764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9765 # chokes on -Wl,-G. The following line is correct: 9766 shared_flag='-G' 9767 else 9768 if test "$aix_use_runtimelinking" = yes; then 9769 shared_flag='${wl}-G' 9770 else 9771 shared_flag='${wl}-bM:SRE' 9772 fi 9773 fi 9774 fi 9775 9776 export_dynamic_flag_spec='${wl}-bexpall' 9777 # It seems that -bexpall does not export symbols beginning with 9778 # underscore (_), so it is better to generate a list of symbols to export. 9779 always_export_symbols=yes 9780 if test "$aix_use_runtimelinking" = yes; then 9781 # Warning - without using the other runtime loading flags (-brtl), 9782 # -berok will link without error, but may produce a broken library. 9783 allow_undefined_flag='-berok' 9784 # Determine the default libpath from the value encoded in an 9785 # empty executable. 9786 if test "${lt_cv_aix_libpath+set}" = set; then 9787 aix_libpath=$lt_cv_aix_libpath 9788else 9789 if ${lt_cv_aix_libpath_+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794 9795int 9796main () 9797{ 9798 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803if ac_fn_c_try_link "$LINENO"; then : 9804 9805 lt_aix_libpath_sed=' 9806 /Import File Strings/,/^$/ { 9807 /^0/ { 9808 s/^0 *\([^ ]*\) *$/\1/ 9809 p 9810 } 9811 }' 9812 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9813 # Check for a 64-bit object if we didn't find anything. 9814 if test -z "$lt_cv_aix_libpath_"; then 9815 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9816 fi 9817fi 9818rm -f core conftest.err conftest.$ac_objext \ 9819 conftest$ac_exeext conftest.$ac_ext 9820 if test -z "$lt_cv_aix_libpath_"; then 9821 lt_cv_aix_libpath_="/usr/lib:/lib" 9822 fi 9823 9824fi 9825 9826 aix_libpath=$lt_cv_aix_libpath_ 9827fi 9828 9829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9830 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9831 else 9832 if test "$host_cpu" = ia64; then 9833 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9834 allow_undefined_flag="-z nodefs" 9835 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" 9836 else 9837 # Determine the default libpath from the value encoded in an 9838 # empty executable. 9839 if test "${lt_cv_aix_libpath+set}" = set; then 9840 aix_libpath=$lt_cv_aix_libpath 9841else 9842 if ${lt_cv_aix_libpath_+:} false; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847 9848int 9849main () 9850{ 9851 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856if ac_fn_c_try_link "$LINENO"; then : 9857 9858 lt_aix_libpath_sed=' 9859 /Import File Strings/,/^$/ { 9860 /^0/ { 9861 s/^0 *\([^ ]*\) *$/\1/ 9862 p 9863 } 9864 }' 9865 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9866 # Check for a 64-bit object if we didn't find anything. 9867 if test -z "$lt_cv_aix_libpath_"; then 9868 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9869 fi 9870fi 9871rm -f core conftest.err conftest.$ac_objext \ 9872 conftest$ac_exeext conftest.$ac_ext 9873 if test -z "$lt_cv_aix_libpath_"; then 9874 lt_cv_aix_libpath_="/usr/lib:/lib" 9875 fi 9876 9877fi 9878 9879 aix_libpath=$lt_cv_aix_libpath_ 9880fi 9881 9882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9883 # Warning - without using the other run time loading flags, 9884 # -berok will link without error, but may produce a broken library. 9885 no_undefined_flag=' ${wl}-bernotok' 9886 allow_undefined_flag=' ${wl}-berok' 9887 if test "$with_gnu_ld" = yes; then 9888 # We only use this code for GNU lds that support --whole-archive. 9889 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9890 else 9891 # Exported symbols can be pulled into shared objects from archives 9892 whole_archive_flag_spec='$convenience' 9893 fi 9894 archive_cmds_need_lc=yes 9895 # This is similar to how AIX traditionally builds its shared libraries. 9896 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9897 fi 9898 fi 9899 ;; 9900 9901 amigaos*) 9902 case $host_cpu in 9903 powerpc) 9904 # see comment about AmigaOS4 .so support 9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9906 archive_expsym_cmds='' 9907 ;; 9908 m68k) 9909 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)' 9910 hardcode_libdir_flag_spec='-L$libdir' 9911 hardcode_minus_L=yes 9912 ;; 9913 esac 9914 ;; 9915 9916 bsdi[45]*) 9917 export_dynamic_flag_spec=-rdynamic 9918 ;; 9919 9920 cygwin* | mingw* | pw32* | cegcc*) 9921 # When not using gcc, we currently assume that we are using 9922 # Microsoft Visual C++. 9923 # hardcode_libdir_flag_spec is actually meaningless, as there is 9924 # no search path for DLLs. 9925 case $cc_basename in 9926 cl*) 9927 # Native MSVC 9928 hardcode_libdir_flag_spec=' ' 9929 allow_undefined_flag=unsupported 9930 always_export_symbols=yes 9931 file_list_spec='@' 9932 # Tell ltmain to make .lib files, not .a files. 9933 libext=lib 9934 # Tell ltmain to make .dll files, not .so files. 9935 shrext_cmds=".dll" 9936 # FIXME: Setting linknames here is a bad hack. 9937 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9939 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9940 else 9941 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9942 fi~ 9943 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9944 linknames=' 9945 # The linker will not automatically build a static lib if we build a DLL. 9946 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9947 enable_shared_with_static_runtimes=yes 9948 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9950 # Don't use ranlib 9951 old_postinstall_cmds='chmod 644 $oldlib' 9952 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9953 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9954 case $lt_outputfile in 9955 *.exe|*.EXE) ;; 9956 *) 9957 lt_outputfile="$lt_outputfile.exe" 9958 lt_tool_outputfile="$lt_tool_outputfile.exe" 9959 ;; 9960 esac~ 9961 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9962 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9963 $RM "$lt_outputfile.manifest"; 9964 fi' 9965 ;; 9966 *) 9967 # Assume MSVC wrapper 9968 hardcode_libdir_flag_spec=' ' 9969 allow_undefined_flag=unsupported 9970 # Tell ltmain to make .lib files, not .a files. 9971 libext=lib 9972 # Tell ltmain to make .dll files, not .so files. 9973 shrext_cmds=".dll" 9974 # FIXME: Setting linknames here is a bad hack. 9975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9976 # The linker will automatically build a .lib file if we build a DLL. 9977 old_archive_from_new_cmds='true' 9978 # FIXME: Should let the user specify the lib program. 9979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9980 enable_shared_with_static_runtimes=yes 9981 ;; 9982 esac 9983 ;; 9984 9985 darwin* | rhapsody*) 9986 9987 9988 archive_cmds_need_lc=no 9989 hardcode_direct=no 9990 hardcode_automatic=yes 9991 hardcode_shlibpath_var=unsupported 9992 if test "$lt_cv_ld_force_load" = "yes"; then 9993 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\"`' 9994 9995 else 9996 whole_archive_flag_spec='' 9997 fi 9998 link_all_deplibs=yes 9999 allow_undefined_flag="$_lt_dar_allow_undefined" 10000 case $cc_basename in 10001 ifort*) _lt_dar_can_shared=yes ;; 10002 *) _lt_dar_can_shared=$GCC ;; 10003 esac 10004 if test "$_lt_dar_can_shared" = "yes"; then 10005 output_verbose_link_cmd=func_echo_all 10006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10008 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}" 10009 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}" 10010 10011 else 10012 ld_shlibs=no 10013 fi 10014 10015 ;; 10016 10017 dgux*) 10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10019 hardcode_libdir_flag_spec='-L$libdir' 10020 hardcode_shlibpath_var=no 10021 ;; 10022 10023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10024 # support. Future versions do this automatically, but an explicit c++rt0.o 10025 # does not break anything, and helps significantly (at the cost of a little 10026 # extra space). 10027 freebsd2.2*) 10028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10029 hardcode_libdir_flag_spec='-R$libdir' 10030 hardcode_direct=yes 10031 hardcode_shlibpath_var=no 10032 ;; 10033 10034 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10035 freebsd2.*) 10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10037 hardcode_direct=yes 10038 hardcode_minus_L=yes 10039 hardcode_shlibpath_var=no 10040 ;; 10041 10042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10043 freebsd* | dragonfly*) 10044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10045 hardcode_libdir_flag_spec='-R$libdir' 10046 hardcode_direct=yes 10047 hardcode_shlibpath_var=no 10048 ;; 10049 10050 hpux9*) 10051 if test "$GCC" = yes; then 10052 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10053 else 10054 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10055 fi 10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10057 hardcode_libdir_separator=: 10058 hardcode_direct=yes 10059 10060 # hardcode_minus_L: Not really in the search PATH, 10061 # but as the default location of the library. 10062 hardcode_minus_L=yes 10063 export_dynamic_flag_spec='${wl}-E' 10064 ;; 10065 10066 hpux10*) 10067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10068 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10069 else 10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10071 fi 10072 if test "$with_gnu_ld" = no; then 10073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10074 hardcode_libdir_separator=: 10075 hardcode_direct=yes 10076 hardcode_direct_absolute=yes 10077 export_dynamic_flag_spec='${wl}-E' 10078 # hardcode_minus_L: Not really in the search PATH, 10079 # but as the default location of the library. 10080 hardcode_minus_L=yes 10081 fi 10082 ;; 10083 10084 hpux11*) 10085 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10086 case $host_cpu in 10087 hppa*64*) 10088 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 ;; 10090 ia64*) 10091 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10092 ;; 10093 *) 10094 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10095 ;; 10096 esac 10097 else 10098 case $host_cpu in 10099 hppa*64*) 10100 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10101 ;; 10102 ia64*) 10103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10104 ;; 10105 *) 10106 10107 # Older versions of the 11.00 compiler do not understand -b yet 10108 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10110$as_echo_n "checking if $CC understands -b... " >&6; } 10111if ${lt_cv_prog_compiler__b+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 lt_cv_prog_compiler__b=no 10115 save_LDFLAGS="$LDFLAGS" 10116 LDFLAGS="$LDFLAGS -b" 10117 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10119 # The linker can only warn and ignore the option if not recognized 10120 # So say no if there are warnings 10121 if test -s conftest.err; then 10122 # Append any errors to the config.log. 10123 cat conftest.err 1>&5 10124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10126 if diff conftest.exp conftest.er2 >/dev/null; then 10127 lt_cv_prog_compiler__b=yes 10128 fi 10129 else 10130 lt_cv_prog_compiler__b=yes 10131 fi 10132 fi 10133 $RM -r conftest* 10134 LDFLAGS="$save_LDFLAGS" 10135 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10138$as_echo "$lt_cv_prog_compiler__b" >&6; } 10139 10140if test x"$lt_cv_prog_compiler__b" = xyes; then 10141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10142else 10143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10144fi 10145 10146 ;; 10147 esac 10148 fi 10149 if test "$with_gnu_ld" = no; then 10150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10151 hardcode_libdir_separator=: 10152 10153 case $host_cpu in 10154 hppa*64*|ia64*) 10155 hardcode_direct=no 10156 hardcode_shlibpath_var=no 10157 ;; 10158 *) 10159 hardcode_direct=yes 10160 hardcode_direct_absolute=yes 10161 export_dynamic_flag_spec='${wl}-E' 10162 10163 # hardcode_minus_L: Not really in the search PATH, 10164 # but as the default location of the library. 10165 hardcode_minus_L=yes 10166 ;; 10167 esac 10168 fi 10169 ;; 10170 10171 irix5* | irix6* | nonstopux*) 10172 if test "$GCC" = yes; then 10173 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' 10174 # Try to use the -exported_symbol ld option, if it does not 10175 # work, assume that -exports_file does not work either and 10176 # implicitly export all symbols. 10177 # This should be the same for all languages, so no per-tag cache variable. 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10179$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10180if ${lt_cv_irix_exported_symbol+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 save_LDFLAGS="$LDFLAGS" 10184 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int foo (void) { return 0; } 10188_ACEOF 10189if ac_fn_c_try_link "$LINENO"; then : 10190 lt_cv_irix_exported_symbol=yes 10191else 10192 lt_cv_irix_exported_symbol=no 10193fi 10194rm -f core conftest.err conftest.$ac_objext \ 10195 conftest$ac_exeext conftest.$ac_ext 10196 LDFLAGS="$save_LDFLAGS" 10197fi 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10199$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10200 if test "$lt_cv_irix_exported_symbol" = yes; then 10201 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' 10202 fi 10203 else 10204 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' 10205 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' 10206 fi 10207 archive_cmds_need_lc='no' 10208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10209 hardcode_libdir_separator=: 10210 inherit_rpath=yes 10211 link_all_deplibs=yes 10212 ;; 10213 10214 netbsd*) 10215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10217 else 10218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10219 fi 10220 hardcode_libdir_flag_spec='-R$libdir' 10221 hardcode_direct=yes 10222 hardcode_shlibpath_var=no 10223 ;; 10224 10225 newsos6) 10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10227 hardcode_direct=yes 10228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10229 hardcode_libdir_separator=: 10230 hardcode_shlibpath_var=no 10231 ;; 10232 10233 *nto* | *qnx*) 10234 ;; 10235 10236 openbsd*) 10237 if test -f /usr/libexec/ld.so; then 10238 hardcode_direct=yes 10239 hardcode_shlibpath_var=no 10240 hardcode_direct_absolute=yes 10241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10243 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10245 export_dynamic_flag_spec='${wl}-E' 10246 else 10247 case $host_os in 10248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10250 hardcode_libdir_flag_spec='-R$libdir' 10251 ;; 10252 *) 10253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10255 ;; 10256 esac 10257 fi 10258 else 10259 ld_shlibs=no 10260 fi 10261 ;; 10262 10263 os2*) 10264 hardcode_libdir_flag_spec='-L$libdir' 10265 hardcode_minus_L=yes 10266 allow_undefined_flag=unsupported 10267 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10268 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10269 ;; 10270 10271 osf3*) 10272 if test "$GCC" = yes; then 10273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10274 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' 10275 else 10276 allow_undefined_flag=' -expect_unresolved \*' 10277 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' 10278 fi 10279 archive_cmds_need_lc='no' 10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10281 hardcode_libdir_separator=: 10282 ;; 10283 10284 osf4* | osf5*) # as osf3* with the addition of -msym flag 10285 if test "$GCC" = yes; then 10286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10287 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' 10288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10289 else 10290 allow_undefined_flag=' -expect_unresolved \*' 10291 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' 10292 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~ 10293 $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' 10294 10295 # Both c and cxx compiler support -rpath directly 10296 hardcode_libdir_flag_spec='-rpath $libdir' 10297 fi 10298 archive_cmds_need_lc='no' 10299 hardcode_libdir_separator=: 10300 ;; 10301 10302 solaris*) 10303 no_undefined_flag=' -z defs' 10304 if test "$GCC" = yes; then 10305 wlarc='${wl}' 10306 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10308 $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' 10309 else 10310 case `$CC -V 2>&1` in 10311 *"Compilers 5.0"*) 10312 wlarc='' 10313 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10316 ;; 10317 *) 10318 wlarc='${wl}' 10319 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10321 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10322 ;; 10323 esac 10324 fi 10325 hardcode_libdir_flag_spec='-R$libdir' 10326 hardcode_shlibpath_var=no 10327 case $host_os in 10328 solaris2.[0-5] | solaris2.[0-5].*) ;; 10329 *) 10330 # The compiler driver will combine and reorder linker options, 10331 # but understands `-z linker_flag'. GCC discards it without `$wl', 10332 # but is careful enough not to reorder. 10333 # Supported since Solaris 2.6 (maybe 2.5.1?) 10334 if test "$GCC" = yes; then 10335 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10336 else 10337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10338 fi 10339 ;; 10340 esac 10341 link_all_deplibs=yes 10342 ;; 10343 10344 sunos4*) 10345 if test "x$host_vendor" = xsequent; then 10346 # Use $CC to link under sequent, because it throws in some extra .o 10347 # files that make .init and .fini sections work. 10348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10349 else 10350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10351 fi 10352 hardcode_libdir_flag_spec='-L$libdir' 10353 hardcode_direct=yes 10354 hardcode_minus_L=yes 10355 hardcode_shlibpath_var=no 10356 ;; 10357 10358 sysv4) 10359 case $host_vendor in 10360 sni) 10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10362 hardcode_direct=yes # is this really true??? 10363 ;; 10364 siemens) 10365 ## LD is ld it makes a PLAMLIB 10366 ## CC just makes a GrossModule. 10367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10368 reload_cmds='$CC -r -o $output$reload_objs' 10369 hardcode_direct=no 10370 ;; 10371 motorola) 10372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10374 ;; 10375 esac 10376 runpath_var='LD_RUN_PATH' 10377 hardcode_shlibpath_var=no 10378 ;; 10379 10380 sysv4.3*) 10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10382 hardcode_shlibpath_var=no 10383 export_dynamic_flag_spec='-Bexport' 10384 ;; 10385 10386 sysv4*MP*) 10387 if test -d /usr/nec; then 10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10389 hardcode_shlibpath_var=no 10390 runpath_var=LD_RUN_PATH 10391 hardcode_runpath_var=yes 10392 ld_shlibs=yes 10393 fi 10394 ;; 10395 10396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10397 no_undefined_flag='${wl}-z,text' 10398 archive_cmds_need_lc=no 10399 hardcode_shlibpath_var=no 10400 runpath_var='LD_RUN_PATH' 10401 10402 if test "$GCC" = yes; then 10403 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10404 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10405 else 10406 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10407 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10408 fi 10409 ;; 10410 10411 sysv5* | sco3.2v5* | sco5v6*) 10412 # Note: We can NOT use -z defs as we might desire, because we do not 10413 # link with -lc, and that would cause any symbols used from libc to 10414 # always be unresolved, which means just about no library would 10415 # ever link correctly. If we're not using GNU ld we use -z text 10416 # though, which does catch some bad symbols but isn't as heavy-handed 10417 # as -z defs. 10418 no_undefined_flag='${wl}-z,text' 10419 allow_undefined_flag='${wl}-z,nodefs' 10420 archive_cmds_need_lc=no 10421 hardcode_shlibpath_var=no 10422 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10423 hardcode_libdir_separator=':' 10424 link_all_deplibs=yes 10425 export_dynamic_flag_spec='${wl}-Bexport' 10426 runpath_var='LD_RUN_PATH' 10427 10428 if test "$GCC" = yes; then 10429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10431 else 10432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10434 fi 10435 ;; 10436 10437 uts4*) 10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10439 hardcode_libdir_flag_spec='-L$libdir' 10440 hardcode_shlibpath_var=no 10441 ;; 10442 10443 *) 10444 ld_shlibs=no 10445 ;; 10446 esac 10447 10448 if test x$host_vendor = xsni; then 10449 case $host in 10450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10451 export_dynamic_flag_spec='${wl}-Blargedynsym' 10452 ;; 10453 esac 10454 fi 10455 fi 10456 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10458$as_echo "$ld_shlibs" >&6; } 10459test "$ld_shlibs" = no && can_build_shared=no 10460 10461with_gnu_ld=$with_gnu_ld 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477# 10478# Do we need to explicitly link libc? 10479# 10480case "x$archive_cmds_need_lc" in 10481x|xyes) 10482 # Assume -lc should be added 10483 archive_cmds_need_lc=yes 10484 10485 if test "$enable_shared" = yes && test "$GCC" = yes; then 10486 case $archive_cmds in 10487 *'~'*) 10488 # FIXME: we may have to deal with multi-command sequences. 10489 ;; 10490 '$CC '*) 10491 # Test whether the compiler implicitly links with -lc since on some 10492 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10493 # to ld, don't add -lc before -lgcc. 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10495$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10496if ${lt_cv_archive_cmds_need_lc+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498else 10499 $RM conftest* 10500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10501 10502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10503 (eval $ac_compile) 2>&5 10504 ac_status=$? 10505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10506 test $ac_status = 0; } 2>conftest.err; then 10507 soname=conftest 10508 lib=conftest 10509 libobjs=conftest.$ac_objext 10510 deplibs= 10511 wl=$lt_prog_compiler_wl 10512 pic_flag=$lt_prog_compiler_pic 10513 compiler_flags=-v 10514 linker_flags=-v 10515 verstring= 10516 output_objdir=. 10517 libname=conftest 10518 lt_save_allow_undefined_flag=$allow_undefined_flag 10519 allow_undefined_flag= 10520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10522 ac_status=$? 10523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10524 test $ac_status = 0; } 10525 then 10526 lt_cv_archive_cmds_need_lc=no 10527 else 10528 lt_cv_archive_cmds_need_lc=yes 10529 fi 10530 allow_undefined_flag=$lt_save_allow_undefined_flag 10531 else 10532 cat conftest.err 1>&5 10533 fi 10534 $RM conftest* 10535 10536fi 10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10538$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10539 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10540 ;; 10541 esac 10542 fi 10543 ;; 10544esac 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10698$as_echo_n "checking dynamic linker characteristics... " >&6; } 10699 10700if test "$GCC" = yes; then 10701 case $host_os in 10702 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10703 *) lt_awk_arg="/^libraries:/" ;; 10704 esac 10705 case $host_os in 10706 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10707 *) lt_sed_strip_eq="s,=/,/,g" ;; 10708 esac 10709 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10710 case $lt_search_path_spec in 10711 *\;*) 10712 # if the path contains ";" then we assume it to be the separator 10713 # otherwise default to the standard path separator (i.e. ":") - it is 10714 # assumed that no part of a normal pathname contains ";" but that should 10715 # okay in the real world where ";" in dirpaths is itself problematic. 10716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10717 ;; 10718 *) 10719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10720 ;; 10721 esac 10722 # Ok, now we have the path, separated by spaces, we can step through it 10723 # and add multilib dir if necessary. 10724 lt_tmp_lt_search_path_spec= 10725 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10726 for lt_sys_path in $lt_search_path_spec; do 10727 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10729 else 10730 test -d "$lt_sys_path" && \ 10731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10732 fi 10733 done 10734 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10735BEGIN {RS=" "; FS="/|\n";} { 10736 lt_foo=""; 10737 lt_count=0; 10738 for (lt_i = NF; lt_i > 0; lt_i--) { 10739 if ($lt_i != "" && $lt_i != ".") { 10740 if ($lt_i == "..") { 10741 lt_count++; 10742 } else { 10743 if (lt_count == 0) { 10744 lt_foo="/" $lt_i lt_foo; 10745 } else { 10746 lt_count--; 10747 } 10748 } 10749 } 10750 } 10751 if (lt_foo != "") { lt_freq[lt_foo]++; } 10752 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10753}'` 10754 # AWK program above erroneously prepends '/' to C:/dos/paths 10755 # for these hosts. 10756 case $host_os in 10757 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10758 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10759 esac 10760 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10761else 10762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10763fi 10764library_names_spec= 10765libname_spec='lib$name' 10766soname_spec= 10767shrext_cmds=".so" 10768postinstall_cmds= 10769postuninstall_cmds= 10770finish_cmds= 10771finish_eval= 10772shlibpath_var= 10773shlibpath_overrides_runpath=unknown 10774version_type=none 10775dynamic_linker="$host_os ld.so" 10776sys_lib_dlsearch_path_spec="/lib /usr/lib" 10777need_lib_prefix=unknown 10778hardcode_into_libs=no 10779 10780# when you set need_version to no, make sure it does not cause -set_version 10781# flags to be left without arguments 10782need_version=unknown 10783 10784case $host_os in 10785aix3*) 10786 version_type=linux # correct to gnu/linux during the next big refactor 10787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10788 shlibpath_var=LIBPATH 10789 10790 # AIX 3 has no versioning support, so we append a major version to the name. 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 ;; 10793 10794aix[4-9]*) 10795 version_type=linux # correct to gnu/linux during the next big refactor 10796 need_lib_prefix=no 10797 need_version=no 10798 hardcode_into_libs=yes 10799 if test "$host_cpu" = ia64; then 10800 # AIX 5 supports IA64 10801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10802 shlibpath_var=LD_LIBRARY_PATH 10803 else 10804 # With GCC up to 2.95.x, collect2 would create an import file 10805 # for dependence libraries. The import file would start with 10806 # the line `#! .'. This would cause the generated library to 10807 # depend on `.', always an invalid library. This was fixed in 10808 # development snapshots of GCC prior to 3.0. 10809 case $host_os in 10810 aix4 | aix4.[01] | aix4.[01].*) 10811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10812 echo ' yes ' 10813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10814 : 10815 else 10816 can_build_shared=no 10817 fi 10818 ;; 10819 esac 10820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10821 # soname into executable. Probably we can add versioning support to 10822 # collect2, so additional links can be useful in future. 10823 if test "$aix_use_runtimelinking" = yes; then 10824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10825 # instead of lib<name>.a to let people know that these are not 10826 # typical AIX shared libraries. 10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10828 else 10829 # We preserve .a as extension for shared libraries through AIX4.2 10830 # and later when we are not doing run time linking. 10831 library_names_spec='${libname}${release}.a $libname.a' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 fi 10834 shlibpath_var=LIBPATH 10835 fi 10836 ;; 10837 10838amigaos*) 10839 case $host_cpu in 10840 powerpc) 10841 # Since July 2007 AmigaOS4 officially supports .so libraries. 10842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10844 ;; 10845 m68k) 10846 library_names_spec='$libname.ixlibrary $libname.a' 10847 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10848 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10849 ;; 10850 esac 10851 ;; 10852 10853beos*) 10854 library_names_spec='${libname}${shared_ext}' 10855 dynamic_linker="$host_os ld.so" 10856 shlibpath_var=LIBRARY_PATH 10857 ;; 10858 10859bsdi[45]*) 10860 version_type=linux # correct to gnu/linux during the next big refactor 10861 need_version=no 10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10863 soname_spec='${libname}${release}${shared_ext}$major' 10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10865 shlibpath_var=LD_LIBRARY_PATH 10866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10868 # the default ld.so.conf also contains /usr/contrib/lib and 10869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10870 # libtool to hard-code these into programs 10871 ;; 10872 10873cygwin* | mingw* | pw32* | cegcc*) 10874 version_type=windows 10875 shrext_cmds=".dll" 10876 need_version=no 10877 need_lib_prefix=no 10878 10879 case $GCC,$cc_basename in 10880 yes,*) 10881 # gcc 10882 library_names_spec='$libname.dll.a' 10883 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10884 postinstall_cmds='base_file=`basename \${file}`~ 10885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10886 dldir=$destdir/`dirname \$dlpath`~ 10887 test -d \$dldir || mkdir -p \$dldir~ 10888 $install_prog $dir/$dlname \$dldir/$dlname~ 10889 chmod a+x \$dldir/$dlname~ 10890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10892 fi' 10893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10894 dlpath=$dir/\$dldll~ 10895 $RM \$dlpath' 10896 shlibpath_overrides_runpath=yes 10897 10898 case $host_os in 10899 cygwin*) 10900 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10902 10903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10904 ;; 10905 mingw* | cegcc*) 10906 # MinGW DLLs use traditional 'lib' prefix 10907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10908 ;; 10909 pw32*) 10910 # pw32 DLLs use 'pw' prefix rather than 'lib' 10911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10912 ;; 10913 esac 10914 dynamic_linker='Win32 ld.exe' 10915 ;; 10916 10917 *,cl*) 10918 # Native MSVC 10919 libname_spec='$name' 10920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10921 library_names_spec='${libname}.dll.lib' 10922 10923 case $build_os in 10924 mingw*) 10925 sys_lib_search_path_spec= 10926 lt_save_ifs=$IFS 10927 IFS=';' 10928 for lt_path in $LIB 10929 do 10930 IFS=$lt_save_ifs 10931 # Let DOS variable expansion print the short 8.3 style file name. 10932 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10933 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10934 done 10935 IFS=$lt_save_ifs 10936 # Convert to MSYS style. 10937 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10938 ;; 10939 cygwin*) 10940 # Convert to unix form, then to dos form, then back to unix form 10941 # but this time dos style (no spaces!) so that the unix form looks 10942 # like /cygdrive/c/PROGRA~1:/cygdr... 10943 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10944 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10945 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10946 ;; 10947 *) 10948 sys_lib_search_path_spec="$LIB" 10949 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10950 # It is most probably a Windows format PATH. 10951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10952 else 10953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10954 fi 10955 # FIXME: find the short name or the path components, as spaces are 10956 # common. (e.g. "Program Files" -> "PROGRA~1") 10957 ;; 10958 esac 10959 10960 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10961 postinstall_cmds='base_file=`basename \${file}`~ 10962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10963 dldir=$destdir/`dirname \$dlpath`~ 10964 test -d \$dldir || mkdir -p \$dldir~ 10965 $install_prog $dir/$dlname \$dldir/$dlname' 10966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10967 dlpath=$dir/\$dldll~ 10968 $RM \$dlpath' 10969 shlibpath_overrides_runpath=yes 10970 dynamic_linker='Win32 link.exe' 10971 ;; 10972 10973 *) 10974 # Assume MSVC wrapper 10975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10976 dynamic_linker='Win32 ld.exe' 10977 ;; 10978 esac 10979 # FIXME: first we should search . and the directory the executable is in 10980 shlibpath_var=PATH 10981 ;; 10982 10983darwin* | rhapsody*) 10984 dynamic_linker="$host_os dyld" 10985 version_type=darwin 10986 need_lib_prefix=no 10987 need_version=no 10988 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10989 soname_spec='${libname}${release}${major}$shared_ext' 10990 shlibpath_overrides_runpath=yes 10991 shlibpath_var=DYLD_LIBRARY_PATH 10992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10993 10994 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10996 ;; 10997 10998dgux*) 10999 version_type=linux # correct to gnu/linux during the next big refactor 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11003 soname_spec='${libname}${release}${shared_ext}$major' 11004 shlibpath_var=LD_LIBRARY_PATH 11005 ;; 11006 11007freebsd* | dragonfly*) 11008 # DragonFly does not have aout. When/if they implement a new 11009 # versioning mechanism, adjust this. 11010 if test -x /usr/bin/objformat; then 11011 objformat=`/usr/bin/objformat` 11012 else 11013 case $host_os in 11014 freebsd[23].*) objformat=aout ;; 11015 *) objformat=elf ;; 11016 esac 11017 fi 11018 version_type=freebsd-$objformat 11019 case $version_type in 11020 freebsd-elf*) 11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11022 need_version=no 11023 need_lib_prefix=no 11024 ;; 11025 freebsd-*) 11026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11027 need_version=yes 11028 ;; 11029 esac 11030 shlibpath_var=LD_LIBRARY_PATH 11031 case $host_os in 11032 freebsd2.*) 11033 shlibpath_overrides_runpath=yes 11034 ;; 11035 freebsd3.[01]* | freebsdelf3.[01]*) 11036 shlibpath_overrides_runpath=yes 11037 hardcode_into_libs=yes 11038 ;; 11039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11041 shlibpath_overrides_runpath=no 11042 hardcode_into_libs=yes 11043 ;; 11044 *) # from 4.6 on, and DragonFly 11045 shlibpath_overrides_runpath=yes 11046 hardcode_into_libs=yes 11047 ;; 11048 esac 11049 ;; 11050 11051gnu*) 11052 version_type=linux # correct to gnu/linux during the next big refactor 11053 need_lib_prefix=no 11054 need_version=no 11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11056 soname_spec='${libname}${release}${shared_ext}$major' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 shlibpath_overrides_runpath=no 11059 hardcode_into_libs=yes 11060 ;; 11061 11062haiku*) 11063 version_type=linux # correct to gnu/linux during the next big refactor 11064 need_lib_prefix=no 11065 need_version=no 11066 dynamic_linker="$host_os runtime_loader" 11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11068 soname_spec='${libname}${release}${shared_ext}$major' 11069 shlibpath_var=LIBRARY_PATH 11070 shlibpath_overrides_runpath=yes 11071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11072 hardcode_into_libs=yes 11073 ;; 11074 11075hpux9* | hpux10* | hpux11*) 11076 # Give a soname corresponding to the major version so that dld.sl refuses to 11077 # link against other versions. 11078 version_type=sunos 11079 need_lib_prefix=no 11080 need_version=no 11081 case $host_cpu in 11082 ia64*) 11083 shrext_cmds='.so' 11084 hardcode_into_libs=yes 11085 dynamic_linker="$host_os dld.so" 11086 shlibpath_var=LD_LIBRARY_PATH 11087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11089 soname_spec='${libname}${release}${shared_ext}$major' 11090 if test "X$HPUX_IA64_MODE" = X32; then 11091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11092 else 11093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11094 fi 11095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11096 ;; 11097 hppa*64*) 11098 shrext_cmds='.sl' 11099 hardcode_into_libs=yes 11100 dynamic_linker="$host_os dld.sl" 11101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11104 soname_spec='${libname}${release}${shared_ext}$major' 11105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11107 ;; 11108 *) 11109 shrext_cmds='.sl' 11110 dynamic_linker="$host_os dld.sl" 11111 shlibpath_var=SHLIB_PATH 11112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11114 soname_spec='${libname}${release}${shared_ext}$major' 11115 ;; 11116 esac 11117 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11118 postinstall_cmds='chmod 555 $lib' 11119 # or fails outright, so override atomically: 11120 install_override_mode=555 11121 ;; 11122 11123interix[3-9]*) 11124 version_type=linux # correct to gnu/linux during the next big refactor 11125 need_lib_prefix=no 11126 need_version=no 11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11128 soname_spec='${libname}${release}${shared_ext}$major' 11129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11130 shlibpath_var=LD_LIBRARY_PATH 11131 shlibpath_overrides_runpath=no 11132 hardcode_into_libs=yes 11133 ;; 11134 11135irix5* | irix6* | nonstopux*) 11136 case $host_os in 11137 nonstopux*) version_type=nonstopux ;; 11138 *) 11139 if test "$lt_cv_prog_gnu_ld" = yes; then 11140 version_type=linux # correct to gnu/linux during the next big refactor 11141 else 11142 version_type=irix 11143 fi ;; 11144 esac 11145 need_lib_prefix=no 11146 need_version=no 11147 soname_spec='${libname}${release}${shared_ext}$major' 11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11149 case $host_os in 11150 irix5* | nonstopux*) 11151 libsuff= shlibsuff= 11152 ;; 11153 *) 11154 case $LD in # libtool.m4 will add one of these switches to LD 11155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11156 libsuff= shlibsuff= libmagic=32-bit;; 11157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11158 libsuff=32 shlibsuff=N32 libmagic=N32;; 11159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11160 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11161 *) libsuff= shlibsuff= libmagic=never-match;; 11162 esac 11163 ;; 11164 esac 11165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11166 shlibpath_overrides_runpath=no 11167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11169 hardcode_into_libs=yes 11170 ;; 11171 11172# No shared lib support for Linux oldld, aout, or coff. 11173linux*oldld* | linux*aout* | linux*coff*) 11174 dynamic_linker=no 11175 ;; 11176 11177# This must be glibc/ELF. 11178linux* | k*bsd*-gnu | kopensolaris*-gnu) 11179 version_type=linux # correct to gnu/linux during the next big refactor 11180 need_lib_prefix=no 11181 need_version=no 11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11183 soname_spec='${libname}${release}${shared_ext}$major' 11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11185 shlibpath_var=LD_LIBRARY_PATH 11186 shlibpath_overrides_runpath=no 11187 11188 # Some binutils ld are patched to set DT_RUNPATH 11189 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 lt_cv_shlibpath_overrides_runpath=no 11193 save_LDFLAGS=$LDFLAGS 11194 save_libdir=$libdir 11195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198/* end confdefs.h. */ 11199 11200int 11201main () 11202{ 11203 11204 ; 11205 return 0; 11206} 11207_ACEOF 11208if ac_fn_c_try_link "$LINENO"; then : 11209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11210 lt_cv_shlibpath_overrides_runpath=yes 11211fi 11212fi 11213rm -f core conftest.err conftest.$ac_objext \ 11214 conftest$ac_exeext conftest.$ac_ext 11215 LDFLAGS=$save_LDFLAGS 11216 libdir=$save_libdir 11217 11218fi 11219 11220 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11221 11222 # This implies no fast_install, which is unacceptable. 11223 # Some rework will be needed to allow for fast_install 11224 # before this can be enabled. 11225 hardcode_into_libs=yes 11226 11227 # Add ABI-specific directories to the system library path. 11228 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11229 11230 # Append ld.so.conf contents to the search path 11231 if test -f /etc/ld.so.conf; then 11232 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' ' '` 11233 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11234 11235 fi 11236 11237 # We used to test for /lib/ld.so.1 and disable shared libraries on 11238 # powerpc, because MkLinux only supported shared libraries with the 11239 # GNU dynamic linker. Since this was broken with cross compilers, 11240 # most powerpc-linux boxes support dynamic linking these days and 11241 # people can always --disable-shared, the test was removed, and we 11242 # assume the GNU/Linux dynamic linker is in use. 11243 dynamic_linker='GNU/Linux ld.so' 11244 ;; 11245 11246netbsd*) 11247 version_type=sunos 11248 need_lib_prefix=no 11249 need_version=no 11250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11253 dynamic_linker='NetBSD (a.out) ld.so' 11254 else 11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11256 soname_spec='${libname}${release}${shared_ext}$major' 11257 dynamic_linker='NetBSD ld.elf_so' 11258 fi 11259 shlibpath_var=LD_LIBRARY_PATH 11260 shlibpath_overrides_runpath=yes 11261 hardcode_into_libs=yes 11262 ;; 11263 11264newsos6) 11265 version_type=linux # correct to gnu/linux during the next big refactor 11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11267 shlibpath_var=LD_LIBRARY_PATH 11268 shlibpath_overrides_runpath=yes 11269 ;; 11270 11271*nto* | *qnx*) 11272 version_type=qnx 11273 need_lib_prefix=no 11274 need_version=no 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11276 soname_spec='${libname}${release}${shared_ext}$major' 11277 shlibpath_var=LD_LIBRARY_PATH 11278 shlibpath_overrides_runpath=no 11279 hardcode_into_libs=yes 11280 dynamic_linker='ldqnx.so' 11281 ;; 11282 11283openbsd*) 11284 version_type=sunos 11285 sys_lib_dlsearch_path_spec="/usr/lib" 11286 need_lib_prefix=no 11287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11288 case $host_os in 11289 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11290 *) need_version=no ;; 11291 esac 11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11294 shlibpath_var=LD_LIBRARY_PATH 11295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11296 case $host_os in 11297 openbsd2.[89] | openbsd2.[89].*) 11298 shlibpath_overrides_runpath=no 11299 ;; 11300 *) 11301 shlibpath_overrides_runpath=yes 11302 ;; 11303 esac 11304 else 11305 shlibpath_overrides_runpath=yes 11306 fi 11307 ;; 11308 11309os2*) 11310 libname_spec='$name' 11311 shrext_cmds=".dll" 11312 need_lib_prefix=no 11313 library_names_spec='$libname${shared_ext} $libname.a' 11314 dynamic_linker='OS/2 ld.exe' 11315 shlibpath_var=LIBPATH 11316 ;; 11317 11318osf3* | osf4* | osf5*) 11319 version_type=osf 11320 need_lib_prefix=no 11321 need_version=no 11322 soname_spec='${libname}${release}${shared_ext}$major' 11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11324 shlibpath_var=LD_LIBRARY_PATH 11325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11327 ;; 11328 11329rdos*) 11330 dynamic_linker=no 11331 ;; 11332 11333solaris*) 11334 version_type=linux # correct to gnu/linux during the next big refactor 11335 need_lib_prefix=no 11336 need_version=no 11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11338 soname_spec='${libname}${release}${shared_ext}$major' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 shlibpath_overrides_runpath=yes 11341 hardcode_into_libs=yes 11342 # ldd complains unless libraries are executable 11343 postinstall_cmds='chmod +x $lib' 11344 ;; 11345 11346sunos4*) 11347 version_type=sunos 11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11350 shlibpath_var=LD_LIBRARY_PATH 11351 shlibpath_overrides_runpath=yes 11352 if test "$with_gnu_ld" = yes; then 11353 need_lib_prefix=no 11354 fi 11355 need_version=yes 11356 ;; 11357 11358sysv4 | sysv4.3*) 11359 version_type=linux # correct to gnu/linux during the next big refactor 11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11361 soname_spec='${libname}${release}${shared_ext}$major' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 case $host_vendor in 11364 sni) 11365 shlibpath_overrides_runpath=no 11366 need_lib_prefix=no 11367 runpath_var=LD_RUN_PATH 11368 ;; 11369 siemens) 11370 need_lib_prefix=no 11371 ;; 11372 motorola) 11373 need_lib_prefix=no 11374 need_version=no 11375 shlibpath_overrides_runpath=no 11376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11377 ;; 11378 esac 11379 ;; 11380 11381sysv4*MP*) 11382 if test -d /usr/nec ;then 11383 version_type=linux # correct to gnu/linux during the next big refactor 11384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11385 soname_spec='$libname${shared_ext}.$major' 11386 shlibpath_var=LD_LIBRARY_PATH 11387 fi 11388 ;; 11389 11390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11391 version_type=freebsd-elf 11392 need_lib_prefix=no 11393 need_version=no 11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11395 soname_spec='${libname}${release}${shared_ext}$major' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=yes 11398 hardcode_into_libs=yes 11399 if test "$with_gnu_ld" = yes; then 11400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11401 else 11402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11403 case $host_os in 11404 sco3.2v5*) 11405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11406 ;; 11407 esac 11408 fi 11409 sys_lib_dlsearch_path_spec='/usr/lib' 11410 ;; 11411 11412tpf*) 11413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11414 version_type=linux # correct to gnu/linux during the next big refactor 11415 need_lib_prefix=no 11416 need_version=no 11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11418 shlibpath_var=LD_LIBRARY_PATH 11419 shlibpath_overrides_runpath=no 11420 hardcode_into_libs=yes 11421 ;; 11422 11423uts4*) 11424 version_type=linux # correct to gnu/linux during the next big refactor 11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11426 soname_spec='${libname}${release}${shared_ext}$major' 11427 shlibpath_var=LD_LIBRARY_PATH 11428 ;; 11429 11430*) 11431 dynamic_linker=no 11432 ;; 11433esac 11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11435$as_echo "$dynamic_linker" >&6; } 11436test "$dynamic_linker" = no && can_build_shared=no 11437 11438variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11439if test "$GCC" = yes; then 11440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11441fi 11442 11443if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11444 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11445fi 11446if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11447 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11448fi 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11542$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11543hardcode_action= 11544if test -n "$hardcode_libdir_flag_spec" || 11545 test -n "$runpath_var" || 11546 test "X$hardcode_automatic" = "Xyes" ; then 11547 11548 # We can hardcode non-existent directories. 11549 if test "$hardcode_direct" != no && 11550 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11551 # have to relink, otherwise we might link with an installed library 11552 # when we should be linking with a yet-to-be-installed one 11553 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11554 test "$hardcode_minus_L" != no; then 11555 # Linking always hardcodes the temporary library directory. 11556 hardcode_action=relink 11557 else 11558 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11559 hardcode_action=immediate 11560 fi 11561else 11562 # We cannot hardcode anything, or else we can only hardcode existing 11563 # directories. 11564 hardcode_action=unsupported 11565fi 11566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11567$as_echo "$hardcode_action" >&6; } 11568 11569if test "$hardcode_action" = relink || 11570 test "$inherit_rpath" = yes; then 11571 # Fast installation is not supported 11572 enable_fast_install=no 11573elif test "$shlibpath_overrides_runpath" = yes || 11574 test "$enable_shared" = no; then 11575 # Fast installation is not necessary 11576 enable_fast_install=needless 11577fi 11578 11579 11580 11581 11582 11583 11584 if test "x$enable_dlopen" != xyes; then 11585 enable_dlopen=unknown 11586 enable_dlopen_self=unknown 11587 enable_dlopen_self_static=unknown 11588else 11589 lt_cv_dlopen=no 11590 lt_cv_dlopen_libs= 11591 11592 case $host_os in 11593 beos*) 11594 lt_cv_dlopen="load_add_on" 11595 lt_cv_dlopen_libs= 11596 lt_cv_dlopen_self=yes 11597 ;; 11598 11599 mingw* | pw32* | cegcc*) 11600 lt_cv_dlopen="LoadLibrary" 11601 lt_cv_dlopen_libs= 11602 ;; 11603 11604 cygwin*) 11605 lt_cv_dlopen="dlopen" 11606 lt_cv_dlopen_libs= 11607 ;; 11608 11609 darwin*) 11610 # if libdl is installed we need to link against it 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11612$as_echo_n "checking for dlopen in -ldl... " >&6; } 11613if ${ac_cv_lib_dl_dlopen+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 ac_check_lib_save_LIBS=$LIBS 11617LIBS="-ldl $LIBS" 11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619/* end confdefs.h. */ 11620 11621/* Override any GCC internal prototype to avoid an error. 11622 Use char because int might match the return type of a GCC 11623 builtin and then its argument prototype would still apply. */ 11624#ifdef __cplusplus 11625extern "C" 11626#endif 11627char dlopen (); 11628int 11629main () 11630{ 11631return dlopen (); 11632 ; 11633 return 0; 11634} 11635_ACEOF 11636if ac_fn_c_try_link "$LINENO"; then : 11637 ac_cv_lib_dl_dlopen=yes 11638else 11639 ac_cv_lib_dl_dlopen=no 11640fi 11641rm -f core conftest.err conftest.$ac_objext \ 11642 conftest$ac_exeext conftest.$ac_ext 11643LIBS=$ac_check_lib_save_LIBS 11644fi 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11646$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11647if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11649else 11650 11651 lt_cv_dlopen="dyld" 11652 lt_cv_dlopen_libs= 11653 lt_cv_dlopen_self=yes 11654 11655fi 11656 11657 ;; 11658 11659 *) 11660 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11661if test "x$ac_cv_func_shl_load" = xyes; then : 11662 lt_cv_dlopen="shl_load" 11663else 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11665$as_echo_n "checking for shl_load in -ldld... " >&6; } 11666if ${ac_cv_lib_dld_shl_load+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 ac_check_lib_save_LIBS=$LIBS 11670LIBS="-ldld $LIBS" 11671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11672/* end confdefs.h. */ 11673 11674/* Override any GCC internal prototype to avoid an error. 11675 Use char because int might match the return type of a GCC 11676 builtin and then its argument prototype would still apply. */ 11677#ifdef __cplusplus 11678extern "C" 11679#endif 11680char shl_load (); 11681int 11682main () 11683{ 11684return shl_load (); 11685 ; 11686 return 0; 11687} 11688_ACEOF 11689if ac_fn_c_try_link "$LINENO"; then : 11690 ac_cv_lib_dld_shl_load=yes 11691else 11692 ac_cv_lib_dld_shl_load=no 11693fi 11694rm -f core conftest.err conftest.$ac_objext \ 11695 conftest$ac_exeext conftest.$ac_ext 11696LIBS=$ac_check_lib_save_LIBS 11697fi 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11699$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11700if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11701 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11702else 11703 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11704if test "x$ac_cv_func_dlopen" = xyes; then : 11705 lt_cv_dlopen="dlopen" 11706else 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11708$as_echo_n "checking for dlopen in -ldl... " >&6; } 11709if ${ac_cv_lib_dl_dlopen+:} false; then : 11710 $as_echo_n "(cached) " >&6 11711else 11712 ac_check_lib_save_LIBS=$LIBS 11713LIBS="-ldl $LIBS" 11714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11715/* end confdefs.h. */ 11716 11717/* Override any GCC internal prototype to avoid an error. 11718 Use char because int might match the return type of a GCC 11719 builtin and then its argument prototype would still apply. */ 11720#ifdef __cplusplus 11721extern "C" 11722#endif 11723char dlopen (); 11724int 11725main () 11726{ 11727return dlopen (); 11728 ; 11729 return 0; 11730} 11731_ACEOF 11732if ac_fn_c_try_link "$LINENO"; then : 11733 ac_cv_lib_dl_dlopen=yes 11734else 11735 ac_cv_lib_dl_dlopen=no 11736fi 11737rm -f core conftest.err conftest.$ac_objext \ 11738 conftest$ac_exeext conftest.$ac_ext 11739LIBS=$ac_check_lib_save_LIBS 11740fi 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11742$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11743if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11745else 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11747$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11748if ${ac_cv_lib_svld_dlopen+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 ac_check_lib_save_LIBS=$LIBS 11752LIBS="-lsvld $LIBS" 11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11754/* end confdefs.h. */ 11755 11756/* Override any GCC internal prototype to avoid an error. 11757 Use char because int might match the return type of a GCC 11758 builtin and then its argument prototype would still apply. */ 11759#ifdef __cplusplus 11760extern "C" 11761#endif 11762char dlopen (); 11763int 11764main () 11765{ 11766return dlopen (); 11767 ; 11768 return 0; 11769} 11770_ACEOF 11771if ac_fn_c_try_link "$LINENO"; then : 11772 ac_cv_lib_svld_dlopen=yes 11773else 11774 ac_cv_lib_svld_dlopen=no 11775fi 11776rm -f core conftest.err conftest.$ac_objext \ 11777 conftest$ac_exeext conftest.$ac_ext 11778LIBS=$ac_check_lib_save_LIBS 11779fi 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11781$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11782if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11784else 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11786$as_echo_n "checking for dld_link in -ldld... " >&6; } 11787if ${ac_cv_lib_dld_dld_link+:} false; then : 11788 $as_echo_n "(cached) " >&6 11789else 11790 ac_check_lib_save_LIBS=$LIBS 11791LIBS="-ldld $LIBS" 11792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793/* end confdefs.h. */ 11794 11795/* Override any GCC internal prototype to avoid an error. 11796 Use char because int might match the return type of a GCC 11797 builtin and then its argument prototype would still apply. */ 11798#ifdef __cplusplus 11799extern "C" 11800#endif 11801char dld_link (); 11802int 11803main () 11804{ 11805return dld_link (); 11806 ; 11807 return 0; 11808} 11809_ACEOF 11810if ac_fn_c_try_link "$LINENO"; then : 11811 ac_cv_lib_dld_dld_link=yes 11812else 11813 ac_cv_lib_dld_dld_link=no 11814fi 11815rm -f core conftest.err conftest.$ac_objext \ 11816 conftest$ac_exeext conftest.$ac_ext 11817LIBS=$ac_check_lib_save_LIBS 11818fi 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11820$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11821if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11822 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11823fi 11824 11825 11826fi 11827 11828 11829fi 11830 11831 11832fi 11833 11834 11835fi 11836 11837 11838fi 11839 11840 ;; 11841 esac 11842 11843 if test "x$lt_cv_dlopen" != xno; then 11844 enable_dlopen=yes 11845 else 11846 enable_dlopen=no 11847 fi 11848 11849 case $lt_cv_dlopen in 11850 dlopen) 11851 save_CPPFLAGS="$CPPFLAGS" 11852 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11853 11854 save_LDFLAGS="$LDFLAGS" 11855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11856 11857 save_LIBS="$LIBS" 11858 LIBS="$lt_cv_dlopen_libs $LIBS" 11859 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11861$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11862if ${lt_cv_dlopen_self+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864else 11865 if test "$cross_compiling" = yes; then : 11866 lt_cv_dlopen_self=cross 11867else 11868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11869 lt_status=$lt_dlunknown 11870 cat > conftest.$ac_ext <<_LT_EOF 11871#line $LINENO "configure" 11872#include "confdefs.h" 11873 11874#if HAVE_DLFCN_H 11875#include <dlfcn.h> 11876#endif 11877 11878#include <stdio.h> 11879 11880#ifdef RTLD_GLOBAL 11881# define LT_DLGLOBAL RTLD_GLOBAL 11882#else 11883# ifdef DL_GLOBAL 11884# define LT_DLGLOBAL DL_GLOBAL 11885# else 11886# define LT_DLGLOBAL 0 11887# endif 11888#endif 11889 11890/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11891 find out it does not work in some platform. */ 11892#ifndef LT_DLLAZY_OR_NOW 11893# ifdef RTLD_LAZY 11894# define LT_DLLAZY_OR_NOW RTLD_LAZY 11895# else 11896# ifdef DL_LAZY 11897# define LT_DLLAZY_OR_NOW DL_LAZY 11898# else 11899# ifdef RTLD_NOW 11900# define LT_DLLAZY_OR_NOW RTLD_NOW 11901# else 11902# ifdef DL_NOW 11903# define LT_DLLAZY_OR_NOW DL_NOW 11904# else 11905# define LT_DLLAZY_OR_NOW 0 11906# endif 11907# endif 11908# endif 11909# endif 11910#endif 11911 11912/* When -fvisbility=hidden is used, assume the code has been annotated 11913 correspondingly for the symbols needed. */ 11914#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11915int fnord () __attribute__((visibility("default"))); 11916#endif 11917 11918int fnord () { return 42; } 11919int main () 11920{ 11921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11922 int status = $lt_dlunknown; 11923 11924 if (self) 11925 { 11926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11927 else 11928 { 11929 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11930 else puts (dlerror ()); 11931 } 11932 /* dlclose (self); */ 11933 } 11934 else 11935 puts (dlerror ()); 11936 11937 return status; 11938} 11939_LT_EOF 11940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11941 (eval $ac_link) 2>&5 11942 ac_status=$? 11943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11944 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11945 (./conftest; exit; ) >&5 2>/dev/null 11946 lt_status=$? 11947 case x$lt_status in 11948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11950 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11951 esac 11952 else : 11953 # compilation failed 11954 lt_cv_dlopen_self=no 11955 fi 11956fi 11957rm -fr conftest* 11958 11959 11960fi 11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11962$as_echo "$lt_cv_dlopen_self" >&6; } 11963 11964 if test "x$lt_cv_dlopen_self" = xyes; then 11965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11967$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11968if ${lt_cv_dlopen_self_static+:} false; then : 11969 $as_echo_n "(cached) " >&6 11970else 11971 if test "$cross_compiling" = yes; then : 11972 lt_cv_dlopen_self_static=cross 11973else 11974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11975 lt_status=$lt_dlunknown 11976 cat > conftest.$ac_ext <<_LT_EOF 11977#line $LINENO "configure" 11978#include "confdefs.h" 11979 11980#if HAVE_DLFCN_H 11981#include <dlfcn.h> 11982#endif 11983 11984#include <stdio.h> 11985 11986#ifdef RTLD_GLOBAL 11987# define LT_DLGLOBAL RTLD_GLOBAL 11988#else 11989# ifdef DL_GLOBAL 11990# define LT_DLGLOBAL DL_GLOBAL 11991# else 11992# define LT_DLGLOBAL 0 11993# endif 11994#endif 11995 11996/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11997 find out it does not work in some platform. */ 11998#ifndef LT_DLLAZY_OR_NOW 11999# ifdef RTLD_LAZY 12000# define LT_DLLAZY_OR_NOW RTLD_LAZY 12001# else 12002# ifdef DL_LAZY 12003# define LT_DLLAZY_OR_NOW DL_LAZY 12004# else 12005# ifdef RTLD_NOW 12006# define LT_DLLAZY_OR_NOW RTLD_NOW 12007# else 12008# ifdef DL_NOW 12009# define LT_DLLAZY_OR_NOW DL_NOW 12010# else 12011# define LT_DLLAZY_OR_NOW 0 12012# endif 12013# endif 12014# endif 12015# endif 12016#endif 12017 12018/* When -fvisbility=hidden is used, assume the code has been annotated 12019 correspondingly for the symbols needed. */ 12020#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12021int fnord () __attribute__((visibility("default"))); 12022#endif 12023 12024int fnord () { return 42; } 12025int main () 12026{ 12027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12028 int status = $lt_dlunknown; 12029 12030 if (self) 12031 { 12032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12033 else 12034 { 12035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12036 else puts (dlerror ()); 12037 } 12038 /* dlclose (self); */ 12039 } 12040 else 12041 puts (dlerror ()); 12042 12043 return status; 12044} 12045_LT_EOF 12046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12047 (eval $ac_link) 2>&5 12048 ac_status=$? 12049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12050 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12051 (./conftest; exit; ) >&5 2>/dev/null 12052 lt_status=$? 12053 case x$lt_status in 12054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12057 esac 12058 else : 12059 # compilation failed 12060 lt_cv_dlopen_self_static=no 12061 fi 12062fi 12063rm -fr conftest* 12064 12065 12066fi 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12068$as_echo "$lt_cv_dlopen_self_static" >&6; } 12069 fi 12070 12071 CPPFLAGS="$save_CPPFLAGS" 12072 LDFLAGS="$save_LDFLAGS" 12073 LIBS="$save_LIBS" 12074 ;; 12075 esac 12076 12077 case $lt_cv_dlopen_self in 12078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12079 *) enable_dlopen_self=unknown ;; 12080 esac 12081 12082 case $lt_cv_dlopen_self_static in 12083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12084 *) enable_dlopen_self_static=unknown ;; 12085 esac 12086fi 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104striplib= 12105old_striplib= 12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12107$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12108if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12109 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12110 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12112$as_echo "yes" >&6; } 12113else 12114# FIXME - insert some real tests, host_os isn't really good enough 12115 case $host_os in 12116 darwin*) 12117 if test -n "$STRIP" ; then 12118 striplib="$STRIP -x" 12119 old_striplib="$STRIP -S" 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12121$as_echo "yes" >&6; } 12122 else 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12124$as_echo "no" >&6; } 12125 fi 12126 ;; 12127 *) 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12129$as_echo "no" >&6; } 12130 ;; 12131 esac 12132fi 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 # Report which library types will actually be built 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12147$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12149$as_echo "$can_build_shared" >&6; } 12150 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12152$as_echo_n "checking whether to build shared libraries... " >&6; } 12153 test "$can_build_shared" = "no" && enable_shared=no 12154 12155 # On AIX, shared libraries and static libraries use the same namespace, and 12156 # are all built from PIC. 12157 case $host_os in 12158 aix3*) 12159 test "$enable_shared" = yes && enable_static=no 12160 if test -n "$RANLIB"; then 12161 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12162 postinstall_cmds='$RANLIB $lib' 12163 fi 12164 ;; 12165 12166 aix[4-9]*) 12167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12168 test "$enable_shared" = yes && enable_static=no 12169 fi 12170 ;; 12171 esac 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12173$as_echo "$enable_shared" >&6; } 12174 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12176$as_echo_n "checking whether to build static libraries... " >&6; } 12177 # Make sure either enable_shared or enable_static is yes. 12178 test "$enable_shared" = yes || enable_static=yes 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12180$as_echo "$enable_static" >&6; } 12181 12182 12183 12184 12185fi 12186ac_ext=c 12187ac_cpp='$CPP $CPPFLAGS' 12188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12190ac_compiler_gnu=$ac_cv_c_compiler_gnu 12191 12192CC="$lt_save_CC" 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 ac_config_commands="$ac_config_commands libtool" 12209 12210 12211 12212 12213# Only expand once: 12214 12215 12216 12217 12218 12219# Check whether --with-dyn-default was given. 12220if test "${with_dyn_default+set}" = set; then : 12221 withval=$with_dyn_default; opt_default=dyn 12222else 12223 opt_default=yes 12224fi 12225 12226 12227 12228# Check whether --with-pkgconfigdir was given. 12229if test "${with_pkgconfigdir+set}" = set; then : 12230 withval=$with_pkgconfigdir; 12231fi 12232 12233 12234 12235 12236using_pkgconfig=no 12237if test "$with_pkgconfigdir" != "no"; then 12238 if test "$with_pkgconfigdir" = ""; then 12239 with_pkgconfigdir="\$(libdir)/pkgconfig" 12240 fi 12241 using_pkgconfig="yes" 12242 12243 12244 12245 12246 12247 12248 12249if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12250 if test -n "$ac_tool_prefix"; then 12251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12252set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12254$as_echo_n "checking for $ac_word... " >&6; } 12255if ${ac_cv_path_PKG_CONFIG+:} false; then : 12256 $as_echo_n "(cached) " >&6 12257else 12258 case $PKG_CONFIG in 12259 [\\/]* | ?:[\\/]*) 12260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12261 ;; 12262 *) 12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12264for as_dir in $PATH 12265do 12266 IFS=$as_save_IFS 12267 test -z "$as_dir" && as_dir=. 12268 for ac_exec_ext in '' $ac_executable_extensions; do 12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12272 break 2 12273 fi 12274done 12275 done 12276IFS=$as_save_IFS 12277 12278 ;; 12279esac 12280fi 12281PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12282if test -n "$PKG_CONFIG"; then 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12284$as_echo "$PKG_CONFIG" >&6; } 12285else 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12287$as_echo "no" >&6; } 12288fi 12289 12290 12291fi 12292if test -z "$ac_cv_path_PKG_CONFIG"; then 12293 ac_pt_PKG_CONFIG=$PKG_CONFIG 12294 # Extract the first word of "pkg-config", so it can be a program name with args. 12295set dummy pkg-config; ac_word=$2 12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12297$as_echo_n "checking for $ac_word... " >&6; } 12298if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12299 $as_echo_n "(cached) " >&6 12300else 12301 case $ac_pt_PKG_CONFIG in 12302 [\\/]* | ?:[\\/]*) 12303 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12304 ;; 12305 *) 12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12307for as_dir in $PATH 12308do 12309 IFS=$as_save_IFS 12310 test -z "$as_dir" && as_dir=. 12311 for ac_exec_ext in '' $ac_executable_extensions; do 12312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12313 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12315 break 2 12316 fi 12317done 12318 done 12319IFS=$as_save_IFS 12320 12321 ;; 12322esac 12323fi 12324ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12325if test -n "$ac_pt_PKG_CONFIG"; then 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12327$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12328else 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12330$as_echo "no" >&6; } 12331fi 12332 12333 if test "x$ac_pt_PKG_CONFIG" = x; then 12334 PKG_CONFIG="" 12335 else 12336 case $cross_compiling:$ac_tool_warned in 12337yes:) 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12340ac_tool_warned=yes ;; 12341esac 12342 PKG_CONFIG=$ac_pt_PKG_CONFIG 12343 fi 12344else 12345 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12346fi 12347 12348fi 12349if test -n "$PKG_CONFIG"; then 12350 _pkg_min_version=0.9.0 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12352$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12353 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12355$as_echo "yes" >&6; } 12356 else 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12358$as_echo "no" >&6; } 12359 PKG_CONFIG="" 12360 fi 12361fi 12362fi 12363 if test x$using_pkgconfig = xyes; then 12364 HAVE_PKGCONFIG_TRUE= 12365 HAVE_PKGCONFIG_FALSE='#' 12366else 12367 HAVE_PKGCONFIG_TRUE='#' 12368 HAVE_PKGCONFIG_FALSE= 12369fi 12370 12371PKGCONFIGDIR=$with_pkgconfigdir 12372 12373 12374using_win32_glob="no" 12375case $target in 12376 *mingw*) 12377 using_win32_glob="yes" 12378 ;; 12379esac 12380if test "$using_win32_glob" = yes; then 12381 12382$as_echo "#define HAVE_WIN32_GLOB_H 1" >>confdefs.h 12383 12384fi 12385 if test x$using_win32_glob = xyes; then 12386 HAVE_WIN32_GLOB_TRUE= 12387 HAVE_WIN32_GLOB_FALSE='#' 12388else 12389 HAVE_WIN32_GLOB_TRUE='#' 12390 HAVE_WIN32_GLOB_FALSE= 12391fi 12392 12393 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to make a debug build" >&5 12395$as_echo_n "checking whether to make a debug build... " >&6; } 12396# Check whether --enable-debug was given. 12397if test "${enable_debug+set}" = set; then : 12398 enableval=$enable_debug; 12399fi 12400 12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 12402$as_echo "$enable_debug" >&6; } 12403if test "$enable_debug" = "yes"; then 12404 CFLAGS="-g" 12405 if test "$GCC" = "yes"; then 12406 CFLAGS="$CFLAGS -ggdb" 12407 fi 12408else 12409 enable_debug=no 12410fi 12411 12412# -fstack-protector 12413# Check whether --enable-stack-protector was given. 12414if test "${enable_stack_protector+set}" = set; then : 12415 enableval=$enable_stack_protector; case "${enableval}" in 12416 yes) enable_ssp=yes ;; 12417 no) enable_ssp=no ;; 12418 *) as_fn_error $? "invalid value ${enableval} for --disable-stack-protector" "$LINENO" 5 ;; 12419 esac 12420else 12421 enable_ssp=yes 12422fi 12423 12424 12425if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling stack-smashing protection because compiler is not GCC" >&5 12427$as_echo "$as_me: Disabling stack-smashing protection because compiler is not GCC" >&6;} 12428 enable_ssp=no 12429fi 12430 12431if test x"$enable_ssp" = x"yes"; then 12432 # Check for broken ssp in libc: http://www.avahi.org/ticket/105 12433 # libc's brokenness will get in the way regardless of whether -lssp is 12434 # provided, but provide it anyway (otherwise non-libc ssp would wrongly 12435 # break here) 12436 12437 # Get -lssp if it exists 12438 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 12440$as_echo_n "checking whether libssp exists... " >&6; } 12441if ${ssp_cv_lib+:} false; then : 12442 $as_echo_n "(cached) " >&6 12443else 12444 ssp_old_libs="$LIBS" 12445 LIBS="$LIBS -lssp" 12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12447/* end confdefs.h. */ 12448 12449int 12450main () 12451{ 12452 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_c_try_link "$LINENO"; then : 12458 ssp_cv_lib=yes 12459else 12460 ssp_cv_lib=no 12461fi 12462rm -f core conftest.err conftest.$ac_objext \ 12463 conftest$ac_exeext conftest.$ac_ext 12464 LIBS="$ssp_old_libs" 12465 12466fi 12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 12468$as_echo "$ssp_cv_lib" >&6; } 12469 if test $ssp_cv_lib = yes; then 12470 LIBS="$LIBS -lssp" 12471 fi 12472 12473 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is available" >&5 12475$as_echo_n "checking whether stack-smashing protection is available... " >&6; } 12476 ssp_old_cflags="$CFLAGS" 12477 ssp_old_ldflags="$LDFLAGS" 12478 CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC" 12479 LDFLAGS="$LDFLAGS -Wl,-z,defs" 12480 cat confdefs.h > conftest.c 12481 cat >>conftest.c <<_ACEOF 12482void test_broken_ssp(c) 12483 const char *c; 12484{ 12485 char arr[123], *p; /* beware of possible double-braces if copying this */ 12486 for (p = arr; *c; ++p) { 12487 *p = *c; 12488 ++c; 12489 } 12490} 12491_ACEOF 12492 rm -f conftest.o 12493 12494 if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12496$as_echo "yes" >&6; } 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is buggy" >&5 12498$as_echo_n "checking whether stack-smashing protection is buggy... " >&6; } 12499 if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12501$as_echo "no" >&6; } 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12504$as_echo "yes" >&6; } 12505 enable_ssp=no 12506 fi 12507 else 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12509$as_echo "no" >&6; } 12510 fi 12511 12512 rm -f conftest.c conftest.o conftest.so 12513 12514 CFLAGS="$ssp_old_cflags" 12515 LDFLAGS="$ssp_old_ldflags" 12516fi 12517 12518if test x"$enable_ssp" = x"yes"; then 12519 # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice 12520 12521 12522 if test "X$CC" != "X"; then 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 12524$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } 12525if ${ssp_cv_cc+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 ssp_old_cflags="$CFLAGS" 12529 CFLAGS="$CFLAGS -fstack-protector -Werror" 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533int 12534main () 12535{ 12536 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_c_try_compile "$LINENO"; then : 12542 ssp_cv_cc=yes 12543else 12544 ssp_cv_cc=no 12545fi 12546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12547 CFLAGS="$ssp_old_cflags" 12548 12549fi 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 12551$as_echo "$ssp_cv_cc" >&6; } 12552 if test $ssp_cv_cc = yes; then 12553 CFLAGS="$CFLAGS -fstack-protector" 12554 12555$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h 12556 12557 fi 12558 fi 12559 12560 12561 # XXX: Update the enable_ssp value now for output later? 12562fi 12563 12564if test "$GCC" = "yes"; then 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 12567$as_echo_n "checking gcc version... " >&6; } 12568 gccver=`$CC -dumpversion` 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccver" >&5 12570$as_echo "$gccver" >&6; } 12571 12572 CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic" 12573 12574 as_arg_v1=$gccver 12575as_arg_v2=4.3 12576awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12577case $? in #( 12578 1) : 12579 WARN_CFLAGS="-Wconversion" ;; #( 12580 0) : 12581 WARN_CFLAGS="-Wtraditional-conversion" ;; #( 12582 2) : 12583 WARN_CFLAGS="-Wtraditional-conversion" ;; #( 12584 *) : 12585 ;; 12586esac 12587 case $target in 12588 *linux* | *solaris*) 12589 LDFLAGS="$LDFLAGS -Wl,-z,defs" 12590 ;; 12591 *os2* | *cygwin* | *mingw*) 12592 APP_LDFLAGS="-no-undefined" 12593 ;; 12594 esac 12595fi 12596 12597 12598 12599 12600# Check whether --with-distro was given. 12601if test "${with_distro+set}" = set; then : 12602 withval=$with_distro; 12603fi 12604 12605if test "x$with_distro" != "x"; then 12606 DISTRO="$with_distro" 12607 12608 12609$as_echo "#define HAVE_DISTRO 1" >>confdefs.h 12610 12611 have_distro=yes 12612else 12613 DISTRO="not specified!" 12614fi 12615 if test x$have_distro = xyes; then 12616 HAVE_DISTRO_TRUE= 12617 HAVE_DISTRO_FALSE='#' 12618else 12619 HAVE_DISTRO_TRUE='#' 12620 HAVE_DISTRO_FALSE= 12621fi 12622 12623 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12625$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12626if ${ac_cv_c_bigendian+:} false; then : 12627 $as_echo_n "(cached) " >&6 12628else 12629 ac_cv_c_bigendian=unknown 12630 # See if we're dealing with a universal compiler. 12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633#ifndef __APPLE_CC__ 12634 not a universal capable compiler 12635 #endif 12636 typedef int dummy; 12637 12638_ACEOF 12639if ac_fn_c_try_compile "$LINENO"; then : 12640 12641 # Check for potential -arch flags. It is not universal unless 12642 # there are at least two -arch flags with different values. 12643 ac_arch= 12644 ac_prev= 12645 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12646 if test -n "$ac_prev"; then 12647 case $ac_word in 12648 i?86 | x86_64 | ppc | ppc64) 12649 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12650 ac_arch=$ac_word 12651 else 12652 ac_cv_c_bigendian=universal 12653 break 12654 fi 12655 ;; 12656 esac 12657 ac_prev= 12658 elif test "x$ac_word" = "x-arch"; then 12659 ac_prev=arch 12660 fi 12661 done 12662fi 12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12664 if test $ac_cv_c_bigendian = unknown; then 12665 # See if sys/param.h defines the BYTE_ORDER macro. 12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12667/* end confdefs.h. */ 12668#include <sys/types.h> 12669 #include <sys/param.h> 12670 12671int 12672main () 12673{ 12674#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12675 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12676 && LITTLE_ENDIAN) 12677 bogus endian macros 12678 #endif 12679 12680 ; 12681 return 0; 12682} 12683_ACEOF 12684if ac_fn_c_try_compile "$LINENO"; then : 12685 # It does; now see whether it defined to BIG_ENDIAN or not. 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688#include <sys/types.h> 12689 #include <sys/param.h> 12690 12691int 12692main () 12693{ 12694#if BYTE_ORDER != BIG_ENDIAN 12695 not big endian 12696 #endif 12697 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702if ac_fn_c_try_compile "$LINENO"; then : 12703 ac_cv_c_bigendian=yes 12704else 12705 ac_cv_c_bigendian=no 12706fi 12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12708fi 12709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12710 fi 12711 if test $ac_cv_c_bigendian = unknown; then 12712 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12714/* end confdefs.h. */ 12715#include <limits.h> 12716 12717int 12718main () 12719{ 12720#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12721 bogus endian macros 12722 #endif 12723 12724 ; 12725 return 0; 12726} 12727_ACEOF 12728if ac_fn_c_try_compile "$LINENO"; then : 12729 # It does; now see whether it defined to _BIG_ENDIAN or not. 12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732#include <limits.h> 12733 12734int 12735main () 12736{ 12737#ifndef _BIG_ENDIAN 12738 not big endian 12739 #endif 12740 12741 ; 12742 return 0; 12743} 12744_ACEOF 12745if ac_fn_c_try_compile "$LINENO"; then : 12746 ac_cv_c_bigendian=yes 12747else 12748 ac_cv_c_bigendian=no 12749fi 12750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12751fi 12752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12753 fi 12754 if test $ac_cv_c_bigendian = unknown; then 12755 # Compile a test program. 12756 if test "$cross_compiling" = yes; then : 12757 # Try to guess by grepping values from an object file. 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760short int ascii_mm[] = 12761 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12762 short int ascii_ii[] = 12763 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12764 int use_ascii (int i) { 12765 return ascii_mm[i] + ascii_ii[i]; 12766 } 12767 short int ebcdic_ii[] = 12768 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12769 short int ebcdic_mm[] = 12770 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12771 int use_ebcdic (int i) { 12772 return ebcdic_mm[i] + ebcdic_ii[i]; 12773 } 12774 extern int foo; 12775 12776int 12777main () 12778{ 12779return use_ascii (foo) == use_ebcdic (foo); 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_compile "$LINENO"; then : 12785 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12786 ac_cv_c_bigendian=yes 12787 fi 12788 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12789 if test "$ac_cv_c_bigendian" = unknown; then 12790 ac_cv_c_bigendian=no 12791 else 12792 # finding both strings is unlikely to happen, but who knows? 12793 ac_cv_c_bigendian=unknown 12794 fi 12795 fi 12796fi 12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12798else 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801$ac_includes_default 12802int 12803main () 12804{ 12805 12806 /* Are we little or big endian? From Harbison&Steele. */ 12807 union 12808 { 12809 long int l; 12810 char c[sizeof (long int)]; 12811 } u; 12812 u.l = 1; 12813 return u.c[sizeof (long int) - 1] == 1; 12814 12815 ; 12816 return 0; 12817} 12818_ACEOF 12819if ac_fn_c_try_run "$LINENO"; then : 12820 ac_cv_c_bigendian=no 12821else 12822 ac_cv_c_bigendian=yes 12823fi 12824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12825 conftest.$ac_objext conftest.beam conftest.$ac_ext 12826fi 12827 12828 fi 12829fi 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12831$as_echo "$ac_cv_c_bigendian" >&6; } 12832 case $ac_cv_c_bigendian in #( 12833 yes) 12834 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12835;; #( 12836 no) 12837 ;; #( 12838 universal) 12839 12840$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12841 12842 ;; #( 12843 *) 12844 as_fn_error $? "unknown endianness 12845 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12846 esac 12847 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12849$as_echo_n "checking for inline... " >&6; } 12850if ${ac_cv_c_inline+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 ac_cv_c_inline=no 12854for ac_kw in inline __inline__ __inline; do 12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12856/* end confdefs.h. */ 12857#ifndef __cplusplus 12858typedef int foo_t; 12859static $ac_kw foo_t static_foo () {return 0; } 12860$ac_kw foo_t foo () {return 0; } 12861#endif 12862 12863_ACEOF 12864if ac_fn_c_try_compile "$LINENO"; then : 12865 ac_cv_c_inline=$ac_kw 12866fi 12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12868 test "$ac_cv_c_inline" != no && break 12869done 12870 12871fi 12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12873$as_echo "$ac_cv_c_inline" >&6; } 12874 12875case $ac_cv_c_inline in 12876 inline | yes) ;; 12877 *) 12878 case $ac_cv_c_inline in 12879 no) ac_val=;; 12880 *) ac_val=$ac_cv_c_inline;; 12881 esac 12882 cat >>confdefs.h <<_ACEOF 12883#ifndef __cplusplus 12884#define inline $ac_val 12885#endif 12886_ACEOF 12887 ;; 12888esac 12889 12890 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12892$as_echo_n "checking for ANSI C header files... " >&6; } 12893if ${ac_cv_header_stdc+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898#include <stdlib.h> 12899#include <stdarg.h> 12900#include <string.h> 12901#include <float.h> 12902 12903int 12904main () 12905{ 12906 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911if ac_fn_c_try_compile "$LINENO"; then : 12912 ac_cv_header_stdc=yes 12913else 12914 ac_cv_header_stdc=no 12915fi 12916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12917 12918if test $ac_cv_header_stdc = yes; then 12919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922#include <string.h> 12923 12924_ACEOF 12925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12926 $EGREP "memchr" >/dev/null 2>&1; then : 12927 12928else 12929 ac_cv_header_stdc=no 12930fi 12931rm -f conftest* 12932 12933fi 12934 12935if test $ac_cv_header_stdc = yes; then 12936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12938/* end confdefs.h. */ 12939#include <stdlib.h> 12940 12941_ACEOF 12942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12943 $EGREP "free" >/dev/null 2>&1; then : 12944 12945else 12946 ac_cv_header_stdc=no 12947fi 12948rm -f conftest* 12949 12950fi 12951 12952if test $ac_cv_header_stdc = yes; then 12953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12954 if test "$cross_compiling" = yes; then : 12955 : 12956else 12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12958/* end confdefs.h. */ 12959#include <ctype.h> 12960#include <stdlib.h> 12961#if ((' ' & 0x0FF) == 0x020) 12962# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12963# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12964#else 12965# define ISLOWER(c) \ 12966 (('a' <= (c) && (c) <= 'i') \ 12967 || ('j' <= (c) && (c) <= 'r') \ 12968 || ('s' <= (c) && (c) <= 'z')) 12969# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12970#endif 12971 12972#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12973int 12974main () 12975{ 12976 int i; 12977 for (i = 0; i < 256; i++) 12978 if (XOR (islower (i), ISLOWER (i)) 12979 || toupper (i) != TOUPPER (i)) 12980 return 2; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_run "$LINENO"; then : 12985 12986else 12987 ac_cv_header_stdc=no 12988fi 12989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12990 conftest.$ac_objext conftest.beam conftest.$ac_ext 12991fi 12992 12993fi 12994fi 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12996$as_echo "$ac_cv_header_stdc" >&6; } 12997if test $ac_cv_header_stdc = yes; then 12998 12999$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13000 13001fi 13002 13003for ac_header in fcntl.h unistd.h byteswap.h sys/stat.h sys/time.h sys/timeb.h sys/types.h sys/utsname.h termios.h glob.h fenv.h 13004do : 13005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13008 cat >>confdefs.h <<_ACEOF 13009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13010_ACEOF 13011 13012fi 13013 13014done 13015 13016 13017for ac_func in strcasecmp strdup popen vsnprintf gettimeofday mkstemp fmemopen 13018do : 13019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13021if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13022 cat >>confdefs.h <<_ACEOF 13023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13024_ACEOF 13025 13026fi 13027done 13028 13029 13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 13031$as_echo_n "checking for library containing pow... " >&6; } 13032if ${ac_cv_search_pow+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 ac_func_search_save_LIBS=$LIBS 13036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13037/* end confdefs.h. */ 13038 13039/* Override any GCC internal prototype to avoid an error. 13040 Use char because int might match the return type of a GCC 13041 builtin and then its argument prototype would still apply. */ 13042#ifdef __cplusplus 13043extern "C" 13044#endif 13045char pow (); 13046int 13047main () 13048{ 13049return pow (); 13050 ; 13051 return 0; 13052} 13053_ACEOF 13054for ac_lib in '' m; do 13055 if test -z "$ac_lib"; then 13056 ac_res="none required" 13057 else 13058 ac_res=-l$ac_lib 13059 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13060 fi 13061 if ac_fn_c_try_link "$LINENO"; then : 13062 ac_cv_search_pow=$ac_res 13063fi 13064rm -f core conftest.err conftest.$ac_objext \ 13065 conftest$ac_exeext 13066 if ${ac_cv_search_pow+:} false; then : 13067 break 13068fi 13069done 13070if ${ac_cv_search_pow+:} false; then : 13071 13072else 13073 ac_cv_search_pow=no 13074fi 13075rm conftest.$ac_ext 13076LIBS=$ac_func_search_save_LIBS 13077fi 13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 13079$as_echo "$ac_cv_search_pow" >&6; } 13080ac_res=$ac_cv_search_pow 13081if test "$ac_res" != no; then : 13082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13083 13084fi 13085 13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 13087$as_echo_n "checking for library containing lrint... " >&6; } 13088if ${ac_cv_search_lrint+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090else 13091 ac_func_search_save_LIBS=$LIBS 13092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094 13095/* Override any GCC internal prototype to avoid an error. 13096 Use char because int might match the return type of a GCC 13097 builtin and then its argument prototype would still apply. */ 13098#ifdef __cplusplus 13099extern "C" 13100#endif 13101char lrint (); 13102int 13103main () 13104{ 13105return lrint (); 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110for ac_lib in '' m; do 13111 if test -z "$ac_lib"; then 13112 ac_res="none required" 13113 else 13114 ac_res=-l$ac_lib 13115 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13116 fi 13117 if ac_fn_c_try_link "$LINENO"; then : 13118 ac_cv_search_lrint=$ac_res 13119fi 13120rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext 13122 if ${ac_cv_search_lrint+:} false; then : 13123 break 13124fi 13125done 13126if ${ac_cv_search_lrint+:} false; then : 13127 13128else 13129 ac_cv_search_lrint=no 13130fi 13131rm conftest.$ac_ext 13132LIBS=$ac_func_search_save_LIBS 13133fi 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 13135$as_echo "$ac_cv_search_lrint" >&6; } 13136ac_res=$ac_cv_search_lrint 13137if test "$ac_res" != no; then : 13138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13139 13140fi 13141 13142for ac_func in lrint 13143do : 13144 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 13145if test "x$ac_cv_func_lrint" = xyes; then : 13146 cat >>confdefs.h <<_ACEOF 13147#define HAVE_LRINT 1 13148_ACEOF 13149 13150fi 13151done 13152 13153 13154# Check whether --enable-largefile was given. 13155if test "${enable_largefile+set}" = set; then : 13156 enableval=$enable_largefile; 13157fi 13158 13159if test "$enable_largefile" != no; then 13160 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13162$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13163if ${ac_cv_sys_largefile_CC+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 ac_cv_sys_largefile_CC=no 13167 if test "$GCC" != yes; then 13168 ac_save_CC=$CC 13169 while :; do 13170 # IRIX 6.2 and later do not support large files by default, 13171 # so use the C compiler's -n32 option if that helps. 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13173/* end confdefs.h. */ 13174#include <sys/types.h> 13175 /* Check that off_t can represent 2**63 - 1 correctly. 13176 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13177 since some C++ compilers masquerading as C compilers 13178 incorrectly reject 9223372036854775807. */ 13179#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13181 && LARGE_OFF_T % 2147483647 == 1) 13182 ? 1 : -1]; 13183int 13184main () 13185{ 13186 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191 if ac_fn_c_try_compile "$LINENO"; then : 13192 break 13193fi 13194rm -f core conftest.err conftest.$ac_objext 13195 CC="$CC -n32" 13196 if ac_fn_c_try_compile "$LINENO"; then : 13197 ac_cv_sys_largefile_CC=' -n32'; break 13198fi 13199rm -f core conftest.err conftest.$ac_objext 13200 break 13201 done 13202 CC=$ac_save_CC 13203 rm -f conftest.$ac_ext 13204 fi 13205fi 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13207$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13208 if test "$ac_cv_sys_largefile_CC" != no; then 13209 CC=$CC$ac_cv_sys_largefile_CC 13210 fi 13211 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13213$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13214if ${ac_cv_sys_file_offset_bits+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 while :; do 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13219/* end confdefs.h. */ 13220#include <sys/types.h> 13221 /* Check that off_t can represent 2**63 - 1 correctly. 13222 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13223 since some C++ compilers masquerading as C compilers 13224 incorrectly reject 9223372036854775807. */ 13225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13227 && LARGE_OFF_T % 2147483647 == 1) 13228 ? 1 : -1]; 13229int 13230main () 13231{ 13232 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_c_try_compile "$LINENO"; then : 13238 ac_cv_sys_file_offset_bits=no; break 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13242/* end confdefs.h. */ 13243#define _FILE_OFFSET_BITS 64 13244#include <sys/types.h> 13245 /* Check that off_t can represent 2**63 - 1 correctly. 13246 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13247 since some C++ compilers masquerading as C compilers 13248 incorrectly reject 9223372036854775807. */ 13249#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13251 && LARGE_OFF_T % 2147483647 == 1) 13252 ? 1 : -1]; 13253int 13254main () 13255{ 13256 13257 ; 13258 return 0; 13259} 13260_ACEOF 13261if ac_fn_c_try_compile "$LINENO"; then : 13262 ac_cv_sys_file_offset_bits=64; break 13263fi 13264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13265 ac_cv_sys_file_offset_bits=unknown 13266 break 13267done 13268fi 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13270$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13271case $ac_cv_sys_file_offset_bits in #( 13272 no | unknown) ;; 13273 *) 13274cat >>confdefs.h <<_ACEOF 13275#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13276_ACEOF 13277;; 13278esac 13279rm -rf conftest* 13280 if test $ac_cv_sys_file_offset_bits = unknown; then 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13282$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13283if ${ac_cv_sys_large_files+:} false; then : 13284 $as_echo_n "(cached) " >&6 13285else 13286 while :; do 13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13288/* end confdefs.h. */ 13289#include <sys/types.h> 13290 /* Check that off_t can represent 2**63 - 1 correctly. 13291 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13292 since some C++ compilers masquerading as C compilers 13293 incorrectly reject 9223372036854775807. */ 13294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13296 && LARGE_OFF_T % 2147483647 == 1) 13297 ? 1 : -1]; 13298int 13299main () 13300{ 13301 13302 ; 13303 return 0; 13304} 13305_ACEOF 13306if ac_fn_c_try_compile "$LINENO"; then : 13307 ac_cv_sys_large_files=no; break 13308fi 13309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312#define _LARGE_FILES 1 13313#include <sys/types.h> 13314 /* Check that off_t can represent 2**63 - 1 correctly. 13315 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13316 since some C++ compilers masquerading as C compilers 13317 incorrectly reject 9223372036854775807. */ 13318#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13320 && LARGE_OFF_T % 2147483647 == 1) 13321 ? 1 : -1]; 13322int 13323main () 13324{ 13325 13326 ; 13327 return 0; 13328} 13329_ACEOF 13330if ac_fn_c_try_compile "$LINENO"; then : 13331 ac_cv_sys_large_files=1; break 13332fi 13333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13334 ac_cv_sys_large_files=unknown 13335 break 13336done 13337fi 13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13339$as_echo "$ac_cv_sys_large_files" >&6; } 13340case $ac_cv_sys_large_files in #( 13341 no | unknown) ;; 13342 *) 13343cat >>confdefs.h <<_ACEOF 13344#define _LARGE_FILES $ac_cv_sys_large_files 13345_ACEOF 13346;; 13347esac 13348rm -rf conftest* 13349 fi 13350 13351 13352fi 13353 13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13355$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13356if ${ac_cv_sys_largefile_source+:} false; then : 13357 $as_echo_n "(cached) " >&6 13358else 13359 while :; do 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362#include <sys/types.h> /* for off_t */ 13363 #include <stdio.h> 13364int 13365main () 13366{ 13367int (*fp) (FILE *, off_t, int) = fseeko; 13368 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13369 ; 13370 return 0; 13371} 13372_ACEOF 13373if ac_fn_c_try_link "$LINENO"; then : 13374 ac_cv_sys_largefile_source=no; break 13375fi 13376rm -f core conftest.err conftest.$ac_objext \ 13377 conftest$ac_exeext conftest.$ac_ext 13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13379/* end confdefs.h. */ 13380#define _LARGEFILE_SOURCE 1 13381#include <sys/types.h> /* for off_t */ 13382 #include <stdio.h> 13383int 13384main () 13385{ 13386int (*fp) (FILE *, off_t, int) = fseeko; 13387 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13388 ; 13389 return 0; 13390} 13391_ACEOF 13392if ac_fn_c_try_link "$LINENO"; then : 13393 ac_cv_sys_largefile_source=1; break 13394fi 13395rm -f core conftest.err conftest.$ac_objext \ 13396 conftest$ac_exeext conftest.$ac_ext 13397 ac_cv_sys_largefile_source=unknown 13398 break 13399done 13400fi 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13402$as_echo "$ac_cv_sys_largefile_source" >&6; } 13403case $ac_cv_sys_largefile_source in #( 13404 no | unknown) ;; 13405 *) 13406cat >>confdefs.h <<_ACEOF 13407#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13408_ACEOF 13409;; 13410esac 13411rm -rf conftest* 13412 13413# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13414# in glibc 2.1.3, but that breaks too many other things. 13415# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13416if test $ac_cv_sys_largefile_source != unknown; then 13417 13418$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13419 13420fi 13421 13422if test "$ac_cv_sys_file_offset_bits" = "64"; then 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing _LARGEFILE_SOURCE to be safe since off_t is 64 bits" >&5 13424$as_echo "$as_me: Forcing _LARGEFILE_SOURCE to be safe since off_t is 64 bits" >&6;} 13425 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 13426 13427fi 13428 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool should be silenced" >&5 13430$as_echo_n "checking whether libtool should be silenced... " >&6; } 13431# Check whether --enable-silent-libtool was given. 13432if test "${enable_silent_libtool+set}" = set; then : 13433 enableval=$enable_silent_libtool; 13434else 13435 enable_silent_libtool=yes 13436fi 13437 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_silent_libtool" >&5 13439$as_echo "$enable_silent_libtool" >&6; } 13440if test "$enable_silent_libtool" = "yes"; then 13441 LIBTOOLFLAGS=--silent 13442fi 13443 13444 13445using_win32_ltdl="no" 13446if test "$using_libltdl" != "no"; then 13447 case $target in 13448 *mingw*) 13449 13450$as_echo "#define HAVE_WIN32_LTDL_H 1" >>confdefs.h 13451 13452 LIBLTDL="" 13453 using_win32_ltdl="yes" 13454 ;; 13455 *) 13456 for ac_header in ltdl.h 13457do : 13458 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 13459if test "x$ac_cv_header_ltdl_h" = xyes; then : 13460 cat >>confdefs.h <<_ACEOF 13461#define HAVE_LTDL_H 1 13462_ACEOF 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 13464$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 13465if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 13466 $as_echo_n "(cached) " >&6 13467else 13468 ac_check_lib_save_LIBS=$LIBS 13469LIBS="-lltdl $LIBS" 13470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13471/* end confdefs.h. */ 13472 13473/* Override any GCC internal prototype to avoid an error. 13474 Use char because int might match the return type of a GCC 13475 builtin and then its argument prototype would still apply. */ 13476#ifdef __cplusplus 13477extern "C" 13478#endif 13479char lt_dlinit (); 13480int 13481main () 13482{ 13483return lt_dlinit (); 13484 ; 13485 return 0; 13486} 13487_ACEOF 13488if ac_fn_c_try_link "$LINENO"; then : 13489 ac_cv_lib_ltdl_lt_dlinit=yes 13490else 13491 ac_cv_lib_ltdl_lt_dlinit=no 13492fi 13493rm -f core conftest.err conftest.$ac_objext \ 13494 conftest$ac_exeext conftest.$ac_ext 13495LIBS=$ac_check_lib_save_LIBS 13496fi 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 13498$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 13499if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 13500 LIBLTDL="$LIBLTDL -lltdl" 13501else 13502 using_libltdl=no 13503fi 13504 13505else 13506 using_libltdl=no 13507fi 13508 13509done 13510 13511 ;; 13512 esac 13513fi 13514if test "$using_libltdl" = yes; then 13515 13516$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h 13517 13518fi 13519 if test x$using_libltdl = xyes -a x$using_win32_ltdl = xno; then 13520 HAVE_LIBLTDL_TRUE= 13521 HAVE_LIBLTDL_FALSE='#' 13522else 13523 HAVE_LIBLTDL_TRUE='#' 13524 HAVE_LIBLTDL_FALSE= 13525fi 13526 13527 if test x$using_win32_ltdl = xyes; then 13528 HAVE_WIN32_LTDL_TRUE= 13529 HAVE_WIN32_LTDL_FALSE='#' 13530else 13531 HAVE_WIN32_LTDL_TRUE='#' 13532 HAVE_WIN32_LTDL_FALSE= 13533fi 13534 13535 13536 13537 13538 13539 OPENMP_CFLAGS= 13540 # Check whether --enable-openmp was given. 13541if test "${enable_openmp+set}" = set; then : 13542 enableval=$enable_openmp; 13543fi 13544 13545 if test "$enable_openmp" != no; then 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 13547$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 13548if ${ac_cv_prog_c_openmp+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553 13554#ifndef _OPENMP 13555 choke me 13556#endif 13557#include <omp.h> 13558int main () { return omp_get_num_threads (); } 13559 13560_ACEOF 13561if ac_fn_c_try_link "$LINENO"; then : 13562 ac_cv_prog_c_openmp='none needed' 13563else 13564 ac_cv_prog_c_openmp='unsupported' 13565 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 13566 -Popenmp --openmp; do 13567 ac_save_CFLAGS=$CFLAGS 13568 CFLAGS="$CFLAGS $ac_option" 13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13570/* end confdefs.h. */ 13571 13572#ifndef _OPENMP 13573 choke me 13574#endif 13575#include <omp.h> 13576int main () { return omp_get_num_threads (); } 13577 13578_ACEOF 13579if ac_fn_c_try_link "$LINENO"; then : 13580 ac_cv_prog_c_openmp=$ac_option 13581fi 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext conftest.$ac_ext 13584 CFLAGS=$ac_save_CFLAGS 13585 if test "$ac_cv_prog_c_openmp" != unsupported; then 13586 break 13587 fi 13588 done 13589fi 13590rm -f core conftest.err conftest.$ac_objext \ 13591 conftest$ac_exeext conftest.$ac_ext 13592fi 13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 13594$as_echo "$ac_cv_prog_c_openmp" >&6; } 13595 case $ac_cv_prog_c_openmp in #( 13596 "none needed" | unsupported) 13597 ;; #( 13598 *) 13599 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 13600 esac 13601 fi 13602 13603 13604if test "x$OPENMP_CFLAGS" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool version" >&5 13605$as_echo_n "checking for libtool version... " >&6; } 13606 lt_version="`grep '^VERSION' $srcdir/ltmain.sh | sed -e 's/VERSION\=//g;s/ .*//g;s/"//g'`" 13607 as_arg_v1=$lt_version 13608as_arg_v2=2.4 13609awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13610case $? in #( 13611 1) : 13612 if test "$GCC" = "yes"; then : 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_version, needs OpenMP linker workaround" >&5 13614$as_echo "$lt_version, needs OpenMP linker workaround" >&6; } 13615 GOMP_LIBS="-lgomp" 13616else 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_version and not GCC, deactivating OpenMP" >&5 13618$as_echo "$lt_version and not GCC, deactivating OpenMP" >&6; } 13619 OPENMP_CFLAGS="" 13620fi ;; #( 13621 0) : 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_version, OK" >&5 13623$as_echo "$lt_version, OK" >&6; } ;; #( 13624 2) : 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_version, OK" >&5 13626$as_echo "$lt_version, OK" >&6; } ;; #( 13627 *) : 13628 ;; 13629esac 13630fi 13631 CFLAGS="$CFLAGS $OPENMP_CFLAGS" 13632 13633 13634 13635# Check whether --with-magic was given. 13636if test "${with_magic+set}" = set; then : 13637 withval=$with_magic; 13638fi 13639 13640using_magic=no 13641if test "$with_magic" != "no"; then 13642 using_magic=yes 13643 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 13644if test "x$ac_cv_header_magic_h" = xyes; then : 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 13646$as_echo_n "checking for magic_open in -lmagic... " >&6; } 13647if ${ac_cv_lib_magic_magic_open+:} false; then : 13648 $as_echo_n "(cached) " >&6 13649else 13650 ac_check_lib_save_LIBS=$LIBS 13651LIBS="-lmagic $LIBS" 13652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13653/* end confdefs.h. */ 13654 13655/* Override any GCC internal prototype to avoid an error. 13656 Use char because int might match the return type of a GCC 13657 builtin and then its argument prototype would still apply. */ 13658#ifdef __cplusplus 13659extern "C" 13660#endif 13661char magic_open (); 13662int 13663main () 13664{ 13665return magic_open (); 13666 ; 13667 return 0; 13668} 13669_ACEOF 13670if ac_fn_c_try_link "$LINENO"; then : 13671 ac_cv_lib_magic_magic_open=yes 13672else 13673 ac_cv_lib_magic_magic_open=no 13674fi 13675rm -f core conftest.err conftest.$ac_objext \ 13676 conftest$ac_exeext conftest.$ac_ext 13677LIBS=$ac_check_lib_save_LIBS 13678fi 13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 13680$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 13681if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 13682 MAGIC_LIBS="-lmagic" 13683else 13684 using_magic=no 13685fi 13686 13687else 13688 using_magic=no 13689fi 13690 13691 13692 if test "$with_magic" = "yes" -a "$using_magic" = "no"; then 13693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13695as_fn_error $? "cannot find magic 13696See \`config.log' for more details" "$LINENO" 5; } 13697 fi 13698fi 13699if test "$using_magic" = yes; then 13700 13701$as_echo "#define HAVE_MAGIC 1" >>confdefs.h 13702 13703fi 13704 if test x$using_magic = xyes; then 13705 HAVE_MAGIC_TRUE= 13706 HAVE_MAGIC_FALSE='#' 13707else 13708 HAVE_MAGIC_TRUE='#' 13709 HAVE_MAGIC_FALSE= 13710fi 13711 13712 13713 13714 13715 13716 13717# Check whether --with-png was given. 13718if test "${with_png+set}" = set; then : 13719 withval=$with_png; 13720fi 13721 13722using_png=no 13723if test "$with_png" != "no"; then 13724 for ac_header in png.h libpng/png.h 13725do : 13726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13727ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13729 cat >>confdefs.h <<_ACEOF 13730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13731_ACEOF 13732 using_png=yes 13733fi 13734 13735done 13736 13737 if test "$using_png" = "yes"; then 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_rows in -lpng" >&5 13739$as_echo_n "checking for png_set_rows in -lpng... " >&6; } 13740if ${ac_cv_lib_png_png_set_rows+:} false; then : 13741 $as_echo_n "(cached) " >&6 13742else 13743 ac_check_lib_save_LIBS=$LIBS 13744LIBS="-lpng -lz $LIBS" 13745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747 13748/* Override any GCC internal prototype to avoid an error. 13749 Use char because int might match the return type of a GCC 13750 builtin and then its argument prototype would still apply. */ 13751#ifdef __cplusplus 13752extern "C" 13753#endif 13754char png_set_rows (); 13755int 13756main () 13757{ 13758return png_set_rows (); 13759 ; 13760 return 0; 13761} 13762_ACEOF 13763if ac_fn_c_try_link "$LINENO"; then : 13764 ac_cv_lib_png_png_set_rows=yes 13765else 13766 ac_cv_lib_png_png_set_rows=no 13767fi 13768rm -f core conftest.err conftest.$ac_objext \ 13769 conftest$ac_exeext conftest.$ac_ext 13770LIBS=$ac_check_lib_save_LIBS 13771fi 13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_rows" >&5 13773$as_echo "$ac_cv_lib_png_png_set_rows" >&6; } 13774if test "x$ac_cv_lib_png_png_set_rows" = xyes; then : 13775 PNG_LIBS="$PNG_LIBS -lpng -lz" 13776else 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_rows in -lpng12" >&5 13778$as_echo_n "checking for png_set_rows in -lpng12... " >&6; } 13779if ${ac_cv_lib_png12_png_set_rows+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 ac_check_lib_save_LIBS=$LIBS 13783LIBS="-lpng12 -lz $LIBS" 13784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786 13787/* Override any GCC internal prototype to avoid an error. 13788 Use char because int might match the return type of a GCC 13789 builtin and then its argument prototype would still apply. */ 13790#ifdef __cplusplus 13791extern "C" 13792#endif 13793char png_set_rows (); 13794int 13795main () 13796{ 13797return png_set_rows (); 13798 ; 13799 return 0; 13800} 13801_ACEOF 13802if ac_fn_c_try_link "$LINENO"; then : 13803 ac_cv_lib_png12_png_set_rows=yes 13804else 13805 ac_cv_lib_png12_png_set_rows=no 13806fi 13807rm -f core conftest.err conftest.$ac_objext \ 13808 conftest$ac_exeext conftest.$ac_ext 13809LIBS=$ac_check_lib_save_LIBS 13810fi 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_set_rows" >&5 13812$as_echo "$ac_cv_lib_png12_png_set_rows" >&6; } 13813if test "x$ac_cv_lib_png12_png_set_rows" = xyes; then : 13814 PNG_LIBS="$PNG_LIBS -lpng12 -lz" 13815else 13816 using_png=no 13817fi 13818 13819fi 13820 13821 fi 13822 if test "$with_png" = "yes" -a "$using_png" = "no"; then 13823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13825as_fn_error $? "cannot find png 13826See \`config.log' for more details" "$LINENO" 5; } 13827 fi 13828fi 13829if test "$using_png" = yes; then 13830 13831$as_echo "#define HAVE_PNG 1" >>confdefs.h 13832 13833fi 13834 if test x$using_png = xyes; then 13835 HAVE_PNG_TRUE= 13836 HAVE_PNG_FALSE='#' 13837else 13838 HAVE_PNG_TRUE='#' 13839 HAVE_PNG_FALSE= 13840fi 13841 13842 13843 13844 13845 13846 13847# Check whether --with-ladspa was given. 13848if test "${with_ladspa+set}" = set; then : 13849 withval=$with_ladspa; 13850fi 13851 13852using_ladspa=no 13853if test "$with_ladspa" != "no" -a "$using_libltdl" = "yes"; then 13854 using_ladspa=yes 13855 13856$as_echo "#define HAVE_LADSPA_H 1" >>confdefs.h 13857 13858fi 13859LADSPA_PATH=${libdir}/ladspa 13860 13861# Check whether --with-ladspa-path was given. 13862if test "${with_ladspa_path+set}" = set; then : 13863 withval=$with_ladspa_path; 13864fi 13865 13866 13867 13868 13869 13870 13871# Check whether --with-mad was given. 13872if test "${with_mad+set}" = set; then : 13873 withval=$with_mad; 13874fi 13875 13876using_mad=no 13877if test "$with_mad" != "no"; then 13878 using_mad=yes 13879 for ac_header in mad.h 13880do : 13881 ac_fn_c_check_header_mongrel "$LINENO" "mad.h" "ac_cv_header_mad_h" "$ac_includes_default" 13882if test "x$ac_cv_header_mad_h" = xyes; then : 13883 cat >>confdefs.h <<_ACEOF 13884#define HAVE_MAD_H 1 13885_ACEOF 13886 13887else 13888 using_mad=no 13889fi 13890 13891done 13892 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen mad" >&5 13894$as_echo_n "checking whether to dlopen mad... " >&6; } 13895 # Check whether --enable-dl_mad was given. 13896if test "${enable_dl_mad+set}" = set; then : 13897 enableval=$enable_dl_mad; enable_dl_mad=$enableval 13898else 13899 enable_dl_mad=no 13900fi 13901 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dl_mad" >&5 13903$as_echo "$enable_dl_mad" >&6; } 13904 if test "x$using_libltdl" = "xyes" -a "x$enable_dl_mad" = "xyes"; then 13905 13906$as_echo "#define DL_MAD 1" >>confdefs.h 13907 13908 else 13909 enable_dl_mad="no" 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_stream_buffer in -lmad" >&5 13911$as_echo_n "checking for mad_stream_buffer in -lmad... " >&6; } 13912if ${ac_cv_lib_mad_mad_stream_buffer+:} false; then : 13913 $as_echo_n "(cached) " >&6 13914else 13915 ac_check_lib_save_LIBS=$LIBS 13916LIBS="-lmad $LIBS" 13917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919 13920/* Override any GCC internal prototype to avoid an error. 13921 Use char because int might match the return type of a GCC 13922 builtin and then its argument prototype would still apply. */ 13923#ifdef __cplusplus 13924extern "C" 13925#endif 13926char mad_stream_buffer (); 13927int 13928main () 13929{ 13930return mad_stream_buffer (); 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO"; then : 13936 ac_cv_lib_mad_mad_stream_buffer=yes 13937else 13938 ac_cv_lib_mad_mad_stream_buffer=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext \ 13941 conftest$ac_exeext conftest.$ac_ext 13942LIBS=$ac_check_lib_save_LIBS 13943fi 13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mad_mad_stream_buffer" >&5 13945$as_echo "$ac_cv_lib_mad_mad_stream_buffer" >&6; } 13946if test "x$ac_cv_lib_mad_mad_stream_buffer" = xyes; then : 13947 MP3_LIBS="$MP3_LIBS -lmad" 13948else 13949 using_mad=no 13950fi 13951 13952 if test "$with_mad" = "yes" -a "$using_mad" = "no"; then 13953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13955as_fn_error $? "cannot find libmad 13956See \`config.log' for more details" "$LINENO" 5; } 13957 fi 13958 fi 13959fi 13960 13961 13962 13963 13964# Check whether --with-id3tag was given. 13965if test "${with_id3tag+set}" = set; then : 13966 withval=$with_id3tag; 13967fi 13968 13969using_id3tag=no 13970if test "$with_id3tag" != "no"; then 13971 using_id3tag=yes 13972 ac_fn_c_check_header_mongrel "$LINENO" "id3tag.h" "ac_cv_header_id3tag_h" "$ac_includes_default" 13973if test "x$ac_cv_header_id3tag_h" = xyes; then : 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3_file_open in -lid3tag" >&5 13975$as_echo_n "checking for id3_file_open in -lid3tag... " >&6; } 13976if ${ac_cv_lib_id3tag_id3_file_open+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 ac_check_lib_save_LIBS=$LIBS 13980LIBS="-lid3tag -lz $LIBS" 13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983 13984/* Override any GCC internal prototype to avoid an error. 13985 Use char because int might match the return type of a GCC 13986 builtin and then its argument prototype would still apply. */ 13987#ifdef __cplusplus 13988extern "C" 13989#endif 13990char id3_file_open (); 13991int 13992main () 13993{ 13994return id3_file_open (); 13995 ; 13996 return 0; 13997} 13998_ACEOF 13999if ac_fn_c_try_link "$LINENO"; then : 14000 ac_cv_lib_id3tag_id3_file_open=yes 14001else 14002 ac_cv_lib_id3tag_id3_file_open=no 14003fi 14004rm -f core conftest.err conftest.$ac_objext \ 14005 conftest$ac_exeext conftest.$ac_ext 14006LIBS=$ac_check_lib_save_LIBS 14007fi 14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3tag_id3_file_open" >&5 14009$as_echo "$ac_cv_lib_id3tag_id3_file_open" >&6; } 14010if test "x$ac_cv_lib_id3tag_id3_file_open" = xyes; then : 14011 MP3_LIBS="$MP3_LIBS -lid3tag -lz" 14012else 14013 using_id3tag=no 14014fi 14015 14016else 14017 using_id3tag=no 14018fi 14019 14020 14021 if test "$with_id3tag" = "yes" -a "$using_id3tag" = "no"; then 14022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14024as_fn_error $? "cannot find id3tag 14025See \`config.log' for more details" "$LINENO" 5; } 14026 fi 14027fi 14028if test "$using_id3tag" = yes; then 14029 14030$as_echo "#define HAVE_ID3TAG 1" >>confdefs.h 14031 14032fi 14033 if test x$using_id3tag = xyes; then 14034 HAVE_ID3TAG_TRUE= 14035 HAVE_ID3TAG_FALSE='#' 14036else 14037 HAVE_ID3TAG_TRUE='#' 14038 HAVE_ID3TAG_FALSE= 14039fi 14040 14041 14042 14043 14044 14045# Check whether --with-lame was given. 14046if test "${with_lame+set}" = set; then : 14047 withval=$with_lame; 14048fi 14049 14050using_lame=no 14051if test "$with_lame" != "no"; then 14052 using_lame=yes 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen lame" >&5 14054$as_echo_n "checking whether to dlopen lame... " >&6; } 14055 # Check whether --enable-dl_lame was given. 14056if test "${enable_dl_lame+set}" = set; then : 14057 enableval=$enable_dl_lame; enable_dl_lame=$enableval 14058else 14059 enable_dl_lame=no 14060fi 14061 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dl_lame" >&5 14063$as_echo "$enable_dl_lame" >&6; } 14064 if test "x$using_libltdl" = "xyes" -a "x$enable_dl_lame" = "xyes"; then 14065 14066$as_echo "#define DL_LAME 1" >>confdefs.h 14067 14068 else 14069 enable_dl_lame="no" 14070 for ac_header in lame/lame.h 14071do : 14072 ac_fn_c_check_header_mongrel "$LINENO" "lame/lame.h" "ac_cv_header_lame_lame_h" "$ac_includes_default" 14073if test "x$ac_cv_header_lame_lame_h" = xyes; then : 14074 cat >>confdefs.h <<_ACEOF 14075#define HAVE_LAME_LAME_H 1 14076_ACEOF 14077 14078else 14079 for ac_header in lame.h 14080do : 14081 ac_fn_c_check_header_mongrel "$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default" 14082if test "x$ac_cv_header_lame_h" = xyes; then : 14083 cat >>confdefs.h <<_ACEOF 14084#define HAVE_LAME_H 1 14085_ACEOF 14086 14087else 14088 using_lame=no 14089fi 14090 14091done 14092 14093fi 14094 14095done 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_get_lametag_frame in -lmp3lame" >&5 14098$as_echo_n "checking for lame_get_lametag_frame in -lmp3lame... " >&6; } 14099if ${ac_cv_lib_mp3lame_lame_get_lametag_frame+:} false; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 ac_check_lib_save_LIBS=$LIBS 14103LIBS="-lmp3lame $LIBS" 14104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106 14107/* Override any GCC internal prototype to avoid an error. 14108 Use char because int might match the return type of a GCC 14109 builtin and then its argument prototype would still apply. */ 14110#ifdef __cplusplus 14111extern "C" 14112#endif 14113char lame_get_lametag_frame (); 14114int 14115main () 14116{ 14117return lame_get_lametag_frame (); 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 ac_cv_lib_mp3lame_lame_get_lametag_frame=yes 14124else 14125 ac_cv_lib_mp3lame_lame_get_lametag_frame=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext \ 14128 conftest$ac_exeext conftest.$ac_ext 14129LIBS=$ac_check_lib_save_LIBS 14130fi 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_get_lametag_frame" >&5 14132$as_echo "$ac_cv_lib_mp3lame_lame_get_lametag_frame" >&6; } 14133if test "x$ac_cv_lib_mp3lame_lame_get_lametag_frame" = xyes; then : 14134 MP3_LIBS="$MP3_LIBS -lmp3lame" 14135else 14136 using_lame=no 14137fi 14138 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag_set_fieldvalue in -lmp3lame" >&5 14140$as_echo_n "checking for id3tag_set_fieldvalue in -lmp3lame... " >&6; } 14141if ${ac_cv_lib_mp3lame_id3tag_set_fieldvalue+:} false; then : 14142 $as_echo_n "(cached) " >&6 14143else 14144 ac_check_lib_save_LIBS=$LIBS 14145LIBS="-lmp3lame $LIBS" 14146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14147/* end confdefs.h. */ 14148 14149/* Override any GCC internal prototype to avoid an error. 14150 Use char because int might match the return type of a GCC 14151 builtin and then its argument prototype would still apply. */ 14152#ifdef __cplusplus 14153extern "C" 14154#endif 14155char id3tag_set_fieldvalue (); 14156int 14157main () 14158{ 14159return id3tag_set_fieldvalue (); 14160 ; 14161 return 0; 14162} 14163_ACEOF 14164if ac_fn_c_try_link "$LINENO"; then : 14165 ac_cv_lib_mp3lame_id3tag_set_fieldvalue=yes 14166else 14167 ac_cv_lib_mp3lame_id3tag_set_fieldvalue=no 14168fi 14169rm -f core conftest.err conftest.$ac_objext \ 14170 conftest$ac_exeext conftest.$ac_ext 14171LIBS=$ac_check_lib_save_LIBS 14172fi 14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_id3tag_set_fieldvalue" >&5 14174$as_echo "$ac_cv_lib_mp3lame_id3tag_set_fieldvalue" >&6; } 14175if test "x$ac_cv_lib_mp3lame_id3tag_set_fieldvalue" = xyes; then : 14176 using_lame=$using_lame 14177fi 14178 14179 if test "$ac_cv_lib_mp3lame_id3tag_set_fieldvalue" = yes; then 14180 14181$as_echo "#define HAVE_LAME_ID3TAG 1" >>confdefs.h 14182 14183 fi 14184 if test "$with_lame" = "yes" -a "$using_lame" = "no"; then 14185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14187as_fn_error $? "cannot find LAME 14188See \`config.log' for more details" "$LINENO" 5; } 14189 fi 14190 fi 14191fi 14192 14193 14194 14195 14196# Check whether --with-twolame was given. 14197if test "${with_twolame+set}" = set; then : 14198 withval=$with_twolame; 14199fi 14200 14201using_twolame=no 14202if test "$with_twolame" != "no"; then 14203 using_twolame=yes 14204 for ac_header in twolame.h 14205do : 14206 ac_fn_c_check_header_mongrel "$LINENO" "twolame.h" "ac_cv_header_twolame_h" "$ac_includes_default" 14207if test "x$ac_cv_header_twolame_h" = xyes; then : 14208 cat >>confdefs.h <<_ACEOF 14209#define HAVE_TWOLAME_H 1 14210_ACEOF 14211 14212else 14213 using_twolame=no 14214fi 14215 14216done 14217 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen twolame" >&5 14219$as_echo_n "checking whether to dlopen twolame... " >&6; } 14220 # Check whether --enable-dl_twolame was given. 14221if test "${enable_dl_twolame+set}" = set; then : 14222 enableval=$enable_dl_twolame; enable_dl_twolame=$enableval 14223else 14224 enable_dl_twolame=no 14225fi 14226 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dl_twolame" >&5 14228$as_echo "$enable_dl_twolame" >&6; } 14229 if test "x$using_libltdl" = "xyes" -a "x$enable_dl_twolame" = "xyes"; then 14230 14231$as_echo "#define DL_TWOLAME 1" >>confdefs.h 14232 14233 else 14234 enable_dl_twolame="no" 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for twolame_init in -ltwolame" >&5 14236$as_echo_n "checking for twolame_init in -ltwolame... " >&6; } 14237if ${ac_cv_lib_twolame_twolame_init+:} false; then : 14238 $as_echo_n "(cached) " >&6 14239else 14240 ac_check_lib_save_LIBS=$LIBS 14241LIBS="-ltwolame $LIBS" 14242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244 14245/* Override any GCC internal prototype to avoid an error. 14246 Use char because int might match the return type of a GCC 14247 builtin and then its argument prototype would still apply. */ 14248#ifdef __cplusplus 14249extern "C" 14250#endif 14251char twolame_init (); 14252int 14253main () 14254{ 14255return twolame_init (); 14256 ; 14257 return 0; 14258} 14259_ACEOF 14260if ac_fn_c_try_link "$LINENO"; then : 14261 ac_cv_lib_twolame_twolame_init=yes 14262else 14263 ac_cv_lib_twolame_twolame_init=no 14264fi 14265rm -f core conftest.err conftest.$ac_objext \ 14266 conftest$ac_exeext conftest.$ac_ext 14267LIBS=$ac_check_lib_save_LIBS 14268fi 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_twolame_twolame_init" >&5 14270$as_echo "$ac_cv_lib_twolame_twolame_init" >&6; } 14271if test "x$ac_cv_lib_twolame_twolame_init" = xyes; then : 14272 MP3_LIBS="$MP3_LIBS -ltwolame" 14273else 14274 using_twolame=no 14275fi 14276 14277 if test "$with_twolame" = "yes" -a "$using_twolame" = "no"; then 14278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14280as_fn_error $? "cannot find libtwolame 14281See \`config.log' for more details" "$LINENO" 5; } 14282 fi 14283 fi 14284fi 14285 14286# Check for libgsm 14287found_libgsm=yes 14288for ac_header in gsm/gsm.h 14289do : 14290 ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default" 14291if test "x$ac_cv_header_gsm_gsm_h" = xyes; then : 14292 cat >>confdefs.h <<_ACEOF 14293#define HAVE_GSM_GSM_H 1 14294_ACEOF 14295 14296else 14297 for ac_header in gsm.h 14298do : 14299 ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default" 14300if test "x$ac_cv_header_gsm_h" = xyes; then : 14301 cat >>confdefs.h <<_ACEOF 14302#define HAVE_GSM_H 1 14303_ACEOF 14304 14305else 14306 found_libgsm=no 14307fi 14308 14309done 14310 14311fi 14312 14313done 14314 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5 14316$as_echo_n "checking for gsm_create in -lgsm... " >&6; } 14317if ${ac_cv_lib_gsm_gsm_create+:} false; then : 14318 $as_echo_n "(cached) " >&6 14319else 14320 ac_check_lib_save_LIBS=$LIBS 14321LIBS="-lgsm $LIBS" 14322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14323/* end confdefs.h. */ 14324 14325/* Override any GCC internal prototype to avoid an error. 14326 Use char because int might match the return type of a GCC 14327 builtin and then its argument prototype would still apply. */ 14328#ifdef __cplusplus 14329extern "C" 14330#endif 14331char gsm_create (); 14332int 14333main () 14334{ 14335return gsm_create (); 14336 ; 14337 return 0; 14338} 14339_ACEOF 14340if ac_fn_c_try_link "$LINENO"; then : 14341 ac_cv_lib_gsm_gsm_create=yes 14342else 14343 ac_cv_lib_gsm_gsm_create=no 14344fi 14345rm -f core conftest.err conftest.$ac_objext \ 14346 conftest$ac_exeext conftest.$ac_ext 14347LIBS=$ac_check_lib_save_LIBS 14348fi 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5 14350$as_echo "$ac_cv_lib_gsm_gsm_create" >&6; } 14351if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then : 14352 GSM_LIBS="$GSM_LIBS -lgsm" 14353else 14354 found_libgsm=no 14355fi 14356 14357if test "$found_libgsm" = yes; then 14358 14359$as_echo "#define EXTERNAL_GSM 1" >>confdefs.h 14360 14361else 14362 LIBGSM_LIBADD=../libgsm/libgsm.la 14363fi 14364 if test x$found_libgsm = xyes; then 14365 EXTERNAL_GSM_TRUE= 14366 EXTERNAL_GSM_FALSE='#' 14367else 14368 EXTERNAL_GSM_TRUE='#' 14369 EXTERNAL_GSM_FALSE= 14370fi 14371 14372 14373 14374 14375 14376# Check for liblpc10 14377found_liblpc10=yes 14378for ac_header in lpc10.h 14379do : 14380 ac_fn_c_check_header_mongrel "$LINENO" "lpc10.h" "ac_cv_header_lpc10_h" "$ac_includes_default" 14381if test "x$ac_cv_header_lpc10_h" = xyes; then : 14382 cat >>confdefs.h <<_ACEOF 14383#define HAVE_LPC10_H 1 14384_ACEOF 14385 14386else 14387 for ac_header in lpc10.h 14388do : 14389 ac_fn_c_check_header_mongrel "$LINENO" "lpc10.h" "ac_cv_header_lpc10_h" "$ac_includes_default" 14390if test "x$ac_cv_header_lpc10_h" = xyes; then : 14391 cat >>confdefs.h <<_ACEOF 14392#define HAVE_LPC10_H 1 14393_ACEOF 14394 14395else 14396 found_liblpc10=no 14397fi 14398 14399done 14400 14401fi 14402 14403done 14404 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for create_lpc10_encoder_state in -llpc10" >&5 14406$as_echo_n "checking for create_lpc10_encoder_state in -llpc10... " >&6; } 14407if ${ac_cv_lib_lpc10_create_lpc10_encoder_state+:} false; then : 14408 $as_echo_n "(cached) " >&6 14409else 14410 ac_check_lib_save_LIBS=$LIBS 14411LIBS="-llpc10 $LIBS" 14412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14413/* end confdefs.h. */ 14414 14415/* Override any GCC internal prototype to avoid an error. 14416 Use char because int might match the return type of a GCC 14417 builtin and then its argument prototype would still apply. */ 14418#ifdef __cplusplus 14419extern "C" 14420#endif 14421char create_lpc10_encoder_state (); 14422int 14423main () 14424{ 14425return create_lpc10_encoder_state (); 14426 ; 14427 return 0; 14428} 14429_ACEOF 14430if ac_fn_c_try_link "$LINENO"; then : 14431 ac_cv_lib_lpc10_create_lpc10_encoder_state=yes 14432else 14433 ac_cv_lib_lpc10_create_lpc10_encoder_state=no 14434fi 14435rm -f core conftest.err conftest.$ac_objext \ 14436 conftest$ac_exeext conftest.$ac_ext 14437LIBS=$ac_check_lib_save_LIBS 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lpc10_create_lpc10_encoder_state" >&5 14440$as_echo "$ac_cv_lib_lpc10_create_lpc10_encoder_state" >&6; } 14441if test "x$ac_cv_lib_lpc10_create_lpc10_encoder_state" = xyes; then : 14442 LPC10_LIBS="$LPC10_LIBS -llpc10" 14443else 14444 found_liblpc10=no 14445fi 14446 14447if test "$found_liblpc10" = yes; then 14448 14449$as_echo "#define EXTERNAL_LPC10 1" >>confdefs.h 14450 14451else 14452 LIBLPC10_LIBADD=../lpc10/liblpc10.la 14453fi 14454 if test x$found_liblpc10 = xyes; then 14455 EXTERNAL_LPC10_TRUE= 14456 EXTERNAL_LPC10_FALSE='#' 14457else 14458 EXTERNAL_LPC10_TRUE='#' 14459 EXTERNAL_LPC10_FALSE= 14460fi 14461 14462 14463 14464 14465 14466# Check for Ogg Vorbis 14467 14468# Check whether --with-oggvorbis was given. 14469if test "${with_oggvorbis+set}" = set; then : 14470 withval=$with_oggvorbis; 14471fi 14472 14473 using_oggvorbis=$with_oggvorbis 14474 if test "_$with_oggvorbis" = _dyn; then 14475 if test $using_libltdl != yes; then 14476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14478as_fn_error $? "not using libltdl; cannot load oggvorbis dynamically 14479See \`config.log' for more details" "$LINENO" 5; } 14480 fi 14481 elif test "_$with_oggvorbis" = _; then 14482 using_oggvorbis=$opt_default 14483 elif test "_$with_oggvorbis" != _yes -a "_$with_oggvorbis" != _no; then 14484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14486as_fn_error $? "invalid selection --with-oggvorbis=$with_oggvorbis 14487See \`config.log' for more details" "$LINENO" 5; } 14488 fi 14489 if test _$with_oggvorbis != _no; then 14490 ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default" 14491if test "x$ac_cv_header_vorbis_codec_h" = xyes; then : 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg_packet_clear in -logg" >&5 14493$as_echo_n "checking for ogg_packet_clear in -logg... " >&6; } 14494if ${ac_cv_lib_ogg_ogg_packet_clear+:} false; then : 14495 $as_echo_n "(cached) " >&6 14496else 14497 ac_check_lib_save_LIBS=$LIBS 14498LIBS="-logg $LIBS" 14499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501 14502/* Override any GCC internal prototype to avoid an error. 14503 Use char because int might match the return type of a GCC 14504 builtin and then its argument prototype would still apply. */ 14505#ifdef __cplusplus 14506extern "C" 14507#endif 14508char ogg_packet_clear (); 14509int 14510main () 14511{ 14512return ogg_packet_clear (); 14513 ; 14514 return 0; 14515} 14516_ACEOF 14517if ac_fn_c_try_link "$LINENO"; then : 14518 ac_cv_lib_ogg_ogg_packet_clear=yes 14519else 14520 ac_cv_lib_ogg_ogg_packet_clear=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext \ 14523 conftest$ac_exeext conftest.$ac_ext 14524LIBS=$ac_check_lib_save_LIBS 14525fi 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_packet_clear" >&5 14527$as_echo "$ac_cv_lib_ogg_ogg_packet_clear" >&6; } 14528if test "x$ac_cv_lib_ogg_ogg_packet_clear" = xyes; then : 14529 OGG_VORBIS_LIBS="$OGG_VORBIS_LIBS -logg" 14530else 14531 using_oggvorbis=no 14532fi 14533 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_analysis_headerout in -lvorbis" >&5 14535$as_echo_n "checking for vorbis_analysis_headerout in -lvorbis... " >&6; } 14536if ${ac_cv_lib_vorbis_vorbis_analysis_headerout+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 ac_check_lib_save_LIBS=$LIBS 14540LIBS="-lvorbis $OGG_VORBIS_LIBS $LIBS" 14541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14542/* end confdefs.h. */ 14543 14544/* Override any GCC internal prototype to avoid an error. 14545 Use char because int might match the return type of a GCC 14546 builtin and then its argument prototype would still apply. */ 14547#ifdef __cplusplus 14548extern "C" 14549#endif 14550char vorbis_analysis_headerout (); 14551int 14552main () 14553{ 14554return vorbis_analysis_headerout (); 14555 ; 14556 return 0; 14557} 14558_ACEOF 14559if ac_fn_c_try_link "$LINENO"; then : 14560 ac_cv_lib_vorbis_vorbis_analysis_headerout=yes 14561else 14562 ac_cv_lib_vorbis_vorbis_analysis_headerout=no 14563fi 14564rm -f core conftest.err conftest.$ac_objext \ 14565 conftest$ac_exeext conftest.$ac_ext 14566LIBS=$ac_check_lib_save_LIBS 14567fi 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_analysis_headerout" >&5 14569$as_echo "$ac_cv_lib_vorbis_vorbis_analysis_headerout" >&6; } 14570if test "x$ac_cv_lib_vorbis_vorbis_analysis_headerout" = xyes; then : 14571 OGG_VORBIS_LIBS="-lvorbis $OGG_VORBIS_LIBS" 14572else 14573 using_oggvorbis=no 14574fi 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_clear in -lvorbisfile" >&5 14577$as_echo_n "checking for ov_clear in -lvorbisfile... " >&6; } 14578if ${ac_cv_lib_vorbisfile_ov_clear+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 ac_check_lib_save_LIBS=$LIBS 14582LIBS="-lvorbisfile $OGG_VORBIS_LIBS $LIBS" 14583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585 14586/* Override any GCC internal prototype to avoid an error. 14587 Use char because int might match the return type of a GCC 14588 builtin and then its argument prototype would still apply. */ 14589#ifdef __cplusplus 14590extern "C" 14591#endif 14592char ov_clear (); 14593int 14594main () 14595{ 14596return ov_clear (); 14597 ; 14598 return 0; 14599} 14600_ACEOF 14601if ac_fn_c_try_link "$LINENO"; then : 14602 ac_cv_lib_vorbisfile_ov_clear=yes 14603else 14604 ac_cv_lib_vorbisfile_ov_clear=no 14605fi 14606rm -f core conftest.err conftest.$ac_objext \ 14607 conftest$ac_exeext conftest.$ac_ext 14608LIBS=$ac_check_lib_save_LIBS 14609fi 14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_clear" >&5 14611$as_echo "$ac_cv_lib_vorbisfile_ov_clear" >&6; } 14612if test "x$ac_cv_lib_vorbisfile_ov_clear" = xyes; then : 14613 OGG_VORBIS_LIBS="-lvorbisfile $OGG_VORBIS_LIBS" 14614else 14615 using_oggvorbis=no 14616fi 14617 14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_encode_init_vbr in -lvorbisenc" >&5 14619$as_echo_n "checking for vorbis_encode_init_vbr in -lvorbisenc... " >&6; } 14620if ${ac_cv_lib_vorbisenc_vorbis_encode_init_vbr+:} false; then : 14621 $as_echo_n "(cached) " >&6 14622else 14623 ac_check_lib_save_LIBS=$LIBS 14624LIBS="-lvorbisenc $OGG_VORBIS_LIBS $LIBS" 14625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14626/* end confdefs.h. */ 14627 14628/* Override any GCC internal prototype to avoid an error. 14629 Use char because int might match the return type of a GCC 14630 builtin and then its argument prototype would still apply. */ 14631#ifdef __cplusplus 14632extern "C" 14633#endif 14634char vorbis_encode_init_vbr (); 14635int 14636main () 14637{ 14638return vorbis_encode_init_vbr (); 14639 ; 14640 return 0; 14641} 14642_ACEOF 14643if ac_fn_c_try_link "$LINENO"; then : 14644 ac_cv_lib_vorbisenc_vorbis_encode_init_vbr=yes 14645else 14646 ac_cv_lib_vorbisenc_vorbis_encode_init_vbr=no 14647fi 14648rm -f core conftest.err conftest.$ac_objext \ 14649 conftest$ac_exeext conftest.$ac_ext 14650LIBS=$ac_check_lib_save_LIBS 14651fi 14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisenc_vorbis_encode_init_vbr" >&5 14653$as_echo "$ac_cv_lib_vorbisenc_vorbis_encode_init_vbr" >&6; } 14654if test "x$ac_cv_lib_vorbisenc_vorbis_encode_init_vbr" = xyes; then : 14655 OGG_VORBIS_LIBS="-lvorbisenc $OGG_VORBIS_LIBS" 14656else 14657 using_oggvorbis=no 14658fi 14659 14660else 14661 using_oggvorbis=no 14662fi 14663 14664 14665 if test _$with_oggvorbis != _ -a $using_oggvorbis = no; then 14666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14668as_fn_error $? "cannot find oggvorbis 14669See \`config.log' for more details" "$LINENO" 5; } 14670 fi 14671 fi 14672 if test "$using_oggvorbis" != no; then 14673 14674$as_echo "#define HAVE_OGG_VORBIS 1" >>confdefs.h 14675 14676 if test "$using_oggvorbis" = yes; then 14677 14678$as_echo "#define STATIC_OGG_VORBIS 1" >>confdefs.h 14679 14680 fi 14681 fi 14682 if test $using_oggvorbis != no; then 14683 HAVE_OGG_VORBIS_TRUE= 14684 HAVE_OGG_VORBIS_FALSE='#' 14685else 14686 HAVE_OGG_VORBIS_TRUE='#' 14687 HAVE_OGG_VORBIS_FALSE= 14688fi 14689 14690 if test $using_oggvorbis = yes; then 14691 STATIC_OGG_VORBIS_TRUE= 14692 STATIC_OGG_VORBIS_FALSE='#' 14693else 14694 STATIC_OGG_VORBIS_TRUE='#' 14695 STATIC_OGG_VORBIS_FALSE= 14696fi 14697 14698 14699 14700 14701 14702# Check for Opus 14703 14704# Check whether --with-opus was given. 14705if test "${with_opus+set}" = set; then : 14706 withval=$with_opus; 14707fi 14708 14709 using_opus=$with_opus 14710 if test "_$with_opus" = _dyn; then 14711 if test $using_libltdl != yes; then 14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14714as_fn_error $? "not using libltdl; cannot load opus dynamically 14715See \`config.log' for more details" "$LINENO" 5; } 14716 fi 14717 elif test "_$with_opus" = _; then 14718 using_opus=$opt_default 14719 elif test "_$with_opus" != _yes -a "_$with_opus" != _no; then 14720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14722as_fn_error $? "invalid selection --with-opus=$with_opus 14723See \`config.log' for more details" "$LINENO" 5; } 14724 fi 14725 if test _$with_opus != _no; then 14726 14727pkg_failed=no 14728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUS" >&5 14729$as_echo_n "checking for OPUS... " >&6; } 14730 14731if test -n "$OPUS_CFLAGS"; then 14732 pkg_cv_OPUS_CFLAGS="$OPUS_CFLAGS" 14733 elif test -n "$PKG_CONFIG"; then 14734 if test -n "$PKG_CONFIG" && \ 14735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile\""; } >&5 14736 ($PKG_CONFIG --exists --print-errors "opusfile") 2>&5 14737 ac_status=$? 14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14739 test $ac_status = 0; }; then 14740 pkg_cv_OPUS_CFLAGS=`$PKG_CONFIG --cflags "opusfile" 2>/dev/null` 14741 test "x$?" != "x0" && pkg_failed=yes 14742else 14743 pkg_failed=yes 14744fi 14745 else 14746 pkg_failed=untried 14747fi 14748if test -n "$OPUS_LIBS"; then 14749 pkg_cv_OPUS_LIBS="$OPUS_LIBS" 14750 elif test -n "$PKG_CONFIG"; then 14751 if test -n "$PKG_CONFIG" && \ 14752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile\""; } >&5 14753 ($PKG_CONFIG --exists --print-errors "opusfile") 2>&5 14754 ac_status=$? 14755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14756 test $ac_status = 0; }; then 14757 pkg_cv_OPUS_LIBS=`$PKG_CONFIG --libs "opusfile" 2>/dev/null` 14758 test "x$?" != "x0" && pkg_failed=yes 14759else 14760 pkg_failed=yes 14761fi 14762 else 14763 pkg_failed=untried 14764fi 14765 14766 14767 14768if test $pkg_failed = yes; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14770$as_echo "no" >&6; } 14771 14772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14773 _pkg_short_errors_supported=yes 14774else 14775 _pkg_short_errors_supported=no 14776fi 14777 if test $_pkg_short_errors_supported = yes; then 14778 OPUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opusfile" 2>&1` 14779 else 14780 OPUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opusfile" 2>&1` 14781 fi 14782 # Put the nasty error message in config.log where it belongs 14783 echo "$OPUS_PKG_ERRORS" >&5 14784 14785 using_opus=no 14786elif test $pkg_failed = untried; then 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14788$as_echo "no" >&6; } 14789 using_opus=no 14790else 14791 OPUS_CFLAGS=$pkg_cv_OPUS_CFLAGS 14792 OPUS_LIBS=$pkg_cv_OPUS_LIBS 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14794$as_echo "yes" >&6; } 14795 14796fi 14797 if test _$with_opus != _ -a $using_opus = no; then 14798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14800as_fn_error $? "cannot find opus 14801See \`config.log' for more details" "$LINENO" 5; } 14802 fi 14803 fi 14804 if test "$using_opus" != no; then 14805 14806$as_echo "#define HAVE_OPUS 1" >>confdefs.h 14807 14808 if test "$using_opus" = yes; then 14809 14810$as_echo "#define STATIC_OPUS 1" >>confdefs.h 14811 14812 fi 14813 fi 14814 if test $using_opus != no; then 14815 HAVE_OPUS_TRUE= 14816 HAVE_OPUS_FALSE='#' 14817else 14818 HAVE_OPUS_TRUE='#' 14819 HAVE_OPUS_FALSE= 14820fi 14821 14822 if test $using_opus = yes; then 14823 STATIC_OPUS_TRUE= 14824 STATIC_OPUS_FALSE='#' 14825else 14826 STATIC_OPUS_TRUE='#' 14827 STATIC_OPUS_FALSE= 14828fi 14829 14830 14831 14832 14833if test "$GCC" = "yes"; then 14834 OPUS_CFLAGS="$OPUS_CFLAGS -Wno-long-long" 14835fi 14836 14837 14838# Check for FLAC libraries 14839# Note passing in OGG_VORBIS_LIBS. That is because FLAC has optional 14840# support for OGG and if OGG libraries are found on this 14841# system then its highly likely to be compiled into FLAC 14842# and will require these at link time. 14843case $target in 14844 *mingw*) 14845 FLAC_LIBS="-lwsock32" 14846 ;; 14847esac 14848 14849# Check whether --with-flac was given. 14850if test "${with_flac+set}" = set; then : 14851 withval=$with_flac; 14852fi 14853 14854 using_flac=$with_flac 14855 if test "_$with_flac" = _dyn; then 14856 if test $using_libltdl != yes; then 14857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14859as_fn_error $? "not using libltdl; cannot load flac dynamically 14860See \`config.log' for more details" "$LINENO" 5; } 14861 fi 14862 elif test "_$with_flac" = _; then 14863 using_flac=$opt_default 14864 elif test "_$with_flac" != _yes -a "_$with_flac" != _no; then 14865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14867as_fn_error $? "invalid selection --with-flac=$with_flac 14868See \`config.log' for more details" "$LINENO" 5; } 14869 fi 14870 if test _$with_flac != _no; then 14871 ac_fn_c_check_header_mongrel "$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default" 14872if test "x$ac_cv_header_FLAC_all_h" = xyes; then : 14873 ac_fn_c_check_decl "$LINENO" "FLAC_API_VERSION_CURRENT" "ac_cv_have_decl_FLAC_API_VERSION_CURRENT" "#include <FLAC/all.h> 14874" 14875if test "x$ac_cv_have_decl_FLAC_API_VERSION_CURRENT" = xyes; then : 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_encoder_new in -lFLAC" >&5 14877$as_echo_n "checking for FLAC__stream_encoder_new in -lFLAC... " >&6; } 14878if ${ac_cv_lib_FLAC_FLAC__stream_encoder_new+:} false; then : 14879 $as_echo_n "(cached) " >&6 14880else 14881 ac_check_lib_save_LIBS=$LIBS 14882LIBS="-lFLAC $FLAC_LIBS $OGG_VORBIS_LIBS $LIBS" 14883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14884/* end confdefs.h. */ 14885 14886/* Override any GCC internal prototype to avoid an error. 14887 Use char because int might match the return type of a GCC 14888 builtin and then its argument prototype would still apply. */ 14889#ifdef __cplusplus 14890extern "C" 14891#endif 14892char FLAC__stream_encoder_new (); 14893int 14894main () 14895{ 14896return FLAC__stream_encoder_new (); 14897 ; 14898 return 0; 14899} 14900_ACEOF 14901if ac_fn_c_try_link "$LINENO"; then : 14902 ac_cv_lib_FLAC_FLAC__stream_encoder_new=yes 14903else 14904 ac_cv_lib_FLAC_FLAC__stream_encoder_new=no 14905fi 14906rm -f core conftest.err conftest.$ac_objext \ 14907 conftest$ac_exeext conftest.$ac_ext 14908LIBS=$ac_check_lib_save_LIBS 14909fi 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_encoder_new" >&5 14911$as_echo "$ac_cv_lib_FLAC_FLAC__stream_encoder_new" >&6; } 14912if test "x$ac_cv_lib_FLAC_FLAC__stream_encoder_new" = xyes; then : 14913 FLAC_LIBS="-lFLAC $FLAC_LIBS $OGG_VORBIS_LIBS" 14914else 14915 using_flac=no 14916fi 14917 14918else 14919 using_flac=no 14920fi 14921 14922else 14923 using_flac=no 14924fi 14925 14926 14927 if test _$with_flac != _ -a $using_flac = no; then 14928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14930as_fn_error $? "cannot find flac 14931See \`config.log' for more details" "$LINENO" 5; } 14932 fi 14933 fi 14934 if test "$using_flac" != no; then 14935 14936$as_echo "#define HAVE_FLAC 1" >>confdefs.h 14937 14938 if test "$using_flac" = yes; then 14939 14940$as_echo "#define STATIC_FLAC 1" >>confdefs.h 14941 14942 fi 14943 fi 14944 if test $using_flac != no; then 14945 HAVE_FLAC_TRUE= 14946 HAVE_FLAC_FALSE='#' 14947else 14948 HAVE_FLAC_TRUE='#' 14949 HAVE_FLAC_FALSE= 14950fi 14951 14952 if test $using_flac = yes; then 14953 STATIC_FLAC_TRUE= 14954 STATIC_FLAC_FALSE='#' 14955else 14956 STATIC_FLAC_TRUE='#' 14957 STATIC_FLAC_FALSE= 14958fi 14959 14960 14961 14962 14963 14964 14965ac_sox_save_AMRWB_LIBS="$AMRWB_LIBS" 14966tmp_using_amrwb=$opt_default 14967for ac_header in opencore-amrwb/dec_if.h 14968do : 14969 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default" 14970if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then : 14971 cat >>confdefs.h <<_ACEOF 14972#define HAVE_OPENCORE_AMRWB_DEC_IF_H 1 14973_ACEOF 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5 14975$as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; } 14976if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 ac_check_lib_save_LIBS=$LIBS 14980LIBS="-lopencore-amrwb $LIBS" 14981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14982/* end confdefs.h. */ 14983 14984/* Override any GCC internal prototype to avoid an error. 14985 Use char because int might match the return type of a GCC 14986 builtin and then its argument prototype would still apply. */ 14987#ifdef __cplusplus 14988extern "C" 14989#endif 14990char D_IF_init (); 14991int 14992main () 14993{ 14994return D_IF_init (); 14995 ; 14996 return 0; 14997} 14998_ACEOF 14999if ac_fn_c_try_link "$LINENO"; then : 15000 ac_cv_lib_opencore_amrwb_D_IF_init=yes 15001else 15002 ac_cv_lib_opencore_amrwb_D_IF_init=no 15003fi 15004rm -f core conftest.err conftest.$ac_objext \ 15005 conftest$ac_exeext conftest.$ac_ext 15006LIBS=$ac_check_lib_save_LIBS 15007fi 15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5 15009$as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; } 15010if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then : 15011 AMRWB_LIBS="$AMRWB_LIBS -lopencore-amrwb" 15012else 15013 tmp_using_amrwb=no 15014fi 15015 15016else 15017 for ac_header in amrwb/dec.h 15018do : 15019 ac_fn_c_check_header_mongrel "$LINENO" "amrwb/dec.h" "ac_cv_header_amrwb_dec_h" "$ac_includes_default" 15020if test "x$ac_cv_header_amrwb_dec_h" = xyes; then : 15021 cat >>confdefs.h <<_ACEOF 15022#define HAVE_AMRWB_DEC_H 1 15023_ACEOF 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lamrwb" >&5 15025$as_echo_n "checking for D_IF_init in -lamrwb... " >&6; } 15026if ${ac_cv_lib_amrwb_D_IF_init+:} false; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 ac_check_lib_save_LIBS=$LIBS 15030LIBS="-lamrwb $LIBS" 15031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15032/* end confdefs.h. */ 15033 15034/* Override any GCC internal prototype to avoid an error. 15035 Use char because int might match the return type of a GCC 15036 builtin and then its argument prototype would still apply. */ 15037#ifdef __cplusplus 15038extern "C" 15039#endif 15040char D_IF_init (); 15041int 15042main () 15043{ 15044return D_IF_init (); 15045 ; 15046 return 0; 15047} 15048_ACEOF 15049if ac_fn_c_try_link "$LINENO"; then : 15050 ac_cv_lib_amrwb_D_IF_init=yes 15051else 15052 ac_cv_lib_amrwb_D_IF_init=no 15053fi 15054rm -f core conftest.err conftest.$ac_objext \ 15055 conftest$ac_exeext conftest.$ac_ext 15056LIBS=$ac_check_lib_save_LIBS 15057fi 15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amrwb_D_IF_init" >&5 15059$as_echo "$ac_cv_lib_amrwb_D_IF_init" >&6; } 15060if test "x$ac_cv_lib_amrwb_D_IF_init" = xyes; then : 15061 AMRWB_LIBS="$AMRWB_LIBS -lamrwb" 15062else 15063 tmp_using_amrwb=no 15064fi 15065 15066else 15067 tmp_using_amrwb=no 15068fi 15069 15070done 15071 15072fi 15073 15074done 15075 15076# Check whether --enable-dl_amrwb was given. 15077if test "${enable_dl_amrwb+set}" = set; then : 15078 enableval=$enable_dl_amrwb; enable_dl_amrwb=$enableval 15079else 15080 enable_dl_amrwb=no 15081fi 15082 15083if test "x$using_libltdl" = "xyes" -a "x$enable_dl_amrwb" = "xyes"; then 15084 15085$as_echo "#define DL_AMRWB 1" >>confdefs.h 15086 15087 AMRWB_LIBS="$ac_sox_save_AMRWB_LIBS" 15088 tmp_using_amrwb=yes 15089else 15090 enable_dl_amrwb="no" 15091fi 15092 15093# Check whether --with-amrwb was given. 15094if test "${with_amrwb+set}" = set; then : 15095 withval=$with_amrwb; 15096fi 15097 15098 using_amrwb=$with_amrwb 15099 if test "_$with_amrwb" = _dyn; then 15100 if test $using_libltdl != yes; then 15101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15103as_fn_error $? "not using libltdl; cannot load amrwb dynamically 15104See \`config.log' for more details" "$LINENO" 5; } 15105 fi 15106 elif test "_$with_amrwb" = _; then 15107 using_amrwb=$opt_default 15108 elif test "_$with_amrwb" != _yes -a "_$with_amrwb" != _no; then 15109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15111as_fn_error $? "invalid selection --with-amrwb=$with_amrwb 15112See \`config.log' for more details" "$LINENO" 5; } 15113 fi 15114 if test _$with_amrwb != _no; then 15115 using_amrwb=$tmp_using_amrwb 15116 if test _$with_amrwb != _ -a $using_amrwb = no; then 15117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15119as_fn_error $? "cannot find amrwb 15120See \`config.log' for more details" "$LINENO" 5; } 15121 fi 15122 fi 15123 if test "$using_amrwb" != no; then 15124 15125$as_echo "#define HAVE_AMRWB 1" >>confdefs.h 15126 15127 if test "$using_amrwb" = yes; then 15128 15129$as_echo "#define STATIC_AMRWB 1" >>confdefs.h 15130 15131 fi 15132 fi 15133 if test $using_amrwb != no; then 15134 HAVE_AMRWB_TRUE= 15135 HAVE_AMRWB_FALSE='#' 15136else 15137 HAVE_AMRWB_TRUE='#' 15138 HAVE_AMRWB_FALSE= 15139fi 15140 15141 if test $using_amrwb = yes; then 15142 STATIC_AMRWB_TRUE= 15143 STATIC_AMRWB_FALSE='#' 15144else 15145 STATIC_AMRWB_TRUE='#' 15146 STATIC_AMRWB_FALSE= 15147fi 15148 15149 15150 15151 15152 15153ac_sox_save_AMRNB_LIBS="$AMRNB_LIBS" 15154tmp_using_amrnb=$opt_default 15155for ac_header in opencore-amrnb/interf_dec.h 15156do : 15157 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_dec.h" "ac_cv_header_opencore_amrnb_interf_dec_h" "$ac_includes_default" 15158if test "x$ac_cv_header_opencore_amrnb_interf_dec_h" = xyes; then : 15159 cat >>confdefs.h <<_ACEOF 15160#define HAVE_OPENCORE_AMRNB_INTERF_DEC_H 1 15161_ACEOF 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Decoder_Interface_init in -lopencore-amrnb" >&5 15163$as_echo_n "checking for Decoder_Interface_init in -lopencore-amrnb... " >&6; } 15164if ${ac_cv_lib_opencore_amrnb_Decoder_Interface_init+:} false; then : 15165 $as_echo_n "(cached) " >&6 15166else 15167 ac_check_lib_save_LIBS=$LIBS 15168LIBS="-lopencore-amrnb $LIBS" 15169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15170/* end confdefs.h. */ 15171 15172/* Override any GCC internal prototype to avoid an error. 15173 Use char because int might match the return type of a GCC 15174 builtin and then its argument prototype would still apply. */ 15175#ifdef __cplusplus 15176extern "C" 15177#endif 15178char Decoder_Interface_init (); 15179int 15180main () 15181{ 15182return Decoder_Interface_init (); 15183 ; 15184 return 0; 15185} 15186_ACEOF 15187if ac_fn_c_try_link "$LINENO"; then : 15188 ac_cv_lib_opencore_amrnb_Decoder_Interface_init=yes 15189else 15190 ac_cv_lib_opencore_amrnb_Decoder_Interface_init=no 15191fi 15192rm -f core conftest.err conftest.$ac_objext \ 15193 conftest$ac_exeext conftest.$ac_ext 15194LIBS=$ac_check_lib_save_LIBS 15195fi 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Decoder_Interface_init" >&5 15197$as_echo "$ac_cv_lib_opencore_amrnb_Decoder_Interface_init" >&6; } 15198if test "x$ac_cv_lib_opencore_amrnb_Decoder_Interface_init" = xyes; then : 15199 AMRNB_LIBS="$AMRNB_LIBS -lopencore-amrnb" 15200else 15201 tmp_using_amrnb=no 15202fi 15203 15204else 15205 ac_fn_c_check_header_mongrel "$LINENO" "amrnb/sp_dec.h" "ac_cv_header_amrnb_sp_dec_h" "$ac_includes_default" 15206if test "x$ac_cv_header_amrnb_sp_dec_h" = xyes; then : 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Decoder_Interface_init in -lamrnb" >&5 15208$as_echo_n "checking for Decoder_Interface_init in -lamrnb... " >&6; } 15209if ${ac_cv_lib_amrnb_Decoder_Interface_init+:} false; then : 15210 $as_echo_n "(cached) " >&6 15211else 15212 ac_check_lib_save_LIBS=$LIBS 15213LIBS="-lamrnb $LIBS" 15214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215/* end confdefs.h. */ 15216 15217/* Override any GCC internal prototype to avoid an error. 15218 Use char because int might match the return type of a GCC 15219 builtin and then its argument prototype would still apply. */ 15220#ifdef __cplusplus 15221extern "C" 15222#endif 15223char Decoder_Interface_init (); 15224int 15225main () 15226{ 15227return Decoder_Interface_init (); 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232if ac_fn_c_try_link "$LINENO"; then : 15233 ac_cv_lib_amrnb_Decoder_Interface_init=yes 15234else 15235 ac_cv_lib_amrnb_Decoder_Interface_init=no 15236fi 15237rm -f core conftest.err conftest.$ac_objext \ 15238 conftest$ac_exeext conftest.$ac_ext 15239LIBS=$ac_check_lib_save_LIBS 15240fi 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amrnb_Decoder_Interface_init" >&5 15242$as_echo "$ac_cv_lib_amrnb_Decoder_Interface_init" >&6; } 15243if test "x$ac_cv_lib_amrnb_Decoder_Interface_init" = xyes; then : 15244 AMRNB_LIBS="$AMRNB_LIBS -lamrnb" 15245else 15246 tmp_using_amrnb=no 15247fi 15248 15249else 15250 tmp_using_amrnb=no 15251fi 15252 15253 15254fi 15255 15256done 15257 15258# Check whether --enable-dl_amrnb was given. 15259if test "${enable_dl_amrnb+set}" = set; then : 15260 enableval=$enable_dl_amrnb; enable_dl_amrnb=$enableval 15261else 15262 enable_dl_amrnb=no 15263fi 15264 15265if test "x$using_libltdl" = "xyes" -a "x$enable_dl_amrnb" = "xyes"; then 15266 15267$as_echo "#define DL_AMRNB 1" >>confdefs.h 15268 15269 AMRNB_LIBS="$ac_sox_save_AMRNB_LIBS" 15270 tmp_using_amrnb=yes 15271else 15272 enable_dl_amrnb="no" 15273fi 15274 15275# Check whether --with-amrnb was given. 15276if test "${with_amrnb+set}" = set; then : 15277 withval=$with_amrnb; 15278fi 15279 15280 using_amrnb=$with_amrnb 15281 if test "_$with_amrnb" = _dyn; then 15282 if test $using_libltdl != yes; then 15283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15285as_fn_error $? "not using libltdl; cannot load amrnb dynamically 15286See \`config.log' for more details" "$LINENO" 5; } 15287 fi 15288 elif test "_$with_amrnb" = _; then 15289 using_amrnb=$opt_default 15290 elif test "_$with_amrnb" != _yes -a "_$with_amrnb" != _no; then 15291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15293as_fn_error $? "invalid selection --with-amrnb=$with_amrnb 15294See \`config.log' for more details" "$LINENO" 5; } 15295 fi 15296 if test _$with_amrnb != _no; then 15297 using_amrnb=$tmp_using_amrnb 15298 if test _$with_amrnb != _ -a $using_amrnb = no; then 15299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15301as_fn_error $? "cannot find amrnb 15302See \`config.log' for more details" "$LINENO" 5; } 15303 fi 15304 fi 15305 if test "$using_amrnb" != no; then 15306 15307$as_echo "#define HAVE_AMRNB 1" >>confdefs.h 15308 15309 if test "$using_amrnb" = yes; then 15310 15311$as_echo "#define STATIC_AMRNB 1" >>confdefs.h 15312 15313 fi 15314 fi 15315 if test $using_amrnb != no; then 15316 HAVE_AMRNB_TRUE= 15317 HAVE_AMRNB_FALSE='#' 15318else 15319 HAVE_AMRNB_TRUE='#' 15320 HAVE_AMRNB_FALSE= 15321fi 15322 15323 if test $using_amrnb = yes; then 15324 STATIC_AMRNB_TRUE= 15325 STATIC_AMRNB_FALSE='#' 15326else 15327 STATIC_AMRNB_TRUE='#' 15328 STATIC_AMRNB_FALSE= 15329fi 15330 15331 15332 15333 15334 15335 15336 15337# Check whether --with-wavpack was given. 15338if test "${with_wavpack+set}" = set; then : 15339 withval=$with_wavpack; 15340fi 15341 15342 using_wavpack=$with_wavpack 15343 if test "_$with_wavpack" = _dyn; then 15344 if test $using_libltdl != yes; then 15345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15347as_fn_error $? "not using libltdl; cannot load wavpack dynamically 15348See \`config.log' for more details" "$LINENO" 5; } 15349 fi 15350 elif test "_$with_wavpack" = _; then 15351 using_wavpack=$opt_default 15352 elif test "_$with_wavpack" != _yes -a "_$with_wavpack" != _no; then 15353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15355as_fn_error $? "invalid selection --with-wavpack=$with_wavpack 15356See \`config.log' for more details" "$LINENO" 5; } 15357 fi 15358 if test _$with_wavpack != _no; then 15359 ac_fn_c_check_header_mongrel "$LINENO" "wavpack/wavpack.h" "ac_cv_header_wavpack_wavpack_h" "$ac_includes_default" 15360if test "x$ac_cv_header_wavpack_wavpack_h" = xyes; then : 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WavpackGetSampleRate in -lwavpack" >&5 15362$as_echo_n "checking for WavpackGetSampleRate in -lwavpack... " >&6; } 15363if ${ac_cv_lib_wavpack_WavpackGetSampleRate+:} false; then : 15364 $as_echo_n "(cached) " >&6 15365else 15366 ac_check_lib_save_LIBS=$LIBS 15367LIBS="-lwavpack $LIBS" 15368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15369/* end confdefs.h. */ 15370 15371/* Override any GCC internal prototype to avoid an error. 15372 Use char because int might match the return type of a GCC 15373 builtin and then its argument prototype would still apply. */ 15374#ifdef __cplusplus 15375extern "C" 15376#endif 15377char WavpackGetSampleRate (); 15378int 15379main () 15380{ 15381return WavpackGetSampleRate (); 15382 ; 15383 return 0; 15384} 15385_ACEOF 15386if ac_fn_c_try_link "$LINENO"; then : 15387 ac_cv_lib_wavpack_WavpackGetSampleRate=yes 15388else 15389 ac_cv_lib_wavpack_WavpackGetSampleRate=no 15390fi 15391rm -f core conftest.err conftest.$ac_objext \ 15392 conftest$ac_exeext conftest.$ac_ext 15393LIBS=$ac_check_lib_save_LIBS 15394fi 15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wavpack_WavpackGetSampleRate" >&5 15396$as_echo "$ac_cv_lib_wavpack_WavpackGetSampleRate" >&6; } 15397if test "x$ac_cv_lib_wavpack_WavpackGetSampleRate" = xyes; then : 15398 WAVPACK_LIBS="$WAVPACK_LIBS -lwavpack" 15399else 15400 using_wavpack=no 15401fi 15402 15403else 15404 using_wavpack=no 15405fi 15406 15407 15408 if test _$with_wavpack != _ -a $using_wavpack = no; then 15409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15411as_fn_error $? "cannot find wavpack 15412See \`config.log' for more details" "$LINENO" 5; } 15413 fi 15414 fi 15415 if test "$using_wavpack" != no; then 15416 15417$as_echo "#define HAVE_WAVPACK 1" >>confdefs.h 15418 15419 if test "$using_wavpack" = yes; then 15420 15421$as_echo "#define STATIC_WAVPACK 1" >>confdefs.h 15422 15423 fi 15424 fi 15425 if test $using_wavpack != no; then 15426 HAVE_WAVPACK_TRUE= 15427 HAVE_WAVPACK_FALSE='#' 15428else 15429 HAVE_WAVPACK_TRUE='#' 15430 HAVE_WAVPACK_FALSE= 15431fi 15432 15433 if test $using_wavpack = yes; then 15434 STATIC_WAVPACK_TRUE= 15435 STATIC_WAVPACK_FALSE='#' 15436else 15437 STATIC_WAVPACK_TRUE='#' 15438 STATIC_WAVPACK_FALSE= 15439fi 15440 15441 15442 15443 15444 15445 15446 15447 15448# Check whether --with-sndio was given. 15449if test "${with_sndio+set}" = set; then : 15450 withval=$with_sndio; 15451fi 15452 15453 using_sndio=$with_sndio 15454 if test "_$with_sndio" = _dyn; then 15455 if test $using_libltdl != yes; then 15456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15458as_fn_error $? "not using libltdl; cannot load sndio dynamically 15459See \`config.log' for more details" "$LINENO" 5; } 15460 fi 15461 elif test "_$with_sndio" = _; then 15462 using_sndio=$opt_default 15463 elif test "_$with_sndio" != _yes -a "_$with_sndio" != _no; then 15464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15466as_fn_error $? "invalid selection --with-sndio=$with_sndio 15467See \`config.log' for more details" "$LINENO" 5; } 15468 fi 15469 if test _$with_sndio != _no; then 15470 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" 15471if test "x$ac_cv_header_sndio_h" = xyes; then : 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 15473$as_echo_n "checking for sio_open in -lsndio... " >&6; } 15474if ${ac_cv_lib_sndio_sio_open+:} false; then : 15475 $as_echo_n "(cached) " >&6 15476else 15477 ac_check_lib_save_LIBS=$LIBS 15478LIBS="-lsndio $LIBS" 15479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15480/* end confdefs.h. */ 15481 15482/* Override any GCC internal prototype to avoid an error. 15483 Use char because int might match the return type of a GCC 15484 builtin and then its argument prototype would still apply. */ 15485#ifdef __cplusplus 15486extern "C" 15487#endif 15488char sio_open (); 15489int 15490main () 15491{ 15492return sio_open (); 15493 ; 15494 return 0; 15495} 15496_ACEOF 15497if ac_fn_c_try_link "$LINENO"; then : 15498 ac_cv_lib_sndio_sio_open=yes 15499else 15500 ac_cv_lib_sndio_sio_open=no 15501fi 15502rm -f core conftest.err conftest.$ac_objext \ 15503 conftest$ac_exeext conftest.$ac_ext 15504LIBS=$ac_check_lib_save_LIBS 15505fi 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 15507$as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 15508if test "x$ac_cv_lib_sndio_sio_open" = xyes; then : 15509 SNDIO_LIBS="$SNDIO_LIBS -lsndio" 15510else 15511 using_sndio=no 15512fi 15513 15514else 15515 using_sndio=no 15516fi 15517 15518 15519 if test _$with_sndio != _ -a $using_sndio = no; then 15520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15522as_fn_error $? "cannot find sndio 15523See \`config.log' for more details" "$LINENO" 5; } 15524 fi 15525 fi 15526 if test "$using_sndio" != no; then 15527 15528$as_echo "#define HAVE_SNDIO 1" >>confdefs.h 15529 15530 if test "$using_sndio" = yes; then 15531 15532$as_echo "#define STATIC_SNDIO 1" >>confdefs.h 15533 15534 fi 15535 fi 15536 if test $using_sndio != no; then 15537 HAVE_SNDIO_TRUE= 15538 HAVE_SNDIO_FALSE='#' 15539else 15540 HAVE_SNDIO_TRUE='#' 15541 HAVE_SNDIO_FALSE= 15542fi 15543 15544 if test $using_sndio = yes; then 15545 STATIC_SNDIO_TRUE= 15546 STATIC_SNDIO_FALSE='#' 15547else 15548 STATIC_SNDIO_TRUE='#' 15549 STATIC_SNDIO_FALSE= 15550fi 15551 15552 15553 15554 15555 15556 15557 15558 15559# Check whether --with-coreaudio was given. 15560if test "${with_coreaudio+set}" = set; then : 15561 withval=$with_coreaudio; 15562fi 15563 15564 using_coreaudio=$with_coreaudio 15565 if test "_$with_coreaudio" = _dyn; then 15566 if test $using_libltdl != yes; then 15567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15569as_fn_error $? "not using libltdl; cannot load coreaudio dynamically 15570See \`config.log' for more details" "$LINENO" 5; } 15571 fi 15572 elif test "_$with_coreaudio" = _; then 15573 using_coreaudio=$opt_default 15574 elif test "_$with_coreaudio" != _yes -a "_$with_coreaudio" != _no; then 15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15577as_fn_error $? "invalid selection --with-coreaudio=$with_coreaudio 15578See \`config.log' for more details" "$LINENO" 5; } 15579 fi 15580 if test _$with_coreaudio != _no; then 15581 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default" 15582if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then : 15583 COREAUDIO_LIBS="$COREAUDIO_LIBS -Wl,-framework,CoreAudio" 15584else 15585 using_coreaudio=no 15586fi 15587 15588 15589 if test _$with_coreaudio != _ -a $using_coreaudio = no; then 15590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15592as_fn_error $? "cannot find coreaudio 15593See \`config.log' for more details" "$LINENO" 5; } 15594 fi 15595 fi 15596 if test "$using_coreaudio" != no; then 15597 15598$as_echo "#define HAVE_COREAUDIO 1" >>confdefs.h 15599 15600 if test "$using_coreaudio" = yes; then 15601 15602$as_echo "#define STATIC_COREAUDIO 1" >>confdefs.h 15603 15604 fi 15605 fi 15606 if test $using_coreaudio != no; then 15607 HAVE_COREAUDIO_TRUE= 15608 HAVE_COREAUDIO_FALSE='#' 15609else 15610 HAVE_COREAUDIO_TRUE='#' 15611 HAVE_COREAUDIO_FALSE= 15612fi 15613 15614 if test $using_coreaudio = yes; then 15615 STATIC_COREAUDIO_TRUE= 15616 STATIC_COREAUDIO_FALSE='#' 15617else 15618 STATIC_COREAUDIO_TRUE='#' 15619 STATIC_COREAUDIO_FALSE= 15620fi 15621 15622 15623 15624 15625 15626 15627 15628 15629# Check whether --with-alsa was given. 15630if test "${with_alsa+set}" = set; then : 15631 withval=$with_alsa; 15632fi 15633 15634 using_alsa=$with_alsa 15635 if test "_$with_alsa" = _dyn; then 15636 if test $using_libltdl != yes; then 15637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15639as_fn_error $? "not using libltdl; cannot load alsa dynamically 15640See \`config.log' for more details" "$LINENO" 5; } 15641 fi 15642 elif test "_$with_alsa" = _; then 15643 using_alsa=$opt_default 15644 elif test "_$with_alsa" != _yes -a "_$with_alsa" != _no; then 15645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15647as_fn_error $? "invalid selection --with-alsa=$with_alsa 15648See \`config.log' for more details" "$LINENO" 5; } 15649 fi 15650 if test _$with_alsa != _no; then 15651 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 15652if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 15654$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; } 15655if ${ac_cv_lib_asound_snd_pcm_open+:} false; then : 15656 $as_echo_n "(cached) " >&6 15657else 15658 ac_check_lib_save_LIBS=$LIBS 15659LIBS="-lasound $LIBS" 15660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15661/* end confdefs.h. */ 15662 15663/* Override any GCC internal prototype to avoid an error. 15664 Use char because int might match the return type of a GCC 15665 builtin and then its argument prototype would still apply. */ 15666#ifdef __cplusplus 15667extern "C" 15668#endif 15669char snd_pcm_open (); 15670int 15671main () 15672{ 15673return snd_pcm_open (); 15674 ; 15675 return 0; 15676} 15677_ACEOF 15678if ac_fn_c_try_link "$LINENO"; then : 15679 ac_cv_lib_asound_snd_pcm_open=yes 15680else 15681 ac_cv_lib_asound_snd_pcm_open=no 15682fi 15683rm -f core conftest.err conftest.$ac_objext \ 15684 conftest$ac_exeext conftest.$ac_ext 15685LIBS=$ac_check_lib_save_LIBS 15686fi 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 15688$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; } 15689if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then : 15690 ALSA_LIBS="$ALSA_LIBS -lasound" 15691else 15692 using_alsa=no 15693fi 15694 15695else 15696 using_alsa=no 15697fi 15698 15699 15700 if test _$with_alsa != _ -a $using_alsa = no; then 15701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15703as_fn_error $? "cannot find alsa 15704See \`config.log' for more details" "$LINENO" 5; } 15705 fi 15706 fi 15707 if test "$using_alsa" != no; then 15708 15709$as_echo "#define HAVE_ALSA 1" >>confdefs.h 15710 15711 if test "$using_alsa" = yes; then 15712 15713$as_echo "#define STATIC_ALSA 1" >>confdefs.h 15714 15715 fi 15716 fi 15717 if test $using_alsa != no; then 15718 HAVE_ALSA_TRUE= 15719 HAVE_ALSA_FALSE='#' 15720else 15721 HAVE_ALSA_TRUE='#' 15722 HAVE_ALSA_FALSE= 15723fi 15724 15725 if test $using_alsa = yes; then 15726 STATIC_ALSA_TRUE= 15727 STATIC_ALSA_FALSE='#' 15728else 15729 STATIC_ALSA_TRUE='#' 15730 STATIC_ALSA_FALSE= 15731fi 15732 15733 15734 15735 15736 15737 15738 15739 15740# Check whether --with-ao was given. 15741if test "${with_ao+set}" = set; then : 15742 withval=$with_ao; 15743fi 15744 15745 using_ao=$with_ao 15746 if test "_$with_ao" = _dyn; then 15747 if test $using_libltdl != yes; then 15748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15750as_fn_error $? "not using libltdl; cannot load ao dynamically 15751See \`config.log' for more details" "$LINENO" 5; } 15752 fi 15753 elif test "_$with_ao" = _; then 15754 using_ao=$opt_default 15755 elif test "_$with_ao" != _yes -a "_$with_ao" != _no; then 15756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15758as_fn_error $? "invalid selection --with-ao=$with_ao 15759See \`config.log' for more details" "$LINENO" 5; } 15760 fi 15761 if test _$with_ao != _no; then 15762 ac_fn_c_check_header_mongrel "$LINENO" "ao/ao.h" "ac_cv_header_ao_ao_h" "$ac_includes_default" 15763if test "x$ac_cv_header_ao_ao_h" = xyes; then : 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ao_play in -lao" >&5 15765$as_echo_n "checking for ao_play in -lao... " >&6; } 15766if ${ac_cv_lib_ao_ao_play+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 ac_check_lib_save_LIBS=$LIBS 15770LIBS="-lao $LIBS" 15771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15772/* end confdefs.h. */ 15773 15774/* Override any GCC internal prototype to avoid an error. 15775 Use char because int might match the return type of a GCC 15776 builtin and then its argument prototype would still apply. */ 15777#ifdef __cplusplus 15778extern "C" 15779#endif 15780char ao_play (); 15781int 15782main () 15783{ 15784return ao_play (); 15785 ; 15786 return 0; 15787} 15788_ACEOF 15789if ac_fn_c_try_link "$LINENO"; then : 15790 ac_cv_lib_ao_ao_play=yes 15791else 15792 ac_cv_lib_ao_ao_play=no 15793fi 15794rm -f core conftest.err conftest.$ac_objext \ 15795 conftest$ac_exeext conftest.$ac_ext 15796LIBS=$ac_check_lib_save_LIBS 15797fi 15798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ao_ao_play" >&5 15799$as_echo "$ac_cv_lib_ao_ao_play" >&6; } 15800if test "x$ac_cv_lib_ao_ao_play" = xyes; then : 15801 AO_LIBS="$AO_LIBS -lao" 15802else 15803 using_ao=no 15804fi 15805 15806else 15807 using_ao=no 15808fi 15809 15810 15811 if test _$with_ao != _ -a $using_ao = no; then 15812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15814as_fn_error $? "cannot find ao 15815See \`config.log' for more details" "$LINENO" 5; } 15816 fi 15817 fi 15818 if test "$using_ao" != no; then 15819 15820$as_echo "#define HAVE_AO 1" >>confdefs.h 15821 15822 if test "$using_ao" = yes; then 15823 15824$as_echo "#define STATIC_AO 1" >>confdefs.h 15825 15826 fi 15827 fi 15828 if test $using_ao != no; then 15829 HAVE_AO_TRUE= 15830 HAVE_AO_FALSE='#' 15831else 15832 HAVE_AO_TRUE='#' 15833 HAVE_AO_FALSE= 15834fi 15835 15836 if test $using_ao = yes; then 15837 STATIC_AO_TRUE= 15838 STATIC_AO_FALSE='#' 15839else 15840 STATIC_AO_TRUE='#' 15841 STATIC_AO_FALSE= 15842fi 15843 15844 15845 15846 15847 15848 15849 15850 15851# Check whether --with-pulseaudio was given. 15852if test "${with_pulseaudio+set}" = set; then : 15853 withval=$with_pulseaudio; 15854fi 15855 15856 using_pulseaudio=$with_pulseaudio 15857 if test "_$with_pulseaudio" = _dyn; then 15858 if test $using_libltdl != yes; then 15859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15861as_fn_error $? "not using libltdl; cannot load pulseaudio dynamically 15862See \`config.log' for more details" "$LINENO" 5; } 15863 fi 15864 elif test "_$with_pulseaudio" = _; then 15865 using_pulseaudio=$opt_default 15866 elif test "_$with_pulseaudio" != _yes -a "_$with_pulseaudio" != _no; then 15867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15869as_fn_error $? "invalid selection --with-pulseaudio=$with_pulseaudio 15870See \`config.log' for more details" "$LINENO" 5; } 15871 fi 15872 if test _$with_pulseaudio != _no; then 15873 ac_fn_c_check_header_mongrel "$LINENO" "pulse/simple.h" "ac_cv_header_pulse_simple_h" "$ac_includes_default" 15874if test "x$ac_cv_header_pulse_simple_h" = xyes; then : 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse" >&5 15876$as_echo_n "checking for pa_simple_new in -lpulse... " >&6; } 15877if ${ac_cv_lib_pulse_pa_simple_new+:} false; then : 15878 $as_echo_n "(cached) " >&6 15879else 15880 ac_check_lib_save_LIBS=$LIBS 15881LIBS="-lpulse "-lpulse-simple" $LIBS" 15882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15883/* end confdefs.h. */ 15884 15885/* Override any GCC internal prototype to avoid an error. 15886 Use char because int might match the return type of a GCC 15887 builtin and then its argument prototype would still apply. */ 15888#ifdef __cplusplus 15889extern "C" 15890#endif 15891char pa_simple_new (); 15892int 15893main () 15894{ 15895return pa_simple_new (); 15896 ; 15897 return 0; 15898} 15899_ACEOF 15900if ac_fn_c_try_link "$LINENO"; then : 15901 ac_cv_lib_pulse_pa_simple_new=yes 15902else 15903 ac_cv_lib_pulse_pa_simple_new=no 15904fi 15905rm -f core conftest.err conftest.$ac_objext \ 15906 conftest$ac_exeext conftest.$ac_ext 15907LIBS=$ac_check_lib_save_LIBS 15908fi 15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_simple_new" >&5 15910$as_echo "$ac_cv_lib_pulse_pa_simple_new" >&6; } 15911if test "x$ac_cv_lib_pulse_pa_simple_new" = xyes; then : 15912 PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS -lpulse -lpulse-simple" 15913else 15914 using_pulseaudio=no 15915fi 15916 15917else 15918 using_pulseaudio=no 15919fi 15920 15921 15922 if test _$with_pulseaudio != _ -a $using_pulseaudio = no; then 15923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15925as_fn_error $? "cannot find pulseaudio 15926See \`config.log' for more details" "$LINENO" 5; } 15927 fi 15928 fi 15929 if test "$using_pulseaudio" != no; then 15930 15931$as_echo "#define HAVE_PULSEAUDIO 1" >>confdefs.h 15932 15933 if test "$using_pulseaudio" = yes; then 15934 15935$as_echo "#define STATIC_PULSEAUDIO 1" >>confdefs.h 15936 15937 fi 15938 fi 15939 if test $using_pulseaudio != no; then 15940 HAVE_PULSEAUDIO_TRUE= 15941 HAVE_PULSEAUDIO_FALSE='#' 15942else 15943 HAVE_PULSEAUDIO_TRUE='#' 15944 HAVE_PULSEAUDIO_FALSE= 15945fi 15946 15947 if test $using_pulseaudio = yes; then 15948 STATIC_PULSEAUDIO_TRUE= 15949 STATIC_PULSEAUDIO_FALSE='#' 15950else 15951 STATIC_PULSEAUDIO_TRUE='#' 15952 STATIC_PULSEAUDIO_FALSE= 15953fi 15954 15955 15956 15957 15958 15959 15960 15961# Check whether --with-waveaudio was given. 15962if test "${with_waveaudio+set}" = set; then : 15963 withval=$with_waveaudio; 15964fi 15965 15966 using_waveaudio=$with_waveaudio 15967 if test "_$with_waveaudio" = _dyn; then 15968 if test $using_libltdl != yes; then 15969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15971as_fn_error $? "not using libltdl; cannot load waveaudio dynamically 15972See \`config.log' for more details" "$LINENO" 5; } 15973 fi 15974 elif test "_$with_waveaudio" = _; then 15975 using_waveaudio=$opt_default 15976 elif test "_$with_waveaudio" != _yes -a "_$with_waveaudio" != _no; then 15977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15979as_fn_error $? "invalid selection --with-waveaudio=$with_waveaudio 15980See \`config.log' for more details" "$LINENO" 5; } 15981 fi 15982 if test _$with_waveaudio != _no; then 15983 ac_fn_c_check_header_compile "$LINENO" "mmsystem.h" "ac_cv_header_mmsystem_h" "#include <windows.h> 15984" 15985if test "x$ac_cv_header_mmsystem_h" = xyes; then : 15986 WAVEAUDIO_LIBS="$WAVEAUDIO_LIBS -lwinmm" 15987else 15988 using_waveaudio=no 15989fi 15990 15991 15992 if test _$with_waveaudio != _ -a $using_waveaudio = no; then 15993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15995as_fn_error $? "cannot find waveaudio 15996See \`config.log' for more details" "$LINENO" 5; } 15997 fi 15998 fi 15999 if test "$using_waveaudio" != no; then 16000 16001$as_echo "#define HAVE_WAVEAUDIO 1" >>confdefs.h 16002 16003 if test "$using_waveaudio" = yes; then 16004 16005$as_echo "#define STATIC_WAVEAUDIO 1" >>confdefs.h 16006 16007 fi 16008 fi 16009 if test $using_waveaudio != no; then 16010 HAVE_WAVEAUDIO_TRUE= 16011 HAVE_WAVEAUDIO_FALSE='#' 16012else 16013 HAVE_WAVEAUDIO_TRUE='#' 16014 HAVE_WAVEAUDIO_FALSE= 16015fi 16016 16017 if test $using_waveaudio = yes; then 16018 STATIC_WAVEAUDIO_TRUE= 16019 STATIC_WAVEAUDIO_FALSE='#' 16020else 16021 STATIC_WAVEAUDIO_TRUE='#' 16022 STATIC_WAVEAUDIO_FALSE= 16023fi 16024 16025 16026 16027 16028 16029ac_sox_save_SNDFILE_LIBS="$SNDFILE_LIBS" 16030# Step 1: Use pkg-config if available 16031# PKG_CHECK_MODULES available 16032 16033pkg_failed=no 16034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 16035$as_echo_n "checking for SNDFILE... " >&6; } 16036 16037if test -n "$SNDFILE_CFLAGS"; then 16038 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" 16039 elif test -n "$PKG_CONFIG"; then 16040 if test -n "$PKG_CONFIG" && \ 16041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5 16042 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5 16043 ac_status=$? 16044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16045 test $ac_status = 0; }; then 16046 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null` 16047 test "x$?" != "x0" && pkg_failed=yes 16048else 16049 pkg_failed=yes 16050fi 16051 else 16052 pkg_failed=untried 16053fi 16054if test -n "$SNDFILE_LIBS"; then 16055 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" 16056 elif test -n "$PKG_CONFIG"; then 16057 if test -n "$PKG_CONFIG" && \ 16058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5 16059 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5 16060 ac_status=$? 16061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16062 test $ac_status = 0; }; then 16063 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null` 16064 test "x$?" != "x0" && pkg_failed=yes 16065else 16066 pkg_failed=yes 16067fi 16068 else 16069 pkg_failed=untried 16070fi 16071 16072 16073 16074if test $pkg_failed = yes; then 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16076$as_echo "no" >&6; } 16077 16078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16079 _pkg_short_errors_supported=yes 16080else 16081 _pkg_short_errors_supported=no 16082fi 16083 if test $_pkg_short_errors_supported = yes; then 16084 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1` 16085 else 16086 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1` 16087 fi 16088 # Put the nasty error message in config.log where it belongs 16089 echo "$SNDFILE_PKG_ERRORS" >&5 16090 16091 have_sndfile="no" 16092elif test $pkg_failed = untried; then 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16094$as_echo "no" >&6; } 16095 have_sndfile="no" 16096else 16097 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS 16098 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16100$as_echo "yes" >&6; } 16101 have_sndfile="maybe" 16102fi 16103 16104# Step 3: Even if pkg-config says its not installed, user may have 16105# manually installed libraries with no -kg-config support. 16106if test "$have_sndfile" = "no" 16107then 16108 # As a last resort, just hope that header and ilbrary can 16109 # be found in default paths and that it doesn't need 16110 # to link against any other libraries. 16111 SNDFILE_LIBS="-lsndfile $SNDFILE_LIBS" 16112 have_sndfile="maybe" 16113fi 16114 16115# Even if pkg-config or similar told us how to find library, 16116# do a safety check. 16117if test "$have_sndfile" != "no" 16118then 16119 ac_save_CFLAGS="$CFLAGS" 16120 ac_save_LIBS="$LIBS" 16121 CFLAGS="$CFLAGS $SNDFILE_CFLAGS" 16122 LIBS="$LIBS $SNDFILE_LIBS" 16123 ac_fn_c_check_header_mongrel "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default" 16124if test "x$ac_cv_header_sndfile_h" = xyes; then : 16125 16126 16127$as_echo "#define HAVE_SNDFILE_H 1" >>confdefs.h 16128 16129 ac_fn_c_check_func "$LINENO" "sf_open_virtual" "ac_cv_func_sf_open_virtual" 16130if test "x$ac_cv_func_sf_open_virtual" = xyes; then : 16131 16132 tmp_using_sndfile=$opt_default 16133 have_sndfile="yes" 16134 16135fi 16136 16137 ac_fn_c_check_decl "$LINENO" "SF_FORMAT_OGG" "ac_cv_have_decl_SF_FORMAT_OGG" "#include <sndfile.h> 16138" 16139if test "x$ac_cv_have_decl_SF_FORMAT_OGG" = xyes; then : 16140 16141$as_echo "#define HAVE_SNDFILE_1_0_18 1" >>confdefs.h 16142 16143fi 16144 16145 ac_fn_c_check_decl "$LINENO" "SFC_SET_SCALE_INT_FLOAT_WRITE" "ac_cv_have_decl_SFC_SET_SCALE_INT_FLOAT_WRITE" "#include <sndfile.h> 16146" 16147if test "x$ac_cv_have_decl_SFC_SET_SCALE_INT_FLOAT_WRITE" = xyes; then : 16148 16149$as_echo "#define HAVE_SFC_SET_SCALE_INT_FLOAT_WRITE 1" >>confdefs.h 16150 16151fi 16152 16153 16154fi 16155 16156 16157 CFLAGS="$ac_save_CFLAGS" 16158 LIBS="$ac_save_LIBS" 16159fi 16160 16161if test "$have_sndfile" != "yes" 16162then 16163 tmp_using_sndfile=no 16164fi 16165 16166# Check whether --enable-dl_sndfile was given. 16167if test "${enable_dl_sndfile+set}" = set; then : 16168 enableval=$enable_dl_sndfile; enable_dl_sndfile=$enableval 16169else 16170 enable_dl_sndfile=no 16171fi 16172 16173if test "x$using_sndfile" = "xyes"; then 16174 if test "x$using_libltdl" = "xyes" -a "x$enable_dl_sndfile" = "xyes"; then 16175 16176$as_echo "#define DL_SNDFILE 1" >>confdefs.h 16177 16178 SNDFILE_LIBS="$ac_sox_save_SNDFILE_LIBS" 16179 else 16180 enable_dl_sndfile="no" 16181 fi 16182fi 16183 16184# Check whether --with-sndfile was given. 16185if test "${with_sndfile+set}" = set; then : 16186 withval=$with_sndfile; 16187fi 16188 16189 using_sndfile=$with_sndfile 16190 if test "_$with_sndfile" = _dyn; then 16191 if test $using_libltdl != yes; then 16192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16194as_fn_error $? "not using libltdl; cannot load sndfile dynamically 16195See \`config.log' for more details" "$LINENO" 5; } 16196 fi 16197 elif test "_$with_sndfile" = _; then 16198 using_sndfile=$opt_default 16199 elif test "_$with_sndfile" != _yes -a "_$with_sndfile" != _no; then 16200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16202as_fn_error $? "invalid selection --with-sndfile=$with_sndfile 16203See \`config.log' for more details" "$LINENO" 5; } 16204 fi 16205 if test _$with_sndfile != _no; then 16206 using_sndfile=$tmp_using_sndfile 16207 if test _$with_sndfile != _ -a $using_sndfile = no; then 16208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16210as_fn_error $? "cannot find sndfile 16211See \`config.log' for more details" "$LINENO" 5; } 16212 fi 16213 fi 16214 if test "$using_sndfile" != no; then 16215 16216$as_echo "#define HAVE_SNDFILE 1" >>confdefs.h 16217 16218 if test "$using_sndfile" = yes; then 16219 16220$as_echo "#define STATIC_SNDFILE 1" >>confdefs.h 16221 16222 fi 16223 fi 16224 if test $using_sndfile != no; then 16225 HAVE_SNDFILE_TRUE= 16226 HAVE_SNDFILE_FALSE='#' 16227else 16228 HAVE_SNDFILE_TRUE='#' 16229 HAVE_SNDFILE_FALSE= 16230fi 16231 16232 if test $using_sndfile = yes; then 16233 STATIC_SNDFILE_TRUE= 16234 STATIC_SNDFILE_FALSE='#' 16235else 16236 STATIC_SNDFILE_TRUE='#' 16237 STATIC_SNDFILE_FALSE= 16238fi 16239 16240 16241 16242 16243 16244 16245 16246 16247# Check whether --with-oss was given. 16248if test "${with_oss+set}" = set; then : 16249 withval=$with_oss; 16250fi 16251 16252 using_oss=$with_oss 16253 if test "_$with_oss" = _dyn; then 16254 if test $using_libltdl != yes; then 16255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16257as_fn_error $? "not using libltdl; cannot load oss dynamically 16258See \`config.log' for more details" "$LINENO" 5; } 16259 fi 16260 elif test "_$with_oss" = _; then 16261 using_oss=$opt_default 16262 elif test "_$with_oss" != _yes -a "_$with_oss" != _no; then 16263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16265as_fn_error $? "invalid selection --with-oss=$with_oss 16266See \`config.log' for more details" "$LINENO" 5; } 16267 fi 16268 if test _$with_oss != _no; then 16269 for ac_header in sys/soundcard.h 16270do : 16271 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 16272if test "x$ac_cv_header_sys_soundcard_h" = xyes; then : 16273 cat >>confdefs.h <<_ACEOF 16274#define HAVE_SYS_SOUNDCARD_H 1 16275_ACEOF 16276 16277else 16278 for ac_header in machine/soundcard.h 16279do : 16280 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" 16281if test "x$ac_cv_header_machine_soundcard_h" = xyes; then : 16282 cat >>confdefs.h <<_ACEOF 16283#define HAVE_MACHINE_SOUNDCARD_H 1 16284_ACEOF 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 16286$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 16287if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : 16288 $as_echo_n "(cached) " >&6 16289else 16290 ac_check_lib_save_LIBS=$LIBS 16291LIBS="-lossaudio $LIBS" 16292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293/* end confdefs.h. */ 16294 16295/* Override any GCC internal prototype to avoid an error. 16296 Use char because int might match the return type of a GCC 16297 builtin and then its argument prototype would still apply. */ 16298#ifdef __cplusplus 16299extern "C" 16300#endif 16301char _oss_ioctl (); 16302int 16303main () 16304{ 16305return _oss_ioctl (); 16306 ; 16307 return 0; 16308} 16309_ACEOF 16310if ac_fn_c_try_link "$LINENO"; then : 16311 ac_cv_lib_ossaudio__oss_ioctl=yes 16312else 16313 ac_cv_lib_ossaudio__oss_ioctl=no 16314fi 16315rm -f core conftest.err conftest.$ac_objext \ 16316 conftest$ac_exeext conftest.$ac_ext 16317LIBS=$ac_check_lib_save_LIBS 16318fi 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 16320$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 16321if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : 16322 OSS_LIBS="$OSS_LIBS -lossaudio" 16323fi 16324 16325else 16326 using_oss=no 16327fi 16328 16329done 16330 16331fi 16332 16333done 16334 16335 if test _$with_oss != _ -a $using_oss = no; then 16336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16338as_fn_error $? "cannot find oss 16339See \`config.log' for more details" "$LINENO" 5; } 16340 fi 16341 fi 16342 if test "$using_oss" != no; then 16343 16344$as_echo "#define HAVE_OSS 1" >>confdefs.h 16345 16346 if test "$using_oss" = yes; then 16347 16348$as_echo "#define STATIC_OSS 1" >>confdefs.h 16349 16350 fi 16351 fi 16352 if test $using_oss != no; then 16353 HAVE_OSS_TRUE= 16354 HAVE_OSS_FALSE='#' 16355else 16356 HAVE_OSS_TRUE='#' 16357 HAVE_OSS_FALSE= 16358fi 16359 16360 if test $using_oss = yes; then 16361 STATIC_OSS_TRUE= 16362 STATIC_OSS_FALSE='#' 16363else 16364 STATIC_OSS_TRUE='#' 16365 STATIC_OSS_FALSE= 16366fi 16367 16368 16369 16370 16371 16372 16373 16374 16375# Check whether --with-sunaudio was given. 16376if test "${with_sunaudio+set}" = set; then : 16377 withval=$with_sunaudio; 16378fi 16379 16380 using_sunaudio=$with_sunaudio 16381 if test "_$with_sunaudio" = _dyn; then 16382 if test $using_libltdl != yes; then 16383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16385as_fn_error $? "not using libltdl; cannot load sunaudio dynamically 16386See \`config.log' for more details" "$LINENO" 5; } 16387 fi 16388 elif test "_$with_sunaudio" = _; then 16389 using_sunaudio=$opt_default 16390 elif test "_$with_sunaudio" != _yes -a "_$with_sunaudio" != _no; then 16391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16393as_fn_error $? "invalid selection --with-sunaudio=$with_sunaudio 16394See \`config.log' for more details" "$LINENO" 5; } 16395 fi 16396 if test _$with_sunaudio != _no; then 16397 for ac_header in sys/audioio.h 16398do : 16399 ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default" 16400if test "x$ac_cv_header_sys_audioio_h" = xyes; then : 16401 cat >>confdefs.h <<_ACEOF 16402#define HAVE_SYS_AUDIOIO_H 1 16403_ACEOF 16404 16405else 16406 for ac_header in sun/audioio.h 16407do : 16408 ac_fn_c_check_header_mongrel "$LINENO" "sun/audioio.h" "ac_cv_header_sun_audioio_h" "$ac_includes_default" 16409if test "x$ac_cv_header_sun_audioio_h" = xyes; then : 16410 cat >>confdefs.h <<_ACEOF 16411#define HAVE_SUN_AUDIOIO_H 1 16412_ACEOF 16413 16414else 16415 using_sunaudio=no 16416fi 16417 16418done 16419 16420fi 16421 16422done 16423 16424 if test _$with_sunaudio != _ -a $using_sunaudio = no; then 16425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16427as_fn_error $? "cannot find sunaudio 16428See \`config.log' for more details" "$LINENO" 5; } 16429 fi 16430 fi 16431 if test "$using_sunaudio" != no; then 16432 16433$as_echo "#define HAVE_SUN_AUDIO 1" >>confdefs.h 16434 16435 if test "$using_sunaudio" = yes; then 16436 16437$as_echo "#define STATIC_SUN_AUDIO 1" >>confdefs.h 16438 16439 fi 16440 fi 16441 if test $using_sunaudio != no; then 16442 HAVE_SUN_AUDIO_TRUE= 16443 HAVE_SUN_AUDIO_FALSE='#' 16444else 16445 HAVE_SUN_AUDIO_TRUE='#' 16446 HAVE_SUN_AUDIO_FALSE= 16447fi 16448 16449 if test $using_sunaudio = yes; then 16450 STATIC_SUN_AUDIO_TRUE= 16451 STATIC_SUN_AUDIO_FALSE='#' 16452else 16453 STATIC_SUN_AUDIO_TRUE='#' 16454 STATIC_SUN_AUDIO_FALSE= 16455fi 16456 16457 16458 16459 16460 16461 16462 16463# MP2/MP3 format depends on libmad || LAME || twolame 16464 16465# Check whether --with-mp3 was given. 16466if test "${with_mp3+set}" = set; then : 16467 withval=$with_mp3; 16468fi 16469 16470 using_mp3=$with_mp3 16471 if test "_$with_mp3" = _dyn; then 16472 if test $using_libltdl != yes; then 16473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16475as_fn_error $? "not using libltdl; cannot load mp3 dynamically 16476See \`config.log' for more details" "$LINENO" 5; } 16477 fi 16478 elif test "_$with_mp3" = _; then 16479 using_mp3=$opt_default 16480 elif test "_$with_mp3" != _yes -a "_$with_mp3" != _no; then 16481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16483as_fn_error $? "invalid selection --with-mp3=$with_mp3 16484See \`config.log' for more details" "$LINENO" 5; } 16485 fi 16486 if test _$with_mp3 != _no; then 16487 16488 if test "$using_mad" != yes -a "$using_lame" != yes -a "$using_twolame" != yes; then 16489 using_mp3=no 16490 fi 16491 if test _$with_mp3 != _ -a $using_mp3 = no; then 16492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16494as_fn_error $? "cannot find mp3 16495See \`config.log' for more details" "$LINENO" 5; } 16496 fi 16497 fi 16498 if test "$using_mp3" != no; then 16499 16500$as_echo "#define HAVE_MP3 1" >>confdefs.h 16501 16502 if test "$using_mp3" = yes; then 16503 16504$as_echo "#define STATIC_MP3 1" >>confdefs.h 16505 16506 fi 16507 fi 16508 if test $using_mp3 != no; then 16509 HAVE_MP3_TRUE= 16510 HAVE_MP3_FALSE='#' 16511else 16512 HAVE_MP3_TRUE='#' 16513 HAVE_MP3_FALSE= 16514fi 16515 16516 if test $using_mp3 = yes; then 16517 STATIC_MP3_TRUE= 16518 STATIC_MP3_FALSE='#' 16519else 16520 STATIC_MP3_TRUE='#' 16521 STATIC_MP3_FALSE= 16522fi 16523 16524 16525 16526 16527 16528 16529 16530# GSM format depends on libgsm 16531# No need to check; GSM is always found 16532 16533# Check whether --with-gsm was given. 16534if test "${with_gsm+set}" = set; then : 16535 withval=$with_gsm; 16536fi 16537 16538 using_gsm=$with_gsm 16539 if test "_$with_gsm" = _dyn; then 16540 if test $using_libltdl != yes; then 16541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16543as_fn_error $? "not using libltdl; cannot load gsm dynamically 16544See \`config.log' for more details" "$LINENO" 5; } 16545 fi 16546 elif test "_$with_gsm" = _; then 16547 using_gsm=$opt_default 16548 elif test "_$with_gsm" != _yes -a "_$with_gsm" != _no; then 16549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16551as_fn_error $? "invalid selection --with-gsm=$with_gsm 16552See \`config.log' for more details" "$LINENO" 5; } 16553 fi 16554 if test _$with_gsm != _no; then 16555 16556 if test _$with_gsm != _ -a $using_gsm = no; then 16557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16559as_fn_error $? "cannot find gsm 16560See \`config.log' for more details" "$LINENO" 5; } 16561 fi 16562 fi 16563 if test "$using_gsm" != no; then 16564 16565$as_echo "#define HAVE_GSM 1" >>confdefs.h 16566 16567 if test "$using_gsm" = yes; then 16568 16569$as_echo "#define STATIC_GSM 1" >>confdefs.h 16570 16571 fi 16572 fi 16573 if test $using_gsm != no; then 16574 HAVE_GSM_TRUE= 16575 HAVE_GSM_FALSE='#' 16576else 16577 HAVE_GSM_TRUE='#' 16578 HAVE_GSM_FALSE= 16579fi 16580 16581 if test $using_gsm = yes; then 16582 STATIC_GSM_TRUE= 16583 STATIC_GSM_FALSE='#' 16584else 16585 STATIC_GSM_TRUE='#' 16586 STATIC_GSM_FALSE= 16587fi 16588 16589 16590 16591 16592 16593 16594 16595# LPC10 format depends on liblpc10 16596# No need to check; LPC10 is always found 16597 16598# Check whether --with-lpc10 was given. 16599if test "${with_lpc10+set}" = set; then : 16600 withval=$with_lpc10; 16601fi 16602 16603 using_lpc10=$with_lpc10 16604 if test "_$with_lpc10" = _dyn; then 16605 if test $using_libltdl != yes; then 16606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16608as_fn_error $? "not using libltdl; cannot load lpc10 dynamically 16609See \`config.log' for more details" "$LINENO" 5; } 16610 fi 16611 elif test "_$with_lpc10" = _; then 16612 using_lpc10=$opt_default 16613 elif test "_$with_lpc10" != _yes -a "_$with_lpc10" != _no; then 16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16616as_fn_error $? "invalid selection --with-lpc10=$with_lpc10 16617See \`config.log' for more details" "$LINENO" 5; } 16618 fi 16619 if test _$with_lpc10 != _no; then 16620 16621 if test _$with_lpc10 != _ -a $using_lpc10 = no; then 16622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16624as_fn_error $? "cannot find lpc10 16625See \`config.log' for more details" "$LINENO" 5; } 16626 fi 16627 fi 16628 if test "$using_lpc10" != no; then 16629 16630$as_echo "#define HAVE_LPC10 1" >>confdefs.h 16631 16632 if test "$using_lpc10" = yes; then 16633 16634$as_echo "#define STATIC_LPC10 1" >>confdefs.h 16635 16636 fi 16637 fi 16638 if test $using_lpc10 != no; then 16639 HAVE_LPC10_TRUE= 16640 HAVE_LPC10_FALSE='#' 16641else 16642 HAVE_LPC10_TRUE='#' 16643 HAVE_LPC10_FALSE= 16644fi 16645 16646 if test $using_lpc10 = yes; then 16647 STATIC_LPC10_TRUE= 16648 STATIC_LPC10_FALSE='#' 16649else 16650 STATIC_LPC10_TRUE='#' 16651 STATIC_LPC10_FALSE= 16652fi 16653 16654 16655 16656 16657 16658 16659 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable symlinks" >&5 16661$as_echo_n "checking whether to enable symlinks... " >&6; } 16662# Check whether --enable-symlinks was given. 16663if test "${enable_symlinks+set}" = set; then : 16664 enableval=$enable_symlinks; 16665else 16666 enable_symlinks=yes 16667fi 16668 16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_symlinks" >&5 16670$as_echo "$enable_symlinks" >&6; } 16671 16672enable_playrec_symlinks=no 16673if test "$enable_symlinks" = "yes"; then 16674 SYMLINKS=yes 16675 if test false \ 16676 -o "$enable_alsa" = yes \ 16677 -o "$enable_ao" = yes \ 16678 -o "$enable_coreaudio" = yes \ 16679 -o "$enable_oss" = yes \ 16680 -o "$enable_pulseaudio" = yes \ 16681 -o "$enable_sndio" = yes \ 16682 ; then 16683 PLAYRECLINKS=yes 16684 enable_playrec_symlinks=yes 16685 fi 16686fi 16687 16688 16689 16690 if test "$enable_shared" = "no" -a "$enable_static" = "yes"; then 16691 STATIC_LIBSOX_ONLY_TRUE= 16692 STATIC_LIBSOX_ONLY_FALSE='#' 16693else 16694 STATIC_LIBSOX_ONLY_TRUE='#' 16695 STATIC_LIBSOX_ONLY_FALSE= 16696fi 16697 16698 16699ac_config_files="$ac_config_files Makefile src/Makefile libgsm/Makefile lpc10/Makefile msvc9/Makefile msvc10/Makefile sox.pc" 16700 16701cat >confcache <<\_ACEOF 16702# This file is a shell script that caches the results of configure 16703# tests run on this system so they can be shared between configure 16704# scripts and configure runs, see configure's option --config-cache. 16705# It is not useful on other systems. If it contains results you don't 16706# want to keep, you may remove or edit it. 16707# 16708# config.status only pays attention to the cache file if you give it 16709# the --recheck option to rerun configure. 16710# 16711# `ac_cv_env_foo' variables (set or unset) will be overridden when 16712# loading this file, other *unset* `ac_cv_foo' will be assigned the 16713# following values. 16714 16715_ACEOF 16716 16717# The following way of writing the cache mishandles newlines in values, 16718# but we know of no workaround that is simple, portable, and efficient. 16719# So, we kill variables containing newlines. 16720# Ultrix sh set writes to stderr and can't be redirected directly, 16721# and sets the high bit in the cache file unless we assign to the vars. 16722( 16723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16724 eval ac_val=\$$ac_var 16725 case $ac_val in #( 16726 *${as_nl}*) 16727 case $ac_var in #( 16728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16729$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16730 esac 16731 case $ac_var in #( 16732 _ | IFS | as_nl) ;; #( 16733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16734 *) { eval $ac_var=; unset $ac_var;} ;; 16735 esac ;; 16736 esac 16737 done 16738 16739 (set) 2>&1 | 16740 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16741 *${as_nl}ac_space=\ *) 16742 # `set' does not quote correctly, so add quotes: double-quote 16743 # substitution turns \\\\ into \\, and sed turns \\ into \. 16744 sed -n \ 16745 "s/'/'\\\\''/g; 16746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16747 ;; #( 16748 *) 16749 # `set' quotes correctly as required by POSIX, so do not add quotes. 16750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16751 ;; 16752 esac | 16753 sort 16754) | 16755 sed ' 16756 /^ac_cv_env_/b end 16757 t clear 16758 :clear 16759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16760 t end 16761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16762 :end' >>confcache 16763if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16764 if test -w "$cache_file"; then 16765 if test "x$cache_file" != "x/dev/null"; then 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16767$as_echo "$as_me: updating cache $cache_file" >&6;} 16768 if test ! -f "$cache_file" || test -h "$cache_file"; then 16769 cat confcache >"$cache_file" 16770 else 16771 case $cache_file in #( 16772 */* | ?:*) 16773 mv -f confcache "$cache_file"$$ && 16774 mv -f "$cache_file"$$ "$cache_file" ;; #( 16775 *) 16776 mv -f confcache "$cache_file" ;; 16777 esac 16778 fi 16779 fi 16780 else 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16782$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16783 fi 16784fi 16785rm -f confcache 16786 16787test "x$prefix" = xNONE && prefix=$ac_default_prefix 16788# Let make expand exec_prefix. 16789test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16790 16791DEFS=-DHAVE_CONFIG_H 16792 16793ac_libobjs= 16794ac_ltlibobjs= 16795U= 16796for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16797 # 1. Remove the extension, and $U if already installed. 16798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16801 # will be set to the directory where LIBOBJS objects are built. 16802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16804done 16805LIBOBJS=$ac_libobjs 16806 16807LTLIBOBJS=$ac_ltlibobjs 16808 16809 16810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16811$as_echo_n "checking that generated files are newer than configure... " >&6; } 16812 if test -n "$am_sleep_pid"; then 16813 # Hide warnings about reused PIDs. 16814 wait $am_sleep_pid 2>/dev/null 16815 fi 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16817$as_echo "done" >&6; } 16818 if test -n "$EXEEXT"; then 16819 am__EXEEXT_TRUE= 16820 am__EXEEXT_FALSE='#' 16821else 16822 am__EXEEXT_TRUE='#' 16823 am__EXEEXT_FALSE= 16824fi 16825 16826if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16827 as_fn_error $? "conditional \"AMDEP\" was never defined. 16828Usually this means the macro was only invoked conditionally." "$LINENO" 5 16829fi 16830if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16832Usually this means the macro was only invoked conditionally." "$LINENO" 5 16833fi 16834if test -z "${HAVE_PKGCONFIG_TRUE}" && test -z "${HAVE_PKGCONFIG_FALSE}"; then 16835 as_fn_error $? "conditional \"HAVE_PKGCONFIG\" was never defined. 16836Usually this means the macro was only invoked conditionally." "$LINENO" 5 16837fi 16838if test -z "${HAVE_WIN32_GLOB_TRUE}" && test -z "${HAVE_WIN32_GLOB_FALSE}"; then 16839 as_fn_error $? "conditional \"HAVE_WIN32_GLOB\" was never defined. 16840Usually this means the macro was only invoked conditionally." "$LINENO" 5 16841fi 16842if test -z "${HAVE_DISTRO_TRUE}" && test -z "${HAVE_DISTRO_FALSE}"; then 16843 as_fn_error $? "conditional \"HAVE_DISTRO\" was never defined. 16844Usually this means the macro was only invoked conditionally." "$LINENO" 5 16845fi 16846 16847if test -z "${HAVE_LIBLTDL_TRUE}" && test -z "${HAVE_LIBLTDL_FALSE}"; then 16848 as_fn_error $? "conditional \"HAVE_LIBLTDL\" was never defined. 16849Usually this means the macro was only invoked conditionally." "$LINENO" 5 16850fi 16851if test -z "${HAVE_WIN32_LTDL_TRUE}" && test -z "${HAVE_WIN32_LTDL_FALSE}"; then 16852 as_fn_error $? "conditional \"HAVE_WIN32_LTDL\" was never defined. 16853Usually this means the macro was only invoked conditionally." "$LINENO" 5 16854fi 16855if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16856 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16857Usually this means the macro was only invoked conditionally." "$LINENO" 5 16858fi 16859if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then 16860 as_fn_error $? "conditional \"HAVE_PNG\" was never defined. 16861Usually this means the macro was only invoked conditionally." "$LINENO" 5 16862fi 16863if test -z "${HAVE_ID3TAG_TRUE}" && test -z "${HAVE_ID3TAG_FALSE}"; then 16864 as_fn_error $? "conditional \"HAVE_ID3TAG\" was never defined. 16865Usually this means the macro was only invoked conditionally." "$LINENO" 5 16866fi 16867if test -z "${EXTERNAL_GSM_TRUE}" && test -z "${EXTERNAL_GSM_FALSE}"; then 16868 as_fn_error $? "conditional \"EXTERNAL_GSM\" was never defined. 16869Usually this means the macro was only invoked conditionally." "$LINENO" 5 16870fi 16871if test -z "${EXTERNAL_LPC10_TRUE}" && test -z "${EXTERNAL_LPC10_FALSE}"; then 16872 as_fn_error $? "conditional \"EXTERNAL_LPC10\" was never defined. 16873Usually this means the macro was only invoked conditionally." "$LINENO" 5 16874fi 16875if test -z "${HAVE_OGG_VORBIS_TRUE}" && test -z "${HAVE_OGG_VORBIS_FALSE}"; then 16876 as_fn_error $? "conditional \"HAVE_OGG_VORBIS\" was never defined. 16877Usually this means the macro was only invoked conditionally." "$LINENO" 5 16878fi 16879if test -z "${STATIC_OGG_VORBIS_TRUE}" && test -z "${STATIC_OGG_VORBIS_FALSE}"; then 16880 as_fn_error $? "conditional \"STATIC_OGG_VORBIS\" was never defined. 16881Usually this means the macro was only invoked conditionally." "$LINENO" 5 16882fi 16883if test -z "${HAVE_OPUS_TRUE}" && test -z "${HAVE_OPUS_FALSE}"; then 16884 as_fn_error $? "conditional \"HAVE_OPUS\" was never defined. 16885Usually this means the macro was only invoked conditionally." "$LINENO" 5 16886fi 16887if test -z "${STATIC_OPUS_TRUE}" && test -z "${STATIC_OPUS_FALSE}"; then 16888 as_fn_error $? "conditional \"STATIC_OPUS\" was never defined. 16889Usually this means the macro was only invoked conditionally." "$LINENO" 5 16890fi 16891if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then 16892 as_fn_error $? "conditional \"HAVE_FLAC\" was never defined. 16893Usually this means the macro was only invoked conditionally." "$LINENO" 5 16894fi 16895if test -z "${STATIC_FLAC_TRUE}" && test -z "${STATIC_FLAC_FALSE}"; then 16896 as_fn_error $? "conditional \"STATIC_FLAC\" was never defined. 16897Usually this means the macro was only invoked conditionally." "$LINENO" 5 16898fi 16899if test -z "${HAVE_AMRWB_TRUE}" && test -z "${HAVE_AMRWB_FALSE}"; then 16900 as_fn_error $? "conditional \"HAVE_AMRWB\" was never defined. 16901Usually this means the macro was only invoked conditionally." "$LINENO" 5 16902fi 16903if test -z "${STATIC_AMRWB_TRUE}" && test -z "${STATIC_AMRWB_FALSE}"; then 16904 as_fn_error $? "conditional \"STATIC_AMRWB\" was never defined. 16905Usually this means the macro was only invoked conditionally." "$LINENO" 5 16906fi 16907if test -z "${HAVE_AMRNB_TRUE}" && test -z "${HAVE_AMRNB_FALSE}"; then 16908 as_fn_error $? "conditional \"HAVE_AMRNB\" was never defined. 16909Usually this means the macro was only invoked conditionally." "$LINENO" 5 16910fi 16911if test -z "${STATIC_AMRNB_TRUE}" && test -z "${STATIC_AMRNB_FALSE}"; then 16912 as_fn_error $? "conditional \"STATIC_AMRNB\" was never defined. 16913Usually this means the macro was only invoked conditionally." "$LINENO" 5 16914fi 16915if test -z "${HAVE_WAVPACK_TRUE}" && test -z "${HAVE_WAVPACK_FALSE}"; then 16916 as_fn_error $? "conditional \"HAVE_WAVPACK\" was never defined. 16917Usually this means the macro was only invoked conditionally." "$LINENO" 5 16918fi 16919if test -z "${STATIC_WAVPACK_TRUE}" && test -z "${STATIC_WAVPACK_FALSE}"; then 16920 as_fn_error $? "conditional \"STATIC_WAVPACK\" was never defined. 16921Usually this means the macro was only invoked conditionally." "$LINENO" 5 16922fi 16923if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then 16924 as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined. 16925Usually this means the macro was only invoked conditionally." "$LINENO" 5 16926fi 16927if test -z "${STATIC_SNDIO_TRUE}" && test -z "${STATIC_SNDIO_FALSE}"; then 16928 as_fn_error $? "conditional \"STATIC_SNDIO\" was never defined. 16929Usually this means the macro was only invoked conditionally." "$LINENO" 5 16930fi 16931if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then 16932 as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined. 16933Usually this means the macro was only invoked conditionally." "$LINENO" 5 16934fi 16935if test -z "${STATIC_COREAUDIO_TRUE}" && test -z "${STATIC_COREAUDIO_FALSE}"; then 16936 as_fn_error $? "conditional \"STATIC_COREAUDIO\" was never defined. 16937Usually this means the macro was only invoked conditionally." "$LINENO" 5 16938fi 16939if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then 16940 as_fn_error $? "conditional \"HAVE_ALSA\" was never defined. 16941Usually this means the macro was only invoked conditionally." "$LINENO" 5 16942fi 16943if test -z "${STATIC_ALSA_TRUE}" && test -z "${STATIC_ALSA_FALSE}"; then 16944 as_fn_error $? "conditional \"STATIC_ALSA\" was never defined. 16945Usually this means the macro was only invoked conditionally." "$LINENO" 5 16946fi 16947if test -z "${HAVE_AO_TRUE}" && test -z "${HAVE_AO_FALSE}"; then 16948 as_fn_error $? "conditional \"HAVE_AO\" was never defined. 16949Usually this means the macro was only invoked conditionally." "$LINENO" 5 16950fi 16951if test -z "${STATIC_AO_TRUE}" && test -z "${STATIC_AO_FALSE}"; then 16952 as_fn_error $? "conditional \"STATIC_AO\" was never defined. 16953Usually this means the macro was only invoked conditionally." "$LINENO" 5 16954fi 16955if test -z "${HAVE_PULSEAUDIO_TRUE}" && test -z "${HAVE_PULSEAUDIO_FALSE}"; then 16956 as_fn_error $? "conditional \"HAVE_PULSEAUDIO\" was never defined. 16957Usually this means the macro was only invoked conditionally." "$LINENO" 5 16958fi 16959if test -z "${STATIC_PULSEAUDIO_TRUE}" && test -z "${STATIC_PULSEAUDIO_FALSE}"; then 16960 as_fn_error $? "conditional \"STATIC_PULSEAUDIO\" was never defined. 16961Usually this means the macro was only invoked conditionally." "$LINENO" 5 16962fi 16963if test -z "${HAVE_WAVEAUDIO_TRUE}" && test -z "${HAVE_WAVEAUDIO_FALSE}"; then 16964 as_fn_error $? "conditional \"HAVE_WAVEAUDIO\" was never defined. 16965Usually this means the macro was only invoked conditionally." "$LINENO" 5 16966fi 16967if test -z "${STATIC_WAVEAUDIO_TRUE}" && test -z "${STATIC_WAVEAUDIO_FALSE}"; then 16968 as_fn_error $? "conditional \"STATIC_WAVEAUDIO\" was never defined. 16969Usually this means the macro was only invoked conditionally." "$LINENO" 5 16970fi 16971if test -z "${HAVE_SNDFILE_TRUE}" && test -z "${HAVE_SNDFILE_FALSE}"; then 16972 as_fn_error $? "conditional \"HAVE_SNDFILE\" was never defined. 16973Usually this means the macro was only invoked conditionally." "$LINENO" 5 16974fi 16975if test -z "${STATIC_SNDFILE_TRUE}" && test -z "${STATIC_SNDFILE_FALSE}"; then 16976 as_fn_error $? "conditional \"STATIC_SNDFILE\" was never defined. 16977Usually this means the macro was only invoked conditionally." "$LINENO" 5 16978fi 16979if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then 16980 as_fn_error $? "conditional \"HAVE_OSS\" was never defined. 16981Usually this means the macro was only invoked conditionally." "$LINENO" 5 16982fi 16983if test -z "${STATIC_OSS_TRUE}" && test -z "${STATIC_OSS_FALSE}"; then 16984 as_fn_error $? "conditional \"STATIC_OSS\" was never defined. 16985Usually this means the macro was only invoked conditionally." "$LINENO" 5 16986fi 16987if test -z "${HAVE_SUN_AUDIO_TRUE}" && test -z "${HAVE_SUN_AUDIO_FALSE}"; then 16988 as_fn_error $? "conditional \"HAVE_SUN_AUDIO\" was never defined. 16989Usually this means the macro was only invoked conditionally." "$LINENO" 5 16990fi 16991if test -z "${STATIC_SUN_AUDIO_TRUE}" && test -z "${STATIC_SUN_AUDIO_FALSE}"; then 16992 as_fn_error $? "conditional \"STATIC_SUN_AUDIO\" was never defined. 16993Usually this means the macro was only invoked conditionally." "$LINENO" 5 16994fi 16995if test -z "${HAVE_MP3_TRUE}" && test -z "${HAVE_MP3_FALSE}"; then 16996 as_fn_error $? "conditional \"HAVE_MP3\" was never defined. 16997Usually this means the macro was only invoked conditionally." "$LINENO" 5 16998fi 16999if test -z "${STATIC_MP3_TRUE}" && test -z "${STATIC_MP3_FALSE}"; then 17000 as_fn_error $? "conditional \"STATIC_MP3\" was never defined. 17001Usually this means the macro was only invoked conditionally." "$LINENO" 5 17002fi 17003if test -z "${HAVE_GSM_TRUE}" && test -z "${HAVE_GSM_FALSE}"; then 17004 as_fn_error $? "conditional \"HAVE_GSM\" was never defined. 17005Usually this means the macro was only invoked conditionally." "$LINENO" 5 17006fi 17007if test -z "${STATIC_GSM_TRUE}" && test -z "${STATIC_GSM_FALSE}"; then 17008 as_fn_error $? "conditional \"STATIC_GSM\" was never defined. 17009Usually this means the macro was only invoked conditionally." "$LINENO" 5 17010fi 17011if test -z "${HAVE_LPC10_TRUE}" && test -z "${HAVE_LPC10_FALSE}"; then 17012 as_fn_error $? "conditional \"HAVE_LPC10\" was never defined. 17013Usually this means the macro was only invoked conditionally." "$LINENO" 5 17014fi 17015if test -z "${STATIC_LPC10_TRUE}" && test -z "${STATIC_LPC10_FALSE}"; then 17016 as_fn_error $? "conditional \"STATIC_LPC10\" was never defined. 17017Usually this means the macro was only invoked conditionally." "$LINENO" 5 17018fi 17019if test -z "${STATIC_LIBSOX_ONLY_TRUE}" && test -z "${STATIC_LIBSOX_ONLY_FALSE}"; then 17020 as_fn_error $? "conditional \"STATIC_LIBSOX_ONLY\" was never defined. 17021Usually this means the macro was only invoked conditionally." "$LINENO" 5 17022fi 17023 17024: "${CONFIG_STATUS=./config.status}" 17025ac_write_fail=0 17026ac_clean_files_save=$ac_clean_files 17027ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17028{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17029$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17030as_write_fail=0 17031cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17032#! $SHELL 17033# Generated by $as_me. 17034# Run this file to recreate the current configuration. 17035# Compiler output produced by configure, useful for debugging 17036# configure, is in config.log if it exists. 17037 17038debug=false 17039ac_cs_recheck=false 17040ac_cs_silent=false 17041 17042SHELL=\${CONFIG_SHELL-$SHELL} 17043export SHELL 17044_ASEOF 17045cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17046## -------------------- ## 17047## M4sh Initialization. ## 17048## -------------------- ## 17049 17050# Be more Bourne compatible 17051DUALCASE=1; export DUALCASE # for MKS sh 17052if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17053 emulate sh 17054 NULLCMD=: 17055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17056 # is contrary to our usage. Disable this feature. 17057 alias -g '${1+"$@"}'='"$@"' 17058 setopt NO_GLOB_SUBST 17059else 17060 case `(set -o) 2>/dev/null` in #( 17061 *posix*) : 17062 set -o posix ;; #( 17063 *) : 17064 ;; 17065esac 17066fi 17067 17068 17069as_nl=' 17070' 17071export as_nl 17072# Printing a long string crashes Solaris 7 /usr/bin/printf. 17073as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17075as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17076# Prefer a ksh shell builtin over an external printf program on Solaris, 17077# but without wasting forks for bash or zsh. 17078if test -z "$BASH_VERSION$ZSH_VERSION" \ 17079 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17080 as_echo='print -r --' 17081 as_echo_n='print -rn --' 17082elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17083 as_echo='printf %s\n' 17084 as_echo_n='printf %s' 17085else 17086 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17087 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17088 as_echo_n='/usr/ucb/echo -n' 17089 else 17090 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17091 as_echo_n_body='eval 17092 arg=$1; 17093 case $arg in #( 17094 *"$as_nl"*) 17095 expr "X$arg" : "X\\(.*\\)$as_nl"; 17096 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17097 esac; 17098 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17099 ' 17100 export as_echo_n_body 17101 as_echo_n='sh -c $as_echo_n_body as_echo' 17102 fi 17103 export as_echo_body 17104 as_echo='sh -c $as_echo_body as_echo' 17105fi 17106 17107# The user is always right. 17108if test "${PATH_SEPARATOR+set}" != set; then 17109 PATH_SEPARATOR=: 17110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17112 PATH_SEPARATOR=';' 17113 } 17114fi 17115 17116 17117# IFS 17118# We need space, tab and new line, in precisely that order. Quoting is 17119# there to prevent editors from complaining about space-tab. 17120# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17121# splitting by setting IFS to empty value.) 17122IFS=" "" $as_nl" 17123 17124# Find who we are. Look in the path if we contain no directory separator. 17125as_myself= 17126case $0 in #(( 17127 *[\\/]* ) as_myself=$0 ;; 17128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17129for as_dir in $PATH 17130do 17131 IFS=$as_save_IFS 17132 test -z "$as_dir" && as_dir=. 17133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17134 done 17135IFS=$as_save_IFS 17136 17137 ;; 17138esac 17139# We did not find ourselves, most probably we were run as `sh COMMAND' 17140# in which case we are not to be found in the path. 17141if test "x$as_myself" = x; then 17142 as_myself=$0 17143fi 17144if test ! -f "$as_myself"; then 17145 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17146 exit 1 17147fi 17148 17149# Unset variables that we do not need and which cause bugs (e.g. in 17150# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17151# suppresses any "Segmentation fault" message there. '((' could 17152# trigger a bug in pdksh 5.2.14. 17153for as_var in BASH_ENV ENV MAIL MAILPATH 17154do eval test x\${$as_var+set} = xset \ 17155 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17156done 17157PS1='$ ' 17158PS2='> ' 17159PS4='+ ' 17160 17161# NLS nuisances. 17162LC_ALL=C 17163export LC_ALL 17164LANGUAGE=C 17165export LANGUAGE 17166 17167# CDPATH. 17168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17169 17170 17171# as_fn_error STATUS ERROR [LINENO LOG_FD] 17172# ---------------------------------------- 17173# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17174# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17175# script with STATUS, using 1 if that was 0. 17176as_fn_error () 17177{ 17178 as_status=$1; test $as_status -eq 0 && as_status=1 17179 if test "$4"; then 17180 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17181 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17182 fi 17183 $as_echo "$as_me: error: $2" >&2 17184 as_fn_exit $as_status 17185} # as_fn_error 17186 17187 17188# as_fn_set_status STATUS 17189# ----------------------- 17190# Set $? to STATUS, without forking. 17191as_fn_set_status () 17192{ 17193 return $1 17194} # as_fn_set_status 17195 17196# as_fn_exit STATUS 17197# ----------------- 17198# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17199as_fn_exit () 17200{ 17201 set +e 17202 as_fn_set_status $1 17203 exit $1 17204} # as_fn_exit 17205 17206# as_fn_unset VAR 17207# --------------- 17208# Portably unset VAR. 17209as_fn_unset () 17210{ 17211 { eval $1=; unset $1;} 17212} 17213as_unset=as_fn_unset 17214# as_fn_append VAR VALUE 17215# ---------------------- 17216# Append the text in VALUE to the end of the definition contained in VAR. Take 17217# advantage of any shell optimizations that allow amortized linear growth over 17218# repeated appends, instead of the typical quadratic growth present in naive 17219# implementations. 17220if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17221 eval 'as_fn_append () 17222 { 17223 eval $1+=\$2 17224 }' 17225else 17226 as_fn_append () 17227 { 17228 eval $1=\$$1\$2 17229 } 17230fi # as_fn_append 17231 17232# as_fn_arith ARG... 17233# ------------------ 17234# Perform arithmetic evaluation on the ARGs, and store the result in the 17235# global $as_val. Take advantage of shells that can avoid forks. The arguments 17236# must be portable across $(()) and expr. 17237if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17238 eval 'as_fn_arith () 17239 { 17240 as_val=$(( $* )) 17241 }' 17242else 17243 as_fn_arith () 17244 { 17245 as_val=`expr "$@" || test $? -eq 1` 17246 } 17247fi # as_fn_arith 17248 17249 17250if expr a : '\(a\)' >/dev/null 2>&1 && 17251 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17252 as_expr=expr 17253else 17254 as_expr=false 17255fi 17256 17257if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17258 as_basename=basename 17259else 17260 as_basename=false 17261fi 17262 17263if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17264 as_dirname=dirname 17265else 17266 as_dirname=false 17267fi 17268 17269as_me=`$as_basename -- "$0" || 17270$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17271 X"$0" : 'X\(//\)$' \| \ 17272 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17273$as_echo X/"$0" | 17274 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17275 s//\1/ 17276 q 17277 } 17278 /^X\/\(\/\/\)$/{ 17279 s//\1/ 17280 q 17281 } 17282 /^X\/\(\/\).*/{ 17283 s//\1/ 17284 q 17285 } 17286 s/.*/./; q'` 17287 17288# Avoid depending upon Character Ranges. 17289as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17290as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17291as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17292as_cr_digits='0123456789' 17293as_cr_alnum=$as_cr_Letters$as_cr_digits 17294 17295ECHO_C= ECHO_N= ECHO_T= 17296case `echo -n x` in #((((( 17297-n*) 17298 case `echo 'xy\c'` in 17299 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17300 xy) ECHO_C='\c';; 17301 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17302 ECHO_T=' ';; 17303 esac;; 17304*) 17305 ECHO_N='-n';; 17306esac 17307 17308rm -f conf$$ conf$$.exe conf$$.file 17309if test -d conf$$.dir; then 17310 rm -f conf$$.dir/conf$$.file 17311else 17312 rm -f conf$$.dir 17313 mkdir conf$$.dir 2>/dev/null 17314fi 17315if (echo >conf$$.file) 2>/dev/null; then 17316 if ln -s conf$$.file conf$$ 2>/dev/null; then 17317 as_ln_s='ln -s' 17318 # ... but there are two gotchas: 17319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17321 # In both cases, we have to default to `cp -pR'. 17322 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17323 as_ln_s='cp -pR' 17324 elif ln conf$$.file conf$$ 2>/dev/null; then 17325 as_ln_s=ln 17326 else 17327 as_ln_s='cp -pR' 17328 fi 17329else 17330 as_ln_s='cp -pR' 17331fi 17332rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17333rmdir conf$$.dir 2>/dev/null 17334 17335 17336# as_fn_mkdir_p 17337# ------------- 17338# Create "$as_dir" as a directory, including parents if necessary. 17339as_fn_mkdir_p () 17340{ 17341 17342 case $as_dir in #( 17343 -*) as_dir=./$as_dir;; 17344 esac 17345 test -d "$as_dir" || eval $as_mkdir_p || { 17346 as_dirs= 17347 while :; do 17348 case $as_dir in #( 17349 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17350 *) as_qdir=$as_dir;; 17351 esac 17352 as_dirs="'$as_qdir' $as_dirs" 17353 as_dir=`$as_dirname -- "$as_dir" || 17354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17355 X"$as_dir" : 'X\(//\)[^/]' \| \ 17356 X"$as_dir" : 'X\(//\)$' \| \ 17357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17358$as_echo X"$as_dir" | 17359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17360 s//\1/ 17361 q 17362 } 17363 /^X\(\/\/\)[^/].*/{ 17364 s//\1/ 17365 q 17366 } 17367 /^X\(\/\/\)$/{ 17368 s//\1/ 17369 q 17370 } 17371 /^X\(\/\).*/{ 17372 s//\1/ 17373 q 17374 } 17375 s/.*/./; q'` 17376 test -d "$as_dir" && break 17377 done 17378 test -z "$as_dirs" || eval "mkdir $as_dirs" 17379 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17380 17381 17382} # as_fn_mkdir_p 17383if mkdir -p . 2>/dev/null; then 17384 as_mkdir_p='mkdir -p "$as_dir"' 17385else 17386 test -d ./-p && rmdir ./-p 17387 as_mkdir_p=false 17388fi 17389 17390 17391# as_fn_executable_p FILE 17392# ----------------------- 17393# Test if FILE is an executable regular file. 17394as_fn_executable_p () 17395{ 17396 test -f "$1" && test -x "$1" 17397} # as_fn_executable_p 17398as_test_x='test -x' 17399as_executable_p=as_fn_executable_p 17400 17401# Sed expression to map a string onto a valid CPP name. 17402as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17403 17404# Sed expression to map a string onto a valid variable name. 17405as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17406 17407 17408exec 6>&1 17409## ----------------------------------- ## 17410## Main body of $CONFIG_STATUS script. ## 17411## ----------------------------------- ## 17412_ASEOF 17413test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17414 17415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17416# Save the log message, to keep $0 and so on meaningful, and to 17417# report actual input values of CONFIG_FILES etc. instead of their 17418# values after options handling. 17419ac_log=" 17420This file was extended by SoX $as_me 14.4.2, which was 17421generated by GNU Autoconf 2.69. Invocation command line was 17422 17423 CONFIG_FILES = $CONFIG_FILES 17424 CONFIG_HEADERS = $CONFIG_HEADERS 17425 CONFIG_LINKS = $CONFIG_LINKS 17426 CONFIG_COMMANDS = $CONFIG_COMMANDS 17427 $ $0 $@ 17428 17429on `(hostname || uname -n) 2>/dev/null | sed 1q` 17430" 17431 17432_ACEOF 17433 17434case $ac_config_files in *" 17435"*) set x $ac_config_files; shift; ac_config_files=$*;; 17436esac 17437 17438case $ac_config_headers in *" 17439"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17440esac 17441 17442 17443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17444# Files that config.status was made for. 17445config_files="$ac_config_files" 17446config_headers="$ac_config_headers" 17447config_commands="$ac_config_commands" 17448 17449_ACEOF 17450 17451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17452ac_cs_usage="\ 17453\`$as_me' instantiates files and other configuration actions 17454from templates according to the current configuration. Unless the files 17455and actions are specified as TAGs, all are instantiated by default. 17456 17457Usage: $0 [OPTION]... [TAG]... 17458 17459 -h, --help print this help, then exit 17460 -V, --version print version number and configuration settings, then exit 17461 --config print configuration, then exit 17462 -q, --quiet, --silent 17463 do not print progress messages 17464 -d, --debug don't remove temporary files 17465 --recheck update $as_me by reconfiguring in the same conditions 17466 --file=FILE[:TEMPLATE] 17467 instantiate the configuration file FILE 17468 --header=FILE[:TEMPLATE] 17469 instantiate the configuration header FILE 17470 17471Configuration files: 17472$config_files 17473 17474Configuration headers: 17475$config_headers 17476 17477Configuration commands: 17478$config_commands 17479 17480Report bugs to <sox-devel@lists.sourceforge.net>." 17481 17482_ACEOF 17483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17484ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17485ac_cs_version="\\ 17486SoX config.status 14.4.2 17487configured by $0, generated by GNU Autoconf 2.69, 17488 with options \\"\$ac_cs_config\\" 17489 17490Copyright (C) 2012 Free Software Foundation, Inc. 17491This config.status script is free software; the Free Software Foundation 17492gives unlimited permission to copy, distribute and modify it." 17493 17494ac_pwd='$ac_pwd' 17495srcdir='$srcdir' 17496INSTALL='$INSTALL' 17497MKDIR_P='$MKDIR_P' 17498AWK='$AWK' 17499test -n "\$AWK" || AWK=awk 17500_ACEOF 17501 17502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17503# The default lists apply if the user does not specify any file. 17504ac_need_defaults=: 17505while test $# != 0 17506do 17507 case $1 in 17508 --*=?*) 17509 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17511 ac_shift=: 17512 ;; 17513 --*=) 17514 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17515 ac_optarg= 17516 ac_shift=: 17517 ;; 17518 *) 17519 ac_option=$1 17520 ac_optarg=$2 17521 ac_shift=shift 17522 ;; 17523 esac 17524 17525 case $ac_option in 17526 # Handling of the options. 17527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17528 ac_cs_recheck=: ;; 17529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17530 $as_echo "$ac_cs_version"; exit ;; 17531 --config | --confi | --conf | --con | --co | --c ) 17532 $as_echo "$ac_cs_config"; exit ;; 17533 --debug | --debu | --deb | --de | --d | -d ) 17534 debug=: ;; 17535 --file | --fil | --fi | --f ) 17536 $ac_shift 17537 case $ac_optarg in 17538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17539 '') as_fn_error $? "missing file argument" ;; 17540 esac 17541 as_fn_append CONFIG_FILES " '$ac_optarg'" 17542 ac_need_defaults=false;; 17543 --header | --heade | --head | --hea ) 17544 $ac_shift 17545 case $ac_optarg in 17546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17547 esac 17548 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17549 ac_need_defaults=false;; 17550 --he | --h) 17551 # Conflict between --help and --header 17552 as_fn_error $? "ambiguous option: \`$1' 17553Try \`$0 --help' for more information.";; 17554 --help | --hel | -h ) 17555 $as_echo "$ac_cs_usage"; exit ;; 17556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17557 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17558 ac_cs_silent=: ;; 17559 17560 # This is an error. 17561 -*) as_fn_error $? "unrecognized option: \`$1' 17562Try \`$0 --help' for more information." ;; 17563 17564 *) as_fn_append ac_config_targets " $1" 17565 ac_need_defaults=false ;; 17566 17567 esac 17568 shift 17569done 17570 17571ac_configure_extra_args= 17572 17573if $ac_cs_silent; then 17574 exec 6>/dev/null 17575 ac_configure_extra_args="$ac_configure_extra_args --silent" 17576fi 17577 17578_ACEOF 17579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17580if \$ac_cs_recheck; then 17581 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17582 shift 17583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17584 CONFIG_SHELL='$SHELL' 17585 export CONFIG_SHELL 17586 exec "\$@" 17587fi 17588 17589_ACEOF 17590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17591exec 5>>config.log 17592{ 17593 echo 17594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17595## Running $as_me. ## 17596_ASBOX 17597 $as_echo "$ac_log" 17598} >&5 17599 17600_ACEOF 17601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17602# 17603# INIT-COMMANDS 17604# 17605AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17606 17607 17608# The HP-UX ksh and POSIX shell print the target directory to stdout 17609# if CDPATH is set. 17610(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17611 17612sed_quote_subst='$sed_quote_subst' 17613double_quote_subst='$double_quote_subst' 17614delay_variable_subst='$delay_variable_subst' 17615macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17616macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17617AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17618DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17619OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17620enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17621enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17622pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17623enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17624SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17625ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17626PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17627host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17628host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17629host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17630build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17631build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17632build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17633SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17634Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17635GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17636EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17637FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17638LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17639NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17640LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17641max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17642ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17643exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17644lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17645lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17646lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17647lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17648lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17649reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17650reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17651deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17652file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17653file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17654want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17655sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17656AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17657AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17658archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17659STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17660RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17661old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17662old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17663old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17664lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17665CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17666CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17667compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17668GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17669lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17670lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17671lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17672lt_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"`' 17673nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17674lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17675objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17676MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17677lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17678lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17679lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17680lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17681lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17682need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17683MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17684DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17685NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17686LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17687OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17688OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17689libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17690shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17691extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17692archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17693enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17694export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17695whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17696compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17697old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17698old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17699archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17700archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17701module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17702module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17703with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17704allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17705no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17706hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17707hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17708hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17709hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17710hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17711hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17712hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17713inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17714link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17715always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17716export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17717exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17718include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17719prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17720postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17721file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17722variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17723need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17724need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17725version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17726runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17727shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17728shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17729libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17730library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17731soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17732install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17733postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17734postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17735finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17736finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17737hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17738sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17739sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17740hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17741enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17742enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17743enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17744old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17745striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17746 17747LTCC='$LTCC' 17748LTCFLAGS='$LTCFLAGS' 17749compiler='$compiler_DEFAULT' 17750 17751# A function that is used when there is no print builtin or printf. 17752func_fallback_echo () 17753{ 17754 eval 'cat <<_LTECHO_EOF 17755\$1 17756_LTECHO_EOF' 17757} 17758 17759# Quote evaled strings. 17760for var in AS \ 17761DLLTOOL \ 17762OBJDUMP \ 17763SHELL \ 17764ECHO \ 17765PATH_SEPARATOR \ 17766SED \ 17767GREP \ 17768EGREP \ 17769FGREP \ 17770LD \ 17771NM \ 17772LN_S \ 17773lt_SP2NL \ 17774lt_NL2SP \ 17775reload_flag \ 17776deplibs_check_method \ 17777file_magic_cmd \ 17778file_magic_glob \ 17779want_nocaseglob \ 17780sharedlib_from_linklib_cmd \ 17781AR \ 17782AR_FLAGS \ 17783archiver_list_spec \ 17784STRIP \ 17785RANLIB \ 17786CC \ 17787CFLAGS \ 17788compiler \ 17789lt_cv_sys_global_symbol_pipe \ 17790lt_cv_sys_global_symbol_to_cdecl \ 17791lt_cv_sys_global_symbol_to_c_name_address \ 17792lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17793nm_file_list_spec \ 17794lt_prog_compiler_no_builtin_flag \ 17795lt_prog_compiler_pic \ 17796lt_prog_compiler_wl \ 17797lt_prog_compiler_static \ 17798lt_cv_prog_compiler_c_o \ 17799need_locks \ 17800MANIFEST_TOOL \ 17801DSYMUTIL \ 17802NMEDIT \ 17803LIPO \ 17804OTOOL \ 17805OTOOL64 \ 17806shrext_cmds \ 17807export_dynamic_flag_spec \ 17808whole_archive_flag_spec \ 17809compiler_needs_object \ 17810with_gnu_ld \ 17811allow_undefined_flag \ 17812no_undefined_flag \ 17813hardcode_libdir_flag_spec \ 17814hardcode_libdir_separator \ 17815exclude_expsyms \ 17816include_expsyms \ 17817file_list_spec \ 17818variables_saved_for_relink \ 17819libname_spec \ 17820library_names_spec \ 17821soname_spec \ 17822install_override_mode \ 17823finish_eval \ 17824old_striplib \ 17825striplib; do 17826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17827 *[\\\\\\\`\\"\\\$]*) 17828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17829 ;; 17830 *) 17831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17832 ;; 17833 esac 17834done 17835 17836# Double-quote double-evaled strings. 17837for var in reload_cmds \ 17838old_postinstall_cmds \ 17839old_postuninstall_cmds \ 17840old_archive_cmds \ 17841extract_expsyms_cmds \ 17842old_archive_from_new_cmds \ 17843old_archive_from_expsyms_cmds \ 17844archive_cmds \ 17845archive_expsym_cmds \ 17846module_cmds \ 17847module_expsym_cmds \ 17848export_symbols_cmds \ 17849prelink_cmds \ 17850postlink_cmds \ 17851postinstall_cmds \ 17852postuninstall_cmds \ 17853finish_cmds \ 17854sys_lib_search_path_spec \ 17855sys_lib_dlsearch_path_spec; do 17856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17857 *[\\\\\\\`\\"\\\$]*) 17858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17859 ;; 17860 *) 17861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17862 ;; 17863 esac 17864done 17865 17866ac_aux_dir='$ac_aux_dir' 17867xsi_shell='$xsi_shell' 17868lt_shell_append='$lt_shell_append' 17869 17870# See if we are running on zsh, and set the options which allow our 17871# commands through without removal of \ escapes INIT. 17872if test -n "\${ZSH_VERSION+set}" ; then 17873 setopt NO_GLOB_SUBST 17874fi 17875 17876 17877 PACKAGE='$PACKAGE' 17878 VERSION='$VERSION' 17879 TIMESTAMP='$TIMESTAMP' 17880 RM='$RM' 17881 ofile='$ofile' 17882 17883 17884 17885 17886_ACEOF 17887 17888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17889 17890# Handling of arguments. 17891for ac_config_target in $ac_config_targets 17892do 17893 case $ac_config_target in 17894 "src/soxconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/soxconfig.h" ;; 17895 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17896 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17898 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17899 "libgsm/Makefile") CONFIG_FILES="$CONFIG_FILES libgsm/Makefile" ;; 17900 "lpc10/Makefile") CONFIG_FILES="$CONFIG_FILES lpc10/Makefile" ;; 17901 "msvc9/Makefile") CONFIG_FILES="$CONFIG_FILES msvc9/Makefile" ;; 17902 "msvc10/Makefile") CONFIG_FILES="$CONFIG_FILES msvc10/Makefile" ;; 17903 "sox.pc") CONFIG_FILES="$CONFIG_FILES sox.pc" ;; 17904 17905 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17906 esac 17907done 17908 17909 17910# If the user did not use the arguments to specify the items to instantiate, 17911# then the envvar interface is used. Set only those that are not. 17912# We use the long form for the default assignment because of an extremely 17913# bizarre bug on SunOS 4.1.3. 17914if $ac_need_defaults; then 17915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17918fi 17919 17920# Have a temporary directory for convenience. Make it in the build tree 17921# simply because there is no reason against having it here, and in addition, 17922# creating and moving files from /tmp can sometimes cause problems. 17923# Hook for its removal unless debugging. 17924# Note that there is a small window in which the directory will not be cleaned: 17925# after its creation but before its name has been assigned to `$tmp'. 17926$debug || 17927{ 17928 tmp= ac_tmp= 17929 trap 'exit_status=$? 17930 : "${ac_tmp:=$tmp}" 17931 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17932' 0 17933 trap 'as_fn_exit 1' 1 2 13 15 17934} 17935# Create a (secure) tmp directory for tmp files. 17936 17937{ 17938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17939 test -d "$tmp" 17940} || 17941{ 17942 tmp=./conf$$-$RANDOM 17943 (umask 077 && mkdir "$tmp") 17944} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17945ac_tmp=$tmp 17946 17947# Set up the scripts for CONFIG_FILES section. 17948# No need to generate them if there are no CONFIG_FILES. 17949# This happens for instance with `./config.status config.h'. 17950if test -n "$CONFIG_FILES"; then 17951 17952 17953ac_cr=`echo X | tr X '\015'` 17954# On cygwin, bash can eat \r inside `` if the user requested igncr. 17955# But we know of no other shell where ac_cr would be empty at this 17956# point, so we can use a bashism as a fallback. 17957if test "x$ac_cr" = x; then 17958 eval ac_cr=\$\'\\r\' 17959fi 17960ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17961if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17962 ac_cs_awk_cr='\\r' 17963else 17964 ac_cs_awk_cr=$ac_cr 17965fi 17966 17967echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17968_ACEOF 17969 17970 17971{ 17972 echo "cat >conf$$subs.awk <<_ACEOF" && 17973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17974 echo "_ACEOF" 17975} >conf$$subs.sh || 17976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17977ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17978ac_delim='%!_!# ' 17979for ac_last_try in false false false false false :; do 17980 . ./conf$$subs.sh || 17981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17982 17983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17984 if test $ac_delim_n = $ac_delim_num; then 17985 break 17986 elif $ac_last_try; then 17987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17988 else 17989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17990 fi 17991done 17992rm -f conf$$subs.sh 17993 17994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17995cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17996_ACEOF 17997sed -n ' 17998h 17999s/^/S["/; s/!.*/"]=/ 18000p 18001g 18002s/^[^!]*!// 18003:repl 18004t repl 18005s/'"$ac_delim"'$// 18006t delim 18007:nl 18008h 18009s/\(.\{148\}\)..*/\1/ 18010t more1 18011s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18012p 18013n 18014b repl 18015:more1 18016s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18017p 18018g 18019s/.\{148\}// 18020t nl 18021:delim 18022h 18023s/\(.\{148\}\)..*/\1/ 18024t more2 18025s/["\\]/\\&/g; s/^/"/; s/$/"/ 18026p 18027b 18028:more2 18029s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18030p 18031g 18032s/.\{148\}// 18033t delim 18034' <conf$$subs.awk | sed ' 18035/^[^""]/{ 18036 N 18037 s/\n// 18038} 18039' >>$CONFIG_STATUS || ac_write_fail=1 18040rm -f conf$$subs.awk 18041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18042_ACAWK 18043cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18044 for (key in S) S_is_set[key] = 1 18045 FS = "" 18046 18047} 18048{ 18049 line = $ 0 18050 nfields = split(line, field, "@") 18051 substed = 0 18052 len = length(field[1]) 18053 for (i = 2; i < nfields; i++) { 18054 key = field[i] 18055 keylen = length(key) 18056 if (S_is_set[key]) { 18057 value = S[key] 18058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18059 len += length(value) + length(field[++i]) 18060 substed = 1 18061 } else 18062 len += 1 + keylen 18063 } 18064 18065 print line 18066} 18067 18068_ACAWK 18069_ACEOF 18070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18071if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18073else 18074 cat 18075fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18076 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18077_ACEOF 18078 18079# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18080# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18081# trailing colons and then remove the whole line if VPATH becomes empty 18082# (actually we leave an empty line to preserve line numbers). 18083if test "x$srcdir" = x.; then 18084 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18085h 18086s/// 18087s/^/:/ 18088s/[ ]*$/:/ 18089s/:\$(srcdir):/:/g 18090s/:\${srcdir}:/:/g 18091s/:@srcdir@:/:/g 18092s/^:*// 18093s/:*$// 18094x 18095s/\(=[ ]*\).*/\1/ 18096G 18097s/\n// 18098s/^[^=]*=[ ]*$// 18099}' 18100fi 18101 18102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18103fi # test -n "$CONFIG_FILES" 18104 18105# Set up the scripts for CONFIG_HEADERS section. 18106# No need to generate them if there are no CONFIG_HEADERS. 18107# This happens for instance with `./config.status Makefile'. 18108if test -n "$CONFIG_HEADERS"; then 18109cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18110BEGIN { 18111_ACEOF 18112 18113# Transform confdefs.h into an awk script `defines.awk', embedded as 18114# here-document in config.status, that substitutes the proper values into 18115# config.h.in to produce config.h. 18116 18117# Create a delimiter string that does not exist in confdefs.h, to ease 18118# handling of long lines. 18119ac_delim='%!_!# ' 18120for ac_last_try in false false :; do 18121 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18122 if test -z "$ac_tt"; then 18123 break 18124 elif $ac_last_try; then 18125 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18126 else 18127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18128 fi 18129done 18130 18131# For the awk script, D is an array of macro values keyed by name, 18132# likewise P contains macro parameters if any. Preserve backslash 18133# newline sequences. 18134 18135ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18136sed -n ' 18137s/.\{148\}/&'"$ac_delim"'/g 18138t rset 18139:rset 18140s/^[ ]*#[ ]*define[ ][ ]*/ / 18141t def 18142d 18143:def 18144s/\\$// 18145t bsnl 18146s/["\\]/\\&/g 18147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18148D["\1"]=" \3"/p 18149s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18150d 18151:bsnl 18152s/["\\]/\\&/g 18153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18154D["\1"]=" \3\\\\\\n"\\/p 18155t cont 18156s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18157t cont 18158d 18159:cont 18160n 18161s/.\{148\}/&'"$ac_delim"'/g 18162t clear 18163:clear 18164s/\\$// 18165t bsnlc 18166s/["\\]/\\&/g; s/^/"/; s/$/"/p 18167d 18168:bsnlc 18169s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18170b cont 18171' <confdefs.h | sed ' 18172s/'"$ac_delim"'/"\\\ 18173"/g' >>$CONFIG_STATUS || ac_write_fail=1 18174 18175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18176 for (key in D) D_is_set[key] = 1 18177 FS = "" 18178} 18179/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18180 line = \$ 0 18181 split(line, arg, " ") 18182 if (arg[1] == "#") { 18183 defundef = arg[2] 18184 mac1 = arg[3] 18185 } else { 18186 defundef = substr(arg[1], 2) 18187 mac1 = arg[2] 18188 } 18189 split(mac1, mac2, "(") #) 18190 macro = mac2[1] 18191 prefix = substr(line, 1, index(line, defundef) - 1) 18192 if (D_is_set[macro]) { 18193 # Preserve the white space surrounding the "#". 18194 print prefix "define", macro P[macro] D[macro] 18195 next 18196 } else { 18197 # Replace #undef with comments. This is necessary, for example, 18198 # in the case of _POSIX_SOURCE, which is predefined and required 18199 # on some systems where configure will not decide to define it. 18200 if (defundef == "undef") { 18201 print "/*", prefix defundef, macro, "*/" 18202 next 18203 } 18204 } 18205} 18206{ print } 18207_ACAWK 18208_ACEOF 18209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18210 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18211fi # test -n "$CONFIG_HEADERS" 18212 18213 18214eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18215shift 18216for ac_tag 18217do 18218 case $ac_tag in 18219 :[FHLC]) ac_mode=$ac_tag; continue;; 18220 esac 18221 case $ac_mode$ac_tag in 18222 :[FHL]*:*);; 18223 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18224 :[FH]-) ac_tag=-:-;; 18225 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18226 esac 18227 ac_save_IFS=$IFS 18228 IFS=: 18229 set x $ac_tag 18230 IFS=$ac_save_IFS 18231 shift 18232 ac_file=$1 18233 shift 18234 18235 case $ac_mode in 18236 :L) ac_source=$1;; 18237 :[FH]) 18238 ac_file_inputs= 18239 for ac_f 18240 do 18241 case $ac_f in 18242 -) ac_f="$ac_tmp/stdin";; 18243 *) # Look for the file first in the build tree, then in the source tree 18244 # (if the path is not absolute). The absolute path cannot be DOS-style, 18245 # because $ac_f cannot contain `:'. 18246 test -f "$ac_f" || 18247 case $ac_f in 18248 [\\/$]*) false;; 18249 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18250 esac || 18251 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18252 esac 18253 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18254 as_fn_append ac_file_inputs " '$ac_f'" 18255 done 18256 18257 # Let's still pretend it is `configure' which instantiates (i.e., don't 18258 # use $as_me), people would be surprised to read: 18259 # /* config.h. Generated by config.status. */ 18260 configure_input='Generated from '` 18261 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18262 `' by configure.' 18263 if test x"$ac_file" != x-; then 18264 configure_input="$ac_file. $configure_input" 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18266$as_echo "$as_me: creating $ac_file" >&6;} 18267 fi 18268 # Neutralize special characters interpreted by sed in replacement strings. 18269 case $configure_input in #( 18270 *\&* | *\|* | *\\* ) 18271 ac_sed_conf_input=`$as_echo "$configure_input" | 18272 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18273 *) ac_sed_conf_input=$configure_input;; 18274 esac 18275 18276 case $ac_tag in 18277 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18279 esac 18280 ;; 18281 esac 18282 18283 ac_dir=`$as_dirname -- "$ac_file" || 18284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18285 X"$ac_file" : 'X\(//\)[^/]' \| \ 18286 X"$ac_file" : 'X\(//\)$' \| \ 18287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18288$as_echo X"$ac_file" | 18289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18290 s//\1/ 18291 q 18292 } 18293 /^X\(\/\/\)[^/].*/{ 18294 s//\1/ 18295 q 18296 } 18297 /^X\(\/\/\)$/{ 18298 s//\1/ 18299 q 18300 } 18301 /^X\(\/\).*/{ 18302 s//\1/ 18303 q 18304 } 18305 s/.*/./; q'` 18306 as_dir="$ac_dir"; as_fn_mkdir_p 18307 ac_builddir=. 18308 18309case "$ac_dir" in 18310.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18311*) 18312 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18313 # A ".." for each directory in $ac_dir_suffix. 18314 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18315 case $ac_top_builddir_sub in 18316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18318 esac ;; 18319esac 18320ac_abs_top_builddir=$ac_pwd 18321ac_abs_builddir=$ac_pwd$ac_dir_suffix 18322# for backward compatibility: 18323ac_top_builddir=$ac_top_build_prefix 18324 18325case $srcdir in 18326 .) # We are building in place. 18327 ac_srcdir=. 18328 ac_top_srcdir=$ac_top_builddir_sub 18329 ac_abs_top_srcdir=$ac_pwd ;; 18330 [\\/]* | ?:[\\/]* ) # Absolute name. 18331 ac_srcdir=$srcdir$ac_dir_suffix; 18332 ac_top_srcdir=$srcdir 18333 ac_abs_top_srcdir=$srcdir ;; 18334 *) # Relative name. 18335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18336 ac_top_srcdir=$ac_top_build_prefix$srcdir 18337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18338esac 18339ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18340 18341 18342 case $ac_mode in 18343 :F) 18344 # 18345 # CONFIG_FILE 18346 # 18347 18348 case $INSTALL in 18349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18351 esac 18352 ac_MKDIR_P=$MKDIR_P 18353 case $MKDIR_P in 18354 [\\/$]* | ?:[\\/]* ) ;; 18355 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18356 esac 18357_ACEOF 18358 18359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18360# If the template does not know about datarootdir, expand it. 18361# FIXME: This hack should be removed a few years after 2.60. 18362ac_datarootdir_hack=; ac_datarootdir_seen= 18363ac_sed_dataroot=' 18364/datarootdir/ { 18365 p 18366 q 18367} 18368/@datadir@/p 18369/@docdir@/p 18370/@infodir@/p 18371/@localedir@/p 18372/@mandir@/p' 18373case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18374*datarootdir*) ac_datarootdir_seen=yes;; 18375*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18377$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18378_ACEOF 18379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18380 ac_datarootdir_hack=' 18381 s&@datadir@&$datadir&g 18382 s&@docdir@&$docdir&g 18383 s&@infodir@&$infodir&g 18384 s&@localedir@&$localedir&g 18385 s&@mandir@&$mandir&g 18386 s&\\\${datarootdir}&$datarootdir&g' ;; 18387esac 18388_ACEOF 18389 18390# Neutralize VPATH when `$srcdir' = `.'. 18391# Shell code in configure.ac might set extrasub. 18392# FIXME: do we really want to maintain this feature? 18393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18394ac_sed_extra="$ac_vpsub 18395$extrasub 18396_ACEOF 18397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18398:t 18399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18400s|@configure_input@|$ac_sed_conf_input|;t t 18401s&@top_builddir@&$ac_top_builddir_sub&;t t 18402s&@top_build_prefix@&$ac_top_build_prefix&;t t 18403s&@srcdir@&$ac_srcdir&;t t 18404s&@abs_srcdir@&$ac_abs_srcdir&;t t 18405s&@top_srcdir@&$ac_top_srcdir&;t t 18406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18407s&@builddir@&$ac_builddir&;t t 18408s&@abs_builddir@&$ac_abs_builddir&;t t 18409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18410s&@INSTALL@&$ac_INSTALL&;t t 18411s&@MKDIR_P@&$ac_MKDIR_P&;t t 18412$ac_datarootdir_hack 18413" 18414eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18415 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18416 18417test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18418 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18420 "$ac_tmp/out"`; test -z "$ac_out"; } && 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18422which seems to be undefined. Please make sure it is defined" >&5 18423$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18424which seems to be undefined. Please make sure it is defined" >&2;} 18425 18426 rm -f "$ac_tmp/stdin" 18427 case $ac_file in 18428 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18429 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18430 esac \ 18431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18432 ;; 18433 :H) 18434 # 18435 # CONFIG_HEADER 18436 # 18437 if test x"$ac_file" != x-; then 18438 { 18439 $as_echo "/* $configure_input */" \ 18440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18441 } >"$ac_tmp/config.h" \ 18442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18443 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18445$as_echo "$as_me: $ac_file is unchanged" >&6;} 18446 else 18447 rm -f "$ac_file" 18448 mv "$ac_tmp/config.h" "$ac_file" \ 18449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18450 fi 18451 else 18452 $as_echo "/* $configure_input */" \ 18453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18454 || as_fn_error $? "could not create -" "$LINENO" 5 18455 fi 18456# Compute "$ac_file"'s index in $config_headers. 18457_am_arg="$ac_file" 18458_am_stamp_count=1 18459for _am_header in $config_headers :; do 18460 case $_am_header in 18461 $_am_arg | $_am_arg:* ) 18462 break ;; 18463 * ) 18464 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18465 esac 18466done 18467echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18468$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18469 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18470 X"$_am_arg" : 'X\(//\)$' \| \ 18471 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18472$as_echo X"$_am_arg" | 18473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18474 s//\1/ 18475 q 18476 } 18477 /^X\(\/\/\)[^/].*/{ 18478 s//\1/ 18479 q 18480 } 18481 /^X\(\/\/\)$/{ 18482 s//\1/ 18483 q 18484 } 18485 /^X\(\/\).*/{ 18486 s//\1/ 18487 q 18488 } 18489 s/.*/./; q'`/stamp-h$_am_stamp_count 18490 ;; 18491 18492 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18493$as_echo "$as_me: executing $ac_file commands" >&6;} 18494 ;; 18495 esac 18496 18497 18498 case $ac_file$ac_mode in 18499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18500 # Older Autoconf quotes --file arguments for eval, but not when files 18501 # are listed without --file. Let's play safe and only enable the eval 18502 # if we detect the quoting. 18503 case $CONFIG_FILES in 18504 *\'*) eval set x "$CONFIG_FILES" ;; 18505 *) set x $CONFIG_FILES ;; 18506 esac 18507 shift 18508 for mf 18509 do 18510 # Strip MF so we end up with the name of the file. 18511 mf=`echo "$mf" | sed -e 's/:.*$//'` 18512 # Check whether this is an Automake generated Makefile or not. 18513 # We used to match only the files named 'Makefile.in', but 18514 # some people rename them; so instead we look at the file content. 18515 # Grep'ing the first line is not enough: some people post-process 18516 # each Makefile.in and add a new line on top of each file to say so. 18517 # Grep'ing the whole file is not good either: AIX grep has a line 18518 # limit of 2048, but all sed's we know have understand at least 4000. 18519 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18520 dirpart=`$as_dirname -- "$mf" || 18521$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18522 X"$mf" : 'X\(//\)[^/]' \| \ 18523 X"$mf" : 'X\(//\)$' \| \ 18524 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18525$as_echo X"$mf" | 18526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18527 s//\1/ 18528 q 18529 } 18530 /^X\(\/\/\)[^/].*/{ 18531 s//\1/ 18532 q 18533 } 18534 /^X\(\/\/\)$/{ 18535 s//\1/ 18536 q 18537 } 18538 /^X\(\/\).*/{ 18539 s//\1/ 18540 q 18541 } 18542 s/.*/./; q'` 18543 else 18544 continue 18545 fi 18546 # Extract the definition of DEPDIR, am__include, and am__quote 18547 # from the Makefile without running 'make'. 18548 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18549 test -z "$DEPDIR" && continue 18550 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18551 test -z "$am__include" && continue 18552 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18553 # Find all dependency output files, they are included files with 18554 # $(DEPDIR) in their names. We invoke sed twice because it is the 18555 # simplest approach to changing $(DEPDIR) to its actual value in the 18556 # expansion. 18557 for file in `sed -n " 18558 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18559 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18560 # Make sure the directory exists. 18561 test -f "$dirpart/$file" && continue 18562 fdir=`$as_dirname -- "$file" || 18563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18564 X"$file" : 'X\(//\)[^/]' \| \ 18565 X"$file" : 'X\(//\)$' \| \ 18566 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18567$as_echo X"$file" | 18568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18569 s//\1/ 18570 q 18571 } 18572 /^X\(\/\/\)[^/].*/{ 18573 s//\1/ 18574 q 18575 } 18576 /^X\(\/\/\)$/{ 18577 s//\1/ 18578 q 18579 } 18580 /^X\(\/\).*/{ 18581 s//\1/ 18582 q 18583 } 18584 s/.*/./; q'` 18585 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18586 # echo "creating $dirpart/$file" 18587 echo '# dummy' > "$dirpart/$file" 18588 done 18589 done 18590} 18591 ;; 18592 "libtool":C) 18593 18594 # See if we are running on zsh, and set the options which allow our 18595 # commands through without removal of \ escapes. 18596 if test -n "${ZSH_VERSION+set}" ; then 18597 setopt NO_GLOB_SUBST 18598 fi 18599 18600 cfgfile="${ofile}T" 18601 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18602 $RM "$cfgfile" 18603 18604 cat <<_LT_EOF >> "$cfgfile" 18605#! $SHELL 18606 18607# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18608# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18610# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18611# 18612# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18613# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18614# Foundation, Inc. 18615# Written by Gordon Matzigkeit, 1996 18616# 18617# This file is part of GNU Libtool. 18618# 18619# GNU Libtool is free software; you can redistribute it and/or 18620# modify it under the terms of the GNU General Public License as 18621# published by the Free Software Foundation; either version 2 of 18622# the License, or (at your option) any later version. 18623# 18624# As a special exception to the GNU General Public License, 18625# if you distribute this file as part of a program or library that 18626# is built using GNU Libtool, you may include this file under the 18627# same distribution terms that you use for the rest of that program. 18628# 18629# GNU Libtool is distributed in the hope that it will be useful, 18630# but WITHOUT ANY WARRANTY; without even the implied warranty of 18631# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18632# GNU General Public License for more details. 18633# 18634# You should have received a copy of the GNU General Public License 18635# along with GNU Libtool; see the file COPYING. If not, a copy 18636# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18637# obtained by writing to the Free Software Foundation, Inc., 18638# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18639 18640 18641# The names of the tagged configurations supported by this script. 18642available_tags="" 18643 18644# ### BEGIN LIBTOOL CONFIG 18645 18646# Which release of libtool.m4 was used? 18647macro_version=$macro_version 18648macro_revision=$macro_revision 18649 18650# Assembler program. 18651AS=$lt_AS 18652 18653# DLL creation program. 18654DLLTOOL=$lt_DLLTOOL 18655 18656# Object dumper program. 18657OBJDUMP=$lt_OBJDUMP 18658 18659# Whether or not to build shared libraries. 18660build_libtool_libs=$enable_shared 18661 18662# Whether or not to build static libraries. 18663build_old_libs=$enable_static 18664 18665# What type of objects to build. 18666pic_mode=$pic_mode 18667 18668# Whether or not to optimize for fast installation. 18669fast_install=$enable_fast_install 18670 18671# Shell to use when invoking shell scripts. 18672SHELL=$lt_SHELL 18673 18674# An echo program that protects backslashes. 18675ECHO=$lt_ECHO 18676 18677# The PATH separator for the build system. 18678PATH_SEPARATOR=$lt_PATH_SEPARATOR 18679 18680# The host system. 18681host_alias=$host_alias 18682host=$host 18683host_os=$host_os 18684 18685# The build system. 18686build_alias=$build_alias 18687build=$build 18688build_os=$build_os 18689 18690# A sed program that does not truncate output. 18691SED=$lt_SED 18692 18693# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18694Xsed="\$SED -e 1s/^X//" 18695 18696# A grep program that handles long lines. 18697GREP=$lt_GREP 18698 18699# An ERE matcher. 18700EGREP=$lt_EGREP 18701 18702# A literal string matcher. 18703FGREP=$lt_FGREP 18704 18705# A BSD- or MS-compatible name lister. 18706NM=$lt_NM 18707 18708# Whether we need soft or hard links. 18709LN_S=$lt_LN_S 18710 18711# What is the maximum length of a command? 18712max_cmd_len=$max_cmd_len 18713 18714# Object file suffix (normally "o"). 18715objext=$ac_objext 18716 18717# Executable file suffix (normally ""). 18718exeext=$exeext 18719 18720# whether the shell understands "unset". 18721lt_unset=$lt_unset 18722 18723# turn spaces into newlines. 18724SP2NL=$lt_lt_SP2NL 18725 18726# turn newlines into spaces. 18727NL2SP=$lt_lt_NL2SP 18728 18729# convert \$build file names to \$host format. 18730to_host_file_cmd=$lt_cv_to_host_file_cmd 18731 18732# convert \$build files to toolchain format. 18733to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18734 18735# Method to check whether dependent libraries are shared objects. 18736deplibs_check_method=$lt_deplibs_check_method 18737 18738# Command to use when deplibs_check_method = "file_magic". 18739file_magic_cmd=$lt_file_magic_cmd 18740 18741# How to find potential files when deplibs_check_method = "file_magic". 18742file_magic_glob=$lt_file_magic_glob 18743 18744# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18745want_nocaseglob=$lt_want_nocaseglob 18746 18747# Command to associate shared and link libraries. 18748sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18749 18750# The archiver. 18751AR=$lt_AR 18752 18753# Flags to create an archive. 18754AR_FLAGS=$lt_AR_FLAGS 18755 18756# How to feed a file listing to the archiver. 18757archiver_list_spec=$lt_archiver_list_spec 18758 18759# A symbol stripping program. 18760STRIP=$lt_STRIP 18761 18762# Commands used to install an old-style archive. 18763RANLIB=$lt_RANLIB 18764old_postinstall_cmds=$lt_old_postinstall_cmds 18765old_postuninstall_cmds=$lt_old_postuninstall_cmds 18766 18767# Whether to use a lock for old archive extraction. 18768lock_old_archive_extraction=$lock_old_archive_extraction 18769 18770# A C compiler. 18771LTCC=$lt_CC 18772 18773# LTCC compiler flags. 18774LTCFLAGS=$lt_CFLAGS 18775 18776# Take the output of nm and produce a listing of raw symbols and C names. 18777global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18778 18779# Transform the output of nm in a proper C declaration. 18780global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18781 18782# Transform the output of nm in a C name address pair. 18783global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18784 18785# Transform the output of nm in a C name address pair when lib prefix is needed. 18786global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18787 18788# Specify filename containing input files for \$NM. 18789nm_file_list_spec=$lt_nm_file_list_spec 18790 18791# The root where to search for dependent libraries,and in which our libraries should be installed. 18792lt_sysroot=$lt_sysroot 18793 18794# The name of the directory that contains temporary libtool files. 18795objdir=$objdir 18796 18797# Used to examine libraries when file_magic_cmd begins with "file". 18798MAGIC_CMD=$MAGIC_CMD 18799 18800# Must we lock files when doing compilation? 18801need_locks=$lt_need_locks 18802 18803# Manifest tool. 18804MANIFEST_TOOL=$lt_MANIFEST_TOOL 18805 18806# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18807DSYMUTIL=$lt_DSYMUTIL 18808 18809# Tool to change global to local symbols on Mac OS X. 18810NMEDIT=$lt_NMEDIT 18811 18812# Tool to manipulate fat objects and archives on Mac OS X. 18813LIPO=$lt_LIPO 18814 18815# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18816OTOOL=$lt_OTOOL 18817 18818# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18819OTOOL64=$lt_OTOOL64 18820 18821# Old archive suffix (normally "a"). 18822libext=$libext 18823 18824# Shared library suffix (normally ".so"). 18825shrext_cmds=$lt_shrext_cmds 18826 18827# The commands to extract the exported symbol list from a shared archive. 18828extract_expsyms_cmds=$lt_extract_expsyms_cmds 18829 18830# Variables whose values should be saved in libtool wrapper scripts and 18831# restored at link time. 18832variables_saved_for_relink=$lt_variables_saved_for_relink 18833 18834# Do we need the "lib" prefix for modules? 18835need_lib_prefix=$need_lib_prefix 18836 18837# Do we need a version for libraries? 18838need_version=$need_version 18839 18840# Library versioning type. 18841version_type=$version_type 18842 18843# Shared library runtime path variable. 18844runpath_var=$runpath_var 18845 18846# Shared library path variable. 18847shlibpath_var=$shlibpath_var 18848 18849# Is shlibpath searched before the hard-coded library search path? 18850shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18851 18852# Format of library name prefix. 18853libname_spec=$lt_libname_spec 18854 18855# List of archive names. First name is the real one, the rest are links. 18856# The last name is the one that the linker finds with -lNAME 18857library_names_spec=$lt_library_names_spec 18858 18859# The coded name of the library, if different from the real name. 18860soname_spec=$lt_soname_spec 18861 18862# Permission mode override for installation of shared libraries. 18863install_override_mode=$lt_install_override_mode 18864 18865# Command to use after installation of a shared archive. 18866postinstall_cmds=$lt_postinstall_cmds 18867 18868# Command to use after uninstallation of a shared archive. 18869postuninstall_cmds=$lt_postuninstall_cmds 18870 18871# Commands used to finish a libtool library installation in a directory. 18872finish_cmds=$lt_finish_cmds 18873 18874# As "finish_cmds", except a single script fragment to be evaled but 18875# not shown. 18876finish_eval=$lt_finish_eval 18877 18878# Whether we should hardcode library paths into libraries. 18879hardcode_into_libs=$hardcode_into_libs 18880 18881# Compile-time system search path for libraries. 18882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18883 18884# Run-time system search path for libraries. 18885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18886 18887# Whether dlopen is supported. 18888dlopen_support=$enable_dlopen 18889 18890# Whether dlopen of programs is supported. 18891dlopen_self=$enable_dlopen_self 18892 18893# Whether dlopen of statically linked programs is supported. 18894dlopen_self_static=$enable_dlopen_self_static 18895 18896# Commands to strip libraries. 18897old_striplib=$lt_old_striplib 18898striplib=$lt_striplib 18899 18900 18901# The linker used to build libraries. 18902LD=$lt_LD 18903 18904# How to create reloadable object files. 18905reload_flag=$lt_reload_flag 18906reload_cmds=$lt_reload_cmds 18907 18908# Commands used to build an old-style archive. 18909old_archive_cmds=$lt_old_archive_cmds 18910 18911# A language specific compiler. 18912CC=$lt_compiler 18913 18914# Is the compiler the GNU compiler? 18915with_gcc=$GCC 18916 18917# Compiler flag to turn off builtin functions. 18918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18919 18920# Additional compiler flags for building library objects. 18921pic_flag=$lt_lt_prog_compiler_pic 18922 18923# How to pass a linker flag through the compiler. 18924wl=$lt_lt_prog_compiler_wl 18925 18926# Compiler flag to prevent dynamic linking. 18927link_static_flag=$lt_lt_prog_compiler_static 18928 18929# Does compiler simultaneously support -c and -o options? 18930compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18931 18932# Whether or not to add -lc for building shared libraries. 18933build_libtool_need_lc=$archive_cmds_need_lc 18934 18935# Whether or not to disallow shared libs when runtime libs are static. 18936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18937 18938# Compiler flag to allow reflexive dlopens. 18939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18940 18941# Compiler flag to generate shared objects directly from archives. 18942whole_archive_flag_spec=$lt_whole_archive_flag_spec 18943 18944# Whether the compiler copes with passing no objects directly. 18945compiler_needs_object=$lt_compiler_needs_object 18946 18947# Create an old-style archive from a shared archive. 18948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18949 18950# Create a temporary old-style archive to link instead of a shared archive. 18951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18952 18953# Commands used to build a shared archive. 18954archive_cmds=$lt_archive_cmds 18955archive_expsym_cmds=$lt_archive_expsym_cmds 18956 18957# Commands used to build a loadable module if different from building 18958# a shared archive. 18959module_cmds=$lt_module_cmds 18960module_expsym_cmds=$lt_module_expsym_cmds 18961 18962# Whether we are building with GNU ld or not. 18963with_gnu_ld=$lt_with_gnu_ld 18964 18965# Flag that allows shared libraries with undefined symbols to be built. 18966allow_undefined_flag=$lt_allow_undefined_flag 18967 18968# Flag that enforces no undefined symbols. 18969no_undefined_flag=$lt_no_undefined_flag 18970 18971# Flag to hardcode \$libdir into a binary during linking. 18972# This must work even if \$libdir does not exist 18973hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18974 18975# Whether we need a single "-rpath" flag with a separated argument. 18976hardcode_libdir_separator=$lt_hardcode_libdir_separator 18977 18978# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18979# DIR into the resulting binary. 18980hardcode_direct=$hardcode_direct 18981 18982# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18983# DIR into the resulting binary and the resulting library dependency is 18984# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18985# library is relocated. 18986hardcode_direct_absolute=$hardcode_direct_absolute 18987 18988# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18989# into the resulting binary. 18990hardcode_minus_L=$hardcode_minus_L 18991 18992# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18993# into the resulting binary. 18994hardcode_shlibpath_var=$hardcode_shlibpath_var 18995 18996# Set to "yes" if building a shared library automatically hardcodes DIR 18997# into the library and all subsequent libraries and executables linked 18998# against it. 18999hardcode_automatic=$hardcode_automatic 19000 19001# Set to yes if linker adds runtime paths of dependent libraries 19002# to runtime path list. 19003inherit_rpath=$inherit_rpath 19004 19005# Whether libtool must link a program against all its dependency libraries. 19006link_all_deplibs=$link_all_deplibs 19007 19008# Set to "yes" if exported symbols are required. 19009always_export_symbols=$always_export_symbols 19010 19011# The commands to list exported symbols. 19012export_symbols_cmds=$lt_export_symbols_cmds 19013 19014# Symbols that should not be listed in the preloaded symbols. 19015exclude_expsyms=$lt_exclude_expsyms 19016 19017# Symbols that must always be exported. 19018include_expsyms=$lt_include_expsyms 19019 19020# Commands necessary for linking programs (against libraries) with templates. 19021prelink_cmds=$lt_prelink_cmds 19022 19023# Commands necessary for finishing linking programs. 19024postlink_cmds=$lt_postlink_cmds 19025 19026# Specify filename containing input files. 19027file_list_spec=$lt_file_list_spec 19028 19029# How to hardcode a shared library path into an executable. 19030hardcode_action=$hardcode_action 19031 19032# ### END LIBTOOL CONFIG 19033 19034_LT_EOF 19035 19036 case $host_os in 19037 aix3*) 19038 cat <<\_LT_EOF >> "$cfgfile" 19039# AIX sometimes has problems with the GCC collect2 program. For some 19040# reason, if we set the COLLECT_NAMES environment variable, the problems 19041# vanish in a puff of smoke. 19042if test "X${COLLECT_NAMES+set}" != Xset; then 19043 COLLECT_NAMES= 19044 export COLLECT_NAMES 19045fi 19046_LT_EOF 19047 ;; 19048 esac 19049 19050 19051ltmain="$ac_aux_dir/ltmain.sh" 19052 19053 19054 # We use sed instead of cat because bash on DJGPP gets confused if 19055 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19056 # text mode, it properly converts lines to CR/LF. This bash problem 19057 # is reportedly fixed, but why not run on old versions too? 19058 sed '$q' "$ltmain" >> "$cfgfile" \ 19059 || (rm -f "$cfgfile"; exit 1) 19060 19061 if test x"$xsi_shell" = xyes; then 19062 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19063func_dirname ()\ 19064{\ 19065\ case ${1} in\ 19066\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19067\ * ) func_dirname_result="${3}" ;;\ 19068\ esac\ 19069} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19072test 0 -eq $? || _lt_function_replace_fail=: 19073 19074 19075 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19076func_basename ()\ 19077{\ 19078\ func_basename_result="${1##*/}"\ 19079} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19080 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19082test 0 -eq $? || _lt_function_replace_fail=: 19083 19084 19085 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19086func_dirname_and_basename ()\ 19087{\ 19088\ case ${1} in\ 19089\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19090\ * ) func_dirname_result="${3}" ;;\ 19091\ esac\ 19092\ func_basename_result="${1##*/}"\ 19093} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19094 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19096test 0 -eq $? || _lt_function_replace_fail=: 19097 19098 19099 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19100func_stripname ()\ 19101{\ 19102\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19103\ # positional parameters, so assign one to ordinary parameter first.\ 19104\ func_stripname_result=${3}\ 19105\ func_stripname_result=${func_stripname_result#"${1}"}\ 19106\ func_stripname_result=${func_stripname_result%"${2}"}\ 19107} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19108 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19110test 0 -eq $? || _lt_function_replace_fail=: 19111 19112 19113 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19114func_split_long_opt ()\ 19115{\ 19116\ func_split_long_opt_name=${1%%=*}\ 19117\ func_split_long_opt_arg=${1#*=}\ 19118} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19121test 0 -eq $? || _lt_function_replace_fail=: 19122 19123 19124 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19125func_split_short_opt ()\ 19126{\ 19127\ func_split_short_opt_arg=${1#??}\ 19128\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19129} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19130 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19132test 0 -eq $? || _lt_function_replace_fail=: 19133 19134 19135 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19136func_lo2o ()\ 19137{\ 19138\ case ${1} in\ 19139\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19140\ *) func_lo2o_result=${1} ;;\ 19141\ esac\ 19142} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19143 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19145test 0 -eq $? || _lt_function_replace_fail=: 19146 19147 19148 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19149func_xform ()\ 19150{\ 19151 func_xform_result=${1%.*}.lo\ 19152} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19153 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19155test 0 -eq $? || _lt_function_replace_fail=: 19156 19157 19158 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19159func_arith ()\ 19160{\ 19161 func_arith_result=$(( $* ))\ 19162} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19163 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19165test 0 -eq $? || _lt_function_replace_fail=: 19166 19167 19168 sed -e '/^func_len ()$/,/^} # func_len /c\ 19169func_len ()\ 19170{\ 19171 func_len_result=${#1}\ 19172} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19173 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19175test 0 -eq $? || _lt_function_replace_fail=: 19176 19177fi 19178 19179if test x"$lt_shell_append" = xyes; then 19180 sed -e '/^func_append ()$/,/^} # func_append /c\ 19181func_append ()\ 19182{\ 19183 eval "${1}+=\\${2}"\ 19184} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19185 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19187test 0 -eq $? || _lt_function_replace_fail=: 19188 19189 19190 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19191func_append_quoted ()\ 19192{\ 19193\ func_quote_for_eval "${2}"\ 19194\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19195} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19196 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19198test 0 -eq $? || _lt_function_replace_fail=: 19199 19200 19201 # Save a `func_append' function call where possible by direct use of '+=' 19202 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19203 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19205 test 0 -eq $? || _lt_function_replace_fail=: 19206else 19207 # Save a `func_append' function call even when '+=' is not available 19208 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19209 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19211 test 0 -eq $? || _lt_function_replace_fail=: 19212fi 19213 19214if test x"$_lt_function_replace_fail" = x":"; then 19215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19216$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19217fi 19218 19219 19220 mv -f "$cfgfile" "$ofile" || 19221 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19222 chmod +x "$ofile" 19223 19224 ;; 19225 19226 esac 19227done # for ac_tag 19228 19229 19230as_fn_exit 0 19231_ACEOF 19232ac_clean_files=$ac_clean_files_save 19233 19234test $ac_write_fail = 0 || 19235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19236 19237 19238# configure is writing to config.log, and then calls config.status. 19239# config.status does its own redirection, appending to config.log. 19240# Unfortunately, on DOS this fails, as config.log is still kept open 19241# by configure, so config.status won't be able to write to it; its 19242# output is simply discarded. So we exec the FD to /dev/null, 19243# effectively closing config.log, so it can be properly (re)opened and 19244# appended to by config.status. When coming back to configure, we 19245# need to make the FD available again. 19246if test "$no_create" != yes; then 19247 ac_cs_success=: 19248 ac_config_status_args= 19249 test "$silent" = yes && 19250 ac_config_status_args="$ac_config_status_args --quiet" 19251 exec 5>/dev/null 19252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19253 exec 5>>config.log 19254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19255 # would make configure fail if this is the last instruction. 19256 $ac_cs_success || as_fn_exit 1 19257fi 19258if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19260$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19261fi 19262 19263 19264if test "$using_gsm" != "no"; then 19265 if test "$found_libgsm" = "yes"; then 19266 gsm_option="(external)" 19267 else 19268 gsm_option="(in-tree)" 19269 fi 19270fi 19271 19272if test "$using_lpc10" != "no"; then 19273 if test "$found_liblpc10" = "yes"; then 19274 lpc10_option="(external)" 19275 else 19276 lpc10_option="(in-tree)" 19277 fi 19278fi 19279 19280if test "$using_pkgconfig" = "no"; then 19281 pkgconfig_option="disabled" 19282else 19283 pkgconfig_option="$with_pkgconfigdir" 19284fi 19285 19286# Report configuration. 19287echo 19288echo "BUILD OPTIONS" 19289echo "Debugging build............$enable_debug" 19290echo "Distro name ...............$DISTRO" 19291echo "Dynamic loading support....$using_libltdl" 19292echo "Pkg-config location........$pkgconfig_option" 19293echo "Play and rec symlinks......$enable_playrec_symlinks" 19294echo "Symlinks enabled...........$enable_symlinks" 19295echo 19296echo "OPTIONAL DEVICE DRIVERS" 19297echo "ao (Xiph)..................$using_ao" 19298echo "alsa (Linux)...............$using_alsa" 19299echo "coreaudio (Mac OS X).......$using_coreaudio" 19300echo "sndio (OpenBSD)............$using_sndio" 19301echo "oss........................$using_oss" 19302echo "pulseaudio.................$using_pulseaudio" 19303echo "sunaudio...................$using_sunaudio" 19304echo "waveaudio (MS-Windows).....$using_waveaudio" 19305echo 19306echo "OPTIONAL FILE FORMATS" 19307echo "amrnb......................$using_amrnb" 19308if test "x$using_amrnb" = "xyes"; then 19309echo " dlopen amrnb..............$enable_dl_amrnb" 19310fi 19311echo "amrwb......................$using_amrwb" 19312if test "x$using_amrwb" = "xyes"; then 19313echo " dlopen amrwb..............$enable_dl_amrwb" 19314fi 19315echo "flac.......................$using_flac" 19316echo "gsm........................$using_gsm $gsm_option" 19317echo "lpc10......................$using_lpc10 $lpc10_option" 19318echo "mp2/mp3....................$using_mp3" 19319echo " id3tag....................$using_id3tag" 19320echo " lame......................$using_lame" 19321if test "x$using_lame" = "xyes"; then 19322if test "x$enable_dl_lame" != "xyes"; then 19323echo " lame id3tag...............$ac_cv_lib_mp3lame_id3tag_set_fieldvalue" 19324fi 19325echo " dlopen lame...............$enable_dl_lame" 19326fi 19327echo " mad.......................$using_mad" 19328if test "x$using_mad" = "xyes"; then 19329echo " dlopen mad................$enable_dl_mad" 19330fi 19331echo " twolame...................$using_twolame" 19332if test "x$using_twolame" = "xyes"; then 19333echo " dlopen twolame............$enable_dl_twolame" 19334fi 19335echo "oggvorbis..................$using_oggvorbis" 19336echo "opus.......................$using_opus" 19337echo "sndfile....................$using_sndfile" 19338if test "x$using_sndfile" = "xyes"; then 19339echo " dlopen sndfile............$enable_dl_sndfile" 19340fi 19341echo "wavpack....................$using_wavpack" 19342echo 19343echo "OTHER OPTIONS" 19344echo "ladspa effects.............$using_ladspa" 19345echo "magic support..............$using_magic" 19346echo "png support................$using_png" 19347if test "x$OPENMP_CFLAGS" = "x"; then 19348echo "OpenMP support.............no" 19349else 19350echo "OpenMP support.............yes, $OPENMP_CFLAGS" 19351fi 19352echo 19353echo "Configure finished. Do 'make -s && make install' to compile and install SoX." 19354echo 19355