1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for flac 1.3.2. 4# 5# Report bugs to <flac-dev@xiph.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and flac-dev@xiph.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='flac' 592PACKAGE_TARNAME='flac' 593PACKAGE_VERSION='1.3.2' 594PACKAGE_STRING='flac 1.3.2' 595PACKAGE_BUGREPORT='flac-dev@xiph.org' 596PACKAGE_URL='https://www.xiph.org/flac/' 597 598ac_unique_file="src/flac/main.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639LIB_CLOCK_GETTIME 640GCC_MINOR_VERSION 641GCC_MAJOR_VERSION 642GCC_VERSION 643FLaC__HAS_NASM_FALSE 644FLaC__HAS_NASM_TRUE 645NASM 646FLaC__HAS_DOCBOOK_TO_MAN_FALSE 647FLaC__HAS_DOCBOOK_TO_MAN_TRUE 648DOCBOOK_TO_MAN 649LTLIBICONV 650LIBICONV 651OGG_PACKAGE 652FLAC__HAS_OGG 653FLaC__HAS_OGG_FALSE 654FLaC__HAS_OGG_TRUE 655OGG_LIBS 656OGG_CFLAGS 657FLaC__WITH_CPPLIBS_FALSE 658FLaC__WITH_CPPLIBS_TRUE 659FLaC__HAS_XMMS_FALSE 660FLaC__HAS_XMMS_TRUE 661XMMS_EFFECT_PLUGIN_DIR 662XMMS_GENERAL_PLUGIN_DIR 663XMMS_OUTPUT_PLUGIN_DIR 664XMMS_INPUT_PLUGIN_DIR 665XMMS_VISUALIZATION_PLUGIN_DIR 666XMMS_PLUGIN_DIR 667XMMS_DATA_DIR 668XMMS_VERSION 669XMMS_LIBS 670XMMS_CFLAGS 671XMMS_CONFIG 672FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE 673FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE 674FLaC__HAS_DOXYGEN_FALSE 675FLaC__HAS_DOXYGEN_TRUE 676DOXYGEN 677FLAC__TEST_WITH_VALGRIND 678ENABLE_64_BIT_WORDS 679FLAC__TEST_LEVEL 680FLaC__USE_AVX_FALSE 681FLaC__USE_AVX_TRUE 682FLaC__USE_ALTIVEC_FALSE 683FLaC__USE_ALTIVEC_TRUE 684DEBUG_FALSE 685DEBUG_TRUE 686FLaC__SYS_LINUX_FALSE 687FLaC__SYS_LINUX_TRUE 688FLaC__SYS_DARWIN_FALSE 689FLaC__SYS_DARWIN_TRUE 690OS_IS_WINDOWS_FALSE 691OS_IS_WINDOWS_TRUE 692FLaC__CPU_PPC_SPE_FALSE 693FLaC__CPU_PPC_SPE_TRUE 694OBJ_FORMAT 695FLaC__CPU_SPARC_FALSE 696FLaC__CPU_SPARC_TRUE 697FLaC__CPU_PPC_FALSE 698FLaC__CPU_PPC_TRUE 699FLaC__CPU_IA32_FALSE 700FLaC__CPU_IA32_TRUE 701FLAC__CPU_X86_64_FALSE 702FLAC__CPU_X86_64_TRUE 703FLaC__NO_ASM_FALSE 704FLaC__NO_ASM_TRUE 705CXXCPP 706am__fastdepCXX_FALSE 707am__fastdepCXX_TRUE 708CXXDEPMODE 709ac_ct_CXX 710CXXFLAGS 711CXX 712am__fastdepCCAS_FALSE 713am__fastdepCCAS_TRUE 714CCASDEPMODE 715CCASFLAGS 716CCAS 717LT_SYS_LIBRARY_PATH 718OTOOL64 719OTOOL 720LIPO 721NMEDIT 722DSYMUTIL 723MANIFEST_TOOL 724RANLIB 725LN_S 726NM 727ac_ct_DUMPBIN 728DUMPBIN 729LD 730FGREP 731SED 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740LIBTOOL 741OBJDUMP 742DLLTOOL 743AS 744ac_ct_AR 745AR 746EGREP 747GREP 748CPP 749am__fastdepCC_FALSE 750am__fastdepCC_TRUE 751CCDEPMODE 752am__nodep 753AMDEPBACKSLASH 754AMDEP_FALSE 755AMDEP_TRUE 756am__quote 757am__include 758DEPDIR 759OBJEXT 760EXEEXT 761ac_ct_CC 762CPPFLAGS 763LDFLAGS 764CFLAGS 765CC 766AM_BACKSLASH 767AM_DEFAULT_VERBOSITY 768AM_DEFAULT_V 769AM_V 770am__untar 771am__tar 772AMTAR 773am__leading_dot 774SET_MAKE 775AWK 776mkdir_p 777MKDIR_P 778INSTALL_STRIP_PROGRAM 779STRIP 780install_sh 781MAKEINFO 782AUTOHEADER 783AUTOMAKE 784AUTOCONF 785ACLOCAL 786VERSION 787PACKAGE 788CYGPATH_W 789am__isrc 790INSTALL_DATA 791INSTALL_SCRIPT 792INSTALL_PROGRAM 793target_alias 794host_alias 795build_alias 796LIBS 797ECHO_T 798ECHO_N 799ECHO_C 800DEFS 801mandir 802localedir 803libdir 804psdir 805pdfdir 806dvidir 807htmldir 808infodir 809docdir 810oldincludedir 811includedir 812runstatedir 813localstatedir 814sharedstatedir 815sysconfdir 816datadir 817datarootdir 818libexecdir 819sbindir 820bindir 821program_transform_name 822prefix 823exec_prefix 824PACKAGE_URL 825PACKAGE_BUGREPORT 826PACKAGE_STRING 827PACKAGE_VERSION 828PACKAGE_TARNAME 829PACKAGE_NAME 830PATH_SEPARATOR 831SHELL' 832ac_subst_files='' 833ac_user_opts=' 834enable_option_checking 835enable_silent_rules 836enable_dependency_tracking 837enable_static 838with_pic 839enable_shared 840enable_fast_install 841with_aix_soname 842with_gnu_ld 843with_sysroot 844enable_libtool_lock 845enable_largefile 846enable_asm_optimizations 847enable_debug 848enable_sse 849enable_altivec 850enable_avx 851enable_thorough_tests 852enable_exhaustive_tests 853enable_werror 854enable_stack_smash_protection 855enable_64_bit_words 856enable_valgrind_testing 857enable_doxygen_docs 858enable_local_xmms_plugin 859enable_xmms_plugin 860with_xmms_prefix 861with_xmms_exec_prefix 862enable_cpplibs 863enable_ogg 864with_ogg 865with_ogg_libraries 866with_ogg_includes 867enable_oggtest 868enable_rpath 869with_libiconv_prefix 870' 871 ac_precious_vars='build_alias 872host_alias 873target_alias 874CC 875CFLAGS 876LDFLAGS 877LIBS 878CPPFLAGS 879CPP 880LT_SYS_LIBRARY_PATH 881CCAS 882CCASFLAGS 883CXX 884CXXFLAGS 885CCC 886CXXCPP' 887 888 889# Initialize some variables set by options. 890ac_init_help= 891ac_init_version=false 892ac_unrecognized_opts= 893ac_unrecognized_sep= 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925runstatedir='${localstatedir}/run' 926includedir='${prefix}/include' 927oldincludedir='/usr/include' 928docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 929infodir='${datarootdir}/info' 930htmldir='${docdir}' 931dvidir='${docdir}' 932pdfdir='${docdir}' 933psdir='${docdir}' 934libdir='${exec_prefix}/lib' 935localedir='${datarootdir}/locale' 936mandir='${datarootdir}/man' 937 938ac_prev= 939ac_dashdash= 940for ac_option 941do 942 # If the previous option needs an argument, assign it. 943 if test -n "$ac_prev"; then 944 eval $ac_prev=\$ac_option 945 ac_prev= 946 continue 947 fi 948 949 case $ac_option in 950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 951 *=) ac_optarg= ;; 952 *) ac_optarg=yes ;; 953 esac 954 955 # Accept the important Cygnus configure options, so we can diagnose typos. 956 957 case $ac_dashdash$ac_option in 958 --) 959 ac_dashdash=yes ;; 960 961 -bindir | --bindir | --bindi | --bind | --bin | --bi) 962 ac_prev=bindir ;; 963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 964 bindir=$ac_optarg ;; 965 966 -build | --build | --buil | --bui | --bu) 967 ac_prev=build_alias ;; 968 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 969 build_alias=$ac_optarg ;; 970 971 -cache-file | --cache-file | --cache-fil | --cache-fi \ 972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 973 ac_prev=cache_file ;; 974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 976 cache_file=$ac_optarg ;; 977 978 --config-cache | -C) 979 cache_file=config.cache ;; 980 981 -datadir | --datadir | --datadi | --datad) 982 ac_prev=datadir ;; 983 -datadir=* | --datadir=* | --datadi=* | --datad=*) 984 datadir=$ac_optarg ;; 985 986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 987 | --dataroo | --dataro | --datar) 988 ac_prev=datarootdir ;; 989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 991 datarootdir=$ac_optarg ;; 992 993 -disable-* | --disable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1023 as_fn_error $? "invalid feature name: $ac_useropt" 1024 ac_useropt_orig=$ac_useropt 1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1026 case $ac_user_opts in 1027 *" 1028"enable_$ac_useropt" 1029"*) ;; 1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1031 ac_unrecognized_sep=', ';; 1032 esac 1033 eval enable_$ac_useropt=\$ac_optarg ;; 1034 1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1037 | --exec | --exe | --ex) 1038 ac_prev=exec_prefix ;; 1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1041 | --exec=* | --exe=* | --ex=*) 1042 exec_prefix=$ac_optarg ;; 1043 1044 -gas | --gas | --ga | --g) 1045 # Obsolete; use --with-gas. 1046 with_gas=yes ;; 1047 1048 -help | --help | --hel | --he | -h) 1049 ac_init_help=long ;; 1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1051 ac_init_help=recursive ;; 1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1053 ac_init_help=short ;; 1054 1055 -host | --host | --hos | --ho) 1056 ac_prev=host_alias ;; 1057 -host=* | --host=* | --hos=* | --ho=*) 1058 host_alias=$ac_optarg ;; 1059 1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1061 ac_prev=htmldir ;; 1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1063 | --ht=*) 1064 htmldir=$ac_optarg ;; 1065 1066 -includedir | --includedir | --includedi | --included | --include \ 1067 | --includ | --inclu | --incl | --inc) 1068 ac_prev=includedir ;; 1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1070 | --includ=* | --inclu=* | --incl=* | --inc=*) 1071 includedir=$ac_optarg ;; 1072 1073 -infodir | --infodir | --infodi | --infod | --info | --inf) 1074 ac_prev=infodir ;; 1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1076 infodir=$ac_optarg ;; 1077 1078 -libdir | --libdir | --libdi | --libd) 1079 ac_prev=libdir ;; 1080 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1081 libdir=$ac_optarg ;; 1082 1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1084 | --libexe | --libex | --libe) 1085 ac_prev=libexecdir ;; 1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1087 | --libexe=* | --libex=* | --libe=*) 1088 libexecdir=$ac_optarg ;; 1089 1090 -localedir | --localedir | --localedi | --localed | --locale) 1091 ac_prev=localedir ;; 1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1093 localedir=$ac_optarg ;; 1094 1095 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1096 | --localstate | --localstat | --localsta | --localst | --locals) 1097 ac_prev=localstatedir ;; 1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1100 localstatedir=$ac_optarg ;; 1101 1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1103 ac_prev=mandir ;; 1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1105 mandir=$ac_optarg ;; 1106 1107 -nfp | --nfp | --nf) 1108 # Obsolete; use --without-fp. 1109 with_fp=no ;; 1110 1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1112 | --no-cr | --no-c | -n) 1113 no_create=yes ;; 1114 1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1117 no_recursion=yes ;; 1118 1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1121 | --oldin | --oldi | --old | --ol | --o) 1122 ac_prev=oldincludedir ;; 1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1126 oldincludedir=$ac_optarg ;; 1127 1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1129 ac_prev=prefix ;; 1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1131 prefix=$ac_optarg ;; 1132 1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1134 | --program-pre | --program-pr | --program-p) 1135 ac_prev=program_prefix ;; 1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1138 program_prefix=$ac_optarg ;; 1139 1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1141 | --program-suf | --program-su | --program-s) 1142 ac_prev=program_suffix ;; 1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1145 program_suffix=$ac_optarg ;; 1146 1147 -program-transform-name | --program-transform-name \ 1148 | --program-transform-nam | --program-transform-na \ 1149 | --program-transform-n | --program-transform- \ 1150 | --program-transform | --program-transfor \ 1151 | --program-transfo | --program-transf \ 1152 | --program-trans | --program-tran \ 1153 | --progr-tra | --program-tr | --program-t) 1154 ac_prev=program_transform_name ;; 1155 -program-transform-name=* | --program-transform-name=* \ 1156 | --program-transform-nam=* | --program-transform-na=* \ 1157 | --program-transform-n=* | --program-transform-=* \ 1158 | --program-transform=* | --program-transfor=* \ 1159 | --program-transfo=* | --program-transf=* \ 1160 | --program-trans=* | --program-tran=* \ 1161 | --progr-tra=* | --program-tr=* | --program-t=*) 1162 program_transform_name=$ac_optarg ;; 1163 1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1165 ac_prev=pdfdir ;; 1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1167 pdfdir=$ac_optarg ;; 1168 1169 -psdir | --psdir | --psdi | --psd | --ps) 1170 ac_prev=psdir ;; 1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1172 psdir=$ac_optarg ;; 1173 1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1175 | -silent | --silent | --silen | --sile | --sil) 1176 silent=yes ;; 1177 1178 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1179 | --runstate | --runstat | --runsta | --runst | --runs \ 1180 | --run | --ru | --r) 1181 ac_prev=runstatedir ;; 1182 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1183 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1184 | --run=* | --ru=* | --r=*) 1185 runstatedir=$ac_optarg ;; 1186 1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1188 ac_prev=sbindir ;; 1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1190 | --sbi=* | --sb=*) 1191 sbindir=$ac_optarg ;; 1192 1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1195 | --sharedst | --shareds | --shared | --share | --shar \ 1196 | --sha | --sh) 1197 ac_prev=sharedstatedir ;; 1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1201 | --sha=* | --sh=*) 1202 sharedstatedir=$ac_optarg ;; 1203 1204 -site | --site | --sit) 1205 ac_prev=site ;; 1206 -site=* | --site=* | --sit=*) 1207 site=$ac_optarg ;; 1208 1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1210 ac_prev=srcdir ;; 1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1212 srcdir=$ac_optarg ;; 1213 1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1215 | --syscon | --sysco | --sysc | --sys | --sy) 1216 ac_prev=sysconfdir ;; 1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1219 sysconfdir=$ac_optarg ;; 1220 1221 -target | --target | --targe | --targ | --tar | --ta | --t) 1222 ac_prev=target_alias ;; 1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1224 target_alias=$ac_optarg ;; 1225 1226 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1227 verbose=yes ;; 1228 1229 -version | --version | --versio | --versi | --vers | -V) 1230 ac_init_version=: ;; 1231 1232 -with-* | --with-*) 1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1234 # Reject names that are not valid shell variable names. 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1236 as_fn_error $? "invalid package name: $ac_useropt" 1237 ac_useropt_orig=$ac_useropt 1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1239 case $ac_user_opts in 1240 *" 1241"with_$ac_useropt" 1242"*) ;; 1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1244 ac_unrecognized_sep=', ';; 1245 esac 1246 eval with_$ac_useropt=\$ac_optarg ;; 1247 1248 -without-* | --without-*) 1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1252 as_fn_error $? "invalid package name: $ac_useropt" 1253 ac_useropt_orig=$ac_useropt 1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1255 case $ac_user_opts in 1256 *" 1257"with_$ac_useropt" 1258"*) ;; 1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1260 ac_unrecognized_sep=', ';; 1261 esac 1262 eval with_$ac_useropt=no ;; 1263 1264 --x) 1265 # Obsolete; use --with-x. 1266 with_x=yes ;; 1267 1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1269 | --x-incl | --x-inc | --x-in | --x-i) 1270 ac_prev=x_includes ;; 1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1273 x_includes=$ac_optarg ;; 1274 1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1277 ac_prev=x_libraries ;; 1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1280 x_libraries=$ac_optarg ;; 1281 1282 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1283Try \`$0 --help' for more information" 1284 ;; 1285 1286 *=*) 1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1288 # Reject names that are not valid shell variable names. 1289 case $ac_envvar in #( 1290 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1292 esac 1293 eval $ac_envvar=\$ac_optarg 1294 export $ac_envvar ;; 1295 1296 *) 1297 # FIXME: should be removed in autoconf 3.0. 1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1302 ;; 1303 1304 esac 1305done 1306 1307if test -n "$ac_prev"; then 1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1309 as_fn_error $? "missing argument to $ac_option" 1310fi 1311 1312if test -n "$ac_unrecognized_opts"; then 1313 case $enable_option_checking in 1314 no) ;; 1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1317 esac 1318fi 1319 1320# Check all directory arguments for consistency. 1321for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1322 datadir sysconfdir sharedstatedir localstatedir includedir \ 1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1324 libdir localedir mandir runstatedir 1325do 1326 eval ac_val=\$$ac_var 1327 # Remove trailing slashes. 1328 case $ac_val in 1329 */ ) 1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1331 eval $ac_var=\$ac_val;; 1332 esac 1333 # Be sure to have absolute directory names. 1334 case $ac_val in 1335 [\\/$]* | ?:[\\/]* ) continue;; 1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1337 esac 1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1339done 1340 1341# There might be people who depend on the old broken behavior: `$host' 1342# used to hold the argument of --host etc. 1343# FIXME: To remove some day. 1344build=$build_alias 1345host=$host_alias 1346target=$target_alias 1347 1348# FIXME: To remove some day. 1349if test "x$host_alias" != x; then 1350 if test "x$build_alias" = x; then 1351 cross_compiling=maybe 1352 elif test "x$build_alias" != "x$host_alias"; then 1353 cross_compiling=yes 1354 fi 1355fi 1356 1357ac_tool_prefix= 1358test -n "$host_alias" && ac_tool_prefix=$host_alias- 1359 1360test "$silent" = yes && exec 6>/dev/null 1361 1362 1363ac_pwd=`pwd` && test -n "$ac_pwd" && 1364ac_ls_di=`ls -di .` && 1365ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1366 as_fn_error $? "working directory cannot be determined" 1367test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1368 as_fn_error $? "pwd does not report name of working directory" 1369 1370 1371# Find the source files, if location was not specified. 1372if test -z "$srcdir"; then 1373 ac_srcdir_defaulted=yes 1374 # Try the directory containing this script, then the parent directory. 1375 ac_confdir=`$as_dirname -- "$as_myself" || 1376$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1377 X"$as_myself" : 'X\(//\)[^/]' \| \ 1378 X"$as_myself" : 'X\(//\)$' \| \ 1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1380$as_echo X"$as_myself" | 1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)[^/].*/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\/\)$/{ 1390 s//\1/ 1391 q 1392 } 1393 /^X\(\/\).*/{ 1394 s//\1/ 1395 q 1396 } 1397 s/.*/./; q'` 1398 srcdir=$ac_confdir 1399 if test ! -r "$srcdir/$ac_unique_file"; then 1400 srcdir=.. 1401 fi 1402else 1403 ac_srcdir_defaulted=no 1404fi 1405if test ! -r "$srcdir/$ac_unique_file"; then 1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1408fi 1409ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1410ac_abs_confdir=`( 1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1412 pwd)` 1413# When building in place, set srcdir=. 1414if test "$ac_abs_confdir" = "$ac_pwd"; then 1415 srcdir=. 1416fi 1417# Remove unnecessary trailing slashes from srcdir. 1418# Double slashes in file names in object file debugging info 1419# mess up M-x gdb in Emacs. 1420case $srcdir in 1421*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1422esac 1423for ac_var in $ac_precious_vars; do 1424 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1425 eval ac_env_${ac_var}_value=\$${ac_var} 1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1428done 1429 1430# 1431# Report the --help message. 1432# 1433if test "$ac_init_help" = "long"; then 1434 # Omit some internal or obsolete options to make the list less imposing. 1435 # This message is too long to be a string in the A/UX 3.1 sh. 1436 cat <<_ACEOF 1437\`configure' configures flac 1.3.2 to adapt to many kinds of systems. 1438 1439Usage: $0 [OPTION]... [VAR=VALUE]... 1440 1441To assign environment variables (e.g., CC, CFLAGS...), specify them as 1442VAR=VALUE. See below for descriptions of some of the useful variables. 1443 1444Defaults for the options are specified in brackets. 1445 1446Configuration: 1447 -h, --help display this help and exit 1448 --help=short display options specific to this package 1449 --help=recursive display the short help of all the included packages 1450 -V, --version display version information and exit 1451 -q, --quiet, --silent do not print \`checking ...' messages 1452 --cache-file=FILE cache test results in FILE [disabled] 1453 -C, --config-cache alias for \`--cache-file=config.cache' 1454 -n, --no-create do not create output files 1455 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1456 1457Installation directories: 1458 --prefix=PREFIX install architecture-independent files in PREFIX 1459 [$ac_default_prefix] 1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1461 [PREFIX] 1462 1463By default, \`make install' will install all the files in 1464\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1465an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1466for instance \`--prefix=\$HOME'. 1467 1468For better control, use the options below. 1469 1470Fine tuning of the installation directories: 1471 --bindir=DIR user executables [EPREFIX/bin] 1472 --sbindir=DIR system admin executables [EPREFIX/sbin] 1473 --libexecdir=DIR program executables [EPREFIX/libexec] 1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1477 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1478 --libdir=DIR object code libraries [EPREFIX/lib] 1479 --includedir=DIR C header files [PREFIX/include] 1480 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1483 --infodir=DIR info documentation [DATAROOTDIR/info] 1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1485 --mandir=DIR man documentation [DATAROOTDIR/man] 1486 --docdir=DIR documentation root [DATAROOTDIR/doc/flac] 1487 --htmldir=DIR html documentation [DOCDIR] 1488 --dvidir=DIR dvi documentation [DOCDIR] 1489 --pdfdir=DIR pdf documentation [DOCDIR] 1490 --psdir=DIR ps documentation [DOCDIR] 1491_ACEOF 1492 1493 cat <<\_ACEOF 1494 1495Program names: 1496 --program-prefix=PREFIX prepend PREFIX to installed program names 1497 --program-suffix=SUFFIX append SUFFIX to installed program names 1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1499 1500System types: 1501 --build=BUILD configure for building on BUILD [guessed] 1502 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1503_ACEOF 1504fi 1505 1506if test -n "$ac_init_help"; then 1507 case $ac_init_help in 1508 short | recursive ) echo "Configuration of flac 1.3.2:";; 1509 esac 1510 cat <<\_ACEOF 1511 1512Optional Features: 1513 --disable-option-checking ignore unrecognized --enable/--with options 1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1516 --enable-silent-rules less verbose build output (undo: "make V=1") 1517 --disable-silent-rules verbose build output (undo: "make V=0") 1518 --enable-dependency-tracking 1519 do not reject slow dependency extractors 1520 --disable-dependency-tracking 1521 speeds up one-time build 1522 --enable-static[=PKGS] build static libraries [default=no] 1523 --enable-shared[=PKGS] build shared libraries [default=yes] 1524 --enable-fast-install[=PKGS] 1525 optimize for fast installation [default=yes] 1526 --disable-libtool-lock avoid locking (might break parallel builds) 1527 --disable-largefile omit support for large files 1528 --disable-asm-optimizations 1529 Don't use any assembly optimization routines 1530 --enable-debug Turn on debugging 1531 --disable-sse Disable passing of -msse2 to the compiler 1532 --disable-altivec Disable Altivec optimizations 1533 --disable-avx Disable AVX, AVX2 optimizations 1534 --disable-thorough-tests 1535 Disable thorough (long) testing, do only basic tests 1536 --enable-exhaustive-tests 1537 Enable exhaustive testing (VERY long) 1538 --enable-werror Enable -Werror in all Makefiles 1539 --enable-stack-smash-protection 1540 Enable GNU GCC stack smash protection 1541 --enable-64-bit-words Set FLAC__BYTES_PER_WORD to 8 (4 is the default) 1542 --enable-valgrind-testing 1543 Run all tests inside Valgrind 1544 --disable-doxygen-docs Disable API documentation building via Doxygen 1545 --enable-local-xmms-plugin 1546 Install XMMS plugin to ~/.xmms/Plugins instead of 1547 system location 1548 --disable-xmms-plugin Do not build XMMS plugin 1549 --disable-cpplibs Do not build libFLAC++ 1550 --disable-ogg Disable ogg support (default: test for libogg) 1551 --disable-oggtest Do not try to compile and run a test Ogg program 1552 --disable-rpath do not hardcode runtime library paths 1553 1554Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1558 both] 1559 --with-aix-soname=aix|svr4|both 1560 shared library versioning (aka "SONAME") variant to 1561 provide on AIX, [default=aix]. 1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1563 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1564 compiler's sysroot if not specified). 1565 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) 1566 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) 1567 --with-ogg=PFX Prefix where libogg is installed (optional) 1568 --with-ogg-libraries=DIR 1569 Directory where libogg library is installed 1570 (optional) 1571 --with-ogg-includes=DIR Directory where libogg header files are installed 1572 (optional) 1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1574 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1575 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1576 1577Some influential environment variables: 1578 CC C compiler command 1579 CFLAGS C compiler flags 1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1581 nonstandard directory <lib dir> 1582 LIBS libraries to pass to the linker, e.g. -l<library> 1583 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1584 you have headers in a nonstandard directory <include dir> 1585 CPP C preprocessor 1586 LT_SYS_LIBRARY_PATH 1587 User-defined run-time library search path. 1588 CCAS assembler compiler command (defaults to CC) 1589 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1590 CXX C++ compiler command 1591 CXXFLAGS C++ compiler flags 1592 CXXCPP C++ preprocessor 1593 1594Use these variables to override the choices made by `configure' or to help 1595it to find libraries and programs with nonstandard names/locations. 1596 1597Report bugs to <flac-dev@xiph.org>. 1598flac home page: <https://www.xiph.org/flac/>. 1599_ACEOF 1600ac_status=$? 1601fi 1602 1603if test "$ac_init_help" = "recursive"; then 1604 # If there are subdirs, report their specific --help. 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1606 test -d "$ac_dir" || 1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1608 continue 1609 ac_builddir=. 1610 1611case "$ac_dir" in 1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1613*) 1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1615 # A ".." for each directory in $ac_dir_suffix. 1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1617 case $ac_top_builddir_sub in 1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1620 esac ;; 1621esac 1622ac_abs_top_builddir=$ac_pwd 1623ac_abs_builddir=$ac_pwd$ac_dir_suffix 1624# for backward compatibility: 1625ac_top_builddir=$ac_top_build_prefix 1626 1627case $srcdir in 1628 .) # We are building in place. 1629 ac_srcdir=. 1630 ac_top_srcdir=$ac_top_builddir_sub 1631 ac_abs_top_srcdir=$ac_pwd ;; 1632 [\\/]* | ?:[\\/]* ) # Absolute name. 1633 ac_srcdir=$srcdir$ac_dir_suffix; 1634 ac_top_srcdir=$srcdir 1635 ac_abs_top_srcdir=$srcdir ;; 1636 *) # Relative name. 1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1638 ac_top_srcdir=$ac_top_build_prefix$srcdir 1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1640esac 1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1642 1643 cd "$ac_dir" || { ac_status=$?; continue; } 1644 # Check for guested configure. 1645 if test -f "$ac_srcdir/configure.gnu"; then 1646 echo && 1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1648 elif test -f "$ac_srcdir/configure"; then 1649 echo && 1650 $SHELL "$ac_srcdir/configure" --help=recursive 1651 else 1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1653 fi || ac_status=$? 1654 cd "$ac_pwd" || { ac_status=$?; break; } 1655 done 1656fi 1657 1658test -n "$ac_init_help" && exit $ac_status 1659if $ac_init_version; then 1660 cat <<\_ACEOF 1661flac configure 1.3.2 1662generated by GNU Autoconf 2.69 1663 1664Copyright (C) 2012 Free Software Foundation, Inc. 1665This configure script is free software; the Free Software Foundation 1666gives unlimited permission to copy, distribute and modify it. 1667_ACEOF 1668 exit 1669fi 1670 1671## ------------------------ ## 1672## Autoconf initialization. ## 1673## ------------------------ ## 1674 1675# ac_fn_c_try_compile LINENO 1676# -------------------------- 1677# Try to compile conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_compile () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext 1682 if { { ac_try="$ac_compile" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_compile") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest.$ac_objext; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_compile 1712 1713# ac_fn_c_try_cpp LINENO 1714# ---------------------- 1715# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_cpp () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_cpp conftest.$ac_ext" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1727 ac_status=$? 1728 if test -s conftest.err; then 1729 grep -v '^ *+' conftest.err >conftest.er1 1730 cat conftest.er1 >&5 1731 mv -f conftest.er1 conftest.err 1732 fi 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } > conftest.i && { 1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1736 test ! -s conftest.err 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_cpp 1749 1750# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1751# ------------------------------------------------------- 1752# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1753# the include files in INCLUDES and setting the cache variable VAR 1754# accordingly. 1755ac_fn_c_check_header_mongrel () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 if eval \${$3+:} false; then : 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760$as_echo_n "checking for $2... " >&6; } 1761if eval \${$3+:} false; then : 1762 $as_echo_n "(cached) " >&6 1763fi 1764eval ac_res=\$$3 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766$as_echo "$ac_res" >&6; } 1767else 1768 # Is the header compilable? 1769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1770$as_echo_n "checking $2 usability... " >&6; } 1771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 ac_header_compiler=yes 1778else 1779 ac_header_compiler=no 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1783$as_echo "$ac_header_compiler" >&6; } 1784 1785# Is the header present? 1786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1787$as_echo_n "checking $2 presence... " >&6; } 1788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1789/* end confdefs.h. */ 1790#include <$2> 1791_ACEOF 1792if ac_fn_c_try_cpp "$LINENO"; then : 1793 ac_header_preproc=yes 1794else 1795 ac_header_preproc=no 1796fi 1797rm -f conftest.err conftest.i conftest.$ac_ext 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1799$as_echo "$ac_header_preproc" >&6; } 1800 1801# So? What about this header? 1802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1803 yes:no: ) 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1805$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1807$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1808 ;; 1809 no:yes:* ) 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1811$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1813$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1815$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1817$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1819$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1820( $as_echo "## -------------------------------- ## 1821## Report this to flac-dev@xiph.org ## 1822## -------------------------------- ##" 1823 ) | sed "s/^/$as_me: WARNING: /" >&2 1824 ;; 1825esac 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830else 1831 eval "$3=\$ac_header_compiler" 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836fi 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839} # ac_fn_c_check_header_mongrel 1840 1841# ac_fn_c_try_run LINENO 1842# ---------------------- 1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1844# that executables *can* be run. 1845ac_fn_c_try_run () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 if { { ac_try="$ac_link" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_link") 2>&5 1856 ac_status=$? 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1859 { { case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_try") 2>&5 1866 ac_status=$? 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; }; }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: program exited with status $ac_status" >&5 1872 $as_echo "$as_me: failed program was:" >&5 1873sed 's/^/| /' conftest.$ac_ext >&5 1874 1875 ac_retval=$ac_status 1876fi 1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 as_fn_set_status $ac_retval 1880 1881} # ac_fn_c_try_run 1882 1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1884# ------------------------------------------------------- 1885# Tests whether HEADER exists and can be compiled using the include files in 1886# INCLUDES, setting the cache variable VAR accordingly. 1887ac_fn_c_check_header_compile () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894else 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$4 1898#include <$2> 1899_ACEOF 1900if ac_fn_c_try_compile "$LINENO"; then : 1901 eval "$3=yes" 1902else 1903 eval "$3=no" 1904fi 1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1906fi 1907eval ac_res=\$$3 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909$as_echo "$ac_res" >&6; } 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 1912} # ac_fn_c_check_header_compile 1913 1914# ac_fn_c_try_link LINENO 1915# ----------------------- 1916# Try to link conftest.$ac_ext, and return whether this succeeded. 1917ac_fn_c_try_link () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 rm -f conftest.$ac_objext conftest$ac_exeext 1921 if { { ac_try="$ac_link" 1922case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_link") 2>conftest.err 1929 ac_status=$? 1930 if test -s conftest.err; then 1931 grep -v '^ *+' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 mv -f conftest.er1 conftest.err 1934 fi 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } && { 1937 test -z "$ac_c_werror_flag" || 1938 test ! -s conftest.err 1939 } && test -s conftest$ac_exeext && { 1940 test "$cross_compiling" = yes || 1941 test -x conftest$ac_exeext 1942 }; then : 1943 ac_retval=0 1944else 1945 $as_echo "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 ac_retval=1 1949fi 1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1952 # interfere with the next link command; also delete a directory that is 1953 # left behind by Apple's compiler. We do this before executing the actions. 1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 as_fn_set_status $ac_retval 1957 1958} # ac_fn_c_try_link 1959 1960# ac_fn_c_check_func LINENO FUNC VAR 1961# ---------------------------------- 1962# Tests whether FUNC exists, setting the cache variable VAR accordingly 1963ac_fn_c_check_func () 1964{ 1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1967$as_echo_n "checking for $2... " >&6; } 1968if eval \${$3+:} false; then : 1969 $as_echo_n "(cached) " >&6 1970else 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1975#define $2 innocuous_$2 1976 1977/* System header to define __stub macros and hopefully few prototypes, 1978 which can conflict with char $2 (); below. 1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1980 <limits.h> exists even on freestanding compilers. */ 1981 1982#ifdef __STDC__ 1983# include <limits.h> 1984#else 1985# include <assert.h> 1986#endif 1987 1988#undef $2 1989 1990/* Override any GCC internal prototype to avoid an error. 1991 Use char because int might match the return type of a GCC 1992 builtin and then its argument prototype would still apply. */ 1993#ifdef __cplusplus 1994extern "C" 1995#endif 1996char $2 (); 1997/* The GNU C library defines this for functions which it implements 1998 to always fail with ENOSYS. Some functions are actually named 1999 something starting with __ and the normal name is an alias. */ 2000#if defined __stub_$2 || defined __stub___$2 2001choke me 2002#endif 2003 2004int 2005main () 2006{ 2007return $2 (); 2008 ; 2009 return 0; 2010} 2011_ACEOF 2012if ac_fn_c_try_link "$LINENO"; then : 2013 eval "$3=yes" 2014else 2015 eval "$3=no" 2016fi 2017rm -f core conftest.err conftest.$ac_objext \ 2018 conftest$ac_exeext conftest.$ac_ext 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 2025} # ac_fn_c_check_func 2026 2027# ac_fn_cxx_try_compile LINENO 2028# ---------------------------- 2029# Try to compile conftest.$ac_ext, and return whether this succeeded. 2030ac_fn_cxx_try_compile () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 rm -f conftest.$ac_objext 2034 if { { ac_try="$ac_compile" 2035case "(($ac_try" in 2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2037 *) ac_try_echo=$ac_try;; 2038esac 2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2040$as_echo "$ac_try_echo"; } >&5 2041 (eval "$ac_compile") 2>conftest.err 2042 ac_status=$? 2043 if test -s conftest.err; then 2044 grep -v '^ *+' conftest.err >conftest.er1 2045 cat conftest.er1 >&5 2046 mv -f conftest.er1 conftest.err 2047 fi 2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2049 test $ac_status = 0; } && { 2050 test -z "$ac_cxx_werror_flag" || 2051 test ! -s conftest.err 2052 } && test -s conftest.$ac_objext; then : 2053 ac_retval=0 2054else 2055 $as_echo "$as_me: failed program was:" >&5 2056sed 's/^/| /' conftest.$ac_ext >&5 2057 2058 ac_retval=1 2059fi 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2061 as_fn_set_status $ac_retval 2062 2063} # ac_fn_cxx_try_compile 2064 2065# ac_fn_cxx_try_cpp LINENO 2066# ------------------------ 2067# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2068ac_fn_cxx_try_cpp () 2069{ 2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2071 if { { ac_try="$ac_cpp conftest.$ac_ext" 2072case "(($ac_try" in 2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2074 *) ac_try_echo=$ac_try;; 2075esac 2076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2077$as_echo "$ac_try_echo"; } >&5 2078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2079 ac_status=$? 2080 if test -s conftest.err; then 2081 grep -v '^ *+' conftest.err >conftest.er1 2082 cat conftest.er1 >&5 2083 mv -f conftest.er1 conftest.err 2084 fi 2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2086 test $ac_status = 0; } > conftest.i && { 2087 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2088 test ! -s conftest.err 2089 }; then : 2090 ac_retval=0 2091else 2092 $as_echo "$as_me: failed program was:" >&5 2093sed 's/^/| /' conftest.$ac_ext >&5 2094 2095 ac_retval=1 2096fi 2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2098 as_fn_set_status $ac_retval 2099 2100} # ac_fn_cxx_try_cpp 2101 2102# ac_fn_cxx_try_link LINENO 2103# ------------------------- 2104# Try to link conftest.$ac_ext, and return whether this succeeded. 2105ac_fn_cxx_try_link () 2106{ 2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2108 rm -f conftest.$ac_objext conftest$ac_exeext 2109 if { { ac_try="$ac_link" 2110case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115$as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_link") 2>conftest.err 2117 ac_status=$? 2118 if test -s conftest.err; then 2119 grep -v '^ *+' conftest.err >conftest.er1 2120 cat conftest.er1 >&5 2121 mv -f conftest.er1 conftest.err 2122 fi 2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2124 test $ac_status = 0; } && { 2125 test -z "$ac_cxx_werror_flag" || 2126 test ! -s conftest.err 2127 } && test -s conftest$ac_exeext && { 2128 test "$cross_compiling" = yes || 2129 test -x conftest$ac_exeext 2130 }; then : 2131 ac_retval=0 2132else 2133 $as_echo "$as_me: failed program was:" >&5 2134sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 ac_retval=1 2137fi 2138 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2139 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2140 # interfere with the next link command; also delete a directory that is 2141 # left behind by Apple's compiler. We do this before executing the actions. 2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2144 as_fn_set_status $ac_retval 2145 2146} # ac_fn_cxx_try_link 2147 2148# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2149# -------------------------------------------- 2150# Tries to find the compile-time value of EXPR in a program that includes 2151# INCLUDES, setting VAR accordingly. Returns whether the value could be 2152# computed 2153ac_fn_c_compute_int () 2154{ 2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2156 if test "$cross_compiling" = yes; then 2157 # Depending upon the size, compute the lo and hi bounds. 2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161int 2162main () 2163{ 2164static int test_array [1 - 2 * !(($2) >= 0)]; 2165test_array [0] = 0; 2166return test_array [0]; 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_lo=0 ac_mid=0 2174 while :; do 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2182test_array [0] = 0; 2183return test_array [0]; 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 ac_hi=$ac_mid; break 2191else 2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2193 if test $ac_lo -le $ac_mid; then 2194 ac_lo= ac_hi= 2195 break 2196 fi 2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200 done 2201else 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) < 0)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_hi=-1 ac_mid=-1 2218 while :; do 2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2220/* end confdefs.h. */ 2221$4 2222int 2223main () 2224{ 2225static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2226test_array [0] = 0; 2227return test_array [0]; 2228 2229 ; 2230 return 0; 2231} 2232_ACEOF 2233if ac_fn_c_try_compile "$LINENO"; then : 2234 ac_lo=$ac_mid; break 2235else 2236 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2237 if test $ac_mid -le $ac_hi; then 2238 ac_lo= ac_hi= 2239 break 2240 fi 2241 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2242fi 2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2244 done 2245else 2246 ac_lo= ac_hi= 2247fi 2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2249fi 2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2251# Binary search between lo and hi bounds. 2252while test "x$ac_lo" != "x$ac_hi"; do 2253 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2255/* end confdefs.h. */ 2256$4 2257int 2258main () 2259{ 2260static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2261test_array [0] = 0; 2262return test_array [0]; 2263 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_c_try_compile "$LINENO"; then : 2269 ac_hi=$ac_mid 2270else 2271 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2274done 2275case $ac_lo in #(( 2276?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2277'') ac_retval=1 ;; 2278esac 2279 else 2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2281/* end confdefs.h. */ 2282$4 2283static long int longval () { return $2; } 2284static unsigned long int ulongval () { return $2; } 2285#include <stdio.h> 2286#include <stdlib.h> 2287int 2288main () 2289{ 2290 2291 FILE *f = fopen ("conftest.val", "w"); 2292 if (! f) 2293 return 1; 2294 if (($2) < 0) 2295 { 2296 long int i = longval (); 2297 if (i != ($2)) 2298 return 1; 2299 fprintf (f, "%ld", i); 2300 } 2301 else 2302 { 2303 unsigned long int i = ulongval (); 2304 if (i != ($2)) 2305 return 1; 2306 fprintf (f, "%lu", i); 2307 } 2308 /* Do not output a trailing newline, as this causes \r\n confusion 2309 on some platforms. */ 2310 return ferror (f) || fclose (f) != 0; 2311 2312 ; 2313 return 0; 2314} 2315_ACEOF 2316if ac_fn_c_try_run "$LINENO"; then : 2317 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2318else 2319 ac_retval=1 2320fi 2321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2322 conftest.$ac_objext conftest.beam conftest.$ac_ext 2323rm -f conftest.val 2324 2325 fi 2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2327 as_fn_set_status $ac_retval 2328 2329} # ac_fn_c_compute_int 2330 2331# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2332# ------------------------------------------- 2333# Tests whether TYPE exists after having included INCLUDES, setting cache 2334# variable VAR accordingly. 2335ac_fn_c_check_type () 2336{ 2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2339$as_echo_n "checking for $2... " >&6; } 2340if eval \${$3+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 eval "$3=no" 2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2345/* end confdefs.h. */ 2346$4 2347int 2348main () 2349{ 2350if (sizeof ($2)) 2351 return 0; 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_c_try_compile "$LINENO"; then : 2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2358/* end confdefs.h. */ 2359$4 2360int 2361main () 2362{ 2363if (sizeof (($2))) 2364 return 0; 2365 ; 2366 return 0; 2367} 2368_ACEOF 2369if ac_fn_c_try_compile "$LINENO"; then : 2370 2371else 2372 eval "$3=yes" 2373fi 2374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2375fi 2376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2377fi 2378eval ac_res=\$$3 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2380$as_echo "$ac_res" >&6; } 2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2382 2383} # ac_fn_c_check_type 2384cat >config.log <<_ACEOF 2385This file contains any messages produced by compilers while 2386running configure, to aid debugging if configure makes a mistake. 2387 2388It was created by flac $as_me 1.3.2, which was 2389generated by GNU Autoconf 2.69. Invocation command line was 2390 2391 $ $0 $@ 2392 2393_ACEOF 2394exec 5>>config.log 2395{ 2396cat <<_ASUNAME 2397## --------- ## 2398## Platform. ## 2399## --------- ## 2400 2401hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2402uname -m = `(uname -m) 2>/dev/null || echo unknown` 2403uname -r = `(uname -r) 2>/dev/null || echo unknown` 2404uname -s = `(uname -s) 2>/dev/null || echo unknown` 2405uname -v = `(uname -v) 2>/dev/null || echo unknown` 2406 2407/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2408/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2409 2410/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2411/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2412/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2413/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2414/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2415/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2416/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2417 2418_ASUNAME 2419 2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2421for as_dir in $PATH 2422do 2423 IFS=$as_save_IFS 2424 test -z "$as_dir" && as_dir=. 2425 $as_echo "PATH: $as_dir" 2426 done 2427IFS=$as_save_IFS 2428 2429} >&5 2430 2431cat >&5 <<_ACEOF 2432 2433 2434## ----------- ## 2435## Core tests. ## 2436## ----------- ## 2437 2438_ACEOF 2439 2440 2441# Keep a trace of the command line. 2442# Strip out --no-create and --no-recursion so they do not pile up. 2443# Strip out --silent because we don't want to record it for future runs. 2444# Also quote any args containing shell meta-characters. 2445# Make two passes to allow for proper duplicate-argument suppression. 2446ac_configure_args= 2447ac_configure_args0= 2448ac_configure_args1= 2449ac_must_keep_next=false 2450for ac_pass in 1 2 2451do 2452 for ac_arg 2453 do 2454 case $ac_arg in 2455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2457 | -silent | --silent | --silen | --sile | --sil) 2458 continue ;; 2459 *\'*) 2460 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2461 esac 2462 case $ac_pass in 2463 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2464 2) 2465 as_fn_append ac_configure_args1 " '$ac_arg'" 2466 if test $ac_must_keep_next = true; then 2467 ac_must_keep_next=false # Got value, back to normal. 2468 else 2469 case $ac_arg in 2470 *=* | --config-cache | -C | -disable-* | --disable-* \ 2471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2473 | -with-* | --with-* | -without-* | --without-* | --x) 2474 case "$ac_configure_args0 " in 2475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2476 esac 2477 ;; 2478 -* ) ac_must_keep_next=true ;; 2479 esac 2480 fi 2481 as_fn_append ac_configure_args " '$ac_arg'" 2482 ;; 2483 esac 2484 done 2485done 2486{ ac_configure_args0=; unset ac_configure_args0;} 2487{ ac_configure_args1=; unset ac_configure_args1;} 2488 2489# When interrupted or exit'd, cleanup temporary files, and complete 2490# config.log. We remove comments because anyway the quotes in there 2491# would cause problems or look ugly. 2492# WARNING: Use '\'' to represent an apostrophe within the trap. 2493# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2494trap 'exit_status=$? 2495 # Save into config.log some information that might help in debugging. 2496 { 2497 echo 2498 2499 $as_echo "## ---------------- ## 2500## Cache variables. ## 2501## ---------------- ##" 2502 echo 2503 # The following way of writing the cache mishandles newlines in values, 2504( 2505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2506 eval ac_val=\$$ac_var 2507 case $ac_val in #( 2508 *${as_nl}*) 2509 case $ac_var in #( 2510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2512 esac 2513 case $ac_var in #( 2514 _ | IFS | as_nl) ;; #( 2515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2516 *) { eval $ac_var=; unset $ac_var;} ;; 2517 esac ;; 2518 esac 2519 done 2520 (set) 2>&1 | 2521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2522 *${as_nl}ac_space=\ *) 2523 sed -n \ 2524 "s/'\''/'\''\\\\'\'''\''/g; 2525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2526 ;; #( 2527 *) 2528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2529 ;; 2530 esac | 2531 sort 2532) 2533 echo 2534 2535 $as_echo "## ----------------- ## 2536## Output variables. ## 2537## ----------------- ##" 2538 echo 2539 for ac_var in $ac_subst_vars 2540 do 2541 eval ac_val=\$$ac_var 2542 case $ac_val in 2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2544 esac 2545 $as_echo "$ac_var='\''$ac_val'\''" 2546 done | sort 2547 echo 2548 2549 if test -n "$ac_subst_files"; then 2550 $as_echo "## ------------------- ## 2551## File substitutions. ## 2552## ------------------- ##" 2553 echo 2554 for ac_var in $ac_subst_files 2555 do 2556 eval ac_val=\$$ac_var 2557 case $ac_val in 2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2559 esac 2560 $as_echo "$ac_var='\''$ac_val'\''" 2561 done | sort 2562 echo 2563 fi 2564 2565 if test -s confdefs.h; then 2566 $as_echo "## ----------- ## 2567## confdefs.h. ## 2568## ----------- ##" 2569 echo 2570 cat confdefs.h 2571 echo 2572 fi 2573 test "$ac_signal" != 0 && 2574 $as_echo "$as_me: caught signal $ac_signal" 2575 $as_echo "$as_me: exit $exit_status" 2576 } >&5 2577 rm -f core *.core core.conftest.* && 2578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2579 exit $exit_status 2580' 0 2581for ac_signal in 1 2 13 15; do 2582 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2583done 2584ac_signal=0 2585 2586# confdefs.h avoids OS command line length limits that DEFS can exceed. 2587rm -f -r conftest* confdefs.h 2588 2589$as_echo "/* confdefs.h */" > confdefs.h 2590 2591# Predefined preprocessor variables. 2592 2593cat >>confdefs.h <<_ACEOF 2594#define PACKAGE_NAME "$PACKAGE_NAME" 2595_ACEOF 2596 2597cat >>confdefs.h <<_ACEOF 2598#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2599_ACEOF 2600 2601cat >>confdefs.h <<_ACEOF 2602#define PACKAGE_VERSION "$PACKAGE_VERSION" 2603_ACEOF 2604 2605cat >>confdefs.h <<_ACEOF 2606#define PACKAGE_STRING "$PACKAGE_STRING" 2607_ACEOF 2608 2609cat >>confdefs.h <<_ACEOF 2610#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2611_ACEOF 2612 2613cat >>confdefs.h <<_ACEOF 2614#define PACKAGE_URL "$PACKAGE_URL" 2615_ACEOF 2616 2617 2618# Let the site file select an alternate cache file if it wants to. 2619# Prefer an explicitly selected file to automatically selected ones. 2620ac_site_file1=NONE 2621ac_site_file2=NONE 2622if test -n "$CONFIG_SITE"; then 2623 # We do not want a PATH search for config.site. 2624 case $CONFIG_SITE in #(( 2625 -*) ac_site_file1=./$CONFIG_SITE;; 2626 */*) ac_site_file1=$CONFIG_SITE;; 2627 *) ac_site_file1=./$CONFIG_SITE;; 2628 esac 2629elif test "x$prefix" != xNONE; then 2630 ac_site_file1=$prefix/share/config.site 2631 ac_site_file2=$prefix/etc/config.site 2632else 2633 ac_site_file1=$ac_default_prefix/share/config.site 2634 ac_site_file2=$ac_default_prefix/etc/config.site 2635fi 2636for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2637do 2638 test "x$ac_site_file" = xNONE && continue 2639 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2641$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2642 sed 's/^/| /' "$ac_site_file" >&5 2643 . "$ac_site_file" \ 2644 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2646as_fn_error $? "failed to load site script $ac_site_file 2647See \`config.log' for more details" "$LINENO" 5; } 2648 fi 2649done 2650 2651if test -r "$cache_file"; then 2652 # Some versions of bash will fail to source /dev/null (special files 2653 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2654 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2656$as_echo "$as_me: loading cache $cache_file" >&6;} 2657 case $cache_file in 2658 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2659 *) . "./$cache_file";; 2660 esac 2661 fi 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2664$as_echo "$as_me: creating cache $cache_file" >&6;} 2665 >$cache_file 2666fi 2667 2668# Check that the precious variables saved in the cache have kept the same 2669# value. 2670ac_cache_corrupted=false 2671for ac_var in $ac_precious_vars; do 2672 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2673 eval ac_new_set=\$ac_env_${ac_var}_set 2674 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2675 eval ac_new_val=\$ac_env_${ac_var}_value 2676 case $ac_old_set,$ac_new_set in 2677 set,) 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2679$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2680 ac_cache_corrupted=: ;; 2681 ,set) 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2683$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2684 ac_cache_corrupted=: ;; 2685 ,);; 2686 *) 2687 if test "x$ac_old_val" != "x$ac_new_val"; then 2688 # differences in whitespace do not lead to failure. 2689 ac_old_val_w=`echo x $ac_old_val` 2690 ac_new_val_w=`echo x $ac_new_val` 2691 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2693$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2694 ac_cache_corrupted=: 2695 else 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2697$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2698 eval $ac_var=\$ac_old_val 2699 fi 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2701$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2703$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2704 fi;; 2705 esac 2706 # Pass precious variables to config.status. 2707 if test "$ac_new_set" = set; then 2708 case $ac_new_val in 2709 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2710 *) ac_arg=$ac_var=$ac_new_val ;; 2711 esac 2712 case " $ac_configure_args " in 2713 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2714 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2715 esac 2716 fi 2717done 2718if $ac_cache_corrupted; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2722$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2723 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2724fi 2725## -------------------- ## 2726## Main body of script. ## 2727## -------------------- ## 2728 2729ac_ext=c 2730ac_cpp='$CPP $CPPFLAGS' 2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2733ac_compiler_gnu=$ac_cv_c_compiler_gnu 2734 2735 2736ac_config_headers="$ac_config_headers config.h" 2737 2738 2739 2740am__api_version='1.15' 2741 2742ac_aux_dir= 2743for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2744 if test -f "$ac_dir/install-sh"; then 2745 ac_aux_dir=$ac_dir 2746 ac_install_sh="$ac_aux_dir/install-sh -c" 2747 break 2748 elif test -f "$ac_dir/install.sh"; then 2749 ac_aux_dir=$ac_dir 2750 ac_install_sh="$ac_aux_dir/install.sh -c" 2751 break 2752 elif test -f "$ac_dir/shtool"; then 2753 ac_aux_dir=$ac_dir 2754 ac_install_sh="$ac_aux_dir/shtool install -c" 2755 break 2756 fi 2757done 2758if test -z "$ac_aux_dir"; then 2759 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2760fi 2761 2762# These three variables are undocumented and unsupported, 2763# and are intended to be withdrawn in a future Autoconf release. 2764# They can cause serious problems if a builder's source tree is in a directory 2765# whose full name contains unusual characters. 2766ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2767ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2768ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2769 2770 2771# Find a good install program. We prefer a C program (faster), 2772# so one script is as good as another. But avoid the broken or 2773# incompatible versions: 2774# SysV /etc/install, /usr/sbin/install 2775# SunOS /usr/etc/install 2776# IRIX /sbin/install 2777# AIX /bin/install 2778# AmigaOS /C/install, which installs bootblocks on floppy discs 2779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2780# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2782# OS/2's system install, which has a completely different semantic 2783# ./install, which can be erroneously created by make from ./install.sh. 2784# Reject install programs that cannot install multiple files. 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2786$as_echo_n "checking for a BSD-compatible install... " >&6; } 2787if test -z "$INSTALL"; then 2788if ${ac_cv_path_install+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 # Account for people who put trailing slashes in PATH elements. 2797case $as_dir/ in #(( 2798 ./ | .// | /[cC]/* | \ 2799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2800 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2801 /usr/ucb/* ) ;; 2802 *) 2803 # OSF1 and SCO ODT 3.0 have their own names for install. 2804 # Don't use installbsd from OSF since it installs stuff as root 2805 # by default. 2806 for ac_prog in ginstall scoinst install; do 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2809 if test $ac_prog = install && 2810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2811 # AIX install. It has an incompatible calling convention. 2812 : 2813 elif test $ac_prog = install && 2814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2815 # program-specific install script used by HP pwplus--don't use. 2816 : 2817 else 2818 rm -rf conftest.one conftest.two conftest.dir 2819 echo one > conftest.one 2820 echo two > conftest.two 2821 mkdir conftest.dir 2822 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2823 test -s conftest.one && test -s conftest.two && 2824 test -s conftest.dir/conftest.one && 2825 test -s conftest.dir/conftest.two 2826 then 2827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2828 break 3 2829 fi 2830 fi 2831 fi 2832 done 2833 done 2834 ;; 2835esac 2836 2837 done 2838IFS=$as_save_IFS 2839 2840rm -rf conftest.one conftest.two conftest.dir 2841 2842fi 2843 if test "${ac_cv_path_install+set}" = set; then 2844 INSTALL=$ac_cv_path_install 2845 else 2846 # As a last resort, use the slow shell script. Don't cache a 2847 # value for INSTALL within a source directory, because that will 2848 # break other packages using the cache if that directory is 2849 # removed, or if the value is a relative name. 2850 INSTALL=$ac_install_sh 2851 fi 2852fi 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2854$as_echo "$INSTALL" >&6; } 2855 2856# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2857# It thinks the first close brace ends the variable substitution. 2858test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2859 2860test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2861 2862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2863 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2865$as_echo_n "checking whether build environment is sane... " >&6; } 2866# Reject unsafe characters in $srcdir or the absolute working directory 2867# name. Accept space and tab only in the latter. 2868am_lf=' 2869' 2870case `pwd` in 2871 *[\\\"\#\$\&\'\`$am_lf]*) 2872 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2873esac 2874case $srcdir in 2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2876 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2877esac 2878 2879# Do 'set' in a subshell so we don't clobber the current shell's 2880# arguments. Must try -L first in case configure is actually a 2881# symlink; some systems play weird games with the mod time of symlinks 2882# (eg FreeBSD returns the mod time of the symlink's containing 2883# directory). 2884if ( 2885 am_has_slept=no 2886 for am_try in 1 2; do 2887 echo "timestamp, slept: $am_has_slept" > conftest.file 2888 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2889 if test "$*" = "X"; then 2890 # -L didn't work. 2891 set X `ls -t "$srcdir/configure" conftest.file` 2892 fi 2893 if test "$*" != "X $srcdir/configure conftest.file" \ 2894 && test "$*" != "X conftest.file $srcdir/configure"; then 2895 2896 # If neither matched, then we have a broken ls. This can happen 2897 # if, for instance, CONFIG_SHELL is bash and it inherits a 2898 # broken ls alias from the environment. This has actually 2899 # happened. Such a system could not be considered "sane". 2900 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2901 alias in your environment" "$LINENO" 5 2902 fi 2903 if test "$2" = conftest.file || test $am_try -eq 2; then 2904 break 2905 fi 2906 # Just in case. 2907 sleep 1 2908 am_has_slept=yes 2909 done 2910 test "$2" = conftest.file 2911 ) 2912then 2913 # Ok. 2914 : 2915else 2916 as_fn_error $? "newly created file is older than distributed files! 2917Check your system clock" "$LINENO" 5 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2920$as_echo "yes" >&6; } 2921# If we didn't sleep, we still need to ensure time stamps of config.status and 2922# generated files are strictly newer. 2923am_sleep_pid= 2924if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2925 ( sleep 1 ) & 2926 am_sleep_pid=$! 2927fi 2928 2929rm -f conftest.file 2930 2931test "$program_prefix" != NONE && 2932 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2933# Use a double $ so make ignores it. 2934test "$program_suffix" != NONE && 2935 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2936# Double any \ or $. 2937# By default was `s,x,x', remove it if useless. 2938ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2939program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2940 2941# Expand $ac_aux_dir to an absolute path. 2942am_aux_dir=`cd "$ac_aux_dir" && pwd` 2943 2944if test x"${MISSING+set}" != xset; then 2945 case $am_aux_dir in 2946 *\ * | *\ *) 2947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2948 *) 2949 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2950 esac 2951fi 2952# Use eval to expand $SHELL 2953if eval "$MISSING --is-lightweight"; then 2954 am_missing_run="$MISSING " 2955else 2956 am_missing_run= 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2958$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2959fi 2960 2961if test x"${install_sh+set}" != xset; then 2962 case $am_aux_dir in 2963 *\ * | *\ *) 2964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2965 *) 2966 install_sh="\${SHELL} $am_aux_dir/install-sh" 2967 esac 2968fi 2969 2970# Installed binaries are usually stripped using 'strip' when the user 2971# run "make install-strip". However 'strip' might not be the right 2972# tool to use in cross-compilation environments, therefore Automake 2973# will honor the 'STRIP' environment variable to overrule this program. 2974if test "$cross_compiling" != no; then 2975 if test -n "$ac_tool_prefix"; then 2976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2977set dummy ${ac_tool_prefix}strip; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_STRIP+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$STRIP"; then 2984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2985else 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2993 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002fi 3003STRIP=$ac_cv_prog_STRIP 3004if test -n "$STRIP"; then 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3006$as_echo "$STRIP" >&6; } 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010fi 3011 3012 3013fi 3014if test -z "$ac_cv_prog_STRIP"; then 3015 ac_ct_STRIP=$STRIP 3016 # Extract the first word of "strip", so it can be a program name with args. 3017set dummy strip; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$ac_ct_STRIP"; then 3024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_ac_ct_STRIP="strip" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3044if test -n "$ac_ct_STRIP"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3046$as_echo "$ac_ct_STRIP" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 if test "x$ac_ct_STRIP" = x; then 3053 STRIP=":" 3054 else 3055 case $cross_compiling:$ac_tool_warned in 3056yes:) 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3059ac_tool_warned=yes ;; 3060esac 3061 STRIP=$ac_ct_STRIP 3062 fi 3063else 3064 STRIP="$ac_cv_prog_STRIP" 3065fi 3066 3067fi 3068INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3069 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3071$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3072if test -z "$MKDIR_P"; then 3073 if ${ac_cv_path_mkdir+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_prog in mkdir gmkdir; do 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3085 'mkdir (GNU coreutils) '* | \ 3086 'mkdir (coreutils) '* | \ 3087 'mkdir (fileutils) '4.1*) 3088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3089 break 3;; 3090 esac 3091 done 3092 done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097 3098 test -d ./--version && rmdir ./--version 3099 if test "${ac_cv_path_mkdir+set}" = set; then 3100 MKDIR_P="$ac_cv_path_mkdir -p" 3101 else 3102 # As a last resort, use the slow shell script. Don't cache a 3103 # value for MKDIR_P within a source directory, because that will 3104 # break other packages using the cache if that directory is 3105 # removed, or if the value is a relative name. 3106 MKDIR_P="$ac_install_sh -d" 3107 fi 3108fi 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3110$as_echo "$MKDIR_P" >&6; } 3111 3112for ac_prog in gawk mawk nawk awk 3113do 3114 # Extract the first word of "$ac_prog", so it can be a program name with args. 3115set dummy $ac_prog; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if ${ac_cv_prog_AWK+:} false; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$AWK"; then 3122 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_AWK="$ac_prog" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141AWK=$ac_cv_prog_AWK 3142if test -n "$AWK"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3144$as_echo "$AWK" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 3151 test -n "$AWK" && break 3152done 3153 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3155$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3156set x ${MAKE-make} 3157ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3158if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 cat >conftest.make <<\_ACEOF 3162SHELL = /bin/sh 3163all: 3164 @echo '@@@%%%=$(MAKE)=@@@%%%' 3165_ACEOF 3166# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3167case `${MAKE-make} -f conftest.make 2>/dev/null` in 3168 *@@@%%%=?*=@@@%%%*) 3169 eval ac_cv_prog_make_${ac_make}_set=yes;; 3170 *) 3171 eval ac_cv_prog_make_${ac_make}_set=no;; 3172esac 3173rm -f conftest.make 3174fi 3175if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3177$as_echo "yes" >&6; } 3178 SET_MAKE= 3179else 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181$as_echo "no" >&6; } 3182 SET_MAKE="MAKE=${MAKE-make}" 3183fi 3184 3185rm -rf .tst 2>/dev/null 3186mkdir .tst 2>/dev/null 3187if test -d .tst; then 3188 am__leading_dot=. 3189else 3190 am__leading_dot=_ 3191fi 3192rmdir .tst 2>/dev/null 3193 3194# Check whether --enable-silent-rules was given. 3195if test "${enable_silent_rules+set}" = set; then : 3196 enableval=$enable_silent_rules; 3197fi 3198 3199case $enable_silent_rules in # ((( 3200 yes) AM_DEFAULT_VERBOSITY=0;; 3201 no) AM_DEFAULT_VERBOSITY=1;; 3202 *) AM_DEFAULT_VERBOSITY=1;; 3203esac 3204am_make=${MAKE-make} 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3206$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3207if ${am_cv_make_support_nested_variables+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if $as_echo 'TRUE=$(BAR$(V)) 3211BAR0=false 3212BAR1=true 3213V=1 3214am__doit: 3215 @$(TRUE) 3216.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3217 am_cv_make_support_nested_variables=yes 3218else 3219 am_cv_make_support_nested_variables=no 3220fi 3221fi 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3223$as_echo "$am_cv_make_support_nested_variables" >&6; } 3224if test $am_cv_make_support_nested_variables = yes; then 3225 AM_V='$(V)' 3226 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3227else 3228 AM_V=$AM_DEFAULT_VERBOSITY 3229 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3230fi 3231AM_BACKSLASH='\' 3232 3233if test "`cd $srcdir && pwd`" != "`pwd`"; then 3234 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3235 # is not polluted with repeated "-I." 3236 am__isrc=' -I$(srcdir)' 3237 # test to see if srcdir already configured 3238 if test -f $srcdir/config.status; then 3239 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3240 fi 3241fi 3242 3243# test whether we have cygpath 3244if test -z "$CYGPATH_W"; then 3245 if (cygpath --version) >/dev/null 2>/dev/null; then 3246 CYGPATH_W='cygpath -w' 3247 else 3248 CYGPATH_W=echo 3249 fi 3250fi 3251 3252 3253# Define the identity of the package. 3254 PACKAGE='flac' 3255 VERSION='1.3.2' 3256 3257 3258cat >>confdefs.h <<_ACEOF 3259#define PACKAGE "$PACKAGE" 3260_ACEOF 3261 3262 3263cat >>confdefs.h <<_ACEOF 3264#define VERSION "$VERSION" 3265_ACEOF 3266 3267# Some tools Automake needs. 3268 3269ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3270 3271 3272AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3273 3274 3275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3276 3277 3278AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3279 3280 3281MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3282 3283# For better backward compatibility. To be removed once Automake 1.9.x 3284# dies out for good. For more background, see: 3285# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3286# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3287mkdir_p='$(MKDIR_P)' 3288 3289# We need awk for the "check" target (and possibly the TAP driver). The 3290# system "awk" is bad on some platforms. 3291# Always define AMTAR for backward compatibility. Yes, it's still used 3292# in the wild :-( We should find a proper way to deprecate it ... 3293AMTAR='$${TAR-tar}' 3294 3295 3296# We'll loop over all known methods to create a tar archive until one works. 3297_am_tools='gnutar pax cpio none' 3298 3299 3300 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3302$as_echo_n "checking how to create a pax tar archive... " >&6; } 3303 3304 # Go ahead even if we have the value already cached. We do so because we 3305 # need to set the values for the 'am__tar' and 'am__untar' variables. 3306 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3307 3308 for _am_tool in $_am_tools; do 3309 case $_am_tool in 3310 gnutar) 3311 for _am_tar in tar gnutar gtar; do 3312 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3313 ($_am_tar --version) >&5 2>&5 3314 ac_status=$? 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316 (exit $ac_status); } && break 3317 done 3318 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3319 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3320 am__untar="$_am_tar -xf -" 3321 ;; 3322 plaintar) 3323 # Must skip GNU tar: if it does not support --format= it doesn't create 3324 # ustar tarball either. 3325 (tar --version) >/dev/null 2>&1 && continue 3326 am__tar='tar chf - "$$tardir"' 3327 am__tar_='tar chf - "$tardir"' 3328 am__untar='tar xf -' 3329 ;; 3330 pax) 3331 am__tar='pax -L -x pax -w "$$tardir"' 3332 am__tar_='pax -L -x pax -w "$tardir"' 3333 am__untar='pax -r' 3334 ;; 3335 cpio) 3336 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3337 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3338 am__untar='cpio -i -H pax -d' 3339 ;; 3340 none) 3341 am__tar=false 3342 am__tar_=false 3343 am__untar=false 3344 ;; 3345 esac 3346 3347 # If the value was cached, stop now. We just wanted to have am__tar 3348 # and am__untar set. 3349 test -n "${am_cv_prog_tar_pax}" && break 3350 3351 # tar/untar a dummy directory, and stop if the command works. 3352 rm -rf conftest.dir 3353 mkdir conftest.dir 3354 echo GrepMe > conftest.dir/file 3355 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3356 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3357 ac_status=$? 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } 3360 rm -rf conftest.dir 3361 if test -s conftest.tar; then 3362 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3363 ($am__untar <conftest.tar) >&5 2>&5 3364 ac_status=$? 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } 3367 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3368 (cat conftest.dir/file) >&5 2>&5 3369 ac_status=$? 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } 3372 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3373 fi 3374 done 3375 rm -rf conftest.dir 3376 3377 if ${am_cv_prog_tar_pax+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 am_cv_prog_tar_pax=$_am_tool 3381fi 3382 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3384$as_echo "$am_cv_prog_tar_pax" >&6; } 3385 3386 3387 3388 3389 3390 3391# POSIX will say in a future version that running "rm -f" with no argument 3392# is OK; and we want to be able to make that assumption in our Makefile 3393# recipes. So use an aggressive probe to check that the usage we want is 3394# actually supported "in the wild" to an acceptable degree. 3395# See automake bug#10828. 3396# To make any issue more visible, cause the running configure to be aborted 3397# by default if the 'rm' program in use doesn't match our expectations; the 3398# user can still override this though. 3399if rm -f && rm -fr && rm -rf; then : OK; else 3400 cat >&2 <<'END' 3401Oops! 3402 3403Your 'rm' program seems unable to run without file operands specified 3404on the command line, even when the '-f' option is present. This is contrary 3405to the behaviour of most rm programs out there, and not conforming with 3406the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3407 3408Please tell bug-automake@gnu.org about your system, including the value 3409of your $PATH and any error possibly output before this message. This 3410can help us improve future automake versions. 3411 3412END 3413 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3414 echo 'Configuration will proceed anyway, since you have set the' >&2 3415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3416 echo >&2 3417 else 3418 cat >&2 <<'END' 3419Aborting the configuration process, to ensure you take notice of the issue. 3420 3421You can download and install GNU coreutils to get an 'rm' implementation 3422that behaves properly: <http://www.gnu.org/software/coreutils/>. 3423 3424If you want to complete the configuration process using your problematic 3425'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3426to "yes", and re-run configure. 3427 3428END 3429 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3430 fi 3431fi 3432 3433# Check whether --enable-silent-rules was given. 3434if test "${enable_silent_rules+set}" = set; then : 3435 enableval=$enable_silent_rules; 3436fi 3437 3438case $enable_silent_rules in # ((( 3439 yes) AM_DEFAULT_VERBOSITY=0;; 3440 no) AM_DEFAULT_VERBOSITY=1;; 3441 *) AM_DEFAULT_VERBOSITY=0;; 3442esac 3443am_make=${MAKE-make} 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3445$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3446if ${am_cv_make_support_nested_variables+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 if $as_echo 'TRUE=$(BAR$(V)) 3450BAR0=false 3451BAR1=true 3452V=1 3453am__doit: 3454 @$(TRUE) 3455.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3456 am_cv_make_support_nested_variables=yes 3457else 3458 am_cv_make_support_nested_variables=no 3459fi 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3462$as_echo "$am_cv_make_support_nested_variables" >&6; } 3463if test $am_cv_make_support_nested_variables = yes; then 3464 AM_V='$(V)' 3465 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3466else 3467 AM_V=$AM_DEFAULT_VERBOSITY 3468 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3469fi 3470AM_BACKSLASH='\' 3471 3472 3473user_cflags=$CFLAGS 3474 3475#Prefer whatever the current ISO standard is. 3476DEPDIR="${am__leading_dot}deps" 3477 3478ac_config_commands="$ac_config_commands depfiles" 3479 3480 3481am_make=${MAKE-make} 3482cat > confinc << 'END' 3483am__doit: 3484 @echo this is the am__doit target 3485.PHONY: am__doit 3486END 3487# If we don't find an include directive, just comment out the code. 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3489$as_echo_n "checking for style of include used by $am_make... " >&6; } 3490am__include="#" 3491am__quote= 3492_am_result=none 3493# First try GNU make style include. 3494echo "include confinc" > confmf 3495# Ignore all kinds of additional output from 'make'. 3496case `$am_make -s -f confmf 2> /dev/null` in #( 3497*the\ am__doit\ target*) 3498 am__include=include 3499 am__quote= 3500 _am_result=GNU 3501 ;; 3502esac 3503# Now try BSD make style include. 3504if test "$am__include" = "#"; then 3505 echo '.include "confinc"' > confmf 3506 case `$am_make -s -f confmf 2> /dev/null` in #( 3507 *the\ am__doit\ target*) 3508 am__include=.include 3509 am__quote="\"" 3510 _am_result=BSD 3511 ;; 3512 esac 3513fi 3514 3515 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3517$as_echo "$_am_result" >&6; } 3518rm -f confinc confmf 3519 3520# Check whether --enable-dependency-tracking was given. 3521if test "${enable_dependency_tracking+set}" = set; then : 3522 enableval=$enable_dependency_tracking; 3523fi 3524 3525if test "x$enable_dependency_tracking" != xno; then 3526 am_depcomp="$ac_aux_dir/depcomp" 3527 AMDEPBACKSLASH='\' 3528 am__nodep='_no' 3529fi 3530 if test "x$enable_dependency_tracking" != xno; then 3531 AMDEP_TRUE= 3532 AMDEP_FALSE='#' 3533else 3534 AMDEP_TRUE='#' 3535 AMDEP_FALSE= 3536fi 3537 3538 3539ac_ext=c 3540ac_cpp='$CPP $CPPFLAGS' 3541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3543ac_compiler_gnu=$ac_cv_c_compiler_gnu 3544if test -n "$ac_tool_prefix"; then 3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3546set dummy ${ac_tool_prefix}gcc; ac_word=$2 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3548$as_echo_n "checking for $ac_word... " >&6; } 3549if ${ac_cv_prog_CC+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 if test -n "$CC"; then 3553 ac_cv_prog_CC="$CC" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 test -z "$as_dir" && as_dir=. 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3562 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566done 3567 done 3568IFS=$as_save_IFS 3569 3570fi 3571fi 3572CC=$ac_cv_prog_CC 3573if test -n "$CC"; then 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3575$as_echo "$CC" >&6; } 3576else 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3578$as_echo "no" >&6; } 3579fi 3580 3581 3582fi 3583if test -z "$ac_cv_prog_CC"; then 3584 ac_ct_CC=$CC 3585 # Extract the first word of "gcc", so it can be a program name with args. 3586set dummy gcc; ac_word=$2 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3588$as_echo_n "checking for $ac_word... " >&6; } 3589if ${ac_cv_prog_ac_ct_CC+:} false; then : 3590 $as_echo_n "(cached) " >&6 3591else 3592 if test -n "$ac_ct_CC"; then 3593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3594else 3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH 3597do 3598 IFS=$as_save_IFS 3599 test -z "$as_dir" && as_dir=. 3600 for ac_exec_ext in '' $ac_executable_extensions; do 3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3602 ac_cv_prog_ac_ct_CC="gcc" 3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3604 break 2 3605 fi 3606done 3607 done 3608IFS=$as_save_IFS 3609 3610fi 3611fi 3612ac_ct_CC=$ac_cv_prog_ac_ct_CC 3613if test -n "$ac_ct_CC"; then 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3615$as_echo "$ac_ct_CC" >&6; } 3616else 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3618$as_echo "no" >&6; } 3619fi 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 3632else 3633 CC="$ac_cv_prog_CC" 3634fi 3635 3636if test -z "$CC"; then 3637 if test -n "$ac_tool_prefix"; then 3638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3639set dummy ${ac_tool_prefix}cc; ac_word=$2 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3641$as_echo_n "checking for $ac_word... " >&6; } 3642if ${ac_cv_prog_CC+:} false; then : 3643 $as_echo_n "(cached) " >&6 3644else 3645 if test -n "$CC"; then 3646 ac_cv_prog_CC="$CC" # Let the user override the test. 3647else 3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3649for as_dir in $PATH 3650do 3651 IFS=$as_save_IFS 3652 test -z "$as_dir" && as_dir=. 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3655 ac_cv_prog_CC="${ac_tool_prefix}cc" 3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659done 3660 done 3661IFS=$as_save_IFS 3662 3663fi 3664fi 3665CC=$ac_cv_prog_CC 3666if test -n "$CC"; then 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3668$as_echo "$CC" >&6; } 3669else 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3671$as_echo "no" >&6; } 3672fi 3673 3674 3675 fi 3676fi 3677if test -z "$CC"; then 3678 # Extract the first word of "cc", so it can be a program name with args. 3679set dummy cc; ac_word=$2 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681$as_echo_n "checking for $ac_word... " >&6; } 3682if ${ac_cv_prog_CC+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 if test -n "$CC"; then 3686 ac_cv_prog_CC="$CC" # Let the user override the test. 3687else 3688 ac_prog_rejected=no 3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 test -z "$as_dir" && as_dir=. 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3697 ac_prog_rejected=yes 3698 continue 3699 fi 3700 ac_cv_prog_CC="cc" 3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3702 break 2 3703 fi 3704done 3705 done 3706IFS=$as_save_IFS 3707 3708if test $ac_prog_rejected = yes; then 3709 # We found a bogon in the path, so make sure we never use it. 3710 set dummy $ac_cv_prog_CC 3711 shift 3712 if test $# != 0; then 3713 # We chose a different compiler from the bogus one. 3714 # However, it has the same basename, so the bogon will be chosen 3715 # first if we set CC to just the basename; use the full file name. 3716 shift 3717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3718 fi 3719fi 3720fi 3721fi 3722CC=$ac_cv_prog_CC 3723if test -n "$CC"; then 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3725$as_echo "$CC" >&6; } 3726else 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728$as_echo "no" >&6; } 3729fi 3730 3731 3732fi 3733if test -z "$CC"; then 3734 if test -n "$ac_tool_prefix"; then 3735 for ac_prog in cl.exe 3736 do 3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3738set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3740$as_echo_n "checking for $ac_word... " >&6; } 3741if ${ac_cv_prog_CC+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 if test -n "$CC"; then 3745 ac_cv_prog_CC="$CC" # Let the user override the test. 3746else 3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3756 break 2 3757 fi 3758done 3759 done 3760IFS=$as_save_IFS 3761 3762fi 3763fi 3764CC=$ac_cv_prog_CC 3765if test -n "$CC"; then 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3767$as_echo "$CC" >&6; } 3768else 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770$as_echo "no" >&6; } 3771fi 3772 3773 3774 test -n "$CC" && break 3775 done 3776fi 3777if test -z "$CC"; then 3778 ac_ct_CC=$CC 3779 for ac_prog in cl.exe 3780do 3781 # Extract the first word of "$ac_prog", so it can be a program name with args. 3782set dummy $ac_prog; ac_word=$2 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3784$as_echo_n "checking for $ac_word... " >&6; } 3785if ${ac_cv_prog_ac_ct_CC+:} false; then : 3786 $as_echo_n "(cached) " >&6 3787else 3788 if test -n "$ac_ct_CC"; then 3789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3790else 3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792for as_dir in $PATH 3793do 3794 IFS=$as_save_IFS 3795 test -z "$as_dir" && as_dir=. 3796 for ac_exec_ext in '' $ac_executable_extensions; do 3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3798 ac_cv_prog_ac_ct_CC="$ac_prog" 3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3800 break 2 3801 fi 3802done 3803 done 3804IFS=$as_save_IFS 3805 3806fi 3807fi 3808ac_ct_CC=$ac_cv_prog_ac_ct_CC 3809if test -n "$ac_ct_CC"; then 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3811$as_echo "$ac_ct_CC" >&6; } 3812else 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3814$as_echo "no" >&6; } 3815fi 3816 3817 3818 test -n "$ac_ct_CC" && break 3819done 3820 3821 if test "x$ac_ct_CC" = x; then 3822 CC="" 3823 else 3824 case $cross_compiling:$ac_tool_warned in 3825yes:) 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3828ac_tool_warned=yes ;; 3829esac 3830 CC=$ac_ct_CC 3831 fi 3832fi 3833 3834fi 3835 3836 3837test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3839as_fn_error $? "no acceptable C compiler found in \$PATH 3840See \`config.log' for more details" "$LINENO" 5; } 3841 3842# Provide some information about the compiler. 3843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3844set X $ac_compile 3845ac_compiler=$2 3846for ac_option in --version -v -V -qversion; do 3847 { { ac_try="$ac_compiler $ac_option >&5" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853$as_echo "$ac_try_echo"; } >&5 3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3855 ac_status=$? 3856 if test -s conftest.err; then 3857 sed '10a\ 3858... rest of stderr output deleted ... 3859 10q' conftest.err >conftest.er1 3860 cat conftest.er1 >&5 3861 fi 3862 rm -f conftest.er1 conftest.err 3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; } 3865done 3866 3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878ac_clean_files_save=$ac_clean_files 3879ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3880# Try to create an executable without -o first, disregard a.out. 3881# It will help us diagnose broken compilers, and finding out an intuition 3882# of exeext. 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3884$as_echo_n "checking whether the C compiler works... " >&6; } 3885ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3886 3887# The possible output files: 3888ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3889 3890ac_rmfiles= 3891for ac_file in $ac_files 3892do 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3896 esac 3897done 3898rm -f $ac_rmfiles 3899 3900if { { ac_try="$ac_link_default" 3901case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906$as_echo "$ac_try_echo"; } >&5 3907 (eval "$ac_link_default") 2>&5 3908 ac_status=$? 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; }; then : 3911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3912# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3913# in a Makefile. We should not override ac_cv_exeext if it was cached, 3914# so that the user can short-circuit this test for compilers unknown to 3915# Autoconf. 3916for ac_file in $ac_files '' 3917do 3918 test -f "$ac_file" || continue 3919 case $ac_file in 3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3921 ;; 3922 [ab].out ) 3923 # We found the default executable, but exeext='' is most 3924 # certainly right. 3925 break;; 3926 *.* ) 3927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3928 then :; else 3929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3930 fi 3931 # We set ac_cv_exeext here because the later test for it is not 3932 # safe: cross compilers may not add the suffix if given an `-o' 3933 # argument, so we may need to know it at that point already. 3934 # Even if this section looks crufty: it has the advantage of 3935 # actually working. 3936 break;; 3937 * ) 3938 break;; 3939 esac 3940done 3941test "$ac_cv_exeext" = no && ac_cv_exeext= 3942 3943else 3944 ac_file='' 3945fi 3946if test -z "$ac_file"; then : 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3948$as_echo "no" >&6; } 3949$as_echo "$as_me: failed program was:" >&5 3950sed 's/^/| /' conftest.$ac_ext >&5 3951 3952{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3954as_fn_error 77 "C compiler cannot create executables 3955See \`config.log' for more details" "$LINENO" 5; } 3956else 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3958$as_echo "yes" >&6; } 3959fi 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3961$as_echo_n "checking for C compiler default output file name... " >&6; } 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3963$as_echo "$ac_file" >&6; } 3964ac_exeext=$ac_cv_exeext 3965 3966rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3967ac_clean_files=$ac_clean_files_save 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3969$as_echo_n "checking for suffix of executables... " >&6; } 3970if { { ac_try="$ac_link" 3971case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3976$as_echo "$ac_try_echo"; } >&5 3977 (eval "$ac_link") 2>&5 3978 ac_status=$? 3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3980 test $ac_status = 0; }; then : 3981 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3983# work properly (i.e., refer to `conftest.exe'), while it won't with 3984# `rm'. 3985for ac_file in conftest.exe conftest conftest.*; do 3986 test -f "$ac_file" || continue 3987 case $ac_file in 3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3990 break;; 3991 * ) break;; 3992 esac 3993done 3994else 3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3997as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3998See \`config.log' for more details" "$LINENO" 5; } 3999fi 4000rm -f conftest conftest$ac_cv_exeext 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4002$as_echo "$ac_cv_exeext" >&6; } 4003 4004rm -f conftest.$ac_ext 4005EXEEXT=$ac_cv_exeext 4006ac_exeext=$EXEEXT 4007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008/* end confdefs.h. */ 4009#include <stdio.h> 4010int 4011main () 4012{ 4013FILE *f = fopen ("conftest.out", "w"); 4014 return ferror (f) || fclose (f) != 0; 4015 4016 ; 4017 return 0; 4018} 4019_ACEOF 4020ac_clean_files="$ac_clean_files conftest.out" 4021# Check that the compiler produces executables we can run. If not, either 4022# the compiler is broken, or we cross compile. 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4024$as_echo_n "checking whether we are cross compiling... " >&6; } 4025if test "$cross_compiling" != yes; then 4026 { { ac_try="$ac_link" 4027case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030esac 4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032$as_echo "$ac_try_echo"; } >&5 4033 (eval "$ac_link") 2>&5 4034 ac_status=$? 4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4036 test $ac_status = 0; } 4037 if { ac_try='./conftest$ac_cv_exeext' 4038 { { case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4043$as_echo "$ac_try_echo"; } >&5 4044 (eval "$ac_try") 2>&5 4045 ac_status=$? 4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4047 test $ac_status = 0; }; }; then 4048 cross_compiling=no 4049 else 4050 if test "$cross_compiling" = maybe; then 4051 cross_compiling=yes 4052 else 4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4055as_fn_error $? "cannot run C compiled programs. 4056If you meant to cross compile, use \`--host'. 4057See \`config.log' for more details" "$LINENO" 5; } 4058 fi 4059 fi 4060fi 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4062$as_echo "$cross_compiling" >&6; } 4063 4064rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4065ac_clean_files=$ac_clean_files_save 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4067$as_echo_n "checking for suffix of object files... " >&6; } 4068if ${ac_cv_objext+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main () 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082rm -f conftest.o conftest.obj 4083if { { ac_try="$ac_compile" 4084case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089$as_echo "$ac_try_echo"; } >&5 4090 (eval "$ac_compile") 2>&5 4091 ac_status=$? 4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; }; then : 4094 for ac_file in conftest.o conftest.obj conftest.*; do 4095 test -f "$ac_file" || continue; 4096 case $ac_file in 4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4099 break;; 4100 esac 4101done 4102else 4103 $as_echo "$as_me: failed program was:" >&5 4104sed 's/^/| /' conftest.$ac_ext >&5 4105 4106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4108as_fn_error $? "cannot compute suffix of object files: cannot compile 4109See \`config.log' for more details" "$LINENO" 5; } 4110fi 4111rm -f conftest.$ac_cv_objext conftest.$ac_ext 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4114$as_echo "$ac_cv_objext" >&6; } 4115OBJEXT=$ac_cv_objext 4116ac_objext=$OBJEXT 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4119if ${ac_cv_c_compiler_gnu+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124 4125int 4126main () 4127{ 4128#ifndef __GNUC__ 4129 choke me 4130#endif 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136if ac_fn_c_try_compile "$LINENO"; then : 4137 ac_compiler_gnu=yes 4138else 4139 ac_compiler_gnu=no 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142ac_cv_c_compiler_gnu=$ac_compiler_gnu 4143 4144fi 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4146$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4147if test $ac_compiler_gnu = yes; then 4148 GCC=yes 4149else 4150 GCC= 4151fi 4152ac_test_CFLAGS=${CFLAGS+set} 4153ac_save_CFLAGS=$CFLAGS 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4155$as_echo_n "checking whether $CC accepts -g... " >&6; } 4156if ${ac_cv_prog_cc_g+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 ac_save_c_werror_flag=$ac_c_werror_flag 4160 ac_c_werror_flag=yes 4161 ac_cv_prog_cc_g=no 4162 CFLAGS="-g" 4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165 4166int 4167main () 4168{ 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174if ac_fn_c_try_compile "$LINENO"; then : 4175 ac_cv_prog_cc_g=yes 4176else 4177 CFLAGS="" 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180 4181int 4182main () 4183{ 4184 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189if ac_fn_c_try_compile "$LINENO"; then : 4190 4191else 4192 ac_c_werror_flag=$ac_save_c_werror_flag 4193 CFLAGS="-g" 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196 4197int 4198main () 4199{ 4200 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205if ac_fn_c_try_compile "$LINENO"; then : 4206 ac_cv_prog_cc_g=yes 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209fi 4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4211fi 4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4213 ac_c_werror_flag=$ac_save_c_werror_flag 4214fi 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4216$as_echo "$ac_cv_prog_cc_g" >&6; } 4217if test "$ac_test_CFLAGS" = set; then 4218 CFLAGS=$ac_save_CFLAGS 4219elif test $ac_cv_prog_cc_g = yes; then 4220 if test "$GCC" = yes; then 4221 CFLAGS="-g -O2" 4222 else 4223 CFLAGS="-g" 4224 fi 4225else 4226 if test "$GCC" = yes; then 4227 CFLAGS="-O2" 4228 else 4229 CFLAGS= 4230 fi 4231fi 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4234if ${ac_cv_prog_cc_c89+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 ac_cv_prog_cc_c89=no 4238ac_save_CC=$CC 4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241#include <stdarg.h> 4242#include <stdio.h> 4243struct stat; 4244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4245struct buf { int x; }; 4246FILE * (*rcsopen) (struct buf *, struct stat *, int); 4247static char *e (p, i) 4248 char **p; 4249 int i; 4250{ 4251 return p[i]; 4252} 4253static char *f (char * (*g) (char **, int), char **p, ...) 4254{ 4255 char *s; 4256 va_list v; 4257 va_start (v,p); 4258 s = g (p, va_arg (v,int)); 4259 va_end (v); 4260 return s; 4261} 4262 4263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4264 function prototypes and stuff, but not '\xHH' hex character constants. 4265 These don't provoke an error unfortunately, instead are silently treated 4266 as 'x'. The following induces an error, until -std is added to get 4267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4268 array size at least. It's necessary to write '\x00'==0 to get something 4269 that's true only with -std. */ 4270int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4271 4272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4273 inside strings and character constants. */ 4274#define FOO(x) 'x' 4275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4276 4277int test (int i, double x); 4278struct s1 {int (*f) (int a);}; 4279struct s2 {int (*f) (double a);}; 4280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4281int argc; 4282char **argv; 4283int 4284main () 4285{ 4286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4293do 4294 CC="$ac_save_CC $ac_arg" 4295 if ac_fn_c_try_compile "$LINENO"; then : 4296 ac_cv_prog_cc_c89=$ac_arg 4297fi 4298rm -f core conftest.err conftest.$ac_objext 4299 test "x$ac_cv_prog_cc_c89" != "xno" && break 4300done 4301rm -f conftest.$ac_ext 4302CC=$ac_save_CC 4303 4304fi 4305# AC_CACHE_VAL 4306case "x$ac_cv_prog_cc_c89" in 4307 x) 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4309$as_echo "none needed" >&6; } ;; 4310 xno) 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4312$as_echo "unsupported" >&6; } ;; 4313 *) 4314 CC="$CC $ac_cv_prog_cc_c89" 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4316$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4317esac 4318if test "x$ac_cv_prog_cc_c89" != xno; then : 4319 4320fi 4321 4322ac_ext=c 4323ac_cpp='$CPP $CPPFLAGS' 4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4326ac_compiler_gnu=$ac_cv_c_compiler_gnu 4327 4328ac_ext=c 4329ac_cpp='$CPP $CPPFLAGS' 4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4332ac_compiler_gnu=$ac_cv_c_compiler_gnu 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4334$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4335if ${am_cv_prog_cc_c_o+:} false; then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340 4341int 4342main () 4343{ 4344 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349 # Make sure it works both with $CC and with simple cc. 4350 # Following AC_PROG_CC_C_O, we do the test twice because some 4351 # compilers refuse to overwrite an existing .o file with -o, 4352 # though they will create one. 4353 am_cv_prog_cc_c_o=yes 4354 for am_i in 1 2; do 4355 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4356 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4357 ac_status=$? 4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4359 (exit $ac_status); } \ 4360 && test -f conftest2.$ac_objext; then 4361 : OK 4362 else 4363 am_cv_prog_cc_c_o=no 4364 break 4365 fi 4366 done 4367 rm -f core conftest* 4368 unset am_i 4369fi 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4371$as_echo "$am_cv_prog_cc_c_o" >&6; } 4372if test "$am_cv_prog_cc_c_o" != yes; then 4373 # Losing compiler, so override with the script. 4374 # FIXME: It is wrong to rewrite CC. 4375 # But if we don't then we get into trouble of one sort or another. 4376 # A longer-term fix would be to have automake use am__CC in this case, 4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4378 CC="$am_aux_dir/compile $CC" 4379fi 4380ac_ext=c 4381ac_cpp='$CPP $CPPFLAGS' 4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4384ac_compiler_gnu=$ac_cv_c_compiler_gnu 4385 4386 4387depcc="$CC" am_compiler_list= 4388 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4390$as_echo_n "checking dependency style of $depcc... " >&6; } 4391if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4395 # We make a subdir and do the tests there. Otherwise we can end up 4396 # making bogus files that we don't know about and never remove. For 4397 # instance it was reported that on HP-UX the gcc test will end up 4398 # making a dummy file named 'D' -- because '-MD' means "put the output 4399 # in D". 4400 rm -rf conftest.dir 4401 mkdir conftest.dir 4402 # Copy depcomp to subdir because otherwise we won't find it if we're 4403 # using a relative directory. 4404 cp "$am_depcomp" conftest.dir 4405 cd conftest.dir 4406 # We will build objects and dependencies in a subdirectory because 4407 # it helps to detect inapplicable dependency modes. For instance 4408 # both Tru64's cc and ICC support -MD to output dependencies as a 4409 # side effect of compilation, but ICC will put the dependencies in 4410 # the current directory while Tru64 will put them in the object 4411 # directory. 4412 mkdir sub 4413 4414 am_cv_CC_dependencies_compiler_type=none 4415 if test "$am_compiler_list" = ""; then 4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4417 fi 4418 am__universal=false 4419 case " $depcc " in #( 4420 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4421 esac 4422 4423 for depmode in $am_compiler_list; do 4424 # Setup a source with many dependencies, because some compilers 4425 # like to wrap large dependency lists on column 80 (with \), and 4426 # we should not choose a depcomp mode which is confused by this. 4427 # 4428 # We need to recreate these files for each test, as the compiler may 4429 # overwrite some of them when testing with obscure command lines. 4430 # This happens at least with the AIX C compiler. 4431 : > sub/conftest.c 4432 for i in 1 2 3 4 5 6; do 4433 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4435 # Solaris 10 /bin/sh. 4436 echo '/* dummy */' > sub/conftst$i.h 4437 done 4438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4439 4440 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4441 # mode. It turns out that the SunPro C++ compiler does not properly 4442 # handle '-M -o', and we need to detect this. Also, some Intel 4443 # versions had trouble with output in subdirs. 4444 am__obj=sub/conftest.${OBJEXT-o} 4445 am__minus_obj="-o $am__obj" 4446 case $depmode in 4447 gcc) 4448 # This depmode causes a compiler race in universal mode. 4449 test "$am__universal" = false || continue 4450 ;; 4451 nosideeffect) 4452 # After this tag, mechanisms are not by side-effect, so they'll 4453 # only be used when explicitly requested. 4454 if test "x$enable_dependency_tracking" = xyes; then 4455 continue 4456 else 4457 break 4458 fi 4459 ;; 4460 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4461 # This compiler won't grok '-c -o', but also, the minuso test has 4462 # not run yet. These depmodes are late enough in the game, and 4463 # so weak that their functioning should not be impacted. 4464 am__obj=conftest.${OBJEXT-o} 4465 am__minus_obj= 4466 ;; 4467 none) break ;; 4468 esac 4469 if depmode=$depmode \ 4470 source=sub/conftest.c object=$am__obj \ 4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4473 >/dev/null 2>conftest.err && 4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4478 # icc doesn't choke on unknown options, it will just issue warnings 4479 # or remarks (even with -Werror). So we grep stderr for any message 4480 # that says an option was ignored or not supported. 4481 # When given -MP, icc 7.0 and 7.1 complain thusly: 4482 # icc: Command line warning: ignoring option '-M'; no argument required 4483 # The diagnosis changed in icc 8.0: 4484 # icc: Command line remark: option '-MP' not supported 4485 if (grep 'ignoring option' conftest.err || 4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4487 am_cv_CC_dependencies_compiler_type=$depmode 4488 break 4489 fi 4490 fi 4491 done 4492 4493 cd .. 4494 rm -rf conftest.dir 4495else 4496 am_cv_CC_dependencies_compiler_type=none 4497fi 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4501$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4503 4504 if 4505 test "x$enable_dependency_tracking" != xno \ 4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4507 am__fastdepCC_TRUE= 4508 am__fastdepCC_FALSE='#' 4509else 4510 am__fastdepCC_TRUE='#' 4511 am__fastdepCC_FALSE= 4512fi 4513 4514 4515 case $ac_cv_prog_cc_stdc in #( 4516 no) : 4517 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4518 *) : 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4520$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4521if ${ac_cv_prog_cc_c99+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 ac_cv_prog_cc_c99=no 4525ac_save_CC=$CC 4526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528#include <stdarg.h> 4529#include <stdbool.h> 4530#include <stdlib.h> 4531#include <wchar.h> 4532#include <stdio.h> 4533 4534// Check varargs macros. These examples are taken from C99 6.10.3.5. 4535#define debug(...) fprintf (stderr, __VA_ARGS__) 4536#define showlist(...) puts (#__VA_ARGS__) 4537#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4538static void 4539test_varargs_macros (void) 4540{ 4541 int x = 1234; 4542 int y = 5678; 4543 debug ("Flag"); 4544 debug ("X = %d\n", x); 4545 showlist (The first, second, and third items.); 4546 report (x>y, "x is %d but y is %d", x, y); 4547} 4548 4549// Check long long types. 4550#define BIG64 18446744073709551615ull 4551#define BIG32 4294967295ul 4552#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4553#if !BIG_OK 4554 your preprocessor is broken; 4555#endif 4556#if BIG_OK 4557#else 4558 your preprocessor is broken; 4559#endif 4560static long long int bignum = -9223372036854775807LL; 4561static unsigned long long int ubignum = BIG64; 4562 4563struct incomplete_array 4564{ 4565 int datasize; 4566 double data[]; 4567}; 4568 4569struct named_init { 4570 int number; 4571 const wchar_t *name; 4572 double average; 4573}; 4574 4575typedef const char *ccp; 4576 4577static inline int 4578test_restrict (ccp restrict text) 4579{ 4580 // See if C++-style comments work. 4581 // Iterate through items via the restricted pointer. 4582 // Also check for declarations in for loops. 4583 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4584 continue; 4585 return 0; 4586} 4587 4588// Check varargs and va_copy. 4589static void 4590test_varargs (const char *format, ...) 4591{ 4592 va_list args; 4593 va_start (args, format); 4594 va_list args_copy; 4595 va_copy (args_copy, args); 4596 4597 const char *str; 4598 int number; 4599 float fnumber; 4600 4601 while (*format) 4602 { 4603 switch (*format++) 4604 { 4605 case 's': // string 4606 str = va_arg (args_copy, const char *); 4607 break; 4608 case 'd': // int 4609 number = va_arg (args_copy, int); 4610 break; 4611 case 'f': // float 4612 fnumber = va_arg (args_copy, double); 4613 break; 4614 default: 4615 break; 4616 } 4617 } 4618 va_end (args_copy); 4619 va_end (args); 4620} 4621 4622int 4623main () 4624{ 4625 4626 // Check bool. 4627 _Bool success = false; 4628 4629 // Check restrict. 4630 if (test_restrict ("String literal") == 0) 4631 success = true; 4632 char *restrict newvar = "Another string"; 4633 4634 // Check varargs. 4635 test_varargs ("s, d' f .", "string", 65, 34.234); 4636 test_varargs_macros (); 4637 4638 // Check flexible array members. 4639 struct incomplete_array *ia = 4640 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4641 ia->datasize = 10; 4642 for (int i = 0; i < ia->datasize; ++i) 4643 ia->data[i] = i * 1.234; 4644 4645 // Check named initializers. 4646 struct named_init ni = { 4647 .number = 34, 4648 .name = L"Test wide string", 4649 .average = 543.34343, 4650 }; 4651 4652 ni.number = 58; 4653 4654 int dynamic_array[ni.number]; 4655 dynamic_array[ni.number - 1] = 543; 4656 4657 // work around unused variable warnings 4658 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4659 || dynamic_array[ni.number - 1] != 543); 4660 4661 ; 4662 return 0; 4663} 4664_ACEOF 4665for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4666do 4667 CC="$ac_save_CC $ac_arg" 4668 if ac_fn_c_try_compile "$LINENO"; then : 4669 ac_cv_prog_cc_c99=$ac_arg 4670fi 4671rm -f core conftest.err conftest.$ac_objext 4672 test "x$ac_cv_prog_cc_c99" != "xno" && break 4673done 4674rm -f conftest.$ac_ext 4675CC=$ac_save_CC 4676 4677fi 4678# AC_CACHE_VAL 4679case "x$ac_cv_prog_cc_c99" in 4680 x) 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4682$as_echo "none needed" >&6; } ;; 4683 xno) 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4685$as_echo "unsupported" >&6; } ;; 4686 *) 4687 CC="$CC $ac_cv_prog_cc_c99" 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4689$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4690esac 4691if test "x$ac_cv_prog_cc_c99" != xno; then : 4692 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4693else 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4695$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4696if ${ac_cv_prog_cc_c89+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 ac_cv_prog_cc_c89=no 4700ac_save_CC=$CC 4701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703#include <stdarg.h> 4704#include <stdio.h> 4705struct stat; 4706/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4707struct buf { int x; }; 4708FILE * (*rcsopen) (struct buf *, struct stat *, int); 4709static char *e (p, i) 4710 char **p; 4711 int i; 4712{ 4713 return p[i]; 4714} 4715static char *f (char * (*g) (char **, int), char **p, ...) 4716{ 4717 char *s; 4718 va_list v; 4719 va_start (v,p); 4720 s = g (p, va_arg (v,int)); 4721 va_end (v); 4722 return s; 4723} 4724 4725/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4726 function prototypes and stuff, but not '\xHH' hex character constants. 4727 These don't provoke an error unfortunately, instead are silently treated 4728 as 'x'. The following induces an error, until -std is added to get 4729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4730 array size at least. It's necessary to write '\x00'==0 to get something 4731 that's true only with -std. */ 4732int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4733 4734/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4735 inside strings and character constants. */ 4736#define FOO(x) 'x' 4737int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4738 4739int test (int i, double x); 4740struct s1 {int (*f) (int a);}; 4741struct s2 {int (*f) (double a);}; 4742int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4743int argc; 4744char **argv; 4745int 4746main () 4747{ 4748return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4755do 4756 CC="$ac_save_CC $ac_arg" 4757 if ac_fn_c_try_compile "$LINENO"; then : 4758 ac_cv_prog_cc_c89=$ac_arg 4759fi 4760rm -f core conftest.err conftest.$ac_objext 4761 test "x$ac_cv_prog_cc_c89" != "xno" && break 4762done 4763rm -f conftest.$ac_ext 4764CC=$ac_save_CC 4765 4766fi 4767# AC_CACHE_VAL 4768case "x$ac_cv_prog_cc_c89" in 4769 x) 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4771$as_echo "none needed" >&6; } ;; 4772 xno) 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4774$as_echo "unsupported" >&6; } ;; 4775 *) 4776 CC="$CC $ac_cv_prog_cc_c89" 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4778$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4779esac 4780if test "x$ac_cv_prog_cc_c89" != xno; then : 4781 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4782else 4783 ac_cv_prog_cc_stdc=no 4784fi 4785 4786fi 4787 ;; 4788esac 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4790$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4791 if ${ac_cv_prog_cc_stdc+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793fi 4794 4795 case $ac_cv_prog_cc_stdc in #( 4796 no) : 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4798$as_echo "unsupported" >&6; } ;; #( 4799 '') : 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4801$as_echo "none needed" >&6; } ;; #( 4802 *) : 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4804$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4805esac 4806 4807 4808ac_ext=c 4809ac_cpp='$CPP $CPPFLAGS' 4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4812ac_compiler_gnu=$ac_cv_c_compiler_gnu 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4814$as_echo_n "checking how to run the C preprocessor... " >&6; } 4815# On Suns, sometimes $CPP names a directory. 4816if test -n "$CPP" && test -d "$CPP"; then 4817 CPP= 4818fi 4819if test -z "$CPP"; then 4820 if ${ac_cv_prog_CPP+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 # Double quotes because CPP needs to be expanded 4824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4825 do 4826 ac_preproc_ok=false 4827for ac_c_preproc_warn_flag in '' yes 4828do 4829 # Use a header file that comes with gcc, so configuring glibc 4830 # with a fresh cross-compiler works. 4831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4832 # <limits.h> exists even on freestanding compilers. 4833 # On the NeXT, cc -E runs the code through the compiler's parser, 4834 # not just through cpp. "Syntax error" is here to catch this case. 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4836/* end confdefs.h. */ 4837#ifdef __STDC__ 4838# include <limits.h> 4839#else 4840# include <assert.h> 4841#endif 4842 Syntax error 4843_ACEOF 4844if ac_fn_c_try_cpp "$LINENO"; then : 4845 4846else 4847 # Broken: fails on valid input. 4848continue 4849fi 4850rm -f conftest.err conftest.i conftest.$ac_ext 4851 4852 # OK, works on sane cases. Now check whether nonexistent headers 4853 # can be detected and how. 4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855/* end confdefs.h. */ 4856#include <ac_nonexistent.h> 4857_ACEOF 4858if ac_fn_c_try_cpp "$LINENO"; then : 4859 # Broken: success on invalid input. 4860continue 4861else 4862 # Passes both tests. 4863ac_preproc_ok=: 4864break 4865fi 4866rm -f conftest.err conftest.i conftest.$ac_ext 4867 4868done 4869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4870rm -f conftest.i conftest.err conftest.$ac_ext 4871if $ac_preproc_ok; then : 4872 break 4873fi 4874 4875 done 4876 ac_cv_prog_CPP=$CPP 4877 4878fi 4879 CPP=$ac_cv_prog_CPP 4880else 4881 ac_cv_prog_CPP=$CPP 4882fi 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4884$as_echo "$CPP" >&6; } 4885ac_preproc_ok=false 4886for ac_c_preproc_warn_flag in '' yes 4887do 4888 # Use a header file that comes with gcc, so configuring glibc 4889 # with a fresh cross-compiler works. 4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4891 # <limits.h> exists even on freestanding compilers. 4892 # On the NeXT, cc -E runs the code through the compiler's parser, 4893 # not just through cpp. "Syntax error" is here to catch this case. 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4895/* end confdefs.h. */ 4896#ifdef __STDC__ 4897# include <limits.h> 4898#else 4899# include <assert.h> 4900#endif 4901 Syntax error 4902_ACEOF 4903if ac_fn_c_try_cpp "$LINENO"; then : 4904 4905else 4906 # Broken: fails on valid input. 4907continue 4908fi 4909rm -f conftest.err conftest.i conftest.$ac_ext 4910 4911 # OK, works on sane cases. Now check whether nonexistent headers 4912 # can be detected and how. 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915#include <ac_nonexistent.h> 4916_ACEOF 4917if ac_fn_c_try_cpp "$LINENO"; then : 4918 # Broken: success on invalid input. 4919continue 4920else 4921 # Passes both tests. 4922ac_preproc_ok=: 4923break 4924fi 4925rm -f conftest.err conftest.i conftest.$ac_ext 4926 4927done 4928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4929rm -f conftest.i conftest.err conftest.$ac_ext 4930if $ac_preproc_ok; then : 4931 4932else 4933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4935as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4936See \`config.log' for more details" "$LINENO" 5; } 4937fi 4938 4939ac_ext=c 4940ac_cpp='$CPP $CPPFLAGS' 4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4943ac_compiler_gnu=$ac_cv_c_compiler_gnu 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4947$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4948if ${ac_cv_path_GREP+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 if test -z "$GREP"; then 4952 ac_path_GREP_found=false 4953 # Loop through the user's path and test for each of PROGNAME-LIST 4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_prog in grep ggrep; do 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4962 as_fn_executable_p "$ac_path_GREP" || continue 4963# Check for GNU ac_path_GREP and select it if it is found. 4964 # Check for GNU $ac_path_GREP 4965case `"$ac_path_GREP" --version 2>&1` in 4966*GNU*) 4967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4968*) 4969 ac_count=0 4970 $as_echo_n 0123456789 >"conftest.in" 4971 while : 4972 do 4973 cat "conftest.in" "conftest.in" >"conftest.tmp" 4974 mv "conftest.tmp" "conftest.in" 4975 cp "conftest.in" "conftest.nl" 4976 $as_echo 'GREP' >> "conftest.nl" 4977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4979 as_fn_arith $ac_count + 1 && ac_count=$as_val 4980 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4981 # Best one so far, save it but keep looking for a better one 4982 ac_cv_path_GREP="$ac_path_GREP" 4983 ac_path_GREP_max=$ac_count 4984 fi 4985 # 10*(2^10) chars as input seems more than enough 4986 test $ac_count -gt 10 && break 4987 done 4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4989esac 4990 4991 $ac_path_GREP_found && break 3 4992 done 4993 done 4994 done 4995IFS=$as_save_IFS 4996 if test -z "$ac_cv_path_GREP"; then 4997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4998 fi 4999else 5000 ac_cv_path_GREP=$GREP 5001fi 5002 5003fi 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5005$as_echo "$ac_cv_path_GREP" >&6; } 5006 GREP="$ac_cv_path_GREP" 5007 5008 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5010$as_echo_n "checking for egrep... " >&6; } 5011if ${ac_cv_path_EGREP+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013else 5014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5015 then ac_cv_path_EGREP="$GREP -E" 5016 else 5017 if test -z "$EGREP"; then 5018 ac_path_EGREP_found=false 5019 # Loop through the user's path and test for each of PROGNAME-LIST 5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5022do 5023 IFS=$as_save_IFS 5024 test -z "$as_dir" && as_dir=. 5025 for ac_prog in egrep; do 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5028 as_fn_executable_p "$ac_path_EGREP" || continue 5029# Check for GNU ac_path_EGREP and select it if it is found. 5030 # Check for GNU $ac_path_EGREP 5031case `"$ac_path_EGREP" --version 2>&1` in 5032*GNU*) 5033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5034*) 5035 ac_count=0 5036 $as_echo_n 0123456789 >"conftest.in" 5037 while : 5038 do 5039 cat "conftest.in" "conftest.in" >"conftest.tmp" 5040 mv "conftest.tmp" "conftest.in" 5041 cp "conftest.in" "conftest.nl" 5042 $as_echo 'EGREP' >> "conftest.nl" 5043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5045 as_fn_arith $ac_count + 1 && ac_count=$as_val 5046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5047 # Best one so far, save it but keep looking for a better one 5048 ac_cv_path_EGREP="$ac_path_EGREP" 5049 ac_path_EGREP_max=$ac_count 5050 fi 5051 # 10*(2^10) chars as input seems more than enough 5052 test $ac_count -gt 10 && break 5053 done 5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5055esac 5056 5057 $ac_path_EGREP_found && break 3 5058 done 5059 done 5060 done 5061IFS=$as_save_IFS 5062 if test -z "$ac_cv_path_EGREP"; then 5063 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5064 fi 5065else 5066 ac_cv_path_EGREP=$EGREP 5067fi 5068 5069 fi 5070fi 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5072$as_echo "$ac_cv_path_EGREP" >&6; } 5073 EGREP="$ac_cv_path_EGREP" 5074 5075 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5077$as_echo_n "checking for ANSI C header files... " >&6; } 5078if ${ac_cv_header_stdc+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083#include <stdlib.h> 5084#include <stdarg.h> 5085#include <string.h> 5086#include <float.h> 5087 5088int 5089main () 5090{ 5091 5092 ; 5093 return 0; 5094} 5095_ACEOF 5096if ac_fn_c_try_compile "$LINENO"; then : 5097 ac_cv_header_stdc=yes 5098else 5099 ac_cv_header_stdc=no 5100fi 5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5102 5103if test $ac_cv_header_stdc = yes; then 5104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106/* end confdefs.h. */ 5107#include <string.h> 5108 5109_ACEOF 5110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5111 $EGREP "memchr" >/dev/null 2>&1; then : 5112 5113else 5114 ac_cv_header_stdc=no 5115fi 5116rm -f conftest* 5117 5118fi 5119 5120if test $ac_cv_header_stdc = yes; then 5121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124#include <stdlib.h> 5125 5126_ACEOF 5127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5128 $EGREP "free" >/dev/null 2>&1; then : 5129 5130else 5131 ac_cv_header_stdc=no 5132fi 5133rm -f conftest* 5134 5135fi 5136 5137if test $ac_cv_header_stdc = yes; then 5138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5139 if test "$cross_compiling" = yes; then : 5140 : 5141else 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144#include <ctype.h> 5145#include <stdlib.h> 5146#if ((' ' & 0x0FF) == 0x020) 5147# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5148# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5149#else 5150# define ISLOWER(c) \ 5151 (('a' <= (c) && (c) <= 'i') \ 5152 || ('j' <= (c) && (c) <= 'r') \ 5153 || ('s' <= (c) && (c) <= 'z')) 5154# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5155#endif 5156 5157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5158int 5159main () 5160{ 5161 int i; 5162 for (i = 0; i < 256; i++) 5163 if (XOR (islower (i), ISLOWER (i)) 5164 || toupper (i) != TOUPPER (i)) 5165 return 2; 5166 return 0; 5167} 5168_ACEOF 5169if ac_fn_c_try_run "$LINENO"; then : 5170 5171else 5172 ac_cv_header_stdc=no 5173fi 5174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5175 conftest.$ac_objext conftest.beam conftest.$ac_ext 5176fi 5177 5178fi 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5181$as_echo "$ac_cv_header_stdc" >&6; } 5182if test $ac_cv_header_stdc = yes; then 5183 5184$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5185 5186fi 5187 5188# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5190 inttypes.h stdint.h unistd.h 5191do : 5192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5194" 5195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5196 cat >>confdefs.h <<_ACEOF 5197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5198_ACEOF 5199 5200fi 5201 5202done 5203 5204 5205 5206 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5207if test "x$ac_cv_header_minix_config_h" = xyes; then : 5208 MINIX=yes 5209else 5210 MINIX= 5211fi 5212 5213 5214 if test "$MINIX" = yes; then 5215 5216$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5217 5218 5219$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5220 5221 5222$as_echo "#define _MINIX 1" >>confdefs.h 5223 5224 fi 5225 5226 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5228$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5229if ${ac_cv_safe_to_define___extensions__+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233/* end confdefs.h. */ 5234 5235# define __EXTENSIONS__ 1 5236 $ac_includes_default 5237int 5238main () 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_c_try_compile "$LINENO"; then : 5246 ac_cv_safe_to_define___extensions__=yes 5247else 5248 ac_cv_safe_to_define___extensions__=no 5249fi 5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5251fi 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5253$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5254 test $ac_cv_safe_to_define___extensions__ = yes && 5255 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5256 5257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5258 5259 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5260 5261 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5262 5263 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5264 5265 5266if test -n "$ac_tool_prefix"; then 5267 for ac_prog in ar lib "link -lib" 5268 do 5269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5272$as_echo_n "checking for $ac_word... " >&6; } 5273if ${ac_cv_prog_AR+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 if test -n "$AR"; then 5277 ac_cv_prog_AR="$AR" # Let the user override the test. 5278else 5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280for as_dir in $PATH 5281do 5282 IFS=$as_save_IFS 5283 test -z "$as_dir" && as_dir=. 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290done 5291 done 5292IFS=$as_save_IFS 5293 5294fi 5295fi 5296AR=$ac_cv_prog_AR 5297if test -n "$AR"; then 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5299$as_echo "$AR" >&6; } 5300else 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5302$as_echo "no" >&6; } 5303fi 5304 5305 5306 test -n "$AR" && break 5307 done 5308fi 5309if test -z "$AR"; then 5310 ac_ct_AR=$AR 5311 for ac_prog in ar lib "link -lib" 5312do 5313 # Extract the first word of "$ac_prog", so it can be a program name with args. 5314set dummy $ac_prog; ac_word=$2 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5316$as_echo_n "checking for $ac_word... " >&6; } 5317if ${ac_cv_prog_ac_ct_AR+:} false; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 if test -n "$ac_ct_AR"; then 5321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5322else 5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5324for as_dir in $PATH 5325do 5326 IFS=$as_save_IFS 5327 test -z "$as_dir" && as_dir=. 5328 for ac_exec_ext in '' $ac_executable_extensions; do 5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5330 ac_cv_prog_ac_ct_AR="$ac_prog" 5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5332 break 2 5333 fi 5334done 5335 done 5336IFS=$as_save_IFS 5337 5338fi 5339fi 5340ac_ct_AR=$ac_cv_prog_ac_ct_AR 5341if test -n "$ac_ct_AR"; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5343$as_echo "$ac_ct_AR" >&6; } 5344else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5346$as_echo "no" >&6; } 5347fi 5348 5349 5350 test -n "$ac_ct_AR" && break 5351done 5352 5353 if test "x$ac_ct_AR" = x; then 5354 AR="false" 5355 else 5356 case $cross_compiling:$ac_tool_warned in 5357yes:) 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5360ac_tool_warned=yes ;; 5361esac 5362 AR=$ac_ct_AR 5363 fi 5364fi 5365 5366: ${AR=ar} 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5369$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5370if ${am_cv_ar_interface+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 ac_ext=c 5374ac_cpp='$CPP $CPPFLAGS' 5375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5377ac_compiler_gnu=$ac_cv_c_compiler_gnu 5378 5379 am_cv_ar_interface=ar 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382int some_variable = 0; 5383_ACEOF 5384if ac_fn_c_try_compile "$LINENO"; then : 5385 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5387 (eval $am_ar_try) 2>&5 5388 ac_status=$? 5389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5390 test $ac_status = 0; } 5391 if test "$ac_status" -eq 0; then 5392 am_cv_ar_interface=ar 5393 else 5394 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5396 (eval $am_ar_try) 2>&5 5397 ac_status=$? 5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5399 test $ac_status = 0; } 5400 if test "$ac_status" -eq 0; then 5401 am_cv_ar_interface=lib 5402 else 5403 am_cv_ar_interface=unknown 5404 fi 5405 fi 5406 rm -f conftest.lib libconftest.a 5407 5408fi 5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5410 ac_ext=c 5411ac_cpp='$CPP $CPPFLAGS' 5412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5414ac_compiler_gnu=$ac_cv_c_compiler_gnu 5415 5416fi 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5418$as_echo "$am_cv_ar_interface" >&6; } 5419 5420case $am_cv_ar_interface in 5421ar) 5422 ;; 5423lib) 5424 # Microsoft lib, so override with the ar-lib wrapper script. 5425 # FIXME: It is wrong to rewrite AR. 5426 # But if we don't then we get into trouble of one sort or another. 5427 # A longer-term fix would be to have automake use am__AR in this case, 5428 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5429 # similar. 5430 AR="$am_aux_dir/ar-lib $AR" 5431 ;; 5432unknown) 5433 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5434 ;; 5435esac 5436 5437case `pwd` in 5438 *\ * | *\ *) 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5441esac 5442 5443 5444 5445macro_version='2.4.6' 5446macro_revision='2.4.6' 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460ltmain=$ac_aux_dir/ltmain.sh 5461 5462# Make sure we can run config.sub. 5463$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5464 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5467$as_echo_n "checking build system type... " >&6; } 5468if ${ac_cv_build+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 ac_build_alias=$build_alias 5472test "x$ac_build_alias" = x && 5473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5474test "x$ac_build_alias" = x && 5475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5476ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5478 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5481$as_echo "$ac_cv_build" >&6; } 5482case $ac_cv_build in 5483*-*-*) ;; 5484*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5485esac 5486build=$ac_cv_build 5487ac_save_IFS=$IFS; IFS='-' 5488set x $ac_cv_build 5489shift 5490build_cpu=$1 5491build_vendor=$2 5492shift; shift 5493# Remember, the first character of IFS is used to create $*, 5494# except with old shells: 5495build_os=$* 5496IFS=$ac_save_IFS 5497case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5498 5499 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5501$as_echo_n "checking host system type... " >&6; } 5502if ${ac_cv_host+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test "x$host_alias" = x; then 5506 ac_cv_host=$ac_cv_build 5507else 5508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5510fi 5511 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5514$as_echo "$ac_cv_host" >&6; } 5515case $ac_cv_host in 5516*-*-*) ;; 5517*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5518esac 5519host=$ac_cv_host 5520ac_save_IFS=$IFS; IFS='-' 5521set x $ac_cv_host 5522shift 5523host_cpu=$1 5524host_vendor=$2 5525shift; shift 5526# Remember, the first character of IFS is used to create $*, 5527# except with old shells: 5528host_os=$* 5529IFS=$ac_save_IFS 5530case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5531 5532 5533# Backslashify metacharacters that are still active within 5534# double-quoted strings. 5535sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5536 5537# Same as above, but do not quote variable references. 5538double_quote_subst='s/\(["`\\]\)/\\\1/g' 5539 5540# Sed substitution to delay expansion of an escaped shell variable in a 5541# double_quote_subst'ed string. 5542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5543 5544# Sed substitution to delay expansion of an escaped single quote. 5545delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5546 5547# Sed substitution to avoid accidental globbing in evaled expressions 5548no_glob_subst='s/\*/\\\*/g' 5549 5550ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5551ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5555$as_echo_n "checking how to print strings... " >&6; } 5556# Test print first, because it will be a builtin if present. 5557if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5558 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5559 ECHO='print -r --' 5560elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5561 ECHO='printf %s\n' 5562else 5563 # Use this function as a fallback that always works. 5564 func_fallback_echo () 5565 { 5566 eval 'cat <<_LTECHO_EOF 5567$1 5568_LTECHO_EOF' 5569 } 5570 ECHO='func_fallback_echo' 5571fi 5572 5573# func_echo_all arg... 5574# Invoke $ECHO with all args, space-separated. 5575func_echo_all () 5576{ 5577 $ECHO "" 5578} 5579 5580case $ECHO in 5581 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5582$as_echo "printf" >&6; } ;; 5583 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5584$as_echo "print -r" >&6; } ;; 5585 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5586$as_echo "cat" >&6; } ;; 5587esac 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5603$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5604if ${ac_cv_path_SED+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606else 5607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5608 for ac_i in 1 2 3 4 5 6 7; do 5609 ac_script="$ac_script$as_nl$ac_script" 5610 done 5611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5612 { ac_script=; unset ac_script;} 5613 if test -z "$SED"; then 5614 ac_path_SED_found=false 5615 # Loop through the user's path and test for each of PROGNAME-LIST 5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5617for as_dir in $PATH 5618do 5619 IFS=$as_save_IFS 5620 test -z "$as_dir" && as_dir=. 5621 for ac_prog in sed gsed; do 5622 for ac_exec_ext in '' $ac_executable_extensions; do 5623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5624 as_fn_executable_p "$ac_path_SED" || continue 5625# Check for GNU ac_path_SED and select it if it is found. 5626 # Check for GNU $ac_path_SED 5627case `"$ac_path_SED" --version 2>&1` in 5628*GNU*) 5629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5630*) 5631 ac_count=0 5632 $as_echo_n 0123456789 >"conftest.in" 5633 while : 5634 do 5635 cat "conftest.in" "conftest.in" >"conftest.tmp" 5636 mv "conftest.tmp" "conftest.in" 5637 cp "conftest.in" "conftest.nl" 5638 $as_echo '' >> "conftest.nl" 5639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5641 as_fn_arith $ac_count + 1 && ac_count=$as_val 5642 if test $ac_count -gt ${ac_path_SED_max-0}; then 5643 # Best one so far, save it but keep looking for a better one 5644 ac_cv_path_SED="$ac_path_SED" 5645 ac_path_SED_max=$ac_count 5646 fi 5647 # 10*(2^10) chars as input seems more than enough 5648 test $ac_count -gt 10 && break 5649 done 5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5651esac 5652 5653 $ac_path_SED_found && break 3 5654 done 5655 done 5656 done 5657IFS=$as_save_IFS 5658 if test -z "$ac_cv_path_SED"; then 5659 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5660 fi 5661else 5662 ac_cv_path_SED=$SED 5663fi 5664 5665fi 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5667$as_echo "$ac_cv_path_SED" >&6; } 5668 SED="$ac_cv_path_SED" 5669 rm -f conftest.sed 5670 5671test -z "$SED" && SED=sed 5672Xsed="$SED -e 1s/^X//" 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5685$as_echo_n "checking for fgrep... " >&6; } 5686if ${ac_cv_path_FGREP+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5690 then ac_cv_path_FGREP="$GREP -F" 5691 else 5692 if test -z "$FGREP"; then 5693 ac_path_FGREP_found=false 5694 # Loop through the user's path and test for each of PROGNAME-LIST 5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5697do 5698 IFS=$as_save_IFS 5699 test -z "$as_dir" && as_dir=. 5700 for ac_prog in fgrep; do 5701 for ac_exec_ext in '' $ac_executable_extensions; do 5702 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5703 as_fn_executable_p "$ac_path_FGREP" || continue 5704# Check for GNU ac_path_FGREP and select it if it is found. 5705 # Check for GNU $ac_path_FGREP 5706case `"$ac_path_FGREP" --version 2>&1` in 5707*GNU*) 5708 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5709*) 5710 ac_count=0 5711 $as_echo_n 0123456789 >"conftest.in" 5712 while : 5713 do 5714 cat "conftest.in" "conftest.in" >"conftest.tmp" 5715 mv "conftest.tmp" "conftest.in" 5716 cp "conftest.in" "conftest.nl" 5717 $as_echo 'FGREP' >> "conftest.nl" 5718 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5720 as_fn_arith $ac_count + 1 && ac_count=$as_val 5721 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5722 # Best one so far, save it but keep looking for a better one 5723 ac_cv_path_FGREP="$ac_path_FGREP" 5724 ac_path_FGREP_max=$ac_count 5725 fi 5726 # 10*(2^10) chars as input seems more than enough 5727 test $ac_count -gt 10 && break 5728 done 5729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5730esac 5731 5732 $ac_path_FGREP_found && break 3 5733 done 5734 done 5735 done 5736IFS=$as_save_IFS 5737 if test -z "$ac_cv_path_FGREP"; then 5738 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5739 fi 5740else 5741 ac_cv_path_FGREP=$FGREP 5742fi 5743 5744 fi 5745fi 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5747$as_echo "$ac_cv_path_FGREP" >&6; } 5748 FGREP="$ac_cv_path_FGREP" 5749 5750 5751test -z "$GREP" && GREP=grep 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771# Check whether --with-gnu-ld was given. 5772if test "${with_gnu_ld+set}" = set; then : 5773 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5774else 5775 with_gnu_ld=no 5776fi 5777 5778ac_prog=ld 5779if test yes = "$GCC"; then 5780 # Check if gcc -print-prog-name=ld gives a path. 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5782$as_echo_n "checking for ld used by $CC... " >&6; } 5783 case $host in 5784 *-*-mingw*) 5785 # gcc leaves a trailing carriage return, which upsets mingw 5786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5787 *) 5788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5789 esac 5790 case $ac_prog in 5791 # Accept absolute paths. 5792 [\\/]* | ?:[\\/]*) 5793 re_direlt='/[^/][^/]*/\.\./' 5794 # Canonicalize the pathname of ld 5795 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5796 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5797 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5798 done 5799 test -z "$LD" && LD=$ac_prog 5800 ;; 5801 "") 5802 # If it fails, then pretend we aren't using GCC. 5803 ac_prog=ld 5804 ;; 5805 *) 5806 # If it is relative, then search for the first ld in PATH. 5807 with_gnu_ld=unknown 5808 ;; 5809 esac 5810elif test yes = "$with_gnu_ld"; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5812$as_echo_n "checking for GNU ld... " >&6; } 5813else 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5815$as_echo_n "checking for non-GNU ld... " >&6; } 5816fi 5817if ${lt_cv_path_LD+:} false; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 if test -z "$LD"; then 5821 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5822 for ac_dir in $PATH; do 5823 IFS=$lt_save_ifs 5824 test -z "$ac_dir" && ac_dir=. 5825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5826 lt_cv_path_LD=$ac_dir/$ac_prog 5827 # Check to see if the program is GNU ld. I'd rather use --version, 5828 # but apparently some variants of GNU ld only accept -v. 5829 # Break only if it was the GNU/non-GNU ld that we prefer. 5830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5831 *GNU* | *'with BFD'*) 5832 test no != "$with_gnu_ld" && break 5833 ;; 5834 *) 5835 test yes != "$with_gnu_ld" && break 5836 ;; 5837 esac 5838 fi 5839 done 5840 IFS=$lt_save_ifs 5841else 5842 lt_cv_path_LD=$LD # Let the user override the test with a path. 5843fi 5844fi 5845 5846LD=$lt_cv_path_LD 5847if test -n "$LD"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5849$as_echo "$LD" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5857if ${lt_cv_prog_gnu_ld+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5861case `$LD -v 2>&1 </dev/null` in 5862*GNU* | *'with BFD'*) 5863 lt_cv_prog_gnu_ld=yes 5864 ;; 5865*) 5866 lt_cv_prog_gnu_ld=no 5867 ;; 5868esac 5869fi 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5871$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5872with_gnu_ld=$lt_cv_prog_gnu_ld 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5884if ${lt_cv_path_NM+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 if test -n "$NM"; then 5888 # Let the user override the test. 5889 lt_cv_path_NM=$NM 5890else 5891 lt_nm_to_check=${ac_tool_prefix}nm 5892 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5893 lt_nm_to_check="$lt_nm_to_check nm" 5894 fi 5895 for lt_tmp_nm in $lt_nm_to_check; do 5896 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5897 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5898 IFS=$lt_save_ifs 5899 test -z "$ac_dir" && ac_dir=. 5900 tmp_nm=$ac_dir/$lt_tmp_nm 5901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5902 # Check to see if the nm accepts a BSD-compat flag. 5903 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5904 # nm: unknown option "B" ignored 5905 # Tru64's nm complains that /dev/null is an invalid object file 5906 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5907 case $build_os in 5908 mingw*) lt_bad_file=conftest.nm/nofile ;; 5909 *) lt_bad_file=/dev/null ;; 5910 esac 5911 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5912 *$lt_bad_file* | *'Invalid file or object type'*) 5913 lt_cv_path_NM="$tmp_nm -B" 5914 break 2 5915 ;; 5916 *) 5917 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5918 */dev/null*) 5919 lt_cv_path_NM="$tmp_nm -p" 5920 break 2 5921 ;; 5922 *) 5923 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5924 continue # so that we can try to find one that supports BSD flags 5925 ;; 5926 esac 5927 ;; 5928 esac 5929 fi 5930 done 5931 IFS=$lt_save_ifs 5932 done 5933 : ${lt_cv_path_NM=no} 5934fi 5935fi 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5937$as_echo "$lt_cv_path_NM" >&6; } 5938if test no != "$lt_cv_path_NM"; then 5939 NM=$lt_cv_path_NM 5940else 5941 # Didn't find any BSD compatible name lister, look for dumpbin. 5942 if test -n "$DUMPBIN"; then : 5943 # Let the user override the test. 5944 else 5945 if test -n "$ac_tool_prefix"; then 5946 for ac_prog in dumpbin "link -dump" 5947 do 5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5949set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951$as_echo_n "checking for $ac_word... " >&6; } 5952if ${ac_cv_prog_DUMPBIN+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 if test -n "$DUMPBIN"; then 5956 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5957else 5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959for as_dir in $PATH 5960do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969done 5970 done 5971IFS=$as_save_IFS 5972 5973fi 5974fi 5975DUMPBIN=$ac_cv_prog_DUMPBIN 5976if test -n "$DUMPBIN"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5978$as_echo "$DUMPBIN" >&6; } 5979else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5981$as_echo "no" >&6; } 5982fi 5983 5984 5985 test -n "$DUMPBIN" && break 5986 done 5987fi 5988if test -z "$DUMPBIN"; then 5989 ac_ct_DUMPBIN=$DUMPBIN 5990 for ac_prog in dumpbin "link -dump" 5991do 5992 # Extract the first word of "$ac_prog", so it can be a program name with args. 5993set dummy $ac_prog; ac_word=$2 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5995$as_echo_n "checking for $ac_word... " >&6; } 5996if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 if test -n "$ac_ct_DUMPBIN"; then 6000 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6001else 6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6003for as_dir in $PATH 6004do 6005 IFS=$as_save_IFS 6006 test -z "$as_dir" && as_dir=. 6007 for ac_exec_ext in '' $ac_executable_extensions; do 6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6009 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6011 break 2 6012 fi 6013done 6014 done 6015IFS=$as_save_IFS 6016 6017fi 6018fi 6019ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6020if test -n "$ac_ct_DUMPBIN"; then 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6022$as_echo "$ac_ct_DUMPBIN" >&6; } 6023else 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6025$as_echo "no" >&6; } 6026fi 6027 6028 6029 test -n "$ac_ct_DUMPBIN" && break 6030done 6031 6032 if test "x$ac_ct_DUMPBIN" = x; then 6033 DUMPBIN=":" 6034 else 6035 case $cross_compiling:$ac_tool_warned in 6036yes:) 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6039ac_tool_warned=yes ;; 6040esac 6041 DUMPBIN=$ac_ct_DUMPBIN 6042 fi 6043fi 6044 6045 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6046 *COFF*) 6047 DUMPBIN="$DUMPBIN -symbols -headers" 6048 ;; 6049 *) 6050 DUMPBIN=: 6051 ;; 6052 esac 6053 fi 6054 6055 if test : != "$DUMPBIN"; then 6056 NM=$DUMPBIN 6057 fi 6058fi 6059test -z "$NM" && NM=nm 6060 6061 6062 6063 6064 6065 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6067$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6068if ${lt_cv_nm_interface+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 lt_cv_nm_interface="BSD nm" 6072 echo "int some_variable = 0;" > conftest.$ac_ext 6073 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6074 (eval "$ac_compile" 2>conftest.err) 6075 cat conftest.err >&5 6076 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6077 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6078 cat conftest.err >&5 6079 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6080 cat conftest.out >&5 6081 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6082 lt_cv_nm_interface="MS dumpbin" 6083 fi 6084 rm -f conftest* 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6087$as_echo "$lt_cv_nm_interface" >&6; } 6088 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6090$as_echo_n "checking whether ln -s works... " >&6; } 6091LN_S=$as_ln_s 6092if test "$LN_S" = "ln -s"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6094$as_echo "yes" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6097$as_echo "no, using $LN_S" >&6; } 6098fi 6099 6100# find the maximum length of command line arguments 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6102$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6103if ${lt_cv_sys_max_cmd_len+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 i=0 6107 teststring=ABCD 6108 6109 case $build_os in 6110 msdosdjgpp*) 6111 # On DJGPP, this test can blow up pretty badly due to problems in libc 6112 # (any single argument exceeding 2000 bytes causes a buffer overrun 6113 # during glob expansion). Even if it were fixed, the result of this 6114 # check would be larger than it should be. 6115 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6116 ;; 6117 6118 gnu*) 6119 # Under GNU Hurd, this test is not required because there is 6120 # no limit to the length of command line arguments. 6121 # Libtool will interpret -1 as no limit whatsoever 6122 lt_cv_sys_max_cmd_len=-1; 6123 ;; 6124 6125 cygwin* | mingw* | cegcc*) 6126 # On Win9x/ME, this test blows up -- it succeeds, but takes 6127 # about 5 minutes as the teststring grows exponentially. 6128 # Worse, since 9x/ME are not pre-emptively multitasking, 6129 # you end up with a "frozen" computer, even though with patience 6130 # the test eventually succeeds (with a max line length of 256k). 6131 # Instead, let's just punt: use the minimum linelength reported by 6132 # all of the supported platforms: 8192 (on NT/2K/XP). 6133 lt_cv_sys_max_cmd_len=8192; 6134 ;; 6135 6136 mint*) 6137 # On MiNT this can take a long time and run out of memory. 6138 lt_cv_sys_max_cmd_len=8192; 6139 ;; 6140 6141 amigaos*) 6142 # On AmigaOS with pdksh, this test takes hours, literally. 6143 # So we just punt and use a minimum line length of 8192. 6144 lt_cv_sys_max_cmd_len=8192; 6145 ;; 6146 6147 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6148 # This has been around since 386BSD, at least. Likely further. 6149 if test -x /sbin/sysctl; then 6150 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6151 elif test -x /usr/sbin/sysctl; then 6152 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6153 else 6154 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6155 fi 6156 # And add a safety zone 6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6159 ;; 6160 6161 interix*) 6162 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6163 lt_cv_sys_max_cmd_len=196608 6164 ;; 6165 6166 os2*) 6167 # The test takes a long time on OS/2. 6168 lt_cv_sys_max_cmd_len=8192 6169 ;; 6170 6171 osf*) 6172 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6173 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6174 # nice to cause kernel panics so lets avoid the loop below. 6175 # First set a reasonable default. 6176 lt_cv_sys_max_cmd_len=16384 6177 # 6178 if test -x /sbin/sysconfig; then 6179 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6180 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6181 esac 6182 fi 6183 ;; 6184 sco3.2v5*) 6185 lt_cv_sys_max_cmd_len=102400 6186 ;; 6187 sysv5* | sco5v6* | sysv4.2uw2*) 6188 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6189 if test -n "$kargmax"; then 6190 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6191 else 6192 lt_cv_sys_max_cmd_len=32768 6193 fi 6194 ;; 6195 *) 6196 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6197 if test -n "$lt_cv_sys_max_cmd_len" && \ 6198 test undefined != "$lt_cv_sys_max_cmd_len"; then 6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6201 else 6202 # Make teststring a little bigger before we do anything with it. 6203 # a 1K string should be a reasonable start. 6204 for i in 1 2 3 4 5 6 7 8; do 6205 teststring=$teststring$teststring 6206 done 6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6208 # If test is not a shell built-in, we'll probably end up computing a 6209 # maximum length that is only half of the actual maximum length, but 6210 # we can't tell. 6211 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6212 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6213 test 17 != "$i" # 1/2 MB should be enough 6214 do 6215 i=`expr $i + 1` 6216 teststring=$teststring$teststring 6217 done 6218 # Only check the string length outside the loop. 6219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6220 teststring= 6221 # Add a significant safety factor because C++ compilers can tack on 6222 # massive amounts of additional arguments before passing them to the 6223 # linker. It appears as though 1/2 is a usable value. 6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6225 fi 6226 ;; 6227 esac 6228 6229fi 6230 6231if test -n "$lt_cv_sys_max_cmd_len"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6233$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6236$as_echo "none" >&6; } 6237fi 6238max_cmd_len=$lt_cv_sys_max_cmd_len 6239 6240 6241 6242 6243 6244 6245: ${CP="cp -f"} 6246: ${MV="mv -f"} 6247: ${RM="rm -f"} 6248 6249if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6250 lt_unset=unset 6251else 6252 lt_unset=false 6253fi 6254 6255 6256 6257 6258 6259# test EBCDIC or ASCII 6260case `echo X|tr X '\101'` in 6261 A) # ASCII based system 6262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6263 lt_SP2NL='tr \040 \012' 6264 lt_NL2SP='tr \015\012 \040\040' 6265 ;; 6266 *) # EBCDIC based system 6267 lt_SP2NL='tr \100 \n' 6268 lt_NL2SP='tr \r\n \100\100' 6269 ;; 6270esac 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6281$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6282if ${lt_cv_to_host_file_cmd+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 case $host in 6286 *-*-mingw* ) 6287 case $build in 6288 *-*-mingw* ) # actually msys 6289 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6290 ;; 6291 *-*-cygwin* ) 6292 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6293 ;; 6294 * ) # otherwise, assume *nix 6295 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6296 ;; 6297 esac 6298 ;; 6299 *-*-cygwin* ) 6300 case $build in 6301 *-*-mingw* ) # actually msys 6302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6303 ;; 6304 *-*-cygwin* ) 6305 lt_cv_to_host_file_cmd=func_convert_file_noop 6306 ;; 6307 * ) # otherwise, assume *nix 6308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6309 ;; 6310 esac 6311 ;; 6312 * ) # unhandled hosts (and "normal" native builds) 6313 lt_cv_to_host_file_cmd=func_convert_file_noop 6314 ;; 6315esac 6316 6317fi 6318 6319to_host_file_cmd=$lt_cv_to_host_file_cmd 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6321$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6322 6323 6324 6325 6326 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6328$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6329if ${lt_cv_to_tool_file_cmd+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 #assume ordinary cross tools, or native build. 6333lt_cv_to_tool_file_cmd=func_convert_file_noop 6334case $host in 6335 *-*-mingw* ) 6336 case $build in 6337 *-*-mingw* ) # actually msys 6338 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6339 ;; 6340 esac 6341 ;; 6342esac 6343 6344fi 6345 6346to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6348$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6349 6350 6351 6352 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6355$as_echo_n "checking for $LD option to reload object files... " >&6; } 6356if ${lt_cv_ld_reload_flag+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 lt_cv_ld_reload_flag='-r' 6360fi 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6362$as_echo "$lt_cv_ld_reload_flag" >&6; } 6363reload_flag=$lt_cv_ld_reload_flag 6364case $reload_flag in 6365"" | " "*) ;; 6366*) reload_flag=" $reload_flag" ;; 6367esac 6368reload_cmds='$LD$reload_flag -o $output$reload_objs' 6369case $host_os in 6370 cygwin* | mingw* | pw32* | cegcc*) 6371 if test yes != "$GCC"; then 6372 reload_cmds=false 6373 fi 6374 ;; 6375 darwin*) 6376 if test yes = "$GCC"; then 6377 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6378 else 6379 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6380 fi 6381 ;; 6382esac 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392if test -n "$ac_tool_prefix"; then 6393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6394set dummy ${ac_tool_prefix}objdump; ac_word=$2 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6396$as_echo_n "checking for $ac_word... " >&6; } 6397if ${ac_cv_prog_OBJDUMP+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 if test -n "$OBJDUMP"; then 6401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6402else 6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404for as_dir in $PATH 6405do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414done 6415 done 6416IFS=$as_save_IFS 6417 6418fi 6419fi 6420OBJDUMP=$ac_cv_prog_OBJDUMP 6421if test -n "$OBJDUMP"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6423$as_echo "$OBJDUMP" >&6; } 6424else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426$as_echo "no" >&6; } 6427fi 6428 6429 6430fi 6431if test -z "$ac_cv_prog_OBJDUMP"; then 6432 ac_ct_OBJDUMP=$OBJDUMP 6433 # Extract the first word of "objdump", so it can be a program name with args. 6434set dummy objdump; ac_word=$2 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6436$as_echo_n "checking for $ac_word... " >&6; } 6437if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 if test -n "$ac_ct_OBJDUMP"; then 6441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6442else 6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 test -z "$as_dir" && as_dir=. 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6450 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454done 6455 done 6456IFS=$as_save_IFS 6457 6458fi 6459fi 6460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6461if test -n "$ac_ct_OBJDUMP"; then 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6463$as_echo "$ac_ct_OBJDUMP" >&6; } 6464else 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6466$as_echo "no" >&6; } 6467fi 6468 6469 if test "x$ac_ct_OBJDUMP" = x; then 6470 OBJDUMP="false" 6471 else 6472 case $cross_compiling:$ac_tool_warned in 6473yes:) 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6476ac_tool_warned=yes ;; 6477esac 6478 OBJDUMP=$ac_ct_OBJDUMP 6479 fi 6480else 6481 OBJDUMP="$ac_cv_prog_OBJDUMP" 6482fi 6483 6484test -z "$OBJDUMP" && OBJDUMP=objdump 6485 6486 6487 6488 6489 6490 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6492$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6493if ${lt_cv_deplibs_check_method+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 lt_cv_file_magic_cmd='$MAGIC_CMD' 6497lt_cv_file_magic_test_file= 6498lt_cv_deplibs_check_method='unknown' 6499# Need to set the preceding variable on all platforms that support 6500# interlibrary dependencies. 6501# 'none' -- dependencies not supported. 6502# 'unknown' -- same as none, but documents that we really don't know. 6503# 'pass_all' -- all dependencies passed with no checks. 6504# 'test_compile' -- check by making test program. 6505# 'file_magic [[regex]]' -- check by looking for files in library path 6506# that responds to the $file_magic_cmd with a given extended regex. 6507# If you have 'file' or equivalent on your system and you're not sure 6508# whether 'pass_all' will *always* work, you probably want this one. 6509 6510case $host_os in 6511aix[4-9]*) 6512 lt_cv_deplibs_check_method=pass_all 6513 ;; 6514 6515beos*) 6516 lt_cv_deplibs_check_method=pass_all 6517 ;; 6518 6519bsdi[45]*) 6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6521 lt_cv_file_magic_cmd='/usr/bin/file -L' 6522 lt_cv_file_magic_test_file=/shlib/libc.so 6523 ;; 6524 6525cygwin*) 6526 # func_win32_libid is a shell function defined in ltmain.sh 6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6528 lt_cv_file_magic_cmd='func_win32_libid' 6529 ;; 6530 6531mingw* | pw32*) 6532 # Base MSYS/MinGW do not provide the 'file' command needed by 6533 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6534 # unless we find 'file', for example because we are cross-compiling. 6535 if ( file / ) >/dev/null 2>&1; then 6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6537 lt_cv_file_magic_cmd='func_win32_libid' 6538 else 6539 # Keep this pattern in sync with the one in func_win32_libid. 6540 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6541 lt_cv_file_magic_cmd='$OBJDUMP -f' 6542 fi 6543 ;; 6544 6545cegcc*) 6546 # use the weaker test based on 'objdump'. See mingw*. 6547 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6548 lt_cv_file_magic_cmd='$OBJDUMP -f' 6549 ;; 6550 6551darwin* | rhapsody*) 6552 lt_cv_deplibs_check_method=pass_all 6553 ;; 6554 6555freebsd* | dragonfly*) 6556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6557 case $host_cpu in 6558 i*86 ) 6559 # Not sure whether the presence of OpenBSD here was a mistake. 6560 # Let's accept both of them until this is cleared up. 6561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6562 lt_cv_file_magic_cmd=/usr/bin/file 6563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6564 ;; 6565 esac 6566 else 6567 lt_cv_deplibs_check_method=pass_all 6568 fi 6569 ;; 6570 6571haiku*) 6572 lt_cv_deplibs_check_method=pass_all 6573 ;; 6574 6575hpux10.20* | hpux11*) 6576 lt_cv_file_magic_cmd=/usr/bin/file 6577 case $host_cpu in 6578 ia64*) 6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6581 ;; 6582 hppa*64*) 6583 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]' 6584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6585 ;; 6586 *) 6587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6588 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6589 ;; 6590 esac 6591 ;; 6592 6593interix[3-9]*) 6594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6596 ;; 6597 6598irix5* | irix6* | nonstopux*) 6599 case $LD in 6600 *-32|*"-32 ") libmagic=32-bit;; 6601 *-n32|*"-n32 ") libmagic=N32;; 6602 *-64|*"-64 ") libmagic=64-bit;; 6603 *) libmagic=never-match;; 6604 esac 6605 lt_cv_deplibs_check_method=pass_all 6606 ;; 6607 6608# This must be glibc/ELF. 6609linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6610 lt_cv_deplibs_check_method=pass_all 6611 ;; 6612 6613netbsd* | netbsdelf*-gnu) 6614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6616 else 6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6618 fi 6619 ;; 6620 6621newos6*) 6622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6623 lt_cv_file_magic_cmd=/usr/bin/file 6624 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6625 ;; 6626 6627*nto* | *qnx*) 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630 6631openbsd* | bitrig*) 6632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6634 else 6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6636 fi 6637 ;; 6638 6639osf3* | osf4* | osf5*) 6640 lt_cv_deplibs_check_method=pass_all 6641 ;; 6642 6643rdos*) 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 6647solaris*) 6648 lt_cv_deplibs_check_method=pass_all 6649 ;; 6650 6651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6652 lt_cv_deplibs_check_method=pass_all 6653 ;; 6654 6655sysv4 | sysv4.3*) 6656 case $host_vendor in 6657 motorola) 6658 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]' 6659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6660 ;; 6661 ncr) 6662 lt_cv_deplibs_check_method=pass_all 6663 ;; 6664 sequent) 6665 lt_cv_file_magic_cmd='/bin/file' 6666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6667 ;; 6668 sni) 6669 lt_cv_file_magic_cmd='/bin/file' 6670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6671 lt_cv_file_magic_test_file=/lib/libc.so 6672 ;; 6673 siemens) 6674 lt_cv_deplibs_check_method=pass_all 6675 ;; 6676 pc) 6677 lt_cv_deplibs_check_method=pass_all 6678 ;; 6679 esac 6680 ;; 6681 6682tpf*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685os2*) 6686 lt_cv_deplibs_check_method=pass_all 6687 ;; 6688esac 6689 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6692$as_echo "$lt_cv_deplibs_check_method" >&6; } 6693 6694file_magic_glob= 6695want_nocaseglob=no 6696if test "$build" = "$host"; then 6697 case $host_os in 6698 mingw* | pw32*) 6699 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6700 want_nocaseglob=yes 6701 else 6702 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6703 fi 6704 ;; 6705 esac 6706fi 6707 6708file_magic_cmd=$lt_cv_file_magic_cmd 6709deplibs_check_method=$lt_cv_deplibs_check_method 6710test -z "$deplibs_check_method" && deplibs_check_method=unknown 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733if test -n "$ac_tool_prefix"; then 6734 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6735set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6737$as_echo_n "checking for $ac_word... " >&6; } 6738if ${ac_cv_prog_DLLTOOL+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 if test -n "$DLLTOOL"; then 6742 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6743else 6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6745for as_dir in $PATH 6746do 6747 IFS=$as_save_IFS 6748 test -z "$as_dir" && as_dir=. 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6751 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755done 6756 done 6757IFS=$as_save_IFS 6758 6759fi 6760fi 6761DLLTOOL=$ac_cv_prog_DLLTOOL 6762if test -n "$DLLTOOL"; then 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6764$as_echo "$DLLTOOL" >&6; } 6765else 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767$as_echo "no" >&6; } 6768fi 6769 6770 6771fi 6772if test -z "$ac_cv_prog_DLLTOOL"; then 6773 ac_ct_DLLTOOL=$DLLTOOL 6774 # Extract the first word of "dlltool", so it can be a program name with args. 6775set dummy dlltool; ac_word=$2 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777$as_echo_n "checking for $ac_word... " >&6; } 6778if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 if test -n "$ac_ct_DLLTOOL"; then 6782 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6783else 6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6785for as_dir in $PATH 6786do 6787 IFS=$as_save_IFS 6788 test -z "$as_dir" && as_dir=. 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6791 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6793 break 2 6794 fi 6795done 6796 done 6797IFS=$as_save_IFS 6798 6799fi 6800fi 6801ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6802if test -n "$ac_ct_DLLTOOL"; then 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6804$as_echo "$ac_ct_DLLTOOL" >&6; } 6805else 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6807$as_echo "no" >&6; } 6808fi 6809 6810 if test "x$ac_ct_DLLTOOL" = x; then 6811 DLLTOOL="false" 6812 else 6813 case $cross_compiling:$ac_tool_warned in 6814yes:) 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6817ac_tool_warned=yes ;; 6818esac 6819 DLLTOOL=$ac_ct_DLLTOOL 6820 fi 6821else 6822 DLLTOOL="$ac_cv_prog_DLLTOOL" 6823fi 6824 6825test -z "$DLLTOOL" && DLLTOOL=dlltool 6826 6827 6828 6829 6830 6831 6832 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6834$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6835if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 lt_cv_sharedlib_from_linklib_cmd='unknown' 6839 6840case $host_os in 6841cygwin* | mingw* | pw32* | cegcc*) 6842 # two different shell functions defined in ltmain.sh; 6843 # decide which one to use based on capabilities of $DLLTOOL 6844 case `$DLLTOOL --help 2>&1` in 6845 *--identify-strict*) 6846 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6847 ;; 6848 *) 6849 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6850 ;; 6851 esac 6852 ;; 6853*) 6854 # fallback: assume linklib IS sharedlib 6855 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6856 ;; 6857esac 6858 6859fi 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6861$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6862sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6863test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6864 6865 6866 6867 6868 6869 6870 6871if test -n "$ac_tool_prefix"; then 6872 for ac_prog in ar 6873 do 6874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6875set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_AR+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$AR"; then 6882 ac_cv_prog_AR="$AR" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901AR=$ac_cv_prog_AR 6902if test -n "$AR"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6904$as_echo "$AR" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 6911 test -n "$AR" && break 6912 done 6913fi 6914if test -z "$AR"; then 6915 ac_ct_AR=$AR 6916 for ac_prog in ar 6917do 6918 # Extract the first word of "$ac_prog", so it can be a program name with args. 6919set dummy $ac_prog; ac_word=$2 6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6921$as_echo_n "checking for $ac_word... " >&6; } 6922if ${ac_cv_prog_ac_ct_AR+:} false; then : 6923 $as_echo_n "(cached) " >&6 6924else 6925 if test -n "$ac_ct_AR"; then 6926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6927else 6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6929for as_dir in $PATH 6930do 6931 IFS=$as_save_IFS 6932 test -z "$as_dir" && as_dir=. 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6935 ac_cv_prog_ac_ct_AR="$ac_prog" 6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6937 break 2 6938 fi 6939done 6940 done 6941IFS=$as_save_IFS 6942 6943fi 6944fi 6945ac_ct_AR=$ac_cv_prog_ac_ct_AR 6946if test -n "$ac_ct_AR"; then 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6948$as_echo "$ac_ct_AR" >&6; } 6949else 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6951$as_echo "no" >&6; } 6952fi 6953 6954 6955 test -n "$ac_ct_AR" && break 6956done 6957 6958 if test "x$ac_ct_AR" = x; then 6959 AR="false" 6960 else 6961 case $cross_compiling:$ac_tool_warned in 6962yes:) 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6965ac_tool_warned=yes ;; 6966esac 6967 AR=$ac_ct_AR 6968 fi 6969fi 6970 6971: ${AR=ar} 6972: ${AR_FLAGS=cru} 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6985$as_echo_n "checking for archiver @FILE support... " >&6; } 6986if ${lt_cv_ar_at_file+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 lt_cv_ar_at_file=no 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992 6993int 6994main () 6995{ 6996 6997 ; 6998 return 0; 6999} 7000_ACEOF 7001if ac_fn_c_try_compile "$LINENO"; then : 7002 echo conftest.$ac_objext > conftest.lst 7003 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7005 (eval $lt_ar_try) 2>&5 7006 ac_status=$? 7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7008 test $ac_status = 0; } 7009 if test 0 -eq "$ac_status"; then 7010 # Ensure the archiver fails upon bogus file names. 7011 rm -f conftest.$ac_objext libconftest.a 7012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7013 (eval $lt_ar_try) 2>&5 7014 ac_status=$? 7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7016 test $ac_status = 0; } 7017 if test 0 -ne "$ac_status"; then 7018 lt_cv_ar_at_file=@ 7019 fi 7020 fi 7021 rm -f conftest.* libconftest.a 7022 7023fi 7024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7025 7026fi 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7028$as_echo "$lt_cv_ar_at_file" >&6; } 7029 7030if test no = "$lt_cv_ar_at_file"; then 7031 archiver_list_spec= 7032else 7033 archiver_list_spec=$lt_cv_ar_at_file 7034fi 7035 7036 7037 7038 7039 7040 7041 7042if test -n "$ac_tool_prefix"; then 7043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7044set dummy ${ac_tool_prefix}strip; ac_word=$2 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7046$as_echo_n "checking for $ac_word... " >&6; } 7047if ${ac_cv_prog_STRIP+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 if test -n "$STRIP"; then 7051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7052else 7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7054for as_dir in $PATH 7055do 7056 IFS=$as_save_IFS 7057 test -z "$as_dir" && as_dir=. 7058 for ac_exec_ext in '' $ac_executable_extensions; do 7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7060 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7062 break 2 7063 fi 7064done 7065 done 7066IFS=$as_save_IFS 7067 7068fi 7069fi 7070STRIP=$ac_cv_prog_STRIP 7071if test -n "$STRIP"; then 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7073$as_echo "$STRIP" >&6; } 7074else 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7076$as_echo "no" >&6; } 7077fi 7078 7079 7080fi 7081if test -z "$ac_cv_prog_STRIP"; then 7082 ac_ct_STRIP=$STRIP 7083 # Extract the first word of "strip", so it can be a program name with args. 7084set dummy strip; ac_word=$2 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7086$as_echo_n "checking for $ac_word... " >&6; } 7087if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 if test -n "$ac_ct_STRIP"; then 7091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7092else 7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094for as_dir in $PATH 7095do 7096 IFS=$as_save_IFS 7097 test -z "$as_dir" && as_dir=. 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7100 ac_cv_prog_ac_ct_STRIP="strip" 7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7102 break 2 7103 fi 7104done 7105 done 7106IFS=$as_save_IFS 7107 7108fi 7109fi 7110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7111if test -n "$ac_ct_STRIP"; then 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7113$as_echo "$ac_ct_STRIP" >&6; } 7114else 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7116$as_echo "no" >&6; } 7117fi 7118 7119 if test "x$ac_ct_STRIP" = x; then 7120 STRIP=":" 7121 else 7122 case $cross_compiling:$ac_tool_warned in 7123yes:) 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7126ac_tool_warned=yes ;; 7127esac 7128 STRIP=$ac_ct_STRIP 7129 fi 7130else 7131 STRIP="$ac_cv_prog_STRIP" 7132fi 7133 7134test -z "$STRIP" && STRIP=: 7135 7136 7137 7138 7139 7140 7141if test -n "$ac_tool_prefix"; then 7142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7143set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7145$as_echo_n "checking for $ac_word... " >&6; } 7146if ${ac_cv_prog_RANLIB+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 if test -n "$RANLIB"; then 7150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7151else 7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153for as_dir in $PATH 7154do 7155 IFS=$as_save_IFS 7156 test -z "$as_dir" && as_dir=. 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7161 break 2 7162 fi 7163done 7164 done 7165IFS=$as_save_IFS 7166 7167fi 7168fi 7169RANLIB=$ac_cv_prog_RANLIB 7170if test -n "$RANLIB"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7172$as_echo "$RANLIB" >&6; } 7173else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7175$as_echo "no" >&6; } 7176fi 7177 7178 7179fi 7180if test -z "$ac_cv_prog_RANLIB"; then 7181 ac_ct_RANLIB=$RANLIB 7182 # Extract the first word of "ranlib", so it can be a program name with args. 7183set dummy ranlib; ac_word=$2 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7185$as_echo_n "checking for $ac_word... " >&6; } 7186if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 if test -n "$ac_ct_RANLIB"; then 7190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7191else 7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193for as_dir in $PATH 7194do 7195 IFS=$as_save_IFS 7196 test -z "$as_dir" && as_dir=. 7197 for ac_exec_ext in '' $ac_executable_extensions; do 7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7199 ac_cv_prog_ac_ct_RANLIB="ranlib" 7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7201 break 2 7202 fi 7203done 7204 done 7205IFS=$as_save_IFS 7206 7207fi 7208fi 7209ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7210if test -n "$ac_ct_RANLIB"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7212$as_echo "$ac_ct_RANLIB" >&6; } 7213else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215$as_echo "no" >&6; } 7216fi 7217 7218 if test "x$ac_ct_RANLIB" = x; then 7219 RANLIB=":" 7220 else 7221 case $cross_compiling:$ac_tool_warned in 7222yes:) 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7225ac_tool_warned=yes ;; 7226esac 7227 RANLIB=$ac_ct_RANLIB 7228 fi 7229else 7230 RANLIB="$ac_cv_prog_RANLIB" 7231fi 7232 7233test -z "$RANLIB" && RANLIB=: 7234 7235 7236 7237 7238 7239 7240# Determine commands to create old-style static archives. 7241old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7242old_postinstall_cmds='chmod 644 $oldlib' 7243old_postuninstall_cmds= 7244 7245if test -n "$RANLIB"; then 7246 case $host_os in 7247 bitrig* | openbsd*) 7248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7249 ;; 7250 *) 7251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7252 ;; 7253 esac 7254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7255fi 7256 7257case $host_os in 7258 darwin*) 7259 lock_old_archive_extraction=yes ;; 7260 *) 7261 lock_old_archive_extraction=no ;; 7262esac 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302# If no C compiler was specified, use CC. 7303LTCC=${LTCC-"$CC"} 7304 7305# If no C compiler flags were specified, use CFLAGS. 7306LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7307 7308# Allow CC to be a program name with arguments. 7309compiler=$CC 7310 7311 7312# Check for command to grab the raw symbol name followed by C symbol from nm. 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7314$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7315if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 7319# These are sane defaults that work on at least a few old systems. 7320# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7321 7322# Character class describing NM global symbol codes. 7323symcode='[BCDEGRST]' 7324 7325# Regexp to match symbols that can be accessed directly from C. 7326sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7327 7328# Define system-specific variables. 7329case $host_os in 7330aix*) 7331 symcode='[BCDT]' 7332 ;; 7333cygwin* | mingw* | pw32* | cegcc*) 7334 symcode='[ABCDGISTW]' 7335 ;; 7336hpux*) 7337 if test ia64 = "$host_cpu"; then 7338 symcode='[ABCDEGRST]' 7339 fi 7340 ;; 7341irix* | nonstopux*) 7342 symcode='[BCDEGRST]' 7343 ;; 7344osf*) 7345 symcode='[BCDEGQRST]' 7346 ;; 7347solaris*) 7348 symcode='[BDRT]' 7349 ;; 7350sco3.2v5*) 7351 symcode='[DT]' 7352 ;; 7353sysv4.2uw2*) 7354 symcode='[DT]' 7355 ;; 7356sysv5* | sco5v6* | unixware* | OpenUNIX*) 7357 symcode='[ABDT]' 7358 ;; 7359sysv4) 7360 symcode='[DFNSTU]' 7361 ;; 7362esac 7363 7364# If we're using GNU nm, then use its standard symbol codes. 7365case `$NM -V 2>&1` in 7366*GNU* | *'with BFD'*) 7367 symcode='[ABCDGIRSTW]' ;; 7368esac 7369 7370if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7371 # Gets list of data symbols to import. 7372 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7373 # Adjust the below global symbol transforms to fixup imported variables. 7374 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7375 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7376 lt_c_name_lib_hook="\ 7377 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7378 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7379else 7380 # Disable hooks by default. 7381 lt_cv_sys_global_symbol_to_import= 7382 lt_cdecl_hook= 7383 lt_c_name_hook= 7384 lt_c_name_lib_hook= 7385fi 7386 7387# Transform an extracted symbol line into a proper C declaration. 7388# Some systems (esp. on ia64) link data and code symbols differently, 7389# so use this general approach. 7390lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7391$lt_cdecl_hook\ 7392" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7393" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7394 7395# Transform an extracted symbol line into symbol name and symbol address 7396lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7397$lt_c_name_hook\ 7398" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7399" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7400 7401# Transform an extracted symbol line into symbol name with lib prefix and 7402# symbol address. 7403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7404$lt_c_name_lib_hook\ 7405" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7406" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7407" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7408 7409# Handle CRLF in mingw tool chain 7410opt_cr= 7411case $build_os in 7412mingw*) 7413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7414 ;; 7415esac 7416 7417# Try without a prefix underscore, then with it. 7418for ac_symprfx in "" "_"; do 7419 7420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7421 symxfrm="\\1 $ac_symprfx\\2 \\2" 7422 7423 # Write the raw and C identifiers. 7424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7425 # Fake it for dumpbin and say T for any non-static function, 7426 # D for any global variable and I for any imported variable. 7427 # Also find C++ and __fastcall symbols from MSVC++, 7428 # which start with @ or ?. 7429 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7430" {last_section=section; section=\$ 3};"\ 7431" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7432" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7433" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7434" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7435" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7436" \$ 0!~/External *\|/{next};"\ 7437" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7438" {if(hide[section]) next};"\ 7439" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7440" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7441" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7442" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7443" ' prfx=^$ac_symprfx" 7444 else 7445 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7446 fi 7447 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7448 7449 # Check to see that the pipe works correctly. 7450 pipe_works=no 7451 7452 rm -f conftest* 7453 cat > conftest.$ac_ext <<_LT_EOF 7454#ifdef __cplusplus 7455extern "C" { 7456#endif 7457char nm_test_var; 7458void nm_test_func(void); 7459void nm_test_func(void){} 7460#ifdef __cplusplus 7461} 7462#endif 7463int main(){nm_test_var='a';nm_test_func();return(0);} 7464_LT_EOF 7465 7466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7467 (eval $ac_compile) 2>&5 7468 ac_status=$? 7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7470 test $ac_status = 0; }; then 7471 # Now try to grab the symbols. 7472 nlist=conftest.nm 7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7474 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7475 ac_status=$? 7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7477 test $ac_status = 0; } && test -s "$nlist"; then 7478 # Try sorting and uniquifying the output. 7479 if sort "$nlist" | uniq > "$nlist"T; then 7480 mv -f "$nlist"T "$nlist" 7481 else 7482 rm -f "$nlist"T 7483 fi 7484 7485 # Make sure that we snagged all the symbols we need. 7486 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7487 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7488 cat <<_LT_EOF > conftest.$ac_ext 7489/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7490#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7491/* DATA imports from DLLs on WIN32 can't be const, because runtime 7492 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7493# define LT_DLSYM_CONST 7494#elif defined __osf__ 7495/* This system does not cope well with relocations in const data. */ 7496# define LT_DLSYM_CONST 7497#else 7498# define LT_DLSYM_CONST const 7499#endif 7500 7501#ifdef __cplusplus 7502extern "C" { 7503#endif 7504 7505_LT_EOF 7506 # Now generate the symbol file. 7507 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7508 7509 cat <<_LT_EOF >> conftest.$ac_ext 7510 7511/* The mapping between symbol names and symbols. */ 7512LT_DLSYM_CONST struct { 7513 const char *name; 7514 void *address; 7515} 7516lt__PROGRAM__LTX_preloaded_symbols[] = 7517{ 7518 { "@PROGRAM@", (void *) 0 }, 7519_LT_EOF 7520 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7521 cat <<\_LT_EOF >> conftest.$ac_ext 7522 {0, (void *) 0} 7523}; 7524 7525/* This works around a problem in FreeBSD linker */ 7526#ifdef FREEBSD_WORKAROUND 7527static const void *lt_preloaded_setup() { 7528 return lt__PROGRAM__LTX_preloaded_symbols; 7529} 7530#endif 7531 7532#ifdef __cplusplus 7533} 7534#endif 7535_LT_EOF 7536 # Now try linking the two files. 7537 mv conftest.$ac_objext conftstm.$ac_objext 7538 lt_globsym_save_LIBS=$LIBS 7539 lt_globsym_save_CFLAGS=$CFLAGS 7540 LIBS=conftstm.$ac_objext 7541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7543 (eval $ac_link) 2>&5 7544 ac_status=$? 7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7546 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7547 pipe_works=yes 7548 fi 7549 LIBS=$lt_globsym_save_LIBS 7550 CFLAGS=$lt_globsym_save_CFLAGS 7551 else 7552 echo "cannot find nm_test_func in $nlist" >&5 7553 fi 7554 else 7555 echo "cannot find nm_test_var in $nlist" >&5 7556 fi 7557 else 7558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7559 fi 7560 else 7561 echo "$progname: failed program was:" >&5 7562 cat conftest.$ac_ext >&5 7563 fi 7564 rm -rf conftest* conftst* 7565 7566 # Do not use the global_symbol_pipe unless it works. 7567 if test yes = "$pipe_works"; then 7568 break 7569 else 7570 lt_cv_sys_global_symbol_pipe= 7571 fi 7572done 7573 7574fi 7575 7576if test -z "$lt_cv_sys_global_symbol_pipe"; then 7577 lt_cv_sys_global_symbol_to_cdecl= 7578fi 7579if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7581$as_echo "failed" >&6; } 7582else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7584$as_echo "ok" >&6; } 7585fi 7586 7587# Response file support. 7588if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7589 nm_file_list_spec='@' 7590elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7591 nm_file_list_spec='@' 7592fi 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7631$as_echo_n "checking for sysroot... " >&6; } 7632 7633# Check whether --with-sysroot was given. 7634if test "${with_sysroot+set}" = set; then : 7635 withval=$with_sysroot; 7636else 7637 with_sysroot=no 7638fi 7639 7640 7641lt_sysroot= 7642case $with_sysroot in #( 7643 yes) 7644 if test yes = "$GCC"; then 7645 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7646 fi 7647 ;; #( 7648 /*) 7649 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7650 ;; #( 7651 no|'') 7652 ;; #( 7653 *) 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7655$as_echo "$with_sysroot" >&6; } 7656 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7657 ;; 7658esac 7659 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7661$as_echo "${lt_sysroot:-no}" >&6; } 7662 7663 7664 7665 7666 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7668$as_echo_n "checking for a working dd... " >&6; } 7669if ${ac_cv_path_lt_DD+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 printf 0123456789abcdef0123456789abcdef >conftest.i 7673cat conftest.i conftest.i >conftest2.i 7674: ${lt_DD:=$DD} 7675if test -z "$lt_DD"; then 7676 ac_path_lt_DD_found=false 7677 # Loop through the user's path and test for each of PROGNAME-LIST 7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH 7680do 7681 IFS=$as_save_IFS 7682 test -z "$as_dir" && as_dir=. 7683 for ac_prog in dd; do 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7686 as_fn_executable_p "$ac_path_lt_DD" || continue 7687if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7688 cmp -s conftest.i conftest.out \ 7689 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7690fi 7691 $ac_path_lt_DD_found && break 3 7692 done 7693 done 7694 done 7695IFS=$as_save_IFS 7696 if test -z "$ac_cv_path_lt_DD"; then 7697 : 7698 fi 7699else 7700 ac_cv_path_lt_DD=$lt_DD 7701fi 7702 7703rm -f conftest.i conftest2.i conftest.out 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7706$as_echo "$ac_cv_path_lt_DD" >&6; } 7707 7708 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7710$as_echo_n "checking how to truncate binary pipes... " >&6; } 7711if ${lt_cv_truncate_bin+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 printf 0123456789abcdef0123456789abcdef >conftest.i 7715cat conftest.i conftest.i >conftest2.i 7716lt_cv_truncate_bin= 7717if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7718 cmp -s conftest.i conftest.out \ 7719 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7720fi 7721rm -f conftest.i conftest2.i conftest.out 7722test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7725$as_echo "$lt_cv_truncate_bin" >&6; } 7726 7727 7728 7729 7730 7731 7732 7733# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7734func_cc_basename () 7735{ 7736 for cc_temp in $*""; do 7737 case $cc_temp in 7738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7740 \-*) ;; 7741 *) break;; 7742 esac 7743 done 7744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7745} 7746 7747# Check whether --enable-libtool-lock was given. 7748if test "${enable_libtool_lock+set}" = set; then : 7749 enableval=$enable_libtool_lock; 7750fi 7751 7752test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7753 7754# Some flags need to be propagated to the compiler or linker for good 7755# libtool support. 7756case $host in 7757ia64-*-hpux*) 7758 # Find out what ABI is being produced by ac_compile, and set mode 7759 # options accordingly. 7760 echo 'int i;' > conftest.$ac_ext 7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7762 (eval $ac_compile) 2>&5 7763 ac_status=$? 7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7765 test $ac_status = 0; }; then 7766 case `/usr/bin/file conftest.$ac_objext` in 7767 *ELF-32*) 7768 HPUX_IA64_MODE=32 7769 ;; 7770 *ELF-64*) 7771 HPUX_IA64_MODE=64 7772 ;; 7773 esac 7774 fi 7775 rm -rf conftest* 7776 ;; 7777*-*-irix6*) 7778 # Find out what ABI is being produced by ac_compile, and set linker 7779 # options accordingly. 7780 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7782 (eval $ac_compile) 2>&5 7783 ac_status=$? 7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7785 test $ac_status = 0; }; then 7786 if test yes = "$lt_cv_prog_gnu_ld"; then 7787 case `/usr/bin/file conftest.$ac_objext` in 7788 *32-bit*) 7789 LD="${LD-ld} -melf32bsmip" 7790 ;; 7791 *N32*) 7792 LD="${LD-ld} -melf32bmipn32" 7793 ;; 7794 *64-bit*) 7795 LD="${LD-ld} -melf64bmip" 7796 ;; 7797 esac 7798 else 7799 case `/usr/bin/file conftest.$ac_objext` in 7800 *32-bit*) 7801 LD="${LD-ld} -32" 7802 ;; 7803 *N32*) 7804 LD="${LD-ld} -n32" 7805 ;; 7806 *64-bit*) 7807 LD="${LD-ld} -64" 7808 ;; 7809 esac 7810 fi 7811 fi 7812 rm -rf conftest* 7813 ;; 7814 7815mips64*-*linux*) 7816 # Find out what ABI is being produced by ac_compile, and set linker 7817 # options accordingly. 7818 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7820 (eval $ac_compile) 2>&5 7821 ac_status=$? 7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7823 test $ac_status = 0; }; then 7824 emul=elf 7825 case `/usr/bin/file conftest.$ac_objext` in 7826 *32-bit*) 7827 emul="${emul}32" 7828 ;; 7829 *64-bit*) 7830 emul="${emul}64" 7831 ;; 7832 esac 7833 case `/usr/bin/file conftest.$ac_objext` in 7834 *MSB*) 7835 emul="${emul}btsmip" 7836 ;; 7837 *LSB*) 7838 emul="${emul}ltsmip" 7839 ;; 7840 esac 7841 case `/usr/bin/file conftest.$ac_objext` in 7842 *N32*) 7843 emul="${emul}n32" 7844 ;; 7845 esac 7846 LD="${LD-ld} -m $emul" 7847 fi 7848 rm -rf conftest* 7849 ;; 7850 7851x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7852s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7853 # Find out what ABI is being produced by ac_compile, and set linker 7854 # options accordingly. Note that the listed cases only cover the 7855 # situations where additional linker options are needed (such as when 7856 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7857 # vice versa); the common cases where no linker options are needed do 7858 # not appear in the list. 7859 echo 'int i;' > conftest.$ac_ext 7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7861 (eval $ac_compile) 2>&5 7862 ac_status=$? 7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7864 test $ac_status = 0; }; then 7865 case `/usr/bin/file conftest.o` in 7866 *32-bit*) 7867 case $host in 7868 x86_64-*kfreebsd*-gnu) 7869 LD="${LD-ld} -m elf_i386_fbsd" 7870 ;; 7871 x86_64-*linux*) 7872 case `/usr/bin/file conftest.o` in 7873 *x86-64*) 7874 LD="${LD-ld} -m elf32_x86_64" 7875 ;; 7876 *) 7877 LD="${LD-ld} -m elf_i386" 7878 ;; 7879 esac 7880 ;; 7881 powerpc64le-*linux*) 7882 LD="${LD-ld} -m elf32lppclinux" 7883 ;; 7884 powerpc64-*linux*) 7885 LD="${LD-ld} -m elf32ppclinux" 7886 ;; 7887 s390x-*linux*) 7888 LD="${LD-ld} -m elf_s390" 7889 ;; 7890 sparc64-*linux*) 7891 LD="${LD-ld} -m elf32_sparc" 7892 ;; 7893 esac 7894 ;; 7895 *64-bit*) 7896 case $host in 7897 x86_64-*kfreebsd*-gnu) 7898 LD="${LD-ld} -m elf_x86_64_fbsd" 7899 ;; 7900 x86_64-*linux*) 7901 LD="${LD-ld} -m elf_x86_64" 7902 ;; 7903 powerpcle-*linux*) 7904 LD="${LD-ld} -m elf64lppc" 7905 ;; 7906 powerpc-*linux*) 7907 LD="${LD-ld} -m elf64ppc" 7908 ;; 7909 s390*-*linux*|s390*-*tpf*) 7910 LD="${LD-ld} -m elf64_s390" 7911 ;; 7912 sparc*-*linux*) 7913 LD="${LD-ld} -m elf64_sparc" 7914 ;; 7915 esac 7916 ;; 7917 esac 7918 fi 7919 rm -rf conftest* 7920 ;; 7921 7922*-*-sco3.2v5*) 7923 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7924 SAVE_CFLAGS=$CFLAGS 7925 CFLAGS="$CFLAGS -belf" 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7927$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7928if ${lt_cv_cc_needs_belf+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 ac_ext=c 7932ac_cpp='$CPP $CPPFLAGS' 7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7935ac_compiler_gnu=$ac_cv_c_compiler_gnu 7936 7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939 7940int 7941main () 7942{ 7943 7944 ; 7945 return 0; 7946} 7947_ACEOF 7948if ac_fn_c_try_link "$LINENO"; then : 7949 lt_cv_cc_needs_belf=yes 7950else 7951 lt_cv_cc_needs_belf=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext \ 7954 conftest$ac_exeext conftest.$ac_ext 7955 ac_ext=c 7956ac_cpp='$CPP $CPPFLAGS' 7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7959ac_compiler_gnu=$ac_cv_c_compiler_gnu 7960 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7963$as_echo "$lt_cv_cc_needs_belf" >&6; } 7964 if test yes != "$lt_cv_cc_needs_belf"; then 7965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7966 CFLAGS=$SAVE_CFLAGS 7967 fi 7968 ;; 7969*-*solaris*) 7970 # Find out what ABI is being produced by ac_compile, and set linker 7971 # options accordingly. 7972 echo 'int i;' > conftest.$ac_ext 7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7974 (eval $ac_compile) 2>&5 7975 ac_status=$? 7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7977 test $ac_status = 0; }; then 7978 case `/usr/bin/file conftest.o` in 7979 *64-bit*) 7980 case $lt_cv_prog_gnu_ld in 7981 yes*) 7982 case $host in 7983 i?86-*-solaris*|x86_64-*-solaris*) 7984 LD="${LD-ld} -m elf_x86_64" 7985 ;; 7986 sparc*-*-solaris*) 7987 LD="${LD-ld} -m elf64_sparc" 7988 ;; 7989 esac 7990 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7991 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7992 LD=${LD-ld}_sol2 7993 fi 7994 ;; 7995 *) 7996 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7997 LD="${LD-ld} -64" 7998 fi 7999 ;; 8000 esac 8001 ;; 8002 esac 8003 fi 8004 rm -rf conftest* 8005 ;; 8006esac 8007 8008need_locks=$enable_libtool_lock 8009 8010if test -n "$ac_tool_prefix"; then 8011 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8012set dummy ${ac_tool_prefix}mt; ac_word=$2 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014$as_echo_n "checking for $ac_word... " >&6; } 8015if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 if test -n "$MANIFEST_TOOL"; then 8019 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8020else 8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8022for as_dir in $PATH 8023do 8024 IFS=$as_save_IFS 8025 test -z "$as_dir" && as_dir=. 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8028 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi 8037fi 8038MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8039if test -n "$MANIFEST_TOOL"; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8041$as_echo "$MANIFEST_TOOL" >&6; } 8042else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044$as_echo "no" >&6; } 8045fi 8046 8047 8048fi 8049if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8050 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8051 # Extract the first word of "mt", so it can be a program name with args. 8052set dummy mt; ac_word=$2 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8054$as_echo_n "checking for $ac_word... " >&6; } 8055if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 if test -n "$ac_ct_MANIFEST_TOOL"; then 8059 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8060else 8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8062for as_dir in $PATH 8063do 8064 IFS=$as_save_IFS 8065 test -z "$as_dir" && as_dir=. 8066 for ac_exec_ext in '' $ac_executable_extensions; do 8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8068 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8070 break 2 8071 fi 8072done 8073 done 8074IFS=$as_save_IFS 8075 8076fi 8077fi 8078ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8079if test -n "$ac_ct_MANIFEST_TOOL"; then 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8081$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8082else 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8084$as_echo "no" >&6; } 8085fi 8086 8087 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8088 MANIFEST_TOOL=":" 8089 else 8090 case $cross_compiling:$ac_tool_warned in 8091yes:) 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8094ac_tool_warned=yes ;; 8095esac 8096 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8097 fi 8098else 8099 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8100fi 8101 8102test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8104$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8105if ${lt_cv_path_mainfest_tool+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 lt_cv_path_mainfest_tool=no 8109 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8110 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8111 cat conftest.err >&5 8112 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8113 lt_cv_path_mainfest_tool=yes 8114 fi 8115 rm -f conftest* 8116fi 8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8118$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8119if test yes != "$lt_cv_path_mainfest_tool"; then 8120 MANIFEST_TOOL=: 8121fi 8122 8123 8124 8125 8126 8127 8128 case $host_os in 8129 rhapsody* | darwin*) 8130 if test -n "$ac_tool_prefix"; then 8131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8132set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8134$as_echo_n "checking for $ac_word... " >&6; } 8135if ${ac_cv_prog_DSYMUTIL+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 if test -n "$DSYMUTIL"; then 8139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8140else 8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8142for as_dir in $PATH 8143do 8144 IFS=$as_save_IFS 8145 test -z "$as_dir" && as_dir=. 8146 for ac_exec_ext in '' $ac_executable_extensions; do 8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8150 break 2 8151 fi 8152done 8153 done 8154IFS=$as_save_IFS 8155 8156fi 8157fi 8158DSYMUTIL=$ac_cv_prog_DSYMUTIL 8159if test -n "$DSYMUTIL"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8161$as_echo "$DSYMUTIL" >&6; } 8162else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164$as_echo "no" >&6; } 8165fi 8166 8167 8168fi 8169if test -z "$ac_cv_prog_DSYMUTIL"; then 8170 ac_ct_DSYMUTIL=$DSYMUTIL 8171 # Extract the first word of "dsymutil", so it can be a program name with args. 8172set dummy dsymutil; ac_word=$2 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8174$as_echo_n "checking for $ac_word... " >&6; } 8175if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8176 $as_echo_n "(cached) " >&6 8177else 8178 if test -n "$ac_ct_DSYMUTIL"; then 8179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 test -z "$as_dir" && as_dir=. 8186 for ac_exec_ext in '' $ac_executable_extensions; do 8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8190 break 2 8191 fi 8192done 8193 done 8194IFS=$as_save_IFS 8195 8196fi 8197fi 8198ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8199if test -n "$ac_ct_DSYMUTIL"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8201$as_echo "$ac_ct_DSYMUTIL" >&6; } 8202else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204$as_echo "no" >&6; } 8205fi 8206 8207 if test "x$ac_ct_DSYMUTIL" = x; then 8208 DSYMUTIL=":" 8209 else 8210 case $cross_compiling:$ac_tool_warned in 8211yes:) 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8214ac_tool_warned=yes ;; 8215esac 8216 DSYMUTIL=$ac_ct_DSYMUTIL 8217 fi 8218else 8219 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8220fi 8221 8222 if test -n "$ac_tool_prefix"; then 8223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8224set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226$as_echo_n "checking for $ac_word... " >&6; } 8227if ${ac_cv_prog_NMEDIT+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 if test -n "$NMEDIT"; then 8231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245 done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250NMEDIT=$ac_cv_prog_NMEDIT 8251if test -n "$NMEDIT"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8253$as_echo "$NMEDIT" >&6; } 8254else 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8256$as_echo "no" >&6; } 8257fi 8258 8259 8260fi 8261if test -z "$ac_cv_prog_NMEDIT"; then 8262 ac_ct_NMEDIT=$NMEDIT 8263 # Extract the first word of "nmedit", so it can be a program name with args. 8264set dummy nmedit; ac_word=$2 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266$as_echo_n "checking for $ac_word... " >&6; } 8267if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 if test -n "$ac_ct_NMEDIT"; then 8271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8272else 8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274for as_dir in $PATH 8275do 8276 IFS=$as_save_IFS 8277 test -z "$as_dir" && as_dir=. 8278 for ac_exec_ext in '' $ac_executable_extensions; do 8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8280 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8282 break 2 8283 fi 8284done 8285 done 8286IFS=$as_save_IFS 8287 8288fi 8289fi 8290ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8291if test -n "$ac_ct_NMEDIT"; then 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8293$as_echo "$ac_ct_NMEDIT" >&6; } 8294else 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8296$as_echo "no" >&6; } 8297fi 8298 8299 if test "x$ac_ct_NMEDIT" = x; then 8300 NMEDIT=":" 8301 else 8302 case $cross_compiling:$ac_tool_warned in 8303yes:) 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8306ac_tool_warned=yes ;; 8307esac 8308 NMEDIT=$ac_ct_NMEDIT 8309 fi 8310else 8311 NMEDIT="$ac_cv_prog_NMEDIT" 8312fi 8313 8314 if test -n "$ac_tool_prefix"; then 8315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8316set dummy ${ac_tool_prefix}lipo; ac_word=$2 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318$as_echo_n "checking for $ac_word... " >&6; } 8319if ${ac_cv_prog_LIPO+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 if test -n "$LIPO"; then 8323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8324else 8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8326for as_dir in $PATH 8327do 8328 IFS=$as_save_IFS 8329 test -z "$as_dir" && as_dir=. 8330 for ac_exec_ext in '' $ac_executable_extensions; do 8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8334 break 2 8335 fi 8336done 8337 done 8338IFS=$as_save_IFS 8339 8340fi 8341fi 8342LIPO=$ac_cv_prog_LIPO 8343if test -n "$LIPO"; then 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8345$as_echo "$LIPO" >&6; } 8346else 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348$as_echo "no" >&6; } 8349fi 8350 8351 8352fi 8353if test -z "$ac_cv_prog_LIPO"; then 8354 ac_ct_LIPO=$LIPO 8355 # Extract the first word of "lipo", so it can be a program name with args. 8356set dummy lipo; ac_word=$2 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8358$as_echo_n "checking for $ac_word... " >&6; } 8359if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 if test -n "$ac_ct_LIPO"; then 8363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8364else 8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8366for as_dir in $PATH 8367do 8368 IFS=$as_save_IFS 8369 test -z "$as_dir" && as_dir=. 8370 for ac_exec_ext in '' $ac_executable_extensions; do 8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8372 ac_cv_prog_ac_ct_LIPO="lipo" 8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8374 break 2 8375 fi 8376done 8377 done 8378IFS=$as_save_IFS 8379 8380fi 8381fi 8382ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8383if test -n "$ac_ct_LIPO"; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8385$as_echo "$ac_ct_LIPO" >&6; } 8386else 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388$as_echo "no" >&6; } 8389fi 8390 8391 if test "x$ac_ct_LIPO" = x; then 8392 LIPO=":" 8393 else 8394 case $cross_compiling:$ac_tool_warned in 8395yes:) 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8398ac_tool_warned=yes ;; 8399esac 8400 LIPO=$ac_ct_LIPO 8401 fi 8402else 8403 LIPO="$ac_cv_prog_LIPO" 8404fi 8405 8406 if test -n "$ac_tool_prefix"; then 8407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8408set dummy ${ac_tool_prefix}otool; ac_word=$2 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410$as_echo_n "checking for $ac_word... " >&6; } 8411if ${ac_cv_prog_OTOOL+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 if test -n "$OTOOL"; then 8415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8416else 8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418for as_dir in $PATH 8419do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428done 8429 done 8430IFS=$as_save_IFS 8431 8432fi 8433fi 8434OTOOL=$ac_cv_prog_OTOOL 8435if test -n "$OTOOL"; then 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8437$as_echo "$OTOOL" >&6; } 8438else 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8440$as_echo "no" >&6; } 8441fi 8442 8443 8444fi 8445if test -z "$ac_cv_prog_OTOOL"; then 8446 ac_ct_OTOOL=$OTOOL 8447 # Extract the first word of "otool", so it can be a program name with args. 8448set dummy otool; ac_word=$2 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450$as_echo_n "checking for $ac_word... " >&6; } 8451if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 if test -n "$ac_ct_OTOOL"; then 8455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8456else 8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8458for as_dir in $PATH 8459do 8460 IFS=$as_save_IFS 8461 test -z "$as_dir" && as_dir=. 8462 for ac_exec_ext in '' $ac_executable_extensions; do 8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8464 ac_cv_prog_ac_ct_OTOOL="otool" 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8466 break 2 8467 fi 8468done 8469 done 8470IFS=$as_save_IFS 8471 8472fi 8473fi 8474ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8475if test -n "$ac_ct_OTOOL"; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8477$as_echo "$ac_ct_OTOOL" >&6; } 8478else 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480$as_echo "no" >&6; } 8481fi 8482 8483 if test "x$ac_ct_OTOOL" = x; then 8484 OTOOL=":" 8485 else 8486 case $cross_compiling:$ac_tool_warned in 8487yes:) 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8490ac_tool_warned=yes ;; 8491esac 8492 OTOOL=$ac_ct_OTOOL 8493 fi 8494else 8495 OTOOL="$ac_cv_prog_OTOOL" 8496fi 8497 8498 if test -n "$ac_tool_prefix"; then 8499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8500set dummy ${ac_tool_prefix}otool64; ac_word=$2 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502$as_echo_n "checking for $ac_word... " >&6; } 8503if ${ac_cv_prog_OTOOL64+:} false; then : 8504 $as_echo_n "(cached) " >&6 8505else 8506 if test -n "$OTOOL64"; then 8507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8508else 8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8510for as_dir in $PATH 8511do 8512 IFS=$as_save_IFS 8513 test -z "$as_dir" && as_dir=. 8514 for ac_exec_ext in '' $ac_executable_extensions; do 8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8518 break 2 8519 fi 8520done 8521 done 8522IFS=$as_save_IFS 8523 8524fi 8525fi 8526OTOOL64=$ac_cv_prog_OTOOL64 8527if test -n "$OTOOL64"; then 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8529$as_echo "$OTOOL64" >&6; } 8530else 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8532$as_echo "no" >&6; } 8533fi 8534 8535 8536fi 8537if test -z "$ac_cv_prog_OTOOL64"; then 8538 ac_ct_OTOOL64=$OTOOL64 8539 # Extract the first word of "otool64", so it can be a program name with args. 8540set dummy otool64; ac_word=$2 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8542$as_echo_n "checking for $ac_word... " >&6; } 8543if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8544 $as_echo_n "(cached) " >&6 8545else 8546 if test -n "$ac_ct_OTOOL64"; then 8547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8548else 8549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8550for as_dir in $PATH 8551do 8552 IFS=$as_save_IFS 8553 test -z "$as_dir" && as_dir=. 8554 for ac_exec_ext in '' $ac_executable_extensions; do 8555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8556 ac_cv_prog_ac_ct_OTOOL64="otool64" 8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8558 break 2 8559 fi 8560done 8561 done 8562IFS=$as_save_IFS 8563 8564fi 8565fi 8566ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8567if test -n "$ac_ct_OTOOL64"; then 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8569$as_echo "$ac_ct_OTOOL64" >&6; } 8570else 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8572$as_echo "no" >&6; } 8573fi 8574 8575 if test "x$ac_ct_OTOOL64" = x; then 8576 OTOOL64=":" 8577 else 8578 case $cross_compiling:$ac_tool_warned in 8579yes:) 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8582ac_tool_warned=yes ;; 8583esac 8584 OTOOL64=$ac_ct_OTOOL64 8585 fi 8586else 8587 OTOOL64="$ac_cv_prog_OTOOL64" 8588fi 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8617$as_echo_n "checking for -single_module linker flag... " >&6; } 8618if ${lt_cv_apple_cc_single_mod+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620else 8621 lt_cv_apple_cc_single_mod=no 8622 if test -z "$LT_MULTI_MODULE"; then 8623 # By default we will add the -single_module flag. You can override 8624 # by either setting the environment variable LT_MULTI_MODULE 8625 # non-empty at configure time, or by adding -multi_module to the 8626 # link flags. 8627 rm -rf libconftest.dylib* 8628 echo "int foo(void){return 1;}" > conftest.c 8629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8630-dynamiclib -Wl,-single_module conftest.c" >&5 8631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8633 _lt_result=$? 8634 # If there is a non-empty error log, and "single_module" 8635 # appears in it, assume the flag caused a linker warning 8636 if test -s conftest.err && $GREP single_module conftest.err; then 8637 cat conftest.err >&5 8638 # Otherwise, if the output was created with a 0 exit code from 8639 # the compiler, it worked. 8640 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8641 lt_cv_apple_cc_single_mod=yes 8642 else 8643 cat conftest.err >&5 8644 fi 8645 rm -rf libconftest.dylib* 8646 rm -f conftest.* 8647 fi 8648fi 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8650$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8651 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8653$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8654if ${lt_cv_ld_exported_symbols_list+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 lt_cv_ld_exported_symbols_list=no 8658 save_LDFLAGS=$LDFLAGS 8659 echo "_main" > conftest.sym 8660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663 8664int 8665main () 8666{ 8667 8668 ; 8669 return 0; 8670} 8671_ACEOF 8672if ac_fn_c_try_link "$LINENO"; then : 8673 lt_cv_ld_exported_symbols_list=yes 8674else 8675 lt_cv_ld_exported_symbols_list=no 8676fi 8677rm -f core conftest.err conftest.$ac_objext \ 8678 conftest$ac_exeext conftest.$ac_ext 8679 LDFLAGS=$save_LDFLAGS 8680 8681fi 8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8683$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8684 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8686$as_echo_n "checking for -force_load linker flag... " >&6; } 8687if ${lt_cv_ld_force_load+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 lt_cv_ld_force_load=no 8691 cat > conftest.c << _LT_EOF 8692int forced_loaded() { return 2;} 8693_LT_EOF 8694 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8695 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8696 echo "$AR cru libconftest.a conftest.o" >&5 8697 $AR cru libconftest.a conftest.o 2>&5 8698 echo "$RANLIB libconftest.a" >&5 8699 $RANLIB libconftest.a 2>&5 8700 cat > conftest.c << _LT_EOF 8701int main() { return 0;} 8702_LT_EOF 8703 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8704 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8705 _lt_result=$? 8706 if test -s conftest.err && $GREP force_load conftest.err; then 8707 cat conftest.err >&5 8708 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8709 lt_cv_ld_force_load=yes 8710 else 8711 cat conftest.err >&5 8712 fi 8713 rm -f conftest.err libconftest.a conftest conftest.c 8714 rm -rf conftest.dSYM 8715 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8718$as_echo "$lt_cv_ld_force_load" >&6; } 8719 case $host_os in 8720 rhapsody* | darwin1.[012]) 8721 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8722 darwin1.*) 8723 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8724 darwin*) # darwin 5.x on 8725 # if running on 10.5 or later, the deployment target defaults 8726 # to the OS version, if on x86, and 10.4, the deployment 8727 # target defaults to 10.4. Don't you love it? 8728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8729 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8730 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8731 10.[012][,.]*) 8732 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8733 10.*) 8734 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8735 esac 8736 ;; 8737 esac 8738 if test yes = "$lt_cv_apple_cc_single_mod"; then 8739 _lt_dar_single_mod='$single_module' 8740 fi 8741 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8742 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8743 else 8744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8745 fi 8746 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8747 _lt_dsymutil='~$DSYMUTIL $lib || :' 8748 else 8749 _lt_dsymutil= 8750 fi 8751 ;; 8752 esac 8753 8754# func_munge_path_list VARIABLE PATH 8755# ----------------------------------- 8756# VARIABLE is name of variable containing _space_ separated list of 8757# directories to be munged by the contents of PATH, which is string 8758# having a format: 8759# "DIR[:DIR]:" 8760# string "DIR[ DIR]" will be prepended to VARIABLE 8761# ":DIR[:DIR]" 8762# string "DIR[ DIR]" will be appended to VARIABLE 8763# "DIRP[:DIRP]::[DIRA:]DIRA" 8764# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8765# "DIRA[ DIRA]" will be appended to VARIABLE 8766# "DIR[:DIR]" 8767# VARIABLE will be replaced by "DIR[ DIR]" 8768func_munge_path_list () 8769{ 8770 case x$2 in 8771 x) 8772 ;; 8773 *:) 8774 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8775 ;; 8776 x:*) 8777 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8778 ;; 8779 *::*) 8780 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8781 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8782 ;; 8783 *) 8784 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8785 ;; 8786 esac 8787} 8788 8789for ac_header in dlfcn.h 8790do : 8791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8792" 8793if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8794 cat >>confdefs.h <<_ACEOF 8795#define HAVE_DLFCN_H 1 8796_ACEOF 8797 8798fi 8799 8800done 8801 8802 8803 8804 8805 8806# Set options 8807enable_win32_dll=yes 8808 8809case $host in 8810*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8811 if test -n "$ac_tool_prefix"; then 8812 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8813set dummy ${ac_tool_prefix}as; ac_word=$2 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8815$as_echo_n "checking for $ac_word... " >&6; } 8816if ${ac_cv_prog_AS+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 if test -n "$AS"; then 8820 ac_cv_prog_AS="$AS" # Let the user override the test. 8821else 8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8823for as_dir in $PATH 8824do 8825 IFS=$as_save_IFS 8826 test -z "$as_dir" && as_dir=. 8827 for ac_exec_ext in '' $ac_executable_extensions; do 8828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8829 ac_cv_prog_AS="${ac_tool_prefix}as" 8830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8831 break 2 8832 fi 8833done 8834 done 8835IFS=$as_save_IFS 8836 8837fi 8838fi 8839AS=$ac_cv_prog_AS 8840if test -n "$AS"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8842$as_echo "$AS" >&6; } 8843else 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8845$as_echo "no" >&6; } 8846fi 8847 8848 8849fi 8850if test -z "$ac_cv_prog_AS"; then 8851 ac_ct_AS=$AS 8852 # Extract the first word of "as", so it can be a program name with args. 8853set dummy as; ac_word=$2 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8855$as_echo_n "checking for $ac_word... " >&6; } 8856if ${ac_cv_prog_ac_ct_AS+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 if test -n "$ac_ct_AS"; then 8860 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8861else 8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8863for as_dir in $PATH 8864do 8865 IFS=$as_save_IFS 8866 test -z "$as_dir" && as_dir=. 8867 for ac_exec_ext in '' $ac_executable_extensions; do 8868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8869 ac_cv_prog_ac_ct_AS="as" 8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8871 break 2 8872 fi 8873done 8874 done 8875IFS=$as_save_IFS 8876 8877fi 8878fi 8879ac_ct_AS=$ac_cv_prog_ac_ct_AS 8880if test -n "$ac_ct_AS"; then 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8882$as_echo "$ac_ct_AS" >&6; } 8883else 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8885$as_echo "no" >&6; } 8886fi 8887 8888 if test "x$ac_ct_AS" = x; then 8889 AS="false" 8890 else 8891 case $cross_compiling:$ac_tool_warned in 8892yes:) 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8895ac_tool_warned=yes ;; 8896esac 8897 AS=$ac_ct_AS 8898 fi 8899else 8900 AS="$ac_cv_prog_AS" 8901fi 8902 8903 if test -n "$ac_tool_prefix"; then 8904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8905set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8907$as_echo_n "checking for $ac_word... " >&6; } 8908if ${ac_cv_prog_DLLTOOL+:} false; then : 8909 $as_echo_n "(cached) " >&6 8910else 8911 if test -n "$DLLTOOL"; then 8912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8913else 8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8915for as_dir in $PATH 8916do 8917 IFS=$as_save_IFS 8918 test -z "$as_dir" && as_dir=. 8919 for ac_exec_ext in '' $ac_executable_extensions; do 8920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8923 break 2 8924 fi 8925done 8926 done 8927IFS=$as_save_IFS 8928 8929fi 8930fi 8931DLLTOOL=$ac_cv_prog_DLLTOOL 8932if test -n "$DLLTOOL"; then 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8934$as_echo "$DLLTOOL" >&6; } 8935else 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8937$as_echo "no" >&6; } 8938fi 8939 8940 8941fi 8942if test -z "$ac_cv_prog_DLLTOOL"; then 8943 ac_ct_DLLTOOL=$DLLTOOL 8944 # Extract the first word of "dlltool", so it can be a program name with args. 8945set dummy dlltool; ac_word=$2 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8947$as_echo_n "checking for $ac_word... " >&6; } 8948if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950else 8951 if test -n "$ac_ct_DLLTOOL"; then 8952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8953else 8954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8955for as_dir in $PATH 8956do 8957 IFS=$as_save_IFS 8958 test -z "$as_dir" && as_dir=. 8959 for ac_exec_ext in '' $ac_executable_extensions; do 8960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8961 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8963 break 2 8964 fi 8965done 8966 done 8967IFS=$as_save_IFS 8968 8969fi 8970fi 8971ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8972if test -n "$ac_ct_DLLTOOL"; then 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8974$as_echo "$ac_ct_DLLTOOL" >&6; } 8975else 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977$as_echo "no" >&6; } 8978fi 8979 8980 if test "x$ac_ct_DLLTOOL" = x; then 8981 DLLTOOL="false" 8982 else 8983 case $cross_compiling:$ac_tool_warned in 8984yes:) 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8987ac_tool_warned=yes ;; 8988esac 8989 DLLTOOL=$ac_ct_DLLTOOL 8990 fi 8991else 8992 DLLTOOL="$ac_cv_prog_DLLTOOL" 8993fi 8994 8995 if test -n "$ac_tool_prefix"; then 8996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8997set dummy ${ac_tool_prefix}objdump; ac_word=$2 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8999$as_echo_n "checking for $ac_word... " >&6; } 9000if ${ac_cv_prog_OBJDUMP+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 if test -n "$OBJDUMP"; then 9004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9005else 9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007for as_dir in $PATH 9008do 9009 IFS=$as_save_IFS 9010 test -z "$as_dir" && as_dir=. 9011 for ac_exec_ext in '' $ac_executable_extensions; do 9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9013 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9015 break 2 9016 fi 9017done 9018 done 9019IFS=$as_save_IFS 9020 9021fi 9022fi 9023OBJDUMP=$ac_cv_prog_OBJDUMP 9024if test -n "$OBJDUMP"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9026$as_echo "$OBJDUMP" >&6; } 9027else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029$as_echo "no" >&6; } 9030fi 9031 9032 9033fi 9034if test -z "$ac_cv_prog_OBJDUMP"; then 9035 ac_ct_OBJDUMP=$OBJDUMP 9036 # Extract the first word of "objdump", so it can be a program name with args. 9037set dummy objdump; ac_word=$2 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9039$as_echo_n "checking for $ac_word... " >&6; } 9040if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 if test -n "$ac_ct_OBJDUMP"; then 9044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9045else 9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9047for as_dir in $PATH 9048do 9049 IFS=$as_save_IFS 9050 test -z "$as_dir" && as_dir=. 9051 for ac_exec_ext in '' $ac_executable_extensions; do 9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9053 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9055 break 2 9056 fi 9057done 9058 done 9059IFS=$as_save_IFS 9060 9061fi 9062fi 9063ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9064if test -n "$ac_ct_OBJDUMP"; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9066$as_echo "$ac_ct_OBJDUMP" >&6; } 9067else 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9069$as_echo "no" >&6; } 9070fi 9071 9072 if test "x$ac_ct_OBJDUMP" = x; then 9073 OBJDUMP="false" 9074 else 9075 case $cross_compiling:$ac_tool_warned in 9076yes:) 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9079ac_tool_warned=yes ;; 9080esac 9081 OBJDUMP=$ac_ct_OBJDUMP 9082 fi 9083else 9084 OBJDUMP="$ac_cv_prog_OBJDUMP" 9085fi 9086 9087 ;; 9088esac 9089 9090test -z "$AS" && AS=as 9091 9092 9093 9094 9095 9096test -z "$DLLTOOL" && DLLTOOL=dlltool 9097 9098 9099 9100 9101 9102test -z "$OBJDUMP" && OBJDUMP=objdump 9103 9104 9105 9106 9107# Check whether --enable-static was given. 9108if test "${enable_static+set}" = set; then : 9109 enableval=$enable_static; p=${PACKAGE-default} 9110 case $enableval in 9111 yes) enable_static=yes ;; 9112 no) enable_static=no ;; 9113 *) 9114 enable_static=no 9115 # Look at the argument we got. We use all the common list separators. 9116 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9117 for pkg in $enableval; do 9118 IFS=$lt_save_ifs 9119 if test "X$pkg" = "X$p"; then 9120 enable_static=yes 9121 fi 9122 done 9123 IFS=$lt_save_ifs 9124 ;; 9125 esac 9126else 9127 enable_static=no 9128fi 9129 9130 9131 9132 9133 9134 9135 9136 9137# Check whether --with-pic was given. 9138if test "${with_pic+set}" = set; then : 9139 withval=$with_pic; lt_p=${PACKAGE-default} 9140 case $withval in 9141 yes|no) pic_mode=$withval ;; 9142 *) 9143 pic_mode=default 9144 # Look at the argument we got. We use all the common list separators. 9145 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9146 for lt_pkg in $withval; do 9147 IFS=$lt_save_ifs 9148 if test "X$lt_pkg" = "X$lt_p"; then 9149 pic_mode=yes 9150 fi 9151 done 9152 IFS=$lt_save_ifs 9153 ;; 9154 esac 9155else 9156 pic_mode=yes 9157fi 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 enable_dlopen=no 9168 9169 9170 9171 # Check whether --enable-shared was given. 9172if test "${enable_shared+set}" = set; then : 9173 enableval=$enable_shared; p=${PACKAGE-default} 9174 case $enableval in 9175 yes) enable_shared=yes ;; 9176 no) enable_shared=no ;; 9177 *) 9178 enable_shared=no 9179 # Look at the argument we got. We use all the common list separators. 9180 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9181 for pkg in $enableval; do 9182 IFS=$lt_save_ifs 9183 if test "X$pkg" = "X$p"; then 9184 enable_shared=yes 9185 fi 9186 done 9187 IFS=$lt_save_ifs 9188 ;; 9189 esac 9190else 9191 enable_shared=yes 9192fi 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 # Check whether --enable-fast-install was given. 9205if test "${enable_fast_install+set}" = set; then : 9206 enableval=$enable_fast_install; p=${PACKAGE-default} 9207 case $enableval in 9208 yes) enable_fast_install=yes ;; 9209 no) enable_fast_install=no ;; 9210 *) 9211 enable_fast_install=no 9212 # Look at the argument we got. We use all the common list separators. 9213 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9214 for pkg in $enableval; do 9215 IFS=$lt_save_ifs 9216 if test "X$pkg" = "X$p"; then 9217 enable_fast_install=yes 9218 fi 9219 done 9220 IFS=$lt_save_ifs 9221 ;; 9222 esac 9223else 9224 enable_fast_install=yes 9225fi 9226 9227 9228 9229 9230 9231 9232 9233 9234 shared_archive_member_spec= 9235case $host,$enable_shared in 9236power*-*-aix[5-9]*,yes) 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9238$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9239 9240# Check whether --with-aix-soname was given. 9241if test "${with_aix_soname+set}" = set; then : 9242 withval=$with_aix_soname; case $withval in 9243 aix|svr4|both) 9244 ;; 9245 *) 9246 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9247 ;; 9248 esac 9249 lt_cv_with_aix_soname=$with_aix_soname 9250else 9251 if ${lt_cv_with_aix_soname+:} false; then : 9252 $as_echo_n "(cached) " >&6 9253else 9254 lt_cv_with_aix_soname=aix 9255fi 9256 9257 with_aix_soname=$lt_cv_with_aix_soname 9258fi 9259 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9261$as_echo "$with_aix_soname" >&6; } 9262 if test aix != "$with_aix_soname"; then 9263 # For the AIX way of multilib, we name the shared archive member 9264 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9265 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9266 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9267 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9268 if test 64 = "${OBJECT_MODE-32}"; then 9269 shared_archive_member_spec=shr_64 9270 else 9271 shared_archive_member_spec=shr 9272 fi 9273 fi 9274 ;; 9275*) 9276 with_aix_soname=aix 9277 ;; 9278esac 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289# This can be used to rebuild libtool when needed 9290LIBTOOL_DEPS=$ltmain 9291 9292# Always use our own libtool. 9293LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324test -z "$LN_S" && LN_S="ln -s" 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339if test -n "${ZSH_VERSION+set}"; then 9340 setopt NO_GLOB_SUBST 9341fi 9342 9343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9344$as_echo_n "checking for objdir... " >&6; } 9345if ${lt_cv_objdir+:} false; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 rm -f .libs 2>/dev/null 9349mkdir .libs 2>/dev/null 9350if test -d .libs; then 9351 lt_cv_objdir=.libs 9352else 9353 # MS-DOS does not allow filenames that begin with a dot. 9354 lt_cv_objdir=_libs 9355fi 9356rmdir .libs 2>/dev/null 9357fi 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9359$as_echo "$lt_cv_objdir" >&6; } 9360objdir=$lt_cv_objdir 9361 9362 9363 9364 9365 9366cat >>confdefs.h <<_ACEOF 9367#define LT_OBJDIR "$lt_cv_objdir/" 9368_ACEOF 9369 9370 9371 9372 9373case $host_os in 9374aix3*) 9375 # AIX sometimes has problems with the GCC collect2 program. For some 9376 # reason, if we set the COLLECT_NAMES environment variable, the problems 9377 # vanish in a puff of smoke. 9378 if test set != "${COLLECT_NAMES+set}"; then 9379 COLLECT_NAMES= 9380 export COLLECT_NAMES 9381 fi 9382 ;; 9383esac 9384 9385# Global variables: 9386ofile=libtool 9387can_build_shared=yes 9388 9389# All known linkers require a '.a' archive for static linking (except MSVC, 9390# which needs '.lib'). 9391libext=a 9392 9393with_gnu_ld=$lt_cv_prog_gnu_ld 9394 9395old_CC=$CC 9396old_CFLAGS=$CFLAGS 9397 9398# Set sane defaults for various variables 9399test -z "$CC" && CC=cc 9400test -z "$LTCC" && LTCC=$CC 9401test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9402test -z "$LD" && LD=ld 9403test -z "$ac_objext" && ac_objext=o 9404 9405func_cc_basename $compiler 9406cc_basename=$func_cc_basename_result 9407 9408 9409# Only perform the check for file, if the check method requires it 9410test -z "$MAGIC_CMD" && MAGIC_CMD=file 9411case $deplibs_check_method in 9412file_magic*) 9413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9415$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9416if ${lt_cv_path_MAGIC_CMD+:} false; then : 9417 $as_echo_n "(cached) " >&6 9418else 9419 case $MAGIC_CMD in 9420[\\/*] | ?:[\\/]*) 9421 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9422 ;; 9423*) 9424 lt_save_MAGIC_CMD=$MAGIC_CMD 9425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9427 for ac_dir in $ac_dummy; do 9428 IFS=$lt_save_ifs 9429 test -z "$ac_dir" && ac_dir=. 9430 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9431 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9432 if test -n "$file_magic_test_file"; then 9433 case $deplibs_check_method in 9434 "file_magic "*) 9435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9438 $EGREP "$file_magic_regex" > /dev/null; then 9439 : 9440 else 9441 cat <<_LT_EOF 1>&2 9442 9443*** Warning: the command libtool uses to detect shared libraries, 9444*** $file_magic_cmd, produces output that libtool cannot recognize. 9445*** The result is that libtool may fail to recognize shared libraries 9446*** as such. This will affect the creation of libtool libraries that 9447*** depend on shared libraries, but programs linked with such libtool 9448*** libraries will work regardless of this problem. Nevertheless, you 9449*** may want to report the problem to your system manager and/or to 9450*** bug-libtool@gnu.org 9451 9452_LT_EOF 9453 fi ;; 9454 esac 9455 fi 9456 break 9457 fi 9458 done 9459 IFS=$lt_save_ifs 9460 MAGIC_CMD=$lt_save_MAGIC_CMD 9461 ;; 9462esac 9463fi 9464 9465MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9466if test -n "$MAGIC_CMD"; then 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9468$as_echo "$MAGIC_CMD" >&6; } 9469else 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9471$as_echo "no" >&6; } 9472fi 9473 9474 9475 9476 9477 9478if test -z "$lt_cv_path_MAGIC_CMD"; then 9479 if test -n "$ac_tool_prefix"; then 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9481$as_echo_n "checking for file... " >&6; } 9482if ${lt_cv_path_MAGIC_CMD+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484else 9485 case $MAGIC_CMD in 9486[\\/*] | ?:[\\/]*) 9487 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9488 ;; 9489*) 9490 lt_save_MAGIC_CMD=$MAGIC_CMD 9491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9493 for ac_dir in $ac_dummy; do 9494 IFS=$lt_save_ifs 9495 test -z "$ac_dir" && ac_dir=. 9496 if test -f "$ac_dir/file"; then 9497 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9498 if test -n "$file_magic_test_file"; then 9499 case $deplibs_check_method in 9500 "file_magic "*) 9501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9504 $EGREP "$file_magic_regex" > /dev/null; then 9505 : 9506 else 9507 cat <<_LT_EOF 1>&2 9508 9509*** Warning: the command libtool uses to detect shared libraries, 9510*** $file_magic_cmd, produces output that libtool cannot recognize. 9511*** The result is that libtool may fail to recognize shared libraries 9512*** as such. This will affect the creation of libtool libraries that 9513*** depend on shared libraries, but programs linked with such libtool 9514*** libraries will work regardless of this problem. Nevertheless, you 9515*** may want to report the problem to your system manager and/or to 9516*** bug-libtool@gnu.org 9517 9518_LT_EOF 9519 fi ;; 9520 esac 9521 fi 9522 break 9523 fi 9524 done 9525 IFS=$lt_save_ifs 9526 MAGIC_CMD=$lt_save_MAGIC_CMD 9527 ;; 9528esac 9529fi 9530 9531MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9532if test -n "$MAGIC_CMD"; then 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9534$as_echo "$MAGIC_CMD" >&6; } 9535else 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9537$as_echo "no" >&6; } 9538fi 9539 9540 9541 else 9542 MAGIC_CMD=: 9543 fi 9544fi 9545 9546 fi 9547 ;; 9548esac 9549 9550# Use C for the default configuration in the libtool script 9551 9552lt_save_CC=$CC 9553ac_ext=c 9554ac_cpp='$CPP $CPPFLAGS' 9555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9557ac_compiler_gnu=$ac_cv_c_compiler_gnu 9558 9559 9560# Source file extension for C test sources. 9561ac_ext=c 9562 9563# Object file extension for compiled C test sources. 9564objext=o 9565objext=$objext 9566 9567# Code to be used in simple compile tests 9568lt_simple_compile_test_code="int some_variable = 0;" 9569 9570# Code to be used in simple link tests 9571lt_simple_link_test_code='int main(){return(0);}' 9572 9573 9574 9575 9576 9577 9578 9579# If no C compiler was specified, use CC. 9580LTCC=${LTCC-"$CC"} 9581 9582# If no C compiler flags were specified, use CFLAGS. 9583LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9584 9585# Allow CC to be a program name with arguments. 9586compiler=$CC 9587 9588# Save the default compiler, since it gets overwritten when the other 9589# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9590compiler_DEFAULT=$CC 9591 9592# save warnings/boilerplate of simple test code 9593ac_outfile=conftest.$ac_objext 9594echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9595eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9596_lt_compiler_boilerplate=`cat conftest.err` 9597$RM conftest* 9598 9599ac_outfile=conftest.$ac_objext 9600echo "$lt_simple_link_test_code" >conftest.$ac_ext 9601eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9602_lt_linker_boilerplate=`cat conftest.err` 9603$RM -r conftest* 9604 9605 9606## CAVEAT EMPTOR: 9607## There is no encapsulation within the following macros, do not change 9608## the running order or otherwise move them around unless you know exactly 9609## what you are doing... 9610if test -n "$compiler"; then 9611 9612lt_prog_compiler_no_builtin_flag= 9613 9614if test yes = "$GCC"; then 9615 case $cc_basename in 9616 nvcc*) 9617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9618 *) 9619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9620 esac 9621 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9623$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9624if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 lt_cv_prog_compiler_rtti_exceptions=no 9628 ac_outfile=conftest.$ac_objext 9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9630 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9631 # Insert the option either (1) after the last *FLAGS variable, or 9632 # (2) before a word containing "conftest.", or (3) at the end. 9633 # Note that $ac_compile itself does not contain backslashes and begins 9634 # with a dollar sign (not a hyphen), so the echo should work correctly. 9635 # The option is referenced via a variable to avoid confusing sed. 9636 lt_compile=`echo "$ac_compile" | $SED \ 9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9639 -e 's:$: $lt_compiler_flag:'` 9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9641 (eval "$lt_compile" 2>conftest.err) 9642 ac_status=$? 9643 cat conftest.err >&5 9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9645 if (exit $ac_status) && test -s "$ac_outfile"; then 9646 # The compiler can only warn and ignore the option if not recognized 9647 # So say no if there are warnings other than the usual output. 9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9651 lt_cv_prog_compiler_rtti_exceptions=yes 9652 fi 9653 fi 9654 $RM conftest* 9655 9656fi 9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9658$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9659 9660if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9662else 9663 : 9664fi 9665 9666fi 9667 9668 9669 9670 9671 9672 9673 lt_prog_compiler_wl= 9674lt_prog_compiler_pic= 9675lt_prog_compiler_static= 9676 9677 9678 if test yes = "$GCC"; then 9679 lt_prog_compiler_wl='-Wl,' 9680 lt_prog_compiler_static='-static' 9681 9682 case $host_os in 9683 aix*) 9684 # All AIX code is PIC. 9685 if test ia64 = "$host_cpu"; then 9686 # AIX 5 now supports IA64 processor 9687 lt_prog_compiler_static='-Bstatic' 9688 fi 9689 lt_prog_compiler_pic='-fPIC' 9690 ;; 9691 9692 amigaos*) 9693 case $host_cpu in 9694 powerpc) 9695 # see comment about AmigaOS4 .so support 9696 lt_prog_compiler_pic='-fPIC' 9697 ;; 9698 m68k) 9699 # FIXME: we need at least 68020 code to build shared libraries, but 9700 # adding the '-m68020' flag to GCC prevents building anything better, 9701 # like '-m68040'. 9702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9703 ;; 9704 esac 9705 ;; 9706 9707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9708 # PIC is the default for these OSes. 9709 ;; 9710 9711 mingw* | cygwin* | pw32* | os2* | cegcc*) 9712 # This hack is so that the source file can tell whether it is being 9713 # built for inclusion in a dll (and should export symbols for example). 9714 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9715 # (--disable-auto-import) libraries 9716 lt_prog_compiler_pic='-DDLL_EXPORT' 9717 case $host_os in 9718 os2*) 9719 lt_prog_compiler_static='$wl-static' 9720 ;; 9721 esac 9722 ;; 9723 9724 darwin* | rhapsody*) 9725 # PIC is the default on this platform 9726 # Common symbols not allowed in MH_DYLIB files 9727 lt_prog_compiler_pic='-fno-common' 9728 ;; 9729 9730 haiku*) 9731 # PIC is the default for Haiku. 9732 # The "-static" flag exists, but is broken. 9733 lt_prog_compiler_static= 9734 ;; 9735 9736 hpux*) 9737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9739 # sets the default TLS model and affects inlining. 9740 case $host_cpu in 9741 hppa*64*) 9742 # +Z the default 9743 ;; 9744 *) 9745 lt_prog_compiler_pic='-fPIC' 9746 ;; 9747 esac 9748 ;; 9749 9750 interix[3-9]*) 9751 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9752 # Instead, we relocate shared libraries at runtime. 9753 ;; 9754 9755 msdosdjgpp*) 9756 # Just because we use GCC doesn't mean we suddenly get shared libraries 9757 # on systems that don't support them. 9758 lt_prog_compiler_can_build_shared=no 9759 enable_shared=no 9760 ;; 9761 9762 *nto* | *qnx*) 9763 # QNX uses GNU C++, but need to define -shared option too, otherwise 9764 # it will coredump. 9765 lt_prog_compiler_pic='-fPIC -shared' 9766 ;; 9767 9768 sysv4*MP*) 9769 if test -d /usr/nec; then 9770 lt_prog_compiler_pic=-Kconform_pic 9771 fi 9772 ;; 9773 9774 *) 9775 lt_prog_compiler_pic='-fPIC' 9776 ;; 9777 esac 9778 9779 case $cc_basename in 9780 nvcc*) # Cuda Compiler Driver 2.2 9781 lt_prog_compiler_wl='-Xlinker ' 9782 if test -n "$lt_prog_compiler_pic"; then 9783 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9784 fi 9785 ;; 9786 esac 9787 else 9788 # PORTME Check for flag to pass linker flags through the system compiler. 9789 case $host_os in 9790 aix*) 9791 lt_prog_compiler_wl='-Wl,' 9792 if test ia64 = "$host_cpu"; then 9793 # AIX 5 now supports IA64 processor 9794 lt_prog_compiler_static='-Bstatic' 9795 else 9796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9797 fi 9798 ;; 9799 9800 darwin* | rhapsody*) 9801 # PIC is the default on this platform 9802 # Common symbols not allowed in MH_DYLIB files 9803 lt_prog_compiler_pic='-fno-common' 9804 case $cc_basename in 9805 nagfor*) 9806 # NAG Fortran compiler 9807 lt_prog_compiler_wl='-Wl,-Wl,,' 9808 lt_prog_compiler_pic='-PIC' 9809 lt_prog_compiler_static='-Bstatic' 9810 ;; 9811 esac 9812 ;; 9813 9814 mingw* | cygwin* | pw32* | os2* | cegcc*) 9815 # This hack is so that the source file can tell whether it is being 9816 # built for inclusion in a dll (and should export symbols for example). 9817 lt_prog_compiler_pic='-DDLL_EXPORT' 9818 case $host_os in 9819 os2*) 9820 lt_prog_compiler_static='$wl-static' 9821 ;; 9822 esac 9823 ;; 9824 9825 hpux9* | hpux10* | hpux11*) 9826 lt_prog_compiler_wl='-Wl,' 9827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9828 # not for PA HP-UX. 9829 case $host_cpu in 9830 hppa*64*|ia64*) 9831 # +Z the default 9832 ;; 9833 *) 9834 lt_prog_compiler_pic='+Z' 9835 ;; 9836 esac 9837 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9838 lt_prog_compiler_static='$wl-a ${wl}archive' 9839 ;; 9840 9841 irix5* | irix6* | nonstopux*) 9842 lt_prog_compiler_wl='-Wl,' 9843 # PIC (with -KPIC) is the default. 9844 lt_prog_compiler_static='-non_shared' 9845 ;; 9846 9847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9848 case $cc_basename in 9849 # old Intel for x86_64, which still supported -KPIC. 9850 ecc*) 9851 lt_prog_compiler_wl='-Wl,' 9852 lt_prog_compiler_pic='-KPIC' 9853 lt_prog_compiler_static='-static' 9854 ;; 9855 # icc used to be incompatible with GCC. 9856 # ICC 10 doesn't accept -KPIC any more. 9857 icc* | ifort*) 9858 lt_prog_compiler_wl='-Wl,' 9859 lt_prog_compiler_pic='-fPIC' 9860 lt_prog_compiler_static='-static' 9861 ;; 9862 # Lahey Fortran 8.1. 9863 lf95*) 9864 lt_prog_compiler_wl='-Wl,' 9865 lt_prog_compiler_pic='--shared' 9866 lt_prog_compiler_static='--static' 9867 ;; 9868 nagfor*) 9869 # NAG Fortran compiler 9870 lt_prog_compiler_wl='-Wl,-Wl,,' 9871 lt_prog_compiler_pic='-PIC' 9872 lt_prog_compiler_static='-Bstatic' 9873 ;; 9874 tcc*) 9875 # Fabrice Bellard et al's Tiny C Compiler 9876 lt_prog_compiler_wl='-Wl,' 9877 lt_prog_compiler_pic='-fPIC' 9878 lt_prog_compiler_static='-static' 9879 ;; 9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9881 # Portland Group compilers (*not* the Pentium gcc compiler, 9882 # which looks to be a dead project) 9883 lt_prog_compiler_wl='-Wl,' 9884 lt_prog_compiler_pic='-fpic' 9885 lt_prog_compiler_static='-Bstatic' 9886 ;; 9887 ccc*) 9888 lt_prog_compiler_wl='-Wl,' 9889 # All Alpha code is PIC. 9890 lt_prog_compiler_static='-non_shared' 9891 ;; 9892 xl* | bgxl* | bgf* | mpixl*) 9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9894 lt_prog_compiler_wl='-Wl,' 9895 lt_prog_compiler_pic='-qpic' 9896 lt_prog_compiler_static='-qstaticlink' 9897 ;; 9898 *) 9899 case `$CC -V 2>&1 | sed 5q` in 9900 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9902 lt_prog_compiler_pic='-KPIC' 9903 lt_prog_compiler_static='-Bstatic' 9904 lt_prog_compiler_wl='' 9905 ;; 9906 *Sun\ F* | *Sun*Fortran*) 9907 lt_prog_compiler_pic='-KPIC' 9908 lt_prog_compiler_static='-Bstatic' 9909 lt_prog_compiler_wl='-Qoption ld ' 9910 ;; 9911 *Sun\ C*) 9912 # Sun C 5.9 9913 lt_prog_compiler_pic='-KPIC' 9914 lt_prog_compiler_static='-Bstatic' 9915 lt_prog_compiler_wl='-Wl,' 9916 ;; 9917 *Intel*\ [CF]*Compiler*) 9918 lt_prog_compiler_wl='-Wl,' 9919 lt_prog_compiler_pic='-fPIC' 9920 lt_prog_compiler_static='-static' 9921 ;; 9922 *Portland\ Group*) 9923 lt_prog_compiler_wl='-Wl,' 9924 lt_prog_compiler_pic='-fpic' 9925 lt_prog_compiler_static='-Bstatic' 9926 ;; 9927 esac 9928 ;; 9929 esac 9930 ;; 9931 9932 newsos6) 9933 lt_prog_compiler_pic='-KPIC' 9934 lt_prog_compiler_static='-Bstatic' 9935 ;; 9936 9937 *nto* | *qnx*) 9938 # QNX uses GNU C++, but need to define -shared option too, otherwise 9939 # it will coredump. 9940 lt_prog_compiler_pic='-fPIC -shared' 9941 ;; 9942 9943 osf3* | osf4* | osf5*) 9944 lt_prog_compiler_wl='-Wl,' 9945 # All OSF/1 code is PIC. 9946 lt_prog_compiler_static='-non_shared' 9947 ;; 9948 9949 rdos*) 9950 lt_prog_compiler_static='-non_shared' 9951 ;; 9952 9953 solaris*) 9954 lt_prog_compiler_pic='-KPIC' 9955 lt_prog_compiler_static='-Bstatic' 9956 case $cc_basename in 9957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9958 lt_prog_compiler_wl='-Qoption ld ';; 9959 *) 9960 lt_prog_compiler_wl='-Wl,';; 9961 esac 9962 ;; 9963 9964 sunos4*) 9965 lt_prog_compiler_wl='-Qoption ld ' 9966 lt_prog_compiler_pic='-PIC' 9967 lt_prog_compiler_static='-Bstatic' 9968 ;; 9969 9970 sysv4 | sysv4.2uw2* | sysv4.3*) 9971 lt_prog_compiler_wl='-Wl,' 9972 lt_prog_compiler_pic='-KPIC' 9973 lt_prog_compiler_static='-Bstatic' 9974 ;; 9975 9976 sysv4*MP*) 9977 if test -d /usr/nec; then 9978 lt_prog_compiler_pic='-Kconform_pic' 9979 lt_prog_compiler_static='-Bstatic' 9980 fi 9981 ;; 9982 9983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9984 lt_prog_compiler_wl='-Wl,' 9985 lt_prog_compiler_pic='-KPIC' 9986 lt_prog_compiler_static='-Bstatic' 9987 ;; 9988 9989 unicos*) 9990 lt_prog_compiler_wl='-Wl,' 9991 lt_prog_compiler_can_build_shared=no 9992 ;; 9993 9994 uts4*) 9995 lt_prog_compiler_pic='-pic' 9996 lt_prog_compiler_static='-Bstatic' 9997 ;; 9998 9999 *) 10000 lt_prog_compiler_can_build_shared=no 10001 ;; 10002 esac 10003 fi 10004 10005case $host_os in 10006 # For platforms that do not support PIC, -DPIC is meaningless: 10007 *djgpp*) 10008 lt_prog_compiler_pic= 10009 ;; 10010 *) 10011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10012 ;; 10013esac 10014 10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10016$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10017if ${lt_cv_prog_compiler_pic+:} false; then : 10018 $as_echo_n "(cached) " >&6 10019else 10020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10021fi 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10023$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10024lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10025 10026# 10027# Check to make sure the PIC flag actually works. 10028# 10029if test -n "$lt_prog_compiler_pic"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10031$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10032if ${lt_cv_prog_compiler_pic_works+:} false; then : 10033 $as_echo_n "(cached) " >&6 10034else 10035 lt_cv_prog_compiler_pic_works=no 10036 ac_outfile=conftest.$ac_objext 10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10039 # Insert the option either (1) after the last *FLAGS variable, or 10040 # (2) before a word containing "conftest.", or (3) at the end. 10041 # Note that $ac_compile itself does not contain backslashes and begins 10042 # with a dollar sign (not a hyphen), so the echo should work correctly. 10043 # The option is referenced via a variable to avoid confusing sed. 10044 lt_compile=`echo "$ac_compile" | $SED \ 10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10047 -e 's:$: $lt_compiler_flag:'` 10048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10049 (eval "$lt_compile" 2>conftest.err) 10050 ac_status=$? 10051 cat conftest.err >&5 10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10053 if (exit $ac_status) && test -s "$ac_outfile"; then 10054 # The compiler can only warn and ignore the option if not recognized 10055 # So say no if there are warnings other than the usual output. 10056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10059 lt_cv_prog_compiler_pic_works=yes 10060 fi 10061 fi 10062 $RM conftest* 10063 10064fi 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10066$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10067 10068if test yes = "$lt_cv_prog_compiler_pic_works"; then 10069 case $lt_prog_compiler_pic in 10070 "" | " "*) ;; 10071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10072 esac 10073else 10074 lt_prog_compiler_pic= 10075 lt_prog_compiler_can_build_shared=no 10076fi 10077 10078fi 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090# 10091# Check to make sure the static flag actually works. 10092# 10093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10096if ${lt_cv_prog_compiler_static_works+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 lt_cv_prog_compiler_static_works=no 10100 save_LDFLAGS=$LDFLAGS 10101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10102 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10104 # The linker can only warn and ignore the option if not recognized 10105 # So say no if there are warnings 10106 if test -s conftest.err; then 10107 # Append any errors to the config.log. 10108 cat conftest.err 1>&5 10109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10111 if diff conftest.exp conftest.er2 >/dev/null; then 10112 lt_cv_prog_compiler_static_works=yes 10113 fi 10114 else 10115 lt_cv_prog_compiler_static_works=yes 10116 fi 10117 fi 10118 $RM -r conftest* 10119 LDFLAGS=$save_LDFLAGS 10120 10121fi 10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10123$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10124 10125if test yes = "$lt_cv_prog_compiler_static_works"; then 10126 : 10127else 10128 lt_prog_compiler_static= 10129fi 10130 10131 10132 10133 10134 10135 10136 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10139if ${lt_cv_prog_compiler_c_o+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 lt_cv_prog_compiler_c_o=no 10143 $RM -r conftest 2>/dev/null 10144 mkdir conftest 10145 cd conftest 10146 mkdir out 10147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10148 10149 lt_compiler_flag="-o out/conftest2.$ac_objext" 10150 # Insert the option either (1) after the last *FLAGS variable, or 10151 # (2) before a word containing "conftest.", or (3) at the end. 10152 # Note that $ac_compile itself does not contain backslashes and begins 10153 # with a dollar sign (not a hyphen), so the echo should work correctly. 10154 lt_compile=`echo "$ac_compile" | $SED \ 10155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10157 -e 's:$: $lt_compiler_flag:'` 10158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10159 (eval "$lt_compile" 2>out/conftest.err) 10160 ac_status=$? 10161 cat out/conftest.err >&5 10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10163 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10164 then 10165 # The compiler can only warn and ignore the option if not recognized 10166 # So say no if there are warnings 10167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10170 lt_cv_prog_compiler_c_o=yes 10171 fi 10172 fi 10173 chmod u+w . 2>&5 10174 $RM conftest* 10175 # SGI C++ compiler will create directory out/ii_files/ for 10176 # template instantiation 10177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10178 $RM out/* && rmdir out 10179 cd .. 10180 $RM -r conftest 10181 $RM conftest* 10182 10183fi 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10185$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10186 10187 10188 10189 10190 10191 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10194if ${lt_cv_prog_compiler_c_o+:} false; then : 10195 $as_echo_n "(cached) " >&6 10196else 10197 lt_cv_prog_compiler_c_o=no 10198 $RM -r conftest 2>/dev/null 10199 mkdir conftest 10200 cd conftest 10201 mkdir out 10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10203 10204 lt_compiler_flag="-o out/conftest2.$ac_objext" 10205 # Insert the option either (1) after the last *FLAGS variable, or 10206 # (2) before a word containing "conftest.", or (3) at the end. 10207 # Note that $ac_compile itself does not contain backslashes and begins 10208 # with a dollar sign (not a hyphen), so the echo should work correctly. 10209 lt_compile=`echo "$ac_compile" | $SED \ 10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10212 -e 's:$: $lt_compiler_flag:'` 10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10214 (eval "$lt_compile" 2>out/conftest.err) 10215 ac_status=$? 10216 cat out/conftest.err >&5 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10219 then 10220 # The compiler can only warn and ignore the option if not recognized 10221 # So say no if there are warnings 10222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10225 lt_cv_prog_compiler_c_o=yes 10226 fi 10227 fi 10228 chmod u+w . 2>&5 10229 $RM conftest* 10230 # SGI C++ compiler will create directory out/ii_files/ for 10231 # template instantiation 10232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10233 $RM out/* && rmdir out 10234 cd .. 10235 $RM -r conftest 10236 $RM conftest* 10237 10238fi 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10240$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10241 10242 10243 10244 10245hard_links=nottested 10246if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10247 # do not overwrite the value of need_locks provided by the user 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10249$as_echo_n "checking if we can lock with hard links... " >&6; } 10250 hard_links=yes 10251 $RM conftest* 10252 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10253 touch conftest.a 10254 ln conftest.a conftest.b 2>&5 || hard_links=no 10255 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10257$as_echo "$hard_links" >&6; } 10258 if test no = "$hard_links"; then 10259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10260$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10261 need_locks=warn 10262 fi 10263else 10264 need_locks=no 10265fi 10266 10267 10268 10269 10270 10271 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10274 10275 runpath_var= 10276 allow_undefined_flag= 10277 always_export_symbols=no 10278 archive_cmds= 10279 archive_expsym_cmds= 10280 compiler_needs_object=no 10281 enable_shared_with_static_runtimes=no 10282 export_dynamic_flag_spec= 10283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10284 hardcode_automatic=no 10285 hardcode_direct=no 10286 hardcode_direct_absolute=no 10287 hardcode_libdir_flag_spec= 10288 hardcode_libdir_separator= 10289 hardcode_minus_L=no 10290 hardcode_shlibpath_var=unsupported 10291 inherit_rpath=no 10292 link_all_deplibs=unknown 10293 module_cmds= 10294 module_expsym_cmds= 10295 old_archive_from_new_cmds= 10296 old_archive_from_expsyms_cmds= 10297 thread_safe_flag_spec= 10298 whole_archive_flag_spec= 10299 # include_expsyms should be a list of space-separated symbols to be *always* 10300 # included in the symbol list 10301 include_expsyms= 10302 # exclude_expsyms can be an extended regexp of symbols to exclude 10303 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10304 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10305 # as well as any symbol that contains 'd'. 10306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10308 # platforms (ab)use it in PIC code, but their linkers get confused if 10309 # the symbol is explicitly referenced. Since portable code cannot 10310 # rely on this symbol name, it's probably fine to never include it in 10311 # preloaded symbol tables. 10312 # Exclude shared library initialization/finalization symbols. 10313 extract_expsyms_cmds= 10314 10315 case $host_os in 10316 cygwin* | mingw* | pw32* | cegcc*) 10317 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10318 # When not using gcc, we currently assume that we are using 10319 # Microsoft Visual C++. 10320 if test yes != "$GCC"; then 10321 with_gnu_ld=no 10322 fi 10323 ;; 10324 interix*) 10325 # we just hope/assume this is gcc and not c89 (= MSVC++) 10326 with_gnu_ld=yes 10327 ;; 10328 openbsd* | bitrig*) 10329 with_gnu_ld=no 10330 ;; 10331 linux* | k*bsd*-gnu | gnu*) 10332 link_all_deplibs=no 10333 ;; 10334 esac 10335 10336 ld_shlibs=yes 10337 10338 # On some targets, GNU ld is compatible enough with the native linker 10339 # that we're better off using the native interface for both. 10340 lt_use_gnu_ld_interface=no 10341 if test yes = "$with_gnu_ld"; then 10342 case $host_os in 10343 aix*) 10344 # The AIX port of GNU ld has always aspired to compatibility 10345 # with the native linker. However, as the warning in the GNU ld 10346 # block says, versions before 2.19.5* couldn't really create working 10347 # shared libraries, regardless of the interface used. 10348 case `$LD -v 2>&1` in 10349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10350 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10351 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10352 *) 10353 lt_use_gnu_ld_interface=yes 10354 ;; 10355 esac 10356 ;; 10357 *) 10358 lt_use_gnu_ld_interface=yes 10359 ;; 10360 esac 10361 fi 10362 10363 if test yes = "$lt_use_gnu_ld_interface"; then 10364 # If archive_cmds runs LD, not CC, wlarc should be empty 10365 wlarc='$wl' 10366 10367 # Set some defaults for GNU ld with shared library support. These 10368 # are reset later if shared libraries are not supported. Putting them 10369 # here allows them to be overridden if necessary. 10370 runpath_var=LD_RUN_PATH 10371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10372 export_dynamic_flag_spec='$wl--export-dynamic' 10373 # ancient GNU ld didn't support --whole-archive et. al. 10374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10375 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10376 else 10377 whole_archive_flag_spec= 10378 fi 10379 supports_anon_versioning=no 10380 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10381 *GNU\ gold*) supports_anon_versioning=yes ;; 10382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10385 *\ 2.11.*) ;; # other 2.11 versions 10386 *) supports_anon_versioning=yes ;; 10387 esac 10388 10389 # See if GNU ld supports shared libraries. 10390 case $host_os in 10391 aix[3-9]*) 10392 # On AIX/PPC, the GNU linker is very broken 10393 if test ia64 != "$host_cpu"; then 10394 ld_shlibs=no 10395 cat <<_LT_EOF 1>&2 10396 10397*** Warning: the GNU linker, at least up to release 2.19, is reported 10398*** to be unable to reliably create shared libraries on AIX. 10399*** Therefore, libtool is disabling shared libraries support. If you 10400*** really care for shared libraries, you may want to install binutils 10401*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10402*** You will then need to restart the configuration process. 10403 10404_LT_EOF 10405 fi 10406 ;; 10407 10408 amigaos*) 10409 case $host_cpu in 10410 powerpc) 10411 # see comment about AmigaOS4 .so support 10412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10413 archive_expsym_cmds='' 10414 ;; 10415 m68k) 10416 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)' 10417 hardcode_libdir_flag_spec='-L$libdir' 10418 hardcode_minus_L=yes 10419 ;; 10420 esac 10421 ;; 10422 10423 beos*) 10424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10425 allow_undefined_flag=unsupported 10426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10427 # support --undefined. This deserves some investigation. FIXME 10428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10429 else 10430 ld_shlibs=no 10431 fi 10432 ;; 10433 10434 cygwin* | mingw* | pw32* | cegcc*) 10435 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10436 # as there is no search path for DLLs. 10437 hardcode_libdir_flag_spec='-L$libdir' 10438 export_dynamic_flag_spec='$wl--export-all-symbols' 10439 allow_undefined_flag=unsupported 10440 always_export_symbols=no 10441 enable_shared_with_static_runtimes=yes 10442 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' 10443 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10444 10445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10447 # If the export-symbols file already is a .def file, use it as 10448 # is; otherwise, prepend EXPORTS... 10449 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10450 cp $export_symbols $output_objdir/$soname.def; 10451 else 10452 echo EXPORTS > $output_objdir/$soname.def; 10453 cat $export_symbols >> $output_objdir/$soname.def; 10454 fi~ 10455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10456 else 10457 ld_shlibs=no 10458 fi 10459 ;; 10460 10461 haiku*) 10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10463 link_all_deplibs=yes 10464 ;; 10465 10466 os2*) 10467 hardcode_libdir_flag_spec='-L$libdir' 10468 hardcode_minus_L=yes 10469 allow_undefined_flag=unsupported 10470 shrext_cmds=.dll 10471 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10474 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10475 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10477 emximp -o $lib $output_objdir/$libname.def' 10478 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10481 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10482 prefix_cmds="$SED"~ 10483 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10484 prefix_cmds="$prefix_cmds -e 1d"; 10485 fi~ 10486 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10487 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10489 emximp -o $lib $output_objdir/$libname.def' 10490 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10491 enable_shared_with_static_runtimes=yes 10492 ;; 10493 10494 interix[3-9]*) 10495 hardcode_direct=no 10496 hardcode_shlibpath_var=no 10497 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10498 export_dynamic_flag_spec='$wl-E' 10499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10500 # Instead, shared libraries are loaded at an image base (0x10000000 by 10501 # default) and relocated if they conflict, which is a slow very memory 10502 # consuming and fragmenting process. To avoid this, we pick a random, 10503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10504 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10506 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' 10507 ;; 10508 10509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10510 tmp_diet=no 10511 if test linux-dietlibc = "$host_os"; then 10512 case $cc_basename in 10513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10514 esac 10515 fi 10516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10517 && test no = "$tmp_diet" 10518 then 10519 tmp_addflag=' $pic_flag' 10520 tmp_sharedflag='-shared' 10521 case $cc_basename,$host_cpu in 10522 pgcc*) # Portland Group C compiler 10523 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' 10524 tmp_addflag=' $pic_flag' 10525 ;; 10526 pgf77* | pgf90* | pgf95* | pgfortran*) 10527 # Portland Group f77 and f90 compilers 10528 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' 10529 tmp_addflag=' $pic_flag -Mnomain' ;; 10530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10531 tmp_addflag=' -i_dynamic' ;; 10532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10533 tmp_addflag=' -i_dynamic -nofor_main' ;; 10534 ifc* | ifort*) # Intel Fortran compiler 10535 tmp_addflag=' -nofor_main' ;; 10536 lf95*) # Lahey Fortran 8.1 10537 whole_archive_flag_spec= 10538 tmp_sharedflag='--shared' ;; 10539 nagfor*) # NAGFOR 5.3 10540 tmp_sharedflag='-Wl,-shared' ;; 10541 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10542 tmp_sharedflag='-qmkshrobj' 10543 tmp_addflag= ;; 10544 nvcc*) # Cuda Compiler Driver 2.2 10545 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' 10546 compiler_needs_object=yes 10547 ;; 10548 esac 10549 case `$CC -V 2>&1 | sed 5q` in 10550 *Sun\ C*) # Sun C 5.9 10551 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' 10552 compiler_needs_object=yes 10553 tmp_sharedflag='-G' ;; 10554 *Sun\ F*) # Sun Fortran 8.3 10555 tmp_sharedflag='-G' ;; 10556 esac 10557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10558 10559 if test yes = "$supports_anon_versioning"; then 10560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10562 echo "local: *; };" >> $output_objdir/$libname.ver~ 10563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10564 fi 10565 10566 case $cc_basename in 10567 tcc*) 10568 export_dynamic_flag_spec='-rdynamic' 10569 ;; 10570 xlf* | bgf* | bgxlf* | mpixlf*) 10571 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10572 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10573 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10574 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10575 if test yes = "$supports_anon_versioning"; then 10576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10578 echo "local: *; };" >> $output_objdir/$libname.ver~ 10579 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10580 fi 10581 ;; 10582 esac 10583 else 10584 ld_shlibs=no 10585 fi 10586 ;; 10587 10588 netbsd* | netbsdelf*-gnu) 10589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10591 wlarc= 10592 else 10593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10595 fi 10596 ;; 10597 10598 solaris*) 10599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10600 ld_shlibs=no 10601 cat <<_LT_EOF 1>&2 10602 10603*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10604*** create shared libraries on Solaris systems. Therefore, libtool 10605*** is disabling shared libraries support. We urge you to upgrade GNU 10606*** binutils to release 2.9.1 or newer. Another option is to modify 10607*** your PATH or compiler configuration so that the native linker is 10608*** used, and then restart. 10609 10610_LT_EOF 10611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10614 else 10615 ld_shlibs=no 10616 fi 10617 ;; 10618 10619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10620 case `$LD -v 2>&1` in 10621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10622 ld_shlibs=no 10623 cat <<_LT_EOF 1>&2 10624 10625*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10626*** reliably create shared libraries on SCO systems. Therefore, libtool 10627*** is disabling shared libraries support. We urge you to upgrade GNU 10628*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10629*** your PATH or compiler configuration so that the native linker is 10630*** used, and then restart. 10631 10632_LT_EOF 10633 ;; 10634 *) 10635 # For security reasons, it is highly recommended that you always 10636 # use absolute paths for naming shared libraries, and exclude the 10637 # DT_RUNPATH tag from executables and libraries. But doing so 10638 # requires that you compile everything twice, which is a pain. 10639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10643 else 10644 ld_shlibs=no 10645 fi 10646 ;; 10647 esac 10648 ;; 10649 10650 sunos4*) 10651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10652 wlarc= 10653 hardcode_direct=yes 10654 hardcode_shlibpath_var=no 10655 ;; 10656 10657 *) 10658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10660 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10661 else 10662 ld_shlibs=no 10663 fi 10664 ;; 10665 esac 10666 10667 if test no = "$ld_shlibs"; then 10668 runpath_var= 10669 hardcode_libdir_flag_spec= 10670 export_dynamic_flag_spec= 10671 whole_archive_flag_spec= 10672 fi 10673 else 10674 # PORTME fill in a description of your system's linker (not GNU ld) 10675 case $host_os in 10676 aix3*) 10677 allow_undefined_flag=unsupported 10678 always_export_symbols=yes 10679 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' 10680 # Note: this linker hardcodes the directories in LIBPATH if there 10681 # are no directories specified by -L. 10682 hardcode_minus_L=yes 10683 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10684 # Neither direct hardcoding nor static linking is supported with a 10685 # broken collect2. 10686 hardcode_direct=unsupported 10687 fi 10688 ;; 10689 10690 aix[4-9]*) 10691 if test ia64 = "$host_cpu"; then 10692 # On IA64, the linker does run time linking by default, so we don't 10693 # have to do anything special. 10694 aix_use_runtimelinking=no 10695 exp_sym_flag='-Bexport' 10696 no_entry_flag= 10697 else 10698 # If we're using GNU nm, then we don't want the "-C" option. 10699 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10700 # Without the "-l" option, or with the "-B" option, AIX nm treats 10701 # weak defined symbols like other global defined symbols, whereas 10702 # GNU nm marks them as "W". 10703 # While the 'weak' keyword is ignored in the Export File, we need 10704 # it in the Import File for the 'aix-soname' feature, so we have 10705 # to replace the "-B" option with "-P" for AIX nm. 10706 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10707 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10708 else 10709 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10710 fi 10711 aix_use_runtimelinking=no 10712 10713 # Test if we are trying to use run time linking or normal 10714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10715 # have runtime linking enabled, and use it for executables. 10716 # For shared libraries, we enable/disable runtime linking 10717 # depending on the kind of the shared library created - 10718 # when "with_aix_soname,aix_use_runtimelinking" is: 10719 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10720 # "aix,yes" lib.so shared, rtl:yes, for executables 10721 # lib.a static archive 10722 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10723 # lib.a(lib.so.V) shared, rtl:no, for executables 10724 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10725 # lib.a(lib.so.V) shared, rtl:no 10726 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10727 # lib.a static archive 10728 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10729 for ld_flag in $LDFLAGS; do 10730 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10731 aix_use_runtimelinking=yes 10732 break 10733 fi 10734 done 10735 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10736 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10737 # so we don't have lib.a shared libs to link our executables. 10738 # We have to force runtime linking in this case. 10739 aix_use_runtimelinking=yes 10740 LDFLAGS="$LDFLAGS -Wl,-brtl" 10741 fi 10742 ;; 10743 esac 10744 10745 exp_sym_flag='-bexport' 10746 no_entry_flag='-bnoentry' 10747 fi 10748 10749 # When large executables or shared objects are built, AIX ld can 10750 # have problems creating the table of contents. If linking a library 10751 # or program results in "error TOC overflow" add -mminimal-toc to 10752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10754 10755 archive_cmds='' 10756 hardcode_direct=yes 10757 hardcode_direct_absolute=yes 10758 hardcode_libdir_separator=':' 10759 link_all_deplibs=yes 10760 file_list_spec='$wl-f,' 10761 case $with_aix_soname,$aix_use_runtimelinking in 10762 aix,*) ;; # traditional, no import file 10763 svr4,* | *,yes) # use import file 10764 # The Import File defines what to hardcode. 10765 hardcode_direct=no 10766 hardcode_direct_absolute=no 10767 ;; 10768 esac 10769 10770 if test yes = "$GCC"; then 10771 case $host_os in aix4.[012]|aix4.[012].*) 10772 # We only want to do this on AIX 4.2 and lower, the check 10773 # below for broken collect2 doesn't work under 4.3+ 10774 collect2name=`$CC -print-prog-name=collect2` 10775 if test -f "$collect2name" && 10776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10777 then 10778 # We have reworked collect2 10779 : 10780 else 10781 # We have old collect2 10782 hardcode_direct=unsupported 10783 # It fails to find uninstalled libraries when the uninstalled 10784 # path is not listed in the libpath. Setting hardcode_minus_L 10785 # to unsupported forces relinking 10786 hardcode_minus_L=yes 10787 hardcode_libdir_flag_spec='-L$libdir' 10788 hardcode_libdir_separator= 10789 fi 10790 ;; 10791 esac 10792 shared_flag='-shared' 10793 if test yes = "$aix_use_runtimelinking"; then 10794 shared_flag="$shared_flag "'$wl-G' 10795 fi 10796 # Need to ensure runtime linking is disabled for the traditional 10797 # shared library, or the linker may eventually find shared libraries 10798 # /with/ Import File - we do not want to mix them. 10799 shared_flag_aix='-shared' 10800 shared_flag_svr4='-shared $wl-G' 10801 else 10802 # not using gcc 10803 if test ia64 = "$host_cpu"; then 10804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10805 # chokes on -Wl,-G. The following line is correct: 10806 shared_flag='-G' 10807 else 10808 if test yes = "$aix_use_runtimelinking"; then 10809 shared_flag='$wl-G' 10810 else 10811 shared_flag='$wl-bM:SRE' 10812 fi 10813 shared_flag_aix='$wl-bM:SRE' 10814 shared_flag_svr4='$wl-G' 10815 fi 10816 fi 10817 10818 export_dynamic_flag_spec='$wl-bexpall' 10819 # It seems that -bexpall does not export symbols beginning with 10820 # underscore (_), so it is better to generate a list of symbols to export. 10821 always_export_symbols=yes 10822 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10823 # Warning - without using the other runtime loading flags (-brtl), 10824 # -berok will link without error, but may produce a broken library. 10825 allow_undefined_flag='-berok' 10826 # Determine the default libpath from the value encoded in an 10827 # empty executable. 10828 if test set = "${lt_cv_aix_libpath+set}"; then 10829 aix_libpath=$lt_cv_aix_libpath 10830else 10831 if ${lt_cv_aix_libpath_+:} false; then : 10832 $as_echo_n "(cached) " >&6 10833else 10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10835/* end confdefs.h. */ 10836 10837int 10838main () 10839{ 10840 10841 ; 10842 return 0; 10843} 10844_ACEOF 10845if ac_fn_c_try_link "$LINENO"; then : 10846 10847 lt_aix_libpath_sed=' 10848 /Import File Strings/,/^$/ { 10849 /^0/ { 10850 s/^0 *\([^ ]*\) *$/\1/ 10851 p 10852 } 10853 }' 10854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10855 # Check for a 64-bit object if we didn't find anything. 10856 if test -z "$lt_cv_aix_libpath_"; then 10857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10858 fi 10859fi 10860rm -f core conftest.err conftest.$ac_objext \ 10861 conftest$ac_exeext conftest.$ac_ext 10862 if test -z "$lt_cv_aix_libpath_"; then 10863 lt_cv_aix_libpath_=/usr/lib:/lib 10864 fi 10865 10866fi 10867 10868 aix_libpath=$lt_cv_aix_libpath_ 10869fi 10870 10871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10872 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10873 else 10874 if test ia64 = "$host_cpu"; then 10875 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10876 allow_undefined_flag="-z nodefs" 10877 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" 10878 else 10879 # Determine the default libpath from the value encoded in an 10880 # empty executable. 10881 if test set = "${lt_cv_aix_libpath+set}"; then 10882 aix_libpath=$lt_cv_aix_libpath 10883else 10884 if ${lt_cv_aix_libpath_+:} false; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10888/* end confdefs.h. */ 10889 10890int 10891main () 10892{ 10893 10894 ; 10895 return 0; 10896} 10897_ACEOF 10898if ac_fn_c_try_link "$LINENO"; then : 10899 10900 lt_aix_libpath_sed=' 10901 /Import File Strings/,/^$/ { 10902 /^0/ { 10903 s/^0 *\([^ ]*\) *$/\1/ 10904 p 10905 } 10906 }' 10907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10908 # Check for a 64-bit object if we didn't find anything. 10909 if test -z "$lt_cv_aix_libpath_"; then 10910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10911 fi 10912fi 10913rm -f core conftest.err conftest.$ac_objext \ 10914 conftest$ac_exeext conftest.$ac_ext 10915 if test -z "$lt_cv_aix_libpath_"; then 10916 lt_cv_aix_libpath_=/usr/lib:/lib 10917 fi 10918 10919fi 10920 10921 aix_libpath=$lt_cv_aix_libpath_ 10922fi 10923 10924 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10925 # Warning - without using the other run time loading flags, 10926 # -berok will link without error, but may produce a broken library. 10927 no_undefined_flag=' $wl-bernotok' 10928 allow_undefined_flag=' $wl-berok' 10929 if test yes = "$with_gnu_ld"; then 10930 # We only use this code for GNU lds that support --whole-archive. 10931 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10932 else 10933 # Exported symbols can be pulled into shared objects from archives 10934 whole_archive_flag_spec='$convenience' 10935 fi 10936 archive_cmds_need_lc=yes 10937 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10938 # -brtl affects multiple linker settings, -berok does not and is overridden later 10939 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10940 if test svr4 != "$with_aix_soname"; then 10941 # This is similar to how AIX traditionally builds its shared libraries. 10942 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10943 fi 10944 if test aix != "$with_aix_soname"; then 10945 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10946 else 10947 # used by -dlpreopen to get the symbols 10948 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10949 fi 10950 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10951 fi 10952 fi 10953 ;; 10954 10955 amigaos*) 10956 case $host_cpu in 10957 powerpc) 10958 # see comment about AmigaOS4 .so support 10959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10960 archive_expsym_cmds='' 10961 ;; 10962 m68k) 10963 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)' 10964 hardcode_libdir_flag_spec='-L$libdir' 10965 hardcode_minus_L=yes 10966 ;; 10967 esac 10968 ;; 10969 10970 bsdi[45]*) 10971 export_dynamic_flag_spec=-rdynamic 10972 ;; 10973 10974 cygwin* | mingw* | pw32* | cegcc*) 10975 # When not using gcc, we currently assume that we are using 10976 # Microsoft Visual C++. 10977 # hardcode_libdir_flag_spec is actually meaningless, as there is 10978 # no search path for DLLs. 10979 case $cc_basename in 10980 cl*) 10981 # Native MSVC 10982 hardcode_libdir_flag_spec=' ' 10983 allow_undefined_flag=unsupported 10984 always_export_symbols=yes 10985 file_list_spec='@' 10986 # Tell ltmain to make .lib files, not .a files. 10987 libext=lib 10988 # Tell ltmain to make .dll files, not .so files. 10989 shrext_cmds=.dll 10990 # FIXME: Setting linknames here is a bad hack. 10991 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10992 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10993 cp "$export_symbols" "$output_objdir/$soname.def"; 10994 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10995 else 10996 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10997 fi~ 10998 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10999 linknames=' 11000 # The linker will not automatically build a static lib if we build a DLL. 11001 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11002 enable_shared_with_static_runtimes=yes 11003 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11005 # Don't use ranlib 11006 old_postinstall_cmds='chmod 644 $oldlib' 11007 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11008 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11009 case $lt_outputfile in 11010 *.exe|*.EXE) ;; 11011 *) 11012 lt_outputfile=$lt_outputfile.exe 11013 lt_tool_outputfile=$lt_tool_outputfile.exe 11014 ;; 11015 esac~ 11016 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11017 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11018 $RM "$lt_outputfile.manifest"; 11019 fi' 11020 ;; 11021 *) 11022 # Assume MSVC wrapper 11023 hardcode_libdir_flag_spec=' ' 11024 allow_undefined_flag=unsupported 11025 # Tell ltmain to make .lib files, not .a files. 11026 libext=lib 11027 # Tell ltmain to make .dll files, not .so files. 11028 shrext_cmds=.dll 11029 # FIXME: Setting linknames here is a bad hack. 11030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11031 # The linker will automatically build a .lib file if we build a DLL. 11032 old_archive_from_new_cmds='true' 11033 # FIXME: Should let the user specify the lib program. 11034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11035 enable_shared_with_static_runtimes=yes 11036 ;; 11037 esac 11038 ;; 11039 11040 darwin* | rhapsody*) 11041 11042 11043 archive_cmds_need_lc=no 11044 hardcode_direct=no 11045 hardcode_automatic=yes 11046 hardcode_shlibpath_var=unsupported 11047 if test yes = "$lt_cv_ld_force_load"; then 11048 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\"`' 11049 11050 else 11051 whole_archive_flag_spec='' 11052 fi 11053 link_all_deplibs=yes 11054 allow_undefined_flag=$_lt_dar_allow_undefined 11055 case $cc_basename in 11056 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11057 *) _lt_dar_can_shared=$GCC ;; 11058 esac 11059 if test yes = "$_lt_dar_can_shared"; then 11060 output_verbose_link_cmd=func_echo_all 11061 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11062 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11063 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" 11064 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" 11065 11066 else 11067 ld_shlibs=no 11068 fi 11069 11070 ;; 11071 11072 dgux*) 11073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11074 hardcode_libdir_flag_spec='-L$libdir' 11075 hardcode_shlibpath_var=no 11076 ;; 11077 11078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11079 # support. Future versions do this automatically, but an explicit c++rt0.o 11080 # does not break anything, and helps significantly (at the cost of a little 11081 # extra space). 11082 freebsd2.2*) 11083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11084 hardcode_libdir_flag_spec='-R$libdir' 11085 hardcode_direct=yes 11086 hardcode_shlibpath_var=no 11087 ;; 11088 11089 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11090 freebsd2.*) 11091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11092 hardcode_direct=yes 11093 hardcode_minus_L=yes 11094 hardcode_shlibpath_var=no 11095 ;; 11096 11097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11098 freebsd* | dragonfly*) 11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11100 hardcode_libdir_flag_spec='-R$libdir' 11101 hardcode_direct=yes 11102 hardcode_shlibpath_var=no 11103 ;; 11104 11105 hpux9*) 11106 if test yes = "$GCC"; then 11107 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11108 else 11109 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11110 fi 11111 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11112 hardcode_libdir_separator=: 11113 hardcode_direct=yes 11114 11115 # hardcode_minus_L: Not really in the search PATH, 11116 # but as the default location of the library. 11117 hardcode_minus_L=yes 11118 export_dynamic_flag_spec='$wl-E' 11119 ;; 11120 11121 hpux10*) 11122 if test yes,no = "$GCC,$with_gnu_ld"; then 11123 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11124 else 11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11126 fi 11127 if test no = "$with_gnu_ld"; then 11128 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11129 hardcode_libdir_separator=: 11130 hardcode_direct=yes 11131 hardcode_direct_absolute=yes 11132 export_dynamic_flag_spec='$wl-E' 11133 # hardcode_minus_L: Not really in the search PATH, 11134 # but as the default location of the library. 11135 hardcode_minus_L=yes 11136 fi 11137 ;; 11138 11139 hpux11*) 11140 if test yes,no = "$GCC,$with_gnu_ld"; then 11141 case $host_cpu in 11142 hppa*64*) 11143 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11144 ;; 11145 ia64*) 11146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11147 ;; 11148 *) 11149 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11150 ;; 11151 esac 11152 else 11153 case $host_cpu in 11154 hppa*64*) 11155 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11156 ;; 11157 ia64*) 11158 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11159 ;; 11160 *) 11161 11162 # Older versions of the 11.00 compiler do not understand -b yet 11163 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11165$as_echo_n "checking if $CC understands -b... " >&6; } 11166if ${lt_cv_prog_compiler__b+:} false; then : 11167 $as_echo_n "(cached) " >&6 11168else 11169 lt_cv_prog_compiler__b=no 11170 save_LDFLAGS=$LDFLAGS 11171 LDFLAGS="$LDFLAGS -b" 11172 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11174 # The linker can only warn and ignore the option if not recognized 11175 # So say no if there are warnings 11176 if test -s conftest.err; then 11177 # Append any errors to the config.log. 11178 cat conftest.err 1>&5 11179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11181 if diff conftest.exp conftest.er2 >/dev/null; then 11182 lt_cv_prog_compiler__b=yes 11183 fi 11184 else 11185 lt_cv_prog_compiler__b=yes 11186 fi 11187 fi 11188 $RM -r conftest* 11189 LDFLAGS=$save_LDFLAGS 11190 11191fi 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11193$as_echo "$lt_cv_prog_compiler__b" >&6; } 11194 11195if test yes = "$lt_cv_prog_compiler__b"; then 11196 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11197else 11198 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11199fi 11200 11201 ;; 11202 esac 11203 fi 11204 if test no = "$with_gnu_ld"; then 11205 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11206 hardcode_libdir_separator=: 11207 11208 case $host_cpu in 11209 hppa*64*|ia64*) 11210 hardcode_direct=no 11211 hardcode_shlibpath_var=no 11212 ;; 11213 *) 11214 hardcode_direct=yes 11215 hardcode_direct_absolute=yes 11216 export_dynamic_flag_spec='$wl-E' 11217 11218 # hardcode_minus_L: Not really in the search PATH, 11219 # but as the default location of the library. 11220 hardcode_minus_L=yes 11221 ;; 11222 esac 11223 fi 11224 ;; 11225 11226 irix5* | irix6* | nonstopux*) 11227 if test yes = "$GCC"; then 11228 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' 11229 # Try to use the -exported_symbol ld option, if it does not 11230 # work, assume that -exports_file does not work either and 11231 # implicitly export all symbols. 11232 # This should be the same for all languages, so no per-tag cache variable. 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11234$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11235if ${lt_cv_irix_exported_symbol+:} false; then : 11236 $as_echo_n "(cached) " >&6 11237else 11238 save_LDFLAGS=$LDFLAGS 11239 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11241/* end confdefs.h. */ 11242int foo (void) { return 0; } 11243_ACEOF 11244if ac_fn_c_try_link "$LINENO"; then : 11245 lt_cv_irix_exported_symbol=yes 11246else 11247 lt_cv_irix_exported_symbol=no 11248fi 11249rm -f core conftest.err conftest.$ac_objext \ 11250 conftest$ac_exeext conftest.$ac_ext 11251 LDFLAGS=$save_LDFLAGS 11252fi 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11254$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11255 if test yes = "$lt_cv_irix_exported_symbol"; then 11256 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' 11257 fi 11258 link_all_deplibs=no 11259 else 11260 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' 11261 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' 11262 fi 11263 archive_cmds_need_lc='no' 11264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11265 hardcode_libdir_separator=: 11266 inherit_rpath=yes 11267 link_all_deplibs=yes 11268 ;; 11269 11270 linux*) 11271 case $cc_basename in 11272 tcc*) 11273 # Fabrice Bellard et al's Tiny C Compiler 11274 ld_shlibs=yes 11275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11276 ;; 11277 esac 11278 ;; 11279 11280 netbsd* | netbsdelf*-gnu) 11281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11283 else 11284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11285 fi 11286 hardcode_libdir_flag_spec='-R$libdir' 11287 hardcode_direct=yes 11288 hardcode_shlibpath_var=no 11289 ;; 11290 11291 newsos6) 11292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11293 hardcode_direct=yes 11294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11295 hardcode_libdir_separator=: 11296 hardcode_shlibpath_var=no 11297 ;; 11298 11299 *nto* | *qnx*) 11300 ;; 11301 11302 openbsd* | bitrig*) 11303 if test -f /usr/libexec/ld.so; then 11304 hardcode_direct=yes 11305 hardcode_shlibpath_var=no 11306 hardcode_direct_absolute=yes 11307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11310 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11311 export_dynamic_flag_spec='$wl-E' 11312 else 11313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11314 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11315 fi 11316 else 11317 ld_shlibs=no 11318 fi 11319 ;; 11320 11321 os2*) 11322 hardcode_libdir_flag_spec='-L$libdir' 11323 hardcode_minus_L=yes 11324 allow_undefined_flag=unsupported 11325 shrext_cmds=.dll 11326 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11327 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11328 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11329 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11330 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11331 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11332 emximp -o $lib $output_objdir/$libname.def' 11333 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11334 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11335 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11336 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11337 prefix_cmds="$SED"~ 11338 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11339 prefix_cmds="$prefix_cmds -e 1d"; 11340 fi~ 11341 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11342 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11343 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11344 emximp -o $lib $output_objdir/$libname.def' 11345 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11346 enable_shared_with_static_runtimes=yes 11347 ;; 11348 11349 osf3*) 11350 if test yes = "$GCC"; then 11351 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11352 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' 11353 else 11354 allow_undefined_flag=' -expect_unresolved \*' 11355 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' 11356 fi 11357 archive_cmds_need_lc='no' 11358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11359 hardcode_libdir_separator=: 11360 ;; 11361 11362 osf4* | osf5*) # as osf3* with the addition of -msym flag 11363 if test yes = "$GCC"; then 11364 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11365 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' 11366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11367 else 11368 allow_undefined_flag=' -expect_unresolved \*' 11369 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' 11370 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~ 11371 $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' 11372 11373 # Both c and cxx compiler support -rpath directly 11374 hardcode_libdir_flag_spec='-rpath $libdir' 11375 fi 11376 archive_cmds_need_lc='no' 11377 hardcode_libdir_separator=: 11378 ;; 11379 11380 solaris*) 11381 no_undefined_flag=' -z defs' 11382 if test yes = "$GCC"; then 11383 wlarc='$wl' 11384 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11386 $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' 11387 else 11388 case `$CC -V 2>&1` in 11389 *"Compilers 5.0"*) 11390 wlarc='' 11391 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11393 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11394 ;; 11395 *) 11396 wlarc='$wl' 11397 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11399 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11400 ;; 11401 esac 11402 fi 11403 hardcode_libdir_flag_spec='-R$libdir' 11404 hardcode_shlibpath_var=no 11405 case $host_os in 11406 solaris2.[0-5] | solaris2.[0-5].*) ;; 11407 *) 11408 # The compiler driver will combine and reorder linker options, 11409 # but understands '-z linker_flag'. GCC discards it without '$wl', 11410 # but is careful enough not to reorder. 11411 # Supported since Solaris 2.6 (maybe 2.5.1?) 11412 if test yes = "$GCC"; then 11413 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11414 else 11415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11416 fi 11417 ;; 11418 esac 11419 link_all_deplibs=yes 11420 ;; 11421 11422 sunos4*) 11423 if test sequent = "$host_vendor"; then 11424 # Use $CC to link under sequent, because it throws in some extra .o 11425 # files that make .init and .fini sections work. 11426 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11427 else 11428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11429 fi 11430 hardcode_libdir_flag_spec='-L$libdir' 11431 hardcode_direct=yes 11432 hardcode_minus_L=yes 11433 hardcode_shlibpath_var=no 11434 ;; 11435 11436 sysv4) 11437 case $host_vendor in 11438 sni) 11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11440 hardcode_direct=yes # is this really true??? 11441 ;; 11442 siemens) 11443 ## LD is ld it makes a PLAMLIB 11444 ## CC just makes a GrossModule. 11445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11446 reload_cmds='$CC -r -o $output$reload_objs' 11447 hardcode_direct=no 11448 ;; 11449 motorola) 11450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11452 ;; 11453 esac 11454 runpath_var='LD_RUN_PATH' 11455 hardcode_shlibpath_var=no 11456 ;; 11457 11458 sysv4.3*) 11459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11460 hardcode_shlibpath_var=no 11461 export_dynamic_flag_spec='-Bexport' 11462 ;; 11463 11464 sysv4*MP*) 11465 if test -d /usr/nec; then 11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11467 hardcode_shlibpath_var=no 11468 runpath_var=LD_RUN_PATH 11469 hardcode_runpath_var=yes 11470 ld_shlibs=yes 11471 fi 11472 ;; 11473 11474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11475 no_undefined_flag='$wl-z,text' 11476 archive_cmds_need_lc=no 11477 hardcode_shlibpath_var=no 11478 runpath_var='LD_RUN_PATH' 11479 11480 if test yes = "$GCC"; then 11481 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11482 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11483 else 11484 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11485 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11486 fi 11487 ;; 11488 11489 sysv5* | sco3.2v5* | sco5v6*) 11490 # Note: We CANNOT use -z defs as we might desire, because we do not 11491 # link with -lc, and that would cause any symbols used from libc to 11492 # always be unresolved, which means just about no library would 11493 # ever link correctly. If we're not using GNU ld we use -z text 11494 # though, which does catch some bad symbols but isn't as heavy-handed 11495 # as -z defs. 11496 no_undefined_flag='$wl-z,text' 11497 allow_undefined_flag='$wl-z,nodefs' 11498 archive_cmds_need_lc=no 11499 hardcode_shlibpath_var=no 11500 hardcode_libdir_flag_spec='$wl-R,$libdir' 11501 hardcode_libdir_separator=':' 11502 link_all_deplibs=yes 11503 export_dynamic_flag_spec='$wl-Bexport' 11504 runpath_var='LD_RUN_PATH' 11505 11506 if test yes = "$GCC"; then 11507 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11508 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11509 else 11510 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11511 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11512 fi 11513 ;; 11514 11515 uts4*) 11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11517 hardcode_libdir_flag_spec='-L$libdir' 11518 hardcode_shlibpath_var=no 11519 ;; 11520 11521 *) 11522 ld_shlibs=no 11523 ;; 11524 esac 11525 11526 if test sni = "$host_vendor"; then 11527 case $host in 11528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11529 export_dynamic_flag_spec='$wl-Blargedynsym' 11530 ;; 11531 esac 11532 fi 11533 fi 11534 11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11536$as_echo "$ld_shlibs" >&6; } 11537test no = "$ld_shlibs" && can_build_shared=no 11538 11539with_gnu_ld=$with_gnu_ld 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555# 11556# Do we need to explicitly link libc? 11557# 11558case "x$archive_cmds_need_lc" in 11559x|xyes) 11560 # Assume -lc should be added 11561 archive_cmds_need_lc=yes 11562 11563 if test yes,yes = "$GCC,$enable_shared"; then 11564 case $archive_cmds in 11565 *'~'*) 11566 # FIXME: we may have to deal with multi-command sequences. 11567 ;; 11568 '$CC '*) 11569 # Test whether the compiler implicitly links with -lc since on some 11570 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11571 # to ld, don't add -lc before -lgcc. 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11573$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11574if ${lt_cv_archive_cmds_need_lc+:} false; then : 11575 $as_echo_n "(cached) " >&6 11576else 11577 $RM conftest* 11578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11579 11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11581 (eval $ac_compile) 2>&5 11582 ac_status=$? 11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11584 test $ac_status = 0; } 2>conftest.err; then 11585 soname=conftest 11586 lib=conftest 11587 libobjs=conftest.$ac_objext 11588 deplibs= 11589 wl=$lt_prog_compiler_wl 11590 pic_flag=$lt_prog_compiler_pic 11591 compiler_flags=-v 11592 linker_flags=-v 11593 verstring= 11594 output_objdir=. 11595 libname=conftest 11596 lt_save_allow_undefined_flag=$allow_undefined_flag 11597 allow_undefined_flag= 11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11600 ac_status=$? 11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11602 test $ac_status = 0; } 11603 then 11604 lt_cv_archive_cmds_need_lc=no 11605 else 11606 lt_cv_archive_cmds_need_lc=yes 11607 fi 11608 allow_undefined_flag=$lt_save_allow_undefined_flag 11609 else 11610 cat conftest.err 1>&5 11611 fi 11612 $RM conftest* 11613 11614fi 11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11616$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11617 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11618 ;; 11619 esac 11620 fi 11621 ;; 11622esac 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11776$as_echo_n "checking dynamic linker characteristics... " >&6; } 11777 11778if test yes = "$GCC"; then 11779 case $host_os in 11780 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11781 *) lt_awk_arg='/^libraries:/' ;; 11782 esac 11783 case $host_os in 11784 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11785 *) lt_sed_strip_eq='s|=/|/|g' ;; 11786 esac 11787 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11788 case $lt_search_path_spec in 11789 *\;*) 11790 # if the path contains ";" then we assume it to be the separator 11791 # otherwise default to the standard path separator (i.e. ":") - it is 11792 # assumed that no part of a normal pathname contains ";" but that should 11793 # okay in the real world where ";" in dirpaths is itself problematic. 11794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11795 ;; 11796 *) 11797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11798 ;; 11799 esac 11800 # Ok, now we have the path, separated by spaces, we can step through it 11801 # and add multilib dir if necessary... 11802 lt_tmp_lt_search_path_spec= 11803 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11804 # ...but if some path component already ends with the multilib dir we assume 11805 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11806 case "$lt_multi_os_dir; $lt_search_path_spec " in 11807 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11808 lt_multi_os_dir= 11809 ;; 11810 esac 11811 for lt_sys_path in $lt_search_path_spec; do 11812 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11814 elif test -n "$lt_multi_os_dir"; then 11815 test -d "$lt_sys_path" && \ 11816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11817 fi 11818 done 11819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11820BEGIN {RS = " "; FS = "/|\n";} { 11821 lt_foo = ""; 11822 lt_count = 0; 11823 for (lt_i = NF; lt_i > 0; lt_i--) { 11824 if ($lt_i != "" && $lt_i != ".") { 11825 if ($lt_i == "..") { 11826 lt_count++; 11827 } else { 11828 if (lt_count == 0) { 11829 lt_foo = "/" $lt_i lt_foo; 11830 } else { 11831 lt_count--; 11832 } 11833 } 11834 } 11835 } 11836 if (lt_foo != "") { lt_freq[lt_foo]++; } 11837 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11838}'` 11839 # AWK program above erroneously prepends '/' to C:/dos/paths 11840 # for these hosts. 11841 case $host_os in 11842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11843 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11844 esac 11845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11846else 11847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11848fi 11849library_names_spec= 11850libname_spec='lib$name' 11851soname_spec= 11852shrext_cmds=.so 11853postinstall_cmds= 11854postuninstall_cmds= 11855finish_cmds= 11856finish_eval= 11857shlibpath_var= 11858shlibpath_overrides_runpath=unknown 11859version_type=none 11860dynamic_linker="$host_os ld.so" 11861sys_lib_dlsearch_path_spec="/lib /usr/lib" 11862need_lib_prefix=unknown 11863hardcode_into_libs=no 11864 11865# when you set need_version to no, make sure it does not cause -set_version 11866# flags to be left without arguments 11867need_version=unknown 11868 11869 11870 11871case $host_os in 11872aix3*) 11873 version_type=linux # correct to gnu/linux during the next big refactor 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11875 shlibpath_var=LIBPATH 11876 11877 # AIX 3 has no versioning support, so we append a major version to the name. 11878 soname_spec='$libname$release$shared_ext$major' 11879 ;; 11880 11881aix[4-9]*) 11882 version_type=linux # correct to gnu/linux during the next big refactor 11883 need_lib_prefix=no 11884 need_version=no 11885 hardcode_into_libs=yes 11886 if test ia64 = "$host_cpu"; then 11887 # AIX 5 supports IA64 11888 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11889 shlibpath_var=LD_LIBRARY_PATH 11890 else 11891 # With GCC up to 2.95.x, collect2 would create an import file 11892 # for dependence libraries. The import file would start with 11893 # the line '#! .'. This would cause the generated library to 11894 # depend on '.', always an invalid library. This was fixed in 11895 # development snapshots of GCC prior to 3.0. 11896 case $host_os in 11897 aix4 | aix4.[01] | aix4.[01].*) 11898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11899 echo ' yes ' 11900 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11901 : 11902 else 11903 can_build_shared=no 11904 fi 11905 ;; 11906 esac 11907 # Using Import Files as archive members, it is possible to support 11908 # filename-based versioning of shared library archives on AIX. While 11909 # this would work for both with and without runtime linking, it will 11910 # prevent static linking of such archives. So we do filename-based 11911 # shared library versioning with .so extension only, which is used 11912 # when both runtime linking and shared linking is enabled. 11913 # Unfortunately, runtime linking may impact performance, so we do 11914 # not want this to be the default eventually. Also, we use the 11915 # versioned .so libs for executables only if there is the -brtl 11916 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11917 # To allow for filename-based versioning support, we need to create 11918 # libNAME.so.V as an archive file, containing: 11919 # *) an Import File, referring to the versioned filename of the 11920 # archive as well as the shared archive member, telling the 11921 # bitwidth (32 or 64) of that shared object, and providing the 11922 # list of exported symbols of that shared object, eventually 11923 # decorated with the 'weak' keyword 11924 # *) the shared object with the F_LOADONLY flag set, to really avoid 11925 # it being seen by the linker. 11926 # At run time we better use the real file rather than another symlink, 11927 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11928 11929 case $with_aix_soname,$aix_use_runtimelinking in 11930 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11931 # soname into executable. Probably we can add versioning support to 11932 # collect2, so additional links can be useful in future. 11933 aix,yes) # traditional libtool 11934 dynamic_linker='AIX unversionable lib.so' 11935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11936 # instead of lib<name>.a to let people know that these are not 11937 # typical AIX shared libraries. 11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11939 ;; 11940 aix,no) # traditional AIX only 11941 dynamic_linker='AIX lib.a(lib.so.V)' 11942 # We preserve .a as extension for shared libraries through AIX4.2 11943 # and later when we are not doing run time linking. 11944 library_names_spec='$libname$release.a $libname.a' 11945 soname_spec='$libname$release$shared_ext$major' 11946 ;; 11947 svr4,*) # full svr4 only 11948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11950 # We do not specify a path in Import Files, so LIBPATH fires. 11951 shlibpath_overrides_runpath=yes 11952 ;; 11953 *,yes) # both, prefer svr4 11954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11956 # unpreferred sharedlib libNAME.a needs extra handling 11957 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11958 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11959 # We do not specify a path in Import Files, so LIBPATH fires. 11960 shlibpath_overrides_runpath=yes 11961 ;; 11962 *,no) # both, prefer aix 11963 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11964 library_names_spec='$libname$release.a $libname.a' 11965 soname_spec='$libname$release$shared_ext$major' 11966 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11967 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11968 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11969 ;; 11970 esac 11971 shlibpath_var=LIBPATH 11972 fi 11973 ;; 11974 11975amigaos*) 11976 case $host_cpu in 11977 powerpc) 11978 # Since July 2007 AmigaOS4 officially supports .so libraries. 11979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 ;; 11982 m68k) 11983 library_names_spec='$libname.ixlibrary $libname.a' 11984 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11985 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11986 ;; 11987 esac 11988 ;; 11989 11990beos*) 11991 library_names_spec='$libname$shared_ext' 11992 dynamic_linker="$host_os ld.so" 11993 shlibpath_var=LIBRARY_PATH 11994 ;; 11995 11996bsdi[45]*) 11997 version_type=linux # correct to gnu/linux during the next big refactor 11998 need_version=no 11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12000 soname_spec='$libname$release$shared_ext$major' 12001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12002 shlibpath_var=LD_LIBRARY_PATH 12003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12005 # the default ld.so.conf also contains /usr/contrib/lib and 12006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12007 # libtool to hard-code these into programs 12008 ;; 12009 12010cygwin* | mingw* | pw32* | cegcc*) 12011 version_type=windows 12012 shrext_cmds=.dll 12013 need_version=no 12014 need_lib_prefix=no 12015 12016 case $GCC,$cc_basename in 12017 yes,*) 12018 # gcc 12019 library_names_spec='$libname.dll.a' 12020 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12021 postinstall_cmds='base_file=`basename \$file`~ 12022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12023 dldir=$destdir/`dirname \$dlpath`~ 12024 test -d \$dldir || mkdir -p \$dldir~ 12025 $install_prog $dir/$dlname \$dldir/$dlname~ 12026 chmod a+x \$dldir/$dlname~ 12027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12029 fi' 12030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12031 dlpath=$dir/\$dldll~ 12032 $RM \$dlpath' 12033 shlibpath_overrides_runpath=yes 12034 12035 case $host_os in 12036 cygwin*) 12037 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12038 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12039 12040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12041 ;; 12042 mingw* | cegcc*) 12043 # MinGW DLLs use traditional 'lib' prefix 12044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12045 ;; 12046 pw32*) 12047 # pw32 DLLs use 'pw' prefix rather than 'lib' 12048 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12049 ;; 12050 esac 12051 dynamic_linker='Win32 ld.exe' 12052 ;; 12053 12054 *,cl*) 12055 # Native MSVC 12056 libname_spec='$name' 12057 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12058 library_names_spec='$libname.dll.lib' 12059 12060 case $build_os in 12061 mingw*) 12062 sys_lib_search_path_spec= 12063 lt_save_ifs=$IFS 12064 IFS=';' 12065 for lt_path in $LIB 12066 do 12067 IFS=$lt_save_ifs 12068 # Let DOS variable expansion print the short 8.3 style file name. 12069 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12070 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12071 done 12072 IFS=$lt_save_ifs 12073 # Convert to MSYS style. 12074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12075 ;; 12076 cygwin*) 12077 # Convert to unix form, then to dos form, then back to unix form 12078 # but this time dos style (no spaces!) so that the unix form looks 12079 # like /cygdrive/c/PROGRA~1:/cygdr... 12080 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12081 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12082 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12083 ;; 12084 *) 12085 sys_lib_search_path_spec=$LIB 12086 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12087 # It is most probably a Windows format PATH. 12088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12089 else 12090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12091 fi 12092 # FIXME: find the short name or the path components, as spaces are 12093 # common. (e.g. "Program Files" -> "PROGRA~1") 12094 ;; 12095 esac 12096 12097 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12098 postinstall_cmds='base_file=`basename \$file`~ 12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12100 dldir=$destdir/`dirname \$dlpath`~ 12101 test -d \$dldir || mkdir -p \$dldir~ 12102 $install_prog $dir/$dlname \$dldir/$dlname' 12103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12104 dlpath=$dir/\$dldll~ 12105 $RM \$dlpath' 12106 shlibpath_overrides_runpath=yes 12107 dynamic_linker='Win32 link.exe' 12108 ;; 12109 12110 *) 12111 # Assume MSVC wrapper 12112 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12113 dynamic_linker='Win32 ld.exe' 12114 ;; 12115 esac 12116 # FIXME: first we should search . and the directory the executable is in 12117 shlibpath_var=PATH 12118 ;; 12119 12120darwin* | rhapsody*) 12121 dynamic_linker="$host_os dyld" 12122 version_type=darwin 12123 need_lib_prefix=no 12124 need_version=no 12125 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12126 soname_spec='$libname$release$major$shared_ext' 12127 shlibpath_overrides_runpath=yes 12128 shlibpath_var=DYLD_LIBRARY_PATH 12129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12130 12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12133 ;; 12134 12135dgux*) 12136 version_type=linux # correct to gnu/linux during the next big refactor 12137 need_lib_prefix=no 12138 need_version=no 12139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12140 soname_spec='$libname$release$shared_ext$major' 12141 shlibpath_var=LD_LIBRARY_PATH 12142 ;; 12143 12144freebsd* | dragonfly*) 12145 # DragonFly does not have aout. When/if they implement a new 12146 # versioning mechanism, adjust this. 12147 if test -x /usr/bin/objformat; then 12148 objformat=`/usr/bin/objformat` 12149 else 12150 case $host_os in 12151 freebsd[23].*) objformat=aout ;; 12152 *) objformat=elf ;; 12153 esac 12154 fi 12155 version_type=freebsd-$objformat 12156 case $version_type in 12157 freebsd-elf*) 12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12159 soname_spec='$libname$release$shared_ext$major' 12160 need_version=no 12161 need_lib_prefix=no 12162 ;; 12163 freebsd-*) 12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12165 need_version=yes 12166 ;; 12167 esac 12168 shlibpath_var=LD_LIBRARY_PATH 12169 case $host_os in 12170 freebsd2.*) 12171 shlibpath_overrides_runpath=yes 12172 ;; 12173 freebsd3.[01]* | freebsdelf3.[01]*) 12174 shlibpath_overrides_runpath=yes 12175 hardcode_into_libs=yes 12176 ;; 12177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12179 shlibpath_overrides_runpath=no 12180 hardcode_into_libs=yes 12181 ;; 12182 *) # from 4.6 on, and DragonFly 12183 shlibpath_overrides_runpath=yes 12184 hardcode_into_libs=yes 12185 ;; 12186 esac 12187 ;; 12188 12189haiku*) 12190 version_type=linux # correct to gnu/linux during the next big refactor 12191 need_lib_prefix=no 12192 need_version=no 12193 dynamic_linker="$host_os runtime_loader" 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12195 soname_spec='$libname$release$shared_ext$major' 12196 shlibpath_var=LIBRARY_PATH 12197 shlibpath_overrides_runpath=no 12198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12199 hardcode_into_libs=yes 12200 ;; 12201 12202hpux9* | hpux10* | hpux11*) 12203 # Give a soname corresponding to the major version so that dld.sl refuses to 12204 # link against other versions. 12205 version_type=sunos 12206 need_lib_prefix=no 12207 need_version=no 12208 case $host_cpu in 12209 ia64*) 12210 shrext_cmds='.so' 12211 hardcode_into_libs=yes 12212 dynamic_linker="$host_os dld.so" 12213 shlibpath_var=LD_LIBRARY_PATH 12214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12216 soname_spec='$libname$release$shared_ext$major' 12217 if test 32 = "$HPUX_IA64_MODE"; then 12218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12219 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12220 else 12221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12222 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12223 fi 12224 ;; 12225 hppa*64*) 12226 shrext_cmds='.sl' 12227 hardcode_into_libs=yes 12228 dynamic_linker="$host_os dld.sl" 12229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12232 soname_spec='$libname$release$shared_ext$major' 12233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12235 ;; 12236 *) 12237 shrext_cmds='.sl' 12238 dynamic_linker="$host_os dld.sl" 12239 shlibpath_var=SHLIB_PATH 12240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12242 soname_spec='$libname$release$shared_ext$major' 12243 ;; 12244 esac 12245 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12246 postinstall_cmds='chmod 555 $lib' 12247 # or fails outright, so override atomically: 12248 install_override_mode=555 12249 ;; 12250 12251interix[3-9]*) 12252 version_type=linux # correct to gnu/linux during the next big refactor 12253 need_lib_prefix=no 12254 need_version=no 12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12256 soname_spec='$libname$release$shared_ext$major' 12257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12258 shlibpath_var=LD_LIBRARY_PATH 12259 shlibpath_overrides_runpath=no 12260 hardcode_into_libs=yes 12261 ;; 12262 12263irix5* | irix6* | nonstopux*) 12264 case $host_os in 12265 nonstopux*) version_type=nonstopux ;; 12266 *) 12267 if test yes = "$lt_cv_prog_gnu_ld"; then 12268 version_type=linux # correct to gnu/linux during the next big refactor 12269 else 12270 version_type=irix 12271 fi ;; 12272 esac 12273 need_lib_prefix=no 12274 need_version=no 12275 soname_spec='$libname$release$shared_ext$major' 12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12277 case $host_os in 12278 irix5* | nonstopux*) 12279 libsuff= shlibsuff= 12280 ;; 12281 *) 12282 case $LD in # libtool.m4 will add one of these switches to LD 12283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12284 libsuff= shlibsuff= libmagic=32-bit;; 12285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12286 libsuff=32 shlibsuff=N32 libmagic=N32;; 12287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12288 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12289 *) libsuff= shlibsuff= libmagic=never-match;; 12290 esac 12291 ;; 12292 esac 12293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12294 shlibpath_overrides_runpath=no 12295 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12296 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12297 hardcode_into_libs=yes 12298 ;; 12299 12300# No shared lib support for Linux oldld, aout, or coff. 12301linux*oldld* | linux*aout* | linux*coff*) 12302 dynamic_linker=no 12303 ;; 12304 12305linux*android*) 12306 version_type=none # Android doesn't support versioned libraries. 12307 need_lib_prefix=no 12308 need_version=no 12309 library_names_spec='$libname$release$shared_ext' 12310 soname_spec='$libname$release$shared_ext' 12311 finish_cmds= 12312 shlibpath_var=LD_LIBRARY_PATH 12313 shlibpath_overrides_runpath=yes 12314 12315 # This implies no fast_install, which is unacceptable. 12316 # Some rework will be needed to allow for fast_install 12317 # before this can be enabled. 12318 hardcode_into_libs=yes 12319 12320 dynamic_linker='Android linker' 12321 # Don't embed -rpath directories since the linker doesn't support them. 12322 hardcode_libdir_flag_spec='-L$libdir' 12323 ;; 12324 12325# This must be glibc/ELF. 12326linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12327 version_type=linux # correct to gnu/linux during the next big refactor 12328 need_lib_prefix=no 12329 need_version=no 12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12331 soname_spec='$libname$release$shared_ext$major' 12332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12333 shlibpath_var=LD_LIBRARY_PATH 12334 shlibpath_overrides_runpath=no 12335 12336 # Some binutils ld are patched to set DT_RUNPATH 12337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12338 $as_echo_n "(cached) " >&6 12339else 12340 lt_cv_shlibpath_overrides_runpath=no 12341 save_LDFLAGS=$LDFLAGS 12342 save_libdir=$libdir 12343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347 12348int 12349main () 12350{ 12351 12352 ; 12353 return 0; 12354} 12355_ACEOF 12356if ac_fn_c_try_link "$LINENO"; then : 12357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12358 lt_cv_shlibpath_overrides_runpath=yes 12359fi 12360fi 12361rm -f core conftest.err conftest.$ac_objext \ 12362 conftest$ac_exeext conftest.$ac_ext 12363 LDFLAGS=$save_LDFLAGS 12364 libdir=$save_libdir 12365 12366fi 12367 12368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12369 12370 # This implies no fast_install, which is unacceptable. 12371 # Some rework will be needed to allow for fast_install 12372 # before this can be enabled. 12373 hardcode_into_libs=yes 12374 12375 # Ideally, we could use ldconfig to report *all* directores which are 12376 # searched for libraries, however this is still not possible. Aside from not 12377 # being certain /sbin/ldconfig is available, command 12378 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12379 # even though it is searched at run-time. Try to do the best guess by 12380 # appending ld.so.conf contents (and includes) to the search path. 12381 if test -f /etc/ld.so.conf; then 12382 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' ' '` 12383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12384 fi 12385 12386 # We used to test for /lib/ld.so.1 and disable shared libraries on 12387 # powerpc, because MkLinux only supported shared libraries with the 12388 # GNU dynamic linker. Since this was broken with cross compilers, 12389 # most powerpc-linux boxes support dynamic linking these days and 12390 # people can always --disable-shared, the test was removed, and we 12391 # assume the GNU/Linux dynamic linker is in use. 12392 dynamic_linker='GNU/Linux ld.so' 12393 ;; 12394 12395netbsdelf*-gnu) 12396 version_type=linux 12397 need_lib_prefix=no 12398 need_version=no 12399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12400 soname_spec='${libname}${release}${shared_ext}$major' 12401 shlibpath_var=LD_LIBRARY_PATH 12402 shlibpath_overrides_runpath=no 12403 hardcode_into_libs=yes 12404 dynamic_linker='NetBSD ld.elf_so' 12405 ;; 12406 12407netbsd*) 12408 version_type=sunos 12409 need_lib_prefix=no 12410 need_version=no 12411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12414 dynamic_linker='NetBSD (a.out) ld.so' 12415 else 12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12417 soname_spec='$libname$release$shared_ext$major' 12418 dynamic_linker='NetBSD ld.elf_so' 12419 fi 12420 shlibpath_var=LD_LIBRARY_PATH 12421 shlibpath_overrides_runpath=yes 12422 hardcode_into_libs=yes 12423 ;; 12424 12425newsos6) 12426 version_type=linux # correct to gnu/linux during the next big refactor 12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12428 shlibpath_var=LD_LIBRARY_PATH 12429 shlibpath_overrides_runpath=yes 12430 ;; 12431 12432*nto* | *qnx*) 12433 version_type=qnx 12434 need_lib_prefix=no 12435 need_version=no 12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12437 soname_spec='$libname$release$shared_ext$major' 12438 shlibpath_var=LD_LIBRARY_PATH 12439 shlibpath_overrides_runpath=no 12440 hardcode_into_libs=yes 12441 dynamic_linker='ldqnx.so' 12442 ;; 12443 12444openbsd* | bitrig*) 12445 version_type=sunos 12446 sys_lib_dlsearch_path_spec=/usr/lib 12447 need_lib_prefix=no 12448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12449 need_version=no 12450 else 12451 need_version=yes 12452 fi 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes 12457 ;; 12458 12459os2*) 12460 libname_spec='$name' 12461 version_type=windows 12462 shrext_cmds=.dll 12463 need_version=no 12464 need_lib_prefix=no 12465 # OS/2 can only load a DLL with a base name of 8 characters or less. 12466 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12467 v=$($ECHO $release$versuffix | tr -d .-); 12468 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12469 $ECHO $n$v`$shared_ext' 12470 library_names_spec='${libname}_dll.$libext' 12471 dynamic_linker='OS/2 ld.exe' 12472 shlibpath_var=BEGINLIBPATH 12473 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12475 postinstall_cmds='base_file=`basename \$file`~ 12476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12477 dldir=$destdir/`dirname \$dlpath`~ 12478 test -d \$dldir || mkdir -p \$dldir~ 12479 $install_prog $dir/$dlname \$dldir/$dlname~ 12480 chmod a+x \$dldir/$dlname~ 12481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12483 fi' 12484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12485 dlpath=$dir/\$dldll~ 12486 $RM \$dlpath' 12487 ;; 12488 12489osf3* | osf4* | osf5*) 12490 version_type=osf 12491 need_lib_prefix=no 12492 need_version=no 12493 soname_spec='$libname$release$shared_ext$major' 12494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12495 shlibpath_var=LD_LIBRARY_PATH 12496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12498 ;; 12499 12500rdos*) 12501 dynamic_linker=no 12502 ;; 12503 12504solaris*) 12505 version_type=linux # correct to gnu/linux during the next big refactor 12506 need_lib_prefix=no 12507 need_version=no 12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12509 soname_spec='$libname$release$shared_ext$major' 12510 shlibpath_var=LD_LIBRARY_PATH 12511 shlibpath_overrides_runpath=yes 12512 hardcode_into_libs=yes 12513 # ldd complains unless libraries are executable 12514 postinstall_cmds='chmod +x $lib' 12515 ;; 12516 12517sunos4*) 12518 version_type=sunos 12519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 shlibpath_overrides_runpath=yes 12523 if test yes = "$with_gnu_ld"; then 12524 need_lib_prefix=no 12525 fi 12526 need_version=yes 12527 ;; 12528 12529sysv4 | sysv4.3*) 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 soname_spec='$libname$release$shared_ext$major' 12533 shlibpath_var=LD_LIBRARY_PATH 12534 case $host_vendor in 12535 sni) 12536 shlibpath_overrides_runpath=no 12537 need_lib_prefix=no 12538 runpath_var=LD_RUN_PATH 12539 ;; 12540 siemens) 12541 need_lib_prefix=no 12542 ;; 12543 motorola) 12544 need_lib_prefix=no 12545 need_version=no 12546 shlibpath_overrides_runpath=no 12547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12548 ;; 12549 esac 12550 ;; 12551 12552sysv4*MP*) 12553 if test -d /usr/nec; then 12554 version_type=linux # correct to gnu/linux during the next big refactor 12555 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12556 soname_spec='$libname$shared_ext.$major' 12557 shlibpath_var=LD_LIBRARY_PATH 12558 fi 12559 ;; 12560 12561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12562 version_type=sco 12563 need_lib_prefix=no 12564 need_version=no 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12566 soname_spec='$libname$release$shared_ext$major' 12567 shlibpath_var=LD_LIBRARY_PATH 12568 shlibpath_overrides_runpath=yes 12569 hardcode_into_libs=yes 12570 if test yes = "$with_gnu_ld"; then 12571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12572 else 12573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12574 case $host_os in 12575 sco3.2v5*) 12576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12577 ;; 12578 esac 12579 fi 12580 sys_lib_dlsearch_path_spec='/usr/lib' 12581 ;; 12582 12583tpf*) 12584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12585 version_type=linux # correct to gnu/linux during the next big refactor 12586 need_lib_prefix=no 12587 need_version=no 12588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12589 shlibpath_var=LD_LIBRARY_PATH 12590 shlibpath_overrides_runpath=no 12591 hardcode_into_libs=yes 12592 ;; 12593 12594uts4*) 12595 version_type=linux # correct to gnu/linux during the next big refactor 12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12597 soname_spec='$libname$release$shared_ext$major' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 ;; 12600 12601*) 12602 dynamic_linker=no 12603 ;; 12604esac 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12606$as_echo "$dynamic_linker" >&6; } 12607test no = "$dynamic_linker" && can_build_shared=no 12608 12609variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12610if test yes = "$GCC"; then 12611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12612fi 12613 12614if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12615 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12616fi 12617 12618if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12619 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12620fi 12621 12622# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12623configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12624 12625# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12626func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12627 12628# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12629configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12728$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12729hardcode_action= 12730if test -n "$hardcode_libdir_flag_spec" || 12731 test -n "$runpath_var" || 12732 test yes = "$hardcode_automatic"; then 12733 12734 # We can hardcode non-existent directories. 12735 if test no != "$hardcode_direct" && 12736 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12737 # have to relink, otherwise we might link with an installed library 12738 # when we should be linking with a yet-to-be-installed one 12739 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12740 test no != "$hardcode_minus_L"; then 12741 # Linking always hardcodes the temporary library directory. 12742 hardcode_action=relink 12743 else 12744 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12745 hardcode_action=immediate 12746 fi 12747else 12748 # We cannot hardcode anything, or else we can only hardcode existing 12749 # directories. 12750 hardcode_action=unsupported 12751fi 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12753$as_echo "$hardcode_action" >&6; } 12754 12755if test relink = "$hardcode_action" || 12756 test yes = "$inherit_rpath"; then 12757 # Fast installation is not supported 12758 enable_fast_install=no 12759elif test yes = "$shlibpath_overrides_runpath" || 12760 test no = "$enable_shared"; then 12761 # Fast installation is not necessary 12762 enable_fast_install=needless 12763fi 12764 12765 12766 12767 12768 12769 12770 if test yes != "$enable_dlopen"; then 12771 enable_dlopen=unknown 12772 enable_dlopen_self=unknown 12773 enable_dlopen_self_static=unknown 12774else 12775 lt_cv_dlopen=no 12776 lt_cv_dlopen_libs= 12777 12778 case $host_os in 12779 beos*) 12780 lt_cv_dlopen=load_add_on 12781 lt_cv_dlopen_libs= 12782 lt_cv_dlopen_self=yes 12783 ;; 12784 12785 mingw* | pw32* | cegcc*) 12786 lt_cv_dlopen=LoadLibrary 12787 lt_cv_dlopen_libs= 12788 ;; 12789 12790 cygwin*) 12791 lt_cv_dlopen=dlopen 12792 lt_cv_dlopen_libs= 12793 ;; 12794 12795 darwin*) 12796 # if libdl is installed we need to link against it 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12798$as_echo_n "checking for dlopen in -ldl... " >&6; } 12799if ${ac_cv_lib_dl_dlopen+:} false; then : 12800 $as_echo_n "(cached) " >&6 12801else 12802 ac_check_lib_save_LIBS=$LIBS 12803LIBS="-ldl $LIBS" 12804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806 12807/* Override any GCC internal prototype to avoid an error. 12808 Use char because int might match the return type of a GCC 12809 builtin and then its argument prototype would still apply. */ 12810#ifdef __cplusplus 12811extern "C" 12812#endif 12813char dlopen (); 12814int 12815main () 12816{ 12817return dlopen (); 12818 ; 12819 return 0; 12820} 12821_ACEOF 12822if ac_fn_c_try_link "$LINENO"; then : 12823 ac_cv_lib_dl_dlopen=yes 12824else 12825 ac_cv_lib_dl_dlopen=no 12826fi 12827rm -f core conftest.err conftest.$ac_objext \ 12828 conftest$ac_exeext conftest.$ac_ext 12829LIBS=$ac_check_lib_save_LIBS 12830fi 12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12832$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12833if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12834 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12835else 12836 12837 lt_cv_dlopen=dyld 12838 lt_cv_dlopen_libs= 12839 lt_cv_dlopen_self=yes 12840 12841fi 12842 12843 ;; 12844 12845 tpf*) 12846 # Don't try to run any link tests for TPF. We know it's impossible 12847 # because TPF is a cross-compiler, and we know how we open DSOs. 12848 lt_cv_dlopen=dlopen 12849 lt_cv_dlopen_libs= 12850 lt_cv_dlopen_self=no 12851 ;; 12852 12853 *) 12854 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12855if test "x$ac_cv_func_shl_load" = xyes; then : 12856 lt_cv_dlopen=shl_load 12857else 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12859$as_echo_n "checking for shl_load in -ldld... " >&6; } 12860if ${ac_cv_lib_dld_shl_load+:} false; then : 12861 $as_echo_n "(cached) " >&6 12862else 12863 ac_check_lib_save_LIBS=$LIBS 12864LIBS="-ldld $LIBS" 12865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866/* end confdefs.h. */ 12867 12868/* Override any GCC internal prototype to avoid an error. 12869 Use char because int might match the return type of a GCC 12870 builtin and then its argument prototype would still apply. */ 12871#ifdef __cplusplus 12872extern "C" 12873#endif 12874char shl_load (); 12875int 12876main () 12877{ 12878return shl_load (); 12879 ; 12880 return 0; 12881} 12882_ACEOF 12883if ac_fn_c_try_link "$LINENO"; then : 12884 ac_cv_lib_dld_shl_load=yes 12885else 12886 ac_cv_lib_dld_shl_load=no 12887fi 12888rm -f core conftest.err conftest.$ac_objext \ 12889 conftest$ac_exeext conftest.$ac_ext 12890LIBS=$ac_check_lib_save_LIBS 12891fi 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12893$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12894if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12895 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12896else 12897 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12898if test "x$ac_cv_func_dlopen" = xyes; then : 12899 lt_cv_dlopen=dlopen 12900else 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12902$as_echo_n "checking for dlopen in -ldl... " >&6; } 12903if ${ac_cv_lib_dl_dlopen+:} false; then : 12904 $as_echo_n "(cached) " >&6 12905else 12906 ac_check_lib_save_LIBS=$LIBS 12907LIBS="-ldl $LIBS" 12908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910 12911/* Override any GCC internal prototype to avoid an error. 12912 Use char because int might match the return type of a GCC 12913 builtin and then its argument prototype would still apply. */ 12914#ifdef __cplusplus 12915extern "C" 12916#endif 12917char dlopen (); 12918int 12919main () 12920{ 12921return dlopen (); 12922 ; 12923 return 0; 12924} 12925_ACEOF 12926if ac_fn_c_try_link "$LINENO"; then : 12927 ac_cv_lib_dl_dlopen=yes 12928else 12929 ac_cv_lib_dl_dlopen=no 12930fi 12931rm -f core conftest.err conftest.$ac_objext \ 12932 conftest$ac_exeext conftest.$ac_ext 12933LIBS=$ac_check_lib_save_LIBS 12934fi 12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12936$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12937if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12938 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12939else 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12941$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12942if ${ac_cv_lib_svld_dlopen+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944else 12945 ac_check_lib_save_LIBS=$LIBS 12946LIBS="-lsvld $LIBS" 12947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949 12950/* Override any GCC internal prototype to avoid an error. 12951 Use char because int might match the return type of a GCC 12952 builtin and then its argument prototype would still apply. */ 12953#ifdef __cplusplus 12954extern "C" 12955#endif 12956char dlopen (); 12957int 12958main () 12959{ 12960return dlopen (); 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965if ac_fn_c_try_link "$LINENO"; then : 12966 ac_cv_lib_svld_dlopen=yes 12967else 12968 ac_cv_lib_svld_dlopen=no 12969fi 12970rm -f core conftest.err conftest.$ac_objext \ 12971 conftest$ac_exeext conftest.$ac_ext 12972LIBS=$ac_check_lib_save_LIBS 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12975$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12976if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12978else 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12980$as_echo_n "checking for dld_link in -ldld... " >&6; } 12981if ${ac_cv_lib_dld_dld_link+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 ac_check_lib_save_LIBS=$LIBS 12985LIBS="-ldld $LIBS" 12986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12987/* end confdefs.h. */ 12988 12989/* Override any GCC internal prototype to avoid an error. 12990 Use char because int might match the return type of a GCC 12991 builtin and then its argument prototype would still apply. */ 12992#ifdef __cplusplus 12993extern "C" 12994#endif 12995char dld_link (); 12996int 12997main () 12998{ 12999return dld_link (); 13000 ; 13001 return 0; 13002} 13003_ACEOF 13004if ac_fn_c_try_link "$LINENO"; then : 13005 ac_cv_lib_dld_dld_link=yes 13006else 13007 ac_cv_lib_dld_dld_link=no 13008fi 13009rm -f core conftest.err conftest.$ac_objext \ 13010 conftest$ac_exeext conftest.$ac_ext 13011LIBS=$ac_check_lib_save_LIBS 13012fi 13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13014$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13015if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13016 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13017fi 13018 13019 13020fi 13021 13022 13023fi 13024 13025 13026fi 13027 13028 13029fi 13030 13031 13032fi 13033 13034 ;; 13035 esac 13036 13037 if test no = "$lt_cv_dlopen"; then 13038 enable_dlopen=no 13039 else 13040 enable_dlopen=yes 13041 fi 13042 13043 case $lt_cv_dlopen in 13044 dlopen) 13045 save_CPPFLAGS=$CPPFLAGS 13046 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13047 13048 save_LDFLAGS=$LDFLAGS 13049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13050 13051 save_LIBS=$LIBS 13052 LIBS="$lt_cv_dlopen_libs $LIBS" 13053 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13055$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13056if ${lt_cv_dlopen_self+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 if test yes = "$cross_compiling"; then : 13060 lt_cv_dlopen_self=cross 13061else 13062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13063 lt_status=$lt_dlunknown 13064 cat > conftest.$ac_ext <<_LT_EOF 13065#line $LINENO "configure" 13066#include "confdefs.h" 13067 13068#if HAVE_DLFCN_H 13069#include <dlfcn.h> 13070#endif 13071 13072#include <stdio.h> 13073 13074#ifdef RTLD_GLOBAL 13075# define LT_DLGLOBAL RTLD_GLOBAL 13076#else 13077# ifdef DL_GLOBAL 13078# define LT_DLGLOBAL DL_GLOBAL 13079# else 13080# define LT_DLGLOBAL 0 13081# endif 13082#endif 13083 13084/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13085 find out it does not work in some platform. */ 13086#ifndef LT_DLLAZY_OR_NOW 13087# ifdef RTLD_LAZY 13088# define LT_DLLAZY_OR_NOW RTLD_LAZY 13089# else 13090# ifdef DL_LAZY 13091# define LT_DLLAZY_OR_NOW DL_LAZY 13092# else 13093# ifdef RTLD_NOW 13094# define LT_DLLAZY_OR_NOW RTLD_NOW 13095# else 13096# ifdef DL_NOW 13097# define LT_DLLAZY_OR_NOW DL_NOW 13098# else 13099# define LT_DLLAZY_OR_NOW 0 13100# endif 13101# endif 13102# endif 13103# endif 13104#endif 13105 13106/* When -fvisibility=hidden is used, assume the code has been annotated 13107 correspondingly for the symbols needed. */ 13108#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13109int fnord () __attribute__((visibility("default"))); 13110#endif 13111 13112int fnord () { return 42; } 13113int main () 13114{ 13115 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13116 int status = $lt_dlunknown; 13117 13118 if (self) 13119 { 13120 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13121 else 13122 { 13123 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13124 else puts (dlerror ()); 13125 } 13126 /* dlclose (self); */ 13127 } 13128 else 13129 puts (dlerror ()); 13130 13131 return status; 13132} 13133_LT_EOF 13134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13135 (eval $ac_link) 2>&5 13136 ac_status=$? 13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13138 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13139 (./conftest; exit; ) >&5 2>/dev/null 13140 lt_status=$? 13141 case x$lt_status in 13142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13144 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13145 esac 13146 else : 13147 # compilation failed 13148 lt_cv_dlopen_self=no 13149 fi 13150fi 13151rm -fr conftest* 13152 13153 13154fi 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13156$as_echo "$lt_cv_dlopen_self" >&6; } 13157 13158 if test yes = "$lt_cv_dlopen_self"; then 13159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13161$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13162if ${lt_cv_dlopen_self_static+:} false; then : 13163 $as_echo_n "(cached) " >&6 13164else 13165 if test yes = "$cross_compiling"; then : 13166 lt_cv_dlopen_self_static=cross 13167else 13168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13169 lt_status=$lt_dlunknown 13170 cat > conftest.$ac_ext <<_LT_EOF 13171#line $LINENO "configure" 13172#include "confdefs.h" 13173 13174#if HAVE_DLFCN_H 13175#include <dlfcn.h> 13176#endif 13177 13178#include <stdio.h> 13179 13180#ifdef RTLD_GLOBAL 13181# define LT_DLGLOBAL RTLD_GLOBAL 13182#else 13183# ifdef DL_GLOBAL 13184# define LT_DLGLOBAL DL_GLOBAL 13185# else 13186# define LT_DLGLOBAL 0 13187# endif 13188#endif 13189 13190/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13191 find out it does not work in some platform. */ 13192#ifndef LT_DLLAZY_OR_NOW 13193# ifdef RTLD_LAZY 13194# define LT_DLLAZY_OR_NOW RTLD_LAZY 13195# else 13196# ifdef DL_LAZY 13197# define LT_DLLAZY_OR_NOW DL_LAZY 13198# else 13199# ifdef RTLD_NOW 13200# define LT_DLLAZY_OR_NOW RTLD_NOW 13201# else 13202# ifdef DL_NOW 13203# define LT_DLLAZY_OR_NOW DL_NOW 13204# else 13205# define LT_DLLAZY_OR_NOW 0 13206# endif 13207# endif 13208# endif 13209# endif 13210#endif 13211 13212/* When -fvisibility=hidden is used, assume the code has been annotated 13213 correspondingly for the symbols needed. */ 13214#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13215int fnord () __attribute__((visibility("default"))); 13216#endif 13217 13218int fnord () { return 42; } 13219int main () 13220{ 13221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13222 int status = $lt_dlunknown; 13223 13224 if (self) 13225 { 13226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13227 else 13228 { 13229 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13230 else puts (dlerror ()); 13231 } 13232 /* dlclose (self); */ 13233 } 13234 else 13235 puts (dlerror ()); 13236 13237 return status; 13238} 13239_LT_EOF 13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13241 (eval $ac_link) 2>&5 13242 ac_status=$? 13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13244 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13245 (./conftest; exit; ) >&5 2>/dev/null 13246 lt_status=$? 13247 case x$lt_status in 13248 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13249 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13250 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13251 esac 13252 else : 13253 # compilation failed 13254 lt_cv_dlopen_self_static=no 13255 fi 13256fi 13257rm -fr conftest* 13258 13259 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13262$as_echo "$lt_cv_dlopen_self_static" >&6; } 13263 fi 13264 13265 CPPFLAGS=$save_CPPFLAGS 13266 LDFLAGS=$save_LDFLAGS 13267 LIBS=$save_LIBS 13268 ;; 13269 esac 13270 13271 case $lt_cv_dlopen_self in 13272 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13273 *) enable_dlopen_self=unknown ;; 13274 esac 13275 13276 case $lt_cv_dlopen_self_static in 13277 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13278 *) enable_dlopen_self_static=unknown ;; 13279 esac 13280fi 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298striplib= 13299old_striplib= 13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13301$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13302if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13304 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13306$as_echo "yes" >&6; } 13307else 13308# FIXME - insert some real tests, host_os isn't really good enough 13309 case $host_os in 13310 darwin*) 13311 if test -n "$STRIP"; then 13312 striplib="$STRIP -x" 13313 old_striplib="$STRIP -S" 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13315$as_echo "yes" >&6; } 13316 else 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13318$as_echo "no" >&6; } 13319 fi 13320 ;; 13321 *) 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13323$as_echo "no" >&6; } 13324 ;; 13325 esac 13326fi 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 # Report what library types will actually be built 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13341$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13343$as_echo "$can_build_shared" >&6; } 13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13346$as_echo_n "checking whether to build shared libraries... " >&6; } 13347 test no = "$can_build_shared" && enable_shared=no 13348 13349 # On AIX, shared libraries and static libraries use the same namespace, and 13350 # are all built from PIC. 13351 case $host_os in 13352 aix3*) 13353 test yes = "$enable_shared" && enable_static=no 13354 if test -n "$RANLIB"; then 13355 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13356 postinstall_cmds='$RANLIB $lib' 13357 fi 13358 ;; 13359 13360 aix[4-9]*) 13361 if test ia64 != "$host_cpu"; then 13362 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13363 yes,aix,yes) ;; # shared object as lib.so file only 13364 yes,svr4,*) ;; # shared object as lib.so archive member only 13365 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13366 esac 13367 fi 13368 ;; 13369 esac 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13371$as_echo "$enable_shared" >&6; } 13372 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13374$as_echo_n "checking whether to build static libraries... " >&6; } 13375 # Make sure either enable_shared or enable_static is yes. 13376 test yes = "$enable_shared" || enable_static=yes 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13378$as_echo "$enable_static" >&6; } 13379 13380 13381 13382 13383fi 13384ac_ext=c 13385ac_cpp='$CPP $CPPFLAGS' 13386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13388ac_compiler_gnu=$ac_cv_c_compiler_gnu 13389 13390CC=$lt_save_CC 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 ac_config_commands="$ac_config_commands libtool" 13407 13408 13409 13410 13411# Only expand once: 13412 13413 13414# By default we simply use the C compiler to build assembly code. 13415 13416test "${CCAS+set}" = set || CCAS=$CC 13417test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13418 13419 13420 13421depcc="$CCAS" am_compiler_list= 13422 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13424$as_echo_n "checking dependency style of $depcc... " >&6; } 13425if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13429 # We make a subdir and do the tests there. Otherwise we can end up 13430 # making bogus files that we don't know about and never remove. For 13431 # instance it was reported that on HP-UX the gcc test will end up 13432 # making a dummy file named 'D' -- because '-MD' means "put the output 13433 # in D". 13434 rm -rf conftest.dir 13435 mkdir conftest.dir 13436 # Copy depcomp to subdir because otherwise we won't find it if we're 13437 # using a relative directory. 13438 cp "$am_depcomp" conftest.dir 13439 cd conftest.dir 13440 # We will build objects and dependencies in a subdirectory because 13441 # it helps to detect inapplicable dependency modes. For instance 13442 # both Tru64's cc and ICC support -MD to output dependencies as a 13443 # side effect of compilation, but ICC will put the dependencies in 13444 # the current directory while Tru64 will put them in the object 13445 # directory. 13446 mkdir sub 13447 13448 am_cv_CCAS_dependencies_compiler_type=none 13449 if test "$am_compiler_list" = ""; then 13450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13451 fi 13452 am__universal=false 13453 13454 13455 for depmode in $am_compiler_list; do 13456 # Setup a source with many dependencies, because some compilers 13457 # like to wrap large dependency lists on column 80 (with \), and 13458 # we should not choose a depcomp mode which is confused by this. 13459 # 13460 # We need to recreate these files for each test, as the compiler may 13461 # overwrite some of them when testing with obscure command lines. 13462 # This happens at least with the AIX C compiler. 13463 : > sub/conftest.c 13464 for i in 1 2 3 4 5 6; do 13465 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13466 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13467 # Solaris 10 /bin/sh. 13468 echo '/* dummy */' > sub/conftst$i.h 13469 done 13470 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13471 13472 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13473 # mode. It turns out that the SunPro C++ compiler does not properly 13474 # handle '-M -o', and we need to detect this. Also, some Intel 13475 # versions had trouble with output in subdirs. 13476 am__obj=sub/conftest.${OBJEXT-o} 13477 am__minus_obj="-o $am__obj" 13478 case $depmode in 13479 gcc) 13480 # This depmode causes a compiler race in universal mode. 13481 test "$am__universal" = false || continue 13482 ;; 13483 nosideeffect) 13484 # After this tag, mechanisms are not by side-effect, so they'll 13485 # only be used when explicitly requested. 13486 if test "x$enable_dependency_tracking" = xyes; then 13487 continue 13488 else 13489 break 13490 fi 13491 ;; 13492 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13493 # This compiler won't grok '-c -o', but also, the minuso test has 13494 # not run yet. These depmodes are late enough in the game, and 13495 # so weak that their functioning should not be impacted. 13496 am__obj=conftest.${OBJEXT-o} 13497 am__minus_obj= 13498 ;; 13499 none) break ;; 13500 esac 13501 if depmode=$depmode \ 13502 source=sub/conftest.c object=$am__obj \ 13503 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13504 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13505 >/dev/null 2>conftest.err && 13506 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13508 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13510 # icc doesn't choke on unknown options, it will just issue warnings 13511 # or remarks (even with -Werror). So we grep stderr for any message 13512 # that says an option was ignored or not supported. 13513 # When given -MP, icc 7.0 and 7.1 complain thusly: 13514 # icc: Command line warning: ignoring option '-M'; no argument required 13515 # The diagnosis changed in icc 8.0: 13516 # icc: Command line remark: option '-MP' not supported 13517 if (grep 'ignoring option' conftest.err || 13518 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13519 am_cv_CCAS_dependencies_compiler_type=$depmode 13520 break 13521 fi 13522 fi 13523 done 13524 13525 cd .. 13526 rm -rf conftest.dir 13527else 13528 am_cv_CCAS_dependencies_compiler_type=none 13529fi 13530 13531fi 13532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13533$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13534CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13535 13536 if 13537 test "x$enable_dependency_tracking" != xno \ 13538 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13539 am__fastdepCCAS_TRUE= 13540 am__fastdepCCAS_FALSE='#' 13541else 13542 am__fastdepCCAS_TRUE='#' 13543 am__fastdepCCAS_FALSE= 13544fi 13545 13546 13547ac_ext=cpp 13548ac_cpp='$CXXCPP $CPPFLAGS' 13549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13552if test -z "$CXX"; then 13553 if test -n "$CCC"; then 13554 CXX=$CCC 13555 else 13556 if test -n "$ac_tool_prefix"; then 13557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13558 do 13559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13560set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13562$as_echo_n "checking for $ac_word... " >&6; } 13563if ${ac_cv_prog_CXX+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 if test -n "$CXX"; then 13567 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13568else 13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570for as_dir in $PATH 13571do 13572 IFS=$as_save_IFS 13573 test -z "$as_dir" && as_dir=. 13574 for ac_exec_ext in '' $ac_executable_extensions; do 13575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13578 break 2 13579 fi 13580done 13581 done 13582IFS=$as_save_IFS 13583 13584fi 13585fi 13586CXX=$ac_cv_prog_CXX 13587if test -n "$CXX"; then 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13589$as_echo "$CXX" >&6; } 13590else 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13592$as_echo "no" >&6; } 13593fi 13594 13595 13596 test -n "$CXX" && break 13597 done 13598fi 13599if test -z "$CXX"; then 13600 ac_ct_CXX=$CXX 13601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13602do 13603 # Extract the first word of "$ac_prog", so it can be a program name with args. 13604set dummy $ac_prog; ac_word=$2 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13606$as_echo_n "checking for $ac_word... " >&6; } 13607if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13608 $as_echo_n "(cached) " >&6 13609else 13610 if test -n "$ac_ct_CXX"; then 13611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13612else 13613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13614for as_dir in $PATH 13615do 13616 IFS=$as_save_IFS 13617 test -z "$as_dir" && as_dir=. 13618 for ac_exec_ext in '' $ac_executable_extensions; do 13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13620 ac_cv_prog_ac_ct_CXX="$ac_prog" 13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13622 break 2 13623 fi 13624done 13625 done 13626IFS=$as_save_IFS 13627 13628fi 13629fi 13630ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13631if test -n "$ac_ct_CXX"; then 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13633$as_echo "$ac_ct_CXX" >&6; } 13634else 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13636$as_echo "no" >&6; } 13637fi 13638 13639 13640 test -n "$ac_ct_CXX" && break 13641done 13642 13643 if test "x$ac_ct_CXX" = x; then 13644 CXX="g++" 13645 else 13646 case $cross_compiling:$ac_tool_warned in 13647yes:) 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13650ac_tool_warned=yes ;; 13651esac 13652 CXX=$ac_ct_CXX 13653 fi 13654fi 13655 13656 fi 13657fi 13658# Provide some information about the compiler. 13659$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13660set X $ac_compile 13661ac_compiler=$2 13662for ac_option in --version -v -V -qversion; do 13663 { { ac_try="$ac_compiler $ac_option >&5" 13664case "(($ac_try" in 13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13666 *) ac_try_echo=$ac_try;; 13667esac 13668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13669$as_echo "$ac_try_echo"; } >&5 13670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13671 ac_status=$? 13672 if test -s conftest.err; then 13673 sed '10a\ 13674... rest of stderr output deleted ... 13675 10q' conftest.err >conftest.er1 13676 cat conftest.er1 >&5 13677 fi 13678 rm -f conftest.er1 conftest.err 13679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13680 test $ac_status = 0; } 13681done 13682 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13684$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13685if ${ac_cv_cxx_compiler_gnu+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690 13691int 13692main () 13693{ 13694#ifndef __GNUC__ 13695 choke me 13696#endif 13697 13698 ; 13699 return 0; 13700} 13701_ACEOF 13702if ac_fn_cxx_try_compile "$LINENO"; then : 13703 ac_compiler_gnu=yes 13704else 13705 ac_compiler_gnu=no 13706fi 13707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13709 13710fi 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13712$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13713if test $ac_compiler_gnu = yes; then 13714 GXX=yes 13715else 13716 GXX= 13717fi 13718ac_test_CXXFLAGS=${CXXFLAGS+set} 13719ac_save_CXXFLAGS=$CXXFLAGS 13720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13721$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13722if ${ac_cv_prog_cxx_g+:} false; then : 13723 $as_echo_n "(cached) " >&6 13724else 13725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13726 ac_cxx_werror_flag=yes 13727 ac_cv_prog_cxx_g=no 13728 CXXFLAGS="-g" 13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13730/* end confdefs.h. */ 13731 13732int 13733main () 13734{ 13735 13736 ; 13737 return 0; 13738} 13739_ACEOF 13740if ac_fn_cxx_try_compile "$LINENO"; then : 13741 ac_cv_prog_cxx_g=yes 13742else 13743 CXXFLAGS="" 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746 13747int 13748main () 13749{ 13750 13751 ; 13752 return 0; 13753} 13754_ACEOF 13755if ac_fn_cxx_try_compile "$LINENO"; then : 13756 13757else 13758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13759 CXXFLAGS="-g" 13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13761/* end confdefs.h. */ 13762 13763int 13764main () 13765{ 13766 13767 ; 13768 return 0; 13769} 13770_ACEOF 13771if ac_fn_cxx_try_compile "$LINENO"; then : 13772 ac_cv_prog_cxx_g=yes 13773fi 13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13775fi 13776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13777fi 13778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13782$as_echo "$ac_cv_prog_cxx_g" >&6; } 13783if test "$ac_test_CXXFLAGS" = set; then 13784 CXXFLAGS=$ac_save_CXXFLAGS 13785elif test $ac_cv_prog_cxx_g = yes; then 13786 if test "$GXX" = yes; then 13787 CXXFLAGS="-g -O2" 13788 else 13789 CXXFLAGS="-g" 13790 fi 13791else 13792 if test "$GXX" = yes; then 13793 CXXFLAGS="-O2" 13794 else 13795 CXXFLAGS= 13796 fi 13797fi 13798ac_ext=c 13799ac_cpp='$CPP $CPPFLAGS' 13800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13802ac_compiler_gnu=$ac_cv_c_compiler_gnu 13803 13804depcc="$CXX" am_compiler_list= 13805 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13807$as_echo_n "checking dependency style of $depcc... " >&6; } 13808if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13812 # We make a subdir and do the tests there. Otherwise we can end up 13813 # making bogus files that we don't know about and never remove. For 13814 # instance it was reported that on HP-UX the gcc test will end up 13815 # making a dummy file named 'D' -- because '-MD' means "put the output 13816 # in D". 13817 rm -rf conftest.dir 13818 mkdir conftest.dir 13819 # Copy depcomp to subdir because otherwise we won't find it if we're 13820 # using a relative directory. 13821 cp "$am_depcomp" conftest.dir 13822 cd conftest.dir 13823 # We will build objects and dependencies in a subdirectory because 13824 # it helps to detect inapplicable dependency modes. For instance 13825 # both Tru64's cc and ICC support -MD to output dependencies as a 13826 # side effect of compilation, but ICC will put the dependencies in 13827 # the current directory while Tru64 will put them in the object 13828 # directory. 13829 mkdir sub 13830 13831 am_cv_CXX_dependencies_compiler_type=none 13832 if test "$am_compiler_list" = ""; then 13833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13834 fi 13835 am__universal=false 13836 case " $depcc " in #( 13837 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13838 esac 13839 13840 for depmode in $am_compiler_list; do 13841 # Setup a source with many dependencies, because some compilers 13842 # like to wrap large dependency lists on column 80 (with \), and 13843 # we should not choose a depcomp mode which is confused by this. 13844 # 13845 # We need to recreate these files for each test, as the compiler may 13846 # overwrite some of them when testing with obscure command lines. 13847 # This happens at least with the AIX C compiler. 13848 : > sub/conftest.c 13849 for i in 1 2 3 4 5 6; do 13850 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13851 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13852 # Solaris 10 /bin/sh. 13853 echo '/* dummy */' > sub/conftst$i.h 13854 done 13855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13856 13857 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13858 # mode. It turns out that the SunPro C++ compiler does not properly 13859 # handle '-M -o', and we need to detect this. Also, some Intel 13860 # versions had trouble with output in subdirs. 13861 am__obj=sub/conftest.${OBJEXT-o} 13862 am__minus_obj="-o $am__obj" 13863 case $depmode in 13864 gcc) 13865 # This depmode causes a compiler race in universal mode. 13866 test "$am__universal" = false || continue 13867 ;; 13868 nosideeffect) 13869 # After this tag, mechanisms are not by side-effect, so they'll 13870 # only be used when explicitly requested. 13871 if test "x$enable_dependency_tracking" = xyes; then 13872 continue 13873 else 13874 break 13875 fi 13876 ;; 13877 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13878 # This compiler won't grok '-c -o', but also, the minuso test has 13879 # not run yet. These depmodes are late enough in the game, and 13880 # so weak that their functioning should not be impacted. 13881 am__obj=conftest.${OBJEXT-o} 13882 am__minus_obj= 13883 ;; 13884 none) break ;; 13885 esac 13886 if depmode=$depmode \ 13887 source=sub/conftest.c object=$am__obj \ 13888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13889 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13890 >/dev/null 2>conftest.err && 13891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13893 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13895 # icc doesn't choke on unknown options, it will just issue warnings 13896 # or remarks (even with -Werror). So we grep stderr for any message 13897 # that says an option was ignored or not supported. 13898 # When given -MP, icc 7.0 and 7.1 complain thusly: 13899 # icc: Command line warning: ignoring option '-M'; no argument required 13900 # The diagnosis changed in icc 8.0: 13901 # icc: Command line remark: option '-MP' not supported 13902 if (grep 'ignoring option' conftest.err || 13903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13904 am_cv_CXX_dependencies_compiler_type=$depmode 13905 break 13906 fi 13907 fi 13908 done 13909 13910 cd .. 13911 rm -rf conftest.dir 13912else 13913 am_cv_CXX_dependencies_compiler_type=none 13914fi 13915 13916fi 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13918$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13919CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13920 13921 if 13922 test "x$enable_dependency_tracking" != xno \ 13923 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13924 am__fastdepCXX_TRUE= 13925 am__fastdepCXX_FALSE='#' 13926else 13927 am__fastdepCXX_TRUE='#' 13928 am__fastdepCXX_FALSE= 13929fi 13930 13931 13932 13933 13934func_stripname_cnf () 13935{ 13936 case $2 in 13937 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13938 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13939 esac 13940} # func_stripname_cnf 13941 13942 if test -n "$CXX" && ( test no != "$CXX" && 13943 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13944 (test g++ != "$CXX"))); then 13945 ac_ext=cpp 13946ac_cpp='$CXXCPP $CPPFLAGS' 13947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13951$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13952if test -z "$CXXCPP"; then 13953 if ${ac_cv_prog_CXXCPP+:} false; then : 13954 $as_echo_n "(cached) " >&6 13955else 13956 # Double quotes because CXXCPP needs to be expanded 13957 for CXXCPP in "$CXX -E" "/lib/cpp" 13958 do 13959 ac_preproc_ok=false 13960for ac_cxx_preproc_warn_flag in '' yes 13961do 13962 # Use a header file that comes with gcc, so configuring glibc 13963 # with a fresh cross-compiler works. 13964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13965 # <limits.h> exists even on freestanding compilers. 13966 # On the NeXT, cc -E runs the code through the compiler's parser, 13967 # not just through cpp. "Syntax error" is here to catch this case. 13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969/* end confdefs.h. */ 13970#ifdef __STDC__ 13971# include <limits.h> 13972#else 13973# include <assert.h> 13974#endif 13975 Syntax error 13976_ACEOF 13977if ac_fn_cxx_try_cpp "$LINENO"; then : 13978 13979else 13980 # Broken: fails on valid input. 13981continue 13982fi 13983rm -f conftest.err conftest.i conftest.$ac_ext 13984 13985 # OK, works on sane cases. Now check whether nonexistent headers 13986 # can be detected and how. 13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989#include <ac_nonexistent.h> 13990_ACEOF 13991if ac_fn_cxx_try_cpp "$LINENO"; then : 13992 # Broken: success on invalid input. 13993continue 13994else 13995 # Passes both tests. 13996ac_preproc_ok=: 13997break 13998fi 13999rm -f conftest.err conftest.i conftest.$ac_ext 14000 14001done 14002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14003rm -f conftest.i conftest.err conftest.$ac_ext 14004if $ac_preproc_ok; then : 14005 break 14006fi 14007 14008 done 14009 ac_cv_prog_CXXCPP=$CXXCPP 14010 14011fi 14012 CXXCPP=$ac_cv_prog_CXXCPP 14013else 14014 ac_cv_prog_CXXCPP=$CXXCPP 14015fi 14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14017$as_echo "$CXXCPP" >&6; } 14018ac_preproc_ok=false 14019for ac_cxx_preproc_warn_flag in '' yes 14020do 14021 # Use a header file that comes with gcc, so configuring glibc 14022 # with a fresh cross-compiler works. 14023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14024 # <limits.h> exists even on freestanding compilers. 14025 # On the NeXT, cc -E runs the code through the compiler's parser, 14026 # not just through cpp. "Syntax error" is here to catch this case. 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029#ifdef __STDC__ 14030# include <limits.h> 14031#else 14032# include <assert.h> 14033#endif 14034 Syntax error 14035_ACEOF 14036if ac_fn_cxx_try_cpp "$LINENO"; then : 14037 14038else 14039 # Broken: fails on valid input. 14040continue 14041fi 14042rm -f conftest.err conftest.i conftest.$ac_ext 14043 14044 # OK, works on sane cases. Now check whether nonexistent headers 14045 # can be detected and how. 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047/* end confdefs.h. */ 14048#include <ac_nonexistent.h> 14049_ACEOF 14050if ac_fn_cxx_try_cpp "$LINENO"; then : 14051 # Broken: success on invalid input. 14052continue 14053else 14054 # Passes both tests. 14055ac_preproc_ok=: 14056break 14057fi 14058rm -f conftest.err conftest.i conftest.$ac_ext 14059 14060done 14061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14062rm -f conftest.i conftest.err conftest.$ac_ext 14063if $ac_preproc_ok; then : 14064 14065else 14066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14068as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14069See \`config.log' for more details" "$LINENO" 5; } 14070fi 14071 14072ac_ext=c 14073ac_cpp='$CPP $CPPFLAGS' 14074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14076ac_compiler_gnu=$ac_cv_c_compiler_gnu 14077 14078else 14079 _lt_caught_CXX_error=yes 14080fi 14081 14082ac_ext=cpp 14083ac_cpp='$CXXCPP $CPPFLAGS' 14084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14087 14088archive_cmds_need_lc_CXX=no 14089allow_undefined_flag_CXX= 14090always_export_symbols_CXX=no 14091archive_expsym_cmds_CXX= 14092compiler_needs_object_CXX=no 14093export_dynamic_flag_spec_CXX= 14094hardcode_direct_CXX=no 14095hardcode_direct_absolute_CXX=no 14096hardcode_libdir_flag_spec_CXX= 14097hardcode_libdir_separator_CXX= 14098hardcode_minus_L_CXX=no 14099hardcode_shlibpath_var_CXX=unsupported 14100hardcode_automatic_CXX=no 14101inherit_rpath_CXX=no 14102module_cmds_CXX= 14103module_expsym_cmds_CXX= 14104link_all_deplibs_CXX=unknown 14105old_archive_cmds_CXX=$old_archive_cmds 14106reload_flag_CXX=$reload_flag 14107reload_cmds_CXX=$reload_cmds 14108no_undefined_flag_CXX= 14109whole_archive_flag_spec_CXX= 14110enable_shared_with_static_runtimes_CXX=no 14111 14112# Source file extension for C++ test sources. 14113ac_ext=cpp 14114 14115# Object file extension for compiled C++ test sources. 14116objext=o 14117objext_CXX=$objext 14118 14119# No sense in running all these tests if we already determined that 14120# the CXX compiler isn't working. Some variables (like enable_shared) 14121# are currently assumed to apply to all compilers on this platform, 14122# and will be corrupted by setting them based on a non-working compiler. 14123if test yes != "$_lt_caught_CXX_error"; then 14124 # Code to be used in simple compile tests 14125 lt_simple_compile_test_code="int some_variable = 0;" 14126 14127 # Code to be used in simple link tests 14128 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14129 14130 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14131 14132 14133 14134 14135 14136 14137# If no C compiler was specified, use CC. 14138LTCC=${LTCC-"$CC"} 14139 14140# If no C compiler flags were specified, use CFLAGS. 14141LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14142 14143# Allow CC to be a program name with arguments. 14144compiler=$CC 14145 14146 14147 # save warnings/boilerplate of simple test code 14148 ac_outfile=conftest.$ac_objext 14149echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14150eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14151_lt_compiler_boilerplate=`cat conftest.err` 14152$RM conftest* 14153 14154 ac_outfile=conftest.$ac_objext 14155echo "$lt_simple_link_test_code" >conftest.$ac_ext 14156eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14157_lt_linker_boilerplate=`cat conftest.err` 14158$RM -r conftest* 14159 14160 14161 # Allow CC to be a program name with arguments. 14162 lt_save_CC=$CC 14163 lt_save_CFLAGS=$CFLAGS 14164 lt_save_LD=$LD 14165 lt_save_GCC=$GCC 14166 GCC=$GXX 14167 lt_save_with_gnu_ld=$with_gnu_ld 14168 lt_save_path_LD=$lt_cv_path_LD 14169 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14170 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14171 else 14172 $as_unset lt_cv_prog_gnu_ld 14173 fi 14174 if test -n "${lt_cv_path_LDCXX+set}"; then 14175 lt_cv_path_LD=$lt_cv_path_LDCXX 14176 else 14177 $as_unset lt_cv_path_LD 14178 fi 14179 test -z "${LDCXX+set}" || LD=$LDCXX 14180 CC=${CXX-"c++"} 14181 CFLAGS=$CXXFLAGS 14182 compiler=$CC 14183 compiler_CXX=$CC 14184 func_cc_basename $compiler 14185cc_basename=$func_cc_basename_result 14186 14187 14188 if test -n "$compiler"; then 14189 # We don't want -fno-exception when compiling C++ code, so set the 14190 # no_builtin_flag separately 14191 if test yes = "$GXX"; then 14192 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14193 else 14194 lt_prog_compiler_no_builtin_flag_CXX= 14195 fi 14196 14197 if test yes = "$GXX"; then 14198 # Set up default GNU C++ configuration 14199 14200 14201 14202# Check whether --with-gnu-ld was given. 14203if test "${with_gnu_ld+set}" = set; then : 14204 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14205else 14206 with_gnu_ld=no 14207fi 14208 14209ac_prog=ld 14210if test yes = "$GCC"; then 14211 # Check if gcc -print-prog-name=ld gives a path. 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14213$as_echo_n "checking for ld used by $CC... " >&6; } 14214 case $host in 14215 *-*-mingw*) 14216 # gcc leaves a trailing carriage return, which upsets mingw 14217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14218 *) 14219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14220 esac 14221 case $ac_prog in 14222 # Accept absolute paths. 14223 [\\/]* | ?:[\\/]*) 14224 re_direlt='/[^/][^/]*/\.\./' 14225 # Canonicalize the pathname of ld 14226 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14227 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14228 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14229 done 14230 test -z "$LD" && LD=$ac_prog 14231 ;; 14232 "") 14233 # If it fails, then pretend we aren't using GCC. 14234 ac_prog=ld 14235 ;; 14236 *) 14237 # If it is relative, then search for the first ld in PATH. 14238 with_gnu_ld=unknown 14239 ;; 14240 esac 14241elif test yes = "$with_gnu_ld"; then 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14243$as_echo_n "checking for GNU ld... " >&6; } 14244else 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14246$as_echo_n "checking for non-GNU ld... " >&6; } 14247fi 14248if ${lt_cv_path_LD+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250else 14251 if test -z "$LD"; then 14252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14253 for ac_dir in $PATH; do 14254 IFS=$lt_save_ifs 14255 test -z "$ac_dir" && ac_dir=. 14256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14257 lt_cv_path_LD=$ac_dir/$ac_prog 14258 # Check to see if the program is GNU ld. I'd rather use --version, 14259 # but apparently some variants of GNU ld only accept -v. 14260 # Break only if it was the GNU/non-GNU ld that we prefer. 14261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14262 *GNU* | *'with BFD'*) 14263 test no != "$with_gnu_ld" && break 14264 ;; 14265 *) 14266 test yes != "$with_gnu_ld" && break 14267 ;; 14268 esac 14269 fi 14270 done 14271 IFS=$lt_save_ifs 14272else 14273 lt_cv_path_LD=$LD # Let the user override the test with a path. 14274fi 14275fi 14276 14277LD=$lt_cv_path_LD 14278if test -n "$LD"; then 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14280$as_echo "$LD" >&6; } 14281else 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14283$as_echo "no" >&6; } 14284fi 14285test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14287$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14288if ${lt_cv_prog_gnu_ld+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290else 14291 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14292case `$LD -v 2>&1 </dev/null` in 14293*GNU* | *'with BFD'*) 14294 lt_cv_prog_gnu_ld=yes 14295 ;; 14296*) 14297 lt_cv_prog_gnu_ld=no 14298 ;; 14299esac 14300fi 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14302$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14303with_gnu_ld=$lt_cv_prog_gnu_ld 14304 14305 14306 14307 14308 14309 14310 14311 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14312 # archiving commands below assume that GNU ld is being used. 14313 if test yes = "$with_gnu_ld"; then 14314 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14315 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14316 14317 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14318 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14319 14320 # If archive_cmds runs LD, not CC, wlarc should be empty 14321 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14322 # investigate it a little bit more. (MM) 14323 wlarc='$wl' 14324 14325 # ancient GNU ld didn't support --whole-archive et. al. 14326 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14327 $GREP 'no-whole-archive' > /dev/null; then 14328 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14329 else 14330 whole_archive_flag_spec_CXX= 14331 fi 14332 else 14333 with_gnu_ld=no 14334 wlarc= 14335 14336 # A generic and very simple default shared library creation 14337 # command for GNU C++ for the case where it uses the native 14338 # linker, instead of GNU ld. If possible, this setting should 14339 # overridden to take advantage of the native linker features on 14340 # the platform it is being used on. 14341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14342 fi 14343 14344 # Commands to make compiler produce verbose output that lists 14345 # what "hidden" libraries, object files and flags are used when 14346 # linking a shared library. 14347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14348 14349 else 14350 GXX=no 14351 with_gnu_ld=no 14352 wlarc= 14353 fi 14354 14355 # PORTME: fill in a description of your system's C++ link characteristics 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14358 ld_shlibs_CXX=yes 14359 case $host_os in 14360 aix3*) 14361 # FIXME: insert proper C++ library support 14362 ld_shlibs_CXX=no 14363 ;; 14364 aix[4-9]*) 14365 if test ia64 = "$host_cpu"; then 14366 # On IA64, the linker does run time linking by default, so we don't 14367 # have to do anything special. 14368 aix_use_runtimelinking=no 14369 exp_sym_flag='-Bexport' 14370 no_entry_flag= 14371 else 14372 aix_use_runtimelinking=no 14373 14374 # Test if we are trying to use run time linking or normal 14375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14376 # have runtime linking enabled, and use it for executables. 14377 # For shared libraries, we enable/disable runtime linking 14378 # depending on the kind of the shared library created - 14379 # when "with_aix_soname,aix_use_runtimelinking" is: 14380 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14381 # "aix,yes" lib.so shared, rtl:yes, for executables 14382 # lib.a static archive 14383 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14384 # lib.a(lib.so.V) shared, rtl:no, for executables 14385 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14386 # lib.a(lib.so.V) shared, rtl:no 14387 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14388 # lib.a static archive 14389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14390 for ld_flag in $LDFLAGS; do 14391 case $ld_flag in 14392 *-brtl*) 14393 aix_use_runtimelinking=yes 14394 break 14395 ;; 14396 esac 14397 done 14398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14399 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14400 # so we don't have lib.a shared libs to link our executables. 14401 # We have to force runtime linking in this case. 14402 aix_use_runtimelinking=yes 14403 LDFLAGS="$LDFLAGS -Wl,-brtl" 14404 fi 14405 ;; 14406 esac 14407 14408 exp_sym_flag='-bexport' 14409 no_entry_flag='-bnoentry' 14410 fi 14411 14412 # When large executables or shared objects are built, AIX ld can 14413 # have problems creating the table of contents. If linking a library 14414 # or program results in "error TOC overflow" add -mminimal-toc to 14415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14417 14418 archive_cmds_CXX='' 14419 hardcode_direct_CXX=yes 14420 hardcode_direct_absolute_CXX=yes 14421 hardcode_libdir_separator_CXX=':' 14422 link_all_deplibs_CXX=yes 14423 file_list_spec_CXX='$wl-f,' 14424 case $with_aix_soname,$aix_use_runtimelinking in 14425 aix,*) ;; # no import file 14426 svr4,* | *,yes) # use import file 14427 # The Import File defines what to hardcode. 14428 hardcode_direct_CXX=no 14429 hardcode_direct_absolute_CXX=no 14430 ;; 14431 esac 14432 14433 if test yes = "$GXX"; then 14434 case $host_os in aix4.[012]|aix4.[012].*) 14435 # We only want to do this on AIX 4.2 and lower, the check 14436 # below for broken collect2 doesn't work under 4.3+ 14437 collect2name=`$CC -print-prog-name=collect2` 14438 if test -f "$collect2name" && 14439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14440 then 14441 # We have reworked collect2 14442 : 14443 else 14444 # We have old collect2 14445 hardcode_direct_CXX=unsupported 14446 # It fails to find uninstalled libraries when the uninstalled 14447 # path is not listed in the libpath. Setting hardcode_minus_L 14448 # to unsupported forces relinking 14449 hardcode_minus_L_CXX=yes 14450 hardcode_libdir_flag_spec_CXX='-L$libdir' 14451 hardcode_libdir_separator_CXX= 14452 fi 14453 esac 14454 shared_flag='-shared' 14455 if test yes = "$aix_use_runtimelinking"; then 14456 shared_flag=$shared_flag' $wl-G' 14457 fi 14458 # Need to ensure runtime linking is disabled for the traditional 14459 # shared library, or the linker may eventually find shared libraries 14460 # /with/ Import File - we do not want to mix them. 14461 shared_flag_aix='-shared' 14462 shared_flag_svr4='-shared $wl-G' 14463 else 14464 # not using gcc 14465 if test ia64 = "$host_cpu"; then 14466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14467 # chokes on -Wl,-G. The following line is correct: 14468 shared_flag='-G' 14469 else 14470 if test yes = "$aix_use_runtimelinking"; then 14471 shared_flag='$wl-G' 14472 else 14473 shared_flag='$wl-bM:SRE' 14474 fi 14475 shared_flag_aix='$wl-bM:SRE' 14476 shared_flag_svr4='$wl-G' 14477 fi 14478 fi 14479 14480 export_dynamic_flag_spec_CXX='$wl-bexpall' 14481 # It seems that -bexpall does not export symbols beginning with 14482 # underscore (_), so it is better to generate a list of symbols to 14483 # export. 14484 always_export_symbols_CXX=yes 14485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14486 # Warning - without using the other runtime loading flags (-brtl), 14487 # -berok will link without error, but may produce a broken library. 14488 # The "-G" linker flag allows undefined symbols. 14489 no_undefined_flag_CXX='-bernotok' 14490 # Determine the default libpath from the value encoded in an empty 14491 # executable. 14492 if test set = "${lt_cv_aix_libpath+set}"; then 14493 aix_libpath=$lt_cv_aix_libpath 14494else 14495 if ${lt_cv_aix_libpath__CXX+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497else 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500 14501int 14502main () 14503{ 14504 14505 ; 14506 return 0; 14507} 14508_ACEOF 14509if ac_fn_cxx_try_link "$LINENO"; then : 14510 14511 lt_aix_libpath_sed=' 14512 /Import File Strings/,/^$/ { 14513 /^0/ { 14514 s/^0 *\([^ ]*\) *$/\1/ 14515 p 14516 } 14517 }' 14518 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14519 # Check for a 64-bit object if we didn't find anything. 14520 if test -z "$lt_cv_aix_libpath__CXX"; then 14521 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14522 fi 14523fi 14524rm -f core conftest.err conftest.$ac_objext \ 14525 conftest$ac_exeext conftest.$ac_ext 14526 if test -z "$lt_cv_aix_libpath__CXX"; then 14527 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14528 fi 14529 14530fi 14531 14532 aix_libpath=$lt_cv_aix_libpath__CXX 14533fi 14534 14535 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14536 14537 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14538 else 14539 if test ia64 = "$host_cpu"; then 14540 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14541 allow_undefined_flag_CXX="-z nodefs" 14542 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 14543 else 14544 # Determine the default libpath from the value encoded in an 14545 # empty executable. 14546 if test set = "${lt_cv_aix_libpath+set}"; then 14547 aix_libpath=$lt_cv_aix_libpath 14548else 14549 if ${lt_cv_aix_libpath__CXX+:} false; then : 14550 $as_echo_n "(cached) " >&6 14551else 14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14553/* end confdefs.h. */ 14554 14555int 14556main () 14557{ 14558 14559 ; 14560 return 0; 14561} 14562_ACEOF 14563if ac_fn_cxx_try_link "$LINENO"; then : 14564 14565 lt_aix_libpath_sed=' 14566 /Import File Strings/,/^$/ { 14567 /^0/ { 14568 s/^0 *\([^ ]*\) *$/\1/ 14569 p 14570 } 14571 }' 14572 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14573 # Check for a 64-bit object if we didn't find anything. 14574 if test -z "$lt_cv_aix_libpath__CXX"; then 14575 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14576 fi 14577fi 14578rm -f core conftest.err conftest.$ac_objext \ 14579 conftest$ac_exeext conftest.$ac_ext 14580 if test -z "$lt_cv_aix_libpath__CXX"; then 14581 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14582 fi 14583 14584fi 14585 14586 aix_libpath=$lt_cv_aix_libpath__CXX 14587fi 14588 14589 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14590 # Warning - without using the other run time loading flags, 14591 # -berok will link without error, but may produce a broken library. 14592 no_undefined_flag_CXX=' $wl-bernotok' 14593 allow_undefined_flag_CXX=' $wl-berok' 14594 if test yes = "$with_gnu_ld"; then 14595 # We only use this code for GNU lds that support --whole-archive. 14596 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14597 else 14598 # Exported symbols can be pulled into shared objects from archives 14599 whole_archive_flag_spec_CXX='$convenience' 14600 fi 14601 archive_cmds_need_lc_CXX=yes 14602 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14603 # -brtl affects multiple linker settings, -berok does not and is overridden later 14604 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14605 if test svr4 != "$with_aix_soname"; then 14606 # This is similar to how AIX traditionally builds its shared 14607 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14608 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14609 fi 14610 if test aix != "$with_aix_soname"; then 14611 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14612 else 14613 # used by -dlpreopen to get the symbols 14614 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14615 fi 14616 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14617 fi 14618 fi 14619 ;; 14620 14621 beos*) 14622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14623 allow_undefined_flag_CXX=unsupported 14624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14625 # support --undefined. This deserves some investigation. FIXME 14626 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14627 else 14628 ld_shlibs_CXX=no 14629 fi 14630 ;; 14631 14632 chorus*) 14633 case $cc_basename in 14634 *) 14635 # FIXME: insert proper C++ library support 14636 ld_shlibs_CXX=no 14637 ;; 14638 esac 14639 ;; 14640 14641 cygwin* | mingw* | pw32* | cegcc*) 14642 case $GXX,$cc_basename in 14643 ,cl* | no,cl*) 14644 # Native MSVC 14645 # hardcode_libdir_flag_spec is actually meaningless, as there is 14646 # no search path for DLLs. 14647 hardcode_libdir_flag_spec_CXX=' ' 14648 allow_undefined_flag_CXX=unsupported 14649 always_export_symbols_CXX=yes 14650 file_list_spec_CXX='@' 14651 # Tell ltmain to make .lib files, not .a files. 14652 libext=lib 14653 # Tell ltmain to make .dll files, not .so files. 14654 shrext_cmds=.dll 14655 # FIXME: Setting linknames here is a bad hack. 14656 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14657 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14658 cp "$export_symbols" "$output_objdir/$soname.def"; 14659 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14660 else 14661 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14662 fi~ 14663 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14664 linknames=' 14665 # The linker will not automatically build a static lib if we build a DLL. 14666 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14667 enable_shared_with_static_runtimes_CXX=yes 14668 # Don't use ranlib 14669 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14670 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14671 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14672 case $lt_outputfile in 14673 *.exe|*.EXE) ;; 14674 *) 14675 lt_outputfile=$lt_outputfile.exe 14676 lt_tool_outputfile=$lt_tool_outputfile.exe 14677 ;; 14678 esac~ 14679 func_to_tool_file "$lt_outputfile"~ 14680 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14681 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14682 $RM "$lt_outputfile.manifest"; 14683 fi' 14684 ;; 14685 *) 14686 # g++ 14687 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14688 # as there is no search path for DLLs. 14689 hardcode_libdir_flag_spec_CXX='-L$libdir' 14690 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14691 allow_undefined_flag_CXX=unsupported 14692 always_export_symbols_CXX=no 14693 enable_shared_with_static_runtimes_CXX=yes 14694 14695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14696 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14697 # If the export-symbols file already is a .def file, use it as 14698 # is; otherwise, prepend EXPORTS... 14699 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14700 cp $export_symbols $output_objdir/$soname.def; 14701 else 14702 echo EXPORTS > $output_objdir/$soname.def; 14703 cat $export_symbols >> $output_objdir/$soname.def; 14704 fi~ 14705 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14706 else 14707 ld_shlibs_CXX=no 14708 fi 14709 ;; 14710 esac 14711 ;; 14712 darwin* | rhapsody*) 14713 14714 14715 archive_cmds_need_lc_CXX=no 14716 hardcode_direct_CXX=no 14717 hardcode_automatic_CXX=yes 14718 hardcode_shlibpath_var_CXX=unsupported 14719 if test yes = "$lt_cv_ld_force_load"; then 14720 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14721 14722 else 14723 whole_archive_flag_spec_CXX='' 14724 fi 14725 link_all_deplibs_CXX=yes 14726 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14727 case $cc_basename in 14728 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14729 *) _lt_dar_can_shared=$GCC ;; 14730 esac 14731 if test yes = "$_lt_dar_can_shared"; then 14732 output_verbose_link_cmd=func_echo_all 14733 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14734 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14735 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 14736 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 14737 if test yes != "$lt_cv_apple_cc_single_mod"; then 14738 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14739 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14740 fi 14741 14742 else 14743 ld_shlibs_CXX=no 14744 fi 14745 14746 ;; 14747 14748 os2*) 14749 hardcode_libdir_flag_spec_CXX='-L$libdir' 14750 hardcode_minus_L_CXX=yes 14751 allow_undefined_flag_CXX=unsupported 14752 shrext_cmds=.dll 14753 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14756 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14759 emximp -o $lib $output_objdir/$libname.def' 14760 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14763 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14764 prefix_cmds="$SED"~ 14765 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14766 prefix_cmds="$prefix_cmds -e 1d"; 14767 fi~ 14768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14771 emximp -o $lib $output_objdir/$libname.def' 14772 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14773 enable_shared_with_static_runtimes_CXX=yes 14774 ;; 14775 14776 dgux*) 14777 case $cc_basename in 14778 ec++*) 14779 # FIXME: insert proper C++ library support 14780 ld_shlibs_CXX=no 14781 ;; 14782 ghcx*) 14783 # Green Hills C++ Compiler 14784 # FIXME: insert proper C++ library support 14785 ld_shlibs_CXX=no 14786 ;; 14787 *) 14788 # FIXME: insert proper C++ library support 14789 ld_shlibs_CXX=no 14790 ;; 14791 esac 14792 ;; 14793 14794 freebsd2.*) 14795 # C++ shared libraries reported to be fairly broken before 14796 # switch to ELF 14797 ld_shlibs_CXX=no 14798 ;; 14799 14800 freebsd-elf*) 14801 archive_cmds_need_lc_CXX=no 14802 ;; 14803 14804 freebsd* | dragonfly*) 14805 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14806 # conventions 14807 ld_shlibs_CXX=yes 14808 ;; 14809 14810 haiku*) 14811 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14812 link_all_deplibs_CXX=yes 14813 ;; 14814 14815 hpux9*) 14816 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14817 hardcode_libdir_separator_CXX=: 14818 export_dynamic_flag_spec_CXX='$wl-E' 14819 hardcode_direct_CXX=yes 14820 hardcode_minus_L_CXX=yes # Not in the search PATH, 14821 # but as the default 14822 # location of the library. 14823 14824 case $cc_basename in 14825 CC*) 14826 # FIXME: insert proper C++ library support 14827 ld_shlibs_CXX=no 14828 ;; 14829 aCC*) 14830 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14831 # Commands to make compiler produce verbose output that lists 14832 # what "hidden" libraries, object files and flags are used when 14833 # linking a shared library. 14834 # 14835 # There doesn't appear to be a way to prevent this compiler from 14836 # explicitly linking system object files so we need to strip them 14837 # from the output so that they don't get included in the library 14838 # dependencies. 14839 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14840 ;; 14841 *) 14842 if test yes = "$GXX"; then 14843 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14844 else 14845 # FIXME: insert proper C++ library support 14846 ld_shlibs_CXX=no 14847 fi 14848 ;; 14849 esac 14850 ;; 14851 14852 hpux10*|hpux11*) 14853 if test no = "$with_gnu_ld"; then 14854 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14855 hardcode_libdir_separator_CXX=: 14856 14857 case $host_cpu in 14858 hppa*64*|ia64*) 14859 ;; 14860 *) 14861 export_dynamic_flag_spec_CXX='$wl-E' 14862 ;; 14863 esac 14864 fi 14865 case $host_cpu in 14866 hppa*64*|ia64*) 14867 hardcode_direct_CXX=no 14868 hardcode_shlibpath_var_CXX=no 14869 ;; 14870 *) 14871 hardcode_direct_CXX=yes 14872 hardcode_direct_absolute_CXX=yes 14873 hardcode_minus_L_CXX=yes # Not in the search PATH, 14874 # but as the default 14875 # location of the library. 14876 ;; 14877 esac 14878 14879 case $cc_basename in 14880 CC*) 14881 # FIXME: insert proper C++ library support 14882 ld_shlibs_CXX=no 14883 ;; 14884 aCC*) 14885 case $host_cpu in 14886 hppa*64*) 14887 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14888 ;; 14889 ia64*) 14890 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14891 ;; 14892 *) 14893 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14894 ;; 14895 esac 14896 # Commands to make compiler produce verbose output that lists 14897 # what "hidden" libraries, object files and flags are used when 14898 # linking a shared library. 14899 # 14900 # There doesn't appear to be a way to prevent this compiler from 14901 # explicitly linking system object files so we need to strip them 14902 # from the output so that they don't get included in the library 14903 # dependencies. 14904 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14905 ;; 14906 *) 14907 if test yes = "$GXX"; then 14908 if test no = "$with_gnu_ld"; then 14909 case $host_cpu in 14910 hppa*64*) 14911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14912 ;; 14913 ia64*) 14914 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14915 ;; 14916 *) 14917 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14918 ;; 14919 esac 14920 fi 14921 else 14922 # FIXME: insert proper C++ library support 14923 ld_shlibs_CXX=no 14924 fi 14925 ;; 14926 esac 14927 ;; 14928 14929 interix[3-9]*) 14930 hardcode_direct_CXX=no 14931 hardcode_shlibpath_var_CXX=no 14932 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14933 export_dynamic_flag_spec_CXX='$wl-E' 14934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14935 # Instead, shared libraries are loaded at an image base (0x10000000 by 14936 # default) and relocated if they conflict, which is a slow very memory 14937 # consuming and fragmenting process. To avoid this, we pick a random, 14938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14939 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14940 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14941 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14942 ;; 14943 irix5* | irix6*) 14944 case $cc_basename in 14945 CC*) 14946 # SGI C++ 14947 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14948 14949 # Archives containing C++ object files must be created using 14950 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14951 # necessary to make sure instantiated templates are included 14952 # in the archive. 14953 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14954 ;; 14955 *) 14956 if test yes = "$GXX"; then 14957 if test no = "$with_gnu_ld"; then 14958 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14959 else 14960 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14961 fi 14962 fi 14963 link_all_deplibs_CXX=yes 14964 ;; 14965 esac 14966 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14967 hardcode_libdir_separator_CXX=: 14968 inherit_rpath_CXX=yes 14969 ;; 14970 14971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14972 case $cc_basename in 14973 KCC*) 14974 # Kuck and Associates, Inc. (KAI) C++ Compiler 14975 14976 # KCC will only create a shared library if the output file 14977 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14978 # to its proper name (with version) after linking. 14979 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14980 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14981 # Commands to make compiler produce verbose output that lists 14982 # what "hidden" libraries, object files and flags are used when 14983 # linking a shared library. 14984 # 14985 # There doesn't appear to be a way to prevent this compiler from 14986 # explicitly linking system object files so we need to strip them 14987 # from the output so that they don't get included in the library 14988 # dependencies. 14989 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14990 14991 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14992 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14993 14994 # Archives containing C++ object files must be created using 14995 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14996 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14997 ;; 14998 icpc* | ecpc* ) 14999 # Intel C++ 15000 with_gnu_ld=yes 15001 # version 8.0 and above of icpc choke on multiply defined symbols 15002 # if we add $predep_objects and $postdep_objects, however 7.1 and 15003 # earlier do not add the objects themselves. 15004 case `$CC -V 2>&1` in 15005 *"Version 7."*) 15006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15007 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15008 ;; 15009 *) # Version 8.0 or newer 15010 tmp_idyn= 15011 case $host_cpu in 15012 ia64*) tmp_idyn=' -i_dynamic';; 15013 esac 15014 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15015 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15016 ;; 15017 esac 15018 archive_cmds_need_lc_CXX=no 15019 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15020 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15021 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15022 ;; 15023 pgCC* | pgcpp*) 15024 # Portland Group C++ compiler 15025 case `$CC -V` in 15026 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15027 prelink_cmds_CXX='tpldir=Template.dir~ 15028 rm -rf $tpldir~ 15029 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15030 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15031 old_archive_cmds_CXX='tpldir=Template.dir~ 15032 rm -rf $tpldir~ 15033 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15034 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15035 $RANLIB $oldlib' 15036 archive_cmds_CXX='tpldir=Template.dir~ 15037 rm -rf $tpldir~ 15038 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15039 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15040 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15041 rm -rf $tpldir~ 15042 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15043 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15044 ;; 15045 *) # Version 6 and above use weak symbols 15046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15047 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15048 ;; 15049 esac 15050 15051 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15052 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15053 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15054 ;; 15055 cxx*) 15056 # Compaq C++ 15057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15058 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 15059 15060 runpath_var=LD_RUN_PATH 15061 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15062 hardcode_libdir_separator_CXX=: 15063 15064 # Commands to make compiler produce verbose output that lists 15065 # what "hidden" libraries, object files and flags are used when 15066 # linking a shared library. 15067 # 15068 # There doesn't appear to be a way to prevent this compiler from 15069 # explicitly linking system object files so we need to strip them 15070 # from the output so that they don't get included in the library 15071 # dependencies. 15072 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 15073 ;; 15074 xl* | mpixl* | bgxl*) 15075 # IBM XL 8.0 on PPC, with GNU ld 15076 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15077 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15078 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15079 if test yes = "$supports_anon_versioning"; then 15080 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15081 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15082 echo "local: *; };" >> $output_objdir/$libname.ver~ 15083 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15084 fi 15085 ;; 15086 *) 15087 case `$CC -V 2>&1 | sed 5q` in 15088 *Sun\ C*) 15089 # Sun C++ 5.9 15090 no_undefined_flag_CXX=' -zdefs' 15091 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15092 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 15093 hardcode_libdir_flag_spec_CXX='-R$libdir' 15094 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15095 compiler_needs_object_CXX=yes 15096 15097 # Not sure whether something based on 15098 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15099 # would be better. 15100 output_verbose_link_cmd='func_echo_all' 15101 15102 # Archives containing C++ object files must be created using 15103 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15104 # necessary to make sure instantiated templates are included 15105 # in the archive. 15106 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15107 ;; 15108 esac 15109 ;; 15110 esac 15111 ;; 15112 15113 lynxos*) 15114 # FIXME: insert proper C++ library support 15115 ld_shlibs_CXX=no 15116 ;; 15117 15118 m88k*) 15119 # FIXME: insert proper C++ library support 15120 ld_shlibs_CXX=no 15121 ;; 15122 15123 mvs*) 15124 case $cc_basename in 15125 cxx*) 15126 # FIXME: insert proper C++ library support 15127 ld_shlibs_CXX=no 15128 ;; 15129 *) 15130 # FIXME: insert proper C++ library support 15131 ld_shlibs_CXX=no 15132 ;; 15133 esac 15134 ;; 15135 15136 netbsd*) 15137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15138 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15139 wlarc= 15140 hardcode_libdir_flag_spec_CXX='-R$libdir' 15141 hardcode_direct_CXX=yes 15142 hardcode_shlibpath_var_CXX=no 15143 fi 15144 # Workaround some broken pre-1.5 toolchains 15145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15146 ;; 15147 15148 *nto* | *qnx*) 15149 ld_shlibs_CXX=yes 15150 ;; 15151 15152 openbsd* | bitrig*) 15153 if test -f /usr/libexec/ld.so; then 15154 hardcode_direct_CXX=yes 15155 hardcode_shlibpath_var_CXX=no 15156 hardcode_direct_absolute_CXX=yes 15157 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15158 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15160 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15161 export_dynamic_flag_spec_CXX='$wl-E' 15162 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15163 fi 15164 output_verbose_link_cmd=func_echo_all 15165 else 15166 ld_shlibs_CXX=no 15167 fi 15168 ;; 15169 15170 osf3* | osf4* | osf5*) 15171 case $cc_basename in 15172 KCC*) 15173 # Kuck and Associates, Inc. (KAI) C++ Compiler 15174 15175 # KCC will only create a shared library if the output file 15176 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15177 # to its proper name (with version) after linking. 15178 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15179 15180 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15181 hardcode_libdir_separator_CXX=: 15182 15183 # Archives containing C++ object files must be created using 15184 # the KAI C++ compiler. 15185 case $host in 15186 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15187 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15188 esac 15189 ;; 15190 RCC*) 15191 # Rational C++ 2.4.1 15192 # FIXME: insert proper C++ library support 15193 ld_shlibs_CXX=no 15194 ;; 15195 cxx*) 15196 case $host in 15197 osf3*) 15198 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15199 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15200 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15201 ;; 15202 *) 15203 allow_undefined_flag_CXX=' -expect_unresolved \*' 15204 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15205 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15206 echo "-hidden">> $lib.exp~ 15207 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 15208 $RM $lib.exp' 15209 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15210 ;; 15211 esac 15212 15213 hardcode_libdir_separator_CXX=: 15214 15215 # Commands to make compiler produce verbose output that lists 15216 # what "hidden" libraries, object files and flags are used when 15217 # linking a shared library. 15218 # 15219 # There doesn't appear to be a way to prevent this compiler from 15220 # explicitly linking system object files so we need to strip them 15221 # from the output so that they don't get included in the library 15222 # dependencies. 15223 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15224 ;; 15225 *) 15226 if test yes,no = "$GXX,$with_gnu_ld"; then 15227 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15228 case $host in 15229 osf3*) 15230 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15231 ;; 15232 *) 15233 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15234 ;; 15235 esac 15236 15237 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15238 hardcode_libdir_separator_CXX=: 15239 15240 # Commands to make compiler produce verbose output that lists 15241 # what "hidden" libraries, object files and flags are used when 15242 # linking a shared library. 15243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15244 15245 else 15246 # FIXME: insert proper C++ library support 15247 ld_shlibs_CXX=no 15248 fi 15249 ;; 15250 esac 15251 ;; 15252 15253 psos*) 15254 # FIXME: insert proper C++ library support 15255 ld_shlibs_CXX=no 15256 ;; 15257 15258 sunos4*) 15259 case $cc_basename in 15260 CC*) 15261 # Sun C++ 4.x 15262 # FIXME: insert proper C++ library support 15263 ld_shlibs_CXX=no 15264 ;; 15265 lcc*) 15266 # Lucid 15267 # FIXME: insert proper C++ library support 15268 ld_shlibs_CXX=no 15269 ;; 15270 *) 15271 # FIXME: insert proper C++ library support 15272 ld_shlibs_CXX=no 15273 ;; 15274 esac 15275 ;; 15276 15277 solaris*) 15278 case $cc_basename in 15279 CC* | sunCC*) 15280 # Sun C++ 4.2, 5.x and Centerline C++ 15281 archive_cmds_need_lc_CXX=yes 15282 no_undefined_flag_CXX=' -zdefs' 15283 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15284 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15285 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15286 15287 hardcode_libdir_flag_spec_CXX='-R$libdir' 15288 hardcode_shlibpath_var_CXX=no 15289 case $host_os in 15290 solaris2.[0-5] | solaris2.[0-5].*) ;; 15291 *) 15292 # The compiler driver will combine and reorder linker options, 15293 # but understands '-z linker_flag'. 15294 # Supported since Solaris 2.6 (maybe 2.5.1?) 15295 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15296 ;; 15297 esac 15298 link_all_deplibs_CXX=yes 15299 15300 output_verbose_link_cmd='func_echo_all' 15301 15302 # Archives containing C++ object files must be created using 15303 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15304 # necessary to make sure instantiated templates are included 15305 # in the archive. 15306 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15307 ;; 15308 gcx*) 15309 # Green Hills C++ Compiler 15310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15311 15312 # The C++ compiler must be used to create the archive. 15313 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15314 ;; 15315 *) 15316 # GNU C++ compiler with Solaris linker 15317 if test yes,no = "$GXX,$with_gnu_ld"; then 15318 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15319 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15320 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15321 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15322 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15323 15324 # Commands to make compiler produce verbose output that lists 15325 # what "hidden" libraries, object files and flags are used when 15326 # linking a shared library. 15327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15328 else 15329 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15330 # platform. 15331 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15332 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15333 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15334 15335 # Commands to make compiler produce verbose output that lists 15336 # what "hidden" libraries, object files and flags are used when 15337 # linking a shared library. 15338 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15339 fi 15340 15341 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15342 case $host_os in 15343 solaris2.[0-5] | solaris2.[0-5].*) ;; 15344 *) 15345 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15346 ;; 15347 esac 15348 fi 15349 ;; 15350 esac 15351 ;; 15352 15353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15354 no_undefined_flag_CXX='$wl-z,text' 15355 archive_cmds_need_lc_CXX=no 15356 hardcode_shlibpath_var_CXX=no 15357 runpath_var='LD_RUN_PATH' 15358 15359 case $cc_basename in 15360 CC*) 15361 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15362 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15363 ;; 15364 *) 15365 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15366 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15367 ;; 15368 esac 15369 ;; 15370 15371 sysv5* | sco3.2v5* | sco5v6*) 15372 # Note: We CANNOT use -z defs as we might desire, because we do not 15373 # link with -lc, and that would cause any symbols used from libc to 15374 # always be unresolved, which means just about no library would 15375 # ever link correctly. If we're not using GNU ld we use -z text 15376 # though, which does catch some bad symbols but isn't as heavy-handed 15377 # as -z defs. 15378 no_undefined_flag_CXX='$wl-z,text' 15379 allow_undefined_flag_CXX='$wl-z,nodefs' 15380 archive_cmds_need_lc_CXX=no 15381 hardcode_shlibpath_var_CXX=no 15382 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15383 hardcode_libdir_separator_CXX=':' 15384 link_all_deplibs_CXX=yes 15385 export_dynamic_flag_spec_CXX='$wl-Bexport' 15386 runpath_var='LD_RUN_PATH' 15387 15388 case $cc_basename in 15389 CC*) 15390 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15391 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15392 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15393 '"$old_archive_cmds_CXX" 15394 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15395 '"$reload_cmds_CXX" 15396 ;; 15397 *) 15398 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15399 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15400 ;; 15401 esac 15402 ;; 15403 15404 tandem*) 15405 case $cc_basename in 15406 NCC*) 15407 # NonStop-UX NCC 3.20 15408 # FIXME: insert proper C++ library support 15409 ld_shlibs_CXX=no 15410 ;; 15411 *) 15412 # FIXME: insert proper C++ library support 15413 ld_shlibs_CXX=no 15414 ;; 15415 esac 15416 ;; 15417 15418 vxworks*) 15419 # FIXME: insert proper C++ library support 15420 ld_shlibs_CXX=no 15421 ;; 15422 15423 *) 15424 # FIXME: insert proper C++ library support 15425 ld_shlibs_CXX=no 15426 ;; 15427 esac 15428 15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15430$as_echo "$ld_shlibs_CXX" >&6; } 15431 test no = "$ld_shlibs_CXX" && can_build_shared=no 15432 15433 GCC_CXX=$GXX 15434 LD_CXX=$LD 15435 15436 ## CAVEAT EMPTOR: 15437 ## There is no encapsulation within the following macros, do not change 15438 ## the running order or otherwise move them around unless you know exactly 15439 ## what you are doing... 15440 # Dependencies to place before and after the object being linked: 15441predep_objects_CXX= 15442postdep_objects_CXX= 15443predeps_CXX= 15444postdeps_CXX= 15445compiler_lib_search_path_CXX= 15446 15447cat > conftest.$ac_ext <<_LT_EOF 15448class Foo 15449{ 15450public: 15451 Foo (void) { a = 0; } 15452private: 15453 int a; 15454}; 15455_LT_EOF 15456 15457 15458_lt_libdeps_save_CFLAGS=$CFLAGS 15459case "$CC $CFLAGS " in #( 15460*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15461*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15462*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15463esac 15464 15465if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15466 (eval $ac_compile) 2>&5 15467 ac_status=$? 15468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15469 test $ac_status = 0; }; then 15470 # Parse the compiler output and extract the necessary 15471 # objects, libraries and library flags. 15472 15473 # Sentinel used to keep track of whether or not we are before 15474 # the conftest object file. 15475 pre_test_object_deps_done=no 15476 15477 for p in `eval "$output_verbose_link_cmd"`; do 15478 case $prev$p in 15479 15480 -L* | -R* | -l*) 15481 # Some compilers place space between "-{L,R}" and the path. 15482 # Remove the space. 15483 if test x-L = "$p" || 15484 test x-R = "$p"; then 15485 prev=$p 15486 continue 15487 fi 15488 15489 # Expand the sysroot to ease extracting the directories later. 15490 if test -z "$prev"; then 15491 case $p in 15492 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15493 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15494 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15495 esac 15496 fi 15497 case $p in 15498 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15499 esac 15500 if test no = "$pre_test_object_deps_done"; then 15501 case $prev in 15502 -L | -R) 15503 # Internal compiler library paths should come after those 15504 # provided the user. The postdeps already come after the 15505 # user supplied libs so there is no need to process them. 15506 if test -z "$compiler_lib_search_path_CXX"; then 15507 compiler_lib_search_path_CXX=$prev$p 15508 else 15509 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15510 fi 15511 ;; 15512 # The "-l" case would never come before the object being 15513 # linked, so don't bother handling this case. 15514 esac 15515 else 15516 if test -z "$postdeps_CXX"; then 15517 postdeps_CXX=$prev$p 15518 else 15519 postdeps_CXX="${postdeps_CXX} $prev$p" 15520 fi 15521 fi 15522 prev= 15523 ;; 15524 15525 *.lto.$objext) ;; # Ignore GCC LTO objects 15526 *.$objext) 15527 # This assumes that the test object file only shows up 15528 # once in the compiler output. 15529 if test "$p" = "conftest.$objext"; then 15530 pre_test_object_deps_done=yes 15531 continue 15532 fi 15533 15534 if test no = "$pre_test_object_deps_done"; then 15535 if test -z "$predep_objects_CXX"; then 15536 predep_objects_CXX=$p 15537 else 15538 predep_objects_CXX="$predep_objects_CXX $p" 15539 fi 15540 else 15541 if test -z "$postdep_objects_CXX"; then 15542 postdep_objects_CXX=$p 15543 else 15544 postdep_objects_CXX="$postdep_objects_CXX $p" 15545 fi 15546 fi 15547 ;; 15548 15549 *) ;; # Ignore the rest. 15550 15551 esac 15552 done 15553 15554 # Clean up. 15555 rm -f a.out a.exe 15556else 15557 echo "libtool.m4: error: problem compiling CXX test program" 15558fi 15559 15560$RM -f confest.$objext 15561CFLAGS=$_lt_libdeps_save_CFLAGS 15562 15563# PORTME: override above test on systems where it is broken 15564case $host_os in 15565interix[3-9]*) 15566 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15567 # hack all around it, let's just trust "g++" to DTRT. 15568 predep_objects_CXX= 15569 postdep_objects_CXX= 15570 postdeps_CXX= 15571 ;; 15572esac 15573 15574 15575case " $postdeps_CXX " in 15576*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15577esac 15578 compiler_lib_search_dirs_CXX= 15579if test -n "${compiler_lib_search_path_CXX}"; then 15580 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15581fi 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 lt_prog_compiler_wl_CXX= 15614lt_prog_compiler_pic_CXX= 15615lt_prog_compiler_static_CXX= 15616 15617 15618 # C++ specific cases for pic, static, wl, etc. 15619 if test yes = "$GXX"; then 15620 lt_prog_compiler_wl_CXX='-Wl,' 15621 lt_prog_compiler_static_CXX='-static' 15622 15623 case $host_os in 15624 aix*) 15625 # All AIX code is PIC. 15626 if test ia64 = "$host_cpu"; then 15627 # AIX 5 now supports IA64 processor 15628 lt_prog_compiler_static_CXX='-Bstatic' 15629 fi 15630 lt_prog_compiler_pic_CXX='-fPIC' 15631 ;; 15632 15633 amigaos*) 15634 case $host_cpu in 15635 powerpc) 15636 # see comment about AmigaOS4 .so support 15637 lt_prog_compiler_pic_CXX='-fPIC' 15638 ;; 15639 m68k) 15640 # FIXME: we need at least 68020 code to build shared libraries, but 15641 # adding the '-m68020' flag to GCC prevents building anything better, 15642 # like '-m68040'. 15643 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15644 ;; 15645 esac 15646 ;; 15647 15648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15649 # PIC is the default for these OSes. 15650 ;; 15651 mingw* | cygwin* | os2* | pw32* | cegcc*) 15652 # This hack is so that the source file can tell whether it is being 15653 # built for inclusion in a dll (and should export symbols for example). 15654 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15655 # (--disable-auto-import) libraries 15656 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15657 case $host_os in 15658 os2*) 15659 lt_prog_compiler_static_CXX='$wl-static' 15660 ;; 15661 esac 15662 ;; 15663 darwin* | rhapsody*) 15664 # PIC is the default on this platform 15665 # Common symbols not allowed in MH_DYLIB files 15666 lt_prog_compiler_pic_CXX='-fno-common' 15667 ;; 15668 *djgpp*) 15669 # DJGPP does not support shared libraries at all 15670 lt_prog_compiler_pic_CXX= 15671 ;; 15672 haiku*) 15673 # PIC is the default for Haiku. 15674 # The "-static" flag exists, but is broken. 15675 lt_prog_compiler_static_CXX= 15676 ;; 15677 interix[3-9]*) 15678 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15679 # Instead, we relocate shared libraries at runtime. 15680 ;; 15681 sysv4*MP*) 15682 if test -d /usr/nec; then 15683 lt_prog_compiler_pic_CXX=-Kconform_pic 15684 fi 15685 ;; 15686 hpux*) 15687 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15688 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15689 # sets the default TLS model and affects inlining. 15690 case $host_cpu in 15691 hppa*64*) 15692 ;; 15693 *) 15694 lt_prog_compiler_pic_CXX='-fPIC' 15695 ;; 15696 esac 15697 ;; 15698 *qnx* | *nto*) 15699 # QNX uses GNU C++, but need to define -shared option too, otherwise 15700 # it will coredump. 15701 lt_prog_compiler_pic_CXX='-fPIC -shared' 15702 ;; 15703 *) 15704 lt_prog_compiler_pic_CXX='-fPIC' 15705 ;; 15706 esac 15707 else 15708 case $host_os in 15709 aix[4-9]*) 15710 # All AIX code is PIC. 15711 if test ia64 = "$host_cpu"; then 15712 # AIX 5 now supports IA64 processor 15713 lt_prog_compiler_static_CXX='-Bstatic' 15714 else 15715 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15716 fi 15717 ;; 15718 chorus*) 15719 case $cc_basename in 15720 cxch68*) 15721 # Green Hills C++ Compiler 15722 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15723 ;; 15724 esac 15725 ;; 15726 mingw* | cygwin* | os2* | pw32* | cegcc*) 15727 # This hack is so that the source file can tell whether it is being 15728 # built for inclusion in a dll (and should export symbols for example). 15729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15730 ;; 15731 dgux*) 15732 case $cc_basename in 15733 ec++*) 15734 lt_prog_compiler_pic_CXX='-KPIC' 15735 ;; 15736 ghcx*) 15737 # Green Hills C++ Compiler 15738 lt_prog_compiler_pic_CXX='-pic' 15739 ;; 15740 *) 15741 ;; 15742 esac 15743 ;; 15744 freebsd* | dragonfly*) 15745 # FreeBSD uses GNU C++ 15746 ;; 15747 hpux9* | hpux10* | hpux11*) 15748 case $cc_basename in 15749 CC*) 15750 lt_prog_compiler_wl_CXX='-Wl,' 15751 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15752 if test ia64 != "$host_cpu"; then 15753 lt_prog_compiler_pic_CXX='+Z' 15754 fi 15755 ;; 15756 aCC*) 15757 lt_prog_compiler_wl_CXX='-Wl,' 15758 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15759 case $host_cpu in 15760 hppa*64*|ia64*) 15761 # +Z the default 15762 ;; 15763 *) 15764 lt_prog_compiler_pic_CXX='+Z' 15765 ;; 15766 esac 15767 ;; 15768 *) 15769 ;; 15770 esac 15771 ;; 15772 interix*) 15773 # This is c89, which is MS Visual C++ (no shared libs) 15774 # Anyone wants to do a port? 15775 ;; 15776 irix5* | irix6* | nonstopux*) 15777 case $cc_basename in 15778 CC*) 15779 lt_prog_compiler_wl_CXX='-Wl,' 15780 lt_prog_compiler_static_CXX='-non_shared' 15781 # CC pic flag -KPIC is the default. 15782 ;; 15783 *) 15784 ;; 15785 esac 15786 ;; 15787 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15788 case $cc_basename in 15789 KCC*) 15790 # KAI C++ Compiler 15791 lt_prog_compiler_wl_CXX='--backend -Wl,' 15792 lt_prog_compiler_pic_CXX='-fPIC' 15793 ;; 15794 ecpc* ) 15795 # old Intel C++ for x86_64, which still supported -KPIC. 15796 lt_prog_compiler_wl_CXX='-Wl,' 15797 lt_prog_compiler_pic_CXX='-KPIC' 15798 lt_prog_compiler_static_CXX='-static' 15799 ;; 15800 icpc* ) 15801 # Intel C++, used to be incompatible with GCC. 15802 # ICC 10 doesn't accept -KPIC any more. 15803 lt_prog_compiler_wl_CXX='-Wl,' 15804 lt_prog_compiler_pic_CXX='-fPIC' 15805 lt_prog_compiler_static_CXX='-static' 15806 ;; 15807 pgCC* | pgcpp*) 15808 # Portland Group C++ compiler 15809 lt_prog_compiler_wl_CXX='-Wl,' 15810 lt_prog_compiler_pic_CXX='-fpic' 15811 lt_prog_compiler_static_CXX='-Bstatic' 15812 ;; 15813 cxx*) 15814 # Compaq C++ 15815 # Make sure the PIC flag is empty. It appears that all Alpha 15816 # Linux and Compaq Tru64 Unix objects are PIC. 15817 lt_prog_compiler_pic_CXX= 15818 lt_prog_compiler_static_CXX='-non_shared' 15819 ;; 15820 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15821 # IBM XL 8.0, 9.0 on PPC and BlueGene 15822 lt_prog_compiler_wl_CXX='-Wl,' 15823 lt_prog_compiler_pic_CXX='-qpic' 15824 lt_prog_compiler_static_CXX='-qstaticlink' 15825 ;; 15826 *) 15827 case `$CC -V 2>&1 | sed 5q` in 15828 *Sun\ C*) 15829 # Sun C++ 5.9 15830 lt_prog_compiler_pic_CXX='-KPIC' 15831 lt_prog_compiler_static_CXX='-Bstatic' 15832 lt_prog_compiler_wl_CXX='-Qoption ld ' 15833 ;; 15834 esac 15835 ;; 15836 esac 15837 ;; 15838 lynxos*) 15839 ;; 15840 m88k*) 15841 ;; 15842 mvs*) 15843 case $cc_basename in 15844 cxx*) 15845 lt_prog_compiler_pic_CXX='-W c,exportall' 15846 ;; 15847 *) 15848 ;; 15849 esac 15850 ;; 15851 netbsd* | netbsdelf*-gnu) 15852 ;; 15853 *qnx* | *nto*) 15854 # QNX uses GNU C++, but need to define -shared option too, otherwise 15855 # it will coredump. 15856 lt_prog_compiler_pic_CXX='-fPIC -shared' 15857 ;; 15858 osf3* | osf4* | osf5*) 15859 case $cc_basename in 15860 KCC*) 15861 lt_prog_compiler_wl_CXX='--backend -Wl,' 15862 ;; 15863 RCC*) 15864 # Rational C++ 2.4.1 15865 lt_prog_compiler_pic_CXX='-pic' 15866 ;; 15867 cxx*) 15868 # Digital/Compaq C++ 15869 lt_prog_compiler_wl_CXX='-Wl,' 15870 # Make sure the PIC flag is empty. It appears that all Alpha 15871 # Linux and Compaq Tru64 Unix objects are PIC. 15872 lt_prog_compiler_pic_CXX= 15873 lt_prog_compiler_static_CXX='-non_shared' 15874 ;; 15875 *) 15876 ;; 15877 esac 15878 ;; 15879 psos*) 15880 ;; 15881 solaris*) 15882 case $cc_basename in 15883 CC* | sunCC*) 15884 # Sun C++ 4.2, 5.x and Centerline C++ 15885 lt_prog_compiler_pic_CXX='-KPIC' 15886 lt_prog_compiler_static_CXX='-Bstatic' 15887 lt_prog_compiler_wl_CXX='-Qoption ld ' 15888 ;; 15889 gcx*) 15890 # Green Hills C++ Compiler 15891 lt_prog_compiler_pic_CXX='-PIC' 15892 ;; 15893 *) 15894 ;; 15895 esac 15896 ;; 15897 sunos4*) 15898 case $cc_basename in 15899 CC*) 15900 # Sun C++ 4.x 15901 lt_prog_compiler_pic_CXX='-pic' 15902 lt_prog_compiler_static_CXX='-Bstatic' 15903 ;; 15904 lcc*) 15905 # Lucid 15906 lt_prog_compiler_pic_CXX='-pic' 15907 ;; 15908 *) 15909 ;; 15910 esac 15911 ;; 15912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15913 case $cc_basename in 15914 CC*) 15915 lt_prog_compiler_wl_CXX='-Wl,' 15916 lt_prog_compiler_pic_CXX='-KPIC' 15917 lt_prog_compiler_static_CXX='-Bstatic' 15918 ;; 15919 esac 15920 ;; 15921 tandem*) 15922 case $cc_basename in 15923 NCC*) 15924 # NonStop-UX NCC 3.20 15925 lt_prog_compiler_pic_CXX='-KPIC' 15926 ;; 15927 *) 15928 ;; 15929 esac 15930 ;; 15931 vxworks*) 15932 ;; 15933 *) 15934 lt_prog_compiler_can_build_shared_CXX=no 15935 ;; 15936 esac 15937 fi 15938 15939case $host_os in 15940 # For platforms that do not support PIC, -DPIC is meaningless: 15941 *djgpp*) 15942 lt_prog_compiler_pic_CXX= 15943 ;; 15944 *) 15945 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15946 ;; 15947esac 15948 15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15950$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15951if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15955fi 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15957$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15958lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15959 15960# 15961# Check to make sure the PIC flag actually works. 15962# 15963if test -n "$lt_prog_compiler_pic_CXX"; then 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15965$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15966if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 lt_cv_prog_compiler_pic_works_CXX=no 15970 ac_outfile=conftest.$ac_objext 15971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15972 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15973 # Insert the option either (1) after the last *FLAGS variable, or 15974 # (2) before a word containing "conftest.", or (3) at the end. 15975 # Note that $ac_compile itself does not contain backslashes and begins 15976 # with a dollar sign (not a hyphen), so the echo should work correctly. 15977 # The option is referenced via a variable to avoid confusing sed. 15978 lt_compile=`echo "$ac_compile" | $SED \ 15979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15981 -e 's:$: $lt_compiler_flag:'` 15982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15983 (eval "$lt_compile" 2>conftest.err) 15984 ac_status=$? 15985 cat conftest.err >&5 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 if (exit $ac_status) && test -s "$ac_outfile"; then 15988 # The compiler can only warn and ignore the option if not recognized 15989 # So say no if there are warnings other than the usual output. 15990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15993 lt_cv_prog_compiler_pic_works_CXX=yes 15994 fi 15995 fi 15996 $RM conftest* 15997 15998fi 15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16000$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16001 16002if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16003 case $lt_prog_compiler_pic_CXX in 16004 "" | " "*) ;; 16005 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16006 esac 16007else 16008 lt_prog_compiler_pic_CXX= 16009 lt_prog_compiler_can_build_shared_CXX=no 16010fi 16011 16012fi 16013 16014 16015 16016 16017 16018# 16019# Check to make sure the static flag actually works. 16020# 16021wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16023$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16024if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16025 $as_echo_n "(cached) " >&6 16026else 16027 lt_cv_prog_compiler_static_works_CXX=no 16028 save_LDFLAGS=$LDFLAGS 16029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16030 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16032 # The linker can only warn and ignore the option if not recognized 16033 # So say no if there are warnings 16034 if test -s conftest.err; then 16035 # Append any errors to the config.log. 16036 cat conftest.err 1>&5 16037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16039 if diff conftest.exp conftest.er2 >/dev/null; then 16040 lt_cv_prog_compiler_static_works_CXX=yes 16041 fi 16042 else 16043 lt_cv_prog_compiler_static_works_CXX=yes 16044 fi 16045 fi 16046 $RM -r conftest* 16047 LDFLAGS=$save_LDFLAGS 16048 16049fi 16050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16051$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16052 16053if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16054 : 16055else 16056 lt_prog_compiler_static_CXX= 16057fi 16058 16059 16060 16061 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16063$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16064if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16065 $as_echo_n "(cached) " >&6 16066else 16067 lt_cv_prog_compiler_c_o_CXX=no 16068 $RM -r conftest 2>/dev/null 16069 mkdir conftest 16070 cd conftest 16071 mkdir out 16072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16073 16074 lt_compiler_flag="-o out/conftest2.$ac_objext" 16075 # Insert the option either (1) after the last *FLAGS variable, or 16076 # (2) before a word containing "conftest.", or (3) at the end. 16077 # Note that $ac_compile itself does not contain backslashes and begins 16078 # with a dollar sign (not a hyphen), so the echo should work correctly. 16079 lt_compile=`echo "$ac_compile" | $SED \ 16080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16082 -e 's:$: $lt_compiler_flag:'` 16083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16084 (eval "$lt_compile" 2>out/conftest.err) 16085 ac_status=$? 16086 cat out/conftest.err >&5 16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16088 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16089 then 16090 # The compiler can only warn and ignore the option if not recognized 16091 # So say no if there are warnings 16092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16095 lt_cv_prog_compiler_c_o_CXX=yes 16096 fi 16097 fi 16098 chmod u+w . 2>&5 16099 $RM conftest* 16100 # SGI C++ compiler will create directory out/ii_files/ for 16101 # template instantiation 16102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16103 $RM out/* && rmdir out 16104 cd .. 16105 $RM -r conftest 16106 $RM conftest* 16107 16108fi 16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16110$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16111 16112 16113 16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16115$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16116if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16117 $as_echo_n "(cached) " >&6 16118else 16119 lt_cv_prog_compiler_c_o_CXX=no 16120 $RM -r conftest 2>/dev/null 16121 mkdir conftest 16122 cd conftest 16123 mkdir out 16124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16125 16126 lt_compiler_flag="-o out/conftest2.$ac_objext" 16127 # Insert the option either (1) after the last *FLAGS variable, or 16128 # (2) before a word containing "conftest.", or (3) at the end. 16129 # Note that $ac_compile itself does not contain backslashes and begins 16130 # with a dollar sign (not a hyphen), so the echo should work correctly. 16131 lt_compile=`echo "$ac_compile" | $SED \ 16132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16134 -e 's:$: $lt_compiler_flag:'` 16135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16136 (eval "$lt_compile" 2>out/conftest.err) 16137 ac_status=$? 16138 cat out/conftest.err >&5 16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16140 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16141 then 16142 # The compiler can only warn and ignore the option if not recognized 16143 # So say no if there are warnings 16144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16147 lt_cv_prog_compiler_c_o_CXX=yes 16148 fi 16149 fi 16150 chmod u+w . 2>&5 16151 $RM conftest* 16152 # SGI C++ compiler will create directory out/ii_files/ for 16153 # template instantiation 16154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16155 $RM out/* && rmdir out 16156 cd .. 16157 $RM -r conftest 16158 $RM conftest* 16159 16160fi 16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16162$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16163 16164 16165 16166 16167hard_links=nottested 16168if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16169 # do not overwrite the value of need_locks provided by the user 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16171$as_echo_n "checking if we can lock with hard links... " >&6; } 16172 hard_links=yes 16173 $RM conftest* 16174 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16175 touch conftest.a 16176 ln conftest.a conftest.b 2>&5 || hard_links=no 16177 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16179$as_echo "$hard_links" >&6; } 16180 if test no = "$hard_links"; then 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16182$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16183 need_locks=warn 16184 fi 16185else 16186 need_locks=no 16187fi 16188 16189 16190 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16192$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16193 16194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16195 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16196 case $host_os in 16197 aix[4-9]*) 16198 # If we're using GNU nm, then we don't want the "-C" option. 16199 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16200 # Without the "-l" option, or with the "-B" option, AIX nm treats 16201 # weak defined symbols like other global defined symbols, whereas 16202 # GNU nm marks them as "W". 16203 # While the 'weak' keyword is ignored in the Export File, we need 16204 # it in the Import File for the 'aix-soname' feature, so we have 16205 # to replace the "-B" option with "-P" for AIX nm. 16206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16207 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16208 else 16209 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16210 fi 16211 ;; 16212 pw32*) 16213 export_symbols_cmds_CXX=$ltdll_cmds 16214 ;; 16215 cygwin* | mingw* | cegcc*) 16216 case $cc_basename in 16217 cl*) 16218 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16219 ;; 16220 *) 16221 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16222 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16223 ;; 16224 esac 16225 ;; 16226 linux* | k*bsd*-gnu | gnu*) 16227 link_all_deplibs_CXX=no 16228 ;; 16229 *) 16230 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16231 ;; 16232 esac 16233 16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16235$as_echo "$ld_shlibs_CXX" >&6; } 16236test no = "$ld_shlibs_CXX" && can_build_shared=no 16237 16238with_gnu_ld_CXX=$with_gnu_ld 16239 16240 16241 16242 16243 16244 16245# 16246# Do we need to explicitly link libc? 16247# 16248case "x$archive_cmds_need_lc_CXX" in 16249x|xyes) 16250 # Assume -lc should be added 16251 archive_cmds_need_lc_CXX=yes 16252 16253 if test yes,yes = "$GCC,$enable_shared"; then 16254 case $archive_cmds_CXX in 16255 *'~'*) 16256 # FIXME: we may have to deal with multi-command sequences. 16257 ;; 16258 '$CC '*) 16259 # Test whether the compiler implicitly links with -lc since on some 16260 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16261 # to ld, don't add -lc before -lgcc. 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16263$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16264if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 $RM conftest* 16268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16269 16270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16271 (eval $ac_compile) 2>&5 16272 ac_status=$? 16273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16274 test $ac_status = 0; } 2>conftest.err; then 16275 soname=conftest 16276 lib=conftest 16277 libobjs=conftest.$ac_objext 16278 deplibs= 16279 wl=$lt_prog_compiler_wl_CXX 16280 pic_flag=$lt_prog_compiler_pic_CXX 16281 compiler_flags=-v 16282 linker_flags=-v 16283 verstring= 16284 output_objdir=. 16285 libname=conftest 16286 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16287 allow_undefined_flag_CXX= 16288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16289 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16290 ac_status=$? 16291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16292 test $ac_status = 0; } 16293 then 16294 lt_cv_archive_cmds_need_lc_CXX=no 16295 else 16296 lt_cv_archive_cmds_need_lc_CXX=yes 16297 fi 16298 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16299 else 16300 cat conftest.err 1>&5 16301 fi 16302 $RM conftest* 16303 16304fi 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16306$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16307 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16308 ;; 16309 esac 16310 fi 16311 ;; 16312esac 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16376$as_echo_n "checking dynamic linker characteristics... " >&6; } 16377 16378library_names_spec= 16379libname_spec='lib$name' 16380soname_spec= 16381shrext_cmds=.so 16382postinstall_cmds= 16383postuninstall_cmds= 16384finish_cmds= 16385finish_eval= 16386shlibpath_var= 16387shlibpath_overrides_runpath=unknown 16388version_type=none 16389dynamic_linker="$host_os ld.so" 16390sys_lib_dlsearch_path_spec="/lib /usr/lib" 16391need_lib_prefix=unknown 16392hardcode_into_libs=no 16393 16394# when you set need_version to no, make sure it does not cause -set_version 16395# flags to be left without arguments 16396need_version=unknown 16397 16398 16399 16400case $host_os in 16401aix3*) 16402 version_type=linux # correct to gnu/linux during the next big refactor 16403 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16404 shlibpath_var=LIBPATH 16405 16406 # AIX 3 has no versioning support, so we append a major version to the name. 16407 soname_spec='$libname$release$shared_ext$major' 16408 ;; 16409 16410aix[4-9]*) 16411 version_type=linux # correct to gnu/linux during the next big refactor 16412 need_lib_prefix=no 16413 need_version=no 16414 hardcode_into_libs=yes 16415 if test ia64 = "$host_cpu"; then 16416 # AIX 5 supports IA64 16417 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16418 shlibpath_var=LD_LIBRARY_PATH 16419 else 16420 # With GCC up to 2.95.x, collect2 would create an import file 16421 # for dependence libraries. The import file would start with 16422 # the line '#! .'. This would cause the generated library to 16423 # depend on '.', always an invalid library. This was fixed in 16424 # development snapshots of GCC prior to 3.0. 16425 case $host_os in 16426 aix4 | aix4.[01] | aix4.[01].*) 16427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16428 echo ' yes ' 16429 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16430 : 16431 else 16432 can_build_shared=no 16433 fi 16434 ;; 16435 esac 16436 # Using Import Files as archive members, it is possible to support 16437 # filename-based versioning of shared library archives on AIX. While 16438 # this would work for both with and without runtime linking, it will 16439 # prevent static linking of such archives. So we do filename-based 16440 # shared library versioning with .so extension only, which is used 16441 # when both runtime linking and shared linking is enabled. 16442 # Unfortunately, runtime linking may impact performance, so we do 16443 # not want this to be the default eventually. Also, we use the 16444 # versioned .so libs for executables only if there is the -brtl 16445 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16446 # To allow for filename-based versioning support, we need to create 16447 # libNAME.so.V as an archive file, containing: 16448 # *) an Import File, referring to the versioned filename of the 16449 # archive as well as the shared archive member, telling the 16450 # bitwidth (32 or 64) of that shared object, and providing the 16451 # list of exported symbols of that shared object, eventually 16452 # decorated with the 'weak' keyword 16453 # *) the shared object with the F_LOADONLY flag set, to really avoid 16454 # it being seen by the linker. 16455 # At run time we better use the real file rather than another symlink, 16456 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16457 16458 case $with_aix_soname,$aix_use_runtimelinking in 16459 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16460 # soname into executable. Probably we can add versioning support to 16461 # collect2, so additional links can be useful in future. 16462 aix,yes) # traditional libtool 16463 dynamic_linker='AIX unversionable lib.so' 16464 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16465 # instead of lib<name>.a to let people know that these are not 16466 # typical AIX shared libraries. 16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16468 ;; 16469 aix,no) # traditional AIX only 16470 dynamic_linker='AIX lib.a(lib.so.V)' 16471 # We preserve .a as extension for shared libraries through AIX4.2 16472 # and later when we are not doing run time linking. 16473 library_names_spec='$libname$release.a $libname.a' 16474 soname_spec='$libname$release$shared_ext$major' 16475 ;; 16476 svr4,*) # full svr4 only 16477 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16478 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16479 # We do not specify a path in Import Files, so LIBPATH fires. 16480 shlibpath_overrides_runpath=yes 16481 ;; 16482 *,yes) # both, prefer svr4 16483 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16484 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16485 # unpreferred sharedlib libNAME.a needs extra handling 16486 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16487 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16488 # We do not specify a path in Import Files, so LIBPATH fires. 16489 shlibpath_overrides_runpath=yes 16490 ;; 16491 *,no) # both, prefer aix 16492 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16493 library_names_spec='$libname$release.a $libname.a' 16494 soname_spec='$libname$release$shared_ext$major' 16495 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16496 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16497 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16498 ;; 16499 esac 16500 shlibpath_var=LIBPATH 16501 fi 16502 ;; 16503 16504amigaos*) 16505 case $host_cpu in 16506 powerpc) 16507 # Since July 2007 AmigaOS4 officially supports .so libraries. 16508 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16510 ;; 16511 m68k) 16512 library_names_spec='$libname.ixlibrary $libname.a' 16513 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16514 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16515 ;; 16516 esac 16517 ;; 16518 16519beos*) 16520 library_names_spec='$libname$shared_ext' 16521 dynamic_linker="$host_os ld.so" 16522 shlibpath_var=LIBRARY_PATH 16523 ;; 16524 16525bsdi[45]*) 16526 version_type=linux # correct to gnu/linux during the next big refactor 16527 need_version=no 16528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16529 soname_spec='$libname$release$shared_ext$major' 16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16531 shlibpath_var=LD_LIBRARY_PATH 16532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16534 # the default ld.so.conf also contains /usr/contrib/lib and 16535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16536 # libtool to hard-code these into programs 16537 ;; 16538 16539cygwin* | mingw* | pw32* | cegcc*) 16540 version_type=windows 16541 shrext_cmds=.dll 16542 need_version=no 16543 need_lib_prefix=no 16544 16545 case $GCC,$cc_basename in 16546 yes,*) 16547 # gcc 16548 library_names_spec='$libname.dll.a' 16549 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16550 postinstall_cmds='base_file=`basename \$file`~ 16551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16552 dldir=$destdir/`dirname \$dlpath`~ 16553 test -d \$dldir || mkdir -p \$dldir~ 16554 $install_prog $dir/$dlname \$dldir/$dlname~ 16555 chmod a+x \$dldir/$dlname~ 16556 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16557 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16558 fi' 16559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16560 dlpath=$dir/\$dldll~ 16561 $RM \$dlpath' 16562 shlibpath_overrides_runpath=yes 16563 16564 case $host_os in 16565 cygwin*) 16566 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16567 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16568 16569 ;; 16570 mingw* | cegcc*) 16571 # MinGW DLLs use traditional 'lib' prefix 16572 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16573 ;; 16574 pw32*) 16575 # pw32 DLLs use 'pw' prefix rather than 'lib' 16576 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16577 ;; 16578 esac 16579 dynamic_linker='Win32 ld.exe' 16580 ;; 16581 16582 *,cl*) 16583 # Native MSVC 16584 libname_spec='$name' 16585 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16586 library_names_spec='$libname.dll.lib' 16587 16588 case $build_os in 16589 mingw*) 16590 sys_lib_search_path_spec= 16591 lt_save_ifs=$IFS 16592 IFS=';' 16593 for lt_path in $LIB 16594 do 16595 IFS=$lt_save_ifs 16596 # Let DOS variable expansion print the short 8.3 style file name. 16597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16599 done 16600 IFS=$lt_save_ifs 16601 # Convert to MSYS style. 16602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16603 ;; 16604 cygwin*) 16605 # Convert to unix form, then to dos form, then back to unix form 16606 # but this time dos style (no spaces!) so that the unix form looks 16607 # like /cygdrive/c/PROGRA~1:/cygdr... 16608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16611 ;; 16612 *) 16613 sys_lib_search_path_spec=$LIB 16614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16615 # It is most probably a Windows format PATH. 16616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16617 else 16618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16619 fi 16620 # FIXME: find the short name or the path components, as spaces are 16621 # common. (e.g. "Program Files" -> "PROGRA~1") 16622 ;; 16623 esac 16624 16625 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16626 postinstall_cmds='base_file=`basename \$file`~ 16627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16628 dldir=$destdir/`dirname \$dlpath`~ 16629 test -d \$dldir || mkdir -p \$dldir~ 16630 $install_prog $dir/$dlname \$dldir/$dlname' 16631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16632 dlpath=$dir/\$dldll~ 16633 $RM \$dlpath' 16634 shlibpath_overrides_runpath=yes 16635 dynamic_linker='Win32 link.exe' 16636 ;; 16637 16638 *) 16639 # Assume MSVC wrapper 16640 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16641 dynamic_linker='Win32 ld.exe' 16642 ;; 16643 esac 16644 # FIXME: first we should search . and the directory the executable is in 16645 shlibpath_var=PATH 16646 ;; 16647 16648darwin* | rhapsody*) 16649 dynamic_linker="$host_os dyld" 16650 version_type=darwin 16651 need_lib_prefix=no 16652 need_version=no 16653 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16654 soname_spec='$libname$release$major$shared_ext' 16655 shlibpath_overrides_runpath=yes 16656 shlibpath_var=DYLD_LIBRARY_PATH 16657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16658 16659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16660 ;; 16661 16662dgux*) 16663 version_type=linux # correct to gnu/linux during the next big refactor 16664 need_lib_prefix=no 16665 need_version=no 16666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16667 soname_spec='$libname$release$shared_ext$major' 16668 shlibpath_var=LD_LIBRARY_PATH 16669 ;; 16670 16671freebsd* | dragonfly*) 16672 # DragonFly does not have aout. When/if they implement a new 16673 # versioning mechanism, adjust this. 16674 if test -x /usr/bin/objformat; then 16675 objformat=`/usr/bin/objformat` 16676 else 16677 case $host_os in 16678 freebsd[23].*) objformat=aout ;; 16679 *) objformat=elf ;; 16680 esac 16681 fi 16682 version_type=freebsd-$objformat 16683 case $version_type in 16684 freebsd-elf*) 16685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16686 soname_spec='$libname$release$shared_ext$major' 16687 need_version=no 16688 need_lib_prefix=no 16689 ;; 16690 freebsd-*) 16691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16692 need_version=yes 16693 ;; 16694 esac 16695 shlibpath_var=LD_LIBRARY_PATH 16696 case $host_os in 16697 freebsd2.*) 16698 shlibpath_overrides_runpath=yes 16699 ;; 16700 freebsd3.[01]* | freebsdelf3.[01]*) 16701 shlibpath_overrides_runpath=yes 16702 hardcode_into_libs=yes 16703 ;; 16704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16706 shlibpath_overrides_runpath=no 16707 hardcode_into_libs=yes 16708 ;; 16709 *) # from 4.6 on, and DragonFly 16710 shlibpath_overrides_runpath=yes 16711 hardcode_into_libs=yes 16712 ;; 16713 esac 16714 ;; 16715 16716haiku*) 16717 version_type=linux # correct to gnu/linux during the next big refactor 16718 need_lib_prefix=no 16719 need_version=no 16720 dynamic_linker="$host_os runtime_loader" 16721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16722 soname_spec='$libname$release$shared_ext$major' 16723 shlibpath_var=LIBRARY_PATH 16724 shlibpath_overrides_runpath=no 16725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16726 hardcode_into_libs=yes 16727 ;; 16728 16729hpux9* | hpux10* | hpux11*) 16730 # Give a soname corresponding to the major version so that dld.sl refuses to 16731 # link against other versions. 16732 version_type=sunos 16733 need_lib_prefix=no 16734 need_version=no 16735 case $host_cpu in 16736 ia64*) 16737 shrext_cmds='.so' 16738 hardcode_into_libs=yes 16739 dynamic_linker="$host_os dld.so" 16740 shlibpath_var=LD_LIBRARY_PATH 16741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16743 soname_spec='$libname$release$shared_ext$major' 16744 if test 32 = "$HPUX_IA64_MODE"; then 16745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16746 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16747 else 16748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16749 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16750 fi 16751 ;; 16752 hppa*64*) 16753 shrext_cmds='.sl' 16754 hardcode_into_libs=yes 16755 dynamic_linker="$host_os dld.sl" 16756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16759 soname_spec='$libname$release$shared_ext$major' 16760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16762 ;; 16763 *) 16764 shrext_cmds='.sl' 16765 dynamic_linker="$host_os dld.sl" 16766 shlibpath_var=SHLIB_PATH 16767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16769 soname_spec='$libname$release$shared_ext$major' 16770 ;; 16771 esac 16772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16773 postinstall_cmds='chmod 555 $lib' 16774 # or fails outright, so override atomically: 16775 install_override_mode=555 16776 ;; 16777 16778interix[3-9]*) 16779 version_type=linux # correct to gnu/linux during the next big refactor 16780 need_lib_prefix=no 16781 need_version=no 16782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16783 soname_spec='$libname$release$shared_ext$major' 16784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16785 shlibpath_var=LD_LIBRARY_PATH 16786 shlibpath_overrides_runpath=no 16787 hardcode_into_libs=yes 16788 ;; 16789 16790irix5* | irix6* | nonstopux*) 16791 case $host_os in 16792 nonstopux*) version_type=nonstopux ;; 16793 *) 16794 if test yes = "$lt_cv_prog_gnu_ld"; then 16795 version_type=linux # correct to gnu/linux during the next big refactor 16796 else 16797 version_type=irix 16798 fi ;; 16799 esac 16800 need_lib_prefix=no 16801 need_version=no 16802 soname_spec='$libname$release$shared_ext$major' 16803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16804 case $host_os in 16805 irix5* | nonstopux*) 16806 libsuff= shlibsuff= 16807 ;; 16808 *) 16809 case $LD in # libtool.m4 will add one of these switches to LD 16810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16811 libsuff= shlibsuff= libmagic=32-bit;; 16812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16813 libsuff=32 shlibsuff=N32 libmagic=N32;; 16814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16815 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16816 *) libsuff= shlibsuff= libmagic=never-match;; 16817 esac 16818 ;; 16819 esac 16820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16821 shlibpath_overrides_runpath=no 16822 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16823 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16824 hardcode_into_libs=yes 16825 ;; 16826 16827# No shared lib support for Linux oldld, aout, or coff. 16828linux*oldld* | linux*aout* | linux*coff*) 16829 dynamic_linker=no 16830 ;; 16831 16832linux*android*) 16833 version_type=none # Android doesn't support versioned libraries. 16834 need_lib_prefix=no 16835 need_version=no 16836 library_names_spec='$libname$release$shared_ext' 16837 soname_spec='$libname$release$shared_ext' 16838 finish_cmds= 16839 shlibpath_var=LD_LIBRARY_PATH 16840 shlibpath_overrides_runpath=yes 16841 16842 # This implies no fast_install, which is unacceptable. 16843 # Some rework will be needed to allow for fast_install 16844 # before this can be enabled. 16845 hardcode_into_libs=yes 16846 16847 dynamic_linker='Android linker' 16848 # Don't embed -rpath directories since the linker doesn't support them. 16849 hardcode_libdir_flag_spec_CXX='-L$libdir' 16850 ;; 16851 16852# This must be glibc/ELF. 16853linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16854 version_type=linux # correct to gnu/linux during the next big refactor 16855 need_lib_prefix=no 16856 need_version=no 16857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16858 soname_spec='$libname$release$shared_ext$major' 16859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16860 shlibpath_var=LD_LIBRARY_PATH 16861 shlibpath_overrides_runpath=no 16862 16863 # Some binutils ld are patched to set DT_RUNPATH 16864 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16865 $as_echo_n "(cached) " >&6 16866else 16867 lt_cv_shlibpath_overrides_runpath=no 16868 save_LDFLAGS=$LDFLAGS 16869 save_libdir=$libdir 16870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874 16875int 16876main () 16877{ 16878 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883if ac_fn_cxx_try_link "$LINENO"; then : 16884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16885 lt_cv_shlibpath_overrides_runpath=yes 16886fi 16887fi 16888rm -f core conftest.err conftest.$ac_objext \ 16889 conftest$ac_exeext conftest.$ac_ext 16890 LDFLAGS=$save_LDFLAGS 16891 libdir=$save_libdir 16892 16893fi 16894 16895 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16896 16897 # This implies no fast_install, which is unacceptable. 16898 # Some rework will be needed to allow for fast_install 16899 # before this can be enabled. 16900 hardcode_into_libs=yes 16901 16902 # Ideally, we could use ldconfig to report *all* directores which are 16903 # searched for libraries, however this is still not possible. Aside from not 16904 # being certain /sbin/ldconfig is available, command 16905 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16906 # even though it is searched at run-time. Try to do the best guess by 16907 # appending ld.so.conf contents (and includes) to the search path. 16908 if test -f /etc/ld.so.conf; then 16909 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' ' '` 16910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16911 fi 16912 16913 # We used to test for /lib/ld.so.1 and disable shared libraries on 16914 # powerpc, because MkLinux only supported shared libraries with the 16915 # GNU dynamic linker. Since this was broken with cross compilers, 16916 # most powerpc-linux boxes support dynamic linking these days and 16917 # people can always --disable-shared, the test was removed, and we 16918 # assume the GNU/Linux dynamic linker is in use. 16919 dynamic_linker='GNU/Linux ld.so' 16920 ;; 16921 16922netbsdelf*-gnu) 16923 version_type=linux 16924 need_lib_prefix=no 16925 need_version=no 16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16927 soname_spec='${libname}${release}${shared_ext}$major' 16928 shlibpath_var=LD_LIBRARY_PATH 16929 shlibpath_overrides_runpath=no 16930 hardcode_into_libs=yes 16931 dynamic_linker='NetBSD ld.elf_so' 16932 ;; 16933 16934netbsd*) 16935 version_type=sunos 16936 need_lib_prefix=no 16937 need_version=no 16938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16941 dynamic_linker='NetBSD (a.out) ld.so' 16942 else 16943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16944 soname_spec='$libname$release$shared_ext$major' 16945 dynamic_linker='NetBSD ld.elf_so' 16946 fi 16947 shlibpath_var=LD_LIBRARY_PATH 16948 shlibpath_overrides_runpath=yes 16949 hardcode_into_libs=yes 16950 ;; 16951 16952newsos6) 16953 version_type=linux # correct to gnu/linux during the next big refactor 16954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16955 shlibpath_var=LD_LIBRARY_PATH 16956 shlibpath_overrides_runpath=yes 16957 ;; 16958 16959*nto* | *qnx*) 16960 version_type=qnx 16961 need_lib_prefix=no 16962 need_version=no 16963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16964 soname_spec='$libname$release$shared_ext$major' 16965 shlibpath_var=LD_LIBRARY_PATH 16966 shlibpath_overrides_runpath=no 16967 hardcode_into_libs=yes 16968 dynamic_linker='ldqnx.so' 16969 ;; 16970 16971openbsd* | bitrig*) 16972 version_type=sunos 16973 sys_lib_dlsearch_path_spec=/usr/lib 16974 need_lib_prefix=no 16975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16976 need_version=no 16977 else 16978 need_version=yes 16979 fi 16980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16982 shlibpath_var=LD_LIBRARY_PATH 16983 shlibpath_overrides_runpath=yes 16984 ;; 16985 16986os2*) 16987 libname_spec='$name' 16988 version_type=windows 16989 shrext_cmds=.dll 16990 need_version=no 16991 need_lib_prefix=no 16992 # OS/2 can only load a DLL with a base name of 8 characters or less. 16993 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16994 v=$($ECHO $release$versuffix | tr -d .-); 16995 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16996 $ECHO $n$v`$shared_ext' 16997 library_names_spec='${libname}_dll.$libext' 16998 dynamic_linker='OS/2 ld.exe' 16999 shlibpath_var=BEGINLIBPATH 17000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17002 postinstall_cmds='base_file=`basename \$file`~ 17003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17004 dldir=$destdir/`dirname \$dlpath`~ 17005 test -d \$dldir || mkdir -p \$dldir~ 17006 $install_prog $dir/$dlname \$dldir/$dlname~ 17007 chmod a+x \$dldir/$dlname~ 17008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17010 fi' 17011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17012 dlpath=$dir/\$dldll~ 17013 $RM \$dlpath' 17014 ;; 17015 17016osf3* | osf4* | osf5*) 17017 version_type=osf 17018 need_lib_prefix=no 17019 need_version=no 17020 soname_spec='$libname$release$shared_ext$major' 17021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17022 shlibpath_var=LD_LIBRARY_PATH 17023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17025 ;; 17026 17027rdos*) 17028 dynamic_linker=no 17029 ;; 17030 17031solaris*) 17032 version_type=linux # correct to gnu/linux during the next big refactor 17033 need_lib_prefix=no 17034 need_version=no 17035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17036 soname_spec='$libname$release$shared_ext$major' 17037 shlibpath_var=LD_LIBRARY_PATH 17038 shlibpath_overrides_runpath=yes 17039 hardcode_into_libs=yes 17040 # ldd complains unless libraries are executable 17041 postinstall_cmds='chmod +x $lib' 17042 ;; 17043 17044sunos4*) 17045 version_type=sunos 17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17048 shlibpath_var=LD_LIBRARY_PATH 17049 shlibpath_overrides_runpath=yes 17050 if test yes = "$with_gnu_ld"; then 17051 need_lib_prefix=no 17052 fi 17053 need_version=yes 17054 ;; 17055 17056sysv4 | sysv4.3*) 17057 version_type=linux # correct to gnu/linux during the next big refactor 17058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17059 soname_spec='$libname$release$shared_ext$major' 17060 shlibpath_var=LD_LIBRARY_PATH 17061 case $host_vendor in 17062 sni) 17063 shlibpath_overrides_runpath=no 17064 need_lib_prefix=no 17065 runpath_var=LD_RUN_PATH 17066 ;; 17067 siemens) 17068 need_lib_prefix=no 17069 ;; 17070 motorola) 17071 need_lib_prefix=no 17072 need_version=no 17073 shlibpath_overrides_runpath=no 17074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17075 ;; 17076 esac 17077 ;; 17078 17079sysv4*MP*) 17080 if test -d /usr/nec; then 17081 version_type=linux # correct to gnu/linux during the next big refactor 17082 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17083 soname_spec='$libname$shared_ext.$major' 17084 shlibpath_var=LD_LIBRARY_PATH 17085 fi 17086 ;; 17087 17088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17089 version_type=sco 17090 need_lib_prefix=no 17091 need_version=no 17092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17093 soname_spec='$libname$release$shared_ext$major' 17094 shlibpath_var=LD_LIBRARY_PATH 17095 shlibpath_overrides_runpath=yes 17096 hardcode_into_libs=yes 17097 if test yes = "$with_gnu_ld"; then 17098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17099 else 17100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17101 case $host_os in 17102 sco3.2v5*) 17103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17104 ;; 17105 esac 17106 fi 17107 sys_lib_dlsearch_path_spec='/usr/lib' 17108 ;; 17109 17110tpf*) 17111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17112 version_type=linux # correct to gnu/linux during the next big refactor 17113 need_lib_prefix=no 17114 need_version=no 17115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17116 shlibpath_var=LD_LIBRARY_PATH 17117 shlibpath_overrides_runpath=no 17118 hardcode_into_libs=yes 17119 ;; 17120 17121uts4*) 17122 version_type=linux # correct to gnu/linux during the next big refactor 17123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17124 soname_spec='$libname$release$shared_ext$major' 17125 shlibpath_var=LD_LIBRARY_PATH 17126 ;; 17127 17128*) 17129 dynamic_linker=no 17130 ;; 17131esac 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17133$as_echo "$dynamic_linker" >&6; } 17134test no = "$dynamic_linker" && can_build_shared=no 17135 17136variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17137if test yes = "$GCC"; then 17138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17139fi 17140 17141if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17142 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17143fi 17144 17145if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17146 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17147fi 17148 17149# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17150configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17151 17152# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17153func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17154 17155# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17156configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17198$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17199hardcode_action_CXX= 17200if test -n "$hardcode_libdir_flag_spec_CXX" || 17201 test -n "$runpath_var_CXX" || 17202 test yes = "$hardcode_automatic_CXX"; then 17203 17204 # We can hardcode non-existent directories. 17205 if test no != "$hardcode_direct_CXX" && 17206 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17207 # have to relink, otherwise we might link with an installed library 17208 # when we should be linking with a yet-to-be-installed one 17209 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17210 test no != "$hardcode_minus_L_CXX"; then 17211 # Linking always hardcodes the temporary library directory. 17212 hardcode_action_CXX=relink 17213 else 17214 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17215 hardcode_action_CXX=immediate 17216 fi 17217else 17218 # We cannot hardcode anything, or else we can only hardcode existing 17219 # directories. 17220 hardcode_action_CXX=unsupported 17221fi 17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17223$as_echo "$hardcode_action_CXX" >&6; } 17224 17225if test relink = "$hardcode_action_CXX" || 17226 test yes = "$inherit_rpath_CXX"; then 17227 # Fast installation is not supported 17228 enable_fast_install=no 17229elif test yes = "$shlibpath_overrides_runpath" || 17230 test no = "$enable_shared"; then 17231 # Fast installation is not necessary 17232 enable_fast_install=needless 17233fi 17234 17235 17236 17237 17238 17239 17240 17241 fi # test -n "$compiler" 17242 17243 CC=$lt_save_CC 17244 CFLAGS=$lt_save_CFLAGS 17245 LDCXX=$LD 17246 LD=$lt_save_LD 17247 GCC=$lt_save_GCC 17248 with_gnu_ld=$lt_save_with_gnu_ld 17249 lt_cv_path_LDCXX=$lt_cv_path_LD 17250 lt_cv_path_LD=$lt_save_path_LD 17251 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17252 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17253fi # test yes != "$_lt_caught_CXX_error" 17254 17255ac_ext=c 17256ac_cpp='$CPP $CPPFLAGS' 17257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17259ac_compiler_gnu=$ac_cv_c_compiler_gnu 17260 17261 17262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the CLANG C compiler" >&5 17263$as_echo_n "checking whether we are using the CLANG C compiler... " >&6; } 17264if ${xiph_cv_c_compiler_clang+:} false; then : 17265 $as_echo_n "(cached) " >&6 17266else 17267 17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17269/* end confdefs.h. */ 17270 17271 #include <stdio.h> 17272 17273int 17274main () 17275{ 17276 17277 #ifndef __clang__ 17278 This is not clang! 17279 #endif 17280 17281 ; 17282 return 0; 17283} 17284_ACEOF 17285if ac_fn_c_try_link "$LINENO"; then : 17286 xiph_cv_c_compiler_clang=yes 17287else 17288 xiph_cv_c_compiler_clang=no 17289 17290fi 17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xiph_cv_c_compiler_clang" >&5 17292$as_echo "$xiph_cv_c_compiler_clang" >&6; } 17293 17294fi 17295rm -f core conftest.err conftest.$ac_objext \ 17296 conftest$ac_exeext conftest.$ac_ext 17297 17298 17299 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302 17303 #include <stdio.h> 17304 17305int 17306main () 17307{ 17308 17309 #ifdef __clang__ 17310 This is clang! 17311 #endif 17312 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_link "$LINENO"; then : 17318 ac_cv_c_compiler_gnu=yes 17319else 17320 ac_cv_c_compiler_gnu=no 17321 17322fi 17323rm -f core conftest.err conftest.$ac_objext \ 17324 conftest$ac_exeext conftest.$ac_ext 17325 fi 17326 17327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 17328$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 17329set x ${MAKE-make} 17330ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 17331if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 17332 $as_echo_n "(cached) " >&6 17333else 17334 cat >conftest.make <<\_ACEOF 17335SHELL = /bin/sh 17336all: 17337 @echo '@@@%%%=$(MAKE)=@@@%%%' 17338_ACEOF 17339# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17340case `${MAKE-make} -f conftest.make 2>/dev/null` in 17341 *@@@%%%=?*=@@@%%%*) 17342 eval ac_cv_prog_make_${ac_make}_set=yes;; 17343 *) 17344 eval ac_cv_prog_make_${ac_make}_set=no;; 17345esac 17346rm -f conftest.make 17347fi 17348if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17350$as_echo "yes" >&6; } 17351 SET_MAKE= 17352else 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17354$as_echo "no" >&6; } 17355 SET_MAKE="MAKE=${MAKE-make}" 17356fi 17357 17358 17359 17360# Check whether --enable-largefile was given. 17361if test "${enable_largefile+set}" = set; then : 17362 enableval=$enable_largefile; 17363fi 17364 17365if test "$enable_largefile" != no; then 17366 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17368$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17369if ${ac_cv_sys_largefile_CC+:} false; then : 17370 $as_echo_n "(cached) " >&6 17371else 17372 ac_cv_sys_largefile_CC=no 17373 if test "$GCC" != yes; then 17374 ac_save_CC=$CC 17375 while :; do 17376 # IRIX 6.2 and later do not support large files by default, 17377 # so use the C compiler's -n32 option if that helps. 17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17379/* end confdefs.h. */ 17380#include <sys/types.h> 17381 /* Check that off_t can represent 2**63 - 1 correctly. 17382 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17383 since some C++ compilers masquerading as C compilers 17384 incorrectly reject 9223372036854775807. */ 17385#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17387 && LARGE_OFF_T % 2147483647 == 1) 17388 ? 1 : -1]; 17389int 17390main () 17391{ 17392 17393 ; 17394 return 0; 17395} 17396_ACEOF 17397 if ac_fn_c_try_compile "$LINENO"; then : 17398 break 17399fi 17400rm -f core conftest.err conftest.$ac_objext 17401 CC="$CC -n32" 17402 if ac_fn_c_try_compile "$LINENO"; then : 17403 ac_cv_sys_largefile_CC=' -n32'; break 17404fi 17405rm -f core conftest.err conftest.$ac_objext 17406 break 17407 done 17408 CC=$ac_save_CC 17409 rm -f conftest.$ac_ext 17410 fi 17411fi 17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17413$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17414 if test "$ac_cv_sys_largefile_CC" != no; then 17415 CC=$CC$ac_cv_sys_largefile_CC 17416 fi 17417 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17419$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17420if ${ac_cv_sys_file_offset_bits+:} false; then : 17421 $as_echo_n "(cached) " >&6 17422else 17423 while :; do 17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17425/* end confdefs.h. */ 17426#include <sys/types.h> 17427 /* Check that off_t can represent 2**63 - 1 correctly. 17428 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17429 since some C++ compilers masquerading as C compilers 17430 incorrectly reject 9223372036854775807. */ 17431#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17433 && LARGE_OFF_T % 2147483647 == 1) 17434 ? 1 : -1]; 17435int 17436main () 17437{ 17438 17439 ; 17440 return 0; 17441} 17442_ACEOF 17443if ac_fn_c_try_compile "$LINENO"; then : 17444 ac_cv_sys_file_offset_bits=no; break 17445fi 17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17448/* end confdefs.h. */ 17449#define _FILE_OFFSET_BITS 64 17450#include <sys/types.h> 17451 /* Check that off_t can represent 2**63 - 1 correctly. 17452 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17453 since some C++ compilers masquerading as C compilers 17454 incorrectly reject 9223372036854775807. */ 17455#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17457 && LARGE_OFF_T % 2147483647 == 1) 17458 ? 1 : -1]; 17459int 17460main () 17461{ 17462 17463 ; 17464 return 0; 17465} 17466_ACEOF 17467if ac_fn_c_try_compile "$LINENO"; then : 17468 ac_cv_sys_file_offset_bits=64; break 17469fi 17470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17471 ac_cv_sys_file_offset_bits=unknown 17472 break 17473done 17474fi 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17476$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17477case $ac_cv_sys_file_offset_bits in #( 17478 no | unknown) ;; 17479 *) 17480cat >>confdefs.h <<_ACEOF 17481#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17482_ACEOF 17483;; 17484esac 17485rm -rf conftest* 17486 if test $ac_cv_sys_file_offset_bits = unknown; then 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17488$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17489if ${ac_cv_sys_large_files+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491else 17492 while :; do 17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17494/* end confdefs.h. */ 17495#include <sys/types.h> 17496 /* Check that off_t can represent 2**63 - 1 correctly. 17497 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17498 since some C++ compilers masquerading as C compilers 17499 incorrectly reject 9223372036854775807. */ 17500#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17502 && LARGE_OFF_T % 2147483647 == 1) 17503 ? 1 : -1]; 17504int 17505main () 17506{ 17507 17508 ; 17509 return 0; 17510} 17511_ACEOF 17512if ac_fn_c_try_compile "$LINENO"; then : 17513 ac_cv_sys_large_files=no; break 17514fi 17515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17517/* end confdefs.h. */ 17518#define _LARGE_FILES 1 17519#include <sys/types.h> 17520 /* Check that off_t can represent 2**63 - 1 correctly. 17521 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17522 since some C++ compilers masquerading as C compilers 17523 incorrectly reject 9223372036854775807. */ 17524#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17526 && LARGE_OFF_T % 2147483647 == 1) 17527 ? 1 : -1]; 17528int 17529main () 17530{ 17531 17532 ; 17533 return 0; 17534} 17535_ACEOF 17536if ac_fn_c_try_compile "$LINENO"; then : 17537 ac_cv_sys_large_files=1; break 17538fi 17539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17540 ac_cv_sys_large_files=unknown 17541 break 17542done 17543fi 17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17545$as_echo "$ac_cv_sys_large_files" >&6; } 17546case $ac_cv_sys_large_files in #( 17547 no | unknown) ;; 17548 *) 17549cat >>confdefs.h <<_ACEOF 17550#define _LARGE_FILES $ac_cv_sys_large_files 17551_ACEOF 17552;; 17553esac 17554rm -rf conftest* 17555 fi 17556 17557 17558fi 17559 17560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17561$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17562if ${ac_cv_sys_largefile_source+:} false; then : 17563 $as_echo_n "(cached) " >&6 17564else 17565 while :; do 17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17567/* end confdefs.h. */ 17568#include <sys/types.h> /* for off_t */ 17569 #include <stdio.h> 17570int 17571main () 17572{ 17573int (*fp) (FILE *, off_t, int) = fseeko; 17574 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_link "$LINENO"; then : 17580 ac_cv_sys_largefile_source=no; break 17581fi 17582rm -f core conftest.err conftest.$ac_objext \ 17583 conftest$ac_exeext conftest.$ac_ext 17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586#define _LARGEFILE_SOURCE 1 17587#include <sys/types.h> /* for off_t */ 17588 #include <stdio.h> 17589int 17590main () 17591{ 17592int (*fp) (FILE *, off_t, int) = fseeko; 17593 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17594 ; 17595 return 0; 17596} 17597_ACEOF 17598if ac_fn_c_try_link "$LINENO"; then : 17599 ac_cv_sys_largefile_source=1; break 17600fi 17601rm -f core conftest.err conftest.$ac_objext \ 17602 conftest$ac_exeext conftest.$ac_ext 17603 ac_cv_sys_largefile_source=unknown 17604 break 17605done 17606fi 17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17608$as_echo "$ac_cv_sys_largefile_source" >&6; } 17609case $ac_cv_sys_largefile_source in #( 17610 no | unknown) ;; 17611 *) 17612cat >>confdefs.h <<_ACEOF 17613#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 17614_ACEOF 17615;; 17616esac 17617rm -rf conftest* 17618 17619# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17620# in glibc 2.1.3, but that breaks too many other things. 17621# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17622if test $ac_cv_sys_largefile_source != unknown; then 17623 17624$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 17625 17626fi 17627 17628 17629# The cast to long int works around a bug in the HP C Compiler 17630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17632# This bug is HP SR number 8606223364. 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 17634$as_echo_n "checking size of off_t... " >&6; } 17635if ${ac_cv_sizeof_off_t+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 17639 17640else 17641 if test "$ac_cv_type_off_t" = yes; then 17642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17644as_fn_error 77 "cannot compute sizeof (off_t) 17645See \`config.log' for more details" "$LINENO" 5; } 17646 else 17647 ac_cv_sizeof_off_t=0 17648 fi 17649fi 17650 17651fi 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 17653$as_echo "$ac_cv_sizeof_off_t" >&6; } 17654 17655 17656 17657cat >>confdefs.h <<_ACEOF 17658#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 17659_ACEOF 17660 17661 # Fake default value. 17662# The cast to long int works around a bug in the HP C Compiler 17663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17665# This bug is HP SR number 8606223364. 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 17667$as_echo_n "checking size of void*... " >&6; } 17668if ${ac_cv_sizeof_voidp+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 17672 17673else 17674 if test "$ac_cv_type_voidp" = yes; then 17675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17677as_fn_error 77 "cannot compute sizeof (void*) 17678See \`config.log' for more details" "$LINENO" 5; } 17679 else 17680 ac_cv_sizeof_voidp=0 17681 fi 17682fi 17683 17684fi 17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 17686$as_echo "$ac_cv_sizeof_voidp" >&6; } 17687 17688 17689 17690cat >>confdefs.h <<_ACEOF 17691#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 17692_ACEOF 17693 17694 17695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lround" >&5 17696$as_echo_n "checking for library containing lround... " >&6; } 17697if ${ac_cv_search_lround+:} false; then : 17698 $as_echo_n "(cached) " >&6 17699else 17700 ac_func_search_save_LIBS=$LIBS 17701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17702/* end confdefs.h. */ 17703 17704/* Override any GCC internal prototype to avoid an error. 17705 Use char because int might match the return type of a GCC 17706 builtin and then its argument prototype would still apply. */ 17707#ifdef __cplusplus 17708extern "C" 17709#endif 17710char lround (); 17711int 17712main () 17713{ 17714return lround (); 17715 ; 17716 return 0; 17717} 17718_ACEOF 17719for ac_lib in '' m; do 17720 if test -z "$ac_lib"; then 17721 ac_res="none required" 17722 else 17723 ac_res=-l$ac_lib 17724 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17725 fi 17726 if ac_fn_c_try_link "$LINENO"; then : 17727 ac_cv_search_lround=$ac_res 17728fi 17729rm -f core conftest.err conftest.$ac_objext \ 17730 conftest$ac_exeext 17731 if ${ac_cv_search_lround+:} false; then : 17732 break 17733fi 17734done 17735if ${ac_cv_search_lround+:} false; then : 17736 17737else 17738 ac_cv_search_lround=no 17739fi 17740rm conftest.$ac_ext 17741LIBS=$ac_func_search_save_LIBS 17742fi 17743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lround" >&5 17744$as_echo "$ac_cv_search_lround" >&6; } 17745ac_res=$ac_cv_search_lround 17746if test "$ac_res" != no; then : 17747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17748 17749$as_echo "#define HAVE_LROUND 1" >>confdefs.h 17750 17751fi 17752 17753 17754ac_ext=cpp 17755ac_cpp='$CXXCPP $CPPFLAGS' 17756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17759 17760# c++ flavor first 17761 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 17763$as_echo_n "checking for variable-length arrays... " >&6; } 17764if ${ac_cv_c_vararrays+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766else 17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17768/* end confdefs.h. */ 17769 17770int 17771main () 17772{ 17773static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0]; 17774 ; 17775 return 0; 17776} 17777_ACEOF 17778if ac_fn_cxx_try_compile "$LINENO"; then : 17779 ac_cv_c_vararrays=yes 17780else 17781 ac_cv_c_vararrays=no 17782fi 17783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17784fi 17785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 17786$as_echo "$ac_cv_c_vararrays" >&6; } 17787 if test $ac_cv_c_vararrays = yes; then 17788 17789$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h 17790 17791 fi 17792 17793if test $ac_cv_c_vararrays = yes; then 17794 17795$as_echo "#define HAVE_CXX_VARARRAYS 1" >>confdefs.h 17796 17797fi 17798ac_ext=c 17799ac_cpp='$CPP $CPPFLAGS' 17800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17802ac_compiler_gnu=$ac_cv_c_compiler_gnu 17803 17804 17805# c flavor 17806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17807$as_echo_n "checking for ANSI C header files... " >&6; } 17808if ${ac_cv_header_stdc+:} false; then : 17809 $as_echo_n "(cached) " >&6 17810else 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812/* end confdefs.h. */ 17813#include <stdlib.h> 17814#include <stdarg.h> 17815#include <string.h> 17816#include <float.h> 17817 17818int 17819main () 17820{ 17821 17822 ; 17823 return 0; 17824} 17825_ACEOF 17826if ac_fn_c_try_compile "$LINENO"; then : 17827 ac_cv_header_stdc=yes 17828else 17829 ac_cv_header_stdc=no 17830fi 17831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17832 17833if test $ac_cv_header_stdc = yes; then 17834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17836/* end confdefs.h. */ 17837#include <string.h> 17838 17839_ACEOF 17840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17841 $EGREP "memchr" >/dev/null 2>&1; then : 17842 17843else 17844 ac_cv_header_stdc=no 17845fi 17846rm -f conftest* 17847 17848fi 17849 17850if test $ac_cv_header_stdc = yes; then 17851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853/* end confdefs.h. */ 17854#include <stdlib.h> 17855 17856_ACEOF 17857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17858 $EGREP "free" >/dev/null 2>&1; then : 17859 17860else 17861 ac_cv_header_stdc=no 17862fi 17863rm -f conftest* 17864 17865fi 17866 17867if test $ac_cv_header_stdc = yes; then 17868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17869 if test "$cross_compiling" = yes; then : 17870 : 17871else 17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874#include <ctype.h> 17875#include <stdlib.h> 17876#if ((' ' & 0x0FF) == 0x020) 17877# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17878# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17879#else 17880# define ISLOWER(c) \ 17881 (('a' <= (c) && (c) <= 'i') \ 17882 || ('j' <= (c) && (c) <= 'r') \ 17883 || ('s' <= (c) && (c) <= 'z')) 17884# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17885#endif 17886 17887#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17888int 17889main () 17890{ 17891 int i; 17892 for (i = 0; i < 256; i++) 17893 if (XOR (islower (i), ISLOWER (i)) 17894 || toupper (i) != TOUPPER (i)) 17895 return 2; 17896 return 0; 17897} 17898_ACEOF 17899if ac_fn_c_try_run "$LINENO"; then : 17900 17901else 17902 ac_cv_header_stdc=no 17903fi 17904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17905 conftest.$ac_objext conftest.beam conftest.$ac_ext 17906fi 17907 17908fi 17909fi 17910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17911$as_echo "$ac_cv_header_stdc" >&6; } 17912if test $ac_cv_header_stdc = yes; then 17913 17914$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17915 17916fi 17917 17918 17919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17920$as_echo_n "checking for inline... " >&6; } 17921if ${ac_cv_c_inline+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923else 17924 ac_cv_c_inline=no 17925for ac_kw in inline __inline__ __inline; do 17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17927/* end confdefs.h. */ 17928#ifndef __cplusplus 17929typedef int foo_t; 17930static $ac_kw foo_t static_foo () {return 0; } 17931$ac_kw foo_t foo () {return 0; } 17932#endif 17933 17934_ACEOF 17935if ac_fn_c_try_compile "$LINENO"; then : 17936 ac_cv_c_inline=$ac_kw 17937fi 17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17939 test "$ac_cv_c_inline" != no && break 17940done 17941 17942fi 17943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17944$as_echo "$ac_cv_c_inline" >&6; } 17945 17946case $ac_cv_c_inline in 17947 inline | yes) ;; 17948 *) 17949 case $ac_cv_c_inline in 17950 no) ac_val=;; 17951 *) ac_val=$ac_cv_c_inline;; 17952 esac 17953 cat >>confdefs.h <<_ACEOF 17954#ifndef __cplusplus 17955#define inline $ac_val 17956#endif 17957_ACEOF 17958 ;; 17959esac 17960 17961 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 17963$as_echo_n "checking for variable-length arrays... " >&6; } 17964if ${ac_cv_c_vararrays+:} false; then : 17965 $as_echo_n "(cached) " >&6 17966else 17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17968/* end confdefs.h. */ 17969 17970int 17971main () 17972{ 17973static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0]; 17974 ; 17975 return 0; 17976} 17977_ACEOF 17978if ac_fn_c_try_compile "$LINENO"; then : 17979 ac_cv_c_vararrays=yes 17980else 17981 ac_cv_c_vararrays=no 17982fi 17983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17984fi 17985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 17986$as_echo "$ac_cv_c_vararrays" >&6; } 17987 if test $ac_cv_c_vararrays = yes; then 17988 17989$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h 17990 17991 fi 17992 17993 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 17995$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 17996if ${ac_cv_c_typeof+:} false; then : 17997 $as_echo_n "(cached) " >&6 17998else 17999 ac_cv_c_typeof=no 18000 for ac_kw in typeof __typeof__ no; do 18001 test $ac_kw = no && break 18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18003/* end confdefs.h. */ 18004 18005int 18006main () 18007{ 18008 18009 int value; 18010 typedef struct { 18011 char a [1 18012 + ! (($ac_kw (value)) 18013 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 18014 ? ($ac_kw (value)) - 1 18015 : ~ (~ ($ac_kw (value)) 0 18016 << sizeof ($ac_kw (value)))))]; } 18017 ac__typeof_type_; 18018 return 18019 (! ((void) ((ac__typeof_type_ *) 0), 0)); 18020 18021 ; 18022 return 0; 18023} 18024_ACEOF 18025if ac_fn_c_try_compile "$LINENO"; then : 18026 ac_cv_c_typeof=$ac_kw 18027fi 18028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18029 test $ac_cv_c_typeof != no && break 18030 done 18031fi 18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 18033$as_echo "$ac_cv_c_typeof" >&6; } 18034 if test $ac_cv_c_typeof != no; then 18035 18036$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 18037 18038 if test $ac_cv_c_typeof != typeof; then 18039 18040cat >>confdefs.h <<_ACEOF 18041#define typeof $ac_cv_c_typeof 18042_ACEOF 18043 18044 fi 18045 fi 18046 18047 18048for ac_header in stdint.h inttypes.h byteswap.h sys/param.h sys/ioctl.h termios.h x86intrin.h cpuid.h 18049do : 18050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18051ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18053 cat >>confdefs.h <<_ACEOF 18054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18055_ACEOF 18056 18057fi 18058 18059done 18060 18061 18062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 instrinsic" >&5 18063$as_echo_n "checking for bswap32 instrinsic... " >&6; } 18064if ${ac_cv_c_bswap32+:} false; then : 18065 $as_echo_n "(cached) " >&6 18066else 18067 # Initialize to no 18068 ac_cv_c_bswap32=no 18069 HAVE_BSWAP32=0 18070 18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18072/* end confdefs.h. */ 18073 18074int 18075main () 18076{ 18077return __builtin_bswap32 (0) ; 18078 ; 18079 return 0; 18080} 18081_ACEOF 18082if ac_fn_c_try_link "$LINENO"; then : 18083 ac_cv_c_bswap32=yes 18084 HAVE_BSWAP32=1 18085 18086fi 18087rm -f core conftest.err conftest.$ac_objext \ 18088 conftest$ac_exeext conftest.$ac_ext 18089 18090cat >>confdefs.h <<_ACEOF 18091#define HAVE_BSWAP32 ${HAVE_BSWAP32} 18092_ACEOF 18093 18094 18095 18096fi 18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap32" >&5 18098$as_echo "$ac_cv_c_bswap32" >&6; } 18099 18100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 instrinsic" >&5 18101$as_echo_n "checking for bswap16 instrinsic... " >&6; } 18102if ${ac_cv_c_bswap16+:} false; then : 18103 $as_echo_n "(cached) " >&6 18104else 18105 # Initialize to no 18106 ac_cv_c_bswap16=no 18107 HAVE_BSWAP16=0 18108 18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111 18112int 18113main () 18114{ 18115return __builtin_bswap16 (0) ; 18116 ; 18117 return 0; 18118} 18119_ACEOF 18120if ac_fn_c_try_link "$LINENO"; then : 18121 ac_cv_c_bswap16=yes 18122 HAVE_BSWAP16=1 18123 18124fi 18125rm -f core conftest.err conftest.$ac_objext \ 18126 conftest$ac_exeext conftest.$ac_ext 18127 18128cat >>confdefs.h <<_ACEOF 18129#define HAVE_BSWAP16 ${HAVE_BSWAP16} 18130_ACEOF 18131 18132 18133 18134fi 18135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap16" >&5 18136$as_echo "$ac_cv_c_bswap16" >&6; } 18137 18138 18139ac_cv_c_big_endian=0 18140ac_cv_c_little_endian=0 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18142$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18143if ${ac_cv_c_bigendian+:} false; then : 18144 $as_echo_n "(cached) " >&6 18145else 18146 ac_cv_c_bigendian=unknown 18147 # See if we're dealing with a universal compiler. 18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18149/* end confdefs.h. */ 18150#ifndef __APPLE_CC__ 18151 not a universal capable compiler 18152 #endif 18153 typedef int dummy; 18154 18155_ACEOF 18156if ac_fn_c_try_compile "$LINENO"; then : 18157 18158 # Check for potential -arch flags. It is not universal unless 18159 # there are at least two -arch flags with different values. 18160 ac_arch= 18161 ac_prev= 18162 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18163 if test -n "$ac_prev"; then 18164 case $ac_word in 18165 i?86 | x86_64 | ppc | ppc64) 18166 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18167 ac_arch=$ac_word 18168 else 18169 ac_cv_c_bigendian=universal 18170 break 18171 fi 18172 ;; 18173 esac 18174 ac_prev= 18175 elif test "x$ac_word" = "x-arch"; then 18176 ac_prev=arch 18177 fi 18178 done 18179fi 18180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18181 if test $ac_cv_c_bigendian = unknown; then 18182 # See if sys/param.h defines the BYTE_ORDER macro. 18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18184/* end confdefs.h. */ 18185#include <sys/types.h> 18186 #include <sys/param.h> 18187 18188int 18189main () 18190{ 18191#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18192 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18193 && LITTLE_ENDIAN) 18194 bogus endian macros 18195 #endif 18196 18197 ; 18198 return 0; 18199} 18200_ACEOF 18201if ac_fn_c_try_compile "$LINENO"; then : 18202 # It does; now see whether it defined to BIG_ENDIAN or not. 18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204/* end confdefs.h. */ 18205#include <sys/types.h> 18206 #include <sys/param.h> 18207 18208int 18209main () 18210{ 18211#if BYTE_ORDER != BIG_ENDIAN 18212 not big endian 18213 #endif 18214 18215 ; 18216 return 0; 18217} 18218_ACEOF 18219if ac_fn_c_try_compile "$LINENO"; then : 18220 ac_cv_c_bigendian=yes 18221else 18222 ac_cv_c_bigendian=no 18223fi 18224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18225fi 18226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18227 fi 18228 if test $ac_cv_c_bigendian = unknown; then 18229 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232#include <limits.h> 18233 18234int 18235main () 18236{ 18237#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18238 bogus endian macros 18239 #endif 18240 18241 ; 18242 return 0; 18243} 18244_ACEOF 18245if ac_fn_c_try_compile "$LINENO"; then : 18246 # It does; now see whether it defined to _BIG_ENDIAN or not. 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248/* end confdefs.h. */ 18249#include <limits.h> 18250 18251int 18252main () 18253{ 18254#ifndef _BIG_ENDIAN 18255 not big endian 18256 #endif 18257 18258 ; 18259 return 0; 18260} 18261_ACEOF 18262if ac_fn_c_try_compile "$LINENO"; then : 18263 ac_cv_c_bigendian=yes 18264else 18265 ac_cv_c_bigendian=no 18266fi 18267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18268fi 18269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18270 fi 18271 if test $ac_cv_c_bigendian = unknown; then 18272 # Compile a test program. 18273 if test "$cross_compiling" = yes; then : 18274 # Try to guess by grepping values from an object file. 18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276/* end confdefs.h. */ 18277short int ascii_mm[] = 18278 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18279 short int ascii_ii[] = 18280 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18281 int use_ascii (int i) { 18282 return ascii_mm[i] + ascii_ii[i]; 18283 } 18284 short int ebcdic_ii[] = 18285 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18286 short int ebcdic_mm[] = 18287 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18288 int use_ebcdic (int i) { 18289 return ebcdic_mm[i] + ebcdic_ii[i]; 18290 } 18291 extern int foo; 18292 18293int 18294main () 18295{ 18296return use_ascii (foo) == use_ebcdic (foo); 18297 ; 18298 return 0; 18299} 18300_ACEOF 18301if ac_fn_c_try_compile "$LINENO"; then : 18302 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18303 ac_cv_c_bigendian=yes 18304 fi 18305 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18306 if test "$ac_cv_c_bigendian" = unknown; then 18307 ac_cv_c_bigendian=no 18308 else 18309 # finding both strings is unlikely to happen, but who knows? 18310 ac_cv_c_bigendian=unknown 18311 fi 18312 fi 18313fi 18314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18315else 18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18317/* end confdefs.h. */ 18318$ac_includes_default 18319int 18320main () 18321{ 18322 18323 /* Are we little or big endian? From Harbison&Steele. */ 18324 union 18325 { 18326 long int l; 18327 char c[sizeof (long int)]; 18328 } u; 18329 u.l = 1; 18330 return u.c[sizeof (long int) - 1] == 1; 18331 18332 ; 18333 return 0; 18334} 18335_ACEOF 18336if ac_fn_c_try_run "$LINENO"; then : 18337 ac_cv_c_bigendian=no 18338else 18339 ac_cv_c_bigendian=yes 18340fi 18341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18342 conftest.$ac_objext conftest.beam conftest.$ac_ext 18343fi 18344 18345 fi 18346fi 18347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18348$as_echo "$ac_cv_c_bigendian" >&6; } 18349 case $ac_cv_c_bigendian in #( 18350 yes) 18351 ac_cv_c_big_endian=1;; #( 18352 no) 18353 ac_cv_c_little_endian=1 ;; #( 18354 universal) 18355 18356$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18357 18358 ;; #( 18359 *) 18360 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 18362$as_echo "$as_me: WARNING: *****************************************************************" >&2;} 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5 18364$as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;} 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5 18366$as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;} 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** config.h may need to be hand editied. " >&5 18368$as_echo "$as_me: WARNING: *** config.h may need to be hand editied. " >&2;} 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5 18370$as_echo "$as_me: WARNING: *****************************************************************" >&2;} 18371 ;; 18372 esac 18373 18374 18375cat >>confdefs.h <<_ACEOF 18376#define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian} 18377_ACEOF 18378 18379 18380cat >>confdefs.h <<_ACEOF 18381#define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian} 18382_ACEOF 18383 18384 18385cat >>confdefs.h <<_ACEOF 18386#define WORDS_BIGENDIAN ${ac_cv_c_big_endian} 18387_ACEOF 18388 18389 18390# Check whether --enable-asm-optimizations was given. 18391if test "${enable_asm_optimizations+set}" = set; then : 18392 enableval=$enable_asm_optimizations; asm_opt=no 18393else 18394 asm_opt=yes 18395fi 18396 18397 if test "x$asm_opt" = xno; then 18398 FLaC__NO_ASM_TRUE= 18399 FLaC__NO_ASM_FALSE='#' 18400else 18401 FLaC__NO_ASM_TRUE='#' 18402 FLaC__NO_ASM_FALSE= 18403fi 18404 18405if test "x$asm_opt" = xno ; then 18406$as_echo "#define FLAC__NO_ASM 1" >>confdefs.h 18407 18408 18409fi 18410 18411# For the XMMS plugin. 18412ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default" 18413if test "x$ac_cv_type_socklen_t" = xyes; then : 18414 18415cat >>confdefs.h <<_ACEOF 18416#define HAVE_SOCKLEN_T 1 18417_ACEOF 18418 18419 18420fi 18421 18422 18423for ac_func in getopt_long 18424do : 18425 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 18426if test "x$ac_cv_func_getopt_long" = xyes; then : 18427 cat >>confdefs.h <<_ACEOF 18428#define HAVE_GETOPT_LONG 1 18429_ACEOF 18430 18431fi 18432done 18433 18434 18435# The cast to long int works around a bug in the HP C Compiler 18436# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18437# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18438# This bug is HP SR number 8606223364. 18439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 18440$as_echo_n "checking size of void*... " >&6; } 18441if ${ac_cv_sizeof_voidp+:} false; then : 18442 $as_echo_n "(cached) " >&6 18443else 18444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 18445 18446else 18447 if test "$ac_cv_type_voidp" = yes; then 18448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18450as_fn_error 77 "cannot compute sizeof (void*) 18451See \`config.log' for more details" "$LINENO" 5; } 18452 else 18453 ac_cv_sizeof_voidp=0 18454 fi 18455fi 18456 18457fi 18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 18459$as_echo "$ac_cv_sizeof_voidp" >&6; } 18460 18461 18462 18463cat >>confdefs.h <<_ACEOF 18464#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 18465_ACEOF 18466 18467 18468 18469asm_optimisation=no 18470case "$host_cpu" in 18471 amd64|x86_64) 18472 case "$host" in 18473 *gnux32) 18474 # x32 user space and 64 bit kernel. 18475 cpu_x86_64=true 18476 $as_echo "#define FLAC__CPU_X86_64 1" >>confdefs.h 18477 18478 18479 asm_optimisation=$asm_opt 18480 ;; 18481 *) 18482 if test $ac_cv_sizeof_voidp = 4 ; then 18483 # This must be a 32 bit user space running on 64 bit kernel so treat 18484 # this as ia32. 18485 cpu_ia32=true 18486 $as_echo "#define FLAC__CPU_IA32 1" >>confdefs.h 18487 18488 18489 else 18490 # x86_64 user space and kernel. 18491 cpu_x86_64=true 18492 $as_echo "#define FLAC__CPU_X86_64 1" >>confdefs.h 18493 18494 18495 fi 18496 asm_optimisation=$asm_opt 18497 ;; 18498 esac 18499 ;; 18500 i*86) 18501 cpu_ia32=true 18502 $as_echo "#define FLAC__CPU_IA32 1" >>confdefs.h 18503 18504 18505 asm_optimisation=$asm_opt 18506 ;; 18507 powerpc|powerpc64) 18508 cpu_ppc=true 18509 $as_echo "#define FLAC__CPU_PPC 1" >>confdefs.h 18510 18511 18512 asm_optimisation=$asm_opt 18513 ;; 18514 sparc) 18515 cpu_sparc=true 18516 $as_echo "#define FLAC__CPU_SPARC 1" >>confdefs.h 18517 18518 18519 asm_optimisation=$asm_opt 18520 ;; 18521esac 18522 if test "x$cpu_x86_64" = xtrue; then 18523 FLAC__CPU_X86_64_TRUE= 18524 FLAC__CPU_X86_64_FALSE='#' 18525else 18526 FLAC__CPU_X86_64_TRUE='#' 18527 FLAC__CPU_X86_64_FALSE= 18528fi 18529 18530 if test "x$cpu_ia32" = xtrue; then 18531 FLaC__CPU_IA32_TRUE= 18532 FLaC__CPU_IA32_FALSE='#' 18533else 18534 FLaC__CPU_IA32_TRUE='#' 18535 FLaC__CPU_IA32_FALSE= 18536fi 18537 18538 if test "x$cpu_ppc" = xtrue; then 18539 FLaC__CPU_PPC_TRUE= 18540 FLaC__CPU_PPC_FALSE='#' 18541else 18542 FLaC__CPU_PPC_TRUE='#' 18543 FLaC__CPU_PPC_FALSE= 18544fi 18545 18546 if test "x$cpu_sparc" = xtrue; then 18547 FLaC__CPU_SPARC_TRUE= 18548 FLaC__CPU_SPARC_FALSE='#' 18549else 18550 FLaC__CPU_SPARC_TRUE='#' 18551 FLaC__CPU_SPARC_FALSE= 18552fi 18553 18554 18555if test "x$ac_cv_header_x86intrin_h" = xyes; then 18556 18557$as_echo "#define FLAC__HAS_X86INTRIN 1" >>confdefs.h 18558 18559else 18560$as_echo "#define FLAC__HAS_X86INTRIN 0" >>confdefs.h 18561 18562fi 18563 18564case "$host" in 18565 i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;; 18566 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;; 18567 *-*-darwin*) OBJ_FORMAT=macho ;; 18568 *emx*) OBJ_FORMAT=aout ;; 18569 *) OBJ_FORMAT=elf ;; 18570esac 18571 18572case "$host" in 18573 *-gnuspe) 18574 abi_spe=true 18575 $as_echo "#define FLAC__CPU_PPC_SPE 1" >>confdefs.h 18576 18577 18578 ;; 18579esac 18580 if test "x$abi_spe" = xtrue; then 18581 FLaC__CPU_PPC_SPE_TRUE= 18582 FLaC__CPU_PPC_SPE_FALSE='#' 18583else 18584 FLaC__CPU_PPC_SPE_TRUE='#' 18585 FLaC__CPU_PPC_SPE_FALSE= 18586fi 18587 18588 18589os_is_windows=no 18590case "$host" in 18591 *-*-cygwin|*mingw*) 18592 CPPFLAGS="-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS" 18593 os_is_windows=yes 18594 ;; 18595esac 18596 18597 if test "x$os_is_windows" = xyes; then 18598 OS_IS_WINDOWS_TRUE= 18599 OS_IS_WINDOWS_FALSE='#' 18600else 18601 OS_IS_WINDOWS_TRUE='#' 18602 OS_IS_WINDOWS_FALSE= 18603fi 18604 18605 18606case "$host" in 18607 *-pc-linux-gnu) 18608 sys_linux=true 18609 $as_echo "#define FLAC__SYS_LINUX 1" >>confdefs.h 18610 18611 18612 ;; 18613 *-*-darwin*) 18614 sys_darwin=true 18615 $as_echo "#define FLAC__SYS_DARWIN 1" >>confdefs.h 18616 18617 18618 ;; 18619esac 18620 if test "x$sys_darwin" = xtrue; then 18621 FLaC__SYS_DARWIN_TRUE= 18622 FLaC__SYS_DARWIN_FALSE='#' 18623else 18624 FLaC__SYS_DARWIN_TRUE='#' 18625 FLaC__SYS_DARWIN_FALSE= 18626fi 18627 18628 if test "x$sys_linux" = xtrue; then 18629 FLaC__SYS_LINUX_TRUE= 18630 FLaC__SYS_LINUX_FALSE='#' 18631else 18632 FLaC__SYS_LINUX_TRUE='#' 18633 FLaC__SYS_LINUX_FALSE= 18634fi 18635 18636 18637if test "x$cpu_ia32" = xtrue || test "x$cpu_x86_64" = xtrue ; then 18638$as_echo "#define FLAC__ALIGN_MALLOC_DATA 1" >>confdefs.h 18639 18640 18641fi 18642 18643# Check whether --enable-debug was given. 18644if test "${enable_debug+set}" = set; then : 18645 enableval=$enable_debug; case "${enableval}" in 18646 yes) debug=true ;; 18647 no) debug=false ;; 18648 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 18649esac 18650else 18651 debug=false 18652fi 18653 18654 if test "x$debug" = xtrue; then 18655 DEBUG_TRUE= 18656 DEBUG_FALSE='#' 18657else 18658 DEBUG_TRUE='#' 18659 DEBUG_FALSE= 18660fi 18661 18662 18663# Check whether --enable-sse was given. 18664if test "${enable_sse+set}" = set; then : 18665 enableval=$enable_sse; case "${enableval}" in 18666 yes) sse_os=yes ;; 18667 no) sse_os=no ;; 18668 *) as_fn_error $? "bad value ${enableval} for --enable-sse" "$LINENO" 5 ;; 18669esac 18670else 18671 sse_os=yes 18672fi 18673 18674 18675# Check whether --enable-altivec was given. 18676if test "${enable_altivec+set}" = set; then : 18677 enableval=$enable_altivec; case "${enableval}" in 18678 yes) use_altivec=true ;; 18679 no) use_altivec=false ;; 18680 *) as_fn_error $? "bad value ${enableval} for --enable-altivec" "$LINENO" 5 ;; 18681esac 18682else 18683 use_altivec=true 18684fi 18685 18686 if test "x$use_altivec" = xtrue; then 18687 FLaC__USE_ALTIVEC_TRUE= 18688 FLaC__USE_ALTIVEC_FALSE='#' 18689else 18690 FLaC__USE_ALTIVEC_TRUE='#' 18691 FLaC__USE_ALTIVEC_FALSE= 18692fi 18693 18694if test "x$use_altivec" = xtrue ; then 18695$as_echo "#define FLAC__USE_ALTIVEC 1" >>confdefs.h 18696 18697 18698fi 18699 18700# Check whether --enable-avx was given. 18701if test "${enable_avx+set}" = set; then : 18702 enableval=$enable_avx; case "${enableval}" in 18703 yes) use_avx=true ;; 18704 no) use_avx=false ;; 18705 *) as_fn_error $? "bad value ${enableval} for --enable-avx" "$LINENO" 5 ;; 18706esac 18707else 18708 use_avx=true 18709fi 18710 18711 if test "x$use_avx" = xtrue; then 18712 FLaC__USE_AVX_TRUE= 18713 FLaC__USE_AVX_FALSE='#' 18714else 18715 FLaC__USE_AVX_TRUE='#' 18716 FLaC__USE_AVX_FALSE= 18717fi 18718 18719if test "x$use_avx" = xtrue ; then 18720$as_echo "#define FLAC__USE_AVX 1" >>confdefs.h 18721 18722 18723fi 18724 18725# Check whether --enable-thorough-tests was given. 18726if test "${enable_thorough_tests+set}" = set; then : 18727 enableval=$enable_thorough_tests; case "${enableval}" in 18728 yes) thorough_tests=true ;; 18729 no) thorough_tests=false ;; 18730 *) as_fn_error $? "bad value ${enableval} for --enable-thorough-tests" "$LINENO" 5 ;; 18731esac 18732else 18733 thorough_tests=true 18734fi 18735 18736# Check whether --enable-exhaustive-tests was given. 18737if test "${enable_exhaustive_tests+set}" = set; then : 18738 enableval=$enable_exhaustive_tests; case "${enableval}" in 18739 yes) exhaustive_tests=true ;; 18740 no) exhaustive_tests=false ;; 18741 *) as_fn_error $? "bad value ${enableval} for --enable-exhaustive-tests" "$LINENO" 5 ;; 18742esac 18743else 18744 exhaustive_tests=false 18745fi 18746 18747if test "x$thorough_tests" = xfalse ; then 18748FLAC__TEST_LEVEL=0 18749elif test "x$exhaustive_tests" = xfalse ; then 18750FLAC__TEST_LEVEL=1 18751else 18752FLAC__TEST_LEVEL=2 18753fi 18754 18755 18756# Check whether --enable-werror was given. 18757if test "${enable_werror+set}" = set; then : 18758 enableval=$enable_werror; 18759fi 18760 18761 18762# Check whether --enable-stack-smash-protection was given. 18763if test "${enable_stack_smash_protection+set}" = set; then : 18764 enableval=$enable_stack_smash_protection; 18765fi 18766 18767 18768# Check whether --enable-64-bit-words was given. 18769if test "${enable_64_bit_words+set}" = set; then : 18770 enableval=$enable_64_bit_words; 18771fi 18772 18773if test "x$enable_64_bit_words" = xyes ; then 18774 18775cat >>confdefs.h <<_ACEOF 18776#define ENABLE_64_BIT_WORDS 1 18777_ACEOF 18778 18779else 18780 cat >>confdefs.h <<_ACEOF 18781#define ENABLE_64_BIT_WORDS 0 18782_ACEOF 18783 18784 fi 18785 18786 18787# Check whether --enable-valgrind-testing was given. 18788if test "${enable_valgrind_testing+set}" = set; then : 18789 enableval=$enable_valgrind_testing; case "${enableval}" in 18790 yes) FLAC__TEST_WITH_VALGRIND=yes ;; 18791 no) FLAC__TEST_WITH_VALGRIND=no ;; 18792 *) as_fn_error $? "bad value ${enableval} for --enable-valgrind-testing" "$LINENO" 5 ;; 18793esac 18794else 18795 FLAC__TEST_WITH_VALGRIND=no 18796fi 18797 18798 18799 18800# Check whether --enable-doxygen-docs was given. 18801if test "${enable_doxygen_docs+set}" = set; then : 18802 enableval=$enable_doxygen_docs; case "${enableval}" in 18803 yes) enable_doxygen_docs=true ;; 18804 no) enable_doxygen_docs=false ;; 18805 *) as_fn_error $? "bad value ${enableval} for --enable-doxygen-docs" "$LINENO" 5 ;; 18806esac 18807else 18808 enable_doxygen_docs=true 18809fi 18810 18811if test "x$enable_doxygen_docs" != xfalse ; then 18812 for ac_prog in doxygen 18813do 18814 # Extract the first word of "$ac_prog", so it can be a program name with args. 18815set dummy $ac_prog; ac_word=$2 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18817$as_echo_n "checking for $ac_word... " >&6; } 18818if ${ac_cv_prog_DOXYGEN+:} false; then : 18819 $as_echo_n "(cached) " >&6 18820else 18821 if test -n "$DOXYGEN"; then 18822 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 18823else 18824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18825for as_dir in $PATH 18826do 18827 IFS=$as_save_IFS 18828 test -z "$as_dir" && as_dir=. 18829 for ac_exec_ext in '' $ac_executable_extensions; do 18830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18831 ac_cv_prog_DOXYGEN="$ac_prog" 18832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18833 break 2 18834 fi 18835done 18836 done 18837IFS=$as_save_IFS 18838 18839fi 18840fi 18841DOXYGEN=$ac_cv_prog_DOXYGEN 18842if test -n "$DOXYGEN"; then 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18844$as_echo "$DOXYGEN" >&6; } 18845else 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18847$as_echo "no" >&6; } 18848fi 18849 18850 18851 test -n "$DOXYGEN" && break 18852done 18853 18854fi 18855 if test -n "$DOXYGEN"; then 18856 FLaC__HAS_DOXYGEN_TRUE= 18857 FLaC__HAS_DOXYGEN_FALSE='#' 18858else 18859 FLaC__HAS_DOXYGEN_TRUE='#' 18860 FLaC__HAS_DOXYGEN_FALSE= 18861fi 18862 18863 18864# Check whether --enable-local-xmms-plugin was given. 18865if test "${enable_local_xmms_plugin+set}" = set; then : 18866 enableval=$enable_local_xmms_plugin; case "${enableval}" in 18867 yes) install_xmms_plugin_locally=true ;; 18868 no) install_xmms_plugin_locally=false ;; 18869 *) as_fn_error $? "bad value ${enableval} for --enable-local-xmms-plugin" "$LINENO" 5 ;; 18870esac 18871else 18872 install_xmms_plugin_locally=false 18873fi 18874 18875 if test "x$install_xmms_plugin_locally" = xtrue; then 18876 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE= 18877 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#' 18878else 18879 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#' 18880 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE= 18881fi 18882 18883 18884# Check whether --enable-xmms-plugin was given. 18885if test "${enable_xmms_plugin+set}" = set; then : 18886 enableval=$enable_xmms_plugin; case "${enableval}" in 18887 yes) enable_xmms_plugin=true ;; 18888 no) enable_xmms_plugin=false ;; 18889 *) as_fn_error $? "bad value ${enableval} for --enable-xmms-plugin" "$LINENO" 5 ;; 18890esac 18891else 18892 enable_xmms_plugin=true 18893fi 18894 18895if test "x$enable_xmms_plugin" != xfalse ; then 18896 18897 18898# Check whether --with-xmms-prefix was given. 18899if test "${with_xmms_prefix+set}" = set; then : 18900 withval=$with_xmms_prefix; xmms_config_prefix="$withval" 18901else 18902 xmms_config_prefix="" 18903fi 18904 18905 18906# Check whether --with-xmms-exec-prefix was given. 18907if test "${with_xmms_exec_prefix+set}" = set; then : 18908 withval=$with_xmms_exec_prefix; xmms_config_exec_prefix="$withval" 18909else 18910 xmms_config_exec_prefix="" 18911fi 18912 18913 18914if test x$xmms_config_exec_prefix != x; then 18915 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" 18916 if test x${XMMS_CONFIG+set} != xset; then 18917 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config 18918 fi 18919fi 18920 18921if test x$xmms_config_prefix != x; then 18922 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" 18923 if test x${XMMS_CONFIG+set} != xset; then 18924 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config 18925 fi 18926fi 18927 18928# Extract the first word of "xmms-config", so it can be a program name with args. 18929set dummy xmms-config; ac_word=$2 18930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18931$as_echo_n "checking for $ac_word... " >&6; } 18932if ${ac_cv_path_XMMS_CONFIG+:} false; then : 18933 $as_echo_n "(cached) " >&6 18934else 18935 case $XMMS_CONFIG in 18936 [\\/]* | ?:[\\/]*) 18937 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. 18938 ;; 18939 *) 18940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18941for as_dir in $PATH 18942do 18943 IFS=$as_save_IFS 18944 test -z "$as_dir" && as_dir=. 18945 for ac_exec_ext in '' $ac_executable_extensions; do 18946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18947 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18949 break 2 18950 fi 18951done 18952 done 18953IFS=$as_save_IFS 18954 18955 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" 18956 ;; 18957esac 18958fi 18959XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG 18960if test -n "$XMMS_CONFIG"; then 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMMS_CONFIG" >&5 18962$as_echo "$XMMS_CONFIG" >&6; } 18963else 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18965$as_echo "no" >&6; } 18966fi 18967 18968 18969min_xmms_version=0.9.5.1 18970 18971if test "$XMMS_CONFIG" = "no"; then 18972 no_xmms=yes 18973else 18974 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` 18975 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` 18976 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` 18977 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` 18978 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` 18979 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ 18980 --visualization-plugin-dir` 18981 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` 18982 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` 18983 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` 18984 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` 18985 18986 18987 18988# Determine which version number is greater. Prints 2 to stdout if 18989# the second number is greater, 1 if the first number is greater, 18990# 0 if the numbers are equal. 18991 18992# Written 15 December 1999 by Ben Gertzfield <che@debian.org> 18993# Revised 15 December 1999 by Jim Monty <monty@primenet.com> 18994 18995 for ac_prog in gawk mawk nawk awk 18996do 18997 # Extract the first word of "$ac_prog", so it can be a program name with args. 18998set dummy $ac_prog; ac_word=$2 18999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19000$as_echo_n "checking for $ac_word... " >&6; } 19001if ${ac_cv_prog_AWK+:} false; then : 19002 $as_echo_n "(cached) " >&6 19003else 19004 if test -n "$AWK"; then 19005 ac_cv_prog_AWK="$AWK" # Let the user override the test. 19006else 19007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19008for as_dir in $PATH 19009do 19010 IFS=$as_save_IFS 19011 test -z "$as_dir" && as_dir=. 19012 for ac_exec_ext in '' $ac_executable_extensions; do 19013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19014 ac_cv_prog_AWK="$ac_prog" 19015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19016 break 2 19017 fi 19018done 19019 done 19020IFS=$as_save_IFS 19021 19022fi 19023fi 19024AWK=$ac_cv_prog_AWK 19025if test -n "$AWK"; then 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 19027$as_echo "$AWK" >&6; } 19028else 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19030$as_echo "no" >&6; } 19031fi 19032 19033 19034 test -n "$AWK" && break 19035done 19036 19037 xmms_got_version=` $AWK ' \ 19038BEGIN { \ 19039 print vercmp(ARGV[1], ARGV[2]); \ 19040} \ 19041 \ 19042function vercmp(ver1, ver2, ver1arr, ver2arr, \ 19043 ver1len, ver2len, \ 19044 ver1int, ver2int, len, i, p) { \ 19045 \ 19046 ver1len = split(ver1, ver1arr, /\./); \ 19047 ver2len = split(ver2, ver2arr, /\./); \ 19048 \ 19049 len = ver1len > ver2len ? ver1len : ver2len; \ 19050 \ 19051 for (i = 1; i <= len; i++) { \ 19052 p = 1000 ^ (len - i); \ 19053 ver1int += ver1arr[i] * p; \ 19054 ver2int += ver2arr[i] * p; \ 19055 } \ 19056 \ 19057 if (ver1int < ver2int) \ 19058 return 2; \ 19059 else if (ver1int > ver2int) \ 19060 return 1; \ 19061 else \ 19062 return 0; \ 19063}' $XMMS_VERSION $min_xmms_version` 19064 19065 if test $xmms_got_version -eq 2; then # failure 19066 no_xmms=version 19067 else # success! 19068 : 19069 fi 19070 19071fi 19072 19073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS - version >= $min_xmms_version" >&5 19074$as_echo_n "checking for XMMS - version >= $min_xmms_version... " >&6; } 19075 19076if test "x$no_xmms" = x; then 19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19078$as_echo "yes" >&6; } 19079 : 19080else 19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19082$as_echo "no" >&6; } 19083 19084 if test "$XMMS_CONFIG" = "no" ; then 19085 echo "*** The xmms-config script installed by XMMS could not be found." 19086 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" 19087 echo "*** your path, or set the XMMS_CONFIG environment variable to the" 19088 echo "*** full path to xmms-config." 19089 else 19090 if test "$no_xmms" = "version"; then 19091 echo "*** An old version of XMMS, $XMMS_VERSION, was found." 19092 echo "*** You need a version of XMMS newer than $min_xmms_version." 19093 echo "*** The latest version of XMMS is always available from" 19094 echo "*** http://www.xmms.org/" 19095 echo "***" 19096 19097 echo "*** If you have already installed a sufficiently new version, this error" 19098 echo "*** probably means that the wrong copy of the xmms-config shell script is" 19099 echo "*** being found. The easiest way to fix this is to remove the old version" 19100 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" 19101 echo "*** correct copy of xmms-config. (In this case, you will have to" 19102 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" 19103 echo "*** so that the correct libraries are found at run-time)" 19104 fi 19105 fi 19106 XMMS_CFLAGS="" 19107 XMMS_LIBS="" 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5 19109$as_echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;} 19110fi 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122fi 19123 if test -n "$XMMS_INPUT_PLUGIN_DIR"; then 19124 FLaC__HAS_XMMS_TRUE= 19125 FLaC__HAS_XMMS_FALSE='#' 19126else 19127 FLaC__HAS_XMMS_TRUE='#' 19128 FLaC__HAS_XMMS_FALSE= 19129fi 19130 19131 19132# Check whether --enable-cpplibs was given. 19133if test "${enable_cpplibs+set}" = set; then : 19134 enableval=$enable_cpplibs; case "${enableval}" in 19135 yes) disable_cpplibs=false ;; 19136 no) disable_cpplibs=true ;; 19137 *) as_fn_error $? "bad value ${enableval} for --enable-cpplibs" "$LINENO" 5 ;; 19138esac 19139else 19140 disable_cpplibs=false 19141fi 19142 19143 if test "x$disable_cpplibs" != xtrue; then 19144 FLaC__WITH_CPPLIBS_TRUE= 19145 FLaC__WITH_CPPLIBS_FALSE='#' 19146else 19147 FLaC__WITH_CPPLIBS_TRUE='#' 19148 FLaC__WITH_CPPLIBS_FALSE= 19149fi 19150 19151 19152# Check whether --enable-ogg was given. 19153if test "${enable_ogg+set}" = set; then : 19154 enableval=$enable_ogg; want_ogg=$enableval 19155else 19156 want_ogg=yes 19157fi 19158 19159 19160if test "x$want_ogg" != "xno"; then 19161 19162# Check whether --with-ogg was given. 19163if test "${with_ogg+set}" = set; then : 19164 withval=$with_ogg; ogg_prefix="$withval" 19165else 19166 ogg_prefix="" 19167fi 19168 19169 19170# Check whether --with-ogg-libraries was given. 19171if test "${with_ogg_libraries+set}" = set; then : 19172 withval=$with_ogg_libraries; ogg_libraries="$withval" 19173else 19174 ogg_libraries="" 19175fi 19176 19177 19178# Check whether --with-ogg-includes was given. 19179if test "${with_ogg_includes+set}" = set; then : 19180 withval=$with_ogg_includes; ogg_includes="$withval" 19181else 19182 ogg_includes="" 19183fi 19184 19185# Check whether --enable-oggtest was given. 19186if test "${enable_oggtest+set}" = set; then : 19187 enableval=$enable_oggtest; 19188else 19189 enable_oggtest=yes 19190fi 19191 19192 19193 if test "x$ogg_libraries" != "x" ; then 19194 OGG_LIBS="-L$ogg_libraries" 19195 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 19196 OGG_LIBS="" 19197 elif test "x$ogg_prefix" != "x" ; then 19198 OGG_LIBS="-L$ogg_prefix/lib" 19199 elif test "x$prefix" != "xNONE" ; then 19200 OGG_LIBS="-L$prefix/lib" 19201 fi 19202 19203 if test "x$ogg_prefix" != "xno" ; then 19204 OGG_LIBS="$OGG_LIBS -logg" 19205 fi 19206 19207 if test "x$ogg_includes" != "x" ; then 19208 OGG_CFLAGS="-I$ogg_includes" 19209 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 19210 OGG_CFLAGS="" 19211 elif test "x$ogg_prefix" != "x" ; then 19212 OGG_CFLAGS="-I$ogg_prefix/include" 19213 elif test "x$prefix" != "xNONE"; then 19214 OGG_CFLAGS="-I$prefix/include" 19215 fi 19216 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5 19218$as_echo_n "checking for Ogg... " >&6; } 19219 if test "x$ogg_prefix" = "xno" ; then 19220 no_ogg="disabled" 19221 enable_oggtest="no" 19222 else 19223 no_ogg="" 19224 fi 19225 19226 19227 if test "x$enable_oggtest" = "xyes" ; then 19228 ac_save_CFLAGS="$CFLAGS" 19229 ac_save_LIBS="$LIBS" 19230 CFLAGS="$CFLAGS $OGG_CFLAGS" 19231 LIBS="$LIBS $OGG_LIBS" 19232 rm -f conf.oggtest 19233 if test "$cross_compiling" = yes; then : 19234 echo $ac_n "cross compiling; assumed OK... $ac_c" 19235else 19236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19237/* end confdefs.h. */ 19238 19239#include <stdio.h> 19240#include <stdlib.h> 19241#include <string.h> 19242#include <ogg/ogg.h> 19243 19244int main () 19245{ 19246 system("touch conf.oggtest"); 19247 return 0; 19248} 19249 19250 19251_ACEOF 19252if ac_fn_c_try_run "$LINENO"; then : 19253 19254else 19255 no_ogg=yes 19256fi 19257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19258 conftest.$ac_objext conftest.beam conftest.$ac_ext 19259fi 19260 19261 CFLAGS="$ac_save_CFLAGS" 19262 LIBS="$ac_save_LIBS" 19263 fi 19264 19265 if test "x$no_ogg" = "xdisabled" ; then 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19267$as_echo "no" >&6; } 19268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5 19269$as_echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;} 19270 elif test "x$no_ogg" = "x" ; then 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19272$as_echo "yes" >&6; } 19273 have_ogg=yes 19274 else 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19276$as_echo "no" >&6; } 19277 if test -f conf.oggtest ; then 19278 : 19279 else 19280 echo "*** Could not run Ogg test program, checking why..." 19281 CFLAGS="$CFLAGS $OGG_CFLAGS" 19282 LIBS="$LIBS $OGG_LIBS" 19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19284/* end confdefs.h. */ 19285 19286#include <stdio.h> 19287#include <ogg/ogg.h> 19288 19289int 19290main () 19291{ 19292 return 0; 19293 ; 19294 return 0; 19295} 19296_ACEOF 19297if ac_fn_c_try_link "$LINENO"; then : 19298 echo "*** The test program compiled, but did not run. This usually means" 19299 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 19300 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 19301 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 19302 echo "*** to the installed location Also, make sure you have run ldconfig if that" 19303 echo "*** is required on your system" 19304 echo "***" 19305 echo "*** If you have an old version installed, it is best to remove it, although" 19306 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 19307else 19308 echo "*** The test program failed to compile or link. See the file config.log for the" 19309 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 19310 echo "*** or that you have moved Ogg since it was installed." 19311fi 19312rm -f core conftest.err conftest.$ac_objext \ 19313 conftest$ac_exeext conftest.$ac_ext 19314 CFLAGS="$ac_save_CFLAGS" 19315 LIBS="$ac_save_LIBS" 19316 fi 19317 OGG_CFLAGS="" 19318 OGG_LIBS="" 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5 19320$as_echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;} 19321 fi 19322 19323 19324 rm -f conf.oggtest 19325 19326fi 19327 19328FLAC__HAS_OGG=0 19329 if test "x$have_ogg" = xyes; then 19330 FLaC__HAS_OGG_TRUE= 19331 FLaC__HAS_OGG_FALSE='#' 19332else 19333 FLaC__HAS_OGG_TRUE='#' 19334 FLaC__HAS_OGG_FALSE= 19335fi 19336 19337if test "x$have_ogg" = xyes ; then 19338 FLAC__HAS_OGG=1 19339 OGG_PACKAGE="ogg" 19340else 19341 have_ogg=no 19342fi 19343 19344cat >>confdefs.h <<_ACEOF 19345#define FLAC__HAS_OGG $FLAC__HAS_OGG 19346_ACEOF 19347 19348 19349 19350 19351 19352 if test "X$prefix" = "XNONE"; then 19353 acl_final_prefix="$ac_default_prefix" 19354 else 19355 acl_final_prefix="$prefix" 19356 fi 19357 if test "X$exec_prefix" = "XNONE"; then 19358 acl_final_exec_prefix='${prefix}' 19359 else 19360 acl_final_exec_prefix="$exec_prefix" 19361 fi 19362 acl_save_prefix="$prefix" 19363 prefix="$acl_final_prefix" 19364 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 19365 prefix="$acl_save_prefix" 19366 19367 19368 19369# Check whether --with-gnu-ld was given. 19370if test "${with_gnu_ld+set}" = set; then : 19371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19372else 19373 with_gnu_ld=no 19374fi 19375 19376# Prepare PATH_SEPARATOR. 19377# The user is always right. 19378if test "${PATH_SEPARATOR+set}" != set; then 19379 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 19380 # contains only /bin. Note that ksh looks also at the FPATH variable, 19381 # so we have to set that as well for the test. 19382 PATH_SEPARATOR=: 19383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 19384 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 19385 || PATH_SEPARATOR=';' 19386 } 19387fi 19388 19389ac_prog=ld 19390if test "$GCC" = yes; then 19391 # Check if gcc -print-prog-name=ld gives a path. 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19393$as_echo_n "checking for ld used by $CC... " >&6; } 19394 case $host in 19395 *-*-mingw*) 19396 # gcc leaves a trailing carriage return which upsets mingw 19397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19398 *) 19399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19400 esac 19401 case $ac_prog in 19402 # Accept absolute paths. 19403 [\\/]* | ?:[\\/]*) 19404 re_direlt='/[^/][^/]*/\.\./' 19405 # Canonicalize the pathname of ld 19406 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 19407 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 19408 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 19409 done 19410 test -z "$LD" && LD="$ac_prog" 19411 ;; 19412 "") 19413 # If it fails, then pretend we aren't using GCC. 19414 ac_prog=ld 19415 ;; 19416 *) 19417 # If it is relative, then search for the first ld in PATH. 19418 with_gnu_ld=unknown 19419 ;; 19420 esac 19421elif test "$with_gnu_ld" = yes; then 19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19423$as_echo_n "checking for GNU ld... " >&6; } 19424else 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19426$as_echo_n "checking for non-GNU ld... " >&6; } 19427fi 19428if ${acl_cv_path_LD+:} false; then : 19429 $as_echo_n "(cached) " >&6 19430else 19431 if test -z "$LD"; then 19432 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19433 for ac_dir in $PATH; do 19434 IFS="$acl_save_ifs" 19435 test -z "$ac_dir" && ac_dir=. 19436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19437 acl_cv_path_LD="$ac_dir/$ac_prog" 19438 # Check to see if the program is GNU ld. I'd rather use --version, 19439 # but apparently some variants of GNU ld only accept -v. 19440 # Break only if it was the GNU/non-GNU ld that we prefer. 19441 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 19442 *GNU* | *'with BFD'*) 19443 test "$with_gnu_ld" != no && break 19444 ;; 19445 *) 19446 test "$with_gnu_ld" != yes && break 19447 ;; 19448 esac 19449 fi 19450 done 19451 IFS="$acl_save_ifs" 19452else 19453 acl_cv_path_LD="$LD" # Let the user override the test with a path. 19454fi 19455fi 19456 19457LD="$acl_cv_path_LD" 19458if test -n "$LD"; then 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19460$as_echo "$LD" >&6; } 19461else 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19463$as_echo "no" >&6; } 19464fi 19465test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19467$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19468if ${acl_cv_prog_gnu_ld+:} false; then : 19469 $as_echo_n "(cached) " >&6 19470else 19471 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19472case `$LD -v 2>&1 </dev/null` in 19473*GNU* | *'with BFD'*) 19474 acl_cv_prog_gnu_ld=yes 19475 ;; 19476*) 19477 acl_cv_prog_gnu_ld=no 19478 ;; 19479esac 19480fi 19481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 19482$as_echo "$acl_cv_prog_gnu_ld" >&6; } 19483with_gnu_ld=$acl_cv_prog_gnu_ld 19484 19485 19486 19487 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 19489$as_echo_n "checking for shared library run path origin... " >&6; } 19490if ${acl_cv_rpath+:} false; then : 19491 $as_echo_n "(cached) " >&6 19492else 19493 19494 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 19495 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 19496 . ./conftest.sh 19497 rm -f ./conftest.sh 19498 acl_cv_rpath=done 19499 19500fi 19501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 19502$as_echo "$acl_cv_rpath" >&6; } 19503 wl="$acl_cv_wl" 19504 acl_libext="$acl_cv_libext" 19505 acl_shlibext="$acl_cv_shlibext" 19506 acl_libname_spec="$acl_cv_libname_spec" 19507 acl_library_names_spec="$acl_cv_library_names_spec" 19508 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 19509 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 19510 acl_hardcode_direct="$acl_cv_hardcode_direct" 19511 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 19512 # Check whether --enable-rpath was given. 19513if test "${enable_rpath+set}" = set; then : 19514 enableval=$enable_rpath; : 19515else 19516 enable_rpath=yes 19517fi 19518 19519 19520 19521 19522 acl_libdirstem=lib 19523 acl_libdirstem2= 19524 case "$host_os" in 19525 solaris*) 19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 19527$as_echo_n "checking for 64-bit host... " >&6; } 19528if ${gl_cv_solaris_64bit+:} false; then : 19529 $as_echo_n "(cached) " >&6 19530else 19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19532/* end confdefs.h. */ 19533 19534#ifdef _LP64 19535sixtyfour bits 19536#endif 19537 19538_ACEOF 19539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19540 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 19541 gl_cv_solaris_64bit=yes 19542else 19543 gl_cv_solaris_64bit=no 19544fi 19545rm -f conftest* 19546 19547 19548fi 19549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 19550$as_echo "$gl_cv_solaris_64bit" >&6; } 19551 if test $gl_cv_solaris_64bit = yes; then 19552 acl_libdirstem=lib/64 19553 case "$host_cpu" in 19554 sparc*) acl_libdirstem2=lib/sparcv9 ;; 19555 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 19556 esac 19557 fi 19558 ;; 19559 *) 19560 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19561 if test -n "$searchpath"; then 19562 acl_save_IFS="${IFS= }"; IFS=":" 19563 for searchdir in $searchpath; do 19564 if test -d "$searchdir"; then 19565 case "$searchdir" in 19566 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19567 */../ | */.. ) 19568 # Better ignore directories of this form. They are misleading. 19569 ;; 19570 *) searchdir=`cd "$searchdir" && pwd` 19571 case "$searchdir" in 19572 */lib64 ) acl_libdirstem=lib64 ;; 19573 esac ;; 19574 esac 19575 fi 19576 done 19577 IFS="$acl_save_IFS" 19578 fi 19579 ;; 19580 esac 19581 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 use_additional=yes 19595 19596 acl_save_prefix="$prefix" 19597 prefix="$acl_final_prefix" 19598 acl_save_exec_prefix="$exec_prefix" 19599 exec_prefix="$acl_final_exec_prefix" 19600 19601 eval additional_includedir=\"$includedir\" 19602 eval additional_libdir=\"$libdir\" 19603 19604 exec_prefix="$acl_save_exec_prefix" 19605 prefix="$acl_save_prefix" 19606 19607 19608# Check whether --with-libiconv-prefix was given. 19609if test "${with_libiconv_prefix+set}" = set; then : 19610 withval=$with_libiconv_prefix; 19611 if test "X$withval" = "Xno"; then 19612 use_additional=no 19613 else 19614 if test "X$withval" = "X"; then 19615 19616 acl_save_prefix="$prefix" 19617 prefix="$acl_final_prefix" 19618 acl_save_exec_prefix="$exec_prefix" 19619 exec_prefix="$acl_final_exec_prefix" 19620 19621 eval additional_includedir=\"$includedir\" 19622 eval additional_libdir=\"$libdir\" 19623 19624 exec_prefix="$acl_save_exec_prefix" 19625 prefix="$acl_save_prefix" 19626 19627 else 19628 additional_includedir="$withval/include" 19629 additional_libdir="$withval/$acl_libdirstem" 19630 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 19631 && ! test -d "$withval/$acl_libdirstem"; then 19632 additional_libdir="$withval/$acl_libdirstem2" 19633 fi 19634 fi 19635 fi 19636 19637fi 19638 19639 LIBICONV= 19640 LTLIBICONV= 19641 INCICONV= 19642 LIBICONV_PREFIX= 19643 HAVE_LIBICONV= 19644 rpathdirs= 19645 ltrpathdirs= 19646 names_already_handled= 19647 names_next_round='iconv ' 19648 while test -n "$names_next_round"; do 19649 names_this_round="$names_next_round" 19650 names_next_round= 19651 for name in $names_this_round; do 19652 already_handled= 19653 for n in $names_already_handled; do 19654 if test "$n" = "$name"; then 19655 already_handled=yes 19656 break 19657 fi 19658 done 19659 if test -z "$already_handled"; then 19660 names_already_handled="$names_already_handled $name" 19661 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 19662 eval value=\"\$HAVE_LIB$uppername\" 19663 if test -n "$value"; then 19664 if test "$value" = yes; then 19665 eval value=\"\$LIB$uppername\" 19666 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 19667 eval value=\"\$LTLIB$uppername\" 19668 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 19669 else 19670 : 19671 fi 19672 else 19673 found_dir= 19674 found_la= 19675 found_so= 19676 found_a= 19677 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19678 if test -n "$acl_shlibext"; then 19679 shrext=".$acl_shlibext" # typically: shrext=.so 19680 else 19681 shrext= 19682 fi 19683 if test $use_additional = yes; then 19684 dir="$additional_libdir" 19685 if test -n "$acl_shlibext"; then 19686 if test -f "$dir/$libname$shrext"; then 19687 found_dir="$dir" 19688 found_so="$dir/$libname$shrext" 19689 else 19690 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19691 ver=`(cd "$dir" && \ 19692 for f in "$libname$shrext".*; do echo "$f"; done \ 19693 | sed -e "s,^$libname$shrext\\\\.,," \ 19694 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19695 | sed 1q ) 2>/dev/null` 19696 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19697 found_dir="$dir" 19698 found_so="$dir/$libname$shrext.$ver" 19699 fi 19700 else 19701 eval library_names=\"$acl_library_names_spec\" 19702 for f in $library_names; do 19703 if test -f "$dir/$f"; then 19704 found_dir="$dir" 19705 found_so="$dir/$f" 19706 break 19707 fi 19708 done 19709 fi 19710 fi 19711 fi 19712 if test "X$found_dir" = "X"; then 19713 if test -f "$dir/$libname.$acl_libext"; then 19714 found_dir="$dir" 19715 found_a="$dir/$libname.$acl_libext" 19716 fi 19717 fi 19718 if test "X$found_dir" != "X"; then 19719 if test -f "$dir/$libname.la"; then 19720 found_la="$dir/$libname.la" 19721 fi 19722 fi 19723 fi 19724 if test "X$found_dir" = "X"; then 19725 for x in $LDFLAGS $LTLIBICONV; do 19726 19727 acl_save_prefix="$prefix" 19728 prefix="$acl_final_prefix" 19729 acl_save_exec_prefix="$exec_prefix" 19730 exec_prefix="$acl_final_exec_prefix" 19731 eval x=\"$x\" 19732 exec_prefix="$acl_save_exec_prefix" 19733 prefix="$acl_save_prefix" 19734 19735 case "$x" in 19736 -L*) 19737 dir=`echo "X$x" | sed -e 's/^X-L//'` 19738 if test -n "$acl_shlibext"; then 19739 if test -f "$dir/$libname$shrext"; then 19740 found_dir="$dir" 19741 found_so="$dir/$libname$shrext" 19742 else 19743 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19744 ver=`(cd "$dir" && \ 19745 for f in "$libname$shrext".*; do echo "$f"; done \ 19746 | sed -e "s,^$libname$shrext\\\\.,," \ 19747 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19748 | sed 1q ) 2>/dev/null` 19749 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19750 found_dir="$dir" 19751 found_so="$dir/$libname$shrext.$ver" 19752 fi 19753 else 19754 eval library_names=\"$acl_library_names_spec\" 19755 for f in $library_names; do 19756 if test -f "$dir/$f"; then 19757 found_dir="$dir" 19758 found_so="$dir/$f" 19759 break 19760 fi 19761 done 19762 fi 19763 fi 19764 fi 19765 if test "X$found_dir" = "X"; then 19766 if test -f "$dir/$libname.$acl_libext"; then 19767 found_dir="$dir" 19768 found_a="$dir/$libname.$acl_libext" 19769 fi 19770 fi 19771 if test "X$found_dir" != "X"; then 19772 if test -f "$dir/$libname.la"; then 19773 found_la="$dir/$libname.la" 19774 fi 19775 fi 19776 ;; 19777 esac 19778 if test "X$found_dir" != "X"; then 19779 break 19780 fi 19781 done 19782 fi 19783 if test "X$found_dir" != "X"; then 19784 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 19785 if test "X$found_so" != "X"; then 19786 if test "$enable_rpath" = no \ 19787 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19788 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19790 else 19791 haveit= 19792 for x in $ltrpathdirs; do 19793 if test "X$x" = "X$found_dir"; then 19794 haveit=yes 19795 break 19796 fi 19797 done 19798 if test -z "$haveit"; then 19799 ltrpathdirs="$ltrpathdirs $found_dir" 19800 fi 19801 if test "$acl_hardcode_direct" = yes; then 19802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19803 else 19804 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19806 haveit= 19807 for x in $rpathdirs; do 19808 if test "X$x" = "X$found_dir"; then 19809 haveit=yes 19810 break 19811 fi 19812 done 19813 if test -z "$haveit"; then 19814 rpathdirs="$rpathdirs $found_dir" 19815 fi 19816 else 19817 haveit= 19818 for x in $LDFLAGS $LIBICONV; do 19819 19820 acl_save_prefix="$prefix" 19821 prefix="$acl_final_prefix" 19822 acl_save_exec_prefix="$exec_prefix" 19823 exec_prefix="$acl_final_exec_prefix" 19824 eval x=\"$x\" 19825 exec_prefix="$acl_save_exec_prefix" 19826 prefix="$acl_save_prefix" 19827 19828 if test "X$x" = "X-L$found_dir"; then 19829 haveit=yes 19830 break 19831 fi 19832 done 19833 if test -z "$haveit"; then 19834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 19835 fi 19836 if test "$acl_hardcode_minus_L" != no; then 19837 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19838 else 19839 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19840 fi 19841 fi 19842 fi 19843 fi 19844 else 19845 if test "X$found_a" != "X"; then 19846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 19847 else 19848 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 19849 fi 19850 fi 19851 additional_includedir= 19852 case "$found_dir" in 19853 */$acl_libdirstem | */$acl_libdirstem/) 19854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19855 if test "$name" = 'iconv'; then 19856 LIBICONV_PREFIX="$basedir" 19857 fi 19858 additional_includedir="$basedir/include" 19859 ;; 19860 */$acl_libdirstem2 | */$acl_libdirstem2/) 19861 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19862 if test "$name" = 'iconv'; then 19863 LIBICONV_PREFIX="$basedir" 19864 fi 19865 additional_includedir="$basedir/include" 19866 ;; 19867 esac 19868 if test "X$additional_includedir" != "X"; then 19869 if test "X$additional_includedir" != "X/usr/include"; then 19870 haveit= 19871 if test "X$additional_includedir" = "X/usr/local/include"; then 19872 if test -n "$GCC"; then 19873 case $host_os in 19874 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19875 esac 19876 fi 19877 fi 19878 if test -z "$haveit"; then 19879 for x in $CPPFLAGS $INCICONV; do 19880 19881 acl_save_prefix="$prefix" 19882 prefix="$acl_final_prefix" 19883 acl_save_exec_prefix="$exec_prefix" 19884 exec_prefix="$acl_final_exec_prefix" 19885 eval x=\"$x\" 19886 exec_prefix="$acl_save_exec_prefix" 19887 prefix="$acl_save_prefix" 19888 19889 if test "X$x" = "X-I$additional_includedir"; then 19890 haveit=yes 19891 break 19892 fi 19893 done 19894 if test -z "$haveit"; then 19895 if test -d "$additional_includedir"; then 19896 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 19897 fi 19898 fi 19899 fi 19900 fi 19901 fi 19902 if test -n "$found_la"; then 19903 save_libdir="$libdir" 19904 case "$found_la" in 19905 */* | *\\*) . "$found_la" ;; 19906 *) . "./$found_la" ;; 19907 esac 19908 libdir="$save_libdir" 19909 for dep in $dependency_libs; do 19910 case "$dep" in 19911 -L*) 19912 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19913 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 19914 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 19915 haveit= 19916 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 19917 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 19918 if test -n "$GCC"; then 19919 case $host_os in 19920 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19921 esac 19922 fi 19923 fi 19924 if test -z "$haveit"; then 19925 haveit= 19926 for x in $LDFLAGS $LIBICONV; do 19927 19928 acl_save_prefix="$prefix" 19929 prefix="$acl_final_prefix" 19930 acl_save_exec_prefix="$exec_prefix" 19931 exec_prefix="$acl_final_exec_prefix" 19932 eval x=\"$x\" 19933 exec_prefix="$acl_save_exec_prefix" 19934 prefix="$acl_save_prefix" 19935 19936 if test "X$x" = "X-L$additional_libdir"; then 19937 haveit=yes 19938 break 19939 fi 19940 done 19941 if test -z "$haveit"; then 19942 if test -d "$additional_libdir"; then 19943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 19944 fi 19945 fi 19946 haveit= 19947 for x in $LDFLAGS $LTLIBICONV; do 19948 19949 acl_save_prefix="$prefix" 19950 prefix="$acl_final_prefix" 19951 acl_save_exec_prefix="$exec_prefix" 19952 exec_prefix="$acl_final_exec_prefix" 19953 eval x=\"$x\" 19954 exec_prefix="$acl_save_exec_prefix" 19955 prefix="$acl_save_prefix" 19956 19957 if test "X$x" = "X-L$additional_libdir"; then 19958 haveit=yes 19959 break 19960 fi 19961 done 19962 if test -z "$haveit"; then 19963 if test -d "$additional_libdir"; then 19964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 19965 fi 19966 fi 19967 fi 19968 fi 19969 ;; 19970 -R*) 19971 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19972 if test "$enable_rpath" != no; then 19973 haveit= 19974 for x in $rpathdirs; do 19975 if test "X$x" = "X$dir"; then 19976 haveit=yes 19977 break 19978 fi 19979 done 19980 if test -z "$haveit"; then 19981 rpathdirs="$rpathdirs $dir" 19982 fi 19983 haveit= 19984 for x in $ltrpathdirs; do 19985 if test "X$x" = "X$dir"; then 19986 haveit=yes 19987 break 19988 fi 19989 done 19990 if test -z "$haveit"; then 19991 ltrpathdirs="$ltrpathdirs $dir" 19992 fi 19993 fi 19994 ;; 19995 -l*) 19996 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19997 ;; 19998 *.la) 19999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 20000 ;; 20001 *) 20002 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 20003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 20004 ;; 20005 esac 20006 done 20007 fi 20008 else 20009 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 20010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 20011 fi 20012 fi 20013 fi 20014 done 20015 done 20016 if test "X$rpathdirs" != "X"; then 20017 if test -n "$acl_hardcode_libdir_separator"; then 20018 alldirs= 20019 for found_dir in $rpathdirs; do 20020 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 20021 done 20022 acl_save_libdir="$libdir" 20023 libdir="$alldirs" 20024 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20025 libdir="$acl_save_libdir" 20026 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 20027 else 20028 for found_dir in $rpathdirs; do 20029 acl_save_libdir="$libdir" 20030 libdir="$found_dir" 20031 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20032 libdir="$acl_save_libdir" 20033 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 20034 done 20035 fi 20036 fi 20037 if test "X$ltrpathdirs" != "X"; then 20038 for found_dir in $ltrpathdirs; do 20039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 20040 done 20041 fi 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 am_save_CPPFLAGS="$CPPFLAGS" 20055 20056 for element in $INCICONV; do 20057 haveit= 20058 for x in $CPPFLAGS; do 20059 20060 acl_save_prefix="$prefix" 20061 prefix="$acl_final_prefix" 20062 acl_save_exec_prefix="$exec_prefix" 20063 exec_prefix="$acl_final_exec_prefix" 20064 eval x=\"$x\" 20065 exec_prefix="$acl_save_exec_prefix" 20066 prefix="$acl_save_prefix" 20067 20068 if test "X$x" = "X$element"; then 20069 haveit=yes 20070 break 20071 fi 20072 done 20073 if test -z "$haveit"; then 20074 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20075 fi 20076 done 20077 20078 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 20080$as_echo_n "checking for iconv... " >&6; } 20081if ${am_cv_func_iconv+:} false; then : 20082 $as_echo_n "(cached) " >&6 20083else 20084 20085 am_cv_func_iconv="no, consider installing GNU libiconv" 20086 am_cv_lib_iconv=no 20087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20088/* end confdefs.h. */ 20089 20090#include <stdlib.h> 20091#include <iconv.h> 20092 20093int 20094main () 20095{ 20096iconv_t cd = iconv_open("",""); 20097 iconv(cd,NULL,NULL,NULL,NULL); 20098 iconv_close(cd); 20099 ; 20100 return 0; 20101} 20102_ACEOF 20103if ac_fn_c_try_link "$LINENO"; then : 20104 am_cv_func_iconv=yes 20105fi 20106rm -f core conftest.err conftest.$ac_objext \ 20107 conftest$ac_exeext conftest.$ac_ext 20108 if test "$am_cv_func_iconv" != yes; then 20109 am_save_LIBS="$LIBS" 20110 LIBS="$LIBS $LIBICONV" 20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20112/* end confdefs.h. */ 20113 20114#include <stdlib.h> 20115#include <iconv.h> 20116 20117int 20118main () 20119{ 20120iconv_t cd = iconv_open("",""); 20121 iconv(cd,NULL,NULL,NULL,NULL); 20122 iconv_close(cd); 20123 ; 20124 return 0; 20125} 20126_ACEOF 20127if ac_fn_c_try_link "$LINENO"; then : 20128 am_cv_lib_iconv=yes 20129 am_cv_func_iconv=yes 20130fi 20131rm -f core conftest.err conftest.$ac_objext \ 20132 conftest$ac_exeext conftest.$ac_ext 20133 LIBS="$am_save_LIBS" 20134 fi 20135 20136fi 20137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 20138$as_echo "$am_cv_func_iconv" >&6; } 20139 if test "$am_cv_func_iconv" = yes; then 20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 20141$as_echo_n "checking for working iconv... " >&6; } 20142if ${am_cv_func_iconv_works+:} false; then : 20143 $as_echo_n "(cached) " >&6 20144else 20145 20146 am_save_LIBS="$LIBS" 20147 if test $am_cv_lib_iconv = yes; then 20148 LIBS="$LIBS $LIBICONV" 20149 fi 20150 if test "$cross_compiling" = yes; then : 20151 20152 case "$host_os" in 20153 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 20154 *) am_cv_func_iconv_works="guessing yes" ;; 20155 esac 20156 20157else 20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20159/* end confdefs.h. */ 20160 20161#include <iconv.h> 20162#include <string.h> 20163int main () 20164{ 20165 int result = 0; 20166 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 20167 returns. */ 20168 { 20169 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 20170 if (cd_utf8_to_88591 != (iconv_t)(-1)) 20171 { 20172 static const char input[] = "\342\202\254"; /* EURO SIGN */ 20173 char buf[10]; 20174 const char *inptr = input; 20175 size_t inbytesleft = strlen (input); 20176 char *outptr = buf; 20177 size_t outbytesleft = sizeof (buf); 20178 size_t res = iconv (cd_utf8_to_88591, 20179 (char **) &inptr, &inbytesleft, 20180 &outptr, &outbytesleft); 20181 if (res == 0) 20182 result |= 1; 20183 iconv_close (cd_utf8_to_88591); 20184 } 20185 } 20186 /* Test against Solaris 10 bug: Failures are not distinguishable from 20187 successful returns. */ 20188 { 20189 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 20190 if (cd_ascii_to_88591 != (iconv_t)(-1)) 20191 { 20192 static const char input[] = "\263"; 20193 char buf[10]; 20194 const char *inptr = input; 20195 size_t inbytesleft = strlen (input); 20196 char *outptr = buf; 20197 size_t outbytesleft = sizeof (buf); 20198 size_t res = iconv (cd_ascii_to_88591, 20199 (char **) &inptr, &inbytesleft, 20200 &outptr, &outbytesleft); 20201 if (res == 0) 20202 result |= 2; 20203 iconv_close (cd_ascii_to_88591); 20204 } 20205 } 20206 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 20207 { 20208 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 20209 if (cd_88591_to_utf8 != (iconv_t)(-1)) 20210 { 20211 static const char input[] = "\304"; 20212 static char buf[2] = { (char)0xDE, (char)0xAD }; 20213 const char *inptr = input; 20214 size_t inbytesleft = 1; 20215 char *outptr = buf; 20216 size_t outbytesleft = 1; 20217 size_t res = iconv (cd_88591_to_utf8, 20218 (char **) &inptr, &inbytesleft, 20219 &outptr, &outbytesleft); 20220 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 20221 result |= 4; 20222 iconv_close (cd_88591_to_utf8); 20223 } 20224 } 20225#if 0 /* This bug could be worked around by the caller. */ 20226 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 20227 { 20228 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 20229 if (cd_88591_to_utf8 != (iconv_t)(-1)) 20230 { 20231 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 20232 char buf[50]; 20233 const char *inptr = input; 20234 size_t inbytesleft = strlen (input); 20235 char *outptr = buf; 20236 size_t outbytesleft = sizeof (buf); 20237 size_t res = iconv (cd_88591_to_utf8, 20238 (char **) &inptr, &inbytesleft, 20239 &outptr, &outbytesleft); 20240 if ((int)res > 0) 20241 result |= 8; 20242 iconv_close (cd_88591_to_utf8); 20243 } 20244 } 20245#endif 20246 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 20247 provided. */ 20248 if (/* Try standardized names. */ 20249 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 20250 /* Try IRIX, OSF/1 names. */ 20251 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 20252 /* Try AIX names. */ 20253 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 20254 /* Try HP-UX names. */ 20255 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 20256 result |= 16; 20257 return result; 20258} 20259_ACEOF 20260if ac_fn_c_try_run "$LINENO"; then : 20261 am_cv_func_iconv_works=yes 20262else 20263 am_cv_func_iconv_works=no 20264fi 20265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20266 conftest.$ac_objext conftest.beam conftest.$ac_ext 20267fi 20268 20269 LIBS="$am_save_LIBS" 20270 20271fi 20272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 20273$as_echo "$am_cv_func_iconv_works" >&6; } 20274 case "$am_cv_func_iconv_works" in 20275 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 20276 *) am_func_iconv=yes ;; 20277 esac 20278 else 20279 am_func_iconv=no am_cv_lib_iconv=no 20280 fi 20281 if test "$am_func_iconv" = yes; then 20282 20283$as_echo "#define HAVE_ICONV 1" >>confdefs.h 20284 20285 fi 20286 if test "$am_cv_lib_iconv" = yes; then 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 20288$as_echo_n "checking how to link with libiconv... " >&6; } 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 20290$as_echo "$LIBICONV" >&6; } 20291 else 20292 CPPFLAGS="$am_save_CPPFLAGS" 20293 LIBICONV= 20294 LTLIBICONV= 20295 fi 20296 20297 20298 20299 if test "$am_cv_func_iconv" = yes; then 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 20301$as_echo_n "checking for iconv declaration... " >&6; } 20302 if ${am_cv_proto_iconv+:} false; then : 20303 $as_echo_n "(cached) " >&6 20304else 20305 20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20307/* end confdefs.h. */ 20308 20309#include <stdlib.h> 20310#include <iconv.h> 20311extern 20312#ifdef __cplusplus 20313"C" 20314#endif 20315#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 20316size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 20317#else 20318size_t iconv(); 20319#endif 20320 20321int 20322main () 20323{ 20324 20325 ; 20326 return 0; 20327} 20328_ACEOF 20329if ac_fn_c_try_compile "$LINENO"; then : 20330 am_cv_proto_iconv_arg1="" 20331else 20332 am_cv_proto_iconv_arg1="const" 20333fi 20334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20335 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 20336fi 20337 20338 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 20340 $am_cv_proto_iconv" >&5 20341$as_echo " 20342 $am_cv_proto_iconv" >&6; } 20343 20344cat >>confdefs.h <<_ACEOF 20345#define ICONV_CONST $am_cv_proto_iconv_arg1 20346_ACEOF 20347 20348 20349 fi 20350 20351 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 20353$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 20354if ${am_cv_langinfo_codeset+:} false; then : 20355 $as_echo_n "(cached) " >&6 20356else 20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20358/* end confdefs.h. */ 20359#include <langinfo.h> 20360int 20361main () 20362{ 20363char* cs = nl_langinfo(CODESET); return !cs; 20364 ; 20365 return 0; 20366} 20367_ACEOF 20368if ac_fn_c_try_link "$LINENO"; then : 20369 am_cv_langinfo_codeset=yes 20370else 20371 am_cv_langinfo_codeset=no 20372fi 20373rm -f core conftest.err conftest.$ac_objext \ 20374 conftest$ac_exeext conftest.$ac_ext 20375 20376fi 20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 20378$as_echo "$am_cv_langinfo_codeset" >&6; } 20379 if test $am_cv_langinfo_codeset = yes; then 20380 20381$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 20382 20383 fi 20384 20385 20386for ac_prog in docbook-to-man docbook2man 20387do 20388 # Extract the first word of "$ac_prog", so it can be a program name with args. 20389set dummy $ac_prog; ac_word=$2 20390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20391$as_echo_n "checking for $ac_word... " >&6; } 20392if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then : 20393 $as_echo_n "(cached) " >&6 20394else 20395 if test -n "$DOCBOOK_TO_MAN"; then 20396 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test. 20397else 20398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20399for as_dir in $PATH 20400do 20401 IFS=$as_save_IFS 20402 test -z "$as_dir" && as_dir=. 20403 for ac_exec_ext in '' $ac_executable_extensions; do 20404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20405 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog" 20406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20407 break 2 20408 fi 20409done 20410 done 20411IFS=$as_save_IFS 20412 20413fi 20414fi 20415DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN 20416if test -n "$DOCBOOK_TO_MAN"; then 20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5 20418$as_echo "$DOCBOOK_TO_MAN" >&6; } 20419else 20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20421$as_echo "no" >&6; } 20422fi 20423 20424 20425 test -n "$DOCBOOK_TO_MAN" && break 20426done 20427 20428 if test -n "$DOCBOOK_TO_MAN"; then 20429 FLaC__HAS_DOCBOOK_TO_MAN_TRUE= 20430 FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#' 20431else 20432 FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#' 20433 FLaC__HAS_DOCBOOK_TO_MAN_FALSE= 20434fi 20435 20436if test -n "$DOCBOOK_TO_MAN" ; then 20437$as_echo "#define FLAC__HAS_DOCBOOK_TO_MAN 1" >>confdefs.h 20438 20439 20440fi 20441 20442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 20443$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 20444if ${ac_cv_lib_rt_clock_gettime+:} false; then : 20445 $as_echo_n "(cached) " >&6 20446else 20447 ac_check_lib_save_LIBS=$LIBS 20448LIBS="-lrt $LIBS" 20449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20450/* end confdefs.h. */ 20451 20452/* Override any GCC internal prototype to avoid an error. 20453 Use char because int might match the return type of a GCC 20454 builtin and then its argument prototype would still apply. */ 20455#ifdef __cplusplus 20456extern "C" 20457#endif 20458char clock_gettime (); 20459int 20460main () 20461{ 20462return clock_gettime (); 20463 ; 20464 return 0; 20465} 20466_ACEOF 20467if ac_fn_c_try_link "$LINENO"; then : 20468 ac_cv_lib_rt_clock_gettime=yes 20469else 20470 ac_cv_lib_rt_clock_gettime=no 20471fi 20472rm -f core conftest.err conftest.$ac_objext \ 20473 conftest$ac_exeext conftest.$ac_ext 20474LIBS=$ac_check_lib_save_LIBS 20475fi 20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 20477$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 20478if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 20479 have_clock_gettime=yes 20480fi 20481 20482if test x$have_clock_gettime = xyes; then 20483 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 20484 20485 20486fi 20487 20488# only matters for x86 20489for ac_prog in nasm 20490do 20491 # Extract the first word of "$ac_prog", so it can be a program name with args. 20492set dummy $ac_prog; ac_word=$2 20493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20494$as_echo_n "checking for $ac_word... " >&6; } 20495if ${ac_cv_prog_NASM+:} false; then : 20496 $as_echo_n "(cached) " >&6 20497else 20498 if test -n "$NASM"; then 20499 ac_cv_prog_NASM="$NASM" # Let the user override the test. 20500else 20501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20502for as_dir in $PATH 20503do 20504 IFS=$as_save_IFS 20505 test -z "$as_dir" && as_dir=. 20506 for ac_exec_ext in '' $ac_executable_extensions; do 20507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20508 ac_cv_prog_NASM="$ac_prog" 20509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20510 break 2 20511 fi 20512done 20513 done 20514IFS=$as_save_IFS 20515 20516fi 20517fi 20518NASM=$ac_cv_prog_NASM 20519if test -n "$NASM"; then 20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5 20521$as_echo "$NASM" >&6; } 20522else 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20524$as_echo "no" >&6; } 20525fi 20526 20527 20528 test -n "$NASM" && break 20529done 20530 20531 if test -n "$NASM"; then 20532 FLaC__HAS_NASM_TRUE= 20533 FLaC__HAS_NASM_FALSE='#' 20534else 20535 FLaC__HAS_NASM_TRUE='#' 20536 FLaC__HAS_NASM_FALSE= 20537fi 20538 20539if test -n "$NASM" ; then 20540$as_echo "#define FLAC__HAS_NASM 1" >>confdefs.h 20541 20542 20543fi 20544 20545if test "x$debug" = xtrue; then 20546 CPPFLAGS="-DDEBUG $CPPFLAGS" 20547 CFLAGS="-g $CFLAGS" 20548else 20549 CPPFLAGS="-DNDEBUG $CPPFLAGS" 20550 CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//') 20551 CFLAGS="-O3 -funroll-loops $CFLAGS" 20552fi 20553 20554 20555if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then 20556 20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5 20558$as_echo_n "checking for version of $CC... " >&6; } 20559 GCC_VERSION=`$CC -dumpversion` 20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5 20561$as_echo "$GCC_VERSION" >&6; } 20562 20563 GCC_MAJOR_VERSION=`echo $GCC_VERSION | cut -d. -f 1` 20564 GCC_MINOR_VERSION=`echo $GCC_VERSION | cut -d. -f 2` 20565 fi 20566 20567 20568 20569 20570 20571 20572 20573if test x$ac_cv_c_compiler_gnu = xyes ; then 20574 CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion 20575 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations 20576 20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5 20578$as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; } 20579 ac_add_cflags__old_cflags="$CFLAGS" 20580 CFLAGS="-Wdeclaration-after-statement" 20581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20582/* end confdefs.h. */ 20583 20584 #include <stdio.h> 20585 20586int 20587main () 20588{ 20589puts("Hello, World!"); return 0; 20590 ; 20591 return 0; 20592} 20593_ACEOF 20594if ac_fn_c_try_link "$LINENO"; then : 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20596$as_echo "yes" >&6; } 20597 CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement" 20598else 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20600$as_echo "no" >&6; } 20601 CFLAGS="$ac_add_cflags__old_cflags" 20602 20603fi 20604rm -f core conftest.err conftest.$ac_objext \ 20605 conftest$ac_exeext conftest.$ac_ext 20606 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -D_FORTIFY_SOURCE=2" >&5 20608$as_echo_n "checking if $CC accepts -D_FORTIFY_SOURCE=2... " >&6; } 20609 ac_add_cflags__old_cflags="$CFLAGS" 20610 CFLAGS="-D_FORTIFY_SOURCE=2" 20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20612/* end confdefs.h. */ 20613 20614 #include <stdio.h> 20615 20616int 20617main () 20618{ 20619puts("Hello, World!"); return 0; 20620 ; 20621 return 0; 20622} 20623_ACEOF 20624if ac_fn_c_try_link "$LINENO"; then : 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20626$as_echo "yes" >&6; } 20627 CFLAGS="$ac_add_cflags__old_cflags -D_FORTIFY_SOURCE=2" 20628else 20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20630$as_echo "no" >&6; } 20631 CFLAGS="$ac_add_cflags__old_cflags" 20632 20633fi 20634rm -f core conftest.err conftest.$ac_objext \ 20635 conftest$ac_exeext conftest.$ac_ext 20636 20637 20638 ac_ext=cpp 20639ac_cpp='$CXXCPP $CPPFLAGS' 20640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20643 20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Weffc++" >&5 20645$as_echo_n "checking if $CXX accepts -Weffc++... " >&6; } 20646 20647 ac_add_cxxflags__old_cxxflags="$CXXFLAGS" 20648 CXXFLAGS="-Weffc++" 20649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20650/* end confdefs.h. */ 20651 20652 #include <cstdio> 20653 20654int 20655main () 20656{ 20657puts("Hello, World!"); return 0; 20658 ; 20659 return 0; 20660} 20661_ACEOF 20662if ac_fn_cxx_try_link "$LINENO"; then : 20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20664$as_echo "yes" >&6; } 20665 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Weffc++" 20666else 20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20668$as_echo "no" >&6; } 20669 CXXFLAGS="$ac_add_cxxflags__old_cxxflags" 20670 20671fi 20672rm -f core conftest.err conftest.$ac_objext \ 20673 conftest$ac_exeext conftest.$ac_ext 20674 20675 ac_ext=c 20676ac_cpp='$CPP $CPPFLAGS' 20677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20679ac_compiler_gnu=$ac_cv_c_compiler_gnu 20680 20681 20682 if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then 20683 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" 20684 CFLAGS="$CFLAGS -fvisibility=hidden" 20685 CXXFLAGS="$CXXFLAGS -fvisibility=hidden" 20686 fi 20687 20688 if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = macho; then 20689 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" 20690 CFLAGS="$CFLAGS -fvisibility=hidden" 20691 CXXFLAGS="$CXXFLAGS -fvisibility=hidden" 20692 fi 20693 20694 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then 20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5 20696$as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; } 20697 ac_add_cflags__old_cflags="$CFLAGS" 20698 CFLAGS="-fgnu89-inline" 20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20700/* end confdefs.h. */ 20701 20702 #include <stdio.h> 20703 20704int 20705main () 20706{ 20707puts("Hello, World!"); return 0; 20708 ; 20709 return 0; 20710} 20711_ACEOF 20712if ac_fn_c_try_link "$LINENO"; then : 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20714$as_echo "yes" >&6; } 20715 CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline" 20716else 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20718$as_echo "no" >&6; } 20719 CFLAGS="$ac_add_cflags__old_cflags" 20720 20721fi 20722rm -f core conftest.err conftest.$ac_objext \ 20723 conftest$ac_exeext conftest.$ac_ext 20724 20725 fi 20726 20727 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x47" ; then 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline-small-functions" >&5 20729$as_echo_n "checking if $CC accepts -fno-inline-small-functions... " >&6; } 20730 ac_add_cflags__old_cflags="$CFLAGS" 20731 CFLAGS="-fno-inline-small-functions" 20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20733/* end confdefs.h. */ 20734 20735 #include <stdio.h> 20736 20737int 20738main () 20739{ 20740puts("Hello, World!"); return 0; 20741 ; 20742 return 0; 20743} 20744_ACEOF 20745if ac_fn_c_try_link "$LINENO"; then : 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20747$as_echo "yes" >&6; } 20748 CFLAGS="$ac_add_cflags__old_cflags -fno-inline-small-functions" 20749else 20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20751$as_echo "no" >&6; } 20752 CFLAGS="$ac_add_cflags__old_cflags" 20753 20754fi 20755rm -f core conftest.err conftest.$ac_objext \ 20756 conftest$ac_exeext conftest.$ac_ext 20757 20758 fi 20759 20760 if test "x$asm_optimisation$sse_os" = "xyesyes" ; then 20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -msse2" >&5 20762$as_echo_n "checking if $CC accepts -msse2... " >&6; } 20763 ac_add_cflags__old_cflags="$CFLAGS" 20764 CFLAGS="-msse2" 20765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20766/* end confdefs.h. */ 20767 20768 #include <stdio.h> 20769 20770int 20771main () 20772{ 20773puts("Hello, World!"); return 0; 20774 ; 20775 return 0; 20776} 20777_ACEOF 20778if ac_fn_c_try_link "$LINENO"; then : 20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20780$as_echo "yes" >&6; } 20781 CFLAGS="$ac_add_cflags__old_cflags -msse2" 20782else 20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20784$as_echo "no" >&6; } 20785 CFLAGS="$ac_add_cflags__old_cflags" 20786 20787fi 20788rm -f core conftest.err conftest.$ac_objext \ 20789 conftest$ac_exeext conftest.$ac_ext 20790 20791 fi 20792 20793 fi 20794 20795case "$host_os" in 20796 "mingw32"|"os2") 20797 if test "$host_cpu" = "i686"; then 20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -mstackrealign" >&5 20799$as_echo_n "checking if $CC accepts -mstackrealign... " >&6; } 20800 ac_add_cflags__old_cflags="$CFLAGS" 20801 CFLAGS="-mstackrealign" 20802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20803/* end confdefs.h. */ 20804 20805 #include <stdio.h> 20806 20807int 20808main () 20809{ 20810puts("Hello, World!"); return 0; 20811 ; 20812 return 0; 20813} 20814_ACEOF 20815if ac_fn_c_try_link "$LINENO"; then : 20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20817$as_echo "yes" >&6; } 20818 CFLAGS="$ac_add_cflags__old_cflags -mstackrealign" 20819else 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20821$as_echo "no" >&6; } 20822 CFLAGS="$ac_add_cflags__old_cflags" 20823 20824fi 20825rm -f core conftest.err conftest.$ac_objext \ 20826 conftest$ac_exeext conftest.$ac_ext 20827 20828 fi 20829 esac 20830 20831if test x$enable_werror = "xyes" ; then 20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5 20833$as_echo_n "checking if $CC accepts -Werror... " >&6; } 20834 ac_add_cflags__old_cflags="$CFLAGS" 20835 CFLAGS="-Werror" 20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20837/* end confdefs.h. */ 20838 20839 #include <stdio.h> 20840 20841int 20842main () 20843{ 20844puts("Hello, World!"); return 0; 20845 ; 20846 return 0; 20847} 20848_ACEOF 20849if ac_fn_c_try_link "$LINENO"; then : 20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20851$as_echo "yes" >&6; } 20852 CFLAGS="$ac_add_cflags__old_cflags -Werror" 20853else 20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20855$as_echo "no" >&6; } 20856 CFLAGS="$ac_add_cflags__old_cflags" 20857 20858fi 20859rm -f core conftest.err conftest.$ac_objext \ 20860 conftest$ac_exeext conftest.$ac_ext 20861 20862 ac_ext=cpp 20863ac_cpp='$CXXCPP $CPPFLAGS' 20864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20867 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror" >&5 20869$as_echo_n "checking if $CXX accepts -Werror... " >&6; } 20870 20871 ac_add_cxxflags__old_cxxflags="$CXXFLAGS" 20872 CXXFLAGS="-Werror" 20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20874/* end confdefs.h. */ 20875 20876 #include <cstdio> 20877 20878int 20879main () 20880{ 20881puts("Hello, World!"); return 0; 20882 ; 20883 return 0; 20884} 20885_ACEOF 20886if ac_fn_cxx_try_link "$LINENO"; then : 20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20888$as_echo "yes" >&6; } 20889 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Werror" 20890else 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20892$as_echo "no" >&6; } 20893 CXXFLAGS="$ac_add_cxxflags__old_cxxflags" 20894 20895fi 20896rm -f core conftest.err conftest.$ac_objext \ 20897 conftest$ac_exeext conftest.$ac_ext 20898 20899 ac_ext=c 20900ac_cpp='$CPP $CPPFLAGS' 20901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20903ac_compiler_gnu=$ac_cv_c_compiler_gnu 20904 20905 fi 20906 20907if test x$enable_stack_smash_protection = "xyes" ; then 20908 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports stack smash protection" >&5 20910$as_echo_n "checking if $CC supports stack smash protection... " >&6; } 20911 xiph_stack_check_old_cflags="$CFLAGS" 20912 SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4" 20913 CFLAGS=$SSP_FLAGS 20914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20915/* end confdefs.h. */ 20916 20917 #include <stdio.h> 20918 20919int 20920main () 20921{ 20922puts("Hello, World!"); return 0; 20923 ; 20924 return 0; 20925} 20926_ACEOF 20927if ac_fn_c_try_link "$LINENO"; then : 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20929$as_echo "yes" >&6; } 20930 CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS" 20931else 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20933$as_echo "no" >&6; } 20934 CFLAGS="$xiph_stack_check_old_cflags" 20935 20936fi 20937rm -f core conftest.err conftest.$ac_objext \ 20938 conftest$ac_exeext conftest.$ac_ext 20939 20940 ac_ext=cpp 20941ac_cpp='$CXXCPP $CPPFLAGS' 20942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20945 20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports stack smash protection" >&5 20947$as_echo_n "checking if $CXX supports stack smash protection... " >&6; } 20948 xiph_stack_check_old_cflags="$CFLAGS" 20949 SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4" 20950 CFLAGS=$SSP_FLAGS 20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20952/* end confdefs.h. */ 20953 20954 #include <cstdio> 20955 20956int 20957main () 20958{ 20959puts("Hello, World!"); return 0; 20960 ; 20961 return 0; 20962} 20963_ACEOF 20964if ac_fn_cxx_try_link "$LINENO"; then : 20965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20966$as_echo "yes" >&6; } 20967 CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS" 20968else 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20970$as_echo "no" >&6; } 20971 CFLAGS="$xiph_stack_check_old_cflags" 20972 20973fi 20974rm -f core conftest.err conftest.$ac_objext \ 20975 conftest$ac_exeext conftest.$ac_ext 20976 ac_ext=c 20977ac_cpp='$CPP $CPPFLAGS' 20978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20980ac_compiler_gnu=$ac_cv_c_compiler_gnu 20981 20982 20983 fi 20984 20985if test "x$sys_linux" = xtrue ; then 20986 LIB_CLOCK_GETTIME=-lrt 20987 fi 20988 20989 20990ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/plugin_common/Makefile src/plugin_xmms/Makefile src/share/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile src/utils/Makefile src/utils/flacdiff/Makefile src/utils/flactimer/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Doxyfile doc/Makefile doc/html/Makefile doc/html/images/Makefile m4/Makefile man/Makefile test/common.sh test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile objs/Makefile objs/debug/Makefile objs/debug/bin/Makefile objs/debug/lib/Makefile objs/release/Makefile objs/release/bin/Makefile objs/release/lib/Makefile microbench/Makefile" 20991 20992cat >confcache <<\_ACEOF 20993# This file is a shell script that caches the results of configure 20994# tests run on this system so they can be shared between configure 20995# scripts and configure runs, see configure's option --config-cache. 20996# It is not useful on other systems. If it contains results you don't 20997# want to keep, you may remove or edit it. 20998# 20999# config.status only pays attention to the cache file if you give it 21000# the --recheck option to rerun configure. 21001# 21002# `ac_cv_env_foo' variables (set or unset) will be overridden when 21003# loading this file, other *unset* `ac_cv_foo' will be assigned the 21004# following values. 21005 21006_ACEOF 21007 21008# The following way of writing the cache mishandles newlines in values, 21009# but we know of no workaround that is simple, portable, and efficient. 21010# So, we kill variables containing newlines. 21011# Ultrix sh set writes to stderr and can't be redirected directly, 21012# and sets the high bit in the cache file unless we assign to the vars. 21013( 21014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21015 eval ac_val=\$$ac_var 21016 case $ac_val in #( 21017 *${as_nl}*) 21018 case $ac_var in #( 21019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21021 esac 21022 case $ac_var in #( 21023 _ | IFS | as_nl) ;; #( 21024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21025 *) { eval $ac_var=; unset $ac_var;} ;; 21026 esac ;; 21027 esac 21028 done 21029 21030 (set) 2>&1 | 21031 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21032 *${as_nl}ac_space=\ *) 21033 # `set' does not quote correctly, so add quotes: double-quote 21034 # substitution turns \\\\ into \\, and sed turns \\ into \. 21035 sed -n \ 21036 "s/'/'\\\\''/g; 21037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21038 ;; #( 21039 *) 21040 # `set' quotes correctly as required by POSIX, so do not add quotes. 21041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21042 ;; 21043 esac | 21044 sort 21045) | 21046 sed ' 21047 /^ac_cv_env_/b end 21048 t clear 21049 :clear 21050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21051 t end 21052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21053 :end' >>confcache 21054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21055 if test -w "$cache_file"; then 21056 if test "x$cache_file" != "x/dev/null"; then 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21058$as_echo "$as_me: updating cache $cache_file" >&6;} 21059 if test ! -f "$cache_file" || test -h "$cache_file"; then 21060 cat confcache >"$cache_file" 21061 else 21062 case $cache_file in #( 21063 */* | ?:*) 21064 mv -f confcache "$cache_file"$$ && 21065 mv -f "$cache_file"$$ "$cache_file" ;; #( 21066 *) 21067 mv -f confcache "$cache_file" ;; 21068 esac 21069 fi 21070 fi 21071 else 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21074 fi 21075fi 21076rm -f confcache 21077 21078test "x$prefix" = xNONE && prefix=$ac_default_prefix 21079# Let make expand exec_prefix. 21080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21081 21082DEFS=-DHAVE_CONFIG_H 21083 21084ac_libobjs= 21085ac_ltlibobjs= 21086U= 21087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21088 # 1. Remove the extension, and $U if already installed. 21089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21092 # will be set to the directory where LIBOBJS objects are built. 21093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21095done 21096LIBOBJS=$ac_libobjs 21097 21098LTLIBOBJS=$ac_ltlibobjs 21099 21100 21101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21102$as_echo_n "checking that generated files are newer than configure... " >&6; } 21103 if test -n "$am_sleep_pid"; then 21104 # Hide warnings about reused PIDs. 21105 wait $am_sleep_pid 2>/dev/null 21106 fi 21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21108$as_echo "done" >&6; } 21109 if test -n "$EXEEXT"; then 21110 am__EXEEXT_TRUE= 21111 am__EXEEXT_FALSE='#' 21112else 21113 am__EXEEXT_TRUE='#' 21114 am__EXEEXT_FALSE= 21115fi 21116 21117if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21118 as_fn_error $? "conditional \"AMDEP\" was never defined. 21119Usually this means the macro was only invoked conditionally." "$LINENO" 5 21120fi 21121if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21122 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21123Usually this means the macro was only invoked conditionally." "$LINENO" 5 21124fi 21125if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 21126 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 21127Usually this means the macro was only invoked conditionally." "$LINENO" 5 21128fi 21129if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21130 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21131Usually this means the macro was only invoked conditionally." "$LINENO" 5 21132fi 21133 21134if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then 21135 as_fn_error $? "conditional \"FLaC__NO_ASM\" was never defined. 21136Usually this means the macro was only invoked conditionally." "$LINENO" 5 21137fi 21138if test -z "${FLAC__CPU_X86_64_TRUE}" && test -z "${FLAC__CPU_X86_64_FALSE}"; then 21139 as_fn_error $? "conditional \"FLAC__CPU_X86_64\" was never defined. 21140Usually this means the macro was only invoked conditionally." "$LINENO" 5 21141fi 21142if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then 21143 as_fn_error $? "conditional \"FLaC__CPU_IA32\" was never defined. 21144Usually this means the macro was only invoked conditionally." "$LINENO" 5 21145fi 21146if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then 21147 as_fn_error $? "conditional \"FLaC__CPU_PPC\" was never defined. 21148Usually this means the macro was only invoked conditionally." "$LINENO" 5 21149fi 21150if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then 21151 as_fn_error $? "conditional \"FLaC__CPU_SPARC\" was never defined. 21152Usually this means the macro was only invoked conditionally." "$LINENO" 5 21153fi 21154if test -z "${FLaC__CPU_PPC_SPE_TRUE}" && test -z "${FLaC__CPU_PPC_SPE_FALSE}"; then 21155 as_fn_error $? "conditional \"FLaC__CPU_PPC_SPE\" was never defined. 21156Usually this means the macro was only invoked conditionally." "$LINENO" 5 21157fi 21158if test -z "${OS_IS_WINDOWS_TRUE}" && test -z "${OS_IS_WINDOWS_FALSE}"; then 21159 as_fn_error $? "conditional \"OS_IS_WINDOWS\" was never defined. 21160Usually this means the macro was only invoked conditionally." "$LINENO" 5 21161fi 21162if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then 21163 as_fn_error $? "conditional \"FLaC__SYS_DARWIN\" was never defined. 21164Usually this means the macro was only invoked conditionally." "$LINENO" 5 21165fi 21166if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then 21167 as_fn_error $? "conditional \"FLaC__SYS_LINUX\" was never defined. 21168Usually this means the macro was only invoked conditionally." "$LINENO" 5 21169fi 21170if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 21171 as_fn_error $? "conditional \"DEBUG\" was never defined. 21172Usually this means the macro was only invoked conditionally." "$LINENO" 5 21173fi 21174if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then 21175 as_fn_error $? "conditional \"FLaC__USE_ALTIVEC\" was never defined. 21176Usually this means the macro was only invoked conditionally." "$LINENO" 5 21177fi 21178if test -z "${FLaC__USE_AVX_TRUE}" && test -z "${FLaC__USE_AVX_FALSE}"; then 21179 as_fn_error $? "conditional \"FLaC__USE_AVX\" was never defined. 21180Usually this means the macro was only invoked conditionally." "$LINENO" 5 21181fi 21182if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then 21183 as_fn_error $? "conditional \"FLaC__HAS_DOXYGEN\" was never defined. 21184Usually this means the macro was only invoked conditionally." "$LINENO" 5 21185fi 21186if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then 21187 as_fn_error $? "conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. 21188Usually this means the macro was only invoked conditionally." "$LINENO" 5 21189fi 21190if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then 21191 as_fn_error $? "conditional \"FLaC__HAS_XMMS\" was never defined. 21192Usually this means the macro was only invoked conditionally." "$LINENO" 5 21193fi 21194if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then 21195 as_fn_error $? "conditional \"FLaC__WITH_CPPLIBS\" was never defined. 21196Usually this means the macro was only invoked conditionally." "$LINENO" 5 21197fi 21198if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then 21199 as_fn_error $? "conditional \"FLaC__HAS_OGG\" was never defined. 21200Usually this means the macro was only invoked conditionally." "$LINENO" 5 21201fi 21202if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then 21203 as_fn_error $? "conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. 21204Usually this means the macro was only invoked conditionally." "$LINENO" 5 21205fi 21206if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then 21207 as_fn_error $? "conditional \"FLaC__HAS_NASM\" was never defined. 21208Usually this means the macro was only invoked conditionally." "$LINENO" 5 21209fi 21210 21211: "${CONFIG_STATUS=./config.status}" 21212ac_write_fail=0 21213ac_clean_files_save=$ac_clean_files 21214ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21215{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21216$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21217as_write_fail=0 21218cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21219#! $SHELL 21220# Generated by $as_me. 21221# Run this file to recreate the current configuration. 21222# Compiler output produced by configure, useful for debugging 21223# configure, is in config.log if it exists. 21224 21225debug=false 21226ac_cs_recheck=false 21227ac_cs_silent=false 21228 21229SHELL=\${CONFIG_SHELL-$SHELL} 21230export SHELL 21231_ASEOF 21232cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21233## -------------------- ## 21234## M4sh Initialization. ## 21235## -------------------- ## 21236 21237# Be more Bourne compatible 21238DUALCASE=1; export DUALCASE # for MKS sh 21239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21240 emulate sh 21241 NULLCMD=: 21242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21243 # is contrary to our usage. Disable this feature. 21244 alias -g '${1+"$@"}'='"$@"' 21245 setopt NO_GLOB_SUBST 21246else 21247 case `(set -o) 2>/dev/null` in #( 21248 *posix*) : 21249 set -o posix ;; #( 21250 *) : 21251 ;; 21252esac 21253fi 21254 21255 21256as_nl=' 21257' 21258export as_nl 21259# Printing a long string crashes Solaris 7 /usr/bin/printf. 21260as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21263# Prefer a ksh shell builtin over an external printf program on Solaris, 21264# but without wasting forks for bash or zsh. 21265if test -z "$BASH_VERSION$ZSH_VERSION" \ 21266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21267 as_echo='print -r --' 21268 as_echo_n='print -rn --' 21269elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21270 as_echo='printf %s\n' 21271 as_echo_n='printf %s' 21272else 21273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21275 as_echo_n='/usr/ucb/echo -n' 21276 else 21277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21278 as_echo_n_body='eval 21279 arg=$1; 21280 case $arg in #( 21281 *"$as_nl"*) 21282 expr "X$arg" : "X\\(.*\\)$as_nl"; 21283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21284 esac; 21285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21286 ' 21287 export as_echo_n_body 21288 as_echo_n='sh -c $as_echo_n_body as_echo' 21289 fi 21290 export as_echo_body 21291 as_echo='sh -c $as_echo_body as_echo' 21292fi 21293 21294# The user is always right. 21295if test "${PATH_SEPARATOR+set}" != set; then 21296 PATH_SEPARATOR=: 21297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21299 PATH_SEPARATOR=';' 21300 } 21301fi 21302 21303 21304# IFS 21305# We need space, tab and new line, in precisely that order. Quoting is 21306# there to prevent editors from complaining about space-tab. 21307# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21308# splitting by setting IFS to empty value.) 21309IFS=" "" $as_nl" 21310 21311# Find who we are. Look in the path if we contain no directory separator. 21312as_myself= 21313case $0 in #(( 21314 *[\\/]* ) as_myself=$0 ;; 21315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21316for as_dir in $PATH 21317do 21318 IFS=$as_save_IFS 21319 test -z "$as_dir" && as_dir=. 21320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21321 done 21322IFS=$as_save_IFS 21323 21324 ;; 21325esac 21326# We did not find ourselves, most probably we were run as `sh COMMAND' 21327# in which case we are not to be found in the path. 21328if test "x$as_myself" = x; then 21329 as_myself=$0 21330fi 21331if test ! -f "$as_myself"; then 21332 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21333 exit 1 21334fi 21335 21336# Unset variables that we do not need and which cause bugs (e.g. in 21337# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21338# suppresses any "Segmentation fault" message there. '((' could 21339# trigger a bug in pdksh 5.2.14. 21340for as_var in BASH_ENV ENV MAIL MAILPATH 21341do eval test x\${$as_var+set} = xset \ 21342 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21343done 21344PS1='$ ' 21345PS2='> ' 21346PS4='+ ' 21347 21348# NLS nuisances. 21349LC_ALL=C 21350export LC_ALL 21351LANGUAGE=C 21352export LANGUAGE 21353 21354# CDPATH. 21355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21356 21357 21358# as_fn_error STATUS ERROR [LINENO LOG_FD] 21359# ---------------------------------------- 21360# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21361# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21362# script with STATUS, using 1 if that was 0. 21363as_fn_error () 21364{ 21365 as_status=$1; test $as_status -eq 0 && as_status=1 21366 if test "$4"; then 21367 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21369 fi 21370 $as_echo "$as_me: error: $2" >&2 21371 as_fn_exit $as_status 21372} # as_fn_error 21373 21374 21375# as_fn_set_status STATUS 21376# ----------------------- 21377# Set $? to STATUS, without forking. 21378as_fn_set_status () 21379{ 21380 return $1 21381} # as_fn_set_status 21382 21383# as_fn_exit STATUS 21384# ----------------- 21385# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21386as_fn_exit () 21387{ 21388 set +e 21389 as_fn_set_status $1 21390 exit $1 21391} # as_fn_exit 21392 21393# as_fn_unset VAR 21394# --------------- 21395# Portably unset VAR. 21396as_fn_unset () 21397{ 21398 { eval $1=; unset $1;} 21399} 21400as_unset=as_fn_unset 21401# as_fn_append VAR VALUE 21402# ---------------------- 21403# Append the text in VALUE to the end of the definition contained in VAR. Take 21404# advantage of any shell optimizations that allow amortized linear growth over 21405# repeated appends, instead of the typical quadratic growth present in naive 21406# implementations. 21407if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21408 eval 'as_fn_append () 21409 { 21410 eval $1+=\$2 21411 }' 21412else 21413 as_fn_append () 21414 { 21415 eval $1=\$$1\$2 21416 } 21417fi # as_fn_append 21418 21419# as_fn_arith ARG... 21420# ------------------ 21421# Perform arithmetic evaluation on the ARGs, and store the result in the 21422# global $as_val. Take advantage of shells that can avoid forks. The arguments 21423# must be portable across $(()) and expr. 21424if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21425 eval 'as_fn_arith () 21426 { 21427 as_val=$(( $* )) 21428 }' 21429else 21430 as_fn_arith () 21431 { 21432 as_val=`expr "$@" || test $? -eq 1` 21433 } 21434fi # as_fn_arith 21435 21436 21437if expr a : '\(a\)' >/dev/null 2>&1 && 21438 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21439 as_expr=expr 21440else 21441 as_expr=false 21442fi 21443 21444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21445 as_basename=basename 21446else 21447 as_basename=false 21448fi 21449 21450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21451 as_dirname=dirname 21452else 21453 as_dirname=false 21454fi 21455 21456as_me=`$as_basename -- "$0" || 21457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21458 X"$0" : 'X\(//\)$' \| \ 21459 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21460$as_echo X/"$0" | 21461 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21462 s//\1/ 21463 q 21464 } 21465 /^X\/\(\/\/\)$/{ 21466 s//\1/ 21467 q 21468 } 21469 /^X\/\(\/\).*/{ 21470 s//\1/ 21471 q 21472 } 21473 s/.*/./; q'` 21474 21475# Avoid depending upon Character Ranges. 21476as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21478as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21479as_cr_digits='0123456789' 21480as_cr_alnum=$as_cr_Letters$as_cr_digits 21481 21482ECHO_C= ECHO_N= ECHO_T= 21483case `echo -n x` in #((((( 21484-n*) 21485 case `echo 'xy\c'` in 21486 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21487 xy) ECHO_C='\c';; 21488 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21489 ECHO_T=' ';; 21490 esac;; 21491*) 21492 ECHO_N='-n';; 21493esac 21494 21495rm -f conf$$ conf$$.exe conf$$.file 21496if test -d conf$$.dir; then 21497 rm -f conf$$.dir/conf$$.file 21498else 21499 rm -f conf$$.dir 21500 mkdir conf$$.dir 2>/dev/null 21501fi 21502if (echo >conf$$.file) 2>/dev/null; then 21503 if ln -s conf$$.file conf$$ 2>/dev/null; then 21504 as_ln_s='ln -s' 21505 # ... but there are two gotchas: 21506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21508 # In both cases, we have to default to `cp -pR'. 21509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21510 as_ln_s='cp -pR' 21511 elif ln conf$$.file conf$$ 2>/dev/null; then 21512 as_ln_s=ln 21513 else 21514 as_ln_s='cp -pR' 21515 fi 21516else 21517 as_ln_s='cp -pR' 21518fi 21519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21520rmdir conf$$.dir 2>/dev/null 21521 21522 21523# as_fn_mkdir_p 21524# ------------- 21525# Create "$as_dir" as a directory, including parents if necessary. 21526as_fn_mkdir_p () 21527{ 21528 21529 case $as_dir in #( 21530 -*) as_dir=./$as_dir;; 21531 esac 21532 test -d "$as_dir" || eval $as_mkdir_p || { 21533 as_dirs= 21534 while :; do 21535 case $as_dir in #( 21536 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21537 *) as_qdir=$as_dir;; 21538 esac 21539 as_dirs="'$as_qdir' $as_dirs" 21540 as_dir=`$as_dirname -- "$as_dir" || 21541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21542 X"$as_dir" : 'X\(//\)[^/]' \| \ 21543 X"$as_dir" : 'X\(//\)$' \| \ 21544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21545$as_echo X"$as_dir" | 21546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21547 s//\1/ 21548 q 21549 } 21550 /^X\(\/\/\)[^/].*/{ 21551 s//\1/ 21552 q 21553 } 21554 /^X\(\/\/\)$/{ 21555 s//\1/ 21556 q 21557 } 21558 /^X\(\/\).*/{ 21559 s//\1/ 21560 q 21561 } 21562 s/.*/./; q'` 21563 test -d "$as_dir" && break 21564 done 21565 test -z "$as_dirs" || eval "mkdir $as_dirs" 21566 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21567 21568 21569} # as_fn_mkdir_p 21570if mkdir -p . 2>/dev/null; then 21571 as_mkdir_p='mkdir -p "$as_dir"' 21572else 21573 test -d ./-p && rmdir ./-p 21574 as_mkdir_p=false 21575fi 21576 21577 21578# as_fn_executable_p FILE 21579# ----------------------- 21580# Test if FILE is an executable regular file. 21581as_fn_executable_p () 21582{ 21583 test -f "$1" && test -x "$1" 21584} # as_fn_executable_p 21585as_test_x='test -x' 21586as_executable_p=as_fn_executable_p 21587 21588# Sed expression to map a string onto a valid CPP name. 21589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21590 21591# Sed expression to map a string onto a valid variable name. 21592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21593 21594 21595exec 6>&1 21596## ----------------------------------- ## 21597## Main body of $CONFIG_STATUS script. ## 21598## ----------------------------------- ## 21599_ASEOF 21600test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21601 21602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21603# Save the log message, to keep $0 and so on meaningful, and to 21604# report actual input values of CONFIG_FILES etc. instead of their 21605# values after options handling. 21606ac_log=" 21607This file was extended by flac $as_me 1.3.2, which was 21608generated by GNU Autoconf 2.69. Invocation command line was 21609 21610 CONFIG_FILES = $CONFIG_FILES 21611 CONFIG_HEADERS = $CONFIG_HEADERS 21612 CONFIG_LINKS = $CONFIG_LINKS 21613 CONFIG_COMMANDS = $CONFIG_COMMANDS 21614 $ $0 $@ 21615 21616on `(hostname || uname -n) 2>/dev/null | sed 1q` 21617" 21618 21619_ACEOF 21620 21621case $ac_config_files in *" 21622"*) set x $ac_config_files; shift; ac_config_files=$*;; 21623esac 21624 21625case $ac_config_headers in *" 21626"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21627esac 21628 21629 21630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21631# Files that config.status was made for. 21632config_files="$ac_config_files" 21633config_headers="$ac_config_headers" 21634config_commands="$ac_config_commands" 21635 21636_ACEOF 21637 21638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21639ac_cs_usage="\ 21640\`$as_me' instantiates files and other configuration actions 21641from templates according to the current configuration. Unless the files 21642and actions are specified as TAGs, all are instantiated by default. 21643 21644Usage: $0 [OPTION]... [TAG]... 21645 21646 -h, --help print this help, then exit 21647 -V, --version print version number and configuration settings, then exit 21648 --config print configuration, then exit 21649 -q, --quiet, --silent 21650 do not print progress messages 21651 -d, --debug don't remove temporary files 21652 --recheck update $as_me by reconfiguring in the same conditions 21653 --file=FILE[:TEMPLATE] 21654 instantiate the configuration file FILE 21655 --header=FILE[:TEMPLATE] 21656 instantiate the configuration header FILE 21657 21658Configuration files: 21659$config_files 21660 21661Configuration headers: 21662$config_headers 21663 21664Configuration commands: 21665$config_commands 21666 21667Report bugs to <flac-dev@xiph.org>. 21668flac home page: <https://www.xiph.org/flac/>." 21669 21670_ACEOF 21671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21672ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21673ac_cs_version="\\ 21674flac config.status 1.3.2 21675configured by $0, generated by GNU Autoconf 2.69, 21676 with options \\"\$ac_cs_config\\" 21677 21678Copyright (C) 2012 Free Software Foundation, Inc. 21679This config.status script is free software; the Free Software Foundation 21680gives unlimited permission to copy, distribute and modify it." 21681 21682ac_pwd='$ac_pwd' 21683srcdir='$srcdir' 21684INSTALL='$INSTALL' 21685MKDIR_P='$MKDIR_P' 21686AWK='$AWK' 21687test -n "\$AWK" || AWK=awk 21688_ACEOF 21689 21690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21691# The default lists apply if the user does not specify any file. 21692ac_need_defaults=: 21693while test $# != 0 21694do 21695 case $1 in 21696 --*=?*) 21697 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21698 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21699 ac_shift=: 21700 ;; 21701 --*=) 21702 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21703 ac_optarg= 21704 ac_shift=: 21705 ;; 21706 *) 21707 ac_option=$1 21708 ac_optarg=$2 21709 ac_shift=shift 21710 ;; 21711 esac 21712 21713 case $ac_option in 21714 # Handling of the options. 21715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21716 ac_cs_recheck=: ;; 21717 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21718 $as_echo "$ac_cs_version"; exit ;; 21719 --config | --confi | --conf | --con | --co | --c ) 21720 $as_echo "$ac_cs_config"; exit ;; 21721 --debug | --debu | --deb | --de | --d | -d ) 21722 debug=: ;; 21723 --file | --fil | --fi | --f ) 21724 $ac_shift 21725 case $ac_optarg in 21726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21727 '') as_fn_error $? "missing file argument" ;; 21728 esac 21729 as_fn_append CONFIG_FILES " '$ac_optarg'" 21730 ac_need_defaults=false;; 21731 --header | --heade | --head | --hea ) 21732 $ac_shift 21733 case $ac_optarg in 21734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21735 esac 21736 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21737 ac_need_defaults=false;; 21738 --he | --h) 21739 # Conflict between --help and --header 21740 as_fn_error $? "ambiguous option: \`$1' 21741Try \`$0 --help' for more information.";; 21742 --help | --hel | -h ) 21743 $as_echo "$ac_cs_usage"; exit ;; 21744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21745 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21746 ac_cs_silent=: ;; 21747 21748 # This is an error. 21749 -*) as_fn_error $? "unrecognized option: \`$1' 21750Try \`$0 --help' for more information." ;; 21751 21752 *) as_fn_append ac_config_targets " $1" 21753 ac_need_defaults=false ;; 21754 21755 esac 21756 shift 21757done 21758 21759ac_configure_extra_args= 21760 21761if $ac_cs_silent; then 21762 exec 6>/dev/null 21763 ac_configure_extra_args="$ac_configure_extra_args --silent" 21764fi 21765 21766_ACEOF 21767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21768if \$ac_cs_recheck; then 21769 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21770 shift 21771 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21772 CONFIG_SHELL='$SHELL' 21773 export CONFIG_SHELL 21774 exec "\$@" 21775fi 21776 21777_ACEOF 21778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21779exec 5>>config.log 21780{ 21781 echo 21782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21783## Running $as_me. ## 21784_ASBOX 21785 $as_echo "$ac_log" 21786} >&5 21787 21788_ACEOF 21789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21790# 21791# INIT-COMMANDS 21792# 21793AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21794 21795 21796# The HP-UX ksh and POSIX shell print the target directory to stdout 21797# if CDPATH is set. 21798(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21799 21800sed_quote_subst='$sed_quote_subst' 21801double_quote_subst='$double_quote_subst' 21802delay_variable_subst='$delay_variable_subst' 21803macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21804macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21805AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21806DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21807OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21808enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21809pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21810enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21811enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21812shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21813SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21814ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21815PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21816host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21817host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21818host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21819build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21820build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21821build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21822SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21823Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21824GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21825EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21826FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21827LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21828NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21829LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21830max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21831ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21832exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21833lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21834lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21835lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21836lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21837lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21838reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21839reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21840deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21841file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21842file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21843want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21844sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21845AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21846AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21847archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21848STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21849RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21850old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21851old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21852old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21853lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21854CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21855CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21856compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21857GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21858lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21859lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21860lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21861lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21862lt_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"`' 21863lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21864nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21865lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21866lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21867objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21868MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21869lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21870lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21871lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21872lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21873lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21874need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21875MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21876DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21877NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21878LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21879OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21880OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21881libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21882shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21883extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21884archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21885enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21886export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21887whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21888compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21889old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21890old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21891archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21892archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21893module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21894module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21895with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21896allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21897no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21898hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21899hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21900hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21901hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21902hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21903hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21904hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21905inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21906link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21907always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21908export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21909exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21910include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21911prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21912postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21913file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21914variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21915need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21916need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21917version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21918runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21919shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21920shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21921libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21922library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21923soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21924install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21925postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21926postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21927finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21928finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21929hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21930sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21931configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21932configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21933hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21934enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21935enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21936enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21937old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21938striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21939compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21940predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21941postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21942predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21943postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21944compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21945LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21946reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21947reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21948old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21949compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21950GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21951lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21952lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21953lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21954lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21955lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21956archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21957enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21958export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21959whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21960compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21961old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21962old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21963archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21964archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21965module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21966module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21967with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21968allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21969no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21970hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21971hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21972hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21973hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21974hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21975hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21976hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21977inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21978link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21979always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21980export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21981exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21982include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21983prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21984postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21985file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21986hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21987compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21988predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21989postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21990predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21991postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21992compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21993 21994LTCC='$LTCC' 21995LTCFLAGS='$LTCFLAGS' 21996compiler='$compiler_DEFAULT' 21997 21998# A function that is used when there is no print builtin or printf. 21999func_fallback_echo () 22000{ 22001 eval 'cat <<_LTECHO_EOF 22002\$1 22003_LTECHO_EOF' 22004} 22005 22006# Quote evaled strings. 22007for var in AS \ 22008DLLTOOL \ 22009OBJDUMP \ 22010SHELL \ 22011ECHO \ 22012PATH_SEPARATOR \ 22013SED \ 22014GREP \ 22015EGREP \ 22016FGREP \ 22017LD \ 22018NM \ 22019LN_S \ 22020lt_SP2NL \ 22021lt_NL2SP \ 22022reload_flag \ 22023deplibs_check_method \ 22024file_magic_cmd \ 22025file_magic_glob \ 22026want_nocaseglob \ 22027sharedlib_from_linklib_cmd \ 22028AR \ 22029AR_FLAGS \ 22030archiver_list_spec \ 22031STRIP \ 22032RANLIB \ 22033CC \ 22034CFLAGS \ 22035compiler \ 22036lt_cv_sys_global_symbol_pipe \ 22037lt_cv_sys_global_symbol_to_cdecl \ 22038lt_cv_sys_global_symbol_to_import \ 22039lt_cv_sys_global_symbol_to_c_name_address \ 22040lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22041lt_cv_nm_interface \ 22042nm_file_list_spec \ 22043lt_cv_truncate_bin \ 22044lt_prog_compiler_no_builtin_flag \ 22045lt_prog_compiler_pic \ 22046lt_prog_compiler_wl \ 22047lt_prog_compiler_static \ 22048lt_cv_prog_compiler_c_o \ 22049need_locks \ 22050MANIFEST_TOOL \ 22051DSYMUTIL \ 22052NMEDIT \ 22053LIPO \ 22054OTOOL \ 22055OTOOL64 \ 22056shrext_cmds \ 22057export_dynamic_flag_spec \ 22058whole_archive_flag_spec \ 22059compiler_needs_object \ 22060with_gnu_ld \ 22061allow_undefined_flag \ 22062no_undefined_flag \ 22063hardcode_libdir_flag_spec \ 22064hardcode_libdir_separator \ 22065exclude_expsyms \ 22066include_expsyms \ 22067file_list_spec \ 22068variables_saved_for_relink \ 22069libname_spec \ 22070library_names_spec \ 22071soname_spec \ 22072install_override_mode \ 22073finish_eval \ 22074old_striplib \ 22075striplib \ 22076compiler_lib_search_dirs \ 22077predep_objects \ 22078postdep_objects \ 22079predeps \ 22080postdeps \ 22081compiler_lib_search_path \ 22082LD_CXX \ 22083reload_flag_CXX \ 22084compiler_CXX \ 22085lt_prog_compiler_no_builtin_flag_CXX \ 22086lt_prog_compiler_pic_CXX \ 22087lt_prog_compiler_wl_CXX \ 22088lt_prog_compiler_static_CXX \ 22089lt_cv_prog_compiler_c_o_CXX \ 22090export_dynamic_flag_spec_CXX \ 22091whole_archive_flag_spec_CXX \ 22092compiler_needs_object_CXX \ 22093with_gnu_ld_CXX \ 22094allow_undefined_flag_CXX \ 22095no_undefined_flag_CXX \ 22096hardcode_libdir_flag_spec_CXX \ 22097hardcode_libdir_separator_CXX \ 22098exclude_expsyms_CXX \ 22099include_expsyms_CXX \ 22100file_list_spec_CXX \ 22101compiler_lib_search_dirs_CXX \ 22102predep_objects_CXX \ 22103postdep_objects_CXX \ 22104predeps_CXX \ 22105postdeps_CXX \ 22106compiler_lib_search_path_CXX; do 22107 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22108 *[\\\\\\\`\\"\\\$]*) 22109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22110 ;; 22111 *) 22112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22113 ;; 22114 esac 22115done 22116 22117# Double-quote double-evaled strings. 22118for var in reload_cmds \ 22119old_postinstall_cmds \ 22120old_postuninstall_cmds \ 22121old_archive_cmds \ 22122extract_expsyms_cmds \ 22123old_archive_from_new_cmds \ 22124old_archive_from_expsyms_cmds \ 22125archive_cmds \ 22126archive_expsym_cmds \ 22127module_cmds \ 22128module_expsym_cmds \ 22129export_symbols_cmds \ 22130prelink_cmds \ 22131postlink_cmds \ 22132postinstall_cmds \ 22133postuninstall_cmds \ 22134finish_cmds \ 22135sys_lib_search_path_spec \ 22136configure_time_dlsearch_path \ 22137configure_time_lt_sys_library_path \ 22138reload_cmds_CXX \ 22139old_archive_cmds_CXX \ 22140old_archive_from_new_cmds_CXX \ 22141old_archive_from_expsyms_cmds_CXX \ 22142archive_cmds_CXX \ 22143archive_expsym_cmds_CXX \ 22144module_cmds_CXX \ 22145module_expsym_cmds_CXX \ 22146export_symbols_cmds_CXX \ 22147prelink_cmds_CXX \ 22148postlink_cmds_CXX; do 22149 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22150 *[\\\\\\\`\\"\\\$]*) 22151 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22152 ;; 22153 *) 22154 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22155 ;; 22156 esac 22157done 22158 22159ac_aux_dir='$ac_aux_dir' 22160 22161# See if we are running on zsh, and set the options that allow our 22162# commands through without removal of \ escapes INIT. 22163if test -n "\${ZSH_VERSION+set}"; then 22164 setopt NO_GLOB_SUBST 22165fi 22166 22167 22168 PACKAGE='$PACKAGE' 22169 VERSION='$VERSION' 22170 RM='$RM' 22171 ofile='$ofile' 22172 22173 22174 22175 22176 22177 22178_ACEOF 22179 22180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22181 22182# Handling of arguments. 22183for ac_config_target in $ac_config_targets 22184do 22185 case $ac_config_target in 22186 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22187 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22188 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22189 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22190 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22191 "src/libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;; 22192 "src/libFLAC/flac.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;; 22193 "src/libFLAC/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;; 22194 "src/libFLAC/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;; 22195 "src/libFLAC/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;; 22196 "src/libFLAC/include/protected/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;; 22197 "src/libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;; 22198 "src/libFLAC++/flac++.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;; 22199 "src/flac/Makefile") CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;; 22200 "src/metaflac/Makefile") CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;; 22201 "src/plugin_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;; 22202 "src/plugin_xmms/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;; 22203 "src/share/Makefile") CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;; 22204 "src/test_grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;; 22205 "src/test_grabbag/cuesheet/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;; 22206 "src/test_grabbag/picture/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;; 22207 "src/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;; 22208 "src/test_libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;; 22209 "src/test_libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;; 22210 "src/test_seeking/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;; 22211 "src/test_streams/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;; 22212 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; 22213 "src/utils/flacdiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flacdiff/Makefile" ;; 22214 "src/utils/flactimer/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flactimer/Makefile" ;; 22215 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 22216 "examples/c/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;; 22217 "examples/c/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;; 22218 "examples/c/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;; 22219 "examples/c/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;; 22220 "examples/c/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;; 22221 "examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;; 22222 "examples/cpp/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;; 22223 "examples/cpp/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;; 22224 "examples/cpp/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;; 22225 "examples/cpp/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;; 22226 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22227 "include/FLAC/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;; 22228 "include/FLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;; 22229 "include/share/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;; 22230 "include/share/grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;; 22231 "include/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;; 22232 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 22233 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22234 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 22235 "doc/html/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;; 22236 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 22237 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22238 "test/common.sh") CONFIG_FILES="$CONFIG_FILES test/common.sh" ;; 22239 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22240 "test/cuesheets/Makefile") CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;; 22241 "test/flac-to-flac-metadata-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;; 22242 "test/metaflac-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;; 22243 "test/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;; 22244 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 22245 "objs/Makefile") CONFIG_FILES="$CONFIG_FILES objs/Makefile" ;; 22246 "objs/debug/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/Makefile" ;; 22247 "objs/debug/bin/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/bin/Makefile" ;; 22248 "objs/debug/lib/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/lib/Makefile" ;; 22249 "objs/release/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/Makefile" ;; 22250 "objs/release/bin/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/bin/Makefile" ;; 22251 "objs/release/lib/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/lib/Makefile" ;; 22252 "microbench/Makefile") CONFIG_FILES="$CONFIG_FILES microbench/Makefile" ;; 22253 22254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22255 esac 22256done 22257 22258 22259# If the user did not use the arguments to specify the items to instantiate, 22260# then the envvar interface is used. Set only those that are not. 22261# We use the long form for the default assignment because of an extremely 22262# bizarre bug on SunOS 4.1.3. 22263if $ac_need_defaults; then 22264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22267fi 22268 22269# Have a temporary directory for convenience. Make it in the build tree 22270# simply because there is no reason against having it here, and in addition, 22271# creating and moving files from /tmp can sometimes cause problems. 22272# Hook for its removal unless debugging. 22273# Note that there is a small window in which the directory will not be cleaned: 22274# after its creation but before its name has been assigned to `$tmp'. 22275$debug || 22276{ 22277 tmp= ac_tmp= 22278 trap 'exit_status=$? 22279 : "${ac_tmp:=$tmp}" 22280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22281' 0 22282 trap 'as_fn_exit 1' 1 2 13 15 22283} 22284# Create a (secure) tmp directory for tmp files. 22285 22286{ 22287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22288 test -d "$tmp" 22289} || 22290{ 22291 tmp=./conf$$-$RANDOM 22292 (umask 077 && mkdir "$tmp") 22293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22294ac_tmp=$tmp 22295 22296# Set up the scripts for CONFIG_FILES section. 22297# No need to generate them if there are no CONFIG_FILES. 22298# This happens for instance with `./config.status config.h'. 22299if test -n "$CONFIG_FILES"; then 22300 22301 22302ac_cr=`echo X | tr X '\015'` 22303# On cygwin, bash can eat \r inside `` if the user requested igncr. 22304# But we know of no other shell where ac_cr would be empty at this 22305# point, so we can use a bashism as a fallback. 22306if test "x$ac_cr" = x; then 22307 eval ac_cr=\$\'\\r\' 22308fi 22309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22311 ac_cs_awk_cr='\\r' 22312else 22313 ac_cs_awk_cr=$ac_cr 22314fi 22315 22316echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22317_ACEOF 22318 22319 22320{ 22321 echo "cat >conf$$subs.awk <<_ACEOF" && 22322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22323 echo "_ACEOF" 22324} >conf$$subs.sh || 22325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22327ac_delim='%!_!# ' 22328for ac_last_try in false false false false false :; do 22329 . ./conf$$subs.sh || 22330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22331 22332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22333 if test $ac_delim_n = $ac_delim_num; then 22334 break 22335 elif $ac_last_try; then 22336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22337 else 22338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22339 fi 22340done 22341rm -f conf$$subs.sh 22342 22343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22345_ACEOF 22346sed -n ' 22347h 22348s/^/S["/; s/!.*/"]=/ 22349p 22350g 22351s/^[^!]*!// 22352:repl 22353t repl 22354s/'"$ac_delim"'$// 22355t delim 22356:nl 22357h 22358s/\(.\{148\}\)..*/\1/ 22359t more1 22360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22361p 22362n 22363b repl 22364:more1 22365s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22366p 22367g 22368s/.\{148\}// 22369t nl 22370:delim 22371h 22372s/\(.\{148\}\)..*/\1/ 22373t more2 22374s/["\\]/\\&/g; s/^/"/; s/$/"/ 22375p 22376b 22377:more2 22378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22379p 22380g 22381s/.\{148\}// 22382t delim 22383' <conf$$subs.awk | sed ' 22384/^[^""]/{ 22385 N 22386 s/\n// 22387} 22388' >>$CONFIG_STATUS || ac_write_fail=1 22389rm -f conf$$subs.awk 22390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22391_ACAWK 22392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22393 for (key in S) S_is_set[key] = 1 22394 FS = "" 22395 22396} 22397{ 22398 line = $ 0 22399 nfields = split(line, field, "@") 22400 substed = 0 22401 len = length(field[1]) 22402 for (i = 2; i < nfields; i++) { 22403 key = field[i] 22404 keylen = length(key) 22405 if (S_is_set[key]) { 22406 value = S[key] 22407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22408 len += length(value) + length(field[++i]) 22409 substed = 1 22410 } else 22411 len += 1 + keylen 22412 } 22413 22414 print line 22415} 22416 22417_ACAWK 22418_ACEOF 22419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22422else 22423 cat 22424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22426_ACEOF 22427 22428# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22430# trailing colons and then remove the whole line if VPATH becomes empty 22431# (actually we leave an empty line to preserve line numbers). 22432if test "x$srcdir" = x.; then 22433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22434h 22435s/// 22436s/^/:/ 22437s/[ ]*$/:/ 22438s/:\$(srcdir):/:/g 22439s/:\${srcdir}:/:/g 22440s/:@srcdir@:/:/g 22441s/^:*// 22442s/:*$// 22443x 22444s/\(=[ ]*\).*/\1/ 22445G 22446s/\n// 22447s/^[^=]*=[ ]*$// 22448}' 22449fi 22450 22451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22452fi # test -n "$CONFIG_FILES" 22453 22454# Set up the scripts for CONFIG_HEADERS section. 22455# No need to generate them if there are no CONFIG_HEADERS. 22456# This happens for instance with `./config.status Makefile'. 22457if test -n "$CONFIG_HEADERS"; then 22458cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22459BEGIN { 22460_ACEOF 22461 22462# Transform confdefs.h into an awk script `defines.awk', embedded as 22463# here-document in config.status, that substitutes the proper values into 22464# config.h.in to produce config.h. 22465 22466# Create a delimiter string that does not exist in confdefs.h, to ease 22467# handling of long lines. 22468ac_delim='%!_!# ' 22469for ac_last_try in false false :; do 22470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22471 if test -z "$ac_tt"; then 22472 break 22473 elif $ac_last_try; then 22474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22475 else 22476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22477 fi 22478done 22479 22480# For the awk script, D is an array of macro values keyed by name, 22481# likewise P contains macro parameters if any. Preserve backslash 22482# newline sequences. 22483 22484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22485sed -n ' 22486s/.\{148\}/&'"$ac_delim"'/g 22487t rset 22488:rset 22489s/^[ ]*#[ ]*define[ ][ ]*/ / 22490t def 22491d 22492:def 22493s/\\$// 22494t bsnl 22495s/["\\]/\\&/g 22496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22497D["\1"]=" \3"/p 22498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22499d 22500:bsnl 22501s/["\\]/\\&/g 22502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22503D["\1"]=" \3\\\\\\n"\\/p 22504t cont 22505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22506t cont 22507d 22508:cont 22509n 22510s/.\{148\}/&'"$ac_delim"'/g 22511t clear 22512:clear 22513s/\\$// 22514t bsnlc 22515s/["\\]/\\&/g; s/^/"/; s/$/"/p 22516d 22517:bsnlc 22518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22519b cont 22520' <confdefs.h | sed ' 22521s/'"$ac_delim"'/"\\\ 22522"/g' >>$CONFIG_STATUS || ac_write_fail=1 22523 22524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22525 for (key in D) D_is_set[key] = 1 22526 FS = "" 22527} 22528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22529 line = \$ 0 22530 split(line, arg, " ") 22531 if (arg[1] == "#") { 22532 defundef = arg[2] 22533 mac1 = arg[3] 22534 } else { 22535 defundef = substr(arg[1], 2) 22536 mac1 = arg[2] 22537 } 22538 split(mac1, mac2, "(") #) 22539 macro = mac2[1] 22540 prefix = substr(line, 1, index(line, defundef) - 1) 22541 if (D_is_set[macro]) { 22542 # Preserve the white space surrounding the "#". 22543 print prefix "define", macro P[macro] D[macro] 22544 next 22545 } else { 22546 # Replace #undef with comments. This is necessary, for example, 22547 # in the case of _POSIX_SOURCE, which is predefined and required 22548 # on some systems where configure will not decide to define it. 22549 if (defundef == "undef") { 22550 print "/*", prefix defundef, macro, "*/" 22551 next 22552 } 22553 } 22554} 22555{ print } 22556_ACAWK 22557_ACEOF 22558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22560fi # test -n "$CONFIG_HEADERS" 22561 22562 22563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22564shift 22565for ac_tag 22566do 22567 case $ac_tag in 22568 :[FHLC]) ac_mode=$ac_tag; continue;; 22569 esac 22570 case $ac_mode$ac_tag in 22571 :[FHL]*:*);; 22572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22573 :[FH]-) ac_tag=-:-;; 22574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22575 esac 22576 ac_save_IFS=$IFS 22577 IFS=: 22578 set x $ac_tag 22579 IFS=$ac_save_IFS 22580 shift 22581 ac_file=$1 22582 shift 22583 22584 case $ac_mode in 22585 :L) ac_source=$1;; 22586 :[FH]) 22587 ac_file_inputs= 22588 for ac_f 22589 do 22590 case $ac_f in 22591 -) ac_f="$ac_tmp/stdin";; 22592 *) # Look for the file first in the build tree, then in the source tree 22593 # (if the path is not absolute). The absolute path cannot be DOS-style, 22594 # because $ac_f cannot contain `:'. 22595 test -f "$ac_f" || 22596 case $ac_f in 22597 [\\/$]*) false;; 22598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22599 esac || 22600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22601 esac 22602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22603 as_fn_append ac_file_inputs " '$ac_f'" 22604 done 22605 22606 # Let's still pretend it is `configure' which instantiates (i.e., don't 22607 # use $as_me), people would be surprised to read: 22608 # /* config.h. Generated by config.status. */ 22609 configure_input='Generated from '` 22610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22611 `' by configure.' 22612 if test x"$ac_file" != x-; then 22613 configure_input="$ac_file. $configure_input" 22614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22615$as_echo "$as_me: creating $ac_file" >&6;} 22616 fi 22617 # Neutralize special characters interpreted by sed in replacement strings. 22618 case $configure_input in #( 22619 *\&* | *\|* | *\\* ) 22620 ac_sed_conf_input=`$as_echo "$configure_input" | 22621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22622 *) ac_sed_conf_input=$configure_input;; 22623 esac 22624 22625 case $ac_tag in 22626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22628 esac 22629 ;; 22630 esac 22631 22632 ac_dir=`$as_dirname -- "$ac_file" || 22633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22634 X"$ac_file" : 'X\(//\)[^/]' \| \ 22635 X"$ac_file" : 'X\(//\)$' \| \ 22636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22637$as_echo X"$ac_file" | 22638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22639 s//\1/ 22640 q 22641 } 22642 /^X\(\/\/\)[^/].*/{ 22643 s//\1/ 22644 q 22645 } 22646 /^X\(\/\/\)$/{ 22647 s//\1/ 22648 q 22649 } 22650 /^X\(\/\).*/{ 22651 s//\1/ 22652 q 22653 } 22654 s/.*/./; q'` 22655 as_dir="$ac_dir"; as_fn_mkdir_p 22656 ac_builddir=. 22657 22658case "$ac_dir" in 22659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22660*) 22661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22662 # A ".." for each directory in $ac_dir_suffix. 22663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22664 case $ac_top_builddir_sub in 22665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22667 esac ;; 22668esac 22669ac_abs_top_builddir=$ac_pwd 22670ac_abs_builddir=$ac_pwd$ac_dir_suffix 22671# for backward compatibility: 22672ac_top_builddir=$ac_top_build_prefix 22673 22674case $srcdir in 22675 .) # We are building in place. 22676 ac_srcdir=. 22677 ac_top_srcdir=$ac_top_builddir_sub 22678 ac_abs_top_srcdir=$ac_pwd ;; 22679 [\\/]* | ?:[\\/]* ) # Absolute name. 22680 ac_srcdir=$srcdir$ac_dir_suffix; 22681 ac_top_srcdir=$srcdir 22682 ac_abs_top_srcdir=$srcdir ;; 22683 *) # Relative name. 22684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22685 ac_top_srcdir=$ac_top_build_prefix$srcdir 22686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22687esac 22688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22689 22690 22691 case $ac_mode in 22692 :F) 22693 # 22694 # CONFIG_FILE 22695 # 22696 22697 case $INSTALL in 22698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22700 esac 22701 ac_MKDIR_P=$MKDIR_P 22702 case $MKDIR_P in 22703 [\\/$]* | ?:[\\/]* ) ;; 22704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22705 esac 22706_ACEOF 22707 22708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22709# If the template does not know about datarootdir, expand it. 22710# FIXME: This hack should be removed a few years after 2.60. 22711ac_datarootdir_hack=; ac_datarootdir_seen= 22712ac_sed_dataroot=' 22713/datarootdir/ { 22714 p 22715 q 22716} 22717/@datadir@/p 22718/@docdir@/p 22719/@infodir@/p 22720/@localedir@/p 22721/@mandir@/p' 22722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22723*datarootdir*) ac_datarootdir_seen=yes;; 22724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22727_ACEOF 22728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22729 ac_datarootdir_hack=' 22730 s&@datadir@&$datadir&g 22731 s&@docdir@&$docdir&g 22732 s&@infodir@&$infodir&g 22733 s&@localedir@&$localedir&g 22734 s&@mandir@&$mandir&g 22735 s&\\\${datarootdir}&$datarootdir&g' ;; 22736esac 22737_ACEOF 22738 22739# Neutralize VPATH when `$srcdir' = `.'. 22740# Shell code in configure.ac might set extrasub. 22741# FIXME: do we really want to maintain this feature? 22742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22743ac_sed_extra="$ac_vpsub 22744$extrasub 22745_ACEOF 22746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22747:t 22748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22749s|@configure_input@|$ac_sed_conf_input|;t t 22750s&@top_builddir@&$ac_top_builddir_sub&;t t 22751s&@top_build_prefix@&$ac_top_build_prefix&;t t 22752s&@srcdir@&$ac_srcdir&;t t 22753s&@abs_srcdir@&$ac_abs_srcdir&;t t 22754s&@top_srcdir@&$ac_top_srcdir&;t t 22755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22756s&@builddir@&$ac_builddir&;t t 22757s&@abs_builddir@&$ac_abs_builddir&;t t 22758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22759s&@INSTALL@&$ac_INSTALL&;t t 22760s&@MKDIR_P@&$ac_MKDIR_P&;t t 22761$ac_datarootdir_hack 22762" 22763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22765 22766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22769 "$ac_tmp/out"`; test -z "$ac_out"; } && 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22771which seems to be undefined. Please make sure it is defined" >&5 22772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22773which seems to be undefined. Please make sure it is defined" >&2;} 22774 22775 rm -f "$ac_tmp/stdin" 22776 case $ac_file in 22777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22779 esac \ 22780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22781 ;; 22782 :H) 22783 # 22784 # CONFIG_HEADER 22785 # 22786 if test x"$ac_file" != x-; then 22787 { 22788 $as_echo "/* $configure_input */" \ 22789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22790 } >"$ac_tmp/config.h" \ 22791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22794$as_echo "$as_me: $ac_file is unchanged" >&6;} 22795 else 22796 rm -f "$ac_file" 22797 mv "$ac_tmp/config.h" "$ac_file" \ 22798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22799 fi 22800 else 22801 $as_echo "/* $configure_input */" \ 22802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22803 || as_fn_error $? "could not create -" "$LINENO" 5 22804 fi 22805# Compute "$ac_file"'s index in $config_headers. 22806_am_arg="$ac_file" 22807_am_stamp_count=1 22808for _am_header in $config_headers :; do 22809 case $_am_header in 22810 $_am_arg | $_am_arg:* ) 22811 break ;; 22812 * ) 22813 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22814 esac 22815done 22816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22818 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22819 X"$_am_arg" : 'X\(//\)$' \| \ 22820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22821$as_echo X"$_am_arg" | 22822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22823 s//\1/ 22824 q 22825 } 22826 /^X\(\/\/\)[^/].*/{ 22827 s//\1/ 22828 q 22829 } 22830 /^X\(\/\/\)$/{ 22831 s//\1/ 22832 q 22833 } 22834 /^X\(\/\).*/{ 22835 s//\1/ 22836 q 22837 } 22838 s/.*/./; q'`/stamp-h$_am_stamp_count 22839 ;; 22840 22841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22842$as_echo "$as_me: executing $ac_file commands" >&6;} 22843 ;; 22844 esac 22845 22846 22847 case $ac_file$ac_mode in 22848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22849 # Older Autoconf quotes --file arguments for eval, but not when files 22850 # are listed without --file. Let's play safe and only enable the eval 22851 # if we detect the quoting. 22852 case $CONFIG_FILES in 22853 *\'*) eval set x "$CONFIG_FILES" ;; 22854 *) set x $CONFIG_FILES ;; 22855 esac 22856 shift 22857 for mf 22858 do 22859 # Strip MF so we end up with the name of the file. 22860 mf=`echo "$mf" | sed -e 's/:.*$//'` 22861 # Check whether this is an Automake generated Makefile or not. 22862 # We used to match only the files named 'Makefile.in', but 22863 # some people rename them; so instead we look at the file content. 22864 # Grep'ing the first line is not enough: some people post-process 22865 # each Makefile.in and add a new line on top of each file to say so. 22866 # Grep'ing the whole file is not good either: AIX grep has a line 22867 # limit of 2048, but all sed's we know have understand at least 4000. 22868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22869 dirpart=`$as_dirname -- "$mf" || 22870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22871 X"$mf" : 'X\(//\)[^/]' \| \ 22872 X"$mf" : 'X\(//\)$' \| \ 22873 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22874$as_echo X"$mf" | 22875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22876 s//\1/ 22877 q 22878 } 22879 /^X\(\/\/\)[^/].*/{ 22880 s//\1/ 22881 q 22882 } 22883 /^X\(\/\/\)$/{ 22884 s//\1/ 22885 q 22886 } 22887 /^X\(\/\).*/{ 22888 s//\1/ 22889 q 22890 } 22891 s/.*/./; q'` 22892 else 22893 continue 22894 fi 22895 # Extract the definition of DEPDIR, am__include, and am__quote 22896 # from the Makefile without running 'make'. 22897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22898 test -z "$DEPDIR" && continue 22899 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22900 test -z "$am__include" && continue 22901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22902 # Find all dependency output files, they are included files with 22903 # $(DEPDIR) in their names. We invoke sed twice because it is the 22904 # simplest approach to changing $(DEPDIR) to its actual value in the 22905 # expansion. 22906 for file in `sed -n " 22907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22909 # Make sure the directory exists. 22910 test -f "$dirpart/$file" && continue 22911 fdir=`$as_dirname -- "$file" || 22912$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22913 X"$file" : 'X\(//\)[^/]' \| \ 22914 X"$file" : 'X\(//\)$' \| \ 22915 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22916$as_echo X"$file" | 22917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22918 s//\1/ 22919 q 22920 } 22921 /^X\(\/\/\)[^/].*/{ 22922 s//\1/ 22923 q 22924 } 22925 /^X\(\/\/\)$/{ 22926 s//\1/ 22927 q 22928 } 22929 /^X\(\/\).*/{ 22930 s//\1/ 22931 q 22932 } 22933 s/.*/./; q'` 22934 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22935 # echo "creating $dirpart/$file" 22936 echo '# dummy' > "$dirpart/$file" 22937 done 22938 done 22939} 22940 ;; 22941 "libtool":C) 22942 22943 # See if we are running on zsh, and set the options that allow our 22944 # commands through without removal of \ escapes. 22945 if test -n "${ZSH_VERSION+set}"; then 22946 setopt NO_GLOB_SUBST 22947 fi 22948 22949 cfgfile=${ofile}T 22950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22951 $RM "$cfgfile" 22952 22953 cat <<_LT_EOF >> "$cfgfile" 22954#! $SHELL 22955# Generated automatically by $as_me ($PACKAGE) $VERSION 22956# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22957 22958# Provide generalized library-building support services. 22959# Written by Gordon Matzigkeit, 1996 22960 22961# Copyright (C) 2014 Free Software Foundation, Inc. 22962# This is free software; see the source for copying conditions. There is NO 22963# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22964 22965# GNU Libtool is free software; you can redistribute it and/or modify 22966# it under the terms of the GNU General Public License as published by 22967# the Free Software Foundation; either version 2 of of the License, or 22968# (at your option) any later version. 22969# 22970# As a special exception to the GNU General Public License, if you 22971# distribute this file as part of a program or library that is built 22972# using GNU Libtool, you may include this file under the same 22973# distribution terms that you use for the rest of that program. 22974# 22975# GNU Libtool is distributed in the hope that it will be useful, but 22976# WITHOUT ANY WARRANTY; without even the implied warranty of 22977# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22978# GNU General Public License for more details. 22979# 22980# You should have received a copy of the GNU General Public License 22981# along with this program. If not, see <http://www.gnu.org/licenses/>. 22982 22983 22984# The names of the tagged configurations supported by this script. 22985available_tags='CXX ' 22986 22987# Configured defaults for sys_lib_dlsearch_path munging. 22988: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22989 22990# ### BEGIN LIBTOOL CONFIG 22991 22992# Which release of libtool.m4 was used? 22993macro_version=$macro_version 22994macro_revision=$macro_revision 22995 22996# Assembler program. 22997AS=$lt_AS 22998 22999# DLL creation program. 23000DLLTOOL=$lt_DLLTOOL 23001 23002# Object dumper program. 23003OBJDUMP=$lt_OBJDUMP 23004 23005# Whether or not to build static libraries. 23006build_old_libs=$enable_static 23007 23008# What type of objects to build. 23009pic_mode=$pic_mode 23010 23011# Whether or not to build shared libraries. 23012build_libtool_libs=$enable_shared 23013 23014# Whether or not to optimize for fast installation. 23015fast_install=$enable_fast_install 23016 23017# Shared archive member basename,for filename based shared library versioning on AIX. 23018shared_archive_member_spec=$shared_archive_member_spec 23019 23020# Shell to use when invoking shell scripts. 23021SHELL=$lt_SHELL 23022 23023# An echo program that protects backslashes. 23024ECHO=$lt_ECHO 23025 23026# The PATH separator for the build system. 23027PATH_SEPARATOR=$lt_PATH_SEPARATOR 23028 23029# The host system. 23030host_alias=$host_alias 23031host=$host 23032host_os=$host_os 23033 23034# The build system. 23035build_alias=$build_alias 23036build=$build 23037build_os=$build_os 23038 23039# A sed program that does not truncate output. 23040SED=$lt_SED 23041 23042# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23043Xsed="\$SED -e 1s/^X//" 23044 23045# A grep program that handles long lines. 23046GREP=$lt_GREP 23047 23048# An ERE matcher. 23049EGREP=$lt_EGREP 23050 23051# A literal string matcher. 23052FGREP=$lt_FGREP 23053 23054# A BSD- or MS-compatible name lister. 23055NM=$lt_NM 23056 23057# Whether we need soft or hard links. 23058LN_S=$lt_LN_S 23059 23060# What is the maximum length of a command? 23061max_cmd_len=$max_cmd_len 23062 23063# Object file suffix (normally "o"). 23064objext=$ac_objext 23065 23066# Executable file suffix (normally ""). 23067exeext=$exeext 23068 23069# whether the shell understands "unset". 23070lt_unset=$lt_unset 23071 23072# turn spaces into newlines. 23073SP2NL=$lt_lt_SP2NL 23074 23075# turn newlines into spaces. 23076NL2SP=$lt_lt_NL2SP 23077 23078# convert \$build file names to \$host format. 23079to_host_file_cmd=$lt_cv_to_host_file_cmd 23080 23081# convert \$build files to toolchain format. 23082to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23083 23084# Method to check whether dependent libraries are shared objects. 23085deplibs_check_method=$lt_deplibs_check_method 23086 23087# Command to use when deplibs_check_method = "file_magic". 23088file_magic_cmd=$lt_file_magic_cmd 23089 23090# How to find potential files when deplibs_check_method = "file_magic". 23091file_magic_glob=$lt_file_magic_glob 23092 23093# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23094want_nocaseglob=$lt_want_nocaseglob 23095 23096# Command to associate shared and link libraries. 23097sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23098 23099# The archiver. 23100AR=$lt_AR 23101 23102# Flags to create an archive. 23103AR_FLAGS=$lt_AR_FLAGS 23104 23105# How to feed a file listing to the archiver. 23106archiver_list_spec=$lt_archiver_list_spec 23107 23108# A symbol stripping program. 23109STRIP=$lt_STRIP 23110 23111# Commands used to install an old-style archive. 23112RANLIB=$lt_RANLIB 23113old_postinstall_cmds=$lt_old_postinstall_cmds 23114old_postuninstall_cmds=$lt_old_postuninstall_cmds 23115 23116# Whether to use a lock for old archive extraction. 23117lock_old_archive_extraction=$lock_old_archive_extraction 23118 23119# A C compiler. 23120LTCC=$lt_CC 23121 23122# LTCC compiler flags. 23123LTCFLAGS=$lt_CFLAGS 23124 23125# Take the output of nm and produce a listing of raw symbols and C names. 23126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23127 23128# Transform the output of nm in a proper C declaration. 23129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23130 23131# Transform the output of nm into a list of symbols to manually relocate. 23132global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23133 23134# Transform the output of nm in a C name address pair. 23135global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23136 23137# Transform the output of nm in a C name address pair when lib prefix is needed. 23138global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23139 23140# The name lister interface. 23141nm_interface=$lt_lt_cv_nm_interface 23142 23143# Specify filename containing input files for \$NM. 23144nm_file_list_spec=$lt_nm_file_list_spec 23145 23146# The root where to search for dependent libraries,and where our libraries should be installed. 23147lt_sysroot=$lt_sysroot 23148 23149# Command to truncate a binary pipe. 23150lt_truncate_bin=$lt_lt_cv_truncate_bin 23151 23152# The name of the directory that contains temporary libtool files. 23153objdir=$objdir 23154 23155# Used to examine libraries when file_magic_cmd begins with "file". 23156MAGIC_CMD=$MAGIC_CMD 23157 23158# Must we lock files when doing compilation? 23159need_locks=$lt_need_locks 23160 23161# Manifest tool. 23162MANIFEST_TOOL=$lt_MANIFEST_TOOL 23163 23164# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23165DSYMUTIL=$lt_DSYMUTIL 23166 23167# Tool to change global to local symbols on Mac OS X. 23168NMEDIT=$lt_NMEDIT 23169 23170# Tool to manipulate fat objects and archives on Mac OS X. 23171LIPO=$lt_LIPO 23172 23173# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23174OTOOL=$lt_OTOOL 23175 23176# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23177OTOOL64=$lt_OTOOL64 23178 23179# Old archive suffix (normally "a"). 23180libext=$libext 23181 23182# Shared library suffix (normally ".so"). 23183shrext_cmds=$lt_shrext_cmds 23184 23185# The commands to extract the exported symbol list from a shared archive. 23186extract_expsyms_cmds=$lt_extract_expsyms_cmds 23187 23188# Variables whose values should be saved in libtool wrapper scripts and 23189# restored at link time. 23190variables_saved_for_relink=$lt_variables_saved_for_relink 23191 23192# Do we need the "lib" prefix for modules? 23193need_lib_prefix=$need_lib_prefix 23194 23195# Do we need a version for libraries? 23196need_version=$need_version 23197 23198# Library versioning type. 23199version_type=$version_type 23200 23201# Shared library runtime path variable. 23202runpath_var=$runpath_var 23203 23204# Shared library path variable. 23205shlibpath_var=$shlibpath_var 23206 23207# Is shlibpath searched before the hard-coded library search path? 23208shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23209 23210# Format of library name prefix. 23211libname_spec=$lt_libname_spec 23212 23213# List of archive names. First name is the real one, the rest are links. 23214# The last name is the one that the linker finds with -lNAME 23215library_names_spec=$lt_library_names_spec 23216 23217# The coded name of the library, if different from the real name. 23218soname_spec=$lt_soname_spec 23219 23220# Permission mode override for installation of shared libraries. 23221install_override_mode=$lt_install_override_mode 23222 23223# Command to use after installation of a shared archive. 23224postinstall_cmds=$lt_postinstall_cmds 23225 23226# Command to use after uninstallation of a shared archive. 23227postuninstall_cmds=$lt_postuninstall_cmds 23228 23229# Commands used to finish a libtool library installation in a directory. 23230finish_cmds=$lt_finish_cmds 23231 23232# As "finish_cmds", except a single script fragment to be evaled but 23233# not shown. 23234finish_eval=$lt_finish_eval 23235 23236# Whether we should hardcode library paths into libraries. 23237hardcode_into_libs=$hardcode_into_libs 23238 23239# Compile-time system search path for libraries. 23240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23241 23242# Detected run-time system search path for libraries. 23243sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23244 23245# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23246configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23247 23248# Whether dlopen is supported. 23249dlopen_support=$enable_dlopen 23250 23251# Whether dlopen of programs is supported. 23252dlopen_self=$enable_dlopen_self 23253 23254# Whether dlopen of statically linked programs is supported. 23255dlopen_self_static=$enable_dlopen_self_static 23256 23257# Commands to strip libraries. 23258old_striplib=$lt_old_striplib 23259striplib=$lt_striplib 23260 23261 23262# The linker used to build libraries. 23263LD=$lt_LD 23264 23265# How to create reloadable object files. 23266reload_flag=$lt_reload_flag 23267reload_cmds=$lt_reload_cmds 23268 23269# Commands used to build an old-style archive. 23270old_archive_cmds=$lt_old_archive_cmds 23271 23272# A language specific compiler. 23273CC=$lt_compiler 23274 23275# Is the compiler the GNU compiler? 23276with_gcc=$GCC 23277 23278# Compiler flag to turn off builtin functions. 23279no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23280 23281# Additional compiler flags for building library objects. 23282pic_flag=$lt_lt_prog_compiler_pic 23283 23284# How to pass a linker flag through the compiler. 23285wl=$lt_lt_prog_compiler_wl 23286 23287# Compiler flag to prevent dynamic linking. 23288link_static_flag=$lt_lt_prog_compiler_static 23289 23290# Does compiler simultaneously support -c and -o options? 23291compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23292 23293# Whether or not to add -lc for building shared libraries. 23294build_libtool_need_lc=$archive_cmds_need_lc 23295 23296# Whether or not to disallow shared libs when runtime libs are static. 23297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23298 23299# Compiler flag to allow reflexive dlopens. 23300export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23301 23302# Compiler flag to generate shared objects directly from archives. 23303whole_archive_flag_spec=$lt_whole_archive_flag_spec 23304 23305# Whether the compiler copes with passing no objects directly. 23306compiler_needs_object=$lt_compiler_needs_object 23307 23308# Create an old-style archive from a shared archive. 23309old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23310 23311# Create a temporary old-style archive to link instead of a shared archive. 23312old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23313 23314# Commands used to build a shared archive. 23315archive_cmds=$lt_archive_cmds 23316archive_expsym_cmds=$lt_archive_expsym_cmds 23317 23318# Commands used to build a loadable module if different from building 23319# a shared archive. 23320module_cmds=$lt_module_cmds 23321module_expsym_cmds=$lt_module_expsym_cmds 23322 23323# Whether we are building with GNU ld or not. 23324with_gnu_ld=$lt_with_gnu_ld 23325 23326# Flag that allows shared libraries with undefined symbols to be built. 23327allow_undefined_flag=$lt_allow_undefined_flag 23328 23329# Flag that enforces no undefined symbols. 23330no_undefined_flag=$lt_no_undefined_flag 23331 23332# Flag to hardcode \$libdir into a binary during linking. 23333# This must work even if \$libdir does not exist 23334hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23335 23336# Whether we need a single "-rpath" flag with a separated argument. 23337hardcode_libdir_separator=$lt_hardcode_libdir_separator 23338 23339# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23340# DIR into the resulting binary. 23341hardcode_direct=$hardcode_direct 23342 23343# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23344# DIR into the resulting binary and the resulting library dependency is 23345# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23346# library is relocated. 23347hardcode_direct_absolute=$hardcode_direct_absolute 23348 23349# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23350# into the resulting binary. 23351hardcode_minus_L=$hardcode_minus_L 23352 23353# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23354# into the resulting binary. 23355hardcode_shlibpath_var=$hardcode_shlibpath_var 23356 23357# Set to "yes" if building a shared library automatically hardcodes DIR 23358# into the library and all subsequent libraries and executables linked 23359# against it. 23360hardcode_automatic=$hardcode_automatic 23361 23362# Set to yes if linker adds runtime paths of dependent libraries 23363# to runtime path list. 23364inherit_rpath=$inherit_rpath 23365 23366# Whether libtool must link a program against all its dependency libraries. 23367link_all_deplibs=$link_all_deplibs 23368 23369# Set to "yes" if exported symbols are required. 23370always_export_symbols=$always_export_symbols 23371 23372# The commands to list exported symbols. 23373export_symbols_cmds=$lt_export_symbols_cmds 23374 23375# Symbols that should not be listed in the preloaded symbols. 23376exclude_expsyms=$lt_exclude_expsyms 23377 23378# Symbols that must always be exported. 23379include_expsyms=$lt_include_expsyms 23380 23381# Commands necessary for linking programs (against libraries) with templates. 23382prelink_cmds=$lt_prelink_cmds 23383 23384# Commands necessary for finishing linking programs. 23385postlink_cmds=$lt_postlink_cmds 23386 23387# Specify filename containing input files. 23388file_list_spec=$lt_file_list_spec 23389 23390# How to hardcode a shared library path into an executable. 23391hardcode_action=$hardcode_action 23392 23393# The directories searched by this compiler when creating a shared library. 23394compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23395 23396# Dependencies to place before and after the objects being linked to 23397# create a shared library. 23398predep_objects=$lt_predep_objects 23399postdep_objects=$lt_postdep_objects 23400predeps=$lt_predeps 23401postdeps=$lt_postdeps 23402 23403# The library search path used internally by the compiler when linking 23404# a shared library. 23405compiler_lib_search_path=$lt_compiler_lib_search_path 23406 23407# ### END LIBTOOL CONFIG 23408 23409_LT_EOF 23410 23411 cat <<'_LT_EOF' >> "$cfgfile" 23412 23413# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23414 23415# func_munge_path_list VARIABLE PATH 23416# ----------------------------------- 23417# VARIABLE is name of variable containing _space_ separated list of 23418# directories to be munged by the contents of PATH, which is string 23419# having a format: 23420# "DIR[:DIR]:" 23421# string "DIR[ DIR]" will be prepended to VARIABLE 23422# ":DIR[:DIR]" 23423# string "DIR[ DIR]" will be appended to VARIABLE 23424# "DIRP[:DIRP]::[DIRA:]DIRA" 23425# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23426# "DIRA[ DIRA]" will be appended to VARIABLE 23427# "DIR[:DIR]" 23428# VARIABLE will be replaced by "DIR[ DIR]" 23429func_munge_path_list () 23430{ 23431 case x$2 in 23432 x) 23433 ;; 23434 *:) 23435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23436 ;; 23437 x:*) 23438 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23439 ;; 23440 *::*) 23441 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23442 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23443 ;; 23444 *) 23445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23446 ;; 23447 esac 23448} 23449 23450 23451# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23452func_cc_basename () 23453{ 23454 for cc_temp in $*""; do 23455 case $cc_temp in 23456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23458 \-*) ;; 23459 *) break;; 23460 esac 23461 done 23462 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23463} 23464 23465 23466# ### END FUNCTIONS SHARED WITH CONFIGURE 23467 23468_LT_EOF 23469 23470 case $host_os in 23471 aix3*) 23472 cat <<\_LT_EOF >> "$cfgfile" 23473# AIX sometimes has problems with the GCC collect2 program. For some 23474# reason, if we set the COLLECT_NAMES environment variable, the problems 23475# vanish in a puff of smoke. 23476if test set != "${COLLECT_NAMES+set}"; then 23477 COLLECT_NAMES= 23478 export COLLECT_NAMES 23479fi 23480_LT_EOF 23481 ;; 23482 esac 23483 23484 23485ltmain=$ac_aux_dir/ltmain.sh 23486 23487 23488 # We use sed instead of cat because bash on DJGPP gets confused if 23489 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23490 # text mode, it properly converts lines to CR/LF. This bash problem 23491 # is reportedly fixed, but why not run on old versions too? 23492 sed '$q' "$ltmain" >> "$cfgfile" \ 23493 || (rm -f "$cfgfile"; exit 1) 23494 23495 mv -f "$cfgfile" "$ofile" || 23496 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23497 chmod +x "$ofile" 23498 23499 23500 cat <<_LT_EOF >> "$ofile" 23501 23502# ### BEGIN LIBTOOL TAG CONFIG: CXX 23503 23504# The linker used to build libraries. 23505LD=$lt_LD_CXX 23506 23507# How to create reloadable object files. 23508reload_flag=$lt_reload_flag_CXX 23509reload_cmds=$lt_reload_cmds_CXX 23510 23511# Commands used to build an old-style archive. 23512old_archive_cmds=$lt_old_archive_cmds_CXX 23513 23514# A language specific compiler. 23515CC=$lt_compiler_CXX 23516 23517# Is the compiler the GNU compiler? 23518with_gcc=$GCC_CXX 23519 23520# Compiler flag to turn off builtin functions. 23521no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23522 23523# Additional compiler flags for building library objects. 23524pic_flag=$lt_lt_prog_compiler_pic_CXX 23525 23526# How to pass a linker flag through the compiler. 23527wl=$lt_lt_prog_compiler_wl_CXX 23528 23529# Compiler flag to prevent dynamic linking. 23530link_static_flag=$lt_lt_prog_compiler_static_CXX 23531 23532# Does compiler simultaneously support -c and -o options? 23533compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23534 23535# Whether or not to add -lc for building shared libraries. 23536build_libtool_need_lc=$archive_cmds_need_lc_CXX 23537 23538# Whether or not to disallow shared libs when runtime libs are static. 23539allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23540 23541# Compiler flag to allow reflexive dlopens. 23542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23543 23544# Compiler flag to generate shared objects directly from archives. 23545whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23546 23547# Whether the compiler copes with passing no objects directly. 23548compiler_needs_object=$lt_compiler_needs_object_CXX 23549 23550# Create an old-style archive from a shared archive. 23551old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23552 23553# Create a temporary old-style archive to link instead of a shared archive. 23554old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23555 23556# Commands used to build a shared archive. 23557archive_cmds=$lt_archive_cmds_CXX 23558archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23559 23560# Commands used to build a loadable module if different from building 23561# a shared archive. 23562module_cmds=$lt_module_cmds_CXX 23563module_expsym_cmds=$lt_module_expsym_cmds_CXX 23564 23565# Whether we are building with GNU ld or not. 23566with_gnu_ld=$lt_with_gnu_ld_CXX 23567 23568# Flag that allows shared libraries with undefined symbols to be built. 23569allow_undefined_flag=$lt_allow_undefined_flag_CXX 23570 23571# Flag that enforces no undefined symbols. 23572no_undefined_flag=$lt_no_undefined_flag_CXX 23573 23574# Flag to hardcode \$libdir into a binary during linking. 23575# This must work even if \$libdir does not exist 23576hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23577 23578# Whether we need a single "-rpath" flag with a separated argument. 23579hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23580 23581# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23582# DIR into the resulting binary. 23583hardcode_direct=$hardcode_direct_CXX 23584 23585# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23586# DIR into the resulting binary and the resulting library dependency is 23587# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23588# library is relocated. 23589hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23590 23591# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23592# into the resulting binary. 23593hardcode_minus_L=$hardcode_minus_L_CXX 23594 23595# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23596# into the resulting binary. 23597hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23598 23599# Set to "yes" if building a shared library automatically hardcodes DIR 23600# into the library and all subsequent libraries and executables linked 23601# against it. 23602hardcode_automatic=$hardcode_automatic_CXX 23603 23604# Set to yes if linker adds runtime paths of dependent libraries 23605# to runtime path list. 23606inherit_rpath=$inherit_rpath_CXX 23607 23608# Whether libtool must link a program against all its dependency libraries. 23609link_all_deplibs=$link_all_deplibs_CXX 23610 23611# Set to "yes" if exported symbols are required. 23612always_export_symbols=$always_export_symbols_CXX 23613 23614# The commands to list exported symbols. 23615export_symbols_cmds=$lt_export_symbols_cmds_CXX 23616 23617# Symbols that should not be listed in the preloaded symbols. 23618exclude_expsyms=$lt_exclude_expsyms_CXX 23619 23620# Symbols that must always be exported. 23621include_expsyms=$lt_include_expsyms_CXX 23622 23623# Commands necessary for linking programs (against libraries) with templates. 23624prelink_cmds=$lt_prelink_cmds_CXX 23625 23626# Commands necessary for finishing linking programs. 23627postlink_cmds=$lt_postlink_cmds_CXX 23628 23629# Specify filename containing input files. 23630file_list_spec=$lt_file_list_spec_CXX 23631 23632# How to hardcode a shared library path into an executable. 23633hardcode_action=$hardcode_action_CXX 23634 23635# The directories searched by this compiler when creating a shared library. 23636compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23637 23638# Dependencies to place before and after the objects being linked to 23639# create a shared library. 23640predep_objects=$lt_predep_objects_CXX 23641postdep_objects=$lt_postdep_objects_CXX 23642predeps=$lt_predeps_CXX 23643postdeps=$lt_postdeps_CXX 23644 23645# The library search path used internally by the compiler when linking 23646# a shared library. 23647compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23648 23649# ### END LIBTOOL TAG CONFIG: CXX 23650_LT_EOF 23651 23652 ;; 23653 23654 esac 23655done # for ac_tag 23656 23657 23658as_fn_exit 0 23659_ACEOF 23660ac_clean_files=$ac_clean_files_save 23661 23662test $ac_write_fail = 0 || 23663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23664 23665 23666# configure is writing to config.log, and then calls config.status. 23667# config.status does its own redirection, appending to config.log. 23668# Unfortunately, on DOS this fails, as config.log is still kept open 23669# by configure, so config.status won't be able to write to it; its 23670# output is simply discarded. So we exec the FD to /dev/null, 23671# effectively closing config.log, so it can be properly (re)opened and 23672# appended to by config.status. When coming back to configure, we 23673# need to make the FD available again. 23674if test "$no_create" != yes; then 23675 ac_cs_success=: 23676 ac_config_status_args= 23677 test "$silent" = yes && 23678 ac_config_status_args="$ac_config_status_args --quiet" 23679 exec 5>/dev/null 23680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23681 exec 5>>config.log 23682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23683 # would make configure fail if this is the last instruction. 23684 $ac_cs_success || as_fn_exit 1 23685fi 23686if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23688$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23689fi 23690 23691 23692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 23693-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- 23694 23695 Configuration summary : 23696 23697 FLAC version : ........................ ${VERSION} 23698 23699 Host CPU : ............................ ${host_cpu} 23700 Host Vendor : ......................... ${host_vendor} 23701 Host OS : ............................. ${host_os} 23702" >&5 23703$as_echo " 23704-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- 23705 23706 Configuration summary : 23707 23708 FLAC version : ........................ ${VERSION} 23709 23710 Host CPU : ............................ ${host_cpu} 23711 Host Vendor : ......................... ${host_vendor} 23712 Host OS : ............................. ${host_os} 23713" >&6; } 23714 23715 echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}" 23716if test x$ac_cv_c_compiler_gnu = xyes ; then 23717 echo " GCC version : ......................... ${GCC_VERSION}" 23718fi 23719 echo " Compiler is Clang : ................... ${xiph_cv_c_compiler_clang}" 23720 echo " SSE optimizations : ................... ${sse_os}" 23721 echo " Asm optimizations : ................... ${asm_optimisation}" 23722 echo " Ogg/FLAC support : .................... ${have_ogg}" 23723echo 23724