1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for opus-tools 0.2. 4# 5# Report bugs to <opus@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 opus@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='opus-tools' 592PACKAGE_TARNAME='opus-tools' 593PACKAGE_VERSION='0.2' 594PACKAGE_STRING='opus-tools 0.2' 595PACKAGE_BUGREPORT='opus@xiph.org' 596PACKAGE_URL='' 597 598ac_unique_file="src/opusenc.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 639OPUSRTP_LIBS 640FLAC_LIBS 641FLAC_CFLAGS 642LIBOPUSENC_LIBS 643LIBOPUSENC_CFLAGS 644OPUSURL_LIBS 645OPUSURL_CFLAGS 646OPUSFILE_LIBS 647OPUSFILE_CFLAGS 648OPUS_LIBS 649OPUS_CFLAGS 650OGG_LIBS 651OGG_CFLAGS 652PKG_CONFIG_LIBDIR 653PKG_CONFIG_PATH 654PKG_CONFIG 655HAVE_PKG_CONFIG 656LIBM 657LT_SYS_LIBRARY_PATH 658OTOOL64 659OTOOL 660LIPO 661NMEDIT 662DSYMUTIL 663MANIFEST_TOOL 664RANLIB 665ac_ct_AR 666AR 667DLLTOOL 668OBJDUMP 669LN_S 670NM 671ac_ct_DUMPBIN 672DUMPBIN 673LD 674FGREP 675SED 676LIBTOOL 677EGREP 678GREP 679CPP 680am__fastdepCC_FALSE 681am__fastdepCC_TRUE 682CCDEPMODE 683am__nodep 684AMDEPBACKSLASH 685AMDEP_FALSE 686AMDEP_TRUE 687am__quote 688am__include 689DEPDIR 690OBJEXT 691EXEEXT 692ac_ct_CC 693CPPFLAGS 694LDFLAGS 695CFLAGS 696CC 697host_os 698host_vendor 699host_cpu 700host 701build_os 702build_vendor 703build_cpu 704build 705MAINT 706MAINTAINER_MODE_FALSE 707MAINTAINER_MODE_TRUE 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_silent_rules 777enable_maintainer_mode 778enable_dependency_tracking 779enable_shared 780enable_static 781with_pic 782enable_fast_install 783with_aix_soname 784with_gnu_ld 785with_sysroot 786enable_libtool_lock 787enable_assertions 788enable_sse 789with_ogg 790with_ogg_libraries 791with_ogg_includes 792enable_oggtest 793with_opus 794with_opus_libraries 795with_opus_includes 796enable_opustest 797with_opusfile 798with_opusfile_libraries 799with_opusfile_includes 800enable_opusfiletest 801with_libopusenc 802with_libopusenc_libraries 803with_libopusenc_includes 804enable_libopusenctest 805with_flac 806enable_stack_protector 807enable_pie 808' 809 ac_precious_vars='build_alias 810host_alias 811target_alias 812CC 813CFLAGS 814LDFLAGS 815LIBS 816CPPFLAGS 817CPP 818LT_SYS_LIBRARY_PATH 819PKG_CONFIG 820PKG_CONFIG_PATH 821PKG_CONFIG_LIBDIR 822OGG_CFLAGS 823OGG_LIBS 824OPUS_CFLAGS 825OPUS_LIBS 826OPUSFILE_CFLAGS 827OPUSFILE_LIBS 828OPUSURL_CFLAGS 829OPUSURL_LIBS 830LIBOPUSENC_CFLAGS 831LIBOPUSENC_LIBS 832FLAC_CFLAGS 833FLAC_LIBS' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures opus-tools 0.2 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/opus-tools] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of opus-tools 0.2:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --disable-maintainer-mode 1455 disable make rules and dependencies not useful (and 1456 sometimes confusing) to the casual installer 1457 --enable-dependency-tracking 1458 do not reject slow dependency extractors 1459 --disable-dependency-tracking 1460 speeds up one-time build 1461 --enable-shared[=PKGS] build shared libraries [default=yes] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --enable-assertions enable additional software error checking 1467 --enable-sse Build binaries that require SSE 1468 --disable-oggtest Do not try to compile and run a test Ogg program 1469 --disable-opustest Do not try to compile and run a test opus program 1470 --disable-opusfiletest Do not try to compile and run a test opusfile 1471 program 1472 --disable-libopusenctest 1473 Do not try to compile and run a test libopusenc 1474 program 1475 --disable-stack-protector 1476 Disable compiler stack hardening 1477 --disable-pie Disable PIE/RELRO hardening 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1483 both] 1484 --with-aix-soname=aix|svr4|both 1485 shared library versioning (aka "SONAME") variant to 1486 provide on AIX, [default=aix]. 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1489 compiler's sysroot if not specified). 1490 --with-ogg=PFX Prefix where libogg is installed (optional) 1491 --with-ogg-libraries=DIR 1492 Directory where libogg library is installed 1493 (optional) 1494 --with-ogg-includes=DIR Directory where libogg header files are installed 1495 (optional) 1496 --with-opus=PFX Prefix where opus is installed (optional) 1497 --with-opus-libraries=DIR 1498 Directory where the opus library is installed 1499 (optional) 1500 --with-opus-includes=DIR 1501 Directory where the opus header files are installed 1502 (optional) 1503 --with-opusfile=PFX Prefix where opusfile is installed (optional) 1504 --with-opusfile-libraries=DIR 1505 Directory where the opusfile library is installed 1506 (optional) 1507 --with-opusfile-includes=DIR 1508 Directory where the opusfile header files are 1509 installed (optional) 1510 --with-libopusenc=PFX Prefix where libopusenc is installed (optional) 1511 --with-libopusenc-libraries=DIR 1512 Directory where libopusenc library is installed 1513 (optional) 1514 --with-libopusenc-includes=DIR 1515 Directory where libopusenc header files are 1516 installed (optional) 1517 --without-flac disable FLAC support 1518 1519Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 CPP C preprocessor 1528 LT_SYS_LIBRARY_PATH 1529 User-defined run-time library search path. 1530 PKG_CONFIG path to pkg-config utility 1531 PKG_CONFIG_PATH 1532 directories to add to pkg-config's search path 1533 PKG_CONFIG_LIBDIR 1534 path overriding pkg-config's built-in search path 1535 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config 1536 OGG_LIBS linker flags for OGG, overriding pkg-config 1537 OPUS_CFLAGS C compiler flags for OPUS, overriding pkg-config 1538 OPUS_LIBS linker flags for OPUS, overriding pkg-config 1539 OPUSFILE_CFLAGS 1540 C compiler flags for OPUSFILE, overriding pkg-config 1541 OPUSFILE_LIBS 1542 linker flags for OPUSFILE, overriding pkg-config 1543 OPUSURL_CFLAGS 1544 C compiler flags for OPUSURL, overriding pkg-config 1545 OPUSURL_LIBS 1546 linker flags for OPUSURL, overriding pkg-config 1547 LIBOPUSENC_CFLAGS 1548 C compiler flags for LIBOPUSENC, overriding pkg-config 1549 LIBOPUSENC_LIBS 1550 linker flags for LIBOPUSENC, overriding pkg-config 1551 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config 1552 FLAC_LIBS linker flags for FLAC, overriding pkg-config 1553 1554Use these variables to override the choices made by `configure' or to help 1555it to find libraries and programs with nonstandard names/locations. 1556 1557Report bugs to <opus@xiph.org>. 1558_ACEOF 1559ac_status=$? 1560fi 1561 1562if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || 1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1567 continue 1568 ac_builddir=. 1569 1570case "$ac_dir" in 1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572*) 1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1574 # A ".." for each directory in $ac_dir_suffix. 1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1576 case $ac_top_builddir_sub in 1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1579 esac ;; 1580esac 1581ac_abs_top_builddir=$ac_pwd 1582ac_abs_builddir=$ac_pwd$ac_dir_suffix 1583# for backward compatibility: 1584ac_top_builddir=$ac_top_build_prefix 1585 1586case $srcdir in 1587 .) # We are building in place. 1588 ac_srcdir=. 1589 ac_top_srcdir=$ac_top_builddir_sub 1590 ac_abs_top_srcdir=$ac_pwd ;; 1591 [\\/]* | ?:[\\/]* ) # Absolute name. 1592 ac_srcdir=$srcdir$ac_dir_suffix; 1593 ac_top_srcdir=$srcdir 1594 ac_abs_top_srcdir=$srcdir ;; 1595 *) # Relative name. 1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1597 ac_top_srcdir=$ac_top_build_prefix$srcdir 1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1599esac 1600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1601 1602 cd "$ac_dir" || { ac_status=$?; continue; } 1603 # Check for guested configure. 1604 if test -f "$ac_srcdir/configure.gnu"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1607 elif test -f "$ac_srcdir/configure"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure" --help=recursive 1610 else 1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1612 fi || ac_status=$? 1613 cd "$ac_pwd" || { ac_status=$?; break; } 1614 done 1615fi 1616 1617test -n "$ac_init_help" && exit $ac_status 1618if $ac_init_version; then 1619 cat <<\_ACEOF 1620opus-tools configure 0.2 1621generated by GNU Autoconf 2.69 1622 1623Copyright (C) 2012 Free Software Foundation, Inc. 1624This configure script is free software; the Free Software Foundation 1625gives unlimited permission to copy, distribute and modify it. 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1710# ------------------------------------------------------- 1711# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1712# the include files in INCLUDES and setting the cache variable VAR 1713# accordingly. 1714ac_fn_c_check_header_mongrel () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if eval \${$3+:} false; then : 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719$as_echo_n "checking for $2... " >&6; } 1720if eval \${$3+:} false; then : 1721 $as_echo_n "(cached) " >&6 1722fi 1723eval ac_res=\$$3 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725$as_echo "$ac_res" >&6; } 1726else 1727 # Is the header compilable? 1728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1729$as_echo_n "checking $2 usability... " >&6; } 1730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO"; then : 1736 ac_header_compiler=yes 1737else 1738 ac_header_compiler=no 1739fi 1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1742$as_echo "$ac_header_compiler" >&6; } 1743 1744# Is the header present? 1745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1746$as_echo_n "checking $2 presence... " >&6; } 1747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749#include <$2> 1750_ACEOF 1751if ac_fn_c_try_cpp "$LINENO"; then : 1752 ac_header_preproc=yes 1753else 1754 ac_header_preproc=no 1755fi 1756rm -f conftest.err conftest.i conftest.$ac_ext 1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1758$as_echo "$ac_header_preproc" >&6; } 1759 1760# So? What about this header? 1761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1762 yes:no: ) 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1764$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1766$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1767 ;; 1768 no:yes:* ) 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1770$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1772$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1774$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1776$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1779( $as_echo "## ---------------------------- ## 1780## Report this to opus@xiph.org ## 1781## ---------------------------- ##" 1782 ) | sed "s/^/$as_me: WARNING: /" >&2 1783 ;; 1784esac 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 eval "$3=\$ac_header_compiler" 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795fi 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_header_mongrel 1799 1800# ac_fn_c_try_run LINENO 1801# ---------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1803# that executables *can* be run. 1804ac_fn_c_try_run () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1818 { { case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_try") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; }; }; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: program exited with status $ac_status" >&5 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=$ac_status 1835fi 1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_run 1841 1842# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1843# ------------------------------------------------------- 1844# Tests whether HEADER exists and can be compiled using the include files in 1845# INCLUDES, setting the cache variable VAR accordingly. 1846ac_fn_c_check_header_compile () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856$4 1857#include <$2> 1858_ACEOF 1859if ac_fn_c_try_compile "$LINENO"; then : 1860 eval "$3=yes" 1861else 1862 eval "$3=no" 1863fi 1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1865fi 1866eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868$as_echo "$ac_res" >&6; } 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1871} # ac_fn_c_check_header_compile 1872 1873# ac_fn_c_try_link LINENO 1874# ----------------------- 1875# Try to link conftest.$ac_ext, and return whether this succeeded. 1876ac_fn_c_try_link () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 rm -f conftest.$ac_objext conftest$ac_exeext 1880 if { { ac_try="$ac_link" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_link") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { 1896 test -z "$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 } && test -s conftest$ac_exeext && { 1899 test "$cross_compiling" = yes || 1900 test -x conftest$ac_exeext 1901 }; then : 1902 ac_retval=0 1903else 1904 $as_echo "$as_me: failed program was:" >&5 1905sed 's/^/| /' conftest.$ac_ext >&5 1906 1907 ac_retval=1 1908fi 1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1911 # interfere with the next link command; also delete a directory that is 1912 # left behind by Apple's compiler. We do this before executing the actions. 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_c_try_link 1918 1919# ac_fn_c_check_func LINENO FUNC VAR 1920# ---------------------------------- 1921# Tests whether FUNC exists, setting the cache variable VAR accordingly 1922ac_fn_c_check_func () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929else 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1934#define $2 innocuous_$2 1935 1936/* System header to define __stub macros and hopefully few prototypes, 1937 which can conflict with char $2 (); below. 1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1939 <limits.h> exists even on freestanding compilers. */ 1940 1941#ifdef __STDC__ 1942# include <limits.h> 1943#else 1944# include <assert.h> 1945#endif 1946 1947#undef $2 1948 1949/* Override any GCC internal prototype to avoid an error. 1950 Use char because int might match the return type of a GCC 1951 builtin and then its argument prototype would still apply. */ 1952#ifdef __cplusplus 1953extern "C" 1954#endif 1955char $2 (); 1956/* The GNU C library defines this for functions which it implements 1957 to always fail with ENOSYS. Some functions are actually named 1958 something starting with __ and the normal name is an alias. */ 1959#if defined __stub_$2 || defined __stub___$2 1960choke me 1961#endif 1962 1963int 1964main () 1965{ 1966return $2 (); 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_link "$LINENO"; then : 1972 eval "$3=yes" 1973else 1974 eval "$3=no" 1975fi 1976rm -f core conftest.err conftest.$ac_objext \ 1977 conftest$ac_exeext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_func 1985cat >config.log <<_ACEOF 1986This file contains any messages produced by compilers while 1987running configure, to aid debugging if configure makes a mistake. 1988 1989It was created by opus-tools $as_me 0.2, which was 1990generated by GNU Autoconf 2.69. Invocation command line was 1991 1992 $ $0 $@ 1993 1994_ACEOF 1995exec 5>>config.log 1996{ 1997cat <<_ASUNAME 1998## --------- ## 1999## Platform. ## 2000## --------- ## 2001 2002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2003uname -m = `(uname -m) 2>/dev/null || echo unknown` 2004uname -r = `(uname -r) 2>/dev/null || echo unknown` 2005uname -s = `(uname -s) 2>/dev/null || echo unknown` 2006uname -v = `(uname -v) 2>/dev/null || echo unknown` 2007 2008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2009/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2010 2011/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2012/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2014/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2015/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2016/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2017/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2018 2019_ASUNAME 2020 2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2022for as_dir in $PATH 2023do 2024 IFS=$as_save_IFS 2025 test -z "$as_dir" && as_dir=. 2026 $as_echo "PATH: $as_dir" 2027 done 2028IFS=$as_save_IFS 2029 2030} >&5 2031 2032cat >&5 <<_ACEOF 2033 2034 2035## ----------- ## 2036## Core tests. ## 2037## ----------- ## 2038 2039_ACEOF 2040 2041 2042# Keep a trace of the command line. 2043# Strip out --no-create and --no-recursion so they do not pile up. 2044# Strip out --silent because we don't want to record it for future runs. 2045# Also quote any args containing shell meta-characters. 2046# Make two passes to allow for proper duplicate-argument suppression. 2047ac_configure_args= 2048ac_configure_args0= 2049ac_configure_args1= 2050ac_must_keep_next=false 2051for ac_pass in 1 2 2052do 2053 for ac_arg 2054 do 2055 case $ac_arg in 2056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2058 | -silent | --silent | --silen | --sile | --sil) 2059 continue ;; 2060 *\'*) 2061 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2062 esac 2063 case $ac_pass in 2064 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2065 2) 2066 as_fn_append ac_configure_args1 " '$ac_arg'" 2067 if test $ac_must_keep_next = true; then 2068 ac_must_keep_next=false # Got value, back to normal. 2069 else 2070 case $ac_arg in 2071 *=* | --config-cache | -C | -disable-* | --disable-* \ 2072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2074 | -with-* | --with-* | -without-* | --without-* | --x) 2075 case "$ac_configure_args0 " in 2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2077 esac 2078 ;; 2079 -* ) ac_must_keep_next=true ;; 2080 esac 2081 fi 2082 as_fn_append ac_configure_args " '$ac_arg'" 2083 ;; 2084 esac 2085 done 2086done 2087{ ac_configure_args0=; unset ac_configure_args0;} 2088{ ac_configure_args1=; unset ac_configure_args1;} 2089 2090# When interrupted or exit'd, cleanup temporary files, and complete 2091# config.log. We remove comments because anyway the quotes in there 2092# would cause problems or look ugly. 2093# WARNING: Use '\'' to represent an apostrophe within the trap. 2094# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2095trap 'exit_status=$? 2096 # Save into config.log some information that might help in debugging. 2097 { 2098 echo 2099 2100 $as_echo "## ---------------- ## 2101## Cache variables. ## 2102## ---------------- ##" 2103 echo 2104 # The following way of writing the cache mishandles newlines in values, 2105( 2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2107 eval ac_val=\$$ac_var 2108 case $ac_val in #( 2109 *${as_nl}*) 2110 case $ac_var in #( 2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2113 esac 2114 case $ac_var in #( 2115 _ | IFS | as_nl) ;; #( 2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2117 *) { eval $ac_var=; unset $ac_var;} ;; 2118 esac ;; 2119 esac 2120 done 2121 (set) 2>&1 | 2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2123 *${as_nl}ac_space=\ *) 2124 sed -n \ 2125 "s/'\''/'\''\\\\'\'''\''/g; 2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2127 ;; #( 2128 *) 2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2130 ;; 2131 esac | 2132 sort 2133) 2134 echo 2135 2136 $as_echo "## ----------------- ## 2137## Output variables. ## 2138## ----------------- ##" 2139 echo 2140 for ac_var in $ac_subst_vars 2141 do 2142 eval ac_val=\$$ac_var 2143 case $ac_val in 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2145 esac 2146 $as_echo "$ac_var='\''$ac_val'\''" 2147 done | sort 2148 echo 2149 2150 if test -n "$ac_subst_files"; then 2151 $as_echo "## ------------------- ## 2152## File substitutions. ## 2153## ------------------- ##" 2154 echo 2155 for ac_var in $ac_subst_files 2156 do 2157 eval ac_val=\$$ac_var 2158 case $ac_val in 2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2160 esac 2161 $as_echo "$ac_var='\''$ac_val'\''" 2162 done | sort 2163 echo 2164 fi 2165 2166 if test -s confdefs.h; then 2167 $as_echo "## ----------- ## 2168## confdefs.h. ## 2169## ----------- ##" 2170 echo 2171 cat confdefs.h 2172 echo 2173 fi 2174 test "$ac_signal" != 0 && 2175 $as_echo "$as_me: caught signal $ac_signal" 2176 $as_echo "$as_me: exit $exit_status" 2177 } >&5 2178 rm -f core *.core core.conftest.* && 2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2180 exit $exit_status 2181' 0 2182for ac_signal in 1 2 13 15; do 2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2184done 2185ac_signal=0 2186 2187# confdefs.h avoids OS command line length limits that DEFS can exceed. 2188rm -f -r conftest* confdefs.h 2189 2190$as_echo "/* confdefs.h */" > confdefs.h 2191 2192# Predefined preprocessor variables. 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_NAME "$PACKAGE_NAME" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_VERSION "$PACKAGE_VERSION" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_STRING "$PACKAGE_STRING" 2208_ACEOF 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2212_ACEOF 2213 2214cat >>confdefs.h <<_ACEOF 2215#define PACKAGE_URL "$PACKAGE_URL" 2216_ACEOF 2217 2218 2219# Let the site file select an alternate cache file if it wants to. 2220# Prefer an explicitly selected file to automatically selected ones. 2221ac_site_file1=NONE 2222ac_site_file2=NONE 2223if test -n "$CONFIG_SITE"; then 2224 # We do not want a PATH search for config.site. 2225 case $CONFIG_SITE in #(( 2226 -*) ac_site_file1=./$CONFIG_SITE;; 2227 */*) ac_site_file1=$CONFIG_SITE;; 2228 *) ac_site_file1=./$CONFIG_SITE;; 2229 esac 2230elif test "x$prefix" != xNONE; then 2231 ac_site_file1=$prefix/share/config.site 2232 ac_site_file2=$prefix/etc/config.site 2233else 2234 ac_site_file1=$ac_default_prefix/share/config.site 2235 ac_site_file2=$ac_default_prefix/etc/config.site 2236fi 2237for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2238do 2239 test "x$ac_site_file" = xNONE && continue 2240 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2242$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2243 sed 's/^/| /' "$ac_site_file" >&5 2244 . "$ac_site_file" \ 2245 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2247as_fn_error $? "failed to load site script $ac_site_file 2248See \`config.log' for more details" "$LINENO" 5; } 2249 fi 2250done 2251 2252if test -r "$cache_file"; then 2253 # Some versions of bash will fail to source /dev/null (special files 2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2255 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2257$as_echo "$as_me: loading cache $cache_file" >&6;} 2258 case $cache_file in 2259 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2260 *) . "./$cache_file";; 2261 esac 2262 fi 2263else 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2265$as_echo "$as_me: creating cache $cache_file" >&6;} 2266 >$cache_file 2267fi 2268 2269# Check that the precious variables saved in the cache have kept the same 2270# value. 2271ac_cache_corrupted=false 2272for ac_var in $ac_precious_vars; do 2273 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2274 eval ac_new_set=\$ac_env_${ac_var}_set 2275 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2276 eval ac_new_val=\$ac_env_${ac_var}_value 2277 case $ac_old_set,$ac_new_set in 2278 set,) 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2280$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2281 ac_cache_corrupted=: ;; 2282 ,set) 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2284$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2285 ac_cache_corrupted=: ;; 2286 ,);; 2287 *) 2288 if test "x$ac_old_val" != "x$ac_new_val"; then 2289 # differences in whitespace do not lead to failure. 2290 ac_old_val_w=`echo x $ac_old_val` 2291 ac_new_val_w=`echo x $ac_new_val` 2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2294$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2295 ac_cache_corrupted=: 2296 else 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2298$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2299 eval $ac_var=\$ac_old_val 2300 fi 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2302$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2304$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2305 fi;; 2306 esac 2307 # Pass precious variables to config.status. 2308 if test "$ac_new_set" = set; then 2309 case $ac_new_val in 2310 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2311 *) ac_arg=$ac_var=$ac_new_val ;; 2312 esac 2313 case " $ac_configure_args " in 2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2315 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2316 esac 2317 fi 2318done 2319if $ac_cache_corrupted; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2323$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2324 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2325fi 2326## -------------------- ## 2327## Main body of script. ## 2328## -------------------- ## 2329 2330ac_ext=c 2331ac_cpp='$CPP $CPPFLAGS' 2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2334ac_compiler_gnu=$ac_cv_c_compiler_gnu 2335 2336 2337 2338 2339 2340# Check whether --enable-silent-rules was given. 2341if test "${enable_silent_rules+set}" = set; then : 2342 enableval=$enable_silent_rules; 2343fi 2344 2345case $enable_silent_rules in # ((( 2346 yes) AM_DEFAULT_VERBOSITY=0;; 2347 no) AM_DEFAULT_VERBOSITY=1;; 2348 *) AM_DEFAULT_VERBOSITY=0;; 2349esac 2350am_make=${MAKE-make} 2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2352$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2353if ${am_cv_make_support_nested_variables+:} false; then : 2354 $as_echo_n "(cached) " >&6 2355else 2356 if $as_echo 'TRUE=$(BAR$(V)) 2357BAR0=false 2358BAR1=true 2359V=1 2360am__doit: 2361 @$(TRUE) 2362.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2363 am_cv_make_support_nested_variables=yes 2364else 2365 am_cv_make_support_nested_variables=no 2366fi 2367fi 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2369$as_echo "$am_cv_make_support_nested_variables" >&6; } 2370if test $am_cv_make_support_nested_variables = yes; then 2371 AM_V='$(V)' 2372 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2373else 2374 AM_V=$AM_DEFAULT_VERBOSITY 2375 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2376fi 2377AM_BACKSLASH='\' 2378 2379 2380am__api_version='1.15' 2381 2382ac_aux_dir= 2383for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2384 if test -f "$ac_dir/install-sh"; then 2385 ac_aux_dir=$ac_dir 2386 ac_install_sh="$ac_aux_dir/install-sh -c" 2387 break 2388 elif test -f "$ac_dir/install.sh"; then 2389 ac_aux_dir=$ac_dir 2390 ac_install_sh="$ac_aux_dir/install.sh -c" 2391 break 2392 elif test -f "$ac_dir/shtool"; then 2393 ac_aux_dir=$ac_dir 2394 ac_install_sh="$ac_aux_dir/shtool install -c" 2395 break 2396 fi 2397done 2398if test -z "$ac_aux_dir"; then 2399 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2400fi 2401 2402# These three variables are undocumented and unsupported, 2403# and are intended to be withdrawn in a future Autoconf release. 2404# They can cause serious problems if a builder's source tree is in a directory 2405# whose full name contains unusual characters. 2406ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2407ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2408ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2409 2410 2411# Find a good install program. We prefer a C program (faster), 2412# so one script is as good as another. But avoid the broken or 2413# incompatible versions: 2414# SysV /etc/install, /usr/sbin/install 2415# SunOS /usr/etc/install 2416# IRIX /sbin/install 2417# AIX /bin/install 2418# AmigaOS /C/install, which installs bootblocks on floppy discs 2419# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2420# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2421# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2422# OS/2's system install, which has a completely different semantic 2423# ./install, which can be erroneously created by make from ./install.sh. 2424# Reject install programs that cannot install multiple files. 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2426$as_echo_n "checking for a BSD-compatible install... " >&6; } 2427if test -z "$INSTALL"; then 2428if ${ac_cv_path_install+:} false; then : 2429 $as_echo_n "(cached) " >&6 2430else 2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2432for as_dir in $PATH 2433do 2434 IFS=$as_save_IFS 2435 test -z "$as_dir" && as_dir=. 2436 # Account for people who put trailing slashes in PATH elements. 2437case $as_dir/ in #(( 2438 ./ | .// | /[cC]/* | \ 2439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2441 /usr/ucb/* ) ;; 2442 *) 2443 # OSF1 and SCO ODT 3.0 have their own names for install. 2444 # Don't use installbsd from OSF since it installs stuff as root 2445 # by default. 2446 for ac_prog in ginstall scoinst install; do 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2449 if test $ac_prog = install && 2450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2451 # AIX install. It has an incompatible calling convention. 2452 : 2453 elif test $ac_prog = install && 2454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2455 # program-specific install script used by HP pwplus--don't use. 2456 : 2457 else 2458 rm -rf conftest.one conftest.two conftest.dir 2459 echo one > conftest.one 2460 echo two > conftest.two 2461 mkdir conftest.dir 2462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2463 test -s conftest.one && test -s conftest.two && 2464 test -s conftest.dir/conftest.one && 2465 test -s conftest.dir/conftest.two 2466 then 2467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2468 break 3 2469 fi 2470 fi 2471 fi 2472 done 2473 done 2474 ;; 2475esac 2476 2477 done 2478IFS=$as_save_IFS 2479 2480rm -rf conftest.one conftest.two conftest.dir 2481 2482fi 2483 if test "${ac_cv_path_install+set}" = set; then 2484 INSTALL=$ac_cv_path_install 2485 else 2486 # As a last resort, use the slow shell script. Don't cache a 2487 # value for INSTALL within a source directory, because that will 2488 # break other packages using the cache if that directory is 2489 # removed, or if the value is a relative name. 2490 INSTALL=$ac_install_sh 2491 fi 2492fi 2493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2494$as_echo "$INSTALL" >&6; } 2495 2496# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2497# It thinks the first close brace ends the variable substitution. 2498test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2499 2500test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2501 2502test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2503 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2505$as_echo_n "checking whether build environment is sane... " >&6; } 2506# Reject unsafe characters in $srcdir or the absolute working directory 2507# name. Accept space and tab only in the latter. 2508am_lf=' 2509' 2510case `pwd` in 2511 *[\\\"\#\$\&\'\`$am_lf]*) 2512 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2513esac 2514case $srcdir in 2515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2516 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2517esac 2518 2519# Do 'set' in a subshell so we don't clobber the current shell's 2520# arguments. Must try -L first in case configure is actually a 2521# symlink; some systems play weird games with the mod time of symlinks 2522# (eg FreeBSD returns the mod time of the symlink's containing 2523# directory). 2524if ( 2525 am_has_slept=no 2526 for am_try in 1 2; do 2527 echo "timestamp, slept: $am_has_slept" > conftest.file 2528 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2529 if test "$*" = "X"; then 2530 # -L didn't work. 2531 set X `ls -t "$srcdir/configure" conftest.file` 2532 fi 2533 if test "$*" != "X $srcdir/configure conftest.file" \ 2534 && test "$*" != "X conftest.file $srcdir/configure"; then 2535 2536 # If neither matched, then we have a broken ls. This can happen 2537 # if, for instance, CONFIG_SHELL is bash and it inherits a 2538 # broken ls alias from the environment. This has actually 2539 # happened. Such a system could not be considered "sane". 2540 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2541 alias in your environment" "$LINENO" 5 2542 fi 2543 if test "$2" = conftest.file || test $am_try -eq 2; then 2544 break 2545 fi 2546 # Just in case. 2547 sleep 1 2548 am_has_slept=yes 2549 done 2550 test "$2" = conftest.file 2551 ) 2552then 2553 # Ok. 2554 : 2555else 2556 as_fn_error $? "newly created file is older than distributed files! 2557Check your system clock" "$LINENO" 5 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2560$as_echo "yes" >&6; } 2561# If we didn't sleep, we still need to ensure time stamps of config.status and 2562# generated files are strictly newer. 2563am_sleep_pid= 2564if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2565 ( sleep 1 ) & 2566 am_sleep_pid=$! 2567fi 2568 2569rm -f conftest.file 2570 2571test "$program_prefix" != NONE && 2572 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2573# Use a double $ so make ignores it. 2574test "$program_suffix" != NONE && 2575 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2576# Double any \ or $. 2577# By default was `s,x,x', remove it if useless. 2578ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2579program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2580 2581# Expand $ac_aux_dir to an absolute path. 2582am_aux_dir=`cd "$ac_aux_dir" && pwd` 2583 2584if test x"${MISSING+set}" != xset; then 2585 case $am_aux_dir in 2586 *\ * | *\ *) 2587 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2588 *) 2589 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2590 esac 2591fi 2592# Use eval to expand $SHELL 2593if eval "$MISSING --is-lightweight"; then 2594 am_missing_run="$MISSING " 2595else 2596 am_missing_run= 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2598$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2599fi 2600 2601if test x"${install_sh+set}" != xset; then 2602 case $am_aux_dir in 2603 *\ * | *\ *) 2604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2605 *) 2606 install_sh="\${SHELL} $am_aux_dir/install-sh" 2607 esac 2608fi 2609 2610# Installed binaries are usually stripped using 'strip' when the user 2611# run "make install-strip". However 'strip' might not be the right 2612# tool to use in cross-compilation environments, therefore Automake 2613# will honor the 'STRIP' environment variable to overrule this program. 2614if test "$cross_compiling" != no; then 2615 if test -n "$ac_tool_prefix"; then 2616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2617set dummy ${ac_tool_prefix}strip; ac_word=$2 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619$as_echo_n "checking for $ac_word... " >&6; } 2620if ${ac_cv_prog_STRIP+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 if test -n "$STRIP"; then 2624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638 done 2639IFS=$as_save_IFS 2640 2641fi 2642fi 2643STRIP=$ac_cv_prog_STRIP 2644if test -n "$STRIP"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2646$as_echo "$STRIP" >&6; } 2647else 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2649$as_echo "no" >&6; } 2650fi 2651 2652 2653fi 2654if test -z "$ac_cv_prog_STRIP"; then 2655 ac_ct_STRIP=$STRIP 2656 # Extract the first word of "strip", so it can be a program name with args. 2657set dummy strip; ac_word=$2 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659$as_echo_n "checking for $ac_word... " >&6; } 2660if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 if test -n "$ac_ct_STRIP"; then 2664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2673 ac_cv_prog_ac_ct_STRIP="strip" 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678 done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2684if test -n "$ac_ct_STRIP"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2686$as_echo "$ac_ct_STRIP" >&6; } 2687else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2689$as_echo "no" >&6; } 2690fi 2691 2692 if test "x$ac_ct_STRIP" = x; then 2693 STRIP=":" 2694 else 2695 case $cross_compiling:$ac_tool_warned in 2696yes:) 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2699ac_tool_warned=yes ;; 2700esac 2701 STRIP=$ac_ct_STRIP 2702 fi 2703else 2704 STRIP="$ac_cv_prog_STRIP" 2705fi 2706 2707fi 2708INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2709 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2711$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2712if test -z "$MKDIR_P"; then 2713 if ${ac_cv_path_mkdir+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_prog in mkdir gmkdir; do 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2724 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2725 'mkdir (GNU coreutils) '* | \ 2726 'mkdir (coreutils) '* | \ 2727 'mkdir (fileutils) '4.1*) 2728 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2729 break 3;; 2730 esac 2731 done 2732 done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737 2738 test -d ./--version && rmdir ./--version 2739 if test "${ac_cv_path_mkdir+set}" = set; then 2740 MKDIR_P="$ac_cv_path_mkdir -p" 2741 else 2742 # As a last resort, use the slow shell script. Don't cache a 2743 # value for MKDIR_P within a source directory, because that will 2744 # break other packages using the cache if that directory is 2745 # removed, or if the value is a relative name. 2746 MKDIR_P="$ac_install_sh -d" 2747 fi 2748fi 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2750$as_echo "$MKDIR_P" >&6; } 2751 2752for ac_prog in gawk mawk nawk awk 2753do 2754 # Extract the first word of "$ac_prog", so it can be a program name with args. 2755set dummy $ac_prog; ac_word=$2 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if ${ac_cv_prog_AWK+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$AWK"; then 2762 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2771 ac_cv_prog_AWK="$ac_prog" 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781AWK=$ac_cv_prog_AWK 2782if test -n "$AWK"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2784$as_echo "$AWK" >&6; } 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 2791 test -n "$AWK" && break 2792done 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2795$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2796set x ${MAKE-make} 2797ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2798if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 cat >conftest.make <<\_ACEOF 2802SHELL = /bin/sh 2803all: 2804 @echo '@@@%%%=$(MAKE)=@@@%%%' 2805_ACEOF 2806# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2807case `${MAKE-make} -f conftest.make 2>/dev/null` in 2808 *@@@%%%=?*=@@@%%%*) 2809 eval ac_cv_prog_make_${ac_make}_set=yes;; 2810 *) 2811 eval ac_cv_prog_make_${ac_make}_set=no;; 2812esac 2813rm -f conftest.make 2814fi 2815if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817$as_echo "yes" >&6; } 2818 SET_MAKE= 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822 SET_MAKE="MAKE=${MAKE-make}" 2823fi 2824 2825rm -rf .tst 2>/dev/null 2826mkdir .tst 2>/dev/null 2827if test -d .tst; then 2828 am__leading_dot=. 2829else 2830 am__leading_dot=_ 2831fi 2832rmdir .tst 2>/dev/null 2833 2834if test "`cd $srcdir && pwd`" != "`pwd`"; then 2835 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2836 # is not polluted with repeated "-I." 2837 am__isrc=' -I$(srcdir)' 2838 # test to see if srcdir already configured 2839 if test -f $srcdir/config.status; then 2840 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2841 fi 2842fi 2843 2844# test whether we have cygpath 2845if test -z "$CYGPATH_W"; then 2846 if (cygpath --version) >/dev/null 2>/dev/null; then 2847 CYGPATH_W='cygpath -w' 2848 else 2849 CYGPATH_W=echo 2850 fi 2851fi 2852 2853 2854# Define the identity of the package. 2855 PACKAGE='opus-tools' 2856 VERSION='0.2' 2857 2858 2859# Some tools Automake needs. 2860 2861ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2862 2863 2864AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2865 2866 2867AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2868 2869 2870AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2871 2872 2873MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2874 2875# For better backward compatibility. To be removed once Automake 1.9.x 2876# dies out for good. For more background, see: 2877# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2878# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2879mkdir_p='$(MKDIR_P)' 2880 2881# We need awk for the "check" target (and possibly the TAP driver). The 2882# system "awk" is bad on some platforms. 2883# Always define AMTAR for backward compatibility. Yes, it's still used 2884# in the wild :-( We should find a proper way to deprecate it ... 2885AMTAR='$${TAR-tar}' 2886 2887 2888# We'll loop over all known methods to create a tar archive until one works. 2889_am_tools='gnutar pax cpio none' 2890 2891am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2892 2893 2894 2895 2896 2897 2898# POSIX will say in a future version that running "rm -f" with no argument 2899# is OK; and we want to be able to make that assumption in our Makefile 2900# recipes. So use an aggressive probe to check that the usage we want is 2901# actually supported "in the wild" to an acceptable degree. 2902# See automake bug#10828. 2903# To make any issue more visible, cause the running configure to be aborted 2904# by default if the 'rm' program in use doesn't match our expectations; the 2905# user can still override this though. 2906if rm -f && rm -fr && rm -rf; then : OK; else 2907 cat >&2 <<'END' 2908Oops! 2909 2910Your 'rm' program seems unable to run without file operands specified 2911on the command line, even when the '-f' option is present. This is contrary 2912to the behaviour of most rm programs out there, and not conforming with 2913the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2914 2915Please tell bug-automake@gnu.org about your system, including the value 2916of your $PATH and any error possibly output before this message. This 2917can help us improve future automake versions. 2918 2919END 2920 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2921 echo 'Configuration will proceed anyway, since you have set the' >&2 2922 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2923 echo >&2 2924 else 2925 cat >&2 <<'END' 2926Aborting the configuration process, to ensure you take notice of the issue. 2927 2928You can download and install GNU coreutils to get an 'rm' implementation 2929that behaves properly: <http://www.gnu.org/software/coreutils/>. 2930 2931If you want to complete the configuration process using your problematic 2932'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2933to "yes", and re-run configure. 2934 2935END 2936 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2937 fi 2938fi 2939 2940 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2942$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2943 # Check whether --enable-maintainer-mode was given. 2944if test "${enable_maintainer_mode+set}" = set; then : 2945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2946else 2947 USE_MAINTAINER_MODE=yes 2948fi 2949 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2951$as_echo "$USE_MAINTAINER_MODE" >&6; } 2952 if test $USE_MAINTAINER_MODE = yes; then 2953 MAINTAINER_MODE_TRUE= 2954 MAINTAINER_MODE_FALSE='#' 2955else 2956 MAINTAINER_MODE_TRUE='#' 2957 MAINTAINER_MODE_FALSE= 2958fi 2959 2960 MAINT=$MAINTAINER_MODE_TRUE 2961 2962 2963 2964# Make sure we can run config.sub. 2965$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2966 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2967 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2969$as_echo_n "checking build system type... " >&6; } 2970if ${ac_cv_build+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 ac_build_alias=$build_alias 2974test "x$ac_build_alias" = x && 2975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2976test "x$ac_build_alias" = x && 2977 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2980 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2983$as_echo "$ac_cv_build" >&6; } 2984case $ac_cv_build in 2985*-*-*) ;; 2986*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2987esac 2988build=$ac_cv_build 2989ac_save_IFS=$IFS; IFS='-' 2990set x $ac_cv_build 2991shift 2992build_cpu=$1 2993build_vendor=$2 2994shift; shift 2995# Remember, the first character of IFS is used to create $*, 2996# except with old shells: 2997build_os=$* 2998IFS=$ac_save_IFS 2999case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3000 3001 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3003$as_echo_n "checking host system type... " >&6; } 3004if ${ac_cv_host+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test "x$host_alias" = x; then 3008 ac_cv_host=$ac_cv_build 3009else 3010 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3012fi 3013 3014fi 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3016$as_echo "$ac_cv_host" >&6; } 3017case $ac_cv_host in 3018*-*-*) ;; 3019*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3020esac 3021host=$ac_cv_host 3022ac_save_IFS=$IFS; IFS='-' 3023set x $ac_cv_host 3024shift 3025host_cpu=$1 3026host_vendor=$2 3027shift; shift 3028# Remember, the first character of IFS is used to create $*, 3029# except with old shells: 3030host_os=$* 3031IFS=$ac_save_IFS 3032case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3033 3034 3035DEPDIR="${am__leading_dot}deps" 3036 3037ac_config_commands="$ac_config_commands depfiles" 3038 3039 3040am_make=${MAKE-make} 3041cat > confinc << 'END' 3042am__doit: 3043 @echo this is the am__doit target 3044.PHONY: am__doit 3045END 3046# If we don't find an include directive, just comment out the code. 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3048$as_echo_n "checking for style of include used by $am_make... " >&6; } 3049am__include="#" 3050am__quote= 3051_am_result=none 3052# First try GNU make style include. 3053echo "include confinc" > confmf 3054# Ignore all kinds of additional output from 'make'. 3055case `$am_make -s -f confmf 2> /dev/null` in #( 3056*the\ am__doit\ target*) 3057 am__include=include 3058 am__quote= 3059 _am_result=GNU 3060 ;; 3061esac 3062# Now try BSD make style include. 3063if test "$am__include" = "#"; then 3064 echo '.include "confinc"' > confmf 3065 case `$am_make -s -f confmf 2> /dev/null` in #( 3066 *the\ am__doit\ target*) 3067 am__include=.include 3068 am__quote="\"" 3069 _am_result=BSD 3070 ;; 3071 esac 3072fi 3073 3074 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3076$as_echo "$_am_result" >&6; } 3077rm -f confinc confmf 3078 3079# Check whether --enable-dependency-tracking was given. 3080if test "${enable_dependency_tracking+set}" = set; then : 3081 enableval=$enable_dependency_tracking; 3082fi 3083 3084if test "x$enable_dependency_tracking" != xno; then 3085 am_depcomp="$ac_aux_dir/depcomp" 3086 AMDEPBACKSLASH='\' 3087 am__nodep='_no' 3088fi 3089 if test "x$enable_dependency_tracking" != xno; then 3090 AMDEP_TRUE= 3091 AMDEP_FALSE='#' 3092else 3093 AMDEP_TRUE='#' 3094 AMDEP_FALSE= 3095fi 3096 3097 3098ac_ext=c 3099ac_cpp='$CPP $CPPFLAGS' 3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102ac_compiler_gnu=$ac_cv_c_compiler_gnu 3103if test -n "$ac_tool_prefix"; then 3104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3105set dummy ${ac_tool_prefix}gcc; ac_word=$2 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107$as_echo_n "checking for $ac_word... " >&6; } 3108if ${ac_cv_prog_CC+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if test -n "$CC"; then 3112 ac_cv_prog_CC="$CC" # Let the user override the test. 3113else 3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 test -z "$as_dir" && as_dir=. 3119 for ac_exec_ext in '' $ac_executable_extensions; do 3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3121 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129fi 3130fi 3131CC=$ac_cv_prog_CC 3132if test -n "$CC"; then 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3134$as_echo "$CC" >&6; } 3135else 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3137$as_echo "no" >&6; } 3138fi 3139 3140 3141fi 3142if test -z "$ac_cv_prog_CC"; then 3143 ac_ct_CC=$CC 3144 # Extract the first word of "gcc", so it can be a program name with args. 3145set dummy gcc; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if ${ac_cv_prog_ac_ct_CC+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -n "$ac_ct_CC"; then 3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_exec_ext in '' $ac_executable_extensions; do 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3161 ac_cv_prog_ac_ct_CC="gcc" 3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3163 break 2 3164 fi 3165done 3166 done 3167IFS=$as_save_IFS 3168 3169fi 3170fi 3171ac_ct_CC=$ac_cv_prog_ac_ct_CC 3172if test -n "$ac_ct_CC"; then 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3174$as_echo "$ac_ct_CC" >&6; } 3175else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177$as_echo "no" >&6; } 3178fi 3179 3180 if test "x$ac_ct_CC" = x; then 3181 CC="" 3182 else 3183 case $cross_compiling:$ac_tool_warned in 3184yes:) 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3187ac_tool_warned=yes ;; 3188esac 3189 CC=$ac_ct_CC 3190 fi 3191else 3192 CC="$ac_cv_prog_CC" 3193fi 3194 3195if test -z "$CC"; then 3196 if test -n "$ac_tool_prefix"; then 3197 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3198set dummy ${ac_tool_prefix}cc; ac_word=$2 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3200$as_echo_n "checking for $ac_word... " >&6; } 3201if ${ac_cv_prog_CC+:} false; then : 3202 $as_echo_n "(cached) " >&6 3203else 3204 if test -n "$CC"; then 3205 ac_cv_prog_CC="$CC" # Let the user override the test. 3206else 3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 test -z "$as_dir" && as_dir=. 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3214 ac_cv_prog_CC="${ac_tool_prefix}cc" 3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219 done 3220IFS=$as_save_IFS 3221 3222fi 3223fi 3224CC=$ac_cv_prog_CC 3225if test -n "$CC"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3227$as_echo "$CC" >&6; } 3228else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231fi 3232 3233 3234 fi 3235fi 3236if test -z "$CC"; then 3237 # Extract the first word of "cc", so it can be a program name with args. 3238set dummy cc; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if ${ac_cv_prog_CC+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 if test -n "$CC"; then 3245 ac_cv_prog_CC="$CC" # Let the user override the test. 3246else 3247 ac_prog_rejected=no 3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3256 ac_prog_rejected=yes 3257 continue 3258 fi 3259 ac_cv_prog_CC="cc" 3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3261 break 2 3262 fi 3263done 3264 done 3265IFS=$as_save_IFS 3266 3267if test $ac_prog_rejected = yes; then 3268 # We found a bogon in the path, so make sure we never use it. 3269 set dummy $ac_cv_prog_CC 3270 shift 3271 if test $# != 0; then 3272 # We chose a different compiler from the bogus one. 3273 # However, it has the same basename, so the bogon will be chosen 3274 # first if we set CC to just the basename; use the full file name. 3275 shift 3276 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3277 fi 3278fi 3279fi 3280fi 3281CC=$ac_cv_prog_CC 3282if test -n "$CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3284$as_echo "$CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 3291fi 3292if test -z "$CC"; then 3293 if test -n "$ac_tool_prefix"; then 3294 for ac_prog in cl.exe 3295 do 3296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3297set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3299$as_echo_n "checking for $ac_word... " >&6; } 3300if ${ac_cv_prog_CC+:} false; then : 3301 $as_echo_n "(cached) " >&6 3302else 3303 if test -n "$CC"; then 3304 ac_cv_prog_CC="$CC" # Let the user override the test. 3305else 3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307for as_dir in $PATH 3308do 3309 IFS=$as_save_IFS 3310 test -z "$as_dir" && as_dir=. 3311 for ac_exec_ext in '' $ac_executable_extensions; do 3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321fi 3322fi 3323CC=$ac_cv_prog_CC 3324if test -n "$CC"; then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3326$as_echo "$CC" >&6; } 3327else 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3329$as_echo "no" >&6; } 3330fi 3331 3332 3333 test -n "$CC" && break 3334 done 3335fi 3336if test -z "$CC"; then 3337 ac_ct_CC=$CC 3338 for ac_prog in cl.exe 3339do 3340 # Extract the first word of "$ac_prog", so it can be a program name with args. 3341set dummy $ac_prog; ac_word=$2 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343$as_echo_n "checking for $ac_word... " >&6; } 3344if ${ac_cv_prog_ac_ct_CC+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 if test -n "$ac_ct_CC"; then 3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3349else 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_ac_ct_CC="$ac_prog" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361done 3362 done 3363IFS=$as_save_IFS 3364 3365fi 3366fi 3367ac_ct_CC=$ac_cv_prog_ac_ct_CC 3368if test -n "$ac_ct_CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3370$as_echo "$ac_ct_CC" >&6; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373$as_echo "no" >&6; } 3374fi 3375 3376 3377 test -n "$ac_ct_CC" && break 3378done 3379 3380 if test "x$ac_ct_CC" = x; then 3381 CC="" 3382 else 3383 case $cross_compiling:$ac_tool_warned in 3384yes:) 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3387ac_tool_warned=yes ;; 3388esac 3389 CC=$ac_ct_CC 3390 fi 3391fi 3392 3393fi 3394 3395 3396test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error $? "no acceptable C compiler found in \$PATH 3399See \`config.log' for more details" "$LINENO" 5; } 3400 3401# Provide some information about the compiler. 3402$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3403set X $ac_compile 3404ac_compiler=$2 3405for ac_option in --version -v -V -qversion; do 3406 { { ac_try="$ac_compiler $ac_option >&5" 3407case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412$as_echo "$ac_try_echo"; } >&5 3413 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3414 ac_status=$? 3415 if test -s conftest.err; then 3416 sed '10a\ 3417... rest of stderr output deleted ... 3418 10q' conftest.err >conftest.er1 3419 cat conftest.er1 >&5 3420 fi 3421 rm -f conftest.er1 conftest.err 3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 test $ac_status = 0; } 3424done 3425 3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437ac_clean_files_save=$ac_clean_files 3438ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3439# Try to create an executable without -o first, disregard a.out. 3440# It will help us diagnose broken compilers, and finding out an intuition 3441# of exeext. 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3443$as_echo_n "checking whether the C compiler works... " >&6; } 3444ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3445 3446# The possible output files: 3447ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3448 3449ac_rmfiles= 3450for ac_file in $ac_files 3451do 3452 case $ac_file in 3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3454 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3455 esac 3456done 3457rm -f $ac_rmfiles 3458 3459if { { ac_try="$ac_link_default" 3460case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463esac 3464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3465$as_echo "$ac_try_echo"; } >&5 3466 (eval "$ac_link_default") 2>&5 3467 ac_status=$? 3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3469 test $ac_status = 0; }; then : 3470 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3471# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3472# in a Makefile. We should not override ac_cv_exeext if it was cached, 3473# so that the user can short-circuit this test for compilers unknown to 3474# Autoconf. 3475for ac_file in $ac_files '' 3476do 3477 test -f "$ac_file" || continue 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3480 ;; 3481 [ab].out ) 3482 # We found the default executable, but exeext='' is most 3483 # certainly right. 3484 break;; 3485 *.* ) 3486 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3487 then :; else 3488 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3489 fi 3490 # We set ac_cv_exeext here because the later test for it is not 3491 # safe: cross compilers may not add the suffix if given an `-o' 3492 # argument, so we may need to know it at that point already. 3493 # Even if this section looks crufty: it has the advantage of 3494 # actually working. 3495 break;; 3496 * ) 3497 break;; 3498 esac 3499done 3500test "$ac_cv_exeext" = no && ac_cv_exeext= 3501 3502else 3503 ac_file='' 3504fi 3505if test -z "$ac_file"; then : 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3507$as_echo "no" >&6; } 3508$as_echo "$as_me: failed program was:" >&5 3509sed 's/^/| /' conftest.$ac_ext >&5 3510 3511{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error 77 "C compiler cannot create executables 3514See \`config.log' for more details" "$LINENO" 5; } 3515else 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3517$as_echo "yes" >&6; } 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3520$as_echo_n "checking for C compiler default output file name... " >&6; } 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3522$as_echo "$ac_file" >&6; } 3523ac_exeext=$ac_cv_exeext 3524 3525rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3526ac_clean_files=$ac_clean_files_save 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3528$as_echo_n "checking for suffix of executables... " >&6; } 3529if { { ac_try="$ac_link" 3530case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533esac 3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3535$as_echo "$ac_try_echo"; } >&5 3536 (eval "$ac_link") 2>&5 3537 ac_status=$? 3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3539 test $ac_status = 0; }; then : 3540 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3541# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3542# work properly (i.e., refer to `conftest.exe'), while it won't with 3543# `rm'. 3544for ac_file in conftest.exe conftest conftest.*; do 3545 test -f "$ac_file" || continue 3546 case $ac_file in 3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3549 break;; 3550 * ) break;; 3551 esac 3552done 3553else 3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3557See \`config.log' for more details" "$LINENO" 5; } 3558fi 3559rm -f conftest conftest$ac_cv_exeext 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3561$as_echo "$ac_cv_exeext" >&6; } 3562 3563rm -f conftest.$ac_ext 3564EXEEXT=$ac_cv_exeext 3565ac_exeext=$EXEEXT 3566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568#include <stdio.h> 3569int 3570main () 3571{ 3572FILE *f = fopen ("conftest.out", "w"); 3573 return ferror (f) || fclose (f) != 0; 3574 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579ac_clean_files="$ac_clean_files conftest.out" 3580# Check that the compiler produces executables we can run. If not, either 3581# the compiler is broken, or we cross compile. 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3583$as_echo_n "checking whether we are cross compiling... " >&6; } 3584if test "$cross_compiling" != yes; then 3585 { { ac_try="$ac_link" 3586case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589esac 3590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591$as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_link") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; } 3596 if { ac_try='./conftest$ac_cv_exeext' 3597 { { case "(($ac_try" in 3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3599 *) ac_try_echo=$ac_try;; 3600esac 3601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3602$as_echo "$ac_try_echo"; } >&5 3603 (eval "$ac_try") 2>&5 3604 ac_status=$? 3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3606 test $ac_status = 0; }; }; then 3607 cross_compiling=no 3608 else 3609 if test "$cross_compiling" = maybe; then 3610 cross_compiling=yes 3611 else 3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3614as_fn_error $? "cannot run C compiled programs. 3615If you meant to cross compile, use \`--host'. 3616See \`config.log' for more details" "$LINENO" 5; } 3617 fi 3618 fi 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3621$as_echo "$cross_compiling" >&6; } 3622 3623rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3624ac_clean_files=$ac_clean_files_save 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3626$as_echo_n "checking for suffix of object files... " >&6; } 3627if ${ac_cv_objext+:} false; then : 3628 $as_echo_n "(cached) " >&6 3629else 3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632 3633int 3634main () 3635{ 3636 3637 ; 3638 return 0; 3639} 3640_ACEOF 3641rm -f conftest.o conftest.obj 3642if { { ac_try="$ac_compile" 3643case "(($ac_try" in 3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 *) ac_try_echo=$ac_try;; 3646esac 3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3648$as_echo "$ac_try_echo"; } >&5 3649 (eval "$ac_compile") 2>&5 3650 ac_status=$? 3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3652 test $ac_status = 0; }; then : 3653 for ac_file in conftest.o conftest.obj conftest.*; do 3654 test -f "$ac_file" || continue; 3655 case $ac_file in 3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3658 break;; 3659 esac 3660done 3661else 3662 $as_echo "$as_me: failed program was:" >&5 3663sed 's/^/| /' conftest.$ac_ext >&5 3664 3665{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3667as_fn_error $? "cannot compute suffix of object files: cannot compile 3668See \`config.log' for more details" "$LINENO" 5; } 3669fi 3670rm -f conftest.$ac_cv_objext conftest.$ac_ext 3671fi 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3673$as_echo "$ac_cv_objext" >&6; } 3674OBJEXT=$ac_cv_objext 3675ac_objext=$OBJEXT 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3677$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3678if ${ac_cv_c_compiler_gnu+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687#ifndef __GNUC__ 3688 choke me 3689#endif 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_compiler_gnu=yes 3697else 3698 ac_compiler_gnu=no 3699fi 3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701ac_cv_c_compiler_gnu=$ac_compiler_gnu 3702 3703fi 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3705$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3706if test $ac_compiler_gnu = yes; then 3707 GCC=yes 3708else 3709 GCC= 3710fi 3711ac_test_CFLAGS=${CFLAGS+set} 3712ac_save_CFLAGS=$CFLAGS 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3714$as_echo_n "checking whether $CC accepts -g... " >&6; } 3715if ${ac_cv_prog_cc_g+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 ac_save_c_werror_flag=$ac_c_werror_flag 3719 ac_c_werror_flag=yes 3720 ac_cv_prog_cc_g=no 3721 CFLAGS="-g" 3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723/* end confdefs.h. */ 3724 3725int 3726main () 3727{ 3728 3729 ; 3730 return 0; 3731} 3732_ACEOF 3733if ac_fn_c_try_compile "$LINENO"; then : 3734 ac_cv_prog_cc_g=yes 3735else 3736 CFLAGS="" 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748if ac_fn_c_try_compile "$LINENO"; then : 3749 3750else 3751 ac_c_werror_flag=$ac_save_c_werror_flag 3752 CFLAGS="-g" 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755 3756int 3757main () 3758{ 3759 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764if ac_fn_c_try_compile "$LINENO"; then : 3765 ac_cv_prog_cc_g=yes 3766fi 3767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3768fi 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3770fi 3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3772 ac_c_werror_flag=$ac_save_c_werror_flag 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3775$as_echo "$ac_cv_prog_cc_g" >&6; } 3776if test "$ac_test_CFLAGS" = set; then 3777 CFLAGS=$ac_save_CFLAGS 3778elif test $ac_cv_prog_cc_g = yes; then 3779 if test "$GCC" = yes; then 3780 CFLAGS="-g -O2" 3781 else 3782 CFLAGS="-g" 3783 fi 3784else 3785 if test "$GCC" = yes; then 3786 CFLAGS="-O2" 3787 else 3788 CFLAGS= 3789 fi 3790fi 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3792$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3793if ${ac_cv_prog_cc_c89+:} false; then : 3794 $as_echo_n "(cached) " >&6 3795else 3796 ac_cv_prog_cc_c89=no 3797ac_save_CC=$CC 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800#include <stdarg.h> 3801#include <stdio.h> 3802struct stat; 3803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3804struct buf { int x; }; 3805FILE * (*rcsopen) (struct buf *, struct stat *, int); 3806static char *e (p, i) 3807 char **p; 3808 int i; 3809{ 3810 return p[i]; 3811} 3812static char *f (char * (*g) (char **, int), char **p, ...) 3813{ 3814 char *s; 3815 va_list v; 3816 va_start (v,p); 3817 s = g (p, va_arg (v,int)); 3818 va_end (v); 3819 return s; 3820} 3821 3822/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3823 function prototypes and stuff, but not '\xHH' hex character constants. 3824 These don't provoke an error unfortunately, instead are silently treated 3825 as 'x'. The following induces an error, until -std is added to get 3826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3827 array size at least. It's necessary to write '\x00'==0 to get something 3828 that's true only with -std. */ 3829int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3830 3831/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3832 inside strings and character constants. */ 3833#define FOO(x) 'x' 3834int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3835 3836int test (int i, double x); 3837struct s1 {int (*f) (int a);}; 3838struct s2 {int (*f) (double a);}; 3839int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3840int argc; 3841char **argv; 3842int 3843main () 3844{ 3845return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3852do 3853 CC="$ac_save_CC $ac_arg" 3854 if ac_fn_c_try_compile "$LINENO"; then : 3855 ac_cv_prog_cc_c89=$ac_arg 3856fi 3857rm -f core conftest.err conftest.$ac_objext 3858 test "x$ac_cv_prog_cc_c89" != "xno" && break 3859done 3860rm -f conftest.$ac_ext 3861CC=$ac_save_CC 3862 3863fi 3864# AC_CACHE_VAL 3865case "x$ac_cv_prog_cc_c89" in 3866 x) 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3868$as_echo "none needed" >&6; } ;; 3869 xno) 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3871$as_echo "unsupported" >&6; } ;; 3872 *) 3873 CC="$CC $ac_cv_prog_cc_c89" 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3875$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3876esac 3877if test "x$ac_cv_prog_cc_c89" != xno; then : 3878 3879fi 3880 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886 3887ac_ext=c 3888ac_cpp='$CPP $CPPFLAGS' 3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3891ac_compiler_gnu=$ac_cv_c_compiler_gnu 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3893$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3894if ${am_cv_prog_cc_c_o+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908 # Make sure it works both with $CC and with simple cc. 3909 # Following AC_PROG_CC_C_O, we do the test twice because some 3910 # compilers refuse to overwrite an existing .o file with -o, 3911 # though they will create one. 3912 am_cv_prog_cc_c_o=yes 3913 for am_i in 1 2; do 3914 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3915 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3916 ac_status=$? 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 (exit $ac_status); } \ 3919 && test -f conftest2.$ac_objext; then 3920 : OK 3921 else 3922 am_cv_prog_cc_c_o=no 3923 break 3924 fi 3925 done 3926 rm -f core conftest* 3927 unset am_i 3928fi 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3930$as_echo "$am_cv_prog_cc_c_o" >&6; } 3931if test "$am_cv_prog_cc_c_o" != yes; then 3932 # Losing compiler, so override with the script. 3933 # FIXME: It is wrong to rewrite CC. 3934 # But if we don't then we get into trouble of one sort or another. 3935 # A longer-term fix would be to have automake use am__CC in this case, 3936 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3937 CC="$am_aux_dir/compile $CC" 3938fi 3939ac_ext=c 3940ac_cpp='$CPP $CPPFLAGS' 3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3943ac_compiler_gnu=$ac_cv_c_compiler_gnu 3944 3945 3946depcc="$CC" am_compiler_list= 3947 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3949$as_echo_n "checking dependency style of $depcc... " >&6; } 3950if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3954 # We make a subdir and do the tests there. Otherwise we can end up 3955 # making bogus files that we don't know about and never remove. For 3956 # instance it was reported that on HP-UX the gcc test will end up 3957 # making a dummy file named 'D' -- because '-MD' means "put the output 3958 # in D". 3959 rm -rf conftest.dir 3960 mkdir conftest.dir 3961 # Copy depcomp to subdir because otherwise we won't find it if we're 3962 # using a relative directory. 3963 cp "$am_depcomp" conftest.dir 3964 cd conftest.dir 3965 # We will build objects and dependencies in a subdirectory because 3966 # it helps to detect inapplicable dependency modes. For instance 3967 # both Tru64's cc and ICC support -MD to output dependencies as a 3968 # side effect of compilation, but ICC will put the dependencies in 3969 # the current directory while Tru64 will put them in the object 3970 # directory. 3971 mkdir sub 3972 3973 am_cv_CC_dependencies_compiler_type=none 3974 if test "$am_compiler_list" = ""; then 3975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3976 fi 3977 am__universal=false 3978 case " $depcc " in #( 3979 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3980 esac 3981 3982 for depmode in $am_compiler_list; do 3983 # Setup a source with many dependencies, because some compilers 3984 # like to wrap large dependency lists on column 80 (with \), and 3985 # we should not choose a depcomp mode which is confused by this. 3986 # 3987 # We need to recreate these files for each test, as the compiler may 3988 # overwrite some of them when testing with obscure command lines. 3989 # This happens at least with the AIX C compiler. 3990 : > sub/conftest.c 3991 for i in 1 2 3 4 5 6; do 3992 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3993 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3994 # Solaris 10 /bin/sh. 3995 echo '/* dummy */' > sub/conftst$i.h 3996 done 3997 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3998 3999 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4000 # mode. It turns out that the SunPro C++ compiler does not properly 4001 # handle '-M -o', and we need to detect this. Also, some Intel 4002 # versions had trouble with output in subdirs. 4003 am__obj=sub/conftest.${OBJEXT-o} 4004 am__minus_obj="-o $am__obj" 4005 case $depmode in 4006 gcc) 4007 # This depmode causes a compiler race in universal mode. 4008 test "$am__universal" = false || continue 4009 ;; 4010 nosideeffect) 4011 # After this tag, mechanisms are not by side-effect, so they'll 4012 # only be used when explicitly requested. 4013 if test "x$enable_dependency_tracking" = xyes; then 4014 continue 4015 else 4016 break 4017 fi 4018 ;; 4019 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4020 # This compiler won't grok '-c -o', but also, the minuso test has 4021 # not run yet. These depmodes are late enough in the game, and 4022 # so weak that their functioning should not be impacted. 4023 am__obj=conftest.${OBJEXT-o} 4024 am__minus_obj= 4025 ;; 4026 none) break ;; 4027 esac 4028 if depmode=$depmode \ 4029 source=sub/conftest.c object=$am__obj \ 4030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4031 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4032 >/dev/null 2>conftest.err && 4033 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4035 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4037 # icc doesn't choke on unknown options, it will just issue warnings 4038 # or remarks (even with -Werror). So we grep stderr for any message 4039 # that says an option was ignored or not supported. 4040 # When given -MP, icc 7.0 and 7.1 complain thusly: 4041 # icc: Command line warning: ignoring option '-M'; no argument required 4042 # The diagnosis changed in icc 8.0: 4043 # icc: Command line remark: option '-MP' not supported 4044 if (grep 'ignoring option' conftest.err || 4045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4046 am_cv_CC_dependencies_compiler_type=$depmode 4047 break 4048 fi 4049 fi 4050 done 4051 4052 cd .. 4053 rm -rf conftest.dir 4054else 4055 am_cv_CC_dependencies_compiler_type=none 4056fi 4057 4058fi 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4060$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4062 4063 if 4064 test "x$enable_dependency_tracking" != xno \ 4065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4066 am__fastdepCC_TRUE= 4067 am__fastdepCC_FALSE='#' 4068else 4069 am__fastdepCC_TRUE='#' 4070 am__fastdepCC_FALSE= 4071fi 4072 4073 4074 4075 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4077$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4078if ${ac_cv_prog_cc_c99+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 ac_cv_prog_cc_c99=no 4082ac_save_CC=$CC 4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085#include <stdarg.h> 4086#include <stdbool.h> 4087#include <stdlib.h> 4088#include <wchar.h> 4089#include <stdio.h> 4090 4091// Check varargs macros. These examples are taken from C99 6.10.3.5. 4092#define debug(...) fprintf (stderr, __VA_ARGS__) 4093#define showlist(...) puts (#__VA_ARGS__) 4094#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4095static void 4096test_varargs_macros (void) 4097{ 4098 int x = 1234; 4099 int y = 5678; 4100 debug ("Flag"); 4101 debug ("X = %d\n", x); 4102 showlist (The first, second, and third items.); 4103 report (x>y, "x is %d but y is %d", x, y); 4104} 4105 4106// Check long long types. 4107#define BIG64 18446744073709551615ull 4108#define BIG32 4294967295ul 4109#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4110#if !BIG_OK 4111 your preprocessor is broken; 4112#endif 4113#if BIG_OK 4114#else 4115 your preprocessor is broken; 4116#endif 4117static long long int bignum = -9223372036854775807LL; 4118static unsigned long long int ubignum = BIG64; 4119 4120struct incomplete_array 4121{ 4122 int datasize; 4123 double data[]; 4124}; 4125 4126struct named_init { 4127 int number; 4128 const wchar_t *name; 4129 double average; 4130}; 4131 4132typedef const char *ccp; 4133 4134static inline int 4135test_restrict (ccp restrict text) 4136{ 4137 // See if C++-style comments work. 4138 // Iterate through items via the restricted pointer. 4139 // Also check for declarations in for loops. 4140 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4141 continue; 4142 return 0; 4143} 4144 4145// Check varargs and va_copy. 4146static void 4147test_varargs (const char *format, ...) 4148{ 4149 va_list args; 4150 va_start (args, format); 4151 va_list args_copy; 4152 va_copy (args_copy, args); 4153 4154 const char *str; 4155 int number; 4156 float fnumber; 4157 4158 while (*format) 4159 { 4160 switch (*format++) 4161 { 4162 case 's': // string 4163 str = va_arg (args_copy, const char *); 4164 break; 4165 case 'd': // int 4166 number = va_arg (args_copy, int); 4167 break; 4168 case 'f': // float 4169 fnumber = va_arg (args_copy, double); 4170 break; 4171 default: 4172 break; 4173 } 4174 } 4175 va_end (args_copy); 4176 va_end (args); 4177} 4178 4179int 4180main () 4181{ 4182 4183 // Check bool. 4184 _Bool success = false; 4185 4186 // Check restrict. 4187 if (test_restrict ("String literal") == 0) 4188 success = true; 4189 char *restrict newvar = "Another string"; 4190 4191 // Check varargs. 4192 test_varargs ("s, d' f .", "string", 65, 34.234); 4193 test_varargs_macros (); 4194 4195 // Check flexible array members. 4196 struct incomplete_array *ia = 4197 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4198 ia->datasize = 10; 4199 for (int i = 0; i < ia->datasize; ++i) 4200 ia->data[i] = i * 1.234; 4201 4202 // Check named initializers. 4203 struct named_init ni = { 4204 .number = 34, 4205 .name = L"Test wide string", 4206 .average = 543.34343, 4207 }; 4208 4209 ni.number = 58; 4210 4211 int dynamic_array[ni.number]; 4212 dynamic_array[ni.number - 1] = 543; 4213 4214 // work around unused variable warnings 4215 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4216 || dynamic_array[ni.number - 1] != 543); 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4223do 4224 CC="$ac_save_CC $ac_arg" 4225 if ac_fn_c_try_compile "$LINENO"; then : 4226 ac_cv_prog_cc_c99=$ac_arg 4227fi 4228rm -f core conftest.err conftest.$ac_objext 4229 test "x$ac_cv_prog_cc_c99" != "xno" && break 4230done 4231rm -f conftest.$ac_ext 4232CC=$ac_save_CC 4233 4234fi 4235# AC_CACHE_VAL 4236case "x$ac_cv_prog_cc_c99" in 4237 x) 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4239$as_echo "none needed" >&6; } ;; 4240 xno) 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4242$as_echo "unsupported" >&6; } ;; 4243 *) 4244 CC="$CC $ac_cv_prog_cc_c99" 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4246$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4247esac 4248if test "x$ac_cv_prog_cc_c99" != xno; then : 4249 4250fi 4251 4252 4253 4254ac_ext=c 4255ac_cpp='$CPP $CPPFLAGS' 4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4258ac_compiler_gnu=$ac_cv_c_compiler_gnu 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4260$as_echo_n "checking how to run the C preprocessor... " >&6; } 4261# On Suns, sometimes $CPP names a directory. 4262if test -n "$CPP" && test -d "$CPP"; then 4263 CPP= 4264fi 4265if test -z "$CPP"; then 4266 if ${ac_cv_prog_CPP+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 # Double quotes because CPP needs to be expanded 4270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4271 do 4272 ac_preproc_ok=false 4273for ac_c_preproc_warn_flag in '' yes 4274do 4275 # Use a header file that comes with gcc, so configuring glibc 4276 # with a fresh cross-compiler works. 4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4278 # <limits.h> exists even on freestanding compilers. 4279 # On the NeXT, cc -E runs the code through the compiler's parser, 4280 # not just through cpp. "Syntax error" is here to catch this case. 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4282/* end confdefs.h. */ 4283#ifdef __STDC__ 4284# include <limits.h> 4285#else 4286# include <assert.h> 4287#endif 4288 Syntax error 4289_ACEOF 4290if ac_fn_c_try_cpp "$LINENO"; then : 4291 4292else 4293 # Broken: fails on valid input. 4294continue 4295fi 4296rm -f conftest.err conftest.i conftest.$ac_ext 4297 4298 # OK, works on sane cases. Now check whether nonexistent headers 4299 # can be detected and how. 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302#include <ac_nonexistent.h> 4303_ACEOF 4304if ac_fn_c_try_cpp "$LINENO"; then : 4305 # Broken: success on invalid input. 4306continue 4307else 4308 # Passes both tests. 4309ac_preproc_ok=: 4310break 4311fi 4312rm -f conftest.err conftest.i conftest.$ac_ext 4313 4314done 4315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4316rm -f conftest.i conftest.err conftest.$ac_ext 4317if $ac_preproc_ok; then : 4318 break 4319fi 4320 4321 done 4322 ac_cv_prog_CPP=$CPP 4323 4324fi 4325 CPP=$ac_cv_prog_CPP 4326else 4327 ac_cv_prog_CPP=$CPP 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4330$as_echo "$CPP" >&6; } 4331ac_preproc_ok=false 4332for ac_c_preproc_warn_flag in '' yes 4333do 4334 # Use a header file that comes with gcc, so configuring glibc 4335 # with a fresh cross-compiler works. 4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4337 # <limits.h> exists even on freestanding compilers. 4338 # On the NeXT, cc -E runs the code through the compiler's parser, 4339 # not just through cpp. "Syntax error" is here to catch this case. 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342#ifdef __STDC__ 4343# include <limits.h> 4344#else 4345# include <assert.h> 4346#endif 4347 Syntax error 4348_ACEOF 4349if ac_fn_c_try_cpp "$LINENO"; then : 4350 4351else 4352 # Broken: fails on valid input. 4353continue 4354fi 4355rm -f conftest.err conftest.i conftest.$ac_ext 4356 4357 # OK, works on sane cases. Now check whether nonexistent headers 4358 # can be detected and how. 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361#include <ac_nonexistent.h> 4362_ACEOF 4363if ac_fn_c_try_cpp "$LINENO"; then : 4364 # Broken: success on invalid input. 4365continue 4366else 4367 # Passes both tests. 4368ac_preproc_ok=: 4369break 4370fi 4371rm -f conftest.err conftest.i conftest.$ac_ext 4372 4373done 4374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4375rm -f conftest.i conftest.err conftest.$ac_ext 4376if $ac_preproc_ok; then : 4377 4378else 4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4381as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4382See \`config.log' for more details" "$LINENO" 5; } 4383fi 4384 4385ac_ext=c 4386ac_cpp='$CPP $CPPFLAGS' 4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4393$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4394if ${ac_cv_path_GREP+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if test -z "$GREP"; then 4398 ac_path_GREP_found=false 4399 # Loop through the user's path and test for each of PROGNAME-LIST 4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4402do 4403 IFS=$as_save_IFS 4404 test -z "$as_dir" && as_dir=. 4405 for ac_prog in grep ggrep; do 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4408 as_fn_executable_p "$ac_path_GREP" || continue 4409# Check for GNU ac_path_GREP and select it if it is found. 4410 # Check for GNU $ac_path_GREP 4411case `"$ac_path_GREP" --version 2>&1` in 4412*GNU*) 4413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4414*) 4415 ac_count=0 4416 $as_echo_n 0123456789 >"conftest.in" 4417 while : 4418 do 4419 cat "conftest.in" "conftest.in" >"conftest.tmp" 4420 mv "conftest.tmp" "conftest.in" 4421 cp "conftest.in" "conftest.nl" 4422 $as_echo 'GREP' >> "conftest.nl" 4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4425 as_fn_arith $ac_count + 1 && ac_count=$as_val 4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4427 # Best one so far, save it but keep looking for a better one 4428 ac_cv_path_GREP="$ac_path_GREP" 4429 ac_path_GREP_max=$ac_count 4430 fi 4431 # 10*(2^10) chars as input seems more than enough 4432 test $ac_count -gt 10 && break 4433 done 4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4435esac 4436 4437 $ac_path_GREP_found && break 3 4438 done 4439 done 4440 done 4441IFS=$as_save_IFS 4442 if test -z "$ac_cv_path_GREP"; then 4443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4444 fi 4445else 4446 ac_cv_path_GREP=$GREP 4447fi 4448 4449fi 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4451$as_echo "$ac_cv_path_GREP" >&6; } 4452 GREP="$ac_cv_path_GREP" 4453 4454 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4456$as_echo_n "checking for egrep... " >&6; } 4457if ${ac_cv_path_EGREP+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4461 then ac_cv_path_EGREP="$GREP -E" 4462 else 4463 if test -z "$EGREP"; then 4464 ac_path_EGREP_found=false 4465 # Loop through the user's path and test for each of PROGNAME-LIST 4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4468do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_prog in egrep; do 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4474 as_fn_executable_p "$ac_path_EGREP" || continue 4475# Check for GNU ac_path_EGREP and select it if it is found. 4476 # Check for GNU $ac_path_EGREP 4477case `"$ac_path_EGREP" --version 2>&1` in 4478*GNU*) 4479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4480*) 4481 ac_count=0 4482 $as_echo_n 0123456789 >"conftest.in" 4483 while : 4484 do 4485 cat "conftest.in" "conftest.in" >"conftest.tmp" 4486 mv "conftest.tmp" "conftest.in" 4487 cp "conftest.in" "conftest.nl" 4488 $as_echo 'EGREP' >> "conftest.nl" 4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4491 as_fn_arith $ac_count + 1 && ac_count=$as_val 4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4493 # Best one so far, save it but keep looking for a better one 4494 ac_cv_path_EGREP="$ac_path_EGREP" 4495 ac_path_EGREP_max=$ac_count 4496 fi 4497 # 10*(2^10) chars as input seems more than enough 4498 test $ac_count -gt 10 && break 4499 done 4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4501esac 4502 4503 $ac_path_EGREP_found && break 3 4504 done 4505 done 4506 done 4507IFS=$as_save_IFS 4508 if test -z "$ac_cv_path_EGREP"; then 4509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4510 fi 4511else 4512 ac_cv_path_EGREP=$EGREP 4513fi 4514 4515 fi 4516fi 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4518$as_echo "$ac_cv_path_EGREP" >&6; } 4519 EGREP="$ac_cv_path_EGREP" 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4523$as_echo_n "checking for ANSI C header files... " >&6; } 4524if ${ac_cv_header_stdc+:} false; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529#include <stdlib.h> 4530#include <stdarg.h> 4531#include <string.h> 4532#include <float.h> 4533 4534int 4535main () 4536{ 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542if ac_fn_c_try_compile "$LINENO"; then : 4543 ac_cv_header_stdc=yes 4544else 4545 ac_cv_header_stdc=no 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4548 4549if test $ac_cv_header_stdc = yes; then 4550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552/* end confdefs.h. */ 4553#include <string.h> 4554 4555_ACEOF 4556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4557 $EGREP "memchr" >/dev/null 2>&1; then : 4558 4559else 4560 ac_cv_header_stdc=no 4561fi 4562rm -f conftest* 4563 4564fi 4565 4566if test $ac_cv_header_stdc = yes; then 4567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4569/* end confdefs.h. */ 4570#include <stdlib.h> 4571 4572_ACEOF 4573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4574 $EGREP "free" >/dev/null 2>&1; then : 4575 4576else 4577 ac_cv_header_stdc=no 4578fi 4579rm -f conftest* 4580 4581fi 4582 4583if test $ac_cv_header_stdc = yes; then 4584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4585 if test "$cross_compiling" = yes; then : 4586 : 4587else 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590#include <ctype.h> 4591#include <stdlib.h> 4592#if ((' ' & 0x0FF) == 0x020) 4593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4595#else 4596# define ISLOWER(c) \ 4597 (('a' <= (c) && (c) <= 'i') \ 4598 || ('j' <= (c) && (c) <= 'r') \ 4599 || ('s' <= (c) && (c) <= 'z')) 4600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4601#endif 4602 4603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4604int 4605main () 4606{ 4607 int i; 4608 for (i = 0; i < 256; i++) 4609 if (XOR (islower (i), ISLOWER (i)) 4610 || toupper (i) != TOUPPER (i)) 4611 return 2; 4612 return 0; 4613} 4614_ACEOF 4615if ac_fn_c_try_run "$LINENO"; then : 4616 4617else 4618 ac_cv_header_stdc=no 4619fi 4620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4621 conftest.$ac_objext conftest.beam conftest.$ac_ext 4622fi 4623 4624fi 4625fi 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4627$as_echo "$ac_cv_header_stdc" >&6; } 4628if test $ac_cv_header_stdc = yes; then 4629 4630$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4631 4632fi 4633 4634# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4636 inttypes.h stdint.h unistd.h 4637do : 4638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4640" 4641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4642 cat >>confdefs.h <<_ACEOF 4643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4644_ACEOF 4645 4646fi 4647 4648done 4649 4650 4651for ac_header in inttypes.h alloca.h 4652do : 4653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4654ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4655if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4656 cat >>confdefs.h <<_ACEOF 4657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4658_ACEOF 4659 4660fi 4661 4662done 4663 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4665$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4666if ${ac_cv_c_bigendian+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 ac_cv_c_bigendian=unknown 4670 # See if we're dealing with a universal compiler. 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673#ifndef __APPLE_CC__ 4674 not a universal capable compiler 4675 #endif 4676 typedef int dummy; 4677 4678_ACEOF 4679if ac_fn_c_try_compile "$LINENO"; then : 4680 4681 # Check for potential -arch flags. It is not universal unless 4682 # there are at least two -arch flags with different values. 4683 ac_arch= 4684 ac_prev= 4685 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4686 if test -n "$ac_prev"; then 4687 case $ac_word in 4688 i?86 | x86_64 | ppc | ppc64) 4689 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4690 ac_arch=$ac_word 4691 else 4692 ac_cv_c_bigendian=universal 4693 break 4694 fi 4695 ;; 4696 esac 4697 ac_prev= 4698 elif test "x$ac_word" = "x-arch"; then 4699 ac_prev=arch 4700 fi 4701 done 4702fi 4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4704 if test $ac_cv_c_bigendian = unknown; then 4705 # See if sys/param.h defines the BYTE_ORDER macro. 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708#include <sys/types.h> 4709 #include <sys/param.h> 4710 4711int 4712main () 4713{ 4714#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4716 && LITTLE_ENDIAN) 4717 bogus endian macros 4718 #endif 4719 4720 ; 4721 return 0; 4722} 4723_ACEOF 4724if ac_fn_c_try_compile "$LINENO"; then : 4725 # It does; now see whether it defined to BIG_ENDIAN or not. 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728#include <sys/types.h> 4729 #include <sys/param.h> 4730 4731int 4732main () 4733{ 4734#if BYTE_ORDER != BIG_ENDIAN 4735 not big endian 4736 #endif 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_compile "$LINENO"; then : 4743 ac_cv_c_bigendian=yes 4744else 4745 ac_cv_c_bigendian=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748fi 4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4750 fi 4751 if test $ac_cv_c_bigendian = unknown; then 4752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755#include <limits.h> 4756 4757int 4758main () 4759{ 4760#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4761 bogus endian macros 4762 #endif 4763 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768if ac_fn_c_try_compile "$LINENO"; then : 4769 # It does; now see whether it defined to _BIG_ENDIAN or not. 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772#include <limits.h> 4773 4774int 4775main () 4776{ 4777#ifndef _BIG_ENDIAN 4778 not big endian 4779 #endif 4780 4781 ; 4782 return 0; 4783} 4784_ACEOF 4785if ac_fn_c_try_compile "$LINENO"; then : 4786 ac_cv_c_bigendian=yes 4787else 4788 ac_cv_c_bigendian=no 4789fi 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4791fi 4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4793 fi 4794 if test $ac_cv_c_bigendian = unknown; then 4795 # Compile a test program. 4796 if test "$cross_compiling" = yes; then : 4797 # Try to guess by grepping values from an object file. 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800short int ascii_mm[] = 4801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4802 short int ascii_ii[] = 4803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4804 int use_ascii (int i) { 4805 return ascii_mm[i] + ascii_ii[i]; 4806 } 4807 short int ebcdic_ii[] = 4808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4809 short int ebcdic_mm[] = 4810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4811 int use_ebcdic (int i) { 4812 return ebcdic_mm[i] + ebcdic_ii[i]; 4813 } 4814 extern int foo; 4815 4816int 4817main () 4818{ 4819return use_ascii (foo) == use_ebcdic (foo); 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824if ac_fn_c_try_compile "$LINENO"; then : 4825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4826 ac_cv_c_bigendian=yes 4827 fi 4828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4829 if test "$ac_cv_c_bigendian" = unknown; then 4830 ac_cv_c_bigendian=no 4831 else 4832 # finding both strings is unlikely to happen, but who knows? 4833 ac_cv_c_bigendian=unknown 4834 fi 4835 fi 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838else 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841$ac_includes_default 4842int 4843main () 4844{ 4845 4846 /* Are we little or big endian? From Harbison&Steele. */ 4847 union 4848 { 4849 long int l; 4850 char c[sizeof (long int)]; 4851 } u; 4852 u.l = 1; 4853 return u.c[sizeof (long int) - 1] == 1; 4854 4855 ; 4856 return 0; 4857} 4858_ACEOF 4859if ac_fn_c_try_run "$LINENO"; then : 4860 ac_cv_c_bigendian=no 4861else 4862 ac_cv_c_bigendian=yes 4863fi 4864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4865 conftest.$ac_objext conftest.beam conftest.$ac_ext 4866fi 4867 4868 fi 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4871$as_echo "$ac_cv_c_bigendian" >&6; } 4872 case $ac_cv_c_bigendian in #( 4873 yes) 4874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4875;; #( 4876 no) 4877 ;; #( 4878 universal) 4879 4880$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4881 4882 ;; #( 4883 *) 4884 as_fn_error $? "unknown endianness 4885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4886 esac 4887 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4889$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4890if ${ac_cv_c_const+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4894/* end confdefs.h. */ 4895 4896int 4897main () 4898{ 4899 4900#ifndef __cplusplus 4901 /* Ultrix mips cc rejects this sort of thing. */ 4902 typedef int charset[2]; 4903 const charset cs = { 0, 0 }; 4904 /* SunOS 4.1.1 cc rejects this. */ 4905 char const *const *pcpcc; 4906 char **ppc; 4907 /* NEC SVR4.0.2 mips cc rejects this. */ 4908 struct point {int x, y;}; 4909 static struct point const zero = {0,0}; 4910 /* AIX XL C 1.02.0.0 rejects this. 4911 It does not let you subtract one const X* pointer from another in 4912 an arm of an if-expression whose if-part is not a constant 4913 expression */ 4914 const char *g = "string"; 4915 pcpcc = &g + (g ? g-g : 0); 4916 /* HPUX 7.0 cc rejects these. */ 4917 ++pcpcc; 4918 ppc = (char**) pcpcc; 4919 pcpcc = (char const *const *) ppc; 4920 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4921 char tx; 4922 char *t = &tx; 4923 char const *s = 0 ? (char *) 0 : (char const *) 0; 4924 4925 *t++ = 0; 4926 if (s) return 0; 4927 } 4928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4929 int x[] = {25, 17}; 4930 const int *foo = &x[0]; 4931 ++foo; 4932 } 4933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4934 typedef const int *iptr; 4935 iptr p = 0; 4936 ++p; 4937 } 4938 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4940 struct s { int j; const int *ap[3]; } bx; 4941 struct s *b = &bx; b->j = 5; 4942 } 4943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4944 const int foo = 10; 4945 if (!foo) return 0; 4946 } 4947 return !cs[0] && !zero.x; 4948#endif 4949 4950 ; 4951 return 0; 4952} 4953_ACEOF 4954if ac_fn_c_try_compile "$LINENO"; then : 4955 ac_cv_c_const=yes 4956else 4957 ac_cv_c_const=no 4958fi 4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4962$as_echo "$ac_cv_c_const" >&6; } 4963if test $ac_cv_c_const = no; then 4964 4965$as_echo "#define const /**/" >>confdefs.h 4966 4967fi 4968 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4970$as_echo_n "checking for inline... " >&6; } 4971if ${ac_cv_c_inline+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 ac_cv_c_inline=no 4975for ac_kw in inline __inline__ __inline; do 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978#ifndef __cplusplus 4979typedef int foo_t; 4980static $ac_kw foo_t static_foo () {return 0; } 4981$ac_kw foo_t foo () {return 0; } 4982#endif 4983 4984_ACEOF 4985if ac_fn_c_try_compile "$LINENO"; then : 4986 ac_cv_c_inline=$ac_kw 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989 test "$ac_cv_c_inline" != no && break 4990done 4991 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4994$as_echo "$ac_cv_c_inline" >&6; } 4995 4996case $ac_cv_c_inline in 4997 inline | yes) ;; 4998 *) 4999 case $ac_cv_c_inline in 5000 no) ac_val=;; 5001 *) ac_val=$ac_cv_c_inline;; 5002 esac 5003 cat >>confdefs.h <<_ACEOF 5004#ifndef __cplusplus 5005#define inline $ac_val 5006#endif 5007_ACEOF 5008 ;; 5009esac 5010 5011 5012case `pwd` in 5013 *\ * | *\ *) 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5015$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5016esac 5017 5018 5019 5020macro_version='2.4.6' 5021macro_revision='2.4.6' 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035ltmain=$ac_aux_dir/ltmain.sh 5036 5037# Backslashify metacharacters that are still active within 5038# double-quoted strings. 5039sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5040 5041# Same as above, but do not quote variable references. 5042double_quote_subst='s/\(["`\\]\)/\\\1/g' 5043 5044# Sed substitution to delay expansion of an escaped shell variable in a 5045# double_quote_subst'ed string. 5046delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5047 5048# Sed substitution to delay expansion of an escaped single quote. 5049delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5050 5051# Sed substitution to avoid accidental globbing in evaled expressions 5052no_glob_subst='s/\*/\\\*/g' 5053 5054ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5055ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5056ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5059$as_echo_n "checking how to print strings... " >&6; } 5060# Test print first, because it will be a builtin if present. 5061if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5062 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5063 ECHO='print -r --' 5064elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5065 ECHO='printf %s\n' 5066else 5067 # Use this function as a fallback that always works. 5068 func_fallback_echo () 5069 { 5070 eval 'cat <<_LTECHO_EOF 5071$1 5072_LTECHO_EOF' 5073 } 5074 ECHO='func_fallback_echo' 5075fi 5076 5077# func_echo_all arg... 5078# Invoke $ECHO with all args, space-separated. 5079func_echo_all () 5080{ 5081 $ECHO "" 5082} 5083 5084case $ECHO in 5085 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5086$as_echo "printf" >&6; } ;; 5087 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5088$as_echo "print -r" >&6; } ;; 5089 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5090$as_echo "cat" >&6; } ;; 5091esac 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5107$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5108if ${ac_cv_path_SED+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5112 for ac_i in 1 2 3 4 5 6 7; do 5113 ac_script="$ac_script$as_nl$ac_script" 5114 done 5115 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5116 { ac_script=; unset ac_script;} 5117 if test -z "$SED"; then 5118 ac_path_SED_found=false 5119 # Loop through the user's path and test for each of PROGNAME-LIST 5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_prog in sed gsed; do 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5128 as_fn_executable_p "$ac_path_SED" || continue 5129# Check for GNU ac_path_SED and select it if it is found. 5130 # Check for GNU $ac_path_SED 5131case `"$ac_path_SED" --version 2>&1` in 5132*GNU*) 5133 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5134*) 5135 ac_count=0 5136 $as_echo_n 0123456789 >"conftest.in" 5137 while : 5138 do 5139 cat "conftest.in" "conftest.in" >"conftest.tmp" 5140 mv "conftest.tmp" "conftest.in" 5141 cp "conftest.in" "conftest.nl" 5142 $as_echo '' >> "conftest.nl" 5143 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5145 as_fn_arith $ac_count + 1 && ac_count=$as_val 5146 if test $ac_count -gt ${ac_path_SED_max-0}; then 5147 # Best one so far, save it but keep looking for a better one 5148 ac_cv_path_SED="$ac_path_SED" 5149 ac_path_SED_max=$ac_count 5150 fi 5151 # 10*(2^10) chars as input seems more than enough 5152 test $ac_count -gt 10 && break 5153 done 5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5155esac 5156 5157 $ac_path_SED_found && break 3 5158 done 5159 done 5160 done 5161IFS=$as_save_IFS 5162 if test -z "$ac_cv_path_SED"; then 5163 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5164 fi 5165else 5166 ac_cv_path_SED=$SED 5167fi 5168 5169fi 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5171$as_echo "$ac_cv_path_SED" >&6; } 5172 SED="$ac_cv_path_SED" 5173 rm -f conftest.sed 5174 5175test -z "$SED" && SED=sed 5176Xsed="$SED -e 1s/^X//" 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5189$as_echo_n "checking for fgrep... " >&6; } 5190if ${ac_cv_path_FGREP+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5194 then ac_cv_path_FGREP="$GREP -F" 5195 else 5196 if test -z "$FGREP"; then 5197 ac_path_FGREP_found=false 5198 # Loop through the user's path and test for each of PROGNAME-LIST 5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5201do 5202 IFS=$as_save_IFS 5203 test -z "$as_dir" && as_dir=. 5204 for ac_prog in fgrep; do 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5207 as_fn_executable_p "$ac_path_FGREP" || continue 5208# Check for GNU ac_path_FGREP and select it if it is found. 5209 # Check for GNU $ac_path_FGREP 5210case `"$ac_path_FGREP" --version 2>&1` in 5211*GNU*) 5212 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5213*) 5214 ac_count=0 5215 $as_echo_n 0123456789 >"conftest.in" 5216 while : 5217 do 5218 cat "conftest.in" "conftest.in" >"conftest.tmp" 5219 mv "conftest.tmp" "conftest.in" 5220 cp "conftest.in" "conftest.nl" 5221 $as_echo 'FGREP' >> "conftest.nl" 5222 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5224 as_fn_arith $ac_count + 1 && ac_count=$as_val 5225 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5226 # Best one so far, save it but keep looking for a better one 5227 ac_cv_path_FGREP="$ac_path_FGREP" 5228 ac_path_FGREP_max=$ac_count 5229 fi 5230 # 10*(2^10) chars as input seems more than enough 5231 test $ac_count -gt 10 && break 5232 done 5233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5234esac 5235 5236 $ac_path_FGREP_found && break 3 5237 done 5238 done 5239 done 5240IFS=$as_save_IFS 5241 if test -z "$ac_cv_path_FGREP"; then 5242 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5243 fi 5244else 5245 ac_cv_path_FGREP=$FGREP 5246fi 5247 5248 fi 5249fi 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5251$as_echo "$ac_cv_path_FGREP" >&6; } 5252 FGREP="$ac_cv_path_FGREP" 5253 5254 5255test -z "$GREP" && GREP=grep 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275# Check whether --with-gnu-ld was given. 5276if test "${with_gnu_ld+set}" = set; then : 5277 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5278else 5279 with_gnu_ld=no 5280fi 5281 5282ac_prog=ld 5283if test yes = "$GCC"; then 5284 # Check if gcc -print-prog-name=ld gives a path. 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5286$as_echo_n "checking for ld used by $CC... " >&6; } 5287 case $host in 5288 *-*-mingw*) 5289 # gcc leaves a trailing carriage return, which upsets mingw 5290 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5291 *) 5292 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5293 esac 5294 case $ac_prog in 5295 # Accept absolute paths. 5296 [\\/]* | ?:[\\/]*) 5297 re_direlt='/[^/][^/]*/\.\./' 5298 # Canonicalize the pathname of ld 5299 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5300 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5301 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5302 done 5303 test -z "$LD" && LD=$ac_prog 5304 ;; 5305 "") 5306 # If it fails, then pretend we aren't using GCC. 5307 ac_prog=ld 5308 ;; 5309 *) 5310 # If it is relative, then search for the first ld in PATH. 5311 with_gnu_ld=unknown 5312 ;; 5313 esac 5314elif test yes = "$with_gnu_ld"; then 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5316$as_echo_n "checking for GNU ld... " >&6; } 5317else 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5319$as_echo_n "checking for non-GNU ld... " >&6; } 5320fi 5321if ${lt_cv_path_LD+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -z "$LD"; then 5325 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5326 for ac_dir in $PATH; do 5327 IFS=$lt_save_ifs 5328 test -z "$ac_dir" && ac_dir=. 5329 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5330 lt_cv_path_LD=$ac_dir/$ac_prog 5331 # Check to see if the program is GNU ld. I'd rather use --version, 5332 # but apparently some variants of GNU ld only accept -v. 5333 # Break only if it was the GNU/non-GNU ld that we prefer. 5334 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5335 *GNU* | *'with BFD'*) 5336 test no != "$with_gnu_ld" && break 5337 ;; 5338 *) 5339 test yes != "$with_gnu_ld" && break 5340 ;; 5341 esac 5342 fi 5343 done 5344 IFS=$lt_save_ifs 5345else 5346 lt_cv_path_LD=$LD # Let the user override the test with a path. 5347fi 5348fi 5349 5350LD=$lt_cv_path_LD 5351if test -n "$LD"; then 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5353$as_echo "$LD" >&6; } 5354else 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5356$as_echo "no" >&6; } 5357fi 5358test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5360$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5361if ${lt_cv_prog_gnu_ld+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5365case `$LD -v 2>&1 </dev/null` in 5366*GNU* | *'with BFD'*) 5367 lt_cv_prog_gnu_ld=yes 5368 ;; 5369*) 5370 lt_cv_prog_gnu_ld=no 5371 ;; 5372esac 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5375$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5376with_gnu_ld=$lt_cv_prog_gnu_ld 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5387$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5388if ${lt_cv_path_NM+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 if test -n "$NM"; then 5392 # Let the user override the test. 5393 lt_cv_path_NM=$NM 5394else 5395 lt_nm_to_check=${ac_tool_prefix}nm 5396 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5397 lt_nm_to_check="$lt_nm_to_check nm" 5398 fi 5399 for lt_tmp_nm in $lt_nm_to_check; do 5400 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5401 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5402 IFS=$lt_save_ifs 5403 test -z "$ac_dir" && ac_dir=. 5404 tmp_nm=$ac_dir/$lt_tmp_nm 5405 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5406 # Check to see if the nm accepts a BSD-compat flag. 5407 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5408 # nm: unknown option "B" ignored 5409 # Tru64's nm complains that /dev/null is an invalid object file 5410 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5411 case $build_os in 5412 mingw*) lt_bad_file=conftest.nm/nofile ;; 5413 *) lt_bad_file=/dev/null ;; 5414 esac 5415 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5416 *$lt_bad_file* | *'Invalid file or object type'*) 5417 lt_cv_path_NM="$tmp_nm -B" 5418 break 2 5419 ;; 5420 *) 5421 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5422 */dev/null*) 5423 lt_cv_path_NM="$tmp_nm -p" 5424 break 2 5425 ;; 5426 *) 5427 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5428 continue # so that we can try to find one that supports BSD flags 5429 ;; 5430 esac 5431 ;; 5432 esac 5433 fi 5434 done 5435 IFS=$lt_save_ifs 5436 done 5437 : ${lt_cv_path_NM=no} 5438fi 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5441$as_echo "$lt_cv_path_NM" >&6; } 5442if test no != "$lt_cv_path_NM"; then 5443 NM=$lt_cv_path_NM 5444else 5445 # Didn't find any BSD compatible name lister, look for dumpbin. 5446 if test -n "$DUMPBIN"; then : 5447 # Let the user override the test. 5448 else 5449 if test -n "$ac_tool_prefix"; then 5450 for ac_prog in dumpbin "link -dump" 5451 do 5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455$as_echo_n "checking for $ac_word... " >&6; } 5456if ${ac_cv_prog_DUMPBIN+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 if test -n "$DUMPBIN"; then 5460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5461else 5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463for as_dir in $PATH 5464do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473done 5474 done 5475IFS=$as_save_IFS 5476 5477fi 5478fi 5479DUMPBIN=$ac_cv_prog_DUMPBIN 5480if test -n "$DUMPBIN"; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5482$as_echo "$DUMPBIN" >&6; } 5483else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485$as_echo "no" >&6; } 5486fi 5487 5488 5489 test -n "$DUMPBIN" && break 5490 done 5491fi 5492if test -z "$DUMPBIN"; then 5493 ac_ct_DUMPBIN=$DUMPBIN 5494 for ac_prog in dumpbin "link -dump" 5495do 5496 # Extract the first word of "$ac_prog", so it can be a program name with args. 5497set dummy $ac_prog; ac_word=$2 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499$as_echo_n "checking for $ac_word... " >&6; } 5500if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -n "$ac_ct_DUMPBIN"; then 5504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5505else 5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517done 5518 done 5519IFS=$as_save_IFS 5520 5521fi 5522fi 5523ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5524if test -n "$ac_ct_DUMPBIN"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5526$as_echo "$ac_ct_DUMPBIN" >&6; } 5527else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529$as_echo "no" >&6; } 5530fi 5531 5532 5533 test -n "$ac_ct_DUMPBIN" && break 5534done 5535 5536 if test "x$ac_ct_DUMPBIN" = x; then 5537 DUMPBIN=":" 5538 else 5539 case $cross_compiling:$ac_tool_warned in 5540yes:) 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5543ac_tool_warned=yes ;; 5544esac 5545 DUMPBIN=$ac_ct_DUMPBIN 5546 fi 5547fi 5548 5549 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5550 *COFF*) 5551 DUMPBIN="$DUMPBIN -symbols -headers" 5552 ;; 5553 *) 5554 DUMPBIN=: 5555 ;; 5556 esac 5557 fi 5558 5559 if test : != "$DUMPBIN"; then 5560 NM=$DUMPBIN 5561 fi 5562fi 5563test -z "$NM" && NM=nm 5564 5565 5566 5567 5568 5569 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5571$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5572if ${lt_cv_nm_interface+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 lt_cv_nm_interface="BSD nm" 5576 echo "int some_variable = 0;" > conftest.$ac_ext 5577 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5578 (eval "$ac_compile" 2>conftest.err) 5579 cat conftest.err >&5 5580 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5582 cat conftest.err >&5 5583 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5584 cat conftest.out >&5 5585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5586 lt_cv_nm_interface="MS dumpbin" 5587 fi 5588 rm -f conftest* 5589fi 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5591$as_echo "$lt_cv_nm_interface" >&6; } 5592 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5594$as_echo_n "checking whether ln -s works... " >&6; } 5595LN_S=$as_ln_s 5596if test "$LN_S" = "ln -s"; then 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5598$as_echo "yes" >&6; } 5599else 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5601$as_echo "no, using $LN_S" >&6; } 5602fi 5603 5604# find the maximum length of command line arguments 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5606$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5607if ${lt_cv_sys_max_cmd_len+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 i=0 5611 teststring=ABCD 5612 5613 case $build_os in 5614 msdosdjgpp*) 5615 # On DJGPP, this test can blow up pretty badly due to problems in libc 5616 # (any single argument exceeding 2000 bytes causes a buffer overrun 5617 # during glob expansion). Even if it were fixed, the result of this 5618 # check would be larger than it should be. 5619 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5620 ;; 5621 5622 gnu*) 5623 # Under GNU Hurd, this test is not required because there is 5624 # no limit to the length of command line arguments. 5625 # Libtool will interpret -1 as no limit whatsoever 5626 lt_cv_sys_max_cmd_len=-1; 5627 ;; 5628 5629 cygwin* | mingw* | cegcc*) 5630 # On Win9x/ME, this test blows up -- it succeeds, but takes 5631 # about 5 minutes as the teststring grows exponentially. 5632 # Worse, since 9x/ME are not pre-emptively multitasking, 5633 # you end up with a "frozen" computer, even though with patience 5634 # the test eventually succeeds (with a max line length of 256k). 5635 # Instead, let's just punt: use the minimum linelength reported by 5636 # all of the supported platforms: 8192 (on NT/2K/XP). 5637 lt_cv_sys_max_cmd_len=8192; 5638 ;; 5639 5640 mint*) 5641 # On MiNT this can take a long time and run out of memory. 5642 lt_cv_sys_max_cmd_len=8192; 5643 ;; 5644 5645 amigaos*) 5646 # On AmigaOS with pdksh, this test takes hours, literally. 5647 # So we just punt and use a minimum line length of 8192. 5648 lt_cv_sys_max_cmd_len=8192; 5649 ;; 5650 5651 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5652 # This has been around since 386BSD, at least. Likely further. 5653 if test -x /sbin/sysctl; then 5654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5655 elif test -x /usr/sbin/sysctl; then 5656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5657 else 5658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5659 fi 5660 # And add a safety zone 5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5663 ;; 5664 5665 interix*) 5666 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5667 lt_cv_sys_max_cmd_len=196608 5668 ;; 5669 5670 os2*) 5671 # The test takes a long time on OS/2. 5672 lt_cv_sys_max_cmd_len=8192 5673 ;; 5674 5675 osf*) 5676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5678 # nice to cause kernel panics so lets avoid the loop below. 5679 # First set a reasonable default. 5680 lt_cv_sys_max_cmd_len=16384 5681 # 5682 if test -x /sbin/sysconfig; then 5683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5684 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5685 esac 5686 fi 5687 ;; 5688 sco3.2v5*) 5689 lt_cv_sys_max_cmd_len=102400 5690 ;; 5691 sysv5* | sco5v6* | sysv4.2uw2*) 5692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5693 if test -n "$kargmax"; then 5694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5695 else 5696 lt_cv_sys_max_cmd_len=32768 5697 fi 5698 ;; 5699 *) 5700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5701 if test -n "$lt_cv_sys_max_cmd_len" && \ 5702 test undefined != "$lt_cv_sys_max_cmd_len"; then 5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5705 else 5706 # Make teststring a little bigger before we do anything with it. 5707 # a 1K string should be a reasonable start. 5708 for i in 1 2 3 4 5 6 7 8; do 5709 teststring=$teststring$teststring 5710 done 5711 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5712 # If test is not a shell built-in, we'll probably end up computing a 5713 # maximum length that is only half of the actual maximum length, but 5714 # we can't tell. 5715 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5716 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5717 test 17 != "$i" # 1/2 MB should be enough 5718 do 5719 i=`expr $i + 1` 5720 teststring=$teststring$teststring 5721 done 5722 # Only check the string length outside the loop. 5723 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5724 teststring= 5725 # Add a significant safety factor because C++ compilers can tack on 5726 # massive amounts of additional arguments before passing them to the 5727 # linker. It appears as though 1/2 is a usable value. 5728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5729 fi 5730 ;; 5731 esac 5732 5733fi 5734 5735if test -n "$lt_cv_sys_max_cmd_len"; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5737$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5738else 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5740$as_echo "none" >&6; } 5741fi 5742max_cmd_len=$lt_cv_sys_max_cmd_len 5743 5744 5745 5746 5747 5748 5749: ${CP="cp -f"} 5750: ${MV="mv -f"} 5751: ${RM="rm -f"} 5752 5753if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5754 lt_unset=unset 5755else 5756 lt_unset=false 5757fi 5758 5759 5760 5761 5762 5763# test EBCDIC or ASCII 5764case `echo X|tr X '\101'` in 5765 A) # ASCII based system 5766 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5767 lt_SP2NL='tr \040 \012' 5768 lt_NL2SP='tr \015\012 \040\040' 5769 ;; 5770 *) # EBCDIC based system 5771 lt_SP2NL='tr \100 \n' 5772 lt_NL2SP='tr \r\n \100\100' 5773 ;; 5774esac 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5785$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5786if ${lt_cv_to_host_file_cmd+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 case $host in 5790 *-*-mingw* ) 5791 case $build in 5792 *-*-mingw* ) # actually msys 5793 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5794 ;; 5795 *-*-cygwin* ) 5796 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5797 ;; 5798 * ) # otherwise, assume *nix 5799 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5800 ;; 5801 esac 5802 ;; 5803 *-*-cygwin* ) 5804 case $build in 5805 *-*-mingw* ) # actually msys 5806 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5807 ;; 5808 *-*-cygwin* ) 5809 lt_cv_to_host_file_cmd=func_convert_file_noop 5810 ;; 5811 * ) # otherwise, assume *nix 5812 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5813 ;; 5814 esac 5815 ;; 5816 * ) # unhandled hosts (and "normal" native builds) 5817 lt_cv_to_host_file_cmd=func_convert_file_noop 5818 ;; 5819esac 5820 5821fi 5822 5823to_host_file_cmd=$lt_cv_to_host_file_cmd 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5825$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5826 5827 5828 5829 5830 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5832$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5833if ${lt_cv_to_tool_file_cmd+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 #assume ordinary cross tools, or native build. 5837lt_cv_to_tool_file_cmd=func_convert_file_noop 5838case $host in 5839 *-*-mingw* ) 5840 case $build in 5841 *-*-mingw* ) # actually msys 5842 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5843 ;; 5844 esac 5845 ;; 5846esac 5847 5848fi 5849 5850to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5852$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5853 5854 5855 5856 5857 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5859$as_echo_n "checking for $LD option to reload object files... " >&6; } 5860if ${lt_cv_ld_reload_flag+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862else 5863 lt_cv_ld_reload_flag='-r' 5864fi 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5866$as_echo "$lt_cv_ld_reload_flag" >&6; } 5867reload_flag=$lt_cv_ld_reload_flag 5868case $reload_flag in 5869"" | " "*) ;; 5870*) reload_flag=" $reload_flag" ;; 5871esac 5872reload_cmds='$LD$reload_flag -o $output$reload_objs' 5873case $host_os in 5874 cygwin* | mingw* | pw32* | cegcc*) 5875 if test yes != "$GCC"; then 5876 reload_cmds=false 5877 fi 5878 ;; 5879 darwin*) 5880 if test yes = "$GCC"; then 5881 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5882 else 5883 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5884 fi 5885 ;; 5886esac 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896if test -n "$ac_tool_prefix"; then 5897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5898set dummy ${ac_tool_prefix}objdump; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if ${ac_cv_prog_OBJDUMP+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -n "$OBJDUMP"; then 5905 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5914 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923fi 5924OBJDUMP=$ac_cv_prog_OBJDUMP 5925if test -n "$OBJDUMP"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5927$as_echo "$OBJDUMP" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932 5933 5934fi 5935if test -z "$ac_cv_prog_OBJDUMP"; then 5936 ac_ct_OBJDUMP=$OBJDUMP 5937 # Extract the first word of "objdump", so it can be a program name with args. 5938set dummy objdump; ac_word=$2 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940$as_echo_n "checking for $ac_word... " >&6; } 5941if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 if test -n "$ac_ct_OBJDUMP"; then 5945 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5946else 5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 test -z "$as_dir" && as_dir=. 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5954 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5965if test -n "$ac_ct_OBJDUMP"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5967$as_echo "$ac_ct_OBJDUMP" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 if test "x$ac_ct_OBJDUMP" = x; then 5974 OBJDUMP="false" 5975 else 5976 case $cross_compiling:$ac_tool_warned in 5977yes:) 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5980ac_tool_warned=yes ;; 5981esac 5982 OBJDUMP=$ac_ct_OBJDUMP 5983 fi 5984else 5985 OBJDUMP="$ac_cv_prog_OBJDUMP" 5986fi 5987 5988test -z "$OBJDUMP" && OBJDUMP=objdump 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5999$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6000if ${lt_cv_deplibs_check_method+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 lt_cv_file_magic_cmd='$MAGIC_CMD' 6004lt_cv_file_magic_test_file= 6005lt_cv_deplibs_check_method='unknown' 6006# Need to set the preceding variable on all platforms that support 6007# interlibrary dependencies. 6008# 'none' -- dependencies not supported. 6009# 'unknown' -- same as none, but documents that we really don't know. 6010# 'pass_all' -- all dependencies passed with no checks. 6011# 'test_compile' -- check by making test program. 6012# 'file_magic [[regex]]' -- check by looking for files in library path 6013# that responds to the $file_magic_cmd with a given extended regex. 6014# If you have 'file' or equivalent on your system and you're not sure 6015# whether 'pass_all' will *always* work, you probably want this one. 6016 6017case $host_os in 6018aix[4-9]*) 6019 lt_cv_deplibs_check_method=pass_all 6020 ;; 6021 6022beos*) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 6026bsdi[45]*) 6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6028 lt_cv_file_magic_cmd='/usr/bin/file -L' 6029 lt_cv_file_magic_test_file=/shlib/libc.so 6030 ;; 6031 6032cygwin*) 6033 # func_win32_libid is a shell function defined in ltmain.sh 6034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6035 lt_cv_file_magic_cmd='func_win32_libid' 6036 ;; 6037 6038mingw* | pw32*) 6039 # Base MSYS/MinGW do not provide the 'file' command needed by 6040 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6041 # unless we find 'file', for example because we are cross-compiling. 6042 if ( file / ) >/dev/null 2>&1; then 6043 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6044 lt_cv_file_magic_cmd='func_win32_libid' 6045 else 6046 # Keep this pattern in sync with the one in func_win32_libid. 6047 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6048 lt_cv_file_magic_cmd='$OBJDUMP -f' 6049 fi 6050 ;; 6051 6052cegcc*) 6053 # use the weaker test based on 'objdump'. See mingw*. 6054 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6055 lt_cv_file_magic_cmd='$OBJDUMP -f' 6056 ;; 6057 6058darwin* | rhapsody*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062freebsd* | dragonfly*) 6063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6064 case $host_cpu in 6065 i*86 ) 6066 # Not sure whether the presence of OpenBSD here was a mistake. 6067 # Let's accept both of them until this is cleared up. 6068 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6069 lt_cv_file_magic_cmd=/usr/bin/file 6070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6071 ;; 6072 esac 6073 else 6074 lt_cv_deplibs_check_method=pass_all 6075 fi 6076 ;; 6077 6078haiku*) 6079 lt_cv_deplibs_check_method=pass_all 6080 ;; 6081 6082hpux10.20* | hpux11*) 6083 lt_cv_file_magic_cmd=/usr/bin/file 6084 case $host_cpu in 6085 ia64*) 6086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6087 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6088 ;; 6089 hppa*64*) 6090 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]' 6091 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6092 ;; 6093 *) 6094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6095 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6096 ;; 6097 esac 6098 ;; 6099 6100interix[3-9]*) 6101 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6103 ;; 6104 6105irix5* | irix6* | nonstopux*) 6106 case $LD in 6107 *-32|*"-32 ") libmagic=32-bit;; 6108 *-n32|*"-n32 ") libmagic=N32;; 6109 *-64|*"-64 ") libmagic=64-bit;; 6110 *) libmagic=never-match;; 6111 esac 6112 lt_cv_deplibs_check_method=pass_all 6113 ;; 6114 6115# This must be glibc/ELF. 6116linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120netbsd*) 6121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6123 else 6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6125 fi 6126 ;; 6127 6128newos6*) 6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6130 lt_cv_file_magic_cmd=/usr/bin/file 6131 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6132 ;; 6133 6134*nto* | *qnx*) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 6138openbsd* | bitrig*) 6139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6141 else 6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6143 fi 6144 ;; 6145 6146osf3* | osf4* | osf5*) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 6150rdos*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154solaris*) 6155 lt_cv_deplibs_check_method=pass_all 6156 ;; 6157 6158sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6159 lt_cv_deplibs_check_method=pass_all 6160 ;; 6161 6162sysv4 | sysv4.3*) 6163 case $host_vendor in 6164 motorola) 6165 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]' 6166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6167 ;; 6168 ncr) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 sequent) 6172 lt_cv_file_magic_cmd='/bin/file' 6173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6174 ;; 6175 sni) 6176 lt_cv_file_magic_cmd='/bin/file' 6177 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6178 lt_cv_file_magic_test_file=/lib/libc.so 6179 ;; 6180 siemens) 6181 lt_cv_deplibs_check_method=pass_all 6182 ;; 6183 pc) 6184 lt_cv_deplibs_check_method=pass_all 6185 ;; 6186 esac 6187 ;; 6188 6189tpf*) 6190 lt_cv_deplibs_check_method=pass_all 6191 ;; 6192os2*) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195esac 6196 6197fi 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6199$as_echo "$lt_cv_deplibs_check_method" >&6; } 6200 6201file_magic_glob= 6202want_nocaseglob=no 6203if test "$build" = "$host"; then 6204 case $host_os in 6205 mingw* | pw32*) 6206 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6207 want_nocaseglob=yes 6208 else 6209 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6210 fi 6211 ;; 6212 esac 6213fi 6214 6215file_magic_cmd=$lt_cv_file_magic_cmd 6216deplibs_check_method=$lt_cv_deplibs_check_method 6217test -z "$deplibs_check_method" && deplibs_check_method=unknown 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240if test -n "$ac_tool_prefix"; then 6241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6242set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if ${ac_cv_prog_DLLTOOL+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 if test -n "$DLLTOOL"; then 6249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6250else 6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6258 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263 done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268DLLTOOL=$ac_cv_prog_DLLTOOL 6269if test -n "$DLLTOOL"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6271$as_echo "$DLLTOOL" >&6; } 6272else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 6278fi 6279if test -z "$ac_cv_prog_DLLTOOL"; then 6280 ac_ct_DLLTOOL=$DLLTOOL 6281 # Extract the first word of "dlltool", so it can be a program name with args. 6282set dummy dlltool; ac_word=$2 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$ac_ct_DLLTOOL"; then 6289 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6309if test -n "$ac_ct_DLLTOOL"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6311$as_echo "$ac_ct_DLLTOOL" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 if test "x$ac_ct_DLLTOOL" = x; then 6318 DLLTOOL="false" 6319 else 6320 case $cross_compiling:$ac_tool_warned in 6321yes:) 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6324ac_tool_warned=yes ;; 6325esac 6326 DLLTOOL=$ac_ct_DLLTOOL 6327 fi 6328else 6329 DLLTOOL="$ac_cv_prog_DLLTOOL" 6330fi 6331 6332test -z "$DLLTOOL" && DLLTOOL=dlltool 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6344$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6345if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 lt_cv_sharedlib_from_linklib_cmd='unknown' 6349 6350case $host_os in 6351cygwin* | mingw* | pw32* | cegcc*) 6352 # two different shell functions defined in ltmain.sh; 6353 # decide which one to use based on capabilities of $DLLTOOL 6354 case `$DLLTOOL --help 2>&1` in 6355 *--identify-strict*) 6356 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6357 ;; 6358 *) 6359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6360 ;; 6361 esac 6362 ;; 6363*) 6364 # fallback: assume linklib IS sharedlib 6365 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6366 ;; 6367esac 6368 6369fi 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6371$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6372sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6373test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6374 6375 6376 6377 6378 6379 6380 6381if test -n "$ac_tool_prefix"; then 6382 for ac_prog in ar 6383 do 6384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6385set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6387$as_echo_n "checking for $ac_word... " >&6; } 6388if ${ac_cv_prog_AR+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 if test -n "$AR"; then 6392 ac_cv_prog_AR="$AR" # Let the user override the test. 6393else 6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6395for as_dir in $PATH 6396do 6397 IFS=$as_save_IFS 6398 test -z "$as_dir" && as_dir=. 6399 for ac_exec_ext in '' $ac_executable_extensions; do 6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6401 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6403 break 2 6404 fi 6405done 6406 done 6407IFS=$as_save_IFS 6408 6409fi 6410fi 6411AR=$ac_cv_prog_AR 6412if test -n "$AR"; then 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6414$as_echo "$AR" >&6; } 6415else 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6417$as_echo "no" >&6; } 6418fi 6419 6420 6421 test -n "$AR" && break 6422 done 6423fi 6424if test -z "$AR"; then 6425 ac_ct_AR=$AR 6426 for ac_prog in ar 6427do 6428 # Extract the first word of "$ac_prog", so it can be a program name with args. 6429set dummy $ac_prog; ac_word=$2 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6431$as_echo_n "checking for $ac_word... " >&6; } 6432if ${ac_cv_prog_ac_ct_AR+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 if test -n "$ac_ct_AR"; then 6436 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_ac_ct_AR="$ac_prog" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455ac_ct_AR=$ac_cv_prog_ac_ct_AR 6456if test -n "$ac_ct_AR"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6458$as_echo "$ac_ct_AR" >&6; } 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461$as_echo "no" >&6; } 6462fi 6463 6464 6465 test -n "$ac_ct_AR" && break 6466done 6467 6468 if test "x$ac_ct_AR" = x; then 6469 AR="false" 6470 else 6471 case $cross_compiling:$ac_tool_warned in 6472yes:) 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6475ac_tool_warned=yes ;; 6476esac 6477 AR=$ac_ct_AR 6478 fi 6479fi 6480 6481: ${AR=ar} 6482: ${AR_FLAGS=cru} 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6495$as_echo_n "checking for archiver @FILE support... " >&6; } 6496if ${lt_cv_ar_at_file+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 lt_cv_ar_at_file=no 6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501/* end confdefs.h. */ 6502 6503int 6504main () 6505{ 6506 6507 ; 6508 return 0; 6509} 6510_ACEOF 6511if ac_fn_c_try_compile "$LINENO"; then : 6512 echo conftest.$ac_objext > conftest.lst 6513 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6515 (eval $lt_ar_try) 2>&5 6516 ac_status=$? 6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6518 test $ac_status = 0; } 6519 if test 0 -eq "$ac_status"; then 6520 # Ensure the archiver fails upon bogus file names. 6521 rm -f conftest.$ac_objext libconftest.a 6522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6523 (eval $lt_ar_try) 2>&5 6524 ac_status=$? 6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6526 test $ac_status = 0; } 6527 if test 0 -ne "$ac_status"; then 6528 lt_cv_ar_at_file=@ 6529 fi 6530 fi 6531 rm -f conftest.* libconftest.a 6532 6533fi 6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6538$as_echo "$lt_cv_ar_at_file" >&6; } 6539 6540if test no = "$lt_cv_ar_at_file"; then 6541 archiver_list_spec= 6542else 6543 archiver_list_spec=$lt_cv_ar_at_file 6544fi 6545 6546 6547 6548 6549 6550 6551 6552if test -n "$ac_tool_prefix"; then 6553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6554set dummy ${ac_tool_prefix}strip; ac_word=$2 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6556$as_echo_n "checking for $ac_word... " >&6; } 6557if ${ac_cv_prog_STRIP+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 if test -n "$STRIP"; then 6561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6562else 6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6564for as_dir in $PATH 6565do 6566 IFS=$as_save_IFS 6567 test -z "$as_dir" && as_dir=. 6568 for ac_exec_ext in '' $ac_executable_extensions; do 6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6570 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6572 break 2 6573 fi 6574done 6575 done 6576IFS=$as_save_IFS 6577 6578fi 6579fi 6580STRIP=$ac_cv_prog_STRIP 6581if test -n "$STRIP"; then 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6583$as_echo "$STRIP" >&6; } 6584else 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586$as_echo "no" >&6; } 6587fi 6588 6589 6590fi 6591if test -z "$ac_cv_prog_STRIP"; then 6592 ac_ct_STRIP=$STRIP 6593 # Extract the first word of "strip", so it can be a program name with args. 6594set dummy strip; ac_word=$2 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596$as_echo_n "checking for $ac_word... " >&6; } 6597if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 if test -n "$ac_ct_STRIP"; then 6601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6602else 6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6604for as_dir in $PATH 6605do 6606 IFS=$as_save_IFS 6607 test -z "$as_dir" && as_dir=. 6608 for ac_exec_ext in '' $ac_executable_extensions; do 6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6610 ac_cv_prog_ac_ct_STRIP="strip" 6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6612 break 2 6613 fi 6614done 6615 done 6616IFS=$as_save_IFS 6617 6618fi 6619fi 6620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6621if test -n "$ac_ct_STRIP"; then 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6623$as_echo "$ac_ct_STRIP" >&6; } 6624else 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6626$as_echo "no" >&6; } 6627fi 6628 6629 if test "x$ac_ct_STRIP" = x; then 6630 STRIP=":" 6631 else 6632 case $cross_compiling:$ac_tool_warned in 6633yes:) 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6636ac_tool_warned=yes ;; 6637esac 6638 STRIP=$ac_ct_STRIP 6639 fi 6640else 6641 STRIP="$ac_cv_prog_STRIP" 6642fi 6643 6644test -z "$STRIP" && STRIP=: 6645 6646 6647 6648 6649 6650 6651if test -n "$ac_tool_prefix"; then 6652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6653set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655$as_echo_n "checking for $ac_word... " >&6; } 6656if ${ac_cv_prog_RANLIB+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 if test -n "$RANLIB"; then 6660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6661else 6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663for as_dir in $PATH 6664do 6665 IFS=$as_save_IFS 6666 test -z "$as_dir" && as_dir=. 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673done 6674 done 6675IFS=$as_save_IFS 6676 6677fi 6678fi 6679RANLIB=$ac_cv_prog_RANLIB 6680if test -n "$RANLIB"; then 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6682$as_echo "$RANLIB" >&6; } 6683else 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685$as_echo "no" >&6; } 6686fi 6687 6688 6689fi 6690if test -z "$ac_cv_prog_RANLIB"; then 6691 ac_ct_RANLIB=$RANLIB 6692 # Extract the first word of "ranlib", so it can be a program name with args. 6693set dummy ranlib; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -n "$ac_ct_RANLIB"; then 6700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_prog_ac_ct_RANLIB="ranlib" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714 done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6720if test -n "$ac_ct_RANLIB"; then 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6722$as_echo "$ac_ct_RANLIB" >&6; } 6723else 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725$as_echo "no" >&6; } 6726fi 6727 6728 if test "x$ac_ct_RANLIB" = x; then 6729 RANLIB=":" 6730 else 6731 case $cross_compiling:$ac_tool_warned in 6732yes:) 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6735ac_tool_warned=yes ;; 6736esac 6737 RANLIB=$ac_ct_RANLIB 6738 fi 6739else 6740 RANLIB="$ac_cv_prog_RANLIB" 6741fi 6742 6743test -z "$RANLIB" && RANLIB=: 6744 6745 6746 6747 6748 6749 6750# Determine commands to create old-style static archives. 6751old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6752old_postinstall_cmds='chmod 644 $oldlib' 6753old_postuninstall_cmds= 6754 6755if test -n "$RANLIB"; then 6756 case $host_os in 6757 bitrig* | openbsd*) 6758 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6759 ;; 6760 *) 6761 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6762 ;; 6763 esac 6764 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6765fi 6766 6767case $host_os in 6768 darwin*) 6769 lock_old_archive_extraction=yes ;; 6770 *) 6771 lock_old_archive_extraction=no ;; 6772esac 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812# If no C compiler was specified, use CC. 6813LTCC=${LTCC-"$CC"} 6814 6815# If no C compiler flags were specified, use CFLAGS. 6816LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6817 6818# Allow CC to be a program name with arguments. 6819compiler=$CC 6820 6821 6822# Check for command to grab the raw symbol name followed by C symbol from nm. 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6824$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6825if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 6829# These are sane defaults that work on at least a few old systems. 6830# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6831 6832# Character class describing NM global symbol codes. 6833symcode='[BCDEGRST]' 6834 6835# Regexp to match symbols that can be accessed directly from C. 6836sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6837 6838# Define system-specific variables. 6839case $host_os in 6840aix*) 6841 symcode='[BCDT]' 6842 ;; 6843cygwin* | mingw* | pw32* | cegcc*) 6844 symcode='[ABCDGISTW]' 6845 ;; 6846hpux*) 6847 if test ia64 = "$host_cpu"; then 6848 symcode='[ABCDEGRST]' 6849 fi 6850 ;; 6851irix* | nonstopux*) 6852 symcode='[BCDEGRST]' 6853 ;; 6854osf*) 6855 symcode='[BCDEGQRST]' 6856 ;; 6857solaris*) 6858 symcode='[BDRT]' 6859 ;; 6860sco3.2v5*) 6861 symcode='[DT]' 6862 ;; 6863sysv4.2uw2*) 6864 symcode='[DT]' 6865 ;; 6866sysv5* | sco5v6* | unixware* | OpenUNIX*) 6867 symcode='[ABDT]' 6868 ;; 6869sysv4) 6870 symcode='[DFNSTU]' 6871 ;; 6872esac 6873 6874# If we're using GNU nm, then use its standard symbol codes. 6875case `$NM -V 2>&1` in 6876*GNU* | *'with BFD'*) 6877 symcode='[ABCDGIRSTW]' ;; 6878esac 6879 6880if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6881 # Gets list of data symbols to import. 6882 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6883 # Adjust the below global symbol transforms to fixup imported variables. 6884 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6885 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6886 lt_c_name_lib_hook="\ 6887 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6888 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6889else 6890 # Disable hooks by default. 6891 lt_cv_sys_global_symbol_to_import= 6892 lt_cdecl_hook= 6893 lt_c_name_hook= 6894 lt_c_name_lib_hook= 6895fi 6896 6897# Transform an extracted symbol line into a proper C declaration. 6898# Some systems (esp. on ia64) link data and code symbols differently, 6899# so use this general approach. 6900lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6901$lt_cdecl_hook\ 6902" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6903" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6904 6905# Transform an extracted symbol line into symbol name and symbol address 6906lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6907$lt_c_name_hook\ 6908" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6909" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6910 6911# Transform an extracted symbol line into symbol name with lib prefix and 6912# symbol address. 6913lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6914$lt_c_name_lib_hook\ 6915" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6916" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6917" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6918 6919# Handle CRLF in mingw tool chain 6920opt_cr= 6921case $build_os in 6922mingw*) 6923 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6924 ;; 6925esac 6926 6927# Try without a prefix underscore, then with it. 6928for ac_symprfx in "" "_"; do 6929 6930 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6931 symxfrm="\\1 $ac_symprfx\\2 \\2" 6932 6933 # Write the raw and C identifiers. 6934 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6935 # Fake it for dumpbin and say T for any non-static function, 6936 # D for any global variable and I for any imported variable. 6937 # Also find C++ and __fastcall symbols from MSVC++, 6938 # which start with @ or ?. 6939 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6940" {last_section=section; section=\$ 3};"\ 6941" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6942" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6943" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6944" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6945" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6946" \$ 0!~/External *\|/{next};"\ 6947" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6948" {if(hide[section]) next};"\ 6949" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6950" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6951" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6952" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6953" ' prfx=^$ac_symprfx" 6954 else 6955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6956 fi 6957 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6958 6959 # Check to see that the pipe works correctly. 6960 pipe_works=no 6961 6962 rm -f conftest* 6963 cat > conftest.$ac_ext <<_LT_EOF 6964#ifdef __cplusplus 6965extern "C" { 6966#endif 6967char nm_test_var; 6968void nm_test_func(void); 6969void nm_test_func(void){} 6970#ifdef __cplusplus 6971} 6972#endif 6973int main(){nm_test_var='a';nm_test_func();return(0);} 6974_LT_EOF 6975 6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6977 (eval $ac_compile) 2>&5 6978 ac_status=$? 6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6980 test $ac_status = 0; }; then 6981 # Now try to grab the symbols. 6982 nlist=conftest.nm 6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6985 ac_status=$? 6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6987 test $ac_status = 0; } && test -s "$nlist"; then 6988 # Try sorting and uniquifying the output. 6989 if sort "$nlist" | uniq > "$nlist"T; then 6990 mv -f "$nlist"T "$nlist" 6991 else 6992 rm -f "$nlist"T 6993 fi 6994 6995 # Make sure that we snagged all the symbols we need. 6996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6998 cat <<_LT_EOF > conftest.$ac_ext 6999/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7000#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7001/* DATA imports from DLLs on WIN32 can't be const, because runtime 7002 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7003# define LT_DLSYM_CONST 7004#elif defined __osf__ 7005/* This system does not cope well with relocations in const data. */ 7006# define LT_DLSYM_CONST 7007#else 7008# define LT_DLSYM_CONST const 7009#endif 7010 7011#ifdef __cplusplus 7012extern "C" { 7013#endif 7014 7015_LT_EOF 7016 # Now generate the symbol file. 7017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7018 7019 cat <<_LT_EOF >> conftest.$ac_ext 7020 7021/* The mapping between symbol names and symbols. */ 7022LT_DLSYM_CONST struct { 7023 const char *name; 7024 void *address; 7025} 7026lt__PROGRAM__LTX_preloaded_symbols[] = 7027{ 7028 { "@PROGRAM@", (void *) 0 }, 7029_LT_EOF 7030 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7031 cat <<\_LT_EOF >> conftest.$ac_ext 7032 {0, (void *) 0} 7033}; 7034 7035/* This works around a problem in FreeBSD linker */ 7036#ifdef FREEBSD_WORKAROUND 7037static const void *lt_preloaded_setup() { 7038 return lt__PROGRAM__LTX_preloaded_symbols; 7039} 7040#endif 7041 7042#ifdef __cplusplus 7043} 7044#endif 7045_LT_EOF 7046 # Now try linking the two files. 7047 mv conftest.$ac_objext conftstm.$ac_objext 7048 lt_globsym_save_LIBS=$LIBS 7049 lt_globsym_save_CFLAGS=$CFLAGS 7050 LIBS=conftstm.$ac_objext 7051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7053 (eval $ac_link) 2>&5 7054 ac_status=$? 7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7056 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7057 pipe_works=yes 7058 fi 7059 LIBS=$lt_globsym_save_LIBS 7060 CFLAGS=$lt_globsym_save_CFLAGS 7061 else 7062 echo "cannot find nm_test_func in $nlist" >&5 7063 fi 7064 else 7065 echo "cannot find nm_test_var in $nlist" >&5 7066 fi 7067 else 7068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7069 fi 7070 else 7071 echo "$progname: failed program was:" >&5 7072 cat conftest.$ac_ext >&5 7073 fi 7074 rm -rf conftest* conftst* 7075 7076 # Do not use the global_symbol_pipe unless it works. 7077 if test yes = "$pipe_works"; then 7078 break 7079 else 7080 lt_cv_sys_global_symbol_pipe= 7081 fi 7082done 7083 7084fi 7085 7086if test -z "$lt_cv_sys_global_symbol_pipe"; then 7087 lt_cv_sys_global_symbol_to_cdecl= 7088fi 7089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7091$as_echo "failed" >&6; } 7092else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7094$as_echo "ok" >&6; } 7095fi 7096 7097# Response file support. 7098if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7099 nm_file_list_spec='@' 7100elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7101 nm_file_list_spec='@' 7102fi 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7141$as_echo_n "checking for sysroot... " >&6; } 7142 7143# Check whether --with-sysroot was given. 7144if test "${with_sysroot+set}" = set; then : 7145 withval=$with_sysroot; 7146else 7147 with_sysroot=no 7148fi 7149 7150 7151lt_sysroot= 7152case $with_sysroot in #( 7153 yes) 7154 if test yes = "$GCC"; then 7155 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7156 fi 7157 ;; #( 7158 /*) 7159 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7160 ;; #( 7161 no|'') 7162 ;; #( 7163 *) 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7165$as_echo "$with_sysroot" >&6; } 7166 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7167 ;; 7168esac 7169 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7171$as_echo "${lt_sysroot:-no}" >&6; } 7172 7173 7174 7175 7176 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7178$as_echo_n "checking for a working dd... " >&6; } 7179if ${ac_cv_path_lt_DD+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 printf 0123456789abcdef0123456789abcdef >conftest.i 7183cat conftest.i conftest.i >conftest2.i 7184: ${lt_DD:=$DD} 7185if test -z "$lt_DD"; then 7186 ac_path_lt_DD_found=false 7187 # Loop through the user's path and test for each of PROGNAME-LIST 7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7189for as_dir in $PATH 7190do 7191 IFS=$as_save_IFS 7192 test -z "$as_dir" && as_dir=. 7193 for ac_prog in dd; do 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7196 as_fn_executable_p "$ac_path_lt_DD" || continue 7197if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7198 cmp -s conftest.i conftest.out \ 7199 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7200fi 7201 $ac_path_lt_DD_found && break 3 7202 done 7203 done 7204 done 7205IFS=$as_save_IFS 7206 if test -z "$ac_cv_path_lt_DD"; then 7207 : 7208 fi 7209else 7210 ac_cv_path_lt_DD=$lt_DD 7211fi 7212 7213rm -f conftest.i conftest2.i conftest.out 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7216$as_echo "$ac_cv_path_lt_DD" >&6; } 7217 7218 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7220$as_echo_n "checking how to truncate binary pipes... " >&6; } 7221if ${lt_cv_truncate_bin+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 printf 0123456789abcdef0123456789abcdef >conftest.i 7225cat conftest.i conftest.i >conftest2.i 7226lt_cv_truncate_bin= 7227if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7228 cmp -s conftest.i conftest.out \ 7229 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7230fi 7231rm -f conftest.i conftest2.i conftest.out 7232test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7235$as_echo "$lt_cv_truncate_bin" >&6; } 7236 7237 7238 7239 7240 7241 7242 7243# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7244func_cc_basename () 7245{ 7246 for cc_temp in $*""; do 7247 case $cc_temp in 7248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7250 \-*) ;; 7251 *) break;; 7252 esac 7253 done 7254 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7255} 7256 7257# Check whether --enable-libtool-lock was given. 7258if test "${enable_libtool_lock+set}" = set; then : 7259 enableval=$enable_libtool_lock; 7260fi 7261 7262test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7263 7264# Some flags need to be propagated to the compiler or linker for good 7265# libtool support. 7266case $host in 7267ia64-*-hpux*) 7268 # Find out what ABI is being produced by ac_compile, and set mode 7269 # options accordingly. 7270 echo 'int i;' > conftest.$ac_ext 7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7272 (eval $ac_compile) 2>&5 7273 ac_status=$? 7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7275 test $ac_status = 0; }; then 7276 case `/usr/bin/file conftest.$ac_objext` in 7277 *ELF-32*) 7278 HPUX_IA64_MODE=32 7279 ;; 7280 *ELF-64*) 7281 HPUX_IA64_MODE=64 7282 ;; 7283 esac 7284 fi 7285 rm -rf conftest* 7286 ;; 7287*-*-irix6*) 7288 # Find out what ABI is being produced by ac_compile, and set linker 7289 # options accordingly. 7290 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7292 (eval $ac_compile) 2>&5 7293 ac_status=$? 7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7295 test $ac_status = 0; }; then 7296 if test yes = "$lt_cv_prog_gnu_ld"; then 7297 case `/usr/bin/file conftest.$ac_objext` in 7298 *32-bit*) 7299 LD="${LD-ld} -melf32bsmip" 7300 ;; 7301 *N32*) 7302 LD="${LD-ld} -melf32bmipn32" 7303 ;; 7304 *64-bit*) 7305 LD="${LD-ld} -melf64bmip" 7306 ;; 7307 esac 7308 else 7309 case `/usr/bin/file conftest.$ac_objext` in 7310 *32-bit*) 7311 LD="${LD-ld} -32" 7312 ;; 7313 *N32*) 7314 LD="${LD-ld} -n32" 7315 ;; 7316 *64-bit*) 7317 LD="${LD-ld} -64" 7318 ;; 7319 esac 7320 fi 7321 fi 7322 rm -rf conftest* 7323 ;; 7324 7325mips64*-*linux*) 7326 # Find out what ABI is being produced by ac_compile, and set linker 7327 # options accordingly. 7328 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7330 (eval $ac_compile) 2>&5 7331 ac_status=$? 7332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7333 test $ac_status = 0; }; then 7334 emul=elf 7335 case `/usr/bin/file conftest.$ac_objext` in 7336 *32-bit*) 7337 emul="${emul}32" 7338 ;; 7339 *64-bit*) 7340 emul="${emul}64" 7341 ;; 7342 esac 7343 case `/usr/bin/file conftest.$ac_objext` in 7344 *MSB*) 7345 emul="${emul}btsmip" 7346 ;; 7347 *LSB*) 7348 emul="${emul}ltsmip" 7349 ;; 7350 esac 7351 case `/usr/bin/file conftest.$ac_objext` in 7352 *N32*) 7353 emul="${emul}n32" 7354 ;; 7355 esac 7356 LD="${LD-ld} -m $emul" 7357 fi 7358 rm -rf conftest* 7359 ;; 7360 7361x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7362s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7363 # Find out what ABI is being produced by ac_compile, and set linker 7364 # options accordingly. Note that the listed cases only cover the 7365 # situations where additional linker options are needed (such as when 7366 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7367 # vice versa); the common cases where no linker options are needed do 7368 # not appear in the list. 7369 echo 'int i;' > conftest.$ac_ext 7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7371 (eval $ac_compile) 2>&5 7372 ac_status=$? 7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7374 test $ac_status = 0; }; then 7375 case `/usr/bin/file conftest.o` in 7376 *32-bit*) 7377 case $host in 7378 x86_64-*kfreebsd*-gnu) 7379 LD="${LD-ld} -m elf_i386_fbsd" 7380 ;; 7381 x86_64-*linux*) 7382 case `/usr/bin/file conftest.o` in 7383 *x86-64*) 7384 LD="${LD-ld} -m elf32_x86_64" 7385 ;; 7386 *) 7387 LD="${LD-ld} -m elf_i386" 7388 ;; 7389 esac 7390 ;; 7391 powerpc64le-*linux*) 7392 LD="${LD-ld} -m elf32lppclinux" 7393 ;; 7394 powerpc64-*linux*) 7395 LD="${LD-ld} -m elf32ppclinux" 7396 ;; 7397 s390x-*linux*) 7398 LD="${LD-ld} -m elf_s390" 7399 ;; 7400 sparc64-*linux*) 7401 LD="${LD-ld} -m elf32_sparc" 7402 ;; 7403 esac 7404 ;; 7405 *64-bit*) 7406 case $host in 7407 x86_64-*kfreebsd*-gnu) 7408 LD="${LD-ld} -m elf_x86_64_fbsd" 7409 ;; 7410 x86_64-*linux*) 7411 LD="${LD-ld} -m elf_x86_64" 7412 ;; 7413 powerpcle-*linux*) 7414 LD="${LD-ld} -m elf64lppc" 7415 ;; 7416 powerpc-*linux*) 7417 LD="${LD-ld} -m elf64ppc" 7418 ;; 7419 s390*-*linux*|s390*-*tpf*) 7420 LD="${LD-ld} -m elf64_s390" 7421 ;; 7422 sparc*-*linux*) 7423 LD="${LD-ld} -m elf64_sparc" 7424 ;; 7425 esac 7426 ;; 7427 esac 7428 fi 7429 rm -rf conftest* 7430 ;; 7431 7432*-*-sco3.2v5*) 7433 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7434 SAVE_CFLAGS=$CFLAGS 7435 CFLAGS="$CFLAGS -belf" 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7437$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7438if ${lt_cv_cc_needs_belf+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 ac_ext=c 7442ac_cpp='$CPP $CPPFLAGS' 7443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7445ac_compiler_gnu=$ac_cv_c_compiler_gnu 7446 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449 7450int 7451main () 7452{ 7453 7454 ; 7455 return 0; 7456} 7457_ACEOF 7458if ac_fn_c_try_link "$LINENO"; then : 7459 lt_cv_cc_needs_belf=yes 7460else 7461 lt_cv_cc_needs_belf=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext \ 7464 conftest$ac_exeext conftest.$ac_ext 7465 ac_ext=c 7466ac_cpp='$CPP $CPPFLAGS' 7467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7469ac_compiler_gnu=$ac_cv_c_compiler_gnu 7470 7471fi 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7473$as_echo "$lt_cv_cc_needs_belf" >&6; } 7474 if test yes != "$lt_cv_cc_needs_belf"; then 7475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7476 CFLAGS=$SAVE_CFLAGS 7477 fi 7478 ;; 7479*-*solaris*) 7480 # Find out what ABI is being produced by ac_compile, and set linker 7481 # options accordingly. 7482 echo 'int i;' > conftest.$ac_ext 7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7484 (eval $ac_compile) 2>&5 7485 ac_status=$? 7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7487 test $ac_status = 0; }; then 7488 case `/usr/bin/file conftest.o` in 7489 *64-bit*) 7490 case $lt_cv_prog_gnu_ld in 7491 yes*) 7492 case $host in 7493 i?86-*-solaris*|x86_64-*-solaris*) 7494 LD="${LD-ld} -m elf_x86_64" 7495 ;; 7496 sparc*-*-solaris*) 7497 LD="${LD-ld} -m elf64_sparc" 7498 ;; 7499 esac 7500 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7501 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7502 LD=${LD-ld}_sol2 7503 fi 7504 ;; 7505 *) 7506 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7507 LD="${LD-ld} -64" 7508 fi 7509 ;; 7510 esac 7511 ;; 7512 esac 7513 fi 7514 rm -rf conftest* 7515 ;; 7516esac 7517 7518need_locks=$enable_libtool_lock 7519 7520if test -n "$ac_tool_prefix"; then 7521 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7522set dummy ${ac_tool_prefix}mt; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$MANIFEST_TOOL"; then 7529 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7538 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7549if test -n "$MANIFEST_TOOL"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7551$as_echo "$MANIFEST_TOOL" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 7558fi 7559if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7560 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7561 # Extract the first word of "mt", so it can be a program name with args. 7562set dummy mt; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$ac_ct_MANIFEST_TOOL"; then 7569 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7578 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7589if test -n "$ac_ct_MANIFEST_TOOL"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7591$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7598 MANIFEST_TOOL=":" 7599 else 7600 case $cross_compiling:$ac_tool_warned in 7601yes:) 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7604ac_tool_warned=yes ;; 7605esac 7606 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7607 fi 7608else 7609 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7610fi 7611 7612test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7614$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7615if ${lt_cv_path_mainfest_tool+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617else 7618 lt_cv_path_mainfest_tool=no 7619 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7620 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7621 cat conftest.err >&5 7622 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7623 lt_cv_path_mainfest_tool=yes 7624 fi 7625 rm -f conftest* 7626fi 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7628$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7629if test yes != "$lt_cv_path_mainfest_tool"; then 7630 MANIFEST_TOOL=: 7631fi 7632 7633 7634 7635 7636 7637 7638 case $host_os in 7639 rhapsody* | darwin*) 7640 if test -n "$ac_tool_prefix"; then 7641 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7642set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7644$as_echo_n "checking for $ac_word... " >&6; } 7645if ${ac_cv_prog_DSYMUTIL+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 if test -n "$DSYMUTIL"; then 7649 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 test -z "$as_dir" && as_dir=. 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7658 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662done 7663 done 7664IFS=$as_save_IFS 7665 7666fi 7667fi 7668DSYMUTIL=$ac_cv_prog_DSYMUTIL 7669if test -n "$DSYMUTIL"; then 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7671$as_echo "$DSYMUTIL" >&6; } 7672else 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674$as_echo "no" >&6; } 7675fi 7676 7677 7678fi 7679if test -z "$ac_cv_prog_DSYMUTIL"; then 7680 ac_ct_DSYMUTIL=$DSYMUTIL 7681 # Extract the first word of "dsymutil", so it can be a program name with args. 7682set dummy dsymutil; ac_word=$2 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7684$as_echo_n "checking for $ac_word... " >&6; } 7685if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 if test -n "$ac_ct_DSYMUTIL"; then 7689 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7690else 7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7692for as_dir in $PATH 7693do 7694 IFS=$as_save_IFS 7695 test -z "$as_dir" && as_dir=. 7696 for ac_exec_ext in '' $ac_executable_extensions; do 7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7698 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7700 break 2 7701 fi 7702done 7703 done 7704IFS=$as_save_IFS 7705 7706fi 7707fi 7708ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7709if test -n "$ac_ct_DSYMUTIL"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7711$as_echo "$ac_ct_DSYMUTIL" >&6; } 7712else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714$as_echo "no" >&6; } 7715fi 7716 7717 if test "x$ac_ct_DSYMUTIL" = x; then 7718 DSYMUTIL=":" 7719 else 7720 case $cross_compiling:$ac_tool_warned in 7721yes:) 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7724ac_tool_warned=yes ;; 7725esac 7726 DSYMUTIL=$ac_ct_DSYMUTIL 7727 fi 7728else 7729 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7730fi 7731 7732 if test -n "$ac_tool_prefix"; then 7733 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7734set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if ${ac_cv_prog_NMEDIT+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$NMEDIT"; then 7741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7750 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760NMEDIT=$ac_cv_prog_NMEDIT 7761if test -n "$NMEDIT"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7763$as_echo "$NMEDIT" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 7770fi 7771if test -z "$ac_cv_prog_NMEDIT"; then 7772 ac_ct_NMEDIT=$NMEDIT 7773 # Extract the first word of "nmedit", so it can be a program name with args. 7774set dummy nmedit; ac_word=$2 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7776$as_echo_n "checking for $ac_word... " >&6; } 7777if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 if test -n "$ac_ct_NMEDIT"; then 7781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7782else 7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784for as_dir in $PATH 7785do 7786 IFS=$as_save_IFS 7787 test -z "$as_dir" && as_dir=. 7788 for ac_exec_ext in '' $ac_executable_extensions; do 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7790 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7792 break 2 7793 fi 7794done 7795 done 7796IFS=$as_save_IFS 7797 7798fi 7799fi 7800ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7801if test -n "$ac_ct_NMEDIT"; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7803$as_echo "$ac_ct_NMEDIT" >&6; } 7804else 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7806$as_echo "no" >&6; } 7807fi 7808 7809 if test "x$ac_ct_NMEDIT" = x; then 7810 NMEDIT=":" 7811 else 7812 case $cross_compiling:$ac_tool_warned in 7813yes:) 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7816ac_tool_warned=yes ;; 7817esac 7818 NMEDIT=$ac_ct_NMEDIT 7819 fi 7820else 7821 NMEDIT="$ac_cv_prog_NMEDIT" 7822fi 7823 7824 if test -n "$ac_tool_prefix"; then 7825 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7826set dummy ${ac_tool_prefix}lipo; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if ${ac_cv_prog_LIPO+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$LIPO"; then 7833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852LIPO=$ac_cv_prog_LIPO 7853if test -n "$LIPO"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7855$as_echo "$LIPO" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 7862fi 7863if test -z "$ac_cv_prog_LIPO"; then 7864 ac_ct_LIPO=$LIPO 7865 # Extract the first word of "lipo", so it can be a program name with args. 7866set dummy lipo; ac_word=$2 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868$as_echo_n "checking for $ac_word... " >&6; } 7869if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 if test -n "$ac_ct_LIPO"; then 7873 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7874else 7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876for as_dir in $PATH 7877do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_prog_ac_ct_LIPO="lipo" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886done 7887 done 7888IFS=$as_save_IFS 7889 7890fi 7891fi 7892ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7893if test -n "$ac_ct_LIPO"; then 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7895$as_echo "$ac_ct_LIPO" >&6; } 7896else 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7898$as_echo "no" >&6; } 7899fi 7900 7901 if test "x$ac_ct_LIPO" = x; then 7902 LIPO=":" 7903 else 7904 case $cross_compiling:$ac_tool_warned in 7905yes:) 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7908ac_tool_warned=yes ;; 7909esac 7910 LIPO=$ac_ct_LIPO 7911 fi 7912else 7913 LIPO="$ac_cv_prog_LIPO" 7914fi 7915 7916 if test -n "$ac_tool_prefix"; then 7917 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7918set dummy ${ac_tool_prefix}otool; ac_word=$2 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7920$as_echo_n "checking for $ac_word... " >&6; } 7921if ${ac_cv_prog_OTOOL+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 if test -n "$OTOOL"; then 7925 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7926else 7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH 7929do 7930 IFS=$as_save_IFS 7931 test -z "$as_dir" && as_dir=. 7932 for ac_exec_ext in '' $ac_executable_extensions; do 7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7934 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7936 break 2 7937 fi 7938done 7939 done 7940IFS=$as_save_IFS 7941 7942fi 7943fi 7944OTOOL=$ac_cv_prog_OTOOL 7945if test -n "$OTOOL"; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7947$as_echo "$OTOOL" >&6; } 7948else 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950$as_echo "no" >&6; } 7951fi 7952 7953 7954fi 7955if test -z "$ac_cv_prog_OTOOL"; then 7956 ac_ct_OTOOL=$OTOOL 7957 # Extract the first word of "otool", so it can be a program name with args. 7958set dummy otool; ac_word=$2 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7960$as_echo_n "checking for $ac_word... " >&6; } 7961if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 if test -n "$ac_ct_OTOOL"; then 7965 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7966else 7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968for as_dir in $PATH 7969do 7970 IFS=$as_save_IFS 7971 test -z "$as_dir" && as_dir=. 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7974 ac_cv_prog_ac_ct_OTOOL="otool" 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978done 7979 done 7980IFS=$as_save_IFS 7981 7982fi 7983fi 7984ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7985if test -n "$ac_ct_OTOOL"; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7987$as_echo "$ac_ct_OTOOL" >&6; } 7988else 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7990$as_echo "no" >&6; } 7991fi 7992 7993 if test "x$ac_ct_OTOOL" = x; then 7994 OTOOL=":" 7995 else 7996 case $cross_compiling:$ac_tool_warned in 7997yes:) 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8000ac_tool_warned=yes ;; 8001esac 8002 OTOOL=$ac_ct_OTOOL 8003 fi 8004else 8005 OTOOL="$ac_cv_prog_OTOOL" 8006fi 8007 8008 if test -n "$ac_tool_prefix"; then 8009 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8010set dummy ${ac_tool_prefix}otool64; ac_word=$2 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8012$as_echo_n "checking for $ac_word... " >&6; } 8013if ${ac_cv_prog_OTOOL64+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 if test -n "$OTOOL64"; then 8017 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8026 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031 done 8032IFS=$as_save_IFS 8033 8034fi 8035fi 8036OTOOL64=$ac_cv_prog_OTOOL64 8037if test -n "$OTOOL64"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8039$as_echo "$OTOOL64" >&6; } 8040else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042$as_echo "no" >&6; } 8043fi 8044 8045 8046fi 8047if test -z "$ac_cv_prog_OTOOL64"; then 8048 ac_ct_OTOOL64=$OTOOL64 8049 # Extract the first word of "otool64", so it can be a program name with args. 8050set dummy otool64; ac_word=$2 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8052$as_echo_n "checking for $ac_word... " >&6; } 8053if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 if test -n "$ac_ct_OTOOL64"; then 8057 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8058else 8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8066 ac_cv_prog_ac_ct_OTOOL64="otool64" 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071 done 8072IFS=$as_save_IFS 8073 8074fi 8075fi 8076ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8077if test -n "$ac_ct_OTOOL64"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8079$as_echo "$ac_ct_OTOOL64" >&6; } 8080else 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8082$as_echo "no" >&6; } 8083fi 8084 8085 if test "x$ac_ct_OTOOL64" = x; then 8086 OTOOL64=":" 8087 else 8088 case $cross_compiling:$ac_tool_warned in 8089yes:) 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8092ac_tool_warned=yes ;; 8093esac 8094 OTOOL64=$ac_ct_OTOOL64 8095 fi 8096else 8097 OTOOL64="$ac_cv_prog_OTOOL64" 8098fi 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8127$as_echo_n "checking for -single_module linker flag... " >&6; } 8128if ${lt_cv_apple_cc_single_mod+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 lt_cv_apple_cc_single_mod=no 8132 if test -z "$LT_MULTI_MODULE"; then 8133 # By default we will add the -single_module flag. You can override 8134 # by either setting the environment variable LT_MULTI_MODULE 8135 # non-empty at configure time, or by adding -multi_module to the 8136 # link flags. 8137 rm -rf libconftest.dylib* 8138 echo "int foo(void){return 1;}" > conftest.c 8139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8140-dynamiclib -Wl,-single_module conftest.c" >&5 8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8143 _lt_result=$? 8144 # If there is a non-empty error log, and "single_module" 8145 # appears in it, assume the flag caused a linker warning 8146 if test -s conftest.err && $GREP single_module conftest.err; then 8147 cat conftest.err >&5 8148 # Otherwise, if the output was created with a 0 exit code from 8149 # the compiler, it worked. 8150 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8151 lt_cv_apple_cc_single_mod=yes 8152 else 8153 cat conftest.err >&5 8154 fi 8155 rm -rf libconftest.dylib* 8156 rm -f conftest.* 8157 fi 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8160$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8161 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8164if ${lt_cv_ld_exported_symbols_list+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 lt_cv_ld_exported_symbols_list=no 8168 save_LDFLAGS=$LDFLAGS 8169 echo "_main" > conftest.sym 8170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173 8174int 8175main () 8176{ 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_link "$LINENO"; then : 8183 lt_cv_ld_exported_symbols_list=yes 8184else 8185 lt_cv_ld_exported_symbols_list=no 8186fi 8187rm -f core conftest.err conftest.$ac_objext \ 8188 conftest$ac_exeext conftest.$ac_ext 8189 LDFLAGS=$save_LDFLAGS 8190 8191fi 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8193$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8194 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8196$as_echo_n "checking for -force_load linker flag... " >&6; } 8197if ${lt_cv_ld_force_load+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 lt_cv_ld_force_load=no 8201 cat > conftest.c << _LT_EOF 8202int forced_loaded() { return 2;} 8203_LT_EOF 8204 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8205 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8206 echo "$AR cru libconftest.a conftest.o" >&5 8207 $AR cru libconftest.a conftest.o 2>&5 8208 echo "$RANLIB libconftest.a" >&5 8209 $RANLIB libconftest.a 2>&5 8210 cat > conftest.c << _LT_EOF 8211int main() { return 0;} 8212_LT_EOF 8213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8215 _lt_result=$? 8216 if test -s conftest.err && $GREP force_load conftest.err; then 8217 cat conftest.err >&5 8218 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8219 lt_cv_ld_force_load=yes 8220 else 8221 cat conftest.err >&5 8222 fi 8223 rm -f conftest.err libconftest.a conftest conftest.c 8224 rm -rf conftest.dSYM 8225 8226fi 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8228$as_echo "$lt_cv_ld_force_load" >&6; } 8229 case $host_os in 8230 rhapsody* | darwin1.[012]) 8231 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8232 darwin1.*) 8233 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8234 darwin*) # darwin 5.x on 8235 # if running on 10.5 or later, the deployment target defaults 8236 # to the OS version, if on x86, and 10.4, the deployment 8237 # target defaults to 10.4. Don't you love it? 8238 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8239 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8240 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8241 10.[012][,.]*) 8242 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8243 10.*) 8244 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8245 esac 8246 ;; 8247 esac 8248 if test yes = "$lt_cv_apple_cc_single_mod"; then 8249 _lt_dar_single_mod='$single_module' 8250 fi 8251 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8252 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8253 else 8254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8255 fi 8256 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8257 _lt_dsymutil='~$DSYMUTIL $lib || :' 8258 else 8259 _lt_dsymutil= 8260 fi 8261 ;; 8262 esac 8263 8264# func_munge_path_list VARIABLE PATH 8265# ----------------------------------- 8266# VARIABLE is name of variable containing _space_ separated list of 8267# directories to be munged by the contents of PATH, which is string 8268# having a format: 8269# "DIR[:DIR]:" 8270# string "DIR[ DIR]" will be prepended to VARIABLE 8271# ":DIR[:DIR]" 8272# string "DIR[ DIR]" will be appended to VARIABLE 8273# "DIRP[:DIRP]::[DIRA:]DIRA" 8274# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8275# "DIRA[ DIRA]" will be appended to VARIABLE 8276# "DIR[:DIR]" 8277# VARIABLE will be replaced by "DIR[ DIR]" 8278func_munge_path_list () 8279{ 8280 case x$2 in 8281 x) 8282 ;; 8283 *:) 8284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8285 ;; 8286 x:*) 8287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8288 ;; 8289 *::*) 8290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8292 ;; 8293 *) 8294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8295 ;; 8296 esac 8297} 8298 8299for ac_header in dlfcn.h 8300do : 8301 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8302" 8303if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8304 cat >>confdefs.h <<_ACEOF 8305#define HAVE_DLFCN_H 1 8306_ACEOF 8307 8308fi 8309 8310done 8311 8312 8313 8314 8315 8316# Set options 8317 8318 8319 8320 enable_dlopen=no 8321 8322 8323 enable_win32_dll=no 8324 8325 8326 # Check whether --enable-shared was given. 8327if test "${enable_shared+set}" = set; then : 8328 enableval=$enable_shared; p=${PACKAGE-default} 8329 case $enableval in 8330 yes) enable_shared=yes ;; 8331 no) enable_shared=no ;; 8332 *) 8333 enable_shared=no 8334 # Look at the argument we got. We use all the common list separators. 8335 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8336 for pkg in $enableval; do 8337 IFS=$lt_save_ifs 8338 if test "X$pkg" = "X$p"; then 8339 enable_shared=yes 8340 fi 8341 done 8342 IFS=$lt_save_ifs 8343 ;; 8344 esac 8345else 8346 enable_shared=yes 8347fi 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 # Check whether --enable-static was given. 8358if test "${enable_static+set}" = set; then : 8359 enableval=$enable_static; p=${PACKAGE-default} 8360 case $enableval in 8361 yes) enable_static=yes ;; 8362 no) enable_static=no ;; 8363 *) 8364 enable_static=no 8365 # Look at the argument we got. We use all the common list separators. 8366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8367 for pkg in $enableval; do 8368 IFS=$lt_save_ifs 8369 if test "X$pkg" = "X$p"; then 8370 enable_static=yes 8371 fi 8372 done 8373 IFS=$lt_save_ifs 8374 ;; 8375 esac 8376else 8377 enable_static=yes 8378fi 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389# Check whether --with-pic was given. 8390if test "${with_pic+set}" = set; then : 8391 withval=$with_pic; lt_p=${PACKAGE-default} 8392 case $withval in 8393 yes|no) pic_mode=$withval ;; 8394 *) 8395 pic_mode=default 8396 # Look at the argument we got. We use all the common list separators. 8397 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8398 for lt_pkg in $withval; do 8399 IFS=$lt_save_ifs 8400 if test "X$lt_pkg" = "X$lt_p"; then 8401 pic_mode=yes 8402 fi 8403 done 8404 IFS=$lt_save_ifs 8405 ;; 8406 esac 8407else 8408 pic_mode=default 8409fi 8410 8411 8412 8413 8414 8415 8416 8417 8418 # Check whether --enable-fast-install was given. 8419if test "${enable_fast_install+set}" = set; then : 8420 enableval=$enable_fast_install; p=${PACKAGE-default} 8421 case $enableval in 8422 yes) enable_fast_install=yes ;; 8423 no) enable_fast_install=no ;; 8424 *) 8425 enable_fast_install=no 8426 # Look at the argument we got. We use all the common list separators. 8427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8428 for pkg in $enableval; do 8429 IFS=$lt_save_ifs 8430 if test "X$pkg" = "X$p"; then 8431 enable_fast_install=yes 8432 fi 8433 done 8434 IFS=$lt_save_ifs 8435 ;; 8436 esac 8437else 8438 enable_fast_install=yes 8439fi 8440 8441 8442 8443 8444 8445 8446 8447 8448 shared_archive_member_spec= 8449case $host,$enable_shared in 8450power*-*-aix[5-9]*,yes) 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8452$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8453 8454# Check whether --with-aix-soname was given. 8455if test "${with_aix_soname+set}" = set; then : 8456 withval=$with_aix_soname; case $withval in 8457 aix|svr4|both) 8458 ;; 8459 *) 8460 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8461 ;; 8462 esac 8463 lt_cv_with_aix_soname=$with_aix_soname 8464else 8465 if ${lt_cv_with_aix_soname+:} false; then : 8466 $as_echo_n "(cached) " >&6 8467else 8468 lt_cv_with_aix_soname=aix 8469fi 8470 8471 with_aix_soname=$lt_cv_with_aix_soname 8472fi 8473 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8475$as_echo "$with_aix_soname" >&6; } 8476 if test aix != "$with_aix_soname"; then 8477 # For the AIX way of multilib, we name the shared archive member 8478 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8479 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8480 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8481 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8482 if test 64 = "${OBJECT_MODE-32}"; then 8483 shared_archive_member_spec=shr_64 8484 else 8485 shared_archive_member_spec=shr 8486 fi 8487 fi 8488 ;; 8489*) 8490 with_aix_soname=aix 8491 ;; 8492esac 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503# This can be used to rebuild libtool when needed 8504LIBTOOL_DEPS=$ltmain 8505 8506# Always use our own libtool. 8507LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538test -z "$LN_S" && LN_S="ln -s" 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553if test -n "${ZSH_VERSION+set}"; then 8554 setopt NO_GLOB_SUBST 8555fi 8556 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8558$as_echo_n "checking for objdir... " >&6; } 8559if ${lt_cv_objdir+:} false; then : 8560 $as_echo_n "(cached) " >&6 8561else 8562 rm -f .libs 2>/dev/null 8563mkdir .libs 2>/dev/null 8564if test -d .libs; then 8565 lt_cv_objdir=.libs 8566else 8567 # MS-DOS does not allow filenames that begin with a dot. 8568 lt_cv_objdir=_libs 8569fi 8570rmdir .libs 2>/dev/null 8571fi 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8573$as_echo "$lt_cv_objdir" >&6; } 8574objdir=$lt_cv_objdir 8575 8576 8577 8578 8579 8580cat >>confdefs.h <<_ACEOF 8581#define LT_OBJDIR "$lt_cv_objdir/" 8582_ACEOF 8583 8584 8585 8586 8587case $host_os in 8588aix3*) 8589 # AIX sometimes has problems with the GCC collect2 program. For some 8590 # reason, if we set the COLLECT_NAMES environment variable, the problems 8591 # vanish in a puff of smoke. 8592 if test set != "${COLLECT_NAMES+set}"; then 8593 COLLECT_NAMES= 8594 export COLLECT_NAMES 8595 fi 8596 ;; 8597esac 8598 8599# Global variables: 8600ofile=libtool 8601can_build_shared=yes 8602 8603# All known linkers require a '.a' archive for static linking (except MSVC, 8604# which needs '.lib'). 8605libext=a 8606 8607with_gnu_ld=$lt_cv_prog_gnu_ld 8608 8609old_CC=$CC 8610old_CFLAGS=$CFLAGS 8611 8612# Set sane defaults for various variables 8613test -z "$CC" && CC=cc 8614test -z "$LTCC" && LTCC=$CC 8615test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8616test -z "$LD" && LD=ld 8617test -z "$ac_objext" && ac_objext=o 8618 8619func_cc_basename $compiler 8620cc_basename=$func_cc_basename_result 8621 8622 8623# Only perform the check for file, if the check method requires it 8624test -z "$MAGIC_CMD" && MAGIC_CMD=file 8625case $deplibs_check_method in 8626file_magic*) 8627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8629$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8630if ${lt_cv_path_MAGIC_CMD+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 case $MAGIC_CMD in 8634[\\/*] | ?:[\\/]*) 8635 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8636 ;; 8637*) 8638 lt_save_MAGIC_CMD=$MAGIC_CMD 8639 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8641 for ac_dir in $ac_dummy; do 8642 IFS=$lt_save_ifs 8643 test -z "$ac_dir" && ac_dir=. 8644 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8645 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8646 if test -n "$file_magic_test_file"; then 8647 case $deplibs_check_method in 8648 "file_magic "*) 8649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8650 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8652 $EGREP "$file_magic_regex" > /dev/null; then 8653 : 8654 else 8655 cat <<_LT_EOF 1>&2 8656 8657*** Warning: the command libtool uses to detect shared libraries, 8658*** $file_magic_cmd, produces output that libtool cannot recognize. 8659*** The result is that libtool may fail to recognize shared libraries 8660*** as such. This will affect the creation of libtool libraries that 8661*** depend on shared libraries, but programs linked with such libtool 8662*** libraries will work regardless of this problem. Nevertheless, you 8663*** may want to report the problem to your system manager and/or to 8664*** bug-libtool@gnu.org 8665 8666_LT_EOF 8667 fi ;; 8668 esac 8669 fi 8670 break 8671 fi 8672 done 8673 IFS=$lt_save_ifs 8674 MAGIC_CMD=$lt_save_MAGIC_CMD 8675 ;; 8676esac 8677fi 8678 8679MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8680if test -n "$MAGIC_CMD"; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8682$as_echo "$MAGIC_CMD" >&6; } 8683else 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8685$as_echo "no" >&6; } 8686fi 8687 8688 8689 8690 8691 8692if test -z "$lt_cv_path_MAGIC_CMD"; then 8693 if test -n "$ac_tool_prefix"; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8695$as_echo_n "checking for file... " >&6; } 8696if ${lt_cv_path_MAGIC_CMD+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 case $MAGIC_CMD in 8700[\\/*] | ?:[\\/]*) 8701 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8702 ;; 8703*) 8704 lt_save_MAGIC_CMD=$MAGIC_CMD 8705 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8707 for ac_dir in $ac_dummy; do 8708 IFS=$lt_save_ifs 8709 test -z "$ac_dir" && ac_dir=. 8710 if test -f "$ac_dir/file"; then 8711 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8712 if test -n "$file_magic_test_file"; then 8713 case $deplibs_check_method in 8714 "file_magic "*) 8715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8716 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8718 $EGREP "$file_magic_regex" > /dev/null; then 8719 : 8720 else 8721 cat <<_LT_EOF 1>&2 8722 8723*** Warning: the command libtool uses to detect shared libraries, 8724*** $file_magic_cmd, produces output that libtool cannot recognize. 8725*** The result is that libtool may fail to recognize shared libraries 8726*** as such. This will affect the creation of libtool libraries that 8727*** depend on shared libraries, but programs linked with such libtool 8728*** libraries will work regardless of this problem. Nevertheless, you 8729*** may want to report the problem to your system manager and/or to 8730*** bug-libtool@gnu.org 8731 8732_LT_EOF 8733 fi ;; 8734 esac 8735 fi 8736 break 8737 fi 8738 done 8739 IFS=$lt_save_ifs 8740 MAGIC_CMD=$lt_save_MAGIC_CMD 8741 ;; 8742esac 8743fi 8744 8745MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8746if test -n "$MAGIC_CMD"; then 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8748$as_echo "$MAGIC_CMD" >&6; } 8749else 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8751$as_echo "no" >&6; } 8752fi 8753 8754 8755 else 8756 MAGIC_CMD=: 8757 fi 8758fi 8759 8760 fi 8761 ;; 8762esac 8763 8764# Use C for the default configuration in the libtool script 8765 8766lt_save_CC=$CC 8767ac_ext=c 8768ac_cpp='$CPP $CPPFLAGS' 8769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8771ac_compiler_gnu=$ac_cv_c_compiler_gnu 8772 8773 8774# Source file extension for C test sources. 8775ac_ext=c 8776 8777# Object file extension for compiled C test sources. 8778objext=o 8779objext=$objext 8780 8781# Code to be used in simple compile tests 8782lt_simple_compile_test_code="int some_variable = 0;" 8783 8784# Code to be used in simple link tests 8785lt_simple_link_test_code='int main(){return(0);}' 8786 8787 8788 8789 8790 8791 8792 8793# If no C compiler was specified, use CC. 8794LTCC=${LTCC-"$CC"} 8795 8796# If no C compiler flags were specified, use CFLAGS. 8797LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8798 8799# Allow CC to be a program name with arguments. 8800compiler=$CC 8801 8802# Save the default compiler, since it gets overwritten when the other 8803# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8804compiler_DEFAULT=$CC 8805 8806# save warnings/boilerplate of simple test code 8807ac_outfile=conftest.$ac_objext 8808echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8810_lt_compiler_boilerplate=`cat conftest.err` 8811$RM conftest* 8812 8813ac_outfile=conftest.$ac_objext 8814echo "$lt_simple_link_test_code" >conftest.$ac_ext 8815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8816_lt_linker_boilerplate=`cat conftest.err` 8817$RM -r conftest* 8818 8819 8820## CAVEAT EMPTOR: 8821## There is no encapsulation within the following macros, do not change 8822## the running order or otherwise move them around unless you know exactly 8823## what you are doing... 8824if test -n "$compiler"; then 8825 8826lt_prog_compiler_no_builtin_flag= 8827 8828if test yes = "$GCC"; then 8829 case $cc_basename in 8830 nvcc*) 8831 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8832 *) 8833 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8834 esac 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8837$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8838if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8839 $as_echo_n "(cached) " >&6 8840else 8841 lt_cv_prog_compiler_rtti_exceptions=no 8842 ac_outfile=conftest.$ac_objext 8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8844 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8845 # Insert the option either (1) after the last *FLAGS variable, or 8846 # (2) before a word containing "conftest.", or (3) at the end. 8847 # Note that $ac_compile itself does not contain backslashes and begins 8848 # with a dollar sign (not a hyphen), so the echo should work correctly. 8849 # The option is referenced via a variable to avoid confusing sed. 8850 lt_compile=`echo "$ac_compile" | $SED \ 8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8853 -e 's:$: $lt_compiler_flag:'` 8854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8855 (eval "$lt_compile" 2>conftest.err) 8856 ac_status=$? 8857 cat conftest.err >&5 8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8859 if (exit $ac_status) && test -s "$ac_outfile"; then 8860 # The compiler can only warn and ignore the option if not recognized 8861 # So say no if there are warnings other than the usual output. 8862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8865 lt_cv_prog_compiler_rtti_exceptions=yes 8866 fi 8867 fi 8868 $RM conftest* 8869 8870fi 8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8872$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8873 8874if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8876else 8877 : 8878fi 8879 8880fi 8881 8882 8883 8884 8885 8886 8887 lt_prog_compiler_wl= 8888lt_prog_compiler_pic= 8889lt_prog_compiler_static= 8890 8891 8892 if test yes = "$GCC"; then 8893 lt_prog_compiler_wl='-Wl,' 8894 lt_prog_compiler_static='-static' 8895 8896 case $host_os in 8897 aix*) 8898 # All AIX code is PIC. 8899 if test ia64 = "$host_cpu"; then 8900 # AIX 5 now supports IA64 processor 8901 lt_prog_compiler_static='-Bstatic' 8902 fi 8903 lt_prog_compiler_pic='-fPIC' 8904 ;; 8905 8906 amigaos*) 8907 case $host_cpu in 8908 powerpc) 8909 # see comment about AmigaOS4 .so support 8910 lt_prog_compiler_pic='-fPIC' 8911 ;; 8912 m68k) 8913 # FIXME: we need at least 68020 code to build shared libraries, but 8914 # adding the '-m68020' flag to GCC prevents building anything better, 8915 # like '-m68040'. 8916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8917 ;; 8918 esac 8919 ;; 8920 8921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8922 # PIC is the default for these OSes. 8923 ;; 8924 8925 mingw* | cygwin* | pw32* | os2* | cegcc*) 8926 # This hack is so that the source file can tell whether it is being 8927 # built for inclusion in a dll (and should export symbols for example). 8928 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8929 # (--disable-auto-import) libraries 8930 lt_prog_compiler_pic='-DDLL_EXPORT' 8931 case $host_os in 8932 os2*) 8933 lt_prog_compiler_static='$wl-static' 8934 ;; 8935 esac 8936 ;; 8937 8938 darwin* | rhapsody*) 8939 # PIC is the default on this platform 8940 # Common symbols not allowed in MH_DYLIB files 8941 lt_prog_compiler_pic='-fno-common' 8942 ;; 8943 8944 haiku*) 8945 # PIC is the default for Haiku. 8946 # The "-static" flag exists, but is broken. 8947 lt_prog_compiler_static= 8948 ;; 8949 8950 hpux*) 8951 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8952 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8953 # sets the default TLS model and affects inlining. 8954 case $host_cpu in 8955 hppa*64*) 8956 # +Z the default 8957 ;; 8958 *) 8959 lt_prog_compiler_pic='-fPIC' 8960 ;; 8961 esac 8962 ;; 8963 8964 interix[3-9]*) 8965 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8966 # Instead, we relocate shared libraries at runtime. 8967 ;; 8968 8969 msdosdjgpp*) 8970 # Just because we use GCC doesn't mean we suddenly get shared libraries 8971 # on systems that don't support them. 8972 lt_prog_compiler_can_build_shared=no 8973 enable_shared=no 8974 ;; 8975 8976 *nto* | *qnx*) 8977 # QNX uses GNU C++, but need to define -shared option too, otherwise 8978 # it will coredump. 8979 lt_prog_compiler_pic='-fPIC -shared' 8980 ;; 8981 8982 sysv4*MP*) 8983 if test -d /usr/nec; then 8984 lt_prog_compiler_pic=-Kconform_pic 8985 fi 8986 ;; 8987 8988 *) 8989 lt_prog_compiler_pic='-fPIC' 8990 ;; 8991 esac 8992 8993 case $cc_basename in 8994 nvcc*) # Cuda Compiler Driver 2.2 8995 lt_prog_compiler_wl='-Xlinker ' 8996 if test -n "$lt_prog_compiler_pic"; then 8997 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8998 fi 8999 ;; 9000 esac 9001 else 9002 # PORTME Check for flag to pass linker flags through the system compiler. 9003 case $host_os in 9004 aix*) 9005 lt_prog_compiler_wl='-Wl,' 9006 if test ia64 = "$host_cpu"; then 9007 # AIX 5 now supports IA64 processor 9008 lt_prog_compiler_static='-Bstatic' 9009 else 9010 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9011 fi 9012 ;; 9013 9014 darwin* | rhapsody*) 9015 # PIC is the default on this platform 9016 # Common symbols not allowed in MH_DYLIB files 9017 lt_prog_compiler_pic='-fno-common' 9018 case $cc_basename in 9019 nagfor*) 9020 # NAG Fortran compiler 9021 lt_prog_compiler_wl='-Wl,-Wl,,' 9022 lt_prog_compiler_pic='-PIC' 9023 lt_prog_compiler_static='-Bstatic' 9024 ;; 9025 esac 9026 ;; 9027 9028 mingw* | cygwin* | pw32* | os2* | cegcc*) 9029 # This hack is so that the source file can tell whether it is being 9030 # built for inclusion in a dll (and should export symbols for example). 9031 lt_prog_compiler_pic='-DDLL_EXPORT' 9032 case $host_os in 9033 os2*) 9034 lt_prog_compiler_static='$wl-static' 9035 ;; 9036 esac 9037 ;; 9038 9039 hpux9* | hpux10* | hpux11*) 9040 lt_prog_compiler_wl='-Wl,' 9041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9042 # not for PA HP-UX. 9043 case $host_cpu in 9044 hppa*64*|ia64*) 9045 # +Z the default 9046 ;; 9047 *) 9048 lt_prog_compiler_pic='+Z' 9049 ;; 9050 esac 9051 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9052 lt_prog_compiler_static='$wl-a ${wl}archive' 9053 ;; 9054 9055 irix5* | irix6* | nonstopux*) 9056 lt_prog_compiler_wl='-Wl,' 9057 # PIC (with -KPIC) is the default. 9058 lt_prog_compiler_static='-non_shared' 9059 ;; 9060 9061 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9062 case $cc_basename in 9063 # old Intel for x86_64, which still supported -KPIC. 9064 ecc*) 9065 lt_prog_compiler_wl='-Wl,' 9066 lt_prog_compiler_pic='-KPIC' 9067 lt_prog_compiler_static='-static' 9068 ;; 9069 # icc used to be incompatible with GCC. 9070 # ICC 10 doesn't accept -KPIC any more. 9071 icc* | ifort*) 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-fPIC' 9074 lt_prog_compiler_static='-static' 9075 ;; 9076 # Lahey Fortran 8.1. 9077 lf95*) 9078 lt_prog_compiler_wl='-Wl,' 9079 lt_prog_compiler_pic='--shared' 9080 lt_prog_compiler_static='--static' 9081 ;; 9082 nagfor*) 9083 # NAG Fortran compiler 9084 lt_prog_compiler_wl='-Wl,-Wl,,' 9085 lt_prog_compiler_pic='-PIC' 9086 lt_prog_compiler_static='-Bstatic' 9087 ;; 9088 tcc*) 9089 # Fabrice Bellard et al's Tiny C Compiler 9090 lt_prog_compiler_wl='-Wl,' 9091 lt_prog_compiler_pic='-fPIC' 9092 lt_prog_compiler_static='-static' 9093 ;; 9094 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9095 # Portland Group compilers (*not* the Pentium gcc compiler, 9096 # which looks to be a dead project) 9097 lt_prog_compiler_wl='-Wl,' 9098 lt_prog_compiler_pic='-fpic' 9099 lt_prog_compiler_static='-Bstatic' 9100 ;; 9101 ccc*) 9102 lt_prog_compiler_wl='-Wl,' 9103 # All Alpha code is PIC. 9104 lt_prog_compiler_static='-non_shared' 9105 ;; 9106 xl* | bgxl* | bgf* | mpixl*) 9107 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9108 lt_prog_compiler_wl='-Wl,' 9109 lt_prog_compiler_pic='-qpic' 9110 lt_prog_compiler_static='-qstaticlink' 9111 ;; 9112 *) 9113 case `$CC -V 2>&1 | sed 5q` in 9114 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9115 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9116 lt_prog_compiler_pic='-KPIC' 9117 lt_prog_compiler_static='-Bstatic' 9118 lt_prog_compiler_wl='' 9119 ;; 9120 *Sun\ F* | *Sun*Fortran*) 9121 lt_prog_compiler_pic='-KPIC' 9122 lt_prog_compiler_static='-Bstatic' 9123 lt_prog_compiler_wl='-Qoption ld ' 9124 ;; 9125 *Sun\ C*) 9126 # Sun C 5.9 9127 lt_prog_compiler_pic='-KPIC' 9128 lt_prog_compiler_static='-Bstatic' 9129 lt_prog_compiler_wl='-Wl,' 9130 ;; 9131 *Intel*\ [CF]*Compiler*) 9132 lt_prog_compiler_wl='-Wl,' 9133 lt_prog_compiler_pic='-fPIC' 9134 lt_prog_compiler_static='-static' 9135 ;; 9136 *Portland\ Group*) 9137 lt_prog_compiler_wl='-Wl,' 9138 lt_prog_compiler_pic='-fpic' 9139 lt_prog_compiler_static='-Bstatic' 9140 ;; 9141 esac 9142 ;; 9143 esac 9144 ;; 9145 9146 newsos6) 9147 lt_prog_compiler_pic='-KPIC' 9148 lt_prog_compiler_static='-Bstatic' 9149 ;; 9150 9151 *nto* | *qnx*) 9152 # QNX uses GNU C++, but need to define -shared option too, otherwise 9153 # it will coredump. 9154 lt_prog_compiler_pic='-fPIC -shared' 9155 ;; 9156 9157 osf3* | osf4* | osf5*) 9158 lt_prog_compiler_wl='-Wl,' 9159 # All OSF/1 code is PIC. 9160 lt_prog_compiler_static='-non_shared' 9161 ;; 9162 9163 rdos*) 9164 lt_prog_compiler_static='-non_shared' 9165 ;; 9166 9167 solaris*) 9168 lt_prog_compiler_pic='-KPIC' 9169 lt_prog_compiler_static='-Bstatic' 9170 case $cc_basename in 9171 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9172 lt_prog_compiler_wl='-Qoption ld ';; 9173 *) 9174 lt_prog_compiler_wl='-Wl,';; 9175 esac 9176 ;; 9177 9178 sunos4*) 9179 lt_prog_compiler_wl='-Qoption ld ' 9180 lt_prog_compiler_pic='-PIC' 9181 lt_prog_compiler_static='-Bstatic' 9182 ;; 9183 9184 sysv4 | sysv4.2uw2* | sysv4.3*) 9185 lt_prog_compiler_wl='-Wl,' 9186 lt_prog_compiler_pic='-KPIC' 9187 lt_prog_compiler_static='-Bstatic' 9188 ;; 9189 9190 sysv4*MP*) 9191 if test -d /usr/nec; then 9192 lt_prog_compiler_pic='-Kconform_pic' 9193 lt_prog_compiler_static='-Bstatic' 9194 fi 9195 ;; 9196 9197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-KPIC' 9200 lt_prog_compiler_static='-Bstatic' 9201 ;; 9202 9203 unicos*) 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_can_build_shared=no 9206 ;; 9207 9208 uts4*) 9209 lt_prog_compiler_pic='-pic' 9210 lt_prog_compiler_static='-Bstatic' 9211 ;; 9212 9213 *) 9214 lt_prog_compiler_can_build_shared=no 9215 ;; 9216 esac 9217 fi 9218 9219case $host_os in 9220 # For platforms that do not support PIC, -DPIC is meaningless: 9221 *djgpp*) 9222 lt_prog_compiler_pic= 9223 ;; 9224 *) 9225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9226 ;; 9227esac 9228 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9230$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9231if ${lt_cv_prog_compiler_pic+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233else 9234 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9237$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9238lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9239 9240# 9241# Check to make sure the PIC flag actually works. 9242# 9243if test -n "$lt_prog_compiler_pic"; then 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9245$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9246if ${lt_cv_prog_compiler_pic_works+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 lt_cv_prog_compiler_pic_works=no 9250 ac_outfile=conftest.$ac_objext 9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9252 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9253 # Insert the option either (1) after the last *FLAGS variable, or 9254 # (2) before a word containing "conftest.", or (3) at the end. 9255 # Note that $ac_compile itself does not contain backslashes and begins 9256 # with a dollar sign (not a hyphen), so the echo should work correctly. 9257 # The option is referenced via a variable to avoid confusing sed. 9258 lt_compile=`echo "$ac_compile" | $SED \ 9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9261 -e 's:$: $lt_compiler_flag:'` 9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9263 (eval "$lt_compile" 2>conftest.err) 9264 ac_status=$? 9265 cat conftest.err >&5 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 if (exit $ac_status) && test -s "$ac_outfile"; then 9268 # The compiler can only warn and ignore the option if not recognized 9269 # So say no if there are warnings other than the usual output. 9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9273 lt_cv_prog_compiler_pic_works=yes 9274 fi 9275 fi 9276 $RM conftest* 9277 9278fi 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9280$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9281 9282if test yes = "$lt_cv_prog_compiler_pic_works"; then 9283 case $lt_prog_compiler_pic in 9284 "" | " "*) ;; 9285 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9286 esac 9287else 9288 lt_prog_compiler_pic= 9289 lt_prog_compiler_can_build_shared=no 9290fi 9291 9292fi 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304# 9305# Check to make sure the static flag actually works. 9306# 9307wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9309$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9310if ${lt_cv_prog_compiler_static_works+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 lt_cv_prog_compiler_static_works=no 9314 save_LDFLAGS=$LDFLAGS 9315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9316 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9318 # The linker can only warn and ignore the option if not recognized 9319 # So say no if there are warnings 9320 if test -s conftest.err; then 9321 # Append any errors to the config.log. 9322 cat conftest.err 1>&5 9323 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9325 if diff conftest.exp conftest.er2 >/dev/null; then 9326 lt_cv_prog_compiler_static_works=yes 9327 fi 9328 else 9329 lt_cv_prog_compiler_static_works=yes 9330 fi 9331 fi 9332 $RM -r conftest* 9333 LDFLAGS=$save_LDFLAGS 9334 9335fi 9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9337$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9338 9339if test yes = "$lt_cv_prog_compiler_static_works"; then 9340 : 9341else 9342 lt_prog_compiler_static= 9343fi 9344 9345 9346 9347 9348 9349 9350 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9352$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9353if ${lt_cv_prog_compiler_c_o+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 lt_cv_prog_compiler_c_o=no 9357 $RM -r conftest 2>/dev/null 9358 mkdir conftest 9359 cd conftest 9360 mkdir out 9361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9362 9363 lt_compiler_flag="-o out/conftest2.$ac_objext" 9364 # Insert the option either (1) after the last *FLAGS variable, or 9365 # (2) before a word containing "conftest.", or (3) at the end. 9366 # Note that $ac_compile itself does not contain backslashes and begins 9367 # with a dollar sign (not a hyphen), so the echo should work correctly. 9368 lt_compile=`echo "$ac_compile" | $SED \ 9369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9371 -e 's:$: $lt_compiler_flag:'` 9372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9373 (eval "$lt_compile" 2>out/conftest.err) 9374 ac_status=$? 9375 cat out/conftest.err >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9378 then 9379 # The compiler can only warn and ignore the option if not recognized 9380 # So say no if there are warnings 9381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9384 lt_cv_prog_compiler_c_o=yes 9385 fi 9386 fi 9387 chmod u+w . 2>&5 9388 $RM conftest* 9389 # SGI C++ compiler will create directory out/ii_files/ for 9390 # template instantiation 9391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9392 $RM out/* && rmdir out 9393 cd .. 9394 $RM -r conftest 9395 $RM conftest* 9396 9397fi 9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9399$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9400 9401 9402 9403 9404 9405 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9408if ${lt_cv_prog_compiler_c_o+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 lt_cv_prog_compiler_c_o=no 9412 $RM -r conftest 2>/dev/null 9413 mkdir conftest 9414 cd conftest 9415 mkdir out 9416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9417 9418 lt_compiler_flag="-o out/conftest2.$ac_objext" 9419 # Insert the option either (1) after the last *FLAGS variable, or 9420 # (2) before a word containing "conftest.", or (3) at the end. 9421 # Note that $ac_compile itself does not contain backslashes and begins 9422 # with a dollar sign (not a hyphen), so the echo should work correctly. 9423 lt_compile=`echo "$ac_compile" | $SED \ 9424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9426 -e 's:$: $lt_compiler_flag:'` 9427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9428 (eval "$lt_compile" 2>out/conftest.err) 9429 ac_status=$? 9430 cat out/conftest.err >&5 9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9432 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9433 then 9434 # The compiler can only warn and ignore the option if not recognized 9435 # So say no if there are warnings 9436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9439 lt_cv_prog_compiler_c_o=yes 9440 fi 9441 fi 9442 chmod u+w . 2>&5 9443 $RM conftest* 9444 # SGI C++ compiler will create directory out/ii_files/ for 9445 # template instantiation 9446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9447 $RM out/* && rmdir out 9448 cd .. 9449 $RM -r conftest 9450 $RM conftest* 9451 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9454$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9455 9456 9457 9458 9459hard_links=nottested 9460if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9461 # do not overwrite the value of need_locks provided by the user 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9463$as_echo_n "checking if we can lock with hard links... " >&6; } 9464 hard_links=yes 9465 $RM conftest* 9466 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9467 touch conftest.a 9468 ln conftest.a conftest.b 2>&5 || hard_links=no 9469 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9471$as_echo "$hard_links" >&6; } 9472 if test no = "$hard_links"; then 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9474$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9475 need_locks=warn 9476 fi 9477else 9478 need_locks=no 9479fi 9480 9481 9482 9483 9484 9485 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9487$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9488 9489 runpath_var= 9490 allow_undefined_flag= 9491 always_export_symbols=no 9492 archive_cmds= 9493 archive_expsym_cmds= 9494 compiler_needs_object=no 9495 enable_shared_with_static_runtimes=no 9496 export_dynamic_flag_spec= 9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9498 hardcode_automatic=no 9499 hardcode_direct=no 9500 hardcode_direct_absolute=no 9501 hardcode_libdir_flag_spec= 9502 hardcode_libdir_separator= 9503 hardcode_minus_L=no 9504 hardcode_shlibpath_var=unsupported 9505 inherit_rpath=no 9506 link_all_deplibs=unknown 9507 module_cmds= 9508 module_expsym_cmds= 9509 old_archive_from_new_cmds= 9510 old_archive_from_expsyms_cmds= 9511 thread_safe_flag_spec= 9512 whole_archive_flag_spec= 9513 # include_expsyms should be a list of space-separated symbols to be *always* 9514 # included in the symbol list 9515 include_expsyms= 9516 # exclude_expsyms can be an extended regexp of symbols to exclude 9517 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9518 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9519 # as well as any symbol that contains 'd'. 9520 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9521 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9522 # platforms (ab)use it in PIC code, but their linkers get confused if 9523 # the symbol is explicitly referenced. Since portable code cannot 9524 # rely on this symbol name, it's probably fine to never include it in 9525 # preloaded symbol tables. 9526 # Exclude shared library initialization/finalization symbols. 9527 extract_expsyms_cmds= 9528 9529 case $host_os in 9530 cygwin* | mingw* | pw32* | cegcc*) 9531 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9532 # When not using gcc, we currently assume that we are using 9533 # Microsoft Visual C++. 9534 if test yes != "$GCC"; then 9535 with_gnu_ld=no 9536 fi 9537 ;; 9538 interix*) 9539 # we just hope/assume this is gcc and not c89 (= MSVC++) 9540 with_gnu_ld=yes 9541 ;; 9542 openbsd* | bitrig*) 9543 with_gnu_ld=no 9544 ;; 9545 esac 9546 9547 ld_shlibs=yes 9548 9549 # On some targets, GNU ld is compatible enough with the native linker 9550 # that we're better off using the native interface for both. 9551 lt_use_gnu_ld_interface=no 9552 if test yes = "$with_gnu_ld"; then 9553 case $host_os in 9554 aix*) 9555 # The AIX port of GNU ld has always aspired to compatibility 9556 # with the native linker. However, as the warning in the GNU ld 9557 # block says, versions before 2.19.5* couldn't really create working 9558 # shared libraries, regardless of the interface used. 9559 case `$LD -v 2>&1` in 9560 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9561 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9562 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9563 *) 9564 lt_use_gnu_ld_interface=yes 9565 ;; 9566 esac 9567 ;; 9568 *) 9569 lt_use_gnu_ld_interface=yes 9570 ;; 9571 esac 9572 fi 9573 9574 if test yes = "$lt_use_gnu_ld_interface"; then 9575 # If archive_cmds runs LD, not CC, wlarc should be empty 9576 wlarc='$wl' 9577 9578 # Set some defaults for GNU ld with shared library support. These 9579 # are reset later if shared libraries are not supported. Putting them 9580 # here allows them to be overridden if necessary. 9581 runpath_var=LD_RUN_PATH 9582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9583 export_dynamic_flag_spec='$wl--export-dynamic' 9584 # ancient GNU ld didn't support --whole-archive et. al. 9585 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9586 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9587 else 9588 whole_archive_flag_spec= 9589 fi 9590 supports_anon_versioning=no 9591 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9592 *GNU\ gold*) supports_anon_versioning=yes ;; 9593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9596 *\ 2.11.*) ;; # other 2.11 versions 9597 *) supports_anon_versioning=yes ;; 9598 esac 9599 9600 # See if GNU ld supports shared libraries. 9601 case $host_os in 9602 aix[3-9]*) 9603 # On AIX/PPC, the GNU linker is very broken 9604 if test ia64 != "$host_cpu"; then 9605 ld_shlibs=no 9606 cat <<_LT_EOF 1>&2 9607 9608*** Warning: the GNU linker, at least up to release 2.19, is reported 9609*** to be unable to reliably create shared libraries on AIX. 9610*** Therefore, libtool is disabling shared libraries support. If you 9611*** really care for shared libraries, you may want to install binutils 9612*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9613*** You will then need to restart the configuration process. 9614 9615_LT_EOF 9616 fi 9617 ;; 9618 9619 amigaos*) 9620 case $host_cpu in 9621 powerpc) 9622 # see comment about AmigaOS4 .so support 9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9624 archive_expsym_cmds='' 9625 ;; 9626 m68k) 9627 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)' 9628 hardcode_libdir_flag_spec='-L$libdir' 9629 hardcode_minus_L=yes 9630 ;; 9631 esac 9632 ;; 9633 9634 beos*) 9635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9636 allow_undefined_flag=unsupported 9637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9638 # support --undefined. This deserves some investigation. FIXME 9639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9640 else 9641 ld_shlibs=no 9642 fi 9643 ;; 9644 9645 cygwin* | mingw* | pw32* | cegcc*) 9646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9647 # as there is no search path for DLLs. 9648 hardcode_libdir_flag_spec='-L$libdir' 9649 export_dynamic_flag_spec='$wl--export-all-symbols' 9650 allow_undefined_flag=unsupported 9651 always_export_symbols=no 9652 enable_shared_with_static_runtimes=yes 9653 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' 9654 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9655 9656 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9658 # If the export-symbols file already is a .def file, use it as 9659 # is; otherwise, prepend EXPORTS... 9660 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9661 cp $export_symbols $output_objdir/$soname.def; 9662 else 9663 echo EXPORTS > $output_objdir/$soname.def; 9664 cat $export_symbols >> $output_objdir/$soname.def; 9665 fi~ 9666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9667 else 9668 ld_shlibs=no 9669 fi 9670 ;; 9671 9672 haiku*) 9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9674 link_all_deplibs=yes 9675 ;; 9676 9677 os2*) 9678 hardcode_libdir_flag_spec='-L$libdir' 9679 hardcode_minus_L=yes 9680 allow_undefined_flag=unsupported 9681 shrext_cmds=.dll 9682 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9683 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9684 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9685 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9686 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9687 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9688 emximp -o $lib $output_objdir/$libname.def' 9689 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9690 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9691 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9692 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9693 prefix_cmds="$SED"~ 9694 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9695 prefix_cmds="$prefix_cmds -e 1d"; 9696 fi~ 9697 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9698 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9699 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9700 emximp -o $lib $output_objdir/$libname.def' 9701 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9702 enable_shared_with_static_runtimes=yes 9703 ;; 9704 9705 interix[3-9]*) 9706 hardcode_direct=no 9707 hardcode_shlibpath_var=no 9708 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9709 export_dynamic_flag_spec='$wl-E' 9710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9711 # Instead, shared libraries are loaded at an image base (0x10000000 by 9712 # default) and relocated if they conflict, which is a slow very memory 9713 # consuming and fragmenting process. To avoid this, we pick a random, 9714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9715 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9717 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' 9718 ;; 9719 9720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9721 tmp_diet=no 9722 if test linux-dietlibc = "$host_os"; then 9723 case $cc_basename in 9724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9725 esac 9726 fi 9727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9728 && test no = "$tmp_diet" 9729 then 9730 tmp_addflag=' $pic_flag' 9731 tmp_sharedflag='-shared' 9732 case $cc_basename,$host_cpu in 9733 pgcc*) # Portland Group C compiler 9734 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' 9735 tmp_addflag=' $pic_flag' 9736 ;; 9737 pgf77* | pgf90* | pgf95* | pgfortran*) 9738 # Portland Group f77 and f90 compilers 9739 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' 9740 tmp_addflag=' $pic_flag -Mnomain' ;; 9741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9742 tmp_addflag=' -i_dynamic' ;; 9743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9744 tmp_addflag=' -i_dynamic -nofor_main' ;; 9745 ifc* | ifort*) # Intel Fortran compiler 9746 tmp_addflag=' -nofor_main' ;; 9747 lf95*) # Lahey Fortran 8.1 9748 whole_archive_flag_spec= 9749 tmp_sharedflag='--shared' ;; 9750 nagfor*) # NAGFOR 5.3 9751 tmp_sharedflag='-Wl,-shared' ;; 9752 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9753 tmp_sharedflag='-qmkshrobj' 9754 tmp_addflag= ;; 9755 nvcc*) # Cuda Compiler Driver 2.2 9756 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' 9757 compiler_needs_object=yes 9758 ;; 9759 esac 9760 case `$CC -V 2>&1 | sed 5q` in 9761 *Sun\ C*) # Sun C 5.9 9762 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' 9763 compiler_needs_object=yes 9764 tmp_sharedflag='-G' ;; 9765 *Sun\ F*) # Sun Fortran 8.3 9766 tmp_sharedflag='-G' ;; 9767 esac 9768 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9769 9770 if test yes = "$supports_anon_versioning"; then 9771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9773 echo "local: *; };" >> $output_objdir/$libname.ver~ 9774 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9775 fi 9776 9777 case $cc_basename in 9778 tcc*) 9779 export_dynamic_flag_spec='-rdynamic' 9780 ;; 9781 xlf* | bgf* | bgxlf* | mpixlf*) 9782 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9783 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9784 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9785 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9786 if test yes = "$supports_anon_versioning"; then 9787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9789 echo "local: *; };" >> $output_objdir/$libname.ver~ 9790 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9791 fi 9792 ;; 9793 esac 9794 else 9795 ld_shlibs=no 9796 fi 9797 ;; 9798 9799 netbsd*) 9800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9802 wlarc= 9803 else 9804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9805 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9806 fi 9807 ;; 9808 9809 solaris*) 9810 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9811 ld_shlibs=no 9812 cat <<_LT_EOF 1>&2 9813 9814*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9815*** create shared libraries on Solaris systems. Therefore, libtool 9816*** is disabling shared libraries support. We urge you to upgrade GNU 9817*** binutils to release 2.9.1 or newer. Another option is to modify 9818*** your PATH or compiler configuration so that the native linker is 9819*** used, and then restart. 9820 9821_LT_EOF 9822 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9825 else 9826 ld_shlibs=no 9827 fi 9828 ;; 9829 9830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9831 case `$LD -v 2>&1` in 9832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9833 ld_shlibs=no 9834 cat <<_LT_EOF 1>&2 9835 9836*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9837*** reliably create shared libraries on SCO systems. Therefore, libtool 9838*** is disabling shared libraries support. We urge you to upgrade GNU 9839*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9840*** your PATH or compiler configuration so that the native linker is 9841*** used, and then restart. 9842 9843_LT_EOF 9844 ;; 9845 *) 9846 # For security reasons, it is highly recommended that you always 9847 # use absolute paths for naming shared libraries, and exclude the 9848 # DT_RUNPATH tag from executables and libraries. But doing so 9849 # requires that you compile everything twice, which is a pain. 9850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9854 else 9855 ld_shlibs=no 9856 fi 9857 ;; 9858 esac 9859 ;; 9860 9861 sunos4*) 9862 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9863 wlarc= 9864 hardcode_direct=yes 9865 hardcode_shlibpath_var=no 9866 ;; 9867 9868 *) 9869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9870 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9871 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9872 else 9873 ld_shlibs=no 9874 fi 9875 ;; 9876 esac 9877 9878 if test no = "$ld_shlibs"; then 9879 runpath_var= 9880 hardcode_libdir_flag_spec= 9881 export_dynamic_flag_spec= 9882 whole_archive_flag_spec= 9883 fi 9884 else 9885 # PORTME fill in a description of your system's linker (not GNU ld) 9886 case $host_os in 9887 aix3*) 9888 allow_undefined_flag=unsupported 9889 always_export_symbols=yes 9890 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' 9891 # Note: this linker hardcodes the directories in LIBPATH if there 9892 # are no directories specified by -L. 9893 hardcode_minus_L=yes 9894 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9895 # Neither direct hardcoding nor static linking is supported with a 9896 # broken collect2. 9897 hardcode_direct=unsupported 9898 fi 9899 ;; 9900 9901 aix[4-9]*) 9902 if test ia64 = "$host_cpu"; then 9903 # On IA64, the linker does run time linking by default, so we don't 9904 # have to do anything special. 9905 aix_use_runtimelinking=no 9906 exp_sym_flag='-Bexport' 9907 no_entry_flag= 9908 else 9909 # If we're using GNU nm, then we don't want the "-C" option. 9910 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9911 # Without the "-l" option, or with the "-B" option, AIX nm treats 9912 # weak defined symbols like other global defined symbols, whereas 9913 # GNU nm marks them as "W". 9914 # While the 'weak' keyword is ignored in the Export File, we need 9915 # it in the Import File for the 'aix-soname' feature, so we have 9916 # to replace the "-B" option with "-P" for AIX nm. 9917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9918 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' 9919 else 9920 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' 9921 fi 9922 aix_use_runtimelinking=no 9923 9924 # Test if we are trying to use run time linking or normal 9925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9926 # have runtime linking enabled, and use it for executables. 9927 # For shared libraries, we enable/disable runtime linking 9928 # depending on the kind of the shared library created - 9929 # when "with_aix_soname,aix_use_runtimelinking" is: 9930 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9931 # "aix,yes" lib.so shared, rtl:yes, for executables 9932 # lib.a static archive 9933 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9934 # lib.a(lib.so.V) shared, rtl:no, for executables 9935 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9936 # lib.a(lib.so.V) shared, rtl:no 9937 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9938 # lib.a static archive 9939 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9940 for ld_flag in $LDFLAGS; do 9941 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9942 aix_use_runtimelinking=yes 9943 break 9944 fi 9945 done 9946 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9947 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9948 # so we don't have lib.a shared libs to link our executables. 9949 # We have to force runtime linking in this case. 9950 aix_use_runtimelinking=yes 9951 LDFLAGS="$LDFLAGS -Wl,-brtl" 9952 fi 9953 ;; 9954 esac 9955 9956 exp_sym_flag='-bexport' 9957 no_entry_flag='-bnoentry' 9958 fi 9959 9960 # When large executables or shared objects are built, AIX ld can 9961 # have problems creating the table of contents. If linking a library 9962 # or program results in "error TOC overflow" add -mminimal-toc to 9963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9965 9966 archive_cmds='' 9967 hardcode_direct=yes 9968 hardcode_direct_absolute=yes 9969 hardcode_libdir_separator=':' 9970 link_all_deplibs=yes 9971 file_list_spec='$wl-f,' 9972 case $with_aix_soname,$aix_use_runtimelinking in 9973 aix,*) ;; # traditional, no import file 9974 svr4,* | *,yes) # use import file 9975 # The Import File defines what to hardcode. 9976 hardcode_direct=no 9977 hardcode_direct_absolute=no 9978 ;; 9979 esac 9980 9981 if test yes = "$GCC"; then 9982 case $host_os in aix4.[012]|aix4.[012].*) 9983 # We only want to do this on AIX 4.2 and lower, the check 9984 # below for broken collect2 doesn't work under 4.3+ 9985 collect2name=`$CC -print-prog-name=collect2` 9986 if test -f "$collect2name" && 9987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9988 then 9989 # We have reworked collect2 9990 : 9991 else 9992 # We have old collect2 9993 hardcode_direct=unsupported 9994 # It fails to find uninstalled libraries when the uninstalled 9995 # path is not listed in the libpath. Setting hardcode_minus_L 9996 # to unsupported forces relinking 9997 hardcode_minus_L=yes 9998 hardcode_libdir_flag_spec='-L$libdir' 9999 hardcode_libdir_separator= 10000 fi 10001 ;; 10002 esac 10003 shared_flag='-shared' 10004 if test yes = "$aix_use_runtimelinking"; then 10005 shared_flag="$shared_flag "'$wl-G' 10006 fi 10007 # Need to ensure runtime linking is disabled for the traditional 10008 # shared library, or the linker may eventually find shared libraries 10009 # /with/ Import File - we do not want to mix them. 10010 shared_flag_aix='-shared' 10011 shared_flag_svr4='-shared $wl-G' 10012 else 10013 # not using gcc 10014 if test ia64 = "$host_cpu"; then 10015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10016 # chokes on -Wl,-G. The following line is correct: 10017 shared_flag='-G' 10018 else 10019 if test yes = "$aix_use_runtimelinking"; then 10020 shared_flag='$wl-G' 10021 else 10022 shared_flag='$wl-bM:SRE' 10023 fi 10024 shared_flag_aix='$wl-bM:SRE' 10025 shared_flag_svr4='$wl-G' 10026 fi 10027 fi 10028 10029 export_dynamic_flag_spec='$wl-bexpall' 10030 # It seems that -bexpall does not export symbols beginning with 10031 # underscore (_), so it is better to generate a list of symbols to export. 10032 always_export_symbols=yes 10033 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10034 # Warning - without using the other runtime loading flags (-brtl), 10035 # -berok will link without error, but may produce a broken library. 10036 allow_undefined_flag='-berok' 10037 # Determine the default libpath from the value encoded in an 10038 # empty executable. 10039 if test set = "${lt_cv_aix_libpath+set}"; then 10040 aix_libpath=$lt_cv_aix_libpath 10041else 10042 if ${lt_cv_aix_libpath_+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047 10048int 10049main () 10050{ 10051 10052 ; 10053 return 0; 10054} 10055_ACEOF 10056if ac_fn_c_try_link "$LINENO"; then : 10057 10058 lt_aix_libpath_sed=' 10059 /Import File Strings/,/^$/ { 10060 /^0/ { 10061 s/^0 *\([^ ]*\) *$/\1/ 10062 p 10063 } 10064 }' 10065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10066 # Check for a 64-bit object if we didn't find anything. 10067 if test -z "$lt_cv_aix_libpath_"; then 10068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10069 fi 10070fi 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073 if test -z "$lt_cv_aix_libpath_"; then 10074 lt_cv_aix_libpath_=/usr/lib:/lib 10075 fi 10076 10077fi 10078 10079 aix_libpath=$lt_cv_aix_libpath_ 10080fi 10081 10082 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10083 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 10084 else 10085 if test ia64 = "$host_cpu"; then 10086 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10087 allow_undefined_flag="-z nodefs" 10088 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" 10089 else 10090 # Determine the default libpath from the value encoded in an 10091 # empty executable. 10092 if test set = "${lt_cv_aix_libpath+set}"; then 10093 aix_libpath=$lt_cv_aix_libpath 10094else 10095 if ${lt_cv_aix_libpath_+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100 10101int 10102main () 10103{ 10104 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109if ac_fn_c_try_link "$LINENO"; then : 10110 10111 lt_aix_libpath_sed=' 10112 /Import File Strings/,/^$/ { 10113 /^0/ { 10114 s/^0 *\([^ ]*\) *$/\1/ 10115 p 10116 } 10117 }' 10118 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10119 # Check for a 64-bit object if we didn't find anything. 10120 if test -z "$lt_cv_aix_libpath_"; then 10121 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10122 fi 10123fi 10124rm -f core conftest.err conftest.$ac_objext \ 10125 conftest$ac_exeext conftest.$ac_ext 10126 if test -z "$lt_cv_aix_libpath_"; then 10127 lt_cv_aix_libpath_=/usr/lib:/lib 10128 fi 10129 10130fi 10131 10132 aix_libpath=$lt_cv_aix_libpath_ 10133fi 10134 10135 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10136 # Warning - without using the other run time loading flags, 10137 # -berok will link without error, but may produce a broken library. 10138 no_undefined_flag=' $wl-bernotok' 10139 allow_undefined_flag=' $wl-berok' 10140 if test yes = "$with_gnu_ld"; then 10141 # We only use this code for GNU lds that support --whole-archive. 10142 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10143 else 10144 # Exported symbols can be pulled into shared objects from archives 10145 whole_archive_flag_spec='$convenience' 10146 fi 10147 archive_cmds_need_lc=yes 10148 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10149 # -brtl affects multiple linker settings, -berok does not and is overridden later 10150 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10151 if test svr4 != "$with_aix_soname"; then 10152 # This is similar to how AIX traditionally builds its shared libraries. 10153 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' 10154 fi 10155 if test aix != "$with_aix_soname"; then 10156 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' 10157 else 10158 # used by -dlpreopen to get the symbols 10159 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10160 fi 10161 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10162 fi 10163 fi 10164 ;; 10165 10166 amigaos*) 10167 case $host_cpu in 10168 powerpc) 10169 # see comment about AmigaOS4 .so support 10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10171 archive_expsym_cmds='' 10172 ;; 10173 m68k) 10174 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)' 10175 hardcode_libdir_flag_spec='-L$libdir' 10176 hardcode_minus_L=yes 10177 ;; 10178 esac 10179 ;; 10180 10181 bsdi[45]*) 10182 export_dynamic_flag_spec=-rdynamic 10183 ;; 10184 10185 cygwin* | mingw* | pw32* | cegcc*) 10186 # When not using gcc, we currently assume that we are using 10187 # Microsoft Visual C++. 10188 # hardcode_libdir_flag_spec is actually meaningless, as there is 10189 # no search path for DLLs. 10190 case $cc_basename in 10191 cl*) 10192 # Native MSVC 10193 hardcode_libdir_flag_spec=' ' 10194 allow_undefined_flag=unsupported 10195 always_export_symbols=yes 10196 file_list_spec='@' 10197 # Tell ltmain to make .lib files, not .a files. 10198 libext=lib 10199 # Tell ltmain to make .dll files, not .so files. 10200 shrext_cmds=.dll 10201 # FIXME: Setting linknames here is a bad hack. 10202 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10203 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10204 cp "$export_symbols" "$output_objdir/$soname.def"; 10205 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10206 else 10207 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10208 fi~ 10209 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10210 linknames=' 10211 # The linker will not automatically build a static lib if we build a DLL. 10212 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10213 enable_shared_with_static_runtimes=yes 10214 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10216 # Don't use ranlib 10217 old_postinstall_cmds='chmod 644 $oldlib' 10218 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10219 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10220 case $lt_outputfile in 10221 *.exe|*.EXE) ;; 10222 *) 10223 lt_outputfile=$lt_outputfile.exe 10224 lt_tool_outputfile=$lt_tool_outputfile.exe 10225 ;; 10226 esac~ 10227 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10228 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10229 $RM "$lt_outputfile.manifest"; 10230 fi' 10231 ;; 10232 *) 10233 # Assume MSVC wrapper 10234 hardcode_libdir_flag_spec=' ' 10235 allow_undefined_flag=unsupported 10236 # Tell ltmain to make .lib files, not .a files. 10237 libext=lib 10238 # Tell ltmain to make .dll files, not .so files. 10239 shrext_cmds=.dll 10240 # FIXME: Setting linknames here is a bad hack. 10241 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10242 # The linker will automatically build a .lib file if we build a DLL. 10243 old_archive_from_new_cmds='true' 10244 # FIXME: Should let the user specify the lib program. 10245 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10246 enable_shared_with_static_runtimes=yes 10247 ;; 10248 esac 10249 ;; 10250 10251 darwin* | rhapsody*) 10252 10253 10254 archive_cmds_need_lc=no 10255 hardcode_direct=no 10256 hardcode_automatic=yes 10257 hardcode_shlibpath_var=unsupported 10258 if test yes = "$lt_cv_ld_force_load"; then 10259 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\"`' 10260 10261 else 10262 whole_archive_flag_spec='' 10263 fi 10264 link_all_deplibs=yes 10265 allow_undefined_flag=$_lt_dar_allow_undefined 10266 case $cc_basename in 10267 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10268 *) _lt_dar_can_shared=$GCC ;; 10269 esac 10270 if test yes = "$_lt_dar_can_shared"; then 10271 output_verbose_link_cmd=func_echo_all 10272 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10273 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10274 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" 10275 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" 10276 10277 else 10278 ld_shlibs=no 10279 fi 10280 10281 ;; 10282 10283 dgux*) 10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10285 hardcode_libdir_flag_spec='-L$libdir' 10286 hardcode_shlibpath_var=no 10287 ;; 10288 10289 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10290 # support. Future versions do this automatically, but an explicit c++rt0.o 10291 # does not break anything, and helps significantly (at the cost of a little 10292 # extra space). 10293 freebsd2.2*) 10294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10295 hardcode_libdir_flag_spec='-R$libdir' 10296 hardcode_direct=yes 10297 hardcode_shlibpath_var=no 10298 ;; 10299 10300 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10301 freebsd2.*) 10302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10303 hardcode_direct=yes 10304 hardcode_minus_L=yes 10305 hardcode_shlibpath_var=no 10306 ;; 10307 10308 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10309 freebsd* | dragonfly*) 10310 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10311 hardcode_libdir_flag_spec='-R$libdir' 10312 hardcode_direct=yes 10313 hardcode_shlibpath_var=no 10314 ;; 10315 10316 hpux9*) 10317 if test yes = "$GCC"; then 10318 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' 10319 else 10320 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' 10321 fi 10322 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10323 hardcode_libdir_separator=: 10324 hardcode_direct=yes 10325 10326 # hardcode_minus_L: Not really in the search PATH, 10327 # but as the default location of the library. 10328 hardcode_minus_L=yes 10329 export_dynamic_flag_spec='$wl-E' 10330 ;; 10331 10332 hpux10*) 10333 if test yes,no = "$GCC,$with_gnu_ld"; then 10334 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10335 else 10336 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10337 fi 10338 if test no = "$with_gnu_ld"; then 10339 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10340 hardcode_libdir_separator=: 10341 hardcode_direct=yes 10342 hardcode_direct_absolute=yes 10343 export_dynamic_flag_spec='$wl-E' 10344 # hardcode_minus_L: Not really in the search PATH, 10345 # but as the default location of the library. 10346 hardcode_minus_L=yes 10347 fi 10348 ;; 10349 10350 hpux11*) 10351 if test yes,no = "$GCC,$with_gnu_ld"; then 10352 case $host_cpu in 10353 hppa*64*) 10354 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10355 ;; 10356 ia64*) 10357 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10358 ;; 10359 *) 10360 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10361 ;; 10362 esac 10363 else 10364 case $host_cpu in 10365 hppa*64*) 10366 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10367 ;; 10368 ia64*) 10369 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10370 ;; 10371 *) 10372 10373 # Older versions of the 11.00 compiler do not understand -b yet 10374 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10376$as_echo_n "checking if $CC understands -b... " >&6; } 10377if ${lt_cv_prog_compiler__b+:} false; then : 10378 $as_echo_n "(cached) " >&6 10379else 10380 lt_cv_prog_compiler__b=no 10381 save_LDFLAGS=$LDFLAGS 10382 LDFLAGS="$LDFLAGS -b" 10383 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10385 # The linker can only warn and ignore the option if not recognized 10386 # So say no if there are warnings 10387 if test -s conftest.err; then 10388 # Append any errors to the config.log. 10389 cat conftest.err 1>&5 10390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10392 if diff conftest.exp conftest.er2 >/dev/null; then 10393 lt_cv_prog_compiler__b=yes 10394 fi 10395 else 10396 lt_cv_prog_compiler__b=yes 10397 fi 10398 fi 10399 $RM -r conftest* 10400 LDFLAGS=$save_LDFLAGS 10401 10402fi 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10404$as_echo "$lt_cv_prog_compiler__b" >&6; } 10405 10406if test yes = "$lt_cv_prog_compiler__b"; then 10407 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10408else 10409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10410fi 10411 10412 ;; 10413 esac 10414 fi 10415 if test no = "$with_gnu_ld"; then 10416 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10417 hardcode_libdir_separator=: 10418 10419 case $host_cpu in 10420 hppa*64*|ia64*) 10421 hardcode_direct=no 10422 hardcode_shlibpath_var=no 10423 ;; 10424 *) 10425 hardcode_direct=yes 10426 hardcode_direct_absolute=yes 10427 export_dynamic_flag_spec='$wl-E' 10428 10429 # hardcode_minus_L: Not really in the search PATH, 10430 # but as the default location of the library. 10431 hardcode_minus_L=yes 10432 ;; 10433 esac 10434 fi 10435 ;; 10436 10437 irix5* | irix6* | nonstopux*) 10438 if test yes = "$GCC"; then 10439 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' 10440 # Try to use the -exported_symbol ld option, if it does not 10441 # work, assume that -exports_file does not work either and 10442 # implicitly export all symbols. 10443 # This should be the same for all languages, so no per-tag cache variable. 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10445$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10446if ${lt_cv_irix_exported_symbol+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 save_LDFLAGS=$LDFLAGS 10450 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453int foo (void) { return 0; } 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 lt_cv_irix_exported_symbol=yes 10457else 10458 lt_cv_irix_exported_symbol=no 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 LDFLAGS=$save_LDFLAGS 10463fi 10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10465$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10466 if test yes = "$lt_cv_irix_exported_symbol"; then 10467 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' 10468 fi 10469 else 10470 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' 10471 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' 10472 fi 10473 archive_cmds_need_lc='no' 10474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10475 hardcode_libdir_separator=: 10476 inherit_rpath=yes 10477 link_all_deplibs=yes 10478 ;; 10479 10480 linux*) 10481 case $cc_basename in 10482 tcc*) 10483 # Fabrice Bellard et al's Tiny C Compiler 10484 ld_shlibs=yes 10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10486 ;; 10487 esac 10488 ;; 10489 10490 netbsd*) 10491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10493 else 10494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10495 fi 10496 hardcode_libdir_flag_spec='-R$libdir' 10497 hardcode_direct=yes 10498 hardcode_shlibpath_var=no 10499 ;; 10500 10501 newsos6) 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_direct=yes 10504 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10505 hardcode_libdir_separator=: 10506 hardcode_shlibpath_var=no 10507 ;; 10508 10509 *nto* | *qnx*) 10510 ;; 10511 10512 openbsd* | bitrig*) 10513 if test -f /usr/libexec/ld.so; then 10514 hardcode_direct=yes 10515 hardcode_shlibpath_var=no 10516 hardcode_direct_absolute=yes 10517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10519 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10520 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10521 export_dynamic_flag_spec='$wl-E' 10522 else 10523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10524 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10525 fi 10526 else 10527 ld_shlibs=no 10528 fi 10529 ;; 10530 10531 os2*) 10532 hardcode_libdir_flag_spec='-L$libdir' 10533 hardcode_minus_L=yes 10534 allow_undefined_flag=unsupported 10535 shrext_cmds=.dll 10536 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10539 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10540 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10541 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10542 emximp -o $lib $output_objdir/$libname.def' 10543 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10546 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10547 prefix_cmds="$SED"~ 10548 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10549 prefix_cmds="$prefix_cmds -e 1d"; 10550 fi~ 10551 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10552 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10554 emximp -o $lib $output_objdir/$libname.def' 10555 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10556 enable_shared_with_static_runtimes=yes 10557 ;; 10558 10559 osf3*) 10560 if test yes = "$GCC"; then 10561 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10562 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' 10563 else 10564 allow_undefined_flag=' -expect_unresolved \*' 10565 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' 10566 fi 10567 archive_cmds_need_lc='no' 10568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10569 hardcode_libdir_separator=: 10570 ;; 10571 10572 osf4* | osf5*) # as osf3* with the addition of -msym flag 10573 if test yes = "$GCC"; then 10574 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10575 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' 10576 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10577 else 10578 allow_undefined_flag=' -expect_unresolved \*' 10579 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' 10580 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~ 10581 $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' 10582 10583 # Both c and cxx compiler support -rpath directly 10584 hardcode_libdir_flag_spec='-rpath $libdir' 10585 fi 10586 archive_cmds_need_lc='no' 10587 hardcode_libdir_separator=: 10588 ;; 10589 10590 solaris*) 10591 no_undefined_flag=' -z defs' 10592 if test yes = "$GCC"; then 10593 wlarc='$wl' 10594 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10596 $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' 10597 else 10598 case `$CC -V 2>&1` in 10599 *"Compilers 5.0"*) 10600 wlarc='' 10601 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10603 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10604 ;; 10605 *) 10606 wlarc='$wl' 10607 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10609 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10610 ;; 10611 esac 10612 fi 10613 hardcode_libdir_flag_spec='-R$libdir' 10614 hardcode_shlibpath_var=no 10615 case $host_os in 10616 solaris2.[0-5] | solaris2.[0-5].*) ;; 10617 *) 10618 # The compiler driver will combine and reorder linker options, 10619 # but understands '-z linker_flag'. GCC discards it without '$wl', 10620 # but is careful enough not to reorder. 10621 # Supported since Solaris 2.6 (maybe 2.5.1?) 10622 if test yes = "$GCC"; then 10623 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10624 else 10625 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10626 fi 10627 ;; 10628 esac 10629 link_all_deplibs=yes 10630 ;; 10631 10632 sunos4*) 10633 if test sequent = "$host_vendor"; then 10634 # Use $CC to link under sequent, because it throws in some extra .o 10635 # files that make .init and .fini sections work. 10636 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10637 else 10638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10639 fi 10640 hardcode_libdir_flag_spec='-L$libdir' 10641 hardcode_direct=yes 10642 hardcode_minus_L=yes 10643 hardcode_shlibpath_var=no 10644 ;; 10645 10646 sysv4) 10647 case $host_vendor in 10648 sni) 10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10650 hardcode_direct=yes # is this really true??? 10651 ;; 10652 siemens) 10653 ## LD is ld it makes a PLAMLIB 10654 ## CC just makes a GrossModule. 10655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10656 reload_cmds='$CC -r -o $output$reload_objs' 10657 hardcode_direct=no 10658 ;; 10659 motorola) 10660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10662 ;; 10663 esac 10664 runpath_var='LD_RUN_PATH' 10665 hardcode_shlibpath_var=no 10666 ;; 10667 10668 sysv4.3*) 10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10670 hardcode_shlibpath_var=no 10671 export_dynamic_flag_spec='-Bexport' 10672 ;; 10673 10674 sysv4*MP*) 10675 if test -d /usr/nec; then 10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 hardcode_shlibpath_var=no 10678 runpath_var=LD_RUN_PATH 10679 hardcode_runpath_var=yes 10680 ld_shlibs=yes 10681 fi 10682 ;; 10683 10684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10685 no_undefined_flag='$wl-z,text' 10686 archive_cmds_need_lc=no 10687 hardcode_shlibpath_var=no 10688 runpath_var='LD_RUN_PATH' 10689 10690 if test yes = "$GCC"; then 10691 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10692 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10693 else 10694 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10695 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10696 fi 10697 ;; 10698 10699 sysv5* | sco3.2v5* | sco5v6*) 10700 # Note: We CANNOT use -z defs as we might desire, because we do not 10701 # link with -lc, and that would cause any symbols used from libc to 10702 # always be unresolved, which means just about no library would 10703 # ever link correctly. If we're not using GNU ld we use -z text 10704 # though, which does catch some bad symbols but isn't as heavy-handed 10705 # as -z defs. 10706 no_undefined_flag='$wl-z,text' 10707 allow_undefined_flag='$wl-z,nodefs' 10708 archive_cmds_need_lc=no 10709 hardcode_shlibpath_var=no 10710 hardcode_libdir_flag_spec='$wl-R,$libdir' 10711 hardcode_libdir_separator=':' 10712 link_all_deplibs=yes 10713 export_dynamic_flag_spec='$wl-Bexport' 10714 runpath_var='LD_RUN_PATH' 10715 10716 if test yes = "$GCC"; then 10717 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10718 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 else 10720 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10721 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 fi 10723 ;; 10724 10725 uts4*) 10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10727 hardcode_libdir_flag_spec='-L$libdir' 10728 hardcode_shlibpath_var=no 10729 ;; 10730 10731 *) 10732 ld_shlibs=no 10733 ;; 10734 esac 10735 10736 if test sni = "$host_vendor"; then 10737 case $host in 10738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10739 export_dynamic_flag_spec='$wl-Blargedynsym' 10740 ;; 10741 esac 10742 fi 10743 fi 10744 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10746$as_echo "$ld_shlibs" >&6; } 10747test no = "$ld_shlibs" && can_build_shared=no 10748 10749with_gnu_ld=$with_gnu_ld 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765# 10766# Do we need to explicitly link libc? 10767# 10768case "x$archive_cmds_need_lc" in 10769x|xyes) 10770 # Assume -lc should be added 10771 archive_cmds_need_lc=yes 10772 10773 if test yes,yes = "$GCC,$enable_shared"; then 10774 case $archive_cmds in 10775 *'~'*) 10776 # FIXME: we may have to deal with multi-command sequences. 10777 ;; 10778 '$CC '*) 10779 # Test whether the compiler implicitly links with -lc since on some 10780 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10781 # to ld, don't add -lc before -lgcc. 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10783$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10784if ${lt_cv_archive_cmds_need_lc+:} false; then : 10785 $as_echo_n "(cached) " >&6 10786else 10787 $RM conftest* 10788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10789 10790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10791 (eval $ac_compile) 2>&5 10792 ac_status=$? 10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10794 test $ac_status = 0; } 2>conftest.err; then 10795 soname=conftest 10796 lib=conftest 10797 libobjs=conftest.$ac_objext 10798 deplibs= 10799 wl=$lt_prog_compiler_wl 10800 pic_flag=$lt_prog_compiler_pic 10801 compiler_flags=-v 10802 linker_flags=-v 10803 verstring= 10804 output_objdir=. 10805 libname=conftest 10806 lt_save_allow_undefined_flag=$allow_undefined_flag 10807 allow_undefined_flag= 10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10809 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10810 ac_status=$? 10811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10812 test $ac_status = 0; } 10813 then 10814 lt_cv_archive_cmds_need_lc=no 10815 else 10816 lt_cv_archive_cmds_need_lc=yes 10817 fi 10818 allow_undefined_flag=$lt_save_allow_undefined_flag 10819 else 10820 cat conftest.err 1>&5 10821 fi 10822 $RM conftest* 10823 10824fi 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10826$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10827 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10828 ;; 10829 esac 10830 fi 10831 ;; 10832esac 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10986$as_echo_n "checking dynamic linker characteristics... " >&6; } 10987 10988if test yes = "$GCC"; then 10989 case $host_os in 10990 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10991 *) lt_awk_arg='/^libraries:/' ;; 10992 esac 10993 case $host_os in 10994 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10995 *) lt_sed_strip_eq='s|=/|/|g' ;; 10996 esac 10997 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10998 case $lt_search_path_spec in 10999 *\;*) 11000 # if the path contains ";" then we assume it to be the separator 11001 # otherwise default to the standard path separator (i.e. ":") - it is 11002 # assumed that no part of a normal pathname contains ";" but that should 11003 # okay in the real world where ";" in dirpaths is itself problematic. 11004 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11005 ;; 11006 *) 11007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11008 ;; 11009 esac 11010 # Ok, now we have the path, separated by spaces, we can step through it 11011 # and add multilib dir if necessary... 11012 lt_tmp_lt_search_path_spec= 11013 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11014 # ...but if some path component already ends with the multilib dir we assume 11015 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11016 case "$lt_multi_os_dir; $lt_search_path_spec " in 11017 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11018 lt_multi_os_dir= 11019 ;; 11020 esac 11021 for lt_sys_path in $lt_search_path_spec; do 11022 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11024 elif test -n "$lt_multi_os_dir"; then 11025 test -d "$lt_sys_path" && \ 11026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11027 fi 11028 done 11029 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11030BEGIN {RS = " "; FS = "/|\n";} { 11031 lt_foo = ""; 11032 lt_count = 0; 11033 for (lt_i = NF; lt_i > 0; lt_i--) { 11034 if ($lt_i != "" && $lt_i != ".") { 11035 if ($lt_i == "..") { 11036 lt_count++; 11037 } else { 11038 if (lt_count == 0) { 11039 lt_foo = "/" $lt_i lt_foo; 11040 } else { 11041 lt_count--; 11042 } 11043 } 11044 } 11045 } 11046 if (lt_foo != "") { lt_freq[lt_foo]++; } 11047 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11048}'` 11049 # AWK program above erroneously prepends '/' to C:/dos/paths 11050 # for these hosts. 11051 case $host_os in 11052 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11053 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11054 esac 11055 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11056else 11057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11058fi 11059library_names_spec= 11060libname_spec='lib$name' 11061soname_spec= 11062shrext_cmds=.so 11063postinstall_cmds= 11064postuninstall_cmds= 11065finish_cmds= 11066finish_eval= 11067shlibpath_var= 11068shlibpath_overrides_runpath=unknown 11069version_type=none 11070dynamic_linker="$host_os ld.so" 11071sys_lib_dlsearch_path_spec="/lib /usr/lib" 11072need_lib_prefix=unknown 11073hardcode_into_libs=no 11074 11075# when you set need_version to no, make sure it does not cause -set_version 11076# flags to be left without arguments 11077need_version=unknown 11078 11079 11080 11081case $host_os in 11082aix3*) 11083 version_type=linux # correct to gnu/linux during the next big refactor 11084 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11085 shlibpath_var=LIBPATH 11086 11087 # AIX 3 has no versioning support, so we append a major version to the name. 11088 soname_spec='$libname$release$shared_ext$major' 11089 ;; 11090 11091aix[4-9]*) 11092 version_type=linux # correct to gnu/linux during the next big refactor 11093 need_lib_prefix=no 11094 need_version=no 11095 hardcode_into_libs=yes 11096 if test ia64 = "$host_cpu"; then 11097 # AIX 5 supports IA64 11098 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 else 11101 # With GCC up to 2.95.x, collect2 would create an import file 11102 # for dependence libraries. The import file would start with 11103 # the line '#! .'. This would cause the generated library to 11104 # depend on '.', always an invalid library. This was fixed in 11105 # development snapshots of GCC prior to 3.0. 11106 case $host_os in 11107 aix4 | aix4.[01] | aix4.[01].*) 11108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11109 echo ' yes ' 11110 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11111 : 11112 else 11113 can_build_shared=no 11114 fi 11115 ;; 11116 esac 11117 # Using Import Files as archive members, it is possible to support 11118 # filename-based versioning of shared library archives on AIX. While 11119 # this would work for both with and without runtime linking, it will 11120 # prevent static linking of such archives. So we do filename-based 11121 # shared library versioning with .so extension only, which is used 11122 # when both runtime linking and shared linking is enabled. 11123 # Unfortunately, runtime linking may impact performance, so we do 11124 # not want this to be the default eventually. Also, we use the 11125 # versioned .so libs for executables only if there is the -brtl 11126 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11127 # To allow for filename-based versioning support, we need to create 11128 # libNAME.so.V as an archive file, containing: 11129 # *) an Import File, referring to the versioned filename of the 11130 # archive as well as the shared archive member, telling the 11131 # bitwidth (32 or 64) of that shared object, and providing the 11132 # list of exported symbols of that shared object, eventually 11133 # decorated with the 'weak' keyword 11134 # *) the shared object with the F_LOADONLY flag set, to really avoid 11135 # it being seen by the linker. 11136 # At run time we better use the real file rather than another symlink, 11137 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11138 11139 case $with_aix_soname,$aix_use_runtimelinking in 11140 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11141 # soname into executable. Probably we can add versioning support to 11142 # collect2, so additional links can be useful in future. 11143 aix,yes) # traditional libtool 11144 dynamic_linker='AIX unversionable lib.so' 11145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11146 # instead of lib<name>.a to let people know that these are not 11147 # typical AIX shared libraries. 11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11149 ;; 11150 aix,no) # traditional AIX only 11151 dynamic_linker='AIX lib.a(lib.so.V)' 11152 # We preserve .a as extension for shared libraries through AIX4.2 11153 # and later when we are not doing run time linking. 11154 library_names_spec='$libname$release.a $libname.a' 11155 soname_spec='$libname$release$shared_ext$major' 11156 ;; 11157 svr4,*) # full svr4 only 11158 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11159 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11160 # We do not specify a path in Import Files, so LIBPATH fires. 11161 shlibpath_overrides_runpath=yes 11162 ;; 11163 *,yes) # both, prefer svr4 11164 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11165 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11166 # unpreferred sharedlib libNAME.a needs extra handling 11167 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"' 11168 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"' 11169 # We do not specify a path in Import Files, so LIBPATH fires. 11170 shlibpath_overrides_runpath=yes 11171 ;; 11172 *,no) # both, prefer aix 11173 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11174 library_names_spec='$libname$release.a $libname.a' 11175 soname_spec='$libname$release$shared_ext$major' 11176 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11177 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)' 11178 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"' 11179 ;; 11180 esac 11181 shlibpath_var=LIBPATH 11182 fi 11183 ;; 11184 11185amigaos*) 11186 case $host_cpu in 11187 powerpc) 11188 # Since July 2007 AmigaOS4 officially supports .so libraries. 11189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 ;; 11192 m68k) 11193 library_names_spec='$libname.ixlibrary $libname.a' 11194 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11195 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' 11196 ;; 11197 esac 11198 ;; 11199 11200beos*) 11201 library_names_spec='$libname$shared_ext' 11202 dynamic_linker="$host_os ld.so" 11203 shlibpath_var=LIBRARY_PATH 11204 ;; 11205 11206bsdi[45]*) 11207 version_type=linux # correct to gnu/linux during the next big refactor 11208 need_version=no 11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11210 soname_spec='$libname$release$shared_ext$major' 11211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11212 shlibpath_var=LD_LIBRARY_PATH 11213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11215 # the default ld.so.conf also contains /usr/contrib/lib and 11216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11217 # libtool to hard-code these into programs 11218 ;; 11219 11220cygwin* | mingw* | pw32* | cegcc*) 11221 version_type=windows 11222 shrext_cmds=.dll 11223 need_version=no 11224 need_lib_prefix=no 11225 11226 case $GCC,$cc_basename in 11227 yes,*) 11228 # gcc 11229 library_names_spec='$libname.dll.a' 11230 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11231 postinstall_cmds='base_file=`basename \$file`~ 11232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11233 dldir=$destdir/`dirname \$dlpath`~ 11234 test -d \$dldir || mkdir -p \$dldir~ 11235 $install_prog $dir/$dlname \$dldir/$dlname~ 11236 chmod a+x \$dldir/$dlname~ 11237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11239 fi' 11240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11241 dlpath=$dir/\$dldll~ 11242 $RM \$dlpath' 11243 shlibpath_overrides_runpath=yes 11244 11245 case $host_os in 11246 cygwin*) 11247 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11248 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11249 11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11251 ;; 11252 mingw* | cegcc*) 11253 # MinGW DLLs use traditional 'lib' prefix 11254 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11255 ;; 11256 pw32*) 11257 # pw32 DLLs use 'pw' prefix rather than 'lib' 11258 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11259 ;; 11260 esac 11261 dynamic_linker='Win32 ld.exe' 11262 ;; 11263 11264 *,cl*) 11265 # Native MSVC 11266 libname_spec='$name' 11267 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11268 library_names_spec='$libname.dll.lib' 11269 11270 case $build_os in 11271 mingw*) 11272 sys_lib_search_path_spec= 11273 lt_save_ifs=$IFS 11274 IFS=';' 11275 for lt_path in $LIB 11276 do 11277 IFS=$lt_save_ifs 11278 # Let DOS variable expansion print the short 8.3 style file name. 11279 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11280 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11281 done 11282 IFS=$lt_save_ifs 11283 # Convert to MSYS style. 11284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11285 ;; 11286 cygwin*) 11287 # Convert to unix form, then to dos form, then back to unix form 11288 # but this time dos style (no spaces!) so that the unix form looks 11289 # like /cygdrive/c/PROGRA~1:/cygdr... 11290 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11291 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11292 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11293 ;; 11294 *) 11295 sys_lib_search_path_spec=$LIB 11296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11297 # It is most probably a Windows format PATH. 11298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11299 else 11300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11301 fi 11302 # FIXME: find the short name or the path components, as spaces are 11303 # common. (e.g. "Program Files" -> "PROGRA~1") 11304 ;; 11305 esac 11306 11307 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11308 postinstall_cmds='base_file=`basename \$file`~ 11309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11310 dldir=$destdir/`dirname \$dlpath`~ 11311 test -d \$dldir || mkdir -p \$dldir~ 11312 $install_prog $dir/$dlname \$dldir/$dlname' 11313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11314 dlpath=$dir/\$dldll~ 11315 $RM \$dlpath' 11316 shlibpath_overrides_runpath=yes 11317 dynamic_linker='Win32 link.exe' 11318 ;; 11319 11320 *) 11321 # Assume MSVC wrapper 11322 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11323 dynamic_linker='Win32 ld.exe' 11324 ;; 11325 esac 11326 # FIXME: first we should search . and the directory the executable is in 11327 shlibpath_var=PATH 11328 ;; 11329 11330darwin* | rhapsody*) 11331 dynamic_linker="$host_os dyld" 11332 version_type=darwin 11333 need_lib_prefix=no 11334 need_version=no 11335 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11336 soname_spec='$libname$release$major$shared_ext' 11337 shlibpath_overrides_runpath=yes 11338 shlibpath_var=DYLD_LIBRARY_PATH 11339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11340 11341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11343 ;; 11344 11345dgux*) 11346 version_type=linux # correct to gnu/linux during the next big refactor 11347 need_lib_prefix=no 11348 need_version=no 11349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11350 soname_spec='$libname$release$shared_ext$major' 11351 shlibpath_var=LD_LIBRARY_PATH 11352 ;; 11353 11354freebsd* | dragonfly*) 11355 # DragonFly does not have aout. When/if they implement a new 11356 # versioning mechanism, adjust this. 11357 if test -x /usr/bin/objformat; then 11358 objformat=`/usr/bin/objformat` 11359 else 11360 case $host_os in 11361 freebsd[23].*) objformat=aout ;; 11362 *) objformat=elf ;; 11363 esac 11364 fi 11365 version_type=freebsd-$objformat 11366 case $version_type in 11367 freebsd-elf*) 11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11369 soname_spec='$libname$release$shared_ext$major' 11370 need_version=no 11371 need_lib_prefix=no 11372 ;; 11373 freebsd-*) 11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11375 need_version=yes 11376 ;; 11377 esac 11378 shlibpath_var=LD_LIBRARY_PATH 11379 case $host_os in 11380 freebsd2.*) 11381 shlibpath_overrides_runpath=yes 11382 ;; 11383 freebsd3.[01]* | freebsdelf3.[01]*) 11384 shlibpath_overrides_runpath=yes 11385 hardcode_into_libs=yes 11386 ;; 11387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11389 shlibpath_overrides_runpath=no 11390 hardcode_into_libs=yes 11391 ;; 11392 *) # from 4.6 on, and DragonFly 11393 shlibpath_overrides_runpath=yes 11394 hardcode_into_libs=yes 11395 ;; 11396 esac 11397 ;; 11398 11399haiku*) 11400 version_type=linux # correct to gnu/linux during the next big refactor 11401 need_lib_prefix=no 11402 need_version=no 11403 dynamic_linker="$host_os runtime_loader" 11404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11405 soname_spec='$libname$release$shared_ext$major' 11406 shlibpath_var=LIBRARY_PATH 11407 shlibpath_overrides_runpath=no 11408 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11409 hardcode_into_libs=yes 11410 ;; 11411 11412hpux9* | hpux10* | hpux11*) 11413 # Give a soname corresponding to the major version so that dld.sl refuses to 11414 # link against other versions. 11415 version_type=sunos 11416 need_lib_prefix=no 11417 need_version=no 11418 case $host_cpu in 11419 ia64*) 11420 shrext_cmds='.so' 11421 hardcode_into_libs=yes 11422 dynamic_linker="$host_os dld.so" 11423 shlibpath_var=LD_LIBRARY_PATH 11424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11426 soname_spec='$libname$release$shared_ext$major' 11427 if test 32 = "$HPUX_IA64_MODE"; then 11428 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11429 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11430 else 11431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11432 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11433 fi 11434 ;; 11435 hppa*64*) 11436 shrext_cmds='.sl' 11437 hardcode_into_libs=yes 11438 dynamic_linker="$host_os dld.sl" 11439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11442 soname_spec='$libname$release$shared_ext$major' 11443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11445 ;; 11446 *) 11447 shrext_cmds='.sl' 11448 dynamic_linker="$host_os dld.sl" 11449 shlibpath_var=SHLIB_PATH 11450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11452 soname_spec='$libname$release$shared_ext$major' 11453 ;; 11454 esac 11455 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11456 postinstall_cmds='chmod 555 $lib' 11457 # or fails outright, so override atomically: 11458 install_override_mode=555 11459 ;; 11460 11461interix[3-9]*) 11462 version_type=linux # correct to gnu/linux during the next big refactor 11463 need_lib_prefix=no 11464 need_version=no 11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11466 soname_spec='$libname$release$shared_ext$major' 11467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 shlibpath_overrides_runpath=no 11470 hardcode_into_libs=yes 11471 ;; 11472 11473irix5* | irix6* | nonstopux*) 11474 case $host_os in 11475 nonstopux*) version_type=nonstopux ;; 11476 *) 11477 if test yes = "$lt_cv_prog_gnu_ld"; then 11478 version_type=linux # correct to gnu/linux during the next big refactor 11479 else 11480 version_type=irix 11481 fi ;; 11482 esac 11483 need_lib_prefix=no 11484 need_version=no 11485 soname_spec='$libname$release$shared_ext$major' 11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11487 case $host_os in 11488 irix5* | nonstopux*) 11489 libsuff= shlibsuff= 11490 ;; 11491 *) 11492 case $LD in # libtool.m4 will add one of these switches to LD 11493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11494 libsuff= shlibsuff= libmagic=32-bit;; 11495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11496 libsuff=32 shlibsuff=N32 libmagic=N32;; 11497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11498 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11499 *) libsuff= shlibsuff= libmagic=never-match;; 11500 esac 11501 ;; 11502 esac 11503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11504 shlibpath_overrides_runpath=no 11505 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11506 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11507 hardcode_into_libs=yes 11508 ;; 11509 11510# No shared lib support for Linux oldld, aout, or coff. 11511linux*oldld* | linux*aout* | linux*coff*) 11512 dynamic_linker=no 11513 ;; 11514 11515linux*android*) 11516 version_type=none # Android doesn't support versioned libraries. 11517 need_lib_prefix=no 11518 need_version=no 11519 library_names_spec='$libname$release$shared_ext' 11520 soname_spec='$libname$release$shared_ext' 11521 finish_cmds= 11522 shlibpath_var=LD_LIBRARY_PATH 11523 shlibpath_overrides_runpath=yes 11524 11525 # This implies no fast_install, which is unacceptable. 11526 # Some rework will be needed to allow for fast_install 11527 # before this can be enabled. 11528 hardcode_into_libs=yes 11529 11530 dynamic_linker='Android linker' 11531 # Don't embed -rpath directories since the linker doesn't support them. 11532 hardcode_libdir_flag_spec='-L$libdir' 11533 ;; 11534 11535# This must be glibc/ELF. 11536linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11543 shlibpath_var=LD_LIBRARY_PATH 11544 shlibpath_overrides_runpath=no 11545 11546 # Some binutils ld are patched to set DT_RUNPATH 11547 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 lt_cv_shlibpath_overrides_runpath=no 11551 save_LDFLAGS=$LDFLAGS 11552 save_libdir=$libdir 11553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11556/* end confdefs.h. */ 11557 11558int 11559main () 11560{ 11561 11562 ; 11563 return 0; 11564} 11565_ACEOF 11566if ac_fn_c_try_link "$LINENO"; then : 11567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11568 lt_cv_shlibpath_overrides_runpath=yes 11569fi 11570fi 11571rm -f core conftest.err conftest.$ac_objext \ 11572 conftest$ac_exeext conftest.$ac_ext 11573 LDFLAGS=$save_LDFLAGS 11574 libdir=$save_libdir 11575 11576fi 11577 11578 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11579 11580 # This implies no fast_install, which is unacceptable. 11581 # Some rework will be needed to allow for fast_install 11582 # before this can be enabled. 11583 hardcode_into_libs=yes 11584 11585 # Add ABI-specific directories to the system library path. 11586 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11587 11588 # Ideally, we could use ldconfig to report *all* directores which are 11589 # searched for libraries, however this is still not possible. Aside from not 11590 # being certain /sbin/ldconfig is available, command 11591 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11592 # even though it is searched at run-time. Try to do the best guess by 11593 # appending ld.so.conf contents (and includes) to the search path. 11594 if test -f /etc/ld.so.conf; then 11595 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' ' '` 11596 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11597 fi 11598 11599 # We used to test for /lib/ld.so.1 and disable shared libraries on 11600 # powerpc, because MkLinux only supported shared libraries with the 11601 # GNU dynamic linker. Since this was broken with cross compilers, 11602 # most powerpc-linux boxes support dynamic linking these days and 11603 # people can always --disable-shared, the test was removed, and we 11604 # assume the GNU/Linux dynamic linker is in use. 11605 dynamic_linker='GNU/Linux ld.so' 11606 ;; 11607 11608netbsd*) 11609 version_type=sunos 11610 need_lib_prefix=no 11611 need_version=no 11612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11615 dynamic_linker='NetBSD (a.out) ld.so' 11616 else 11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11618 soname_spec='$libname$release$shared_ext$major' 11619 dynamic_linker='NetBSD ld.elf_so' 11620 fi 11621 shlibpath_var=LD_LIBRARY_PATH 11622 shlibpath_overrides_runpath=yes 11623 hardcode_into_libs=yes 11624 ;; 11625 11626newsos6) 11627 version_type=linux # correct to gnu/linux during the next big refactor 11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11629 shlibpath_var=LD_LIBRARY_PATH 11630 shlibpath_overrides_runpath=yes 11631 ;; 11632 11633*nto* | *qnx*) 11634 version_type=qnx 11635 need_lib_prefix=no 11636 need_version=no 11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11638 soname_spec='$libname$release$shared_ext$major' 11639 shlibpath_var=LD_LIBRARY_PATH 11640 shlibpath_overrides_runpath=no 11641 hardcode_into_libs=yes 11642 dynamic_linker='ldqnx.so' 11643 ;; 11644 11645openbsd* | bitrig*) 11646 version_type=sunos 11647 sys_lib_dlsearch_path_spec=/usr/lib 11648 need_lib_prefix=no 11649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11650 need_version=no 11651 else 11652 need_version=yes 11653 fi 11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11656 shlibpath_var=LD_LIBRARY_PATH 11657 shlibpath_overrides_runpath=yes 11658 ;; 11659 11660os2*) 11661 libname_spec='$name' 11662 version_type=windows 11663 shrext_cmds=.dll 11664 need_version=no 11665 need_lib_prefix=no 11666 # OS/2 can only load a DLL with a base name of 8 characters or less. 11667 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11668 v=$($ECHO $release$versuffix | tr -d .-); 11669 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11670 $ECHO $n$v`$shared_ext' 11671 library_names_spec='${libname}_dll.$libext' 11672 dynamic_linker='OS/2 ld.exe' 11673 shlibpath_var=BEGINLIBPATH 11674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11676 postinstall_cmds='base_file=`basename \$file`~ 11677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11678 dldir=$destdir/`dirname \$dlpath`~ 11679 test -d \$dldir || mkdir -p \$dldir~ 11680 $install_prog $dir/$dlname \$dldir/$dlname~ 11681 chmod a+x \$dldir/$dlname~ 11682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11684 fi' 11685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11686 dlpath=$dir/\$dldll~ 11687 $RM \$dlpath' 11688 ;; 11689 11690osf3* | osf4* | osf5*) 11691 version_type=osf 11692 need_lib_prefix=no 11693 need_version=no 11694 soname_spec='$libname$release$shared_ext$major' 11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11696 shlibpath_var=LD_LIBRARY_PATH 11697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11699 ;; 11700 11701rdos*) 11702 dynamic_linker=no 11703 ;; 11704 11705solaris*) 11706 version_type=linux # correct to gnu/linux during the next big refactor 11707 need_lib_prefix=no 11708 need_version=no 11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11710 soname_spec='$libname$release$shared_ext$major' 11711 shlibpath_var=LD_LIBRARY_PATH 11712 shlibpath_overrides_runpath=yes 11713 hardcode_into_libs=yes 11714 # ldd complains unless libraries are executable 11715 postinstall_cmds='chmod +x $lib' 11716 ;; 11717 11718sunos4*) 11719 version_type=sunos 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11722 shlibpath_var=LD_LIBRARY_PATH 11723 shlibpath_overrides_runpath=yes 11724 if test yes = "$with_gnu_ld"; then 11725 need_lib_prefix=no 11726 fi 11727 need_version=yes 11728 ;; 11729 11730sysv4 | sysv4.3*) 11731 version_type=linux # correct to gnu/linux during the next big refactor 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11733 soname_spec='$libname$release$shared_ext$major' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 case $host_vendor in 11736 sni) 11737 shlibpath_overrides_runpath=no 11738 need_lib_prefix=no 11739 runpath_var=LD_RUN_PATH 11740 ;; 11741 siemens) 11742 need_lib_prefix=no 11743 ;; 11744 motorola) 11745 need_lib_prefix=no 11746 need_version=no 11747 shlibpath_overrides_runpath=no 11748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11749 ;; 11750 esac 11751 ;; 11752 11753sysv4*MP*) 11754 if test -d /usr/nec; then 11755 version_type=linux # correct to gnu/linux during the next big refactor 11756 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11757 soname_spec='$libname$shared_ext.$major' 11758 shlibpath_var=LD_LIBRARY_PATH 11759 fi 11760 ;; 11761 11762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11763 version_type=sco 11764 need_lib_prefix=no 11765 need_version=no 11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11767 soname_spec='$libname$release$shared_ext$major' 11768 shlibpath_var=LD_LIBRARY_PATH 11769 shlibpath_overrides_runpath=yes 11770 hardcode_into_libs=yes 11771 if test yes = "$with_gnu_ld"; then 11772 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11773 else 11774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11775 case $host_os in 11776 sco3.2v5*) 11777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11778 ;; 11779 esac 11780 fi 11781 sys_lib_dlsearch_path_spec='/usr/lib' 11782 ;; 11783 11784tpf*) 11785 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11786 version_type=linux # correct to gnu/linux during the next big refactor 11787 need_lib_prefix=no 11788 need_version=no 11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 shlibpath_overrides_runpath=no 11792 hardcode_into_libs=yes 11793 ;; 11794 11795uts4*) 11796 version_type=linux # correct to gnu/linux during the next big refactor 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 ;; 11801 11802*) 11803 dynamic_linker=no 11804 ;; 11805esac 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11807$as_echo "$dynamic_linker" >&6; } 11808test no = "$dynamic_linker" && can_build_shared=no 11809 11810variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11811if test yes = "$GCC"; then 11812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11813fi 11814 11815if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11816 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11817fi 11818 11819if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11820 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11821fi 11822 11823# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11824configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11825 11826# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11827func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11828 11829# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11830configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11929$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11930hardcode_action= 11931if test -n "$hardcode_libdir_flag_spec" || 11932 test -n "$runpath_var" || 11933 test yes = "$hardcode_automatic"; then 11934 11935 # We can hardcode non-existent directories. 11936 if test no != "$hardcode_direct" && 11937 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11938 # have to relink, otherwise we might link with an installed library 11939 # when we should be linking with a yet-to-be-installed one 11940 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11941 test no != "$hardcode_minus_L"; then 11942 # Linking always hardcodes the temporary library directory. 11943 hardcode_action=relink 11944 else 11945 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11946 hardcode_action=immediate 11947 fi 11948else 11949 # We cannot hardcode anything, or else we can only hardcode existing 11950 # directories. 11951 hardcode_action=unsupported 11952fi 11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11954$as_echo "$hardcode_action" >&6; } 11955 11956if test relink = "$hardcode_action" || 11957 test yes = "$inherit_rpath"; then 11958 # Fast installation is not supported 11959 enable_fast_install=no 11960elif test yes = "$shlibpath_overrides_runpath" || 11961 test no = "$enable_shared"; then 11962 # Fast installation is not necessary 11963 enable_fast_install=needless 11964fi 11965 11966 11967 11968 11969 11970 11971 if test yes != "$enable_dlopen"; then 11972 enable_dlopen=unknown 11973 enable_dlopen_self=unknown 11974 enable_dlopen_self_static=unknown 11975else 11976 lt_cv_dlopen=no 11977 lt_cv_dlopen_libs= 11978 11979 case $host_os in 11980 beos*) 11981 lt_cv_dlopen=load_add_on 11982 lt_cv_dlopen_libs= 11983 lt_cv_dlopen_self=yes 11984 ;; 11985 11986 mingw* | pw32* | cegcc*) 11987 lt_cv_dlopen=LoadLibrary 11988 lt_cv_dlopen_libs= 11989 ;; 11990 11991 cygwin*) 11992 lt_cv_dlopen=dlopen 11993 lt_cv_dlopen_libs= 11994 ;; 11995 11996 darwin*) 11997 # if libdl is installed we need to link against it 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11999$as_echo_n "checking for dlopen in -ldl... " >&6; } 12000if ${ac_cv_lib_dl_dlopen+:} false; then : 12001 $as_echo_n "(cached) " >&6 12002else 12003 ac_check_lib_save_LIBS=$LIBS 12004LIBS="-ldl $LIBS" 12005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12006/* end confdefs.h. */ 12007 12008/* Override any GCC internal prototype to avoid an error. 12009 Use char because int might match the return type of a GCC 12010 builtin and then its argument prototype would still apply. */ 12011#ifdef __cplusplus 12012extern "C" 12013#endif 12014char dlopen (); 12015int 12016main () 12017{ 12018return dlopen (); 12019 ; 12020 return 0; 12021} 12022_ACEOF 12023if ac_fn_c_try_link "$LINENO"; then : 12024 ac_cv_lib_dl_dlopen=yes 12025else 12026 ac_cv_lib_dl_dlopen=no 12027fi 12028rm -f core conftest.err conftest.$ac_objext \ 12029 conftest$ac_exeext conftest.$ac_ext 12030LIBS=$ac_check_lib_save_LIBS 12031fi 12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12033$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12034if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12035 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12036else 12037 12038 lt_cv_dlopen=dyld 12039 lt_cv_dlopen_libs= 12040 lt_cv_dlopen_self=yes 12041 12042fi 12043 12044 ;; 12045 12046 tpf*) 12047 # Don't try to run any link tests for TPF. We know it's impossible 12048 # because TPF is a cross-compiler, and we know how we open DSOs. 12049 lt_cv_dlopen=dlopen 12050 lt_cv_dlopen_libs= 12051 lt_cv_dlopen_self=no 12052 ;; 12053 12054 *) 12055 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12056if test "x$ac_cv_func_shl_load" = xyes; then : 12057 lt_cv_dlopen=shl_load 12058else 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12060$as_echo_n "checking for shl_load in -ldld... " >&6; } 12061if ${ac_cv_lib_dld_shl_load+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 ac_check_lib_save_LIBS=$LIBS 12065LIBS="-ldld $LIBS" 12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12067/* end confdefs.h. */ 12068 12069/* Override any GCC internal prototype to avoid an error. 12070 Use char because int might match the return type of a GCC 12071 builtin and then its argument prototype would still apply. */ 12072#ifdef __cplusplus 12073extern "C" 12074#endif 12075char shl_load (); 12076int 12077main () 12078{ 12079return shl_load (); 12080 ; 12081 return 0; 12082} 12083_ACEOF 12084if ac_fn_c_try_link "$LINENO"; then : 12085 ac_cv_lib_dld_shl_load=yes 12086else 12087 ac_cv_lib_dld_shl_load=no 12088fi 12089rm -f core conftest.err conftest.$ac_objext \ 12090 conftest$ac_exeext conftest.$ac_ext 12091LIBS=$ac_check_lib_save_LIBS 12092fi 12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12094$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12095if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12096 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12097else 12098 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12099if test "x$ac_cv_func_dlopen" = xyes; then : 12100 lt_cv_dlopen=dlopen 12101else 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12103$as_echo_n "checking for dlopen in -ldl... " >&6; } 12104if ${ac_cv_lib_dl_dlopen+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106else 12107 ac_check_lib_save_LIBS=$LIBS 12108LIBS="-ldl $LIBS" 12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111 12112/* Override any GCC internal prototype to avoid an error. 12113 Use char because int might match the return type of a GCC 12114 builtin and then its argument prototype would still apply. */ 12115#ifdef __cplusplus 12116extern "C" 12117#endif 12118char dlopen (); 12119int 12120main () 12121{ 12122return dlopen (); 12123 ; 12124 return 0; 12125} 12126_ACEOF 12127if ac_fn_c_try_link "$LINENO"; then : 12128 ac_cv_lib_dl_dlopen=yes 12129else 12130 ac_cv_lib_dl_dlopen=no 12131fi 12132rm -f core conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134LIBS=$ac_check_lib_save_LIBS 12135fi 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12137$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12138if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12139 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12140else 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12142$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12143if ${ac_cv_lib_svld_dlopen+:} false; then : 12144 $as_echo_n "(cached) " >&6 12145else 12146 ac_check_lib_save_LIBS=$LIBS 12147LIBS="-lsvld $LIBS" 12148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12149/* end confdefs.h. */ 12150 12151/* Override any GCC internal prototype to avoid an error. 12152 Use char because int might match the return type of a GCC 12153 builtin and then its argument prototype would still apply. */ 12154#ifdef __cplusplus 12155extern "C" 12156#endif 12157char dlopen (); 12158int 12159main () 12160{ 12161return dlopen (); 12162 ; 12163 return 0; 12164} 12165_ACEOF 12166if ac_fn_c_try_link "$LINENO"; then : 12167 ac_cv_lib_svld_dlopen=yes 12168else 12169 ac_cv_lib_svld_dlopen=no 12170fi 12171rm -f core conftest.err conftest.$ac_objext \ 12172 conftest$ac_exeext conftest.$ac_ext 12173LIBS=$ac_check_lib_save_LIBS 12174fi 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12176$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12177if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12178 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12179else 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12181$as_echo_n "checking for dld_link in -ldld... " >&6; } 12182if ${ac_cv_lib_dld_dld_link+:} false; then : 12183 $as_echo_n "(cached) " >&6 12184else 12185 ac_check_lib_save_LIBS=$LIBS 12186LIBS="-ldld $LIBS" 12187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189 12190/* Override any GCC internal prototype to avoid an error. 12191 Use char because int might match the return type of a GCC 12192 builtin and then its argument prototype would still apply. */ 12193#ifdef __cplusplus 12194extern "C" 12195#endif 12196char dld_link (); 12197int 12198main () 12199{ 12200return dld_link (); 12201 ; 12202 return 0; 12203} 12204_ACEOF 12205if ac_fn_c_try_link "$LINENO"; then : 12206 ac_cv_lib_dld_dld_link=yes 12207else 12208 ac_cv_lib_dld_dld_link=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12215$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12216if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12217 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12218fi 12219 12220 12221fi 12222 12223 12224fi 12225 12226 12227fi 12228 12229 12230fi 12231 12232 12233fi 12234 12235 ;; 12236 esac 12237 12238 if test no = "$lt_cv_dlopen"; then 12239 enable_dlopen=no 12240 else 12241 enable_dlopen=yes 12242 fi 12243 12244 case $lt_cv_dlopen in 12245 dlopen) 12246 save_CPPFLAGS=$CPPFLAGS 12247 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12248 12249 save_LDFLAGS=$LDFLAGS 12250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12251 12252 save_LIBS=$LIBS 12253 LIBS="$lt_cv_dlopen_libs $LIBS" 12254 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12256$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12257if ${lt_cv_dlopen_self+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259else 12260 if test yes = "$cross_compiling"; then : 12261 lt_cv_dlopen_self=cross 12262else 12263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12264 lt_status=$lt_dlunknown 12265 cat > conftest.$ac_ext <<_LT_EOF 12266#line $LINENO "configure" 12267#include "confdefs.h" 12268 12269#if HAVE_DLFCN_H 12270#include <dlfcn.h> 12271#endif 12272 12273#include <stdio.h> 12274 12275#ifdef RTLD_GLOBAL 12276# define LT_DLGLOBAL RTLD_GLOBAL 12277#else 12278# ifdef DL_GLOBAL 12279# define LT_DLGLOBAL DL_GLOBAL 12280# else 12281# define LT_DLGLOBAL 0 12282# endif 12283#endif 12284 12285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12286 find out it does not work in some platform. */ 12287#ifndef LT_DLLAZY_OR_NOW 12288# ifdef RTLD_LAZY 12289# define LT_DLLAZY_OR_NOW RTLD_LAZY 12290# else 12291# ifdef DL_LAZY 12292# define LT_DLLAZY_OR_NOW DL_LAZY 12293# else 12294# ifdef RTLD_NOW 12295# define LT_DLLAZY_OR_NOW RTLD_NOW 12296# else 12297# ifdef DL_NOW 12298# define LT_DLLAZY_OR_NOW DL_NOW 12299# else 12300# define LT_DLLAZY_OR_NOW 0 12301# endif 12302# endif 12303# endif 12304# endif 12305#endif 12306 12307/* When -fvisibility=hidden is used, assume the code has been annotated 12308 correspondingly for the symbols needed. */ 12309#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12310int fnord () __attribute__((visibility("default"))); 12311#endif 12312 12313int fnord () { return 42; } 12314int main () 12315{ 12316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12317 int status = $lt_dlunknown; 12318 12319 if (self) 12320 { 12321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12322 else 12323 { 12324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12325 else puts (dlerror ()); 12326 } 12327 /* dlclose (self); */ 12328 } 12329 else 12330 puts (dlerror ()); 12331 12332 return status; 12333} 12334_LT_EOF 12335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12336 (eval $ac_link) 2>&5 12337 ac_status=$? 12338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12339 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12340 (./conftest; exit; ) >&5 2>/dev/null 12341 lt_status=$? 12342 case x$lt_status in 12343 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12344 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12345 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12346 esac 12347 else : 12348 # compilation failed 12349 lt_cv_dlopen_self=no 12350 fi 12351fi 12352rm -fr conftest* 12353 12354 12355fi 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12357$as_echo "$lt_cv_dlopen_self" >&6; } 12358 12359 if test yes = "$lt_cv_dlopen_self"; then 12360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12362$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12363if ${lt_cv_dlopen_self_static+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 if test yes = "$cross_compiling"; then : 12367 lt_cv_dlopen_self_static=cross 12368else 12369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12370 lt_status=$lt_dlunknown 12371 cat > conftest.$ac_ext <<_LT_EOF 12372#line $LINENO "configure" 12373#include "confdefs.h" 12374 12375#if HAVE_DLFCN_H 12376#include <dlfcn.h> 12377#endif 12378 12379#include <stdio.h> 12380 12381#ifdef RTLD_GLOBAL 12382# define LT_DLGLOBAL RTLD_GLOBAL 12383#else 12384# ifdef DL_GLOBAL 12385# define LT_DLGLOBAL DL_GLOBAL 12386# else 12387# define LT_DLGLOBAL 0 12388# endif 12389#endif 12390 12391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12392 find out it does not work in some platform. */ 12393#ifndef LT_DLLAZY_OR_NOW 12394# ifdef RTLD_LAZY 12395# define LT_DLLAZY_OR_NOW RTLD_LAZY 12396# else 12397# ifdef DL_LAZY 12398# define LT_DLLAZY_OR_NOW DL_LAZY 12399# else 12400# ifdef RTLD_NOW 12401# define LT_DLLAZY_OR_NOW RTLD_NOW 12402# else 12403# ifdef DL_NOW 12404# define LT_DLLAZY_OR_NOW DL_NOW 12405# else 12406# define LT_DLLAZY_OR_NOW 0 12407# endif 12408# endif 12409# endif 12410# endif 12411#endif 12412 12413/* When -fvisibility=hidden is used, assume the code has been annotated 12414 correspondingly for the symbols needed. */ 12415#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12416int fnord () __attribute__((visibility("default"))); 12417#endif 12418 12419int fnord () { return 42; } 12420int main () 12421{ 12422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12423 int status = $lt_dlunknown; 12424 12425 if (self) 12426 { 12427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12428 else 12429 { 12430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12431 else puts (dlerror ()); 12432 } 12433 /* dlclose (self); */ 12434 } 12435 else 12436 puts (dlerror ()); 12437 12438 return status; 12439} 12440_LT_EOF 12441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12442 (eval $ac_link) 2>&5 12443 ac_status=$? 12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12445 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12446 (./conftest; exit; ) >&5 2>/dev/null 12447 lt_status=$? 12448 case x$lt_status in 12449 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12450 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12451 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12452 esac 12453 else : 12454 # compilation failed 12455 lt_cv_dlopen_self_static=no 12456 fi 12457fi 12458rm -fr conftest* 12459 12460 12461fi 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12463$as_echo "$lt_cv_dlopen_self_static" >&6; } 12464 fi 12465 12466 CPPFLAGS=$save_CPPFLAGS 12467 LDFLAGS=$save_LDFLAGS 12468 LIBS=$save_LIBS 12469 ;; 12470 esac 12471 12472 case $lt_cv_dlopen_self in 12473 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12474 *) enable_dlopen_self=unknown ;; 12475 esac 12476 12477 case $lt_cv_dlopen_self_static in 12478 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12479 *) enable_dlopen_self_static=unknown ;; 12480 esac 12481fi 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499striplib= 12500old_striplib= 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12502$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12503if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12505 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12507$as_echo "yes" >&6; } 12508else 12509# FIXME - insert some real tests, host_os isn't really good enough 12510 case $host_os in 12511 darwin*) 12512 if test -n "$STRIP"; then 12513 striplib="$STRIP -x" 12514 old_striplib="$STRIP -S" 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12516$as_echo "yes" >&6; } 12517 else 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12519$as_echo "no" >&6; } 12520 fi 12521 ;; 12522 *) 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12524$as_echo "no" >&6; } 12525 ;; 12526 esac 12527fi 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 # Report what library types will actually be built 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12542$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12544$as_echo "$can_build_shared" >&6; } 12545 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12547$as_echo_n "checking whether to build shared libraries... " >&6; } 12548 test no = "$can_build_shared" && enable_shared=no 12549 12550 # On AIX, shared libraries and static libraries use the same namespace, and 12551 # are all built from PIC. 12552 case $host_os in 12553 aix3*) 12554 test yes = "$enable_shared" && enable_static=no 12555 if test -n "$RANLIB"; then 12556 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12557 postinstall_cmds='$RANLIB $lib' 12558 fi 12559 ;; 12560 12561 aix[4-9]*) 12562 if test ia64 != "$host_cpu"; then 12563 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12564 yes,aix,yes) ;; # shared object as lib.so file only 12565 yes,svr4,*) ;; # shared object as lib.so archive member only 12566 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12567 esac 12568 fi 12569 ;; 12570 esac 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12572$as_echo "$enable_shared" >&6; } 12573 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12575$as_echo_n "checking whether to build static libraries... " >&6; } 12576 # Make sure either enable_shared or enable_static is yes. 12577 test yes = "$enable_shared" || enable_static=yes 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12579$as_echo "$enable_static" >&6; } 12580 12581 12582 12583 12584fi 12585ac_ext=c 12586ac_cpp='$CPP $CPPFLAGS' 12587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12589ac_compiler_gnu=$ac_cv_c_compiler_gnu 12590 12591CC=$lt_save_CC 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 ac_config_commands="$ac_config_commands libtool" 12608 12609 12610 12611 12612# Only expand once: 12613 12614 12615 12616#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not 12617#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) 12618#Note: Both this and the test for variable-size arrays below are also 12619# done by AC_PROG_CC_C99, but not thoroughly enough apparently. 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 12621$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 12622if ${ac_cv_c_restrict+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 ac_cv_c_restrict=no 12626 # The order here caters to the fact that C++ does not require restrict. 12627 for ac_kw in __restrict __restrict__ _Restrict restrict; do 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630typedef int * int_ptr; 12631 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { 12632 return ip[0]; 12633 } 12634int 12635main () 12636{ 12637int s[1]; 12638 int * $ac_kw t = s; 12639 t[0] = 0; 12640 return foo(t, (void *)0) 12641 ; 12642 return 0; 12643} 12644_ACEOF 12645if ac_fn_c_try_compile "$LINENO"; then : 12646 ac_cv_c_restrict=$ac_kw 12647fi 12648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12649 test "$ac_cv_c_restrict" != no && break 12650 done 12651 12652fi 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 12654$as_echo "$ac_cv_c_restrict" >&6; } 12655 12656 12657 12658case $ac_cv_c_restrict in 12659 restrict) ;; 12660 no) $as_echo "#define restrict /**/" >>confdefs.h 12661 ;; 12662 *) cat >>confdefs.h <<_ACEOF 12663#define restrict $ac_cv_c_restrict 12664_ACEOF 12665 ;; 12666esac 12667 12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5 12669$as_echo_n "checking for C99 variable-size arrays... " >&6; } 12670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12671/* end confdefs.h. */ 12672 12673int 12674main () 12675{ 12676static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0]; 12677 ; 12678 return 0; 12679} 12680_ACEOF 12681if ac_fn_c_try_compile "$LINENO"; then : 12682 has_var_arrays=yes 12683 12684$as_echo "#define VAR_ARRAYS 1" >>confdefs.h 12685 12686 12687else 12688 12689 has_var_arrays=no 12690 12691fi 12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5 12694$as_echo "$has_var_arrays" >&6; } 12695 12696# Check whether --enable-assertions was given. 12697if test "${enable_assertions+set}" = set; then : 12698 enableval=$enable_assertions; 12699else 12700 enable_assertions=no 12701fi 12702 12703 12704if test "$enable_assertions" = "yes"; then : 12705 12706 12707$as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h 12708 12709 12710fi 12711 12712if test "$CFLAGS" = "-g -O2"; then 12713 saved_CFLAGS="$CFLAGS" 12714 CFLAGS="-O3 -ffast-math" 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -O3 -g -ffast-math" >&5 12716$as_echo_n "checking if ${CC} supports -O3 -g -ffast-math... " >&6; } 12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12718/* end confdefs.h. */ 12719char foo; 12720_ACEOF 12721if ac_fn_c_try_compile "$LINENO"; then : 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12723$as_echo "yes" >&6; } 12724 saved_CFLAGS="-O3 -g -ffast-math" 12725 12726else 12727 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729$as_echo "no" >&6; } 12730 12731fi 12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12733 CFLAGS="$saved_CFLAGS" 12734fi 12735 12736LIBM= 12737case $host in 12738*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 12739 # These system don't have libm, or don't need it 12740 ;; 12741*-ncr-sysv4.3*) 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 12743$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 12744if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 ac_check_lib_save_LIBS=$LIBS 12748LIBS="-lmw $LIBS" 12749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750/* end confdefs.h. */ 12751 12752/* Override any GCC internal prototype to avoid an error. 12753 Use char because int might match the return type of a GCC 12754 builtin and then its argument prototype would still apply. */ 12755#ifdef __cplusplus 12756extern "C" 12757#endif 12758char _mwvalidcheckl (); 12759int 12760main () 12761{ 12762return _mwvalidcheckl (); 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 ac_cv_lib_mw__mwvalidcheckl=yes 12769else 12770 ac_cv_lib_mw__mwvalidcheckl=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774LIBS=$ac_check_lib_save_LIBS 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 12777$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 12778if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 12779 LIBM=-lmw 12780fi 12781 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 12783$as_echo_n "checking for cos in -lm... " >&6; } 12784if ${ac_cv_lib_m_cos+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 ac_check_lib_save_LIBS=$LIBS 12788LIBS="-lm $LIBS" 12789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12790/* end confdefs.h. */ 12791 12792/* Override any GCC internal prototype to avoid an error. 12793 Use char because int might match the return type of a GCC 12794 builtin and then its argument prototype would still apply. */ 12795#ifdef __cplusplus 12796extern "C" 12797#endif 12798char cos (); 12799int 12800main () 12801{ 12802return cos (); 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_c_try_link "$LINENO"; then : 12808 ac_cv_lib_m_cos=yes 12809else 12810 ac_cv_lib_m_cos=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 12817$as_echo "$ac_cv_lib_m_cos" >&6; } 12818if test "x$ac_cv_lib_m_cos" = xyes; then : 12819 LIBM="$LIBM -lm" 12820fi 12821 12822 ;; 12823*) 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 12825$as_echo_n "checking for cos in -lm... " >&6; } 12826if ${ac_cv_lib_m_cos+:} false; then : 12827 $as_echo_n "(cached) " >&6 12828else 12829 ac_check_lib_save_LIBS=$LIBS 12830LIBS="-lm $LIBS" 12831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12832/* end confdefs.h. */ 12833 12834/* Override any GCC internal prototype to avoid an error. 12835 Use char because int might match the return type of a GCC 12836 builtin and then its argument prototype would still apply. */ 12837#ifdef __cplusplus 12838extern "C" 12839#endif 12840char cos (); 12841int 12842main () 12843{ 12844return cos (); 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849if ac_fn_c_try_link "$LINENO"; then : 12850 ac_cv_lib_m_cos=yes 12851else 12852 ac_cv_lib_m_cos=no 12853fi 12854rm -f core conftest.err conftest.$ac_objext \ 12855 conftest$ac_exeext conftest.$ac_ext 12856LIBS=$ac_check_lib_save_LIBS 12857fi 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 12859$as_echo "$ac_cv_lib_m_cos" >&6; } 12860if test "x$ac_cv_lib_m_cos" = xyes; then : 12861 LIBM=-lm 12862fi 12863 12864 ;; 12865esac 12866 12867 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwinmm" >&5 12869$as_echo_n "checking for main in -lwinmm... " >&6; } 12870if ${ac_cv_lib_winmm_main+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 ac_check_lib_save_LIBS=$LIBS 12874LIBS="-lwinmm $LIBS" 12875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876/* end confdefs.h. */ 12877 12878 12879int 12880main () 12881{ 12882return main (); 12883 ; 12884 return 0; 12885} 12886_ACEOF 12887if ac_fn_c_try_link "$LINENO"; then : 12888 ac_cv_lib_winmm_main=yes 12889else 12890 ac_cv_lib_winmm_main=no 12891fi 12892rm -f core conftest.err conftest.$ac_objext \ 12893 conftest$ac_exeext conftest.$ac_ext 12894LIBS=$ac_check_lib_save_LIBS 12895fi 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_main" >&5 12897$as_echo "$ac_cv_lib_winmm_main" >&6; } 12898if test "x$ac_cv_lib_winmm_main" = xyes; then : 12899 cat >>confdefs.h <<_ACEOF 12900#define HAVE_LIBWINMM 1 12901_ACEOF 12902 12903 LIBS="-lwinmm $LIBS" 12904 12905fi 12906 12907 12908on_x86=no 12909case "$host_cpu" in 12910i[3456]86 | x86_64) 12911 on_x86=yes 12912 ;; 12913esac 12914 12915# Check whether --enable-sse was given. 12916if test "${enable_sse+set}" = set; then : 12917 enableval=$enable_sse; 12918else 12919 enable_sse=no 12920fi 12921 12922 12923if test "$on_x86" = "yes" && test "$enable_sse" = "yes"; then : 12924 12925 saved_CFLAGS="$CFLAGS" 12926 CFLAGS="$CFLAGS -msse" 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -msse" >&5 12928$as_echo_n "checking if ${CC} supports -msse... " >&6; } 12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931 12932int 12933main () 12934{ 12935char foo; 12936 ; 12937 return 0; 12938} 12939_ACEOF 12940if ac_fn_c_try_link "$LINENO"; then : 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12942$as_echo "yes" >&6; } 12943else 12944 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12946$as_echo "no" >&6; } 12947 enable_sse=no 12948 CFLAGS="$saved_CFLAGS" 12949 12950fi 12951rm -f core conftest.err conftest.$ac_objext \ 12952 conftest$ac_exeext conftest.$ac_ext 12953 12954fi 12955 12956saved_LIBS="$LIBS" 12957LIBS="$LIBS $LIBM" 12958for ac_func in lrintf 12959do : 12960 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf" 12961if test "x$ac_cv_func_lrintf" = xyes; then : 12962 cat >>confdefs.h <<_ACEOF 12963#define HAVE_LRINTF 1 12964_ACEOF 12965 12966fi 12967done 12968 12969for ac_func in fminf 12970do : 12971 ac_fn_c_check_func "$LINENO" "fminf" "ac_cv_func_fminf" 12972if test "x$ac_cv_func_fminf" = xyes; then : 12973 cat >>confdefs.h <<_ACEOF 12974#define HAVE_FMINF 1 12975_ACEOF 12976 12977fi 12978done 12979 12980for ac_func in fmaxf 12981do : 12982 ac_fn_c_check_func "$LINENO" "fmaxf" "ac_cv_func_fmaxf" 12983if test "x$ac_cv_func_fmaxf" = xyes; then : 12984 cat >>confdefs.h <<_ACEOF 12985#define HAVE_FMAXF 1 12986_ACEOF 12987 12988fi 12989done 12990 12991LIBS="$saved_LIBS" 12992 12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12994$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12995if ${ac_cv_sys_largefile_source+:} false; then : 12996 $as_echo_n "(cached) " >&6 12997else 12998 while :; do 12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000/* end confdefs.h. */ 13001#include <sys/types.h> /* for off_t */ 13002 #include <stdio.h> 13003int 13004main () 13005{ 13006int (*fp) (FILE *, off_t, int) = fseeko; 13007 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012if ac_fn_c_try_link "$LINENO"; then : 13013 ac_cv_sys_largefile_source=no; break 13014fi 13015rm -f core conftest.err conftest.$ac_objext \ 13016 conftest$ac_exeext conftest.$ac_ext 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019#define _LARGEFILE_SOURCE 1 13020#include <sys/types.h> /* for off_t */ 13021 #include <stdio.h> 13022int 13023main () 13024{ 13025int (*fp) (FILE *, off_t, int) = fseeko; 13026 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13027 ; 13028 return 0; 13029} 13030_ACEOF 13031if ac_fn_c_try_link "$LINENO"; then : 13032 ac_cv_sys_largefile_source=1; break 13033fi 13034rm -f core conftest.err conftest.$ac_objext \ 13035 conftest$ac_exeext conftest.$ac_ext 13036 ac_cv_sys_largefile_source=unknown 13037 break 13038done 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13041$as_echo "$ac_cv_sys_largefile_source" >&6; } 13042case $ac_cv_sys_largefile_source in #( 13043 no | unknown) ;; 13044 *) 13045cat >>confdefs.h <<_ACEOF 13046#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13047_ACEOF 13048;; 13049esac 13050rm -rf conftest* 13051 13052# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13053# in glibc 2.1.3, but that breaks too many other things. 13054# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13055if test $ac_cv_sys_largefile_source != unknown; then 13056 13057$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13058 13059fi 13060 13061for ac_func in clock_gettime mach_absolute_time 13062do : 13063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13064ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13065if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13066 cat >>confdefs.h <<_ACEOF 13067#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13068_ACEOF 13069 13070fi 13071done 13072 13073for ac_func in usleep nanosleep clock_nanosleep 13074do : 13075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13077if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13078 cat >>confdefs.h <<_ACEOF 13079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13080_ACEOF 13081 13082fi 13083done 13084 13085 13086# Extract the first word of "pkg-config", so it can be a program name with args. 13087set dummy pkg-config; ac_word=$2 13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13089$as_echo_n "checking for $ac_word... " >&6; } 13090if ${ac_cv_prog_HAVE_PKG_CONFIG+:} false; then : 13091 $as_echo_n "(cached) " >&6 13092else 13093 if test -n "$HAVE_PKG_CONFIG"; then 13094 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test. 13095else 13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13097for as_dir in $PATH 13098do 13099 IFS=$as_save_IFS 13100 test -z "$as_dir" && as_dir=. 13101 for ac_exec_ext in '' $ac_executable_extensions; do 13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13103 ac_cv_prog_HAVE_PKG_CONFIG="yes" 13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13105 break 2 13106 fi 13107done 13108 done 13109IFS=$as_save_IFS 13110 13111fi 13112fi 13113HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG 13114if test -n "$HAVE_PKG_CONFIG"; then 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5 13116$as_echo "$HAVE_PKG_CONFIG" >&6; } 13117else 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13119$as_echo "no" >&6; } 13120fi 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13131 if test -n "$ac_tool_prefix"; then 13132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13133set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13135$as_echo_n "checking for $ac_word... " >&6; } 13136if ${ac_cv_path_PKG_CONFIG+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 case $PKG_CONFIG in 13140 [\\/]* | ?:[\\/]*) 13141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13142 ;; 13143 *) 13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13145for as_dir in $PATH 13146do 13147 IFS=$as_save_IFS 13148 test -z "$as_dir" && as_dir=. 13149 for ac_exec_ext in '' $ac_executable_extensions; do 13150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13153 break 2 13154 fi 13155done 13156 done 13157IFS=$as_save_IFS 13158 13159 ;; 13160esac 13161fi 13162PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13163if test -n "$PKG_CONFIG"; then 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13165$as_echo "$PKG_CONFIG" >&6; } 13166else 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13168$as_echo "no" >&6; } 13169fi 13170 13171 13172fi 13173if test -z "$ac_cv_path_PKG_CONFIG"; then 13174 ac_pt_PKG_CONFIG=$PKG_CONFIG 13175 # Extract the first word of "pkg-config", so it can be a program name with args. 13176set dummy pkg-config; ac_word=$2 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13178$as_echo_n "checking for $ac_word... " >&6; } 13179if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 case $ac_pt_PKG_CONFIG in 13183 [\\/]* | ?:[\\/]*) 13184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13185 ;; 13186 *) 13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13188for as_dir in $PATH 13189do 13190 IFS=$as_save_IFS 13191 test -z "$as_dir" && as_dir=. 13192 for ac_exec_ext in '' $ac_executable_extensions; do 13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13196 break 2 13197 fi 13198done 13199 done 13200IFS=$as_save_IFS 13201 13202 ;; 13203esac 13204fi 13205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13206if test -n "$ac_pt_PKG_CONFIG"; then 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13208$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13209else 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13211$as_echo "no" >&6; } 13212fi 13213 13214 if test "x$ac_pt_PKG_CONFIG" = x; then 13215 PKG_CONFIG="" 13216 else 13217 case $cross_compiling:$ac_tool_warned in 13218yes:) 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13221ac_tool_warned=yes ;; 13222esac 13223 PKG_CONFIG=$ac_pt_PKG_CONFIG 13224 fi 13225else 13226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13227fi 13228 13229fi 13230if test -n "$PKG_CONFIG"; then 13231 _pkg_min_version=0.9.0 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13233$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13236$as_echo "yes" >&6; } 13237 else 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13239$as_echo "no" >&6; } 13240 PKG_CONFIG="" 13241 fi 13242fi 13243if test "$HAVE_PKG_CONFIG" = "yes"; then : 13244 13245pkg_failed=no 13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5 13247$as_echo_n "checking for OGG... " >&6; } 13248 13249if test -n "$OGG_CFLAGS"; then 13250 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS" 13251 elif test -n "$PKG_CONFIG"; then 13252 if test -n "$PKG_CONFIG" && \ 13253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3\""; } >&5 13254 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3") 2>&5 13255 ac_status=$? 13256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13257 test $ac_status = 0; }; then 13258 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3" 2>/dev/null` 13259else 13260 pkg_failed=yes 13261fi 13262 else 13263 pkg_failed=untried 13264fi 13265if test -n "$OGG_LIBS"; then 13266 pkg_cv_OGG_LIBS="$OGG_LIBS" 13267 elif test -n "$PKG_CONFIG"; then 13268 if test -n "$PKG_CONFIG" && \ 13269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3\""; } >&5 13270 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3") 2>&5 13271 ac_status=$? 13272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13273 test $ac_status = 0; }; then 13274 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3" 2>/dev/null` 13275else 13276 pkg_failed=yes 13277fi 13278 else 13279 pkg_failed=untried 13280fi 13281 13282 13283 13284if test $pkg_failed = yes; then 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286$as_echo "no" >&6; } 13287 13288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13289 _pkg_short_errors_supported=yes 13290else 13291 _pkg_short_errors_supported=no 13292fi 13293 if test $_pkg_short_errors_supported = yes; then 13294 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ogg >= 1.3" 2>&1` 13295 else 13296 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors "ogg >= 1.3" 2>&1` 13297 fi 13298 # Put the nasty error message in config.log where it belongs 13299 echo "$OGG_PKG_ERRORS" >&5 13300 13301 as_fn_error $? "Package requirements (ogg >= 1.3) were not met: 13302 13303$OGG_PKG_ERRORS 13304 13305Consider adjusting the PKG_CONFIG_PATH environment variable if you 13306installed software in a non-standard prefix. 13307 13308Alternatively, you may set the environment variables OGG_CFLAGS 13309and OGG_LIBS to avoid the need to call pkg-config. 13310See the pkg-config man page for more details." "$LINENO" 5 13311 13312elif test $pkg_failed = untried; then 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314$as_echo "no" >&6; } 13315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13317as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13318is in your PATH or set the PKG_CONFIG environment variable to the full 13319path to pkg-config. 13320 13321Alternatively, you may set the environment variables OGG_CFLAGS 13322and OGG_LIBS to avoid the need to call pkg-config. 13323See the pkg-config man page for more details. 13324 13325To get pkg-config, see <https://pkg-config.freedesktop.org/>. 13326See \`config.log' for more details" "$LINENO" 5; } 13327 13328else 13329 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS 13330 OGG_LIBS=$pkg_cv_OGG_LIBS 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13332$as_echo "yes" >&6; } 13333 13334fi 13335else 13336 13337 13338# Check whether --with-ogg was given. 13339if test "${with_ogg+set}" = set; then : 13340 withval=$with_ogg; ogg_prefix="$withval" 13341else 13342 ogg_prefix="" 13343fi 13344 13345 13346# Check whether --with-ogg-libraries was given. 13347if test "${with_ogg_libraries+set}" = set; then : 13348 withval=$with_ogg_libraries; ogg_libraries="$withval" 13349else 13350 ogg_libraries="" 13351fi 13352 13353 13354# Check whether --with-ogg-includes was given. 13355if test "${with_ogg_includes+set}" = set; then : 13356 withval=$with_ogg_includes; ogg_includes="$withval" 13357else 13358 ogg_includes="" 13359fi 13360 13361# Check whether --enable-oggtest was given. 13362if test "${enable_oggtest+set}" = set; then : 13363 enableval=$enable_oggtest; 13364else 13365 enable_oggtest=yes 13366fi 13367 13368 13369 if test "x$ogg_libraries" != "x" ; then 13370 OGG_LIBS="-L$ogg_libraries" 13371 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 13372 OGG_LIBS="" 13373 elif test "x$ogg_prefix" != "x" ; then 13374 OGG_LIBS="-L$ogg_prefix/lib" 13375 elif test "x$prefix" != "xNONE" ; then 13376 OGG_LIBS="-L$prefix/lib" 13377 fi 13378 13379 if test "x$ogg_prefix" != "xno" ; then 13380 OGG_LIBS="$OGG_LIBS -logg" 13381 fi 13382 13383 if test "x$ogg_includes" != "x" ; then 13384 OGG_CFLAGS="-I$ogg_includes" 13385 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then 13386 OGG_CFLAGS="" 13387 elif test "x$ogg_prefix" != "x" ; then 13388 OGG_CFLAGS="-I$ogg_prefix/include" 13389 elif test "x$prefix" != "xNONE"; then 13390 OGG_CFLAGS="-I$prefix/include" 13391 fi 13392 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5 13394$as_echo_n "checking for Ogg... " >&6; } 13395 if test "x$ogg_prefix" = "xno" ; then 13396 no_ogg="disabled" 13397 enable_oggtest="no" 13398 else 13399 no_ogg="" 13400 fi 13401 13402 13403 if test "x$enable_oggtest" = "xyes" ; then 13404 ac_save_CFLAGS="$CFLAGS" 13405 ac_save_LIBS="$LIBS" 13406 CFLAGS="$CFLAGS $OGG_CFLAGS" 13407 LIBS="$LIBS $OGG_LIBS" 13408 rm -f conf.oggtest 13409 if test "$cross_compiling" = yes; then : 13410 echo $ac_n "cross compiling; assumed OK... $ac_c" 13411else 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13413/* end confdefs.h. */ 13414 13415#include <stdio.h> 13416#include <stdlib.h> 13417#include <string.h> 13418#include <ogg/ogg.h> 13419 13420int main () 13421{ 13422 system("touch conf.oggtest"); 13423 return 0; 13424} 13425 13426 13427_ACEOF 13428if ac_fn_c_try_run "$LINENO"; then : 13429 13430else 13431 no_ogg=yes 13432fi 13433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13434 conftest.$ac_objext conftest.beam conftest.$ac_ext 13435fi 13436 13437 CFLAGS="$ac_save_CFLAGS" 13438 LIBS="$ac_save_LIBS" 13439 fi 13440 13441 if test "x$no_ogg" = "xdisabled" ; then 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13443$as_echo "no" >&6; } 13444 as_fn_error $? " 13445 libogg is required to build this package! 13446 Please see https://www.xiph.org/ for how to obtain a copy. 13447 " "$LINENO" 5 13448 elif test "x$no_ogg" = "x" ; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13450$as_echo "yes" >&6; } 13451 : 13452 else 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13454$as_echo "no" >&6; } 13455 if test -f conf.oggtest ; then 13456 : 13457 else 13458 echo "*** Could not run Ogg test program, checking why..." 13459 CFLAGS="$CFLAGS $OGG_CFLAGS" 13460 LIBS="$LIBS $OGG_LIBS" 13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13462/* end confdefs.h. */ 13463 13464#include <stdio.h> 13465#include <ogg/ogg.h> 13466 13467int 13468main () 13469{ 13470 return 0; 13471 ; 13472 return 0; 13473} 13474_ACEOF 13475if ac_fn_c_try_link "$LINENO"; then : 13476 echo "*** The test program compiled, but did not run. This usually means" 13477 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 13478 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 13479 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13480 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13481 echo "*** is required on your system" 13482 echo "***" 13483 echo "*** If you have an old version installed, it is best to remove it, although" 13484 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13485else 13486 echo "*** The test program failed to compile or link. See the file config.log for the" 13487 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 13488 echo "*** or that you have moved Ogg since it was installed." 13489fi 13490rm -f core conftest.err conftest.$ac_objext \ 13491 conftest$ac_exeext conftest.$ac_ext 13492 CFLAGS="$ac_save_CFLAGS" 13493 LIBS="$ac_save_LIBS" 13494 fi 13495 OGG_CFLAGS="" 13496 OGG_LIBS="" 13497 as_fn_error $? " 13498 libogg is required to build this package! 13499 Please see https://www.xiph.org/ for how to obtain a copy. 13500 " "$LINENO" 5 13501 fi 13502 13503 13504 rm -f conf.oggtest 13505 13506 saved_CFLAGS="$CFLAGS" 13507 saved_LIBS="$LIBS" 13508 CFLAGS="$CFLAGS $OGG_CFLAGS" 13509 LIBS="$LIBS $OGG_LIBS" 13510 ac_fn_c_check_func "$LINENO" "ogg_stream_flush_fill" "ac_cv_func_ogg_stream_flush_fill" 13511if test "x$ac_cv_func_ogg_stream_flush_fill" = xyes; then : 13512 13513else 13514 13515 as_fn_error $? "newer libogg version (1.3 or later) required" "$LINENO" 5 13516 13517fi 13518 13519 CFLAGS="$saved_CFLAGS" 13520 LIBS="$saved_LIBS" 13521 13522fi 13523 13524if test "$HAVE_PKG_CONFIG" = "yes"; then : 13525 13526pkg_failed=no 13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUS" >&5 13528$as_echo_n "checking for OPUS... " >&6; } 13529 13530if test -n "$OPUS_CFLAGS"; then 13531 pkg_cv_OPUS_CFLAGS="$OPUS_CFLAGS" 13532 elif test -n "$PKG_CONFIG"; then 13533 if test -n "$PKG_CONFIG" && \ 13534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 1.1\""; } >&5 13535 ($PKG_CONFIG --exists --print-errors "opus >= 1.1") 2>&5 13536 ac_status=$? 13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13538 test $ac_status = 0; }; then 13539 pkg_cv_OPUS_CFLAGS=`$PKG_CONFIG --cflags "opus >= 1.1" 2>/dev/null` 13540else 13541 pkg_failed=yes 13542fi 13543 else 13544 pkg_failed=untried 13545fi 13546if test -n "$OPUS_LIBS"; then 13547 pkg_cv_OPUS_LIBS="$OPUS_LIBS" 13548 elif test -n "$PKG_CONFIG"; then 13549 if test -n "$PKG_CONFIG" && \ 13550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 1.1\""; } >&5 13551 ($PKG_CONFIG --exists --print-errors "opus >= 1.1") 2>&5 13552 ac_status=$? 13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13554 test $ac_status = 0; }; then 13555 pkg_cv_OPUS_LIBS=`$PKG_CONFIG --libs "opus >= 1.1" 2>/dev/null` 13556else 13557 pkg_failed=yes 13558fi 13559 else 13560 pkg_failed=untried 13561fi 13562 13563 13564 13565if test $pkg_failed = yes; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13567$as_echo "no" >&6; } 13568 13569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13570 _pkg_short_errors_supported=yes 13571else 13572 _pkg_short_errors_supported=no 13573fi 13574 if test $_pkg_short_errors_supported = yes; then 13575 OPUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "opus >= 1.1" 2>&1` 13576 else 13577 OPUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "opus >= 1.1" 2>&1` 13578 fi 13579 # Put the nasty error message in config.log where it belongs 13580 echo "$OPUS_PKG_ERRORS" >&5 13581 13582 as_fn_error $? "Package requirements (opus >= 1.1) were not met: 13583 13584$OPUS_PKG_ERRORS 13585 13586Consider adjusting the PKG_CONFIG_PATH environment variable if you 13587installed software in a non-standard prefix. 13588 13589Alternatively, you may set the environment variables OPUS_CFLAGS 13590and OPUS_LIBS to avoid the need to call pkg-config. 13591See the pkg-config man page for more details." "$LINENO" 5 13592 13593elif test $pkg_failed = untried; then 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13595$as_echo "no" >&6; } 13596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13598as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13599is in your PATH or set the PKG_CONFIG environment variable to the full 13600path to pkg-config. 13601 13602Alternatively, you may set the environment variables OPUS_CFLAGS 13603and OPUS_LIBS to avoid the need to call pkg-config. 13604See the pkg-config man page for more details. 13605 13606To get pkg-config, see <https://pkg-config.freedesktop.org/>. 13607See \`config.log' for more details" "$LINENO" 5; } 13608 13609else 13610 OPUS_CFLAGS=$pkg_cv_OPUS_CFLAGS 13611 OPUS_LIBS=$pkg_cv_OPUS_LIBS 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13613$as_echo "yes" >&6; } 13614 13615fi 13616else 13617 13618 13619# Check whether --with-opus was given. 13620if test "${with_opus+set}" = set; then : 13621 withval=$with_opus; opus_prefix="$withval" 13622else 13623 opus_prefix="" 13624fi 13625 13626 13627# Check whether --with-opus-libraries was given. 13628if test "${with_opus_libraries+set}" = set; then : 13629 withval=$with_opus_libraries; opus_libraries="$withval" 13630else 13631 opus_libraries="" 13632fi 13633 13634 13635# Check whether --with-opus-includes was given. 13636if test "${with_opus_includes+set}" = set; then : 13637 withval=$with_opus_includes; opus_includes="$withval" 13638else 13639 opus_includes="" 13640fi 13641 13642# Check whether --enable-opustest was given. 13643if test "${enable_opustest+set}" = set; then : 13644 enableval=$enable_opustest; 13645else 13646 enable_opustest=yes 13647fi 13648 13649 13650 if test "x$opus_libraries" != "x" ; then 13651 OPUS_LIBS="-L$opus_libraries" 13652 elif test "x$opus_prefix" = "xno" || test "x$opus_prefix" = "xyes" ; then 13653 OPUS_LIBS="" 13654 elif test "x$opus_prefix" != "x" ; then 13655 OPUS_LIBS="-L$opus_prefix/lib" 13656 elif test "x$prefix" != "xNONE" ; then 13657 OPUS_LIBS="-L$prefix/lib" 13658 fi 13659 13660 if test "x$opus_prefix" != "xno" ; then 13661 OPUS_LIBS="$OPUS_LIBS -lopus" 13662 fi 13663 13664 if test "x$opus_includes" != "x" ; then 13665 OPUS_CFLAGS="-I$opus_includes" 13666 elif test "x$opus_prefix" = "xno" || test "x$opus_prefix" = "xyes" ; then 13667 OPUS_CFLAGS="" 13668 elif test "x$opus_prefix" != "x" ; then 13669 OPUS_CFLAGS="-I$opus_prefix/include/opus" 13670 elif test "x$prefix" != "xNONE"; then 13671 OPUS_CFLAGS="-I$prefix/include/opus" 13672 fi 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Opus" >&5 13675$as_echo_n "checking for Opus... " >&6; } 13676 if test "x$opus_prefix" = "xno" ; then 13677 no_opus="disabled" 13678 enable_opustest="no" 13679 else 13680 no_opus="" 13681 fi 13682 13683 13684 if test "x$enable_opustest" = "xyes" ; then 13685 ac_save_CFLAGS="$CFLAGS" 13686 ac_save_LIBS="$LIBS" 13687 CFLAGS="$CFLAGS $OPUS_CFLAGS" 13688 LIBS="$LIBS $OPUS_LIBS" 13689 rm -f conf.opustest 13690 if test "$cross_compiling" = yes; then : 13691 echo $ac_n "cross compiling; assumed OK... $ac_c" 13692else 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694/* end confdefs.h. */ 13695 13696#include <stdio.h> 13697#include <stdlib.h> 13698#include <string.h> 13699#include <opus.h> 13700 13701int main () 13702{ 13703 system("touch conf.opustest"); 13704 return 0; 13705} 13706 13707 13708_ACEOF 13709if ac_fn_c_try_run "$LINENO"; then : 13710 13711else 13712 no_opus=yes 13713fi 13714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13715 conftest.$ac_objext conftest.beam conftest.$ac_ext 13716fi 13717 13718 CFLAGS="$ac_save_CFLAGS" 13719 LIBS="$ac_save_LIBS" 13720 fi 13721 13722 if test "x$no_opus" = "xdisabled" ; then 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13724$as_echo "no" >&6; } 13725 as_fn_error $? " 13726 Opus is required to build this package! 13727 Please see https://opus-codec.org/ for how to obtain a copy. 13728 " "$LINENO" 5 13729 elif test "x$no_opus" = "x" ; then 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13731$as_echo "yes" >&6; } 13732 : 13733 else 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13735$as_echo "no" >&6; } 13736 if test -f conf.opustest ; then 13737 : 13738 else 13739 echo "*** Could not run Opus test program, checking why..." 13740 CFLAGS="$CFLAGS $OPUS_CFLAGS" 13741 LIBS="$LIBS $OPUS_LIBS" 13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13743/* end confdefs.h. */ 13744 13745#include <stdio.h> 13746#include <opus.h> 13747 13748int 13749main () 13750{ 13751 return 0; 13752 ; 13753 return 0; 13754} 13755_ACEOF 13756if ac_fn_c_try_link "$LINENO"; then : 13757 echo "*** The test program compiled, but did not run. This usually means" 13758 echo "*** that the run-time linker is not finding Opus or finding the wrong" 13759 echo "*** version of Opus. If it is not finding Opus, you'll need to set your" 13760 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13761 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13762 echo "*** is required on your system" 13763 echo "***" 13764 echo "*** If you have an old version installed, it is best to remove it, although" 13765 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13766else 13767 echo "*** The test program failed to compile or link. See the file config.log for the" 13768 echo "*** exact error that occured. This usually means Opus was incorrectly installed" 13769 echo "*** or that you have moved Opus since it was installed." 13770fi 13771rm -f core conftest.err conftest.$ac_objext \ 13772 conftest$ac_exeext conftest.$ac_ext 13773 CFLAGS="$ac_save_CFLAGS" 13774 LIBS="$ac_save_LIBS" 13775 fi 13776 OPUS_CFLAGS="" 13777 OPUS_LIBS="" 13778 as_fn_error $? " 13779 Opus is required to build this package! 13780 Please see https://opus-codec.org/ for how to obtain a copy. 13781 " "$LINENO" 5 13782 fi 13783 13784 13785 rm -f conf.opustest 13786 13787 13788fi 13789 13790if test "$HAVE_PKG_CONFIG" = "yes"; then : 13791 13792 13793pkg_failed=no 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUSFILE" >&5 13795$as_echo_n "checking for OPUSFILE... " >&6; } 13796 13797if test -n "$OPUSFILE_CFLAGS"; then 13798 pkg_cv_OPUSFILE_CFLAGS="$OPUSFILE_CFLAGS" 13799 elif test -n "$PKG_CONFIG"; then 13800 if test -n "$PKG_CONFIG" && \ 13801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile >= 0.5\""; } >&5 13802 ($PKG_CONFIG --exists --print-errors "opusfile >= 0.5") 2>&5 13803 ac_status=$? 13804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13805 test $ac_status = 0; }; then 13806 pkg_cv_OPUSFILE_CFLAGS=`$PKG_CONFIG --cflags "opusfile >= 0.5" 2>/dev/null` 13807else 13808 pkg_failed=yes 13809fi 13810 else 13811 pkg_failed=untried 13812fi 13813if test -n "$OPUSFILE_LIBS"; then 13814 pkg_cv_OPUSFILE_LIBS="$OPUSFILE_LIBS" 13815 elif test -n "$PKG_CONFIG"; then 13816 if test -n "$PKG_CONFIG" && \ 13817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile >= 0.5\""; } >&5 13818 ($PKG_CONFIG --exists --print-errors "opusfile >= 0.5") 2>&5 13819 ac_status=$? 13820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13821 test $ac_status = 0; }; then 13822 pkg_cv_OPUSFILE_LIBS=`$PKG_CONFIG --libs "opusfile >= 0.5" 2>/dev/null` 13823else 13824 pkg_failed=yes 13825fi 13826 else 13827 pkg_failed=untried 13828fi 13829 13830 13831 13832if test $pkg_failed = yes; then 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13834$as_echo "no" >&6; } 13835 13836if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13837 _pkg_short_errors_supported=yes 13838else 13839 _pkg_short_errors_supported=no 13840fi 13841 if test $_pkg_short_errors_supported = yes; then 13842 OPUSFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "opusfile >= 0.5" 2>&1` 13843 else 13844 OPUSFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "opusfile >= 0.5" 2>&1` 13845 fi 13846 # Put the nasty error message in config.log where it belongs 13847 echo "$OPUSFILE_PKG_ERRORS" >&5 13848 13849 as_fn_error $? "Package requirements (opusfile >= 0.5) were not met: 13850 13851$OPUSFILE_PKG_ERRORS 13852 13853Consider adjusting the PKG_CONFIG_PATH environment variable if you 13854installed software in a non-standard prefix. 13855 13856Alternatively, you may set the environment variables OPUSFILE_CFLAGS 13857and OPUSFILE_LIBS to avoid the need to call pkg-config. 13858See the pkg-config man page for more details." "$LINENO" 5 13859 13860elif test $pkg_failed = untried; then 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13862$as_echo "no" >&6; } 13863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13865as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13866is in your PATH or set the PKG_CONFIG environment variable to the full 13867path to pkg-config. 13868 13869Alternatively, you may set the environment variables OPUSFILE_CFLAGS 13870and OPUSFILE_LIBS to avoid the need to call pkg-config. 13871See the pkg-config man page for more details. 13872 13873To get pkg-config, see <https://pkg-config.freedesktop.org/>. 13874See \`config.log' for more details" "$LINENO" 5; } 13875 13876else 13877 OPUSFILE_CFLAGS=$pkg_cv_OPUSFILE_CFLAGS 13878 OPUSFILE_LIBS=$pkg_cv_OPUSFILE_LIBS 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13880$as_echo "yes" >&6; } 13881 13882fi 13883 13884pkg_failed=no 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUSURL" >&5 13886$as_echo_n "checking for OPUSURL... " >&6; } 13887 13888if test -n "$OPUSURL_CFLAGS"; then 13889 pkg_cv_OPUSURL_CFLAGS="$OPUSURL_CFLAGS" 13890 elif test -n "$PKG_CONFIG"; then 13891 if test -n "$PKG_CONFIG" && \ 13892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusurl >= 0.5\""; } >&5 13893 ($PKG_CONFIG --exists --print-errors "opusurl >= 0.5") 2>&5 13894 ac_status=$? 13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13896 test $ac_status = 0; }; then 13897 pkg_cv_OPUSURL_CFLAGS=`$PKG_CONFIG --cflags "opusurl >= 0.5" 2>/dev/null` 13898else 13899 pkg_failed=yes 13900fi 13901 else 13902 pkg_failed=untried 13903fi 13904if test -n "$OPUSURL_LIBS"; then 13905 pkg_cv_OPUSURL_LIBS="$OPUSURL_LIBS" 13906 elif test -n "$PKG_CONFIG"; then 13907 if test -n "$PKG_CONFIG" && \ 13908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusurl >= 0.5\""; } >&5 13909 ($PKG_CONFIG --exists --print-errors "opusurl >= 0.5") 2>&5 13910 ac_status=$? 13911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13912 test $ac_status = 0; }; then 13913 pkg_cv_OPUSURL_LIBS=`$PKG_CONFIG --libs "opusurl >= 0.5" 2>/dev/null` 13914else 13915 pkg_failed=yes 13916fi 13917 else 13918 pkg_failed=untried 13919fi 13920 13921 13922 13923if test $pkg_failed = yes; then 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13925$as_echo "no" >&6; } 13926 13927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13928 _pkg_short_errors_supported=yes 13929else 13930 _pkg_short_errors_supported=no 13931fi 13932 if test $_pkg_short_errors_supported = yes; then 13933 OPUSURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "opusurl >= 0.5" 2>&1` 13934 else 13935 OPUSURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "opusurl >= 0.5" 2>&1` 13936 fi 13937 # Put the nasty error message in config.log where it belongs 13938 echo "$OPUSURL_PKG_ERRORS" >&5 13939 13940 as_fn_error $? "Package requirements (opusurl >= 0.5) were not met: 13941 13942$OPUSURL_PKG_ERRORS 13943 13944Consider adjusting the PKG_CONFIG_PATH environment variable if you 13945installed software in a non-standard prefix. 13946 13947Alternatively, you may set the environment variables OPUSURL_CFLAGS 13948and OPUSURL_LIBS to avoid the need to call pkg-config. 13949See the pkg-config man page for more details." "$LINENO" 5 13950 13951elif test $pkg_failed = untried; then 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13953$as_echo "no" >&6; } 13954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13956as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13957is in your PATH or set the PKG_CONFIG environment variable to the full 13958path to pkg-config. 13959 13960Alternatively, you may set the environment variables OPUSURL_CFLAGS 13961and OPUSURL_LIBS to avoid the need to call pkg-config. 13962See the pkg-config man page for more details. 13963 13964To get pkg-config, see <https://pkg-config.freedesktop.org/>. 13965See \`config.log' for more details" "$LINENO" 5; } 13966 13967else 13968 OPUSURL_CFLAGS=$pkg_cv_OPUSURL_CFLAGS 13969 OPUSURL_LIBS=$pkg_cv_OPUSURL_LIBS 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13971$as_echo "yes" >&6; } 13972 13973fi 13974 13975else 13976 13977 13978# Check whether --with-opusfile was given. 13979if test "${with_opusfile+set}" = set; then : 13980 withval=$with_opusfile; opusfile_prefix="$withval" 13981else 13982 opusfile_prefix="" 13983fi 13984 13985 13986# Check whether --with-opusfile-libraries was given. 13987if test "${with_opusfile_libraries+set}" = set; then : 13988 withval=$with_opusfile_libraries; opusfile_libraries="$withval" 13989else 13990 opusfile_libraries="" 13991fi 13992 13993 13994# Check whether --with-opusfile-includes was given. 13995if test "${with_opusfile_includes+set}" = set; then : 13996 withval=$with_opusfile_includes; opusfile_includes="$withval" 13997else 13998 opusfile_includes="" 13999fi 14000 14001# Check whether --enable-opusfiletest was given. 14002if test "${enable_opusfiletest+set}" = set; then : 14003 enableval=$enable_opusfiletest; 14004else 14005 enable_opusfiletest=yes 14006fi 14007 14008 14009 if test "x$opusfile_libraries" != "x" ; then 14010 OPUSFILE_LIBS="-L$opusfile_libraries" 14011 elif test "x$opusfile_prefix" = "xno" || test "x$opusfile_prefix" = "xyes" ; then 14012 OPUSFILE_LIBS="" 14013 elif test "x$opusfile_prefix" != "x" ; then 14014 OPUSFILE_LIBS="-L$opusfile_prefix/lib" 14015 elif test "x$prefix" != "xNONE" ; then 14016 OPUSFILE_LIBS="-L$prefix/lib" 14017 fi 14018 14019 if test "x$opusfile_prefix" != "xno" ; then 14020 OPUSFILE_LIBS="$OPUSFILE_LIBS -lopusfile" 14021 fi 14022 14023 if test "x$opusfile_includes" != "x" ; then 14024 OPUSFILE_CFLAGS="-I$opusfile_includes" 14025 elif test "x$opusfile_prefix" = "xno" || test "x$opusfile_prefix" = "xyes" ; then 14026 OPUSFILE_CFLAGS="" 14027 elif test "x$opusfile_prefix" != "x" ; then 14028 OPUSFILE_CFLAGS="-I$opusfile_prefix/include/opus" 14029 elif test "x$prefix" != "xNONE"; then 14030 OPUSFILE_CFLAGS="-I$prefix/include/opus" 14031 fi 14032 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libopusfile" >&5 14034$as_echo_n "checking for libopusfile... " >&6; } 14035 if test "x$opusfile_prefix" = "xno" ; then 14036 no_opusfile="disabled" 14037 enable_opusfiletest="no" 14038 else 14039 no_opusfile="" 14040 fi 14041 14042 14043 if test "x$enable_opusfiletest" = "xyes" ; then 14044 ac_save_CFLAGS="$CFLAGS" 14045 ac_save_LIBS="$LIBS" 14046 CFLAGS="$CFLAGS $OPUSFILE_CFLAGS $OGG_CFLAGS $OPUS_CFLAGS" 14047 LIBS="$LIBS $OPUSFILE_LIBS $OGG_LIBS $OPUS_LIBS" 14048 rm -f conf.opusfiletest 14049 if test "$cross_compiling" = yes; then : 14050 echo $ac_n "cross compiling; assumed OK... $ac_c" 14051else 14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14053/* end confdefs.h. */ 14054 14055#include <stdio.h> 14056#include <stdlib.h> 14057#include <string.h> 14058#include <opusfile.h> 14059 14060int main () 14061{ 14062 system("touch conf.opusfiletest"); 14063 return 0; 14064} 14065 14066 14067_ACEOF 14068if ac_fn_c_try_run "$LINENO"; then : 14069 14070else 14071 no_opusfile=yes 14072fi 14073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14074 conftest.$ac_objext conftest.beam conftest.$ac_ext 14075fi 14076 14077 CFLAGS="$ac_save_CFLAGS" 14078 LIBS="$ac_save_LIBS" 14079 fi 14080 14081 if test "x$no_opusfile" = "xdisabled" ; then 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14083$as_echo "no" >&6; } 14084 as_fn_error $? " 14085 libopusfile is required to build this package! 14086 Please see https://opus-codec.org/ for how to obtain a copy. 14087 " "$LINENO" 5 14088 elif test "x$no_opusfile" = "x" ; then 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14090$as_echo "yes" >&6; } 14091 : 14092 else 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14094$as_echo "no" >&6; } 14095 if test -f conf.opusfiletest ; then 14096 : 14097 else 14098 echo "*** Could not run libopusfile test program, checking why..." 14099 CFLAGS="$CFLAGS $OPUSFILE_CFLAGS" 14100 LIBS="$LIBS $OPUSFILE_LIBS" 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103 14104#include <stdio.h> 14105#include <opusfile.h> 14106 14107int 14108main () 14109{ 14110 return 0; 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_c_try_link "$LINENO"; then : 14116 echo "*** The test program compiled, but did not run. This usually means" 14117 echo "*** that the run-time linker is not finding libopusfile or finding the wrong" 14118 echo "*** version of libopusfile. If it is not finding libopusfile, you'll need to set" 14119 echo "*** your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14120 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14121 echo "*** is required on your system" 14122 echo "***" 14123 echo "*** If you have an old version installed, it is best to remove it, although" 14124 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14125else 14126 echo "*** The test program failed to compile or link. See the file config.log for the" 14127 echo "*** exact error that occured. This usually means libopusfile was incorrectly" 14128 echo "*** installed or that you have moved libopusfile since it was installed." 14129fi 14130rm -f core conftest.err conftest.$ac_objext \ 14131 conftest$ac_exeext conftest.$ac_ext 14132 CFLAGS="$ac_save_CFLAGS" 14133 LIBS="$ac_save_LIBS" 14134 fi 14135 OPUSFILE_CFLAGS="" 14136 OPUSFILE_LIBS="" 14137 as_fn_error $? " 14138 libopusfile is required to build this package! 14139 Please see https://opus-codec.org/ for how to obtain a copy. 14140 " "$LINENO" 5 14141 fi 14142 14143 14144 rm -f conf.opusfiletest 14145 14146 OPUSURL_CFLAGS="$OPUSFILE_CFLAGS" 14147 OPUSURL_LIBS="$OPUSFILE_LIBS -lopusurl" 14148 14149fi 14150 14151if test "$HAVE_PKG_CONFIG" = "yes"; then : 14152 14153pkg_failed=no 14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPUSENC" >&5 14155$as_echo_n "checking for LIBOPUSENC... " >&6; } 14156 14157if test -n "$LIBOPUSENC_CFLAGS"; then 14158 pkg_cv_LIBOPUSENC_CFLAGS="$LIBOPUSENC_CFLAGS" 14159 elif test -n "$PKG_CONFIG"; then 14160 if test -n "$PKG_CONFIG" && \ 14161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopusenc >= 0.2\""; } >&5 14162 ($PKG_CONFIG --exists --print-errors "libopusenc >= 0.2") 2>&5 14163 ac_status=$? 14164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14165 test $ac_status = 0; }; then 14166 pkg_cv_LIBOPUSENC_CFLAGS=`$PKG_CONFIG --cflags "libopusenc >= 0.2" 2>/dev/null` 14167else 14168 pkg_failed=yes 14169fi 14170 else 14171 pkg_failed=untried 14172fi 14173if test -n "$LIBOPUSENC_LIBS"; then 14174 pkg_cv_LIBOPUSENC_LIBS="$LIBOPUSENC_LIBS" 14175 elif test -n "$PKG_CONFIG"; then 14176 if test -n "$PKG_CONFIG" && \ 14177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopusenc >= 0.2\""; } >&5 14178 ($PKG_CONFIG --exists --print-errors "libopusenc >= 0.2") 2>&5 14179 ac_status=$? 14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14181 test $ac_status = 0; }; then 14182 pkg_cv_LIBOPUSENC_LIBS=`$PKG_CONFIG --libs "libopusenc >= 0.2" 2>/dev/null` 14183else 14184 pkg_failed=yes 14185fi 14186 else 14187 pkg_failed=untried 14188fi 14189 14190 14191 14192if test $pkg_failed = yes; then 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14194$as_echo "no" >&6; } 14195 14196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14197 _pkg_short_errors_supported=yes 14198else 14199 _pkg_short_errors_supported=no 14200fi 14201 if test $_pkg_short_errors_supported = yes; then 14202 LIBOPUSENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopusenc >= 0.2" 2>&1` 14203 else 14204 LIBOPUSENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopusenc >= 0.2" 2>&1` 14205 fi 14206 # Put the nasty error message in config.log where it belongs 14207 echo "$LIBOPUSENC_PKG_ERRORS" >&5 14208 14209 as_fn_error $? "Package requirements (libopusenc >= 0.2) were not met: 14210 14211$LIBOPUSENC_PKG_ERRORS 14212 14213Consider adjusting the PKG_CONFIG_PATH environment variable if you 14214installed software in a non-standard prefix. 14215 14216Alternatively, you may set the environment variables LIBOPUSENC_CFLAGS 14217and LIBOPUSENC_LIBS to avoid the need to call pkg-config. 14218See the pkg-config man page for more details." "$LINENO" 5 14219 14220elif test $pkg_failed = untried; then 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14222$as_echo "no" >&6; } 14223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14225as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14226is in your PATH or set the PKG_CONFIG environment variable to the full 14227path to pkg-config. 14228 14229Alternatively, you may set the environment variables LIBOPUSENC_CFLAGS 14230and LIBOPUSENC_LIBS to avoid the need to call pkg-config. 14231See the pkg-config man page for more details. 14232 14233To get pkg-config, see <https://pkg-config.freedesktop.org/>. 14234See \`config.log' for more details" "$LINENO" 5; } 14235 14236else 14237 LIBOPUSENC_CFLAGS=$pkg_cv_LIBOPUSENC_CFLAGS 14238 LIBOPUSENC_LIBS=$pkg_cv_LIBOPUSENC_LIBS 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14240$as_echo "yes" >&6; } 14241 14242fi 14243else 14244 14245 14246# Check whether --with-libopusenc was given. 14247if test "${with_libopusenc+set}" = set; then : 14248 withval=$with_libopusenc; libopusenc_prefix="$withval" 14249else 14250 libopusenc_prefix="" 14251fi 14252 14253 14254# Check whether --with-libopusenc-libraries was given. 14255if test "${with_libopusenc_libraries+set}" = set; then : 14256 withval=$with_libopusenc_libraries; libopusenc_libraries="$withval" 14257else 14258 libopusenc_libraries="" 14259fi 14260 14261 14262# Check whether --with-libopusenc-includes was given. 14263if test "${with_libopusenc_includes+set}" = set; then : 14264 withval=$with_libopusenc_includes; libopusenc_includes="$withval" 14265else 14266 libopusenc_includes="" 14267fi 14268 14269# Check whether --enable-libopusenctest was given. 14270if test "${enable_libopusenctest+set}" = set; then : 14271 enableval=$enable_libopusenctest; 14272else 14273 enable_libopusenctest=yes 14274fi 14275 14276 14277 if test "x$libopusenc_libraries" != "x" ; then 14278 LIBOPUSENC_LIBS="-L$libopusenc_libraries" 14279 elif test "x$libopusenc_prefix" = "xno" || test "x$libopusenc_prefix" = "xyes" ; then 14280 LIBOPUSENC_LIBS="" 14281 elif test "x$libopusenc_prefix" != "x" ; then 14282 LIBOPUSENC_LIBS="-L$libopusenc_prefix/lib" 14283 elif test "x$prefix" != "xNONE" ; then 14284 LIBOPUSENC_LIBS="-L$prefix/lib" 14285 fi 14286 14287 if test "x$libopusenc_prefix" != "xno" ; then 14288 LIBOPUSENC_LIBS="$LIBOPUSENC_LIBS -lopusenc" 14289 fi 14290 14291 if test "x$libopusenc_includes" != "x" ; then 14292 LIBOPUSENC_CFLAGS="-I$libopusenc_includes" 14293 elif test "x$libopusenc_prefix" = "xno" || test "x$libopusenc_prefix" = "xyes" ; then 14294 LIBOPUSENC_CFLAGS="" 14295 elif test "x$libopusenc_prefix" != "x" ; then 14296 LIBOPUSENC_CFLAGS="-I$libopusenc_prefix/include/opus" 14297 elif test "x$prefix" != "xNONE"; then 14298 LIBOPUSENC_CFLAGS="-I$prefix/include/opus" 14299 fi 14300 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libopusenc" >&5 14302$as_echo_n "checking for libopusenc... " >&6; } 14303 if test "x$libopusenc_prefix" = "xno" ; then 14304 no_libopusenc="disabled" 14305 enable_libopusenctest="no" 14306 else 14307 no_libopusenc="" 14308 fi 14309 14310 14311 if test "x$enable_libopusenctest" = "xyes" ; then 14312 ac_save_CFLAGS="$CFLAGS" 14313 ac_save_LIBS="$LIBS" 14314 CFLAGS="$CFLAGS $LIBOPUSENC_CFLAGS $OPUS_CFLAGS" 14315 LIBS="$LIBS $LIBOPUSENC_LIBS $OPUS_LIBS" 14316 rm -f conf.libopusenctest 14317 if test "$cross_compiling" = yes; then : 14318 echo $ac_n "cross compiling; assumed OK... $ac_c" 14319else 14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14321/* end confdefs.h. */ 14322 14323#include <stdio.h> 14324#include <stdlib.h> 14325#include <string.h> 14326#include <opusenc.h> 14327 14328int main () 14329{ 14330 system("touch conf.libopusenctest"); 14331 return 0; 14332} 14333 14334 14335_ACEOF 14336if ac_fn_c_try_run "$LINENO"; then : 14337 14338else 14339 no_libopusenc=yes 14340fi 14341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14342 conftest.$ac_objext conftest.beam conftest.$ac_ext 14343fi 14344 14345 CFLAGS="$ac_save_CFLAGS" 14346 LIBS="$ac_save_LIBS" 14347 fi 14348 14349 if test "x$no_libopusenc" = "xdisabled" ; then 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14351$as_echo "no" >&6; } 14352 as_fn_error $? " 14353 libopusenc is required to build this package! 14354 Please see https://opus-codec.org/ for how to obtain a copy. 14355 " "$LINENO" 5 14356 elif test "x$no_libopusenc" = "x" ; then 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14358$as_echo "yes" >&6; } 14359 : 14360 else 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14362$as_echo "no" >&6; } 14363 if test -f conf.libopusenctest ; then 14364 : 14365 else 14366 echo "*** Could not run libopusenc test program, checking why..." 14367 CFLAGS="$CFLAGS $LIBOPUSENC_CFLAGS" 14368 LIBS="$LIBS $LIBOPUSENC_LIBS" 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371 14372#include <stdio.h> 14373#include <opusenc.h> 14374 14375int 14376main () 14377{ 14378 return 0; 14379 ; 14380 return 0; 14381} 14382_ACEOF 14383if ac_fn_c_try_link "$LINENO"; then : 14384 echo "*** The test program compiled, but did not run. This usually means" 14385 echo "*** that the run-time linker is not finding libopusenc or finding the wrong" 14386 echo "*** version of libopusenc. If it is not finding libopusenc, you'll need to set your" 14387 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14388 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14389 echo "*** is required on your system" 14390 echo "***" 14391 echo "*** If you have an old version installed, it is best to remove it, although" 14392 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14393else 14394 echo "*** The test program failed to compile or link. See the file config.log for the" 14395 echo "*** exact error that occured. This usually means libopusenc was incorrectly installed" 14396 echo "*** or that you have moved libopusenc since it was installed." 14397fi 14398rm -f core conftest.err conftest.$ac_objext \ 14399 conftest$ac_exeext conftest.$ac_ext 14400 CFLAGS="$ac_save_CFLAGS" 14401 LIBS="$ac_save_LIBS" 14402 fi 14403 LIBOPUSENC_CFLAGS="" 14404 LIBOPUSENC_LIBS="" 14405 as_fn_error $? " 14406 libopusenc is required to build this package! 14407 Please see https://opus-codec.org/ for how to obtain a copy. 14408 " "$LINENO" 5 14409 fi 14410 14411 14412 rm -f conf.libopusenctest 14413 14414 14415fi 14416 14417HAVE_OSS=no 14418for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h 14419do : 14420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14421ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14423 cat >>confdefs.h <<_ACEOF 14424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14425_ACEOF 14426 14427 HAVE_OSS=yes 14428 break 14429 14430fi 14431 14432done 14433 14434 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 14436$as_echo_n "checking for sio_open in -lsndio... " >&6; } 14437if ${ac_cv_lib_sndio_sio_open+:} false; then : 14438 $as_echo_n "(cached) " >&6 14439else 14440 ac_check_lib_save_LIBS=$LIBS 14441LIBS="-lsndio $LIBS" 14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444 14445/* Override any GCC internal prototype to avoid an error. 14446 Use char because int might match the return type of a GCC 14447 builtin and then its argument prototype would still apply. */ 14448#ifdef __cplusplus 14449extern "C" 14450#endif 14451char sio_open (); 14452int 14453main () 14454{ 14455return sio_open (); 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460if ac_fn_c_try_link "$LINENO"; then : 14461 ac_cv_lib_sndio_sio_open=yes 14462else 14463 ac_cv_lib_sndio_sio_open=no 14464fi 14465rm -f core conftest.err conftest.$ac_objext \ 14466 conftest$ac_exeext conftest.$ac_ext 14467LIBS=$ac_check_lib_save_LIBS 14468fi 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 14470$as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 14471if test "x$ac_cv_lib_sndio_sio_open" = xyes; then : 14472 cat >>confdefs.h <<_ACEOF 14473#define HAVE_LIBSNDIO 1 14474_ACEOF 14475 14476 LIBS="-lsndio $LIBS" 14477 14478fi 14479 14480 14481if test "$HAVE_OSS" != "yes" && test "$ac_cv_lib_sndio_sio_open" != "yes"; then 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Audio support not found -- no direct audio output in opusdec" >&5 14483$as_echo "$as_me: WARNING: Audio support not found -- no direct audio output in opusdec" >&2;} 14484fi 14485 14486 14487# Check whether --with-flac was given. 14488if test "${with_flac+set}" = set; then : 14489 withval=$with_flac; 14490else 14491 with_flac=yes 14492fi 14493 14494 14495if test "$with_flac" = "yes"; then : 14496 14497 if test "$HAVE_PKG_CONFIG" = "yes"; then : 14498 14499pkg_failed=no 14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC" >&5 14501$as_echo_n "checking for FLAC... " >&6; } 14502 14503if test -n "$FLAC_CFLAGS"; then 14504 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS" 14505 elif test -n "$PKG_CONFIG"; then 14506 if test -n "$PKG_CONFIG" && \ 14507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.1.3\""; } >&5 14508 ($PKG_CONFIG --exists --print-errors "flac >= 1.1.3") 2>&5 14509 ac_status=$? 14510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14511 test $ac_status = 0; }; then 14512 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.1.3" 2>/dev/null` 14513else 14514 pkg_failed=yes 14515fi 14516 else 14517 pkg_failed=untried 14518fi 14519if test -n "$FLAC_LIBS"; then 14520 pkg_cv_FLAC_LIBS="$FLAC_LIBS" 14521 elif test -n "$PKG_CONFIG"; then 14522 if test -n "$PKG_CONFIG" && \ 14523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.1.3\""; } >&5 14524 ($PKG_CONFIG --exists --print-errors "flac >= 1.1.3") 2>&5 14525 ac_status=$? 14526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14527 test $ac_status = 0; }; then 14528 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.1.3" 2>/dev/null` 14529else 14530 pkg_failed=yes 14531fi 14532 else 14533 pkg_failed=untried 14534fi 14535 14536 14537 14538if test $pkg_failed = yes; then 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14540$as_echo "no" >&6; } 14541 14542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14543 _pkg_short_errors_supported=yes 14544else 14545 _pkg_short_errors_supported=no 14546fi 14547 if test $_pkg_short_errors_supported = yes; then 14548 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "flac >= 1.1.3" 2>&1` 14549 else 14550 FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "flac >= 1.1.3" 2>&1` 14551 fi 14552 # Put the nasty error message in config.log where it belongs 14553 echo "$FLAC_PKG_ERRORS" >&5 14554 14555 as_fn_error $? "Package requirements (flac >= 1.1.3) were not met: 14556 14557$FLAC_PKG_ERRORS 14558 14559Consider adjusting the PKG_CONFIG_PATH environment variable if you 14560installed software in a non-standard prefix. 14561 14562Alternatively, you may set the environment variables FLAC_CFLAGS 14563and FLAC_LIBS to avoid the need to call pkg-config. 14564See the pkg-config man page for more details." "$LINENO" 5 14565 14566elif test $pkg_failed = untried; then 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14568$as_echo "no" >&6; } 14569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14571as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14572is in your PATH or set the PKG_CONFIG environment variable to the full 14573path to pkg-config. 14574 14575Alternatively, you may set the environment variables FLAC_CFLAGS 14576and FLAC_LIBS to avoid the need to call pkg-config. 14577See the pkg-config man page for more details. 14578 14579To get pkg-config, see <https://pkg-config.freedesktop.org/>. 14580See \`config.log' for more details" "$LINENO" 5; } 14581 14582else 14583 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS 14584 FLAC_LIBS=$pkg_cv_FLAC_LIBS 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14586$as_echo "yes" >&6; } 14587 14588fi 14589else 14590 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5 14592$as_echo_n "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... " >&6; } 14593if ${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 ac_check_lib_save_LIBS=$LIBS 14597LIBS="-lFLAC $LIBS" 14598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600 14601/* Override any GCC internal prototype to avoid an error. 14602 Use char because int might match the return type of a GCC 14603 builtin and then its argument prototype would still apply. */ 14604#ifdef __cplusplus 14605extern "C" 14606#endif 14607char FLAC__stream_decoder_init_ogg_stream (); 14608int 14609main () 14610{ 14611return FLAC__stream_decoder_init_ogg_stream (); 14612 ; 14613 return 0; 14614} 14615_ACEOF 14616if ac_fn_c_try_link "$LINENO"; then : 14617 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=yes 14618else 14619 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no 14620fi 14621rm -f core conftest.err conftest.$ac_objext \ 14622 conftest$ac_exeext conftest.$ac_ext 14623LIBS=$ac_check_lib_save_LIBS 14624fi 14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5 14626$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; } 14627if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" = xyes; then : 14628 14629 FLAC_LIBS="-lFLAC" 14630 14631else 14632 14633 as_fn_error $? " 14634 FLAC 1.1.3 or later is required to build this package! 14635 Please install it or configure with --disable-flac. 14636 " "$LINENO" 5 14637 14638 14639fi 14640 14641 ac_fn_c_check_header_mongrel "$LINENO" "FLAC/stream_decoder.h" "ac_cv_header_FLAC_stream_decoder_h" "$ac_includes_default" 14642if test "x$ac_cv_header_FLAC_stream_decoder_h" = xyes; then : 14643 14644else 14645 14646 as_fn_error $? " 14647 FLAC headers are required to build this package! 14648 Please install the development version of FLAC 14649 or configure with --disable-flac. 14650 " "$LINENO" 5 14651 14652 14653fi 14654 14655 14656 14657fi 14658 14659$as_echo "#define HAVE_LIBFLAC 1" >>confdefs.h 14660 14661 14662fi 14663 14664saved_LIBS="$LIBS" 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 14666$as_echo_n "checking for library containing setsockopt... " >&6; } 14667if ${ac_cv_search_setsockopt+:} false; then : 14668 $as_echo_n "(cached) " >&6 14669else 14670 ac_func_search_save_LIBS=$LIBS 14671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673 14674/* Override any GCC internal prototype to avoid an error. 14675 Use char because int might match the return type of a GCC 14676 builtin and then its argument prototype would still apply. */ 14677#ifdef __cplusplus 14678extern "C" 14679#endif 14680char setsockopt (); 14681int 14682main () 14683{ 14684return setsockopt (); 14685 ; 14686 return 0; 14687} 14688_ACEOF 14689for ac_lib in '' bsd socket inet; do 14690 if test -z "$ac_lib"; then 14691 ac_res="none required" 14692 else 14693 ac_res=-l$ac_lib 14694 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14695 fi 14696 if ac_fn_c_try_link "$LINENO"; then : 14697 ac_cv_search_setsockopt=$ac_res 14698fi 14699rm -f core conftest.err conftest.$ac_objext \ 14700 conftest$ac_exeext 14701 if ${ac_cv_search_setsockopt+:} false; then : 14702 break 14703fi 14704done 14705if ${ac_cv_search_setsockopt+:} false; then : 14706 14707else 14708 ac_cv_search_setsockopt=no 14709fi 14710rm conftest.$ac_ext 14711LIBS=$ac_func_search_save_LIBS 14712fi 14713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 14714$as_echo "$ac_cv_search_setsockopt" >&6; } 14715ac_res=$ac_cv_search_setsockopt 14716if test "$ac_res" != no; then : 14717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14718 14719fi 14720 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_open_live" >&5 14722$as_echo_n "checking for library containing pcap_open_live... " >&6; } 14723if ${ac_cv_search_pcap_open_live+:} false; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 ac_func_search_save_LIBS=$LIBS 14727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14728/* end confdefs.h. */ 14729 14730/* Override any GCC internal prototype to avoid an error. 14731 Use char because int might match the return type of a GCC 14732 builtin and then its argument prototype would still apply. */ 14733#ifdef __cplusplus 14734extern "C" 14735#endif 14736char pcap_open_live (); 14737int 14738main () 14739{ 14740return pcap_open_live (); 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745for ac_lib in '' pcap wpcap; do 14746 if test -z "$ac_lib"; then 14747 ac_res="none required" 14748 else 14749 ac_res=-l$ac_lib 14750 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14751 fi 14752 if ac_fn_c_try_link "$LINENO"; then : 14753 ac_cv_search_pcap_open_live=$ac_res 14754fi 14755rm -f core conftest.err conftest.$ac_objext \ 14756 conftest$ac_exeext 14757 if ${ac_cv_search_pcap_open_live+:} false; then : 14758 break 14759fi 14760done 14761if ${ac_cv_search_pcap_open_live+:} false; then : 14762 14763else 14764 ac_cv_search_pcap_open_live=no 14765fi 14766rm conftest.$ac_ext 14767LIBS=$ac_func_search_save_LIBS 14768fi 14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_open_live" >&5 14770$as_echo "$ac_cv_search_pcap_open_live" >&6; } 14771ac_res=$ac_cv_search_pcap_open_live 14772if test "$ac_res" != no; then : 14773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14774 14775 14776$as_echo "#define HAVE_PCAP 1" >>confdefs.h 14777 14778 14779fi 14780 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking socket support" >&5 14782$as_echo_n "checking socket support... " >&6; } 14783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785 14786 14787 #include <sys/types.h> 14788 #include <sys/socket.h> 14789 #include <netinet/in.h> 14790 #include <arpa/inet.h> 14791 #include <netdb.h> 14792 14793int 14794main () 14795{ 14796 14797 struct addrinfo *addrs; 14798 struct addrinfo hints = { 0 }; 14799 hints.ai_family = AF_UNSPEC; 14800 hints.ai_socktype = SOCK_DGRAM; 14801 hints.ai_flags = 0; 14802 hints.ai_protocol = IPPROTO_UDP; 14803 if (getaddrinfo("localhost", "1234", &hints, &addrs) == 0) 14804 socket(addrs->ai_addr->sa_family, SOCK_DGRAM, IPPROTO_UDP); 14805 freeaddrinfo(addrs); 14806 14807 ; 14808 return 0; 14809} 14810_ACEOF 14811if ac_fn_c_try_link "$LINENO"; then : 14812 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14814$as_echo "yes" >&6; } 14815 14816$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h 14817 14818 14819else 14820 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14822$as_echo "no" >&6; } 14823 14824fi 14825rm -f core conftest.err conftest.$ac_objext \ 14826 conftest$ac_exeext conftest.$ac_ext 14827for ac_func in inet_ntop 14828do : 14829 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14830if test "x$ac_cv_func_inet_ntop" = xyes; then : 14831 cat >>confdefs.h <<_ACEOF 14832#define HAVE_INET_NTOP 1 14833_ACEOF 14834 14835fi 14836done 14837 14838OPUSRTP_LIBS="$LIBS" 14839LIBS="$saved_LIBS" 14840 14841 14842on_windows=no 14843case "$host" in 14844*cygwin*|*mingw*) 14845 on_windows=yes 14846 ;; 14847esac 14848 14849# Check whether --enable-stack-protector was given. 14850if test "${enable_stack_protector+set}" = set; then : 14851 enableval=$enable_stack_protector; 14852else 14853 14854 if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then : 14855 enable_stack_protector=yes 14856else 14857 enable_stack_protector=no 14858fi 14859 14860fi 14861 14862 14863if test "$enable_stack_protector" = "yes"; then : 14864 14865 saved_CFLAGS="$CFLAGS" 14866 CFLAGS="$CFLAGS -fstack-protector-strong" 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5 14868$as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; } 14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14870/* end confdefs.h. */ 14871 14872int 14873main () 14874{ 14875char foo; 14876 ; 14877 return 0; 14878} 14879_ACEOF 14880if ac_fn_c_try_link "$LINENO"; then : 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14882$as_echo "yes" >&6; } 14883else 14884 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886$as_echo "no" >&6; } 14887 enable_stack_protector=no 14888 CFLAGS="$saved_CFLAGS" 14889 14890fi 14891rm -f core conftest.err conftest.$ac_objext \ 14892 conftest$ac_exeext conftest.$ac_ext 14893 14894fi 14895 14896 14897# Check whether --enable-pie was given. 14898if test "${enable_pie+set}" = set; then : 14899 enableval=$enable_pie; 14900else 14901 enable_pie=yes 14902fi 14903 14904 14905if test "$enable_pie" = "yes"; then : 14906 14907 saved_CFLAGS="$CFLAGS" 14908 saved_LDFLAGS="$LDFLAGS" 14909 saved_LIBS="$LIBS" 14910 CFLAGS="$CFLAGS $OPUS_CFLAGS -fPIE" 14911 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" 14912 LIBS="$LIBS $OPUS_LIBS" 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIE support" >&5 14914$as_echo_n "checking for PIE support... " >&6; } 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917#include <opus.h> 14918int 14919main () 14920{ 14921OpusDecoder *dec = opus_decoder_create(48000, 2, 0L) 14922 ; 14923 return 0; 14924} 14925_ACEOF 14926if ac_fn_c_try_link "$LINENO"; then : 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14928$as_echo "yes" >&6; } 14929else 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14931$as_echo "no" >&6; } 14932 enable_pie=no 14933 CFLAGS="$saved_CFLAGS" 14934 LDFLAGS="$saved_LDFLAGS" 14935 14936fi 14937rm -f core conftest.err conftest.$ac_objext \ 14938 conftest$ac_exeext conftest.$ac_ext 14939 LIBS="$saved_LIBS" 14940 14941fi 14942 14943CFLAGS="$CFLAGS -W" 14944 14945saved_CFLAGS="$CFLAGS" 14946CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-sign-compare" 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-sign-compare" >&5 14948$as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-sign-compare... " >&6; } 14949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14950/* end confdefs.h. */ 14951char foo; 14952_ACEOF 14953if ac_fn_c_try_compile "$LINENO"; then : 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14955$as_echo "yes" >&6; } 14956else 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14958$as_echo "no" >&6; } 14959 CFLAGS="$saved_CFLAGS" 14960 14961fi 14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14963 14964ac_config_files="$ac_config_files Makefile" 14965 14966ac_config_headers="$ac_config_headers config.h" 14967 14968cat >confcache <<\_ACEOF 14969# This file is a shell script that caches the results of configure 14970# tests run on this system so they can be shared between configure 14971# scripts and configure runs, see configure's option --config-cache. 14972# It is not useful on other systems. If it contains results you don't 14973# want to keep, you may remove or edit it. 14974# 14975# config.status only pays attention to the cache file if you give it 14976# the --recheck option to rerun configure. 14977# 14978# `ac_cv_env_foo' variables (set or unset) will be overridden when 14979# loading this file, other *unset* `ac_cv_foo' will be assigned the 14980# following values. 14981 14982_ACEOF 14983 14984# The following way of writing the cache mishandles newlines in values, 14985# but we know of no workaround that is simple, portable, and efficient. 14986# So, we kill variables containing newlines. 14987# Ultrix sh set writes to stderr and can't be redirected directly, 14988# and sets the high bit in the cache file unless we assign to the vars. 14989( 14990 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14991 eval ac_val=\$$ac_var 14992 case $ac_val in #( 14993 *${as_nl}*) 14994 case $ac_var in #( 14995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14997 esac 14998 case $ac_var in #( 14999 _ | IFS | as_nl) ;; #( 15000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15001 *) { eval $ac_var=; unset $ac_var;} ;; 15002 esac ;; 15003 esac 15004 done 15005 15006 (set) 2>&1 | 15007 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15008 *${as_nl}ac_space=\ *) 15009 # `set' does not quote correctly, so add quotes: double-quote 15010 # substitution turns \\\\ into \\, and sed turns \\ into \. 15011 sed -n \ 15012 "s/'/'\\\\''/g; 15013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15014 ;; #( 15015 *) 15016 # `set' quotes correctly as required by POSIX, so do not add quotes. 15017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15018 ;; 15019 esac | 15020 sort 15021) | 15022 sed ' 15023 /^ac_cv_env_/b end 15024 t clear 15025 :clear 15026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15027 t end 15028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15029 :end' >>confcache 15030if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15031 if test -w "$cache_file"; then 15032 if test "x$cache_file" != "x/dev/null"; then 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15034$as_echo "$as_me: updating cache $cache_file" >&6;} 15035 if test ! -f "$cache_file" || test -h "$cache_file"; then 15036 cat confcache >"$cache_file" 15037 else 15038 case $cache_file in #( 15039 */* | ?:*) 15040 mv -f confcache "$cache_file"$$ && 15041 mv -f "$cache_file"$$ "$cache_file" ;; #( 15042 *) 15043 mv -f confcache "$cache_file" ;; 15044 esac 15045 fi 15046 fi 15047 else 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15049$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15050 fi 15051fi 15052rm -f confcache 15053 15054test "x$prefix" = xNONE && prefix=$ac_default_prefix 15055# Let make expand exec_prefix. 15056test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15057 15058DEFS=-DHAVE_CONFIG_H 15059 15060ac_libobjs= 15061ac_ltlibobjs= 15062U= 15063for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15064 # 1. Remove the extension, and $U if already installed. 15065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15066 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15068 # will be set to the directory where LIBOBJS objects are built. 15069 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15070 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15071done 15072LIBOBJS=$ac_libobjs 15073 15074LTLIBOBJS=$ac_ltlibobjs 15075 15076 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15078$as_echo_n "checking that generated files are newer than configure... " >&6; } 15079 if test -n "$am_sleep_pid"; then 15080 # Hide warnings about reused PIDs. 15081 wait $am_sleep_pid 2>/dev/null 15082 fi 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15084$as_echo "done" >&6; } 15085 if test -n "$EXEEXT"; then 15086 am__EXEEXT_TRUE= 15087 am__EXEEXT_FALSE='#' 15088else 15089 am__EXEEXT_TRUE='#' 15090 am__EXEEXT_FALSE= 15091fi 15092 15093if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15094 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15095Usually this means the macro was only invoked conditionally." "$LINENO" 5 15096fi 15097if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15098 as_fn_error $? "conditional \"AMDEP\" was never defined. 15099Usually this means the macro was only invoked conditionally." "$LINENO" 5 15100fi 15101if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15102 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15103Usually this means the macro was only invoked conditionally." "$LINENO" 5 15104fi 15105 15106 15107: "${CONFIG_STATUS=./config.status}" 15108ac_write_fail=0 15109ac_clean_files_save=$ac_clean_files 15110ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15111{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15112$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15113as_write_fail=0 15114cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15115#! $SHELL 15116# Generated by $as_me. 15117# Run this file to recreate the current configuration. 15118# Compiler output produced by configure, useful for debugging 15119# configure, is in config.log if it exists. 15120 15121debug=false 15122ac_cs_recheck=false 15123ac_cs_silent=false 15124 15125SHELL=\${CONFIG_SHELL-$SHELL} 15126export SHELL 15127_ASEOF 15128cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15129## -------------------- ## 15130## M4sh Initialization. ## 15131## -------------------- ## 15132 15133# Be more Bourne compatible 15134DUALCASE=1; export DUALCASE # for MKS sh 15135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15136 emulate sh 15137 NULLCMD=: 15138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15139 # is contrary to our usage. Disable this feature. 15140 alias -g '${1+"$@"}'='"$@"' 15141 setopt NO_GLOB_SUBST 15142else 15143 case `(set -o) 2>/dev/null` in #( 15144 *posix*) : 15145 set -o posix ;; #( 15146 *) : 15147 ;; 15148esac 15149fi 15150 15151 15152as_nl=' 15153' 15154export as_nl 15155# Printing a long string crashes Solaris 7 /usr/bin/printf. 15156as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15159# Prefer a ksh shell builtin over an external printf program on Solaris, 15160# but without wasting forks for bash or zsh. 15161if test -z "$BASH_VERSION$ZSH_VERSION" \ 15162 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15163 as_echo='print -r --' 15164 as_echo_n='print -rn --' 15165elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15166 as_echo='printf %s\n' 15167 as_echo_n='printf %s' 15168else 15169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15170 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15171 as_echo_n='/usr/ucb/echo -n' 15172 else 15173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15174 as_echo_n_body='eval 15175 arg=$1; 15176 case $arg in #( 15177 *"$as_nl"*) 15178 expr "X$arg" : "X\\(.*\\)$as_nl"; 15179 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15180 esac; 15181 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15182 ' 15183 export as_echo_n_body 15184 as_echo_n='sh -c $as_echo_n_body as_echo' 15185 fi 15186 export as_echo_body 15187 as_echo='sh -c $as_echo_body as_echo' 15188fi 15189 15190# The user is always right. 15191if test "${PATH_SEPARATOR+set}" != set; then 15192 PATH_SEPARATOR=: 15193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15195 PATH_SEPARATOR=';' 15196 } 15197fi 15198 15199 15200# IFS 15201# We need space, tab and new line, in precisely that order. Quoting is 15202# there to prevent editors from complaining about space-tab. 15203# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15204# splitting by setting IFS to empty value.) 15205IFS=" "" $as_nl" 15206 15207# Find who we are. Look in the path if we contain no directory separator. 15208as_myself= 15209case $0 in #(( 15210 *[\\/]* ) as_myself=$0 ;; 15211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15212for as_dir in $PATH 15213do 15214 IFS=$as_save_IFS 15215 test -z "$as_dir" && as_dir=. 15216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15217 done 15218IFS=$as_save_IFS 15219 15220 ;; 15221esac 15222# We did not find ourselves, most probably we were run as `sh COMMAND' 15223# in which case we are not to be found in the path. 15224if test "x$as_myself" = x; then 15225 as_myself=$0 15226fi 15227if test ! -f "$as_myself"; then 15228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15229 exit 1 15230fi 15231 15232# Unset variables that we do not need and which cause bugs (e.g. in 15233# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15234# suppresses any "Segmentation fault" message there. '((' could 15235# trigger a bug in pdksh 5.2.14. 15236for as_var in BASH_ENV ENV MAIL MAILPATH 15237do eval test x\${$as_var+set} = xset \ 15238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15239done 15240PS1='$ ' 15241PS2='> ' 15242PS4='+ ' 15243 15244# NLS nuisances. 15245LC_ALL=C 15246export LC_ALL 15247LANGUAGE=C 15248export LANGUAGE 15249 15250# CDPATH. 15251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15252 15253 15254# as_fn_error STATUS ERROR [LINENO LOG_FD] 15255# ---------------------------------------- 15256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15258# script with STATUS, using 1 if that was 0. 15259as_fn_error () 15260{ 15261 as_status=$1; test $as_status -eq 0 && as_status=1 15262 if test "$4"; then 15263 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15265 fi 15266 $as_echo "$as_me: error: $2" >&2 15267 as_fn_exit $as_status 15268} # as_fn_error 15269 15270 15271# as_fn_set_status STATUS 15272# ----------------------- 15273# Set $? to STATUS, without forking. 15274as_fn_set_status () 15275{ 15276 return $1 15277} # as_fn_set_status 15278 15279# as_fn_exit STATUS 15280# ----------------- 15281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15282as_fn_exit () 15283{ 15284 set +e 15285 as_fn_set_status $1 15286 exit $1 15287} # as_fn_exit 15288 15289# as_fn_unset VAR 15290# --------------- 15291# Portably unset VAR. 15292as_fn_unset () 15293{ 15294 { eval $1=; unset $1;} 15295} 15296as_unset=as_fn_unset 15297# as_fn_append VAR VALUE 15298# ---------------------- 15299# Append the text in VALUE to the end of the definition contained in VAR. Take 15300# advantage of any shell optimizations that allow amortized linear growth over 15301# repeated appends, instead of the typical quadratic growth present in naive 15302# implementations. 15303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15304 eval 'as_fn_append () 15305 { 15306 eval $1+=\$2 15307 }' 15308else 15309 as_fn_append () 15310 { 15311 eval $1=\$$1\$2 15312 } 15313fi # as_fn_append 15314 15315# as_fn_arith ARG... 15316# ------------------ 15317# Perform arithmetic evaluation on the ARGs, and store the result in the 15318# global $as_val. Take advantage of shells that can avoid forks. The arguments 15319# must be portable across $(()) and expr. 15320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15321 eval 'as_fn_arith () 15322 { 15323 as_val=$(( $* )) 15324 }' 15325else 15326 as_fn_arith () 15327 { 15328 as_val=`expr "$@" || test $? -eq 1` 15329 } 15330fi # as_fn_arith 15331 15332 15333if expr a : '\(a\)' >/dev/null 2>&1 && 15334 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15335 as_expr=expr 15336else 15337 as_expr=false 15338fi 15339 15340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15341 as_basename=basename 15342else 15343 as_basename=false 15344fi 15345 15346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15347 as_dirname=dirname 15348else 15349 as_dirname=false 15350fi 15351 15352as_me=`$as_basename -- "$0" || 15353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15354 X"$0" : 'X\(//\)$' \| \ 15355 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15356$as_echo X/"$0" | 15357 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15358 s//\1/ 15359 q 15360 } 15361 /^X\/\(\/\/\)$/{ 15362 s//\1/ 15363 q 15364 } 15365 /^X\/\(\/\).*/{ 15366 s//\1/ 15367 q 15368 } 15369 s/.*/./; q'` 15370 15371# Avoid depending upon Character Ranges. 15372as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15374as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15375as_cr_digits='0123456789' 15376as_cr_alnum=$as_cr_Letters$as_cr_digits 15377 15378ECHO_C= ECHO_N= ECHO_T= 15379case `echo -n x` in #((((( 15380-n*) 15381 case `echo 'xy\c'` in 15382 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15383 xy) ECHO_C='\c';; 15384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15385 ECHO_T=' ';; 15386 esac;; 15387*) 15388 ECHO_N='-n';; 15389esac 15390 15391rm -f conf$$ conf$$.exe conf$$.file 15392if test -d conf$$.dir; then 15393 rm -f conf$$.dir/conf$$.file 15394else 15395 rm -f conf$$.dir 15396 mkdir conf$$.dir 2>/dev/null 15397fi 15398if (echo >conf$$.file) 2>/dev/null; then 15399 if ln -s conf$$.file conf$$ 2>/dev/null; then 15400 as_ln_s='ln -s' 15401 # ... but there are two gotchas: 15402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15404 # In both cases, we have to default to `cp -pR'. 15405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15406 as_ln_s='cp -pR' 15407 elif ln conf$$.file conf$$ 2>/dev/null; then 15408 as_ln_s=ln 15409 else 15410 as_ln_s='cp -pR' 15411 fi 15412else 15413 as_ln_s='cp -pR' 15414fi 15415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15416rmdir conf$$.dir 2>/dev/null 15417 15418 15419# as_fn_mkdir_p 15420# ------------- 15421# Create "$as_dir" as a directory, including parents if necessary. 15422as_fn_mkdir_p () 15423{ 15424 15425 case $as_dir in #( 15426 -*) as_dir=./$as_dir;; 15427 esac 15428 test -d "$as_dir" || eval $as_mkdir_p || { 15429 as_dirs= 15430 while :; do 15431 case $as_dir in #( 15432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15433 *) as_qdir=$as_dir;; 15434 esac 15435 as_dirs="'$as_qdir' $as_dirs" 15436 as_dir=`$as_dirname -- "$as_dir" || 15437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15438 X"$as_dir" : 'X\(//\)[^/]' \| \ 15439 X"$as_dir" : 'X\(//\)$' \| \ 15440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15441$as_echo X"$as_dir" | 15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15443 s//\1/ 15444 q 15445 } 15446 /^X\(\/\/\)[^/].*/{ 15447 s//\1/ 15448 q 15449 } 15450 /^X\(\/\/\)$/{ 15451 s//\1/ 15452 q 15453 } 15454 /^X\(\/\).*/{ 15455 s//\1/ 15456 q 15457 } 15458 s/.*/./; q'` 15459 test -d "$as_dir" && break 15460 done 15461 test -z "$as_dirs" || eval "mkdir $as_dirs" 15462 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15463 15464 15465} # as_fn_mkdir_p 15466if mkdir -p . 2>/dev/null; then 15467 as_mkdir_p='mkdir -p "$as_dir"' 15468else 15469 test -d ./-p && rmdir ./-p 15470 as_mkdir_p=false 15471fi 15472 15473 15474# as_fn_executable_p FILE 15475# ----------------------- 15476# Test if FILE is an executable regular file. 15477as_fn_executable_p () 15478{ 15479 test -f "$1" && test -x "$1" 15480} # as_fn_executable_p 15481as_test_x='test -x' 15482as_executable_p=as_fn_executable_p 15483 15484# Sed expression to map a string onto a valid CPP name. 15485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15486 15487# Sed expression to map a string onto a valid variable name. 15488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15489 15490 15491exec 6>&1 15492## ----------------------------------- ## 15493## Main body of $CONFIG_STATUS script. ## 15494## ----------------------------------- ## 15495_ASEOF 15496test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15497 15498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15499# Save the log message, to keep $0 and so on meaningful, and to 15500# report actual input values of CONFIG_FILES etc. instead of their 15501# values after options handling. 15502ac_log=" 15503This file was extended by opus-tools $as_me 0.2, which was 15504generated by GNU Autoconf 2.69. Invocation command line was 15505 15506 CONFIG_FILES = $CONFIG_FILES 15507 CONFIG_HEADERS = $CONFIG_HEADERS 15508 CONFIG_LINKS = $CONFIG_LINKS 15509 CONFIG_COMMANDS = $CONFIG_COMMANDS 15510 $ $0 $@ 15511 15512on `(hostname || uname -n) 2>/dev/null | sed 1q` 15513" 15514 15515_ACEOF 15516 15517case $ac_config_files in *" 15518"*) set x $ac_config_files; shift; ac_config_files=$*;; 15519esac 15520 15521case $ac_config_headers in *" 15522"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15523esac 15524 15525 15526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15527# Files that config.status was made for. 15528config_files="$ac_config_files" 15529config_headers="$ac_config_headers" 15530config_commands="$ac_config_commands" 15531 15532_ACEOF 15533 15534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15535ac_cs_usage="\ 15536\`$as_me' instantiates files and other configuration actions 15537from templates according to the current configuration. Unless the files 15538and actions are specified as TAGs, all are instantiated by default. 15539 15540Usage: $0 [OPTION]... [TAG]... 15541 15542 -h, --help print this help, then exit 15543 -V, --version print version number and configuration settings, then exit 15544 --config print configuration, then exit 15545 -q, --quiet, --silent 15546 do not print progress messages 15547 -d, --debug don't remove temporary files 15548 --recheck update $as_me by reconfiguring in the same conditions 15549 --file=FILE[:TEMPLATE] 15550 instantiate the configuration file FILE 15551 --header=FILE[:TEMPLATE] 15552 instantiate the configuration header FILE 15553 15554Configuration files: 15555$config_files 15556 15557Configuration headers: 15558$config_headers 15559 15560Configuration commands: 15561$config_commands 15562 15563Report bugs to <opus@xiph.org>." 15564 15565_ACEOF 15566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15568ac_cs_version="\\ 15569opus-tools config.status 0.2 15570configured by $0, generated by GNU Autoconf 2.69, 15571 with options \\"\$ac_cs_config\\" 15572 15573Copyright (C) 2012 Free Software Foundation, Inc. 15574This config.status script is free software; the Free Software Foundation 15575gives unlimited permission to copy, distribute and modify it." 15576 15577ac_pwd='$ac_pwd' 15578srcdir='$srcdir' 15579INSTALL='$INSTALL' 15580MKDIR_P='$MKDIR_P' 15581AWK='$AWK' 15582test -n "\$AWK" || AWK=awk 15583_ACEOF 15584 15585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15586# The default lists apply if the user does not specify any file. 15587ac_need_defaults=: 15588while test $# != 0 15589do 15590 case $1 in 15591 --*=?*) 15592 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15594 ac_shift=: 15595 ;; 15596 --*=) 15597 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15598 ac_optarg= 15599 ac_shift=: 15600 ;; 15601 *) 15602 ac_option=$1 15603 ac_optarg=$2 15604 ac_shift=shift 15605 ;; 15606 esac 15607 15608 case $ac_option in 15609 # Handling of the options. 15610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15611 ac_cs_recheck=: ;; 15612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15613 $as_echo "$ac_cs_version"; exit ;; 15614 --config | --confi | --conf | --con | --co | --c ) 15615 $as_echo "$ac_cs_config"; exit ;; 15616 --debug | --debu | --deb | --de | --d | -d ) 15617 debug=: ;; 15618 --file | --fil | --fi | --f ) 15619 $ac_shift 15620 case $ac_optarg in 15621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15622 '') as_fn_error $? "missing file argument" ;; 15623 esac 15624 as_fn_append CONFIG_FILES " '$ac_optarg'" 15625 ac_need_defaults=false;; 15626 --header | --heade | --head | --hea ) 15627 $ac_shift 15628 case $ac_optarg in 15629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15630 esac 15631 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15632 ac_need_defaults=false;; 15633 --he | --h) 15634 # Conflict between --help and --header 15635 as_fn_error $? "ambiguous option: \`$1' 15636Try \`$0 --help' for more information.";; 15637 --help | --hel | -h ) 15638 $as_echo "$ac_cs_usage"; exit ;; 15639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15640 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15641 ac_cs_silent=: ;; 15642 15643 # This is an error. 15644 -*) as_fn_error $? "unrecognized option: \`$1' 15645Try \`$0 --help' for more information." ;; 15646 15647 *) as_fn_append ac_config_targets " $1" 15648 ac_need_defaults=false ;; 15649 15650 esac 15651 shift 15652done 15653 15654ac_configure_extra_args= 15655 15656if $ac_cs_silent; then 15657 exec 6>/dev/null 15658 ac_configure_extra_args="$ac_configure_extra_args --silent" 15659fi 15660 15661_ACEOF 15662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15663if \$ac_cs_recheck; then 15664 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15665 shift 15666 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15667 CONFIG_SHELL='$SHELL' 15668 export CONFIG_SHELL 15669 exec "\$@" 15670fi 15671 15672_ACEOF 15673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15674exec 5>>config.log 15675{ 15676 echo 15677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15678## Running $as_me. ## 15679_ASBOX 15680 $as_echo "$ac_log" 15681} >&5 15682 15683_ACEOF 15684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15685# 15686# INIT-COMMANDS 15687# 15688AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15689 15690 15691# The HP-UX ksh and POSIX shell print the target directory to stdout 15692# if CDPATH is set. 15693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15694 15695sed_quote_subst='$sed_quote_subst' 15696double_quote_subst='$double_quote_subst' 15697delay_variable_subst='$delay_variable_subst' 15698macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15699macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15700enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15701enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15702pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15703enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15704shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15705SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15706ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15707PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15708host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15709host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15710host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15711build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15712build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15713build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15714SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15715Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15716GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15717EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15718FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15719LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15720NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15721LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15722max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15723ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15724exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15725lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15726lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15727lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15728lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15729lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15730reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15731reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15732OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15733deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15734file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15735file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15736want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15737DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15738sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15741archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15742STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15743RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15744old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15745old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15746old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15747lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15748CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15749CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15750compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15751GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15752lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15754lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15755lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15756lt_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"`' 15757lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15758nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15759lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15760lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15761objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15762MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15763lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15764lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15765lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15766lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15767lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15768need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15769MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15770DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15771NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15772LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15773OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15774OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15775libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15776shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15777extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15778archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15779enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15780export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15781whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15782compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15783old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15784old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15785archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15786archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15787module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15788module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15789with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15790allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15791no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15792hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15793hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15794hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15795hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15796hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15797hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15798hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15799inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15800link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15801always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15802export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15803exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15804include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15805prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15806postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15807file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15808variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15809need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15810need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15811version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15812runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15813shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15814shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15815libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15816library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15817soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15818install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15819postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15820postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15821finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15822finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15823hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15824sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15825configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15826configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15827hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15828enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15829enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15830enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15831old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15832striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15833 15834LTCC='$LTCC' 15835LTCFLAGS='$LTCFLAGS' 15836compiler='$compiler_DEFAULT' 15837 15838# A function that is used when there is no print builtin or printf. 15839func_fallback_echo () 15840{ 15841 eval 'cat <<_LTECHO_EOF 15842\$1 15843_LTECHO_EOF' 15844} 15845 15846# Quote evaled strings. 15847for var in SHELL \ 15848ECHO \ 15849PATH_SEPARATOR \ 15850SED \ 15851GREP \ 15852EGREP \ 15853FGREP \ 15854LD \ 15855NM \ 15856LN_S \ 15857lt_SP2NL \ 15858lt_NL2SP \ 15859reload_flag \ 15860OBJDUMP \ 15861deplibs_check_method \ 15862file_magic_cmd \ 15863file_magic_glob \ 15864want_nocaseglob \ 15865DLLTOOL \ 15866sharedlib_from_linklib_cmd \ 15867AR \ 15868AR_FLAGS \ 15869archiver_list_spec \ 15870STRIP \ 15871RANLIB \ 15872CC \ 15873CFLAGS \ 15874compiler \ 15875lt_cv_sys_global_symbol_pipe \ 15876lt_cv_sys_global_symbol_to_cdecl \ 15877lt_cv_sys_global_symbol_to_import \ 15878lt_cv_sys_global_symbol_to_c_name_address \ 15879lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15880lt_cv_nm_interface \ 15881nm_file_list_spec \ 15882lt_cv_truncate_bin \ 15883lt_prog_compiler_no_builtin_flag \ 15884lt_prog_compiler_pic \ 15885lt_prog_compiler_wl \ 15886lt_prog_compiler_static \ 15887lt_cv_prog_compiler_c_o \ 15888need_locks \ 15889MANIFEST_TOOL \ 15890DSYMUTIL \ 15891NMEDIT \ 15892LIPO \ 15893OTOOL \ 15894OTOOL64 \ 15895shrext_cmds \ 15896export_dynamic_flag_spec \ 15897whole_archive_flag_spec \ 15898compiler_needs_object \ 15899with_gnu_ld \ 15900allow_undefined_flag \ 15901no_undefined_flag \ 15902hardcode_libdir_flag_spec \ 15903hardcode_libdir_separator \ 15904exclude_expsyms \ 15905include_expsyms \ 15906file_list_spec \ 15907variables_saved_for_relink \ 15908libname_spec \ 15909library_names_spec \ 15910soname_spec \ 15911install_override_mode \ 15912finish_eval \ 15913old_striplib \ 15914striplib; do 15915 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15916 *[\\\\\\\`\\"\\\$]*) 15917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15918 ;; 15919 *) 15920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15921 ;; 15922 esac 15923done 15924 15925# Double-quote double-evaled strings. 15926for var in reload_cmds \ 15927old_postinstall_cmds \ 15928old_postuninstall_cmds \ 15929old_archive_cmds \ 15930extract_expsyms_cmds \ 15931old_archive_from_new_cmds \ 15932old_archive_from_expsyms_cmds \ 15933archive_cmds \ 15934archive_expsym_cmds \ 15935module_cmds \ 15936module_expsym_cmds \ 15937export_symbols_cmds \ 15938prelink_cmds \ 15939postlink_cmds \ 15940postinstall_cmds \ 15941postuninstall_cmds \ 15942finish_cmds \ 15943sys_lib_search_path_spec \ 15944configure_time_dlsearch_path \ 15945configure_time_lt_sys_library_path; do 15946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15947 *[\\\\\\\`\\"\\\$]*) 15948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15949 ;; 15950 *) 15951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15952 ;; 15953 esac 15954done 15955 15956ac_aux_dir='$ac_aux_dir' 15957 15958# See if we are running on zsh, and set the options that allow our 15959# commands through without removal of \ escapes INIT. 15960if test -n "\${ZSH_VERSION+set}"; then 15961 setopt NO_GLOB_SUBST 15962fi 15963 15964 15965 PACKAGE='$PACKAGE' 15966 VERSION='$VERSION' 15967 RM='$RM' 15968 ofile='$ofile' 15969 15970 15971 15972 15973_ACEOF 15974 15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15976 15977# Handling of arguments. 15978for ac_config_target in $ac_config_targets 15979do 15980 case $ac_config_target in 15981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15982 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15983 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15985 15986 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15987 esac 15988done 15989 15990 15991# If the user did not use the arguments to specify the items to instantiate, 15992# then the envvar interface is used. Set only those that are not. 15993# We use the long form for the default assignment because of an extremely 15994# bizarre bug on SunOS 4.1.3. 15995if $ac_need_defaults; then 15996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15999fi 16000 16001# Have a temporary directory for convenience. Make it in the build tree 16002# simply because there is no reason against having it here, and in addition, 16003# creating and moving files from /tmp can sometimes cause problems. 16004# Hook for its removal unless debugging. 16005# Note that there is a small window in which the directory will not be cleaned: 16006# after its creation but before its name has been assigned to `$tmp'. 16007$debug || 16008{ 16009 tmp= ac_tmp= 16010 trap 'exit_status=$? 16011 : "${ac_tmp:=$tmp}" 16012 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16013' 0 16014 trap 'as_fn_exit 1' 1 2 13 15 16015} 16016# Create a (secure) tmp directory for tmp files. 16017 16018{ 16019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16020 test -d "$tmp" 16021} || 16022{ 16023 tmp=./conf$$-$RANDOM 16024 (umask 077 && mkdir "$tmp") 16025} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16026ac_tmp=$tmp 16027 16028# Set up the scripts for CONFIG_FILES section. 16029# No need to generate them if there are no CONFIG_FILES. 16030# This happens for instance with `./config.status config.h'. 16031if test -n "$CONFIG_FILES"; then 16032 16033 16034ac_cr=`echo X | tr X '\015'` 16035# On cygwin, bash can eat \r inside `` if the user requested igncr. 16036# But we know of no other shell where ac_cr would be empty at this 16037# point, so we can use a bashism as a fallback. 16038if test "x$ac_cr" = x; then 16039 eval ac_cr=\$\'\\r\' 16040fi 16041ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16042if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16043 ac_cs_awk_cr='\\r' 16044else 16045 ac_cs_awk_cr=$ac_cr 16046fi 16047 16048echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16049_ACEOF 16050 16051 16052{ 16053 echo "cat >conf$$subs.awk <<_ACEOF" && 16054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16055 echo "_ACEOF" 16056} >conf$$subs.sh || 16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16058ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16059ac_delim='%!_!# ' 16060for ac_last_try in false false false false false :; do 16061 . ./conf$$subs.sh || 16062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16063 16064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16065 if test $ac_delim_n = $ac_delim_num; then 16066 break 16067 elif $ac_last_try; then 16068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16069 else 16070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16071 fi 16072done 16073rm -f conf$$subs.sh 16074 16075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16076cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16077_ACEOF 16078sed -n ' 16079h 16080s/^/S["/; s/!.*/"]=/ 16081p 16082g 16083s/^[^!]*!// 16084:repl 16085t repl 16086s/'"$ac_delim"'$// 16087t delim 16088:nl 16089h 16090s/\(.\{148\}\)..*/\1/ 16091t more1 16092s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16093p 16094n 16095b repl 16096:more1 16097s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16098p 16099g 16100s/.\{148\}// 16101t nl 16102:delim 16103h 16104s/\(.\{148\}\)..*/\1/ 16105t more2 16106s/["\\]/\\&/g; s/^/"/; s/$/"/ 16107p 16108b 16109:more2 16110s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16111p 16112g 16113s/.\{148\}// 16114t delim 16115' <conf$$subs.awk | sed ' 16116/^[^""]/{ 16117 N 16118 s/\n// 16119} 16120' >>$CONFIG_STATUS || ac_write_fail=1 16121rm -f conf$$subs.awk 16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16123_ACAWK 16124cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16125 for (key in S) S_is_set[key] = 1 16126 FS = "" 16127 16128} 16129{ 16130 line = $ 0 16131 nfields = split(line, field, "@") 16132 substed = 0 16133 len = length(field[1]) 16134 for (i = 2; i < nfields; i++) { 16135 key = field[i] 16136 keylen = length(key) 16137 if (S_is_set[key]) { 16138 value = S[key] 16139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16140 len += length(value) + length(field[++i]) 16141 substed = 1 16142 } else 16143 len += 1 + keylen 16144 } 16145 16146 print line 16147} 16148 16149_ACAWK 16150_ACEOF 16151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16152if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16153 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16154else 16155 cat 16156fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16157 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16158_ACEOF 16159 16160# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16161# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16162# trailing colons and then remove the whole line if VPATH becomes empty 16163# (actually we leave an empty line to preserve line numbers). 16164if test "x$srcdir" = x.; then 16165 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16166h 16167s/// 16168s/^/:/ 16169s/[ ]*$/:/ 16170s/:\$(srcdir):/:/g 16171s/:\${srcdir}:/:/g 16172s/:@srcdir@:/:/g 16173s/^:*// 16174s/:*$// 16175x 16176s/\(=[ ]*\).*/\1/ 16177G 16178s/\n// 16179s/^[^=]*=[ ]*$// 16180}' 16181fi 16182 16183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16184fi # test -n "$CONFIG_FILES" 16185 16186# Set up the scripts for CONFIG_HEADERS section. 16187# No need to generate them if there are no CONFIG_HEADERS. 16188# This happens for instance with `./config.status Makefile'. 16189if test -n "$CONFIG_HEADERS"; then 16190cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16191BEGIN { 16192_ACEOF 16193 16194# Transform confdefs.h into an awk script `defines.awk', embedded as 16195# here-document in config.status, that substitutes the proper values into 16196# config.h.in to produce config.h. 16197 16198# Create a delimiter string that does not exist in confdefs.h, to ease 16199# handling of long lines. 16200ac_delim='%!_!# ' 16201for ac_last_try in false false :; do 16202 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16203 if test -z "$ac_tt"; then 16204 break 16205 elif $ac_last_try; then 16206 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16207 else 16208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16209 fi 16210done 16211 16212# For the awk script, D is an array of macro values keyed by name, 16213# likewise P contains macro parameters if any. Preserve backslash 16214# newline sequences. 16215 16216ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16217sed -n ' 16218s/.\{148\}/&'"$ac_delim"'/g 16219t rset 16220:rset 16221s/^[ ]*#[ ]*define[ ][ ]*/ / 16222t def 16223d 16224:def 16225s/\\$// 16226t bsnl 16227s/["\\]/\\&/g 16228s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16229D["\1"]=" \3"/p 16230s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16231d 16232:bsnl 16233s/["\\]/\\&/g 16234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16235D["\1"]=" \3\\\\\\n"\\/p 16236t cont 16237s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16238t cont 16239d 16240:cont 16241n 16242s/.\{148\}/&'"$ac_delim"'/g 16243t clear 16244:clear 16245s/\\$// 16246t bsnlc 16247s/["\\]/\\&/g; s/^/"/; s/$/"/p 16248d 16249:bsnlc 16250s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16251b cont 16252' <confdefs.h | sed ' 16253s/'"$ac_delim"'/"\\\ 16254"/g' >>$CONFIG_STATUS || ac_write_fail=1 16255 16256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16257 for (key in D) D_is_set[key] = 1 16258 FS = "" 16259} 16260/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16261 line = \$ 0 16262 split(line, arg, " ") 16263 if (arg[1] == "#") { 16264 defundef = arg[2] 16265 mac1 = arg[3] 16266 } else { 16267 defundef = substr(arg[1], 2) 16268 mac1 = arg[2] 16269 } 16270 split(mac1, mac2, "(") #) 16271 macro = mac2[1] 16272 prefix = substr(line, 1, index(line, defundef) - 1) 16273 if (D_is_set[macro]) { 16274 # Preserve the white space surrounding the "#". 16275 print prefix "define", macro P[macro] D[macro] 16276 next 16277 } else { 16278 # Replace #undef with comments. This is necessary, for example, 16279 # in the case of _POSIX_SOURCE, which is predefined and required 16280 # on some systems where configure will not decide to define it. 16281 if (defundef == "undef") { 16282 print "/*", prefix defundef, macro, "*/" 16283 next 16284 } 16285 } 16286} 16287{ print } 16288_ACAWK 16289_ACEOF 16290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16291 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16292fi # test -n "$CONFIG_HEADERS" 16293 16294 16295eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16296shift 16297for ac_tag 16298do 16299 case $ac_tag in 16300 :[FHLC]) ac_mode=$ac_tag; continue;; 16301 esac 16302 case $ac_mode$ac_tag in 16303 :[FHL]*:*);; 16304 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16305 :[FH]-) ac_tag=-:-;; 16306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16307 esac 16308 ac_save_IFS=$IFS 16309 IFS=: 16310 set x $ac_tag 16311 IFS=$ac_save_IFS 16312 shift 16313 ac_file=$1 16314 shift 16315 16316 case $ac_mode in 16317 :L) ac_source=$1;; 16318 :[FH]) 16319 ac_file_inputs= 16320 for ac_f 16321 do 16322 case $ac_f in 16323 -) ac_f="$ac_tmp/stdin";; 16324 *) # Look for the file first in the build tree, then in the source tree 16325 # (if the path is not absolute). The absolute path cannot be DOS-style, 16326 # because $ac_f cannot contain `:'. 16327 test -f "$ac_f" || 16328 case $ac_f in 16329 [\\/$]*) false;; 16330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16331 esac || 16332 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16333 esac 16334 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16335 as_fn_append ac_file_inputs " '$ac_f'" 16336 done 16337 16338 # Let's still pretend it is `configure' which instantiates (i.e., don't 16339 # use $as_me), people would be surprised to read: 16340 # /* config.h. Generated by config.status. */ 16341 configure_input='Generated from '` 16342 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16343 `' by configure.' 16344 if test x"$ac_file" != x-; then 16345 configure_input="$ac_file. $configure_input" 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16347$as_echo "$as_me: creating $ac_file" >&6;} 16348 fi 16349 # Neutralize special characters interpreted by sed in replacement strings. 16350 case $configure_input in #( 16351 *\&* | *\|* | *\\* ) 16352 ac_sed_conf_input=`$as_echo "$configure_input" | 16353 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16354 *) ac_sed_conf_input=$configure_input;; 16355 esac 16356 16357 case $ac_tag in 16358 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16360 esac 16361 ;; 16362 esac 16363 16364 ac_dir=`$as_dirname -- "$ac_file" || 16365$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16366 X"$ac_file" : 'X\(//\)[^/]' \| \ 16367 X"$ac_file" : 'X\(//\)$' \| \ 16368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16369$as_echo X"$ac_file" | 16370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16371 s//\1/ 16372 q 16373 } 16374 /^X\(\/\/\)[^/].*/{ 16375 s//\1/ 16376 q 16377 } 16378 /^X\(\/\/\)$/{ 16379 s//\1/ 16380 q 16381 } 16382 /^X\(\/\).*/{ 16383 s//\1/ 16384 q 16385 } 16386 s/.*/./; q'` 16387 as_dir="$ac_dir"; as_fn_mkdir_p 16388 ac_builddir=. 16389 16390case "$ac_dir" in 16391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16392*) 16393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16394 # A ".." for each directory in $ac_dir_suffix. 16395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16396 case $ac_top_builddir_sub in 16397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16399 esac ;; 16400esac 16401ac_abs_top_builddir=$ac_pwd 16402ac_abs_builddir=$ac_pwd$ac_dir_suffix 16403# for backward compatibility: 16404ac_top_builddir=$ac_top_build_prefix 16405 16406case $srcdir in 16407 .) # We are building in place. 16408 ac_srcdir=. 16409 ac_top_srcdir=$ac_top_builddir_sub 16410 ac_abs_top_srcdir=$ac_pwd ;; 16411 [\\/]* | ?:[\\/]* ) # Absolute name. 16412 ac_srcdir=$srcdir$ac_dir_suffix; 16413 ac_top_srcdir=$srcdir 16414 ac_abs_top_srcdir=$srcdir ;; 16415 *) # Relative name. 16416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16417 ac_top_srcdir=$ac_top_build_prefix$srcdir 16418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16419esac 16420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16421 16422 16423 case $ac_mode in 16424 :F) 16425 # 16426 # CONFIG_FILE 16427 # 16428 16429 case $INSTALL in 16430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16432 esac 16433 ac_MKDIR_P=$MKDIR_P 16434 case $MKDIR_P in 16435 [\\/$]* | ?:[\\/]* ) ;; 16436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16437 esac 16438_ACEOF 16439 16440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16441# If the template does not know about datarootdir, expand it. 16442# FIXME: This hack should be removed a few years after 2.60. 16443ac_datarootdir_hack=; ac_datarootdir_seen= 16444ac_sed_dataroot=' 16445/datarootdir/ { 16446 p 16447 q 16448} 16449/@datadir@/p 16450/@docdir@/p 16451/@infodir@/p 16452/@localedir@/p 16453/@mandir@/p' 16454case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16455*datarootdir*) ac_datarootdir_seen=yes;; 16456*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16458$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16459_ACEOF 16460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16461 ac_datarootdir_hack=' 16462 s&@datadir@&$datadir&g 16463 s&@docdir@&$docdir&g 16464 s&@infodir@&$infodir&g 16465 s&@localedir@&$localedir&g 16466 s&@mandir@&$mandir&g 16467 s&\\\${datarootdir}&$datarootdir&g' ;; 16468esac 16469_ACEOF 16470 16471# Neutralize VPATH when `$srcdir' = `.'. 16472# Shell code in configure.ac might set extrasub. 16473# FIXME: do we really want to maintain this feature? 16474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16475ac_sed_extra="$ac_vpsub 16476$extrasub 16477_ACEOF 16478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16479:t 16480/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16481s|@configure_input@|$ac_sed_conf_input|;t t 16482s&@top_builddir@&$ac_top_builddir_sub&;t t 16483s&@top_build_prefix@&$ac_top_build_prefix&;t t 16484s&@srcdir@&$ac_srcdir&;t t 16485s&@abs_srcdir@&$ac_abs_srcdir&;t t 16486s&@top_srcdir@&$ac_top_srcdir&;t t 16487s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16488s&@builddir@&$ac_builddir&;t t 16489s&@abs_builddir@&$ac_abs_builddir&;t t 16490s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16491s&@INSTALL@&$ac_INSTALL&;t t 16492s&@MKDIR_P@&$ac_MKDIR_P&;t t 16493$ac_datarootdir_hack 16494" 16495eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16497 16498test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16501 "$ac_tmp/out"`; test -z "$ac_out"; } && 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16503which seems to be undefined. Please make sure it is defined" >&5 16504$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16505which seems to be undefined. Please make sure it is defined" >&2;} 16506 16507 rm -f "$ac_tmp/stdin" 16508 case $ac_file in 16509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16511 esac \ 16512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16513 ;; 16514 :H) 16515 # 16516 # CONFIG_HEADER 16517 # 16518 if test x"$ac_file" != x-; then 16519 { 16520 $as_echo "/* $configure_input */" \ 16521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16522 } >"$ac_tmp/config.h" \ 16523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16526$as_echo "$as_me: $ac_file is unchanged" >&6;} 16527 else 16528 rm -f "$ac_file" 16529 mv "$ac_tmp/config.h" "$ac_file" \ 16530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16531 fi 16532 else 16533 $as_echo "/* $configure_input */" \ 16534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16535 || as_fn_error $? "could not create -" "$LINENO" 5 16536 fi 16537# Compute "$ac_file"'s index in $config_headers. 16538_am_arg="$ac_file" 16539_am_stamp_count=1 16540for _am_header in $config_headers :; do 16541 case $_am_header in 16542 $_am_arg | $_am_arg:* ) 16543 break ;; 16544 * ) 16545 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16546 esac 16547done 16548echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16549$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16550 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16551 X"$_am_arg" : 'X\(//\)$' \| \ 16552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16553$as_echo X"$_am_arg" | 16554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16555 s//\1/ 16556 q 16557 } 16558 /^X\(\/\/\)[^/].*/{ 16559 s//\1/ 16560 q 16561 } 16562 /^X\(\/\/\)$/{ 16563 s//\1/ 16564 q 16565 } 16566 /^X\(\/\).*/{ 16567 s//\1/ 16568 q 16569 } 16570 s/.*/./; q'`/stamp-h$_am_stamp_count 16571 ;; 16572 16573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16574$as_echo "$as_me: executing $ac_file commands" >&6;} 16575 ;; 16576 esac 16577 16578 16579 case $ac_file$ac_mode in 16580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16581 # Older Autoconf quotes --file arguments for eval, but not when files 16582 # are listed without --file. Let's play safe and only enable the eval 16583 # if we detect the quoting. 16584 case $CONFIG_FILES in 16585 *\'*) eval set x "$CONFIG_FILES" ;; 16586 *) set x $CONFIG_FILES ;; 16587 esac 16588 shift 16589 for mf 16590 do 16591 # Strip MF so we end up with the name of the file. 16592 mf=`echo "$mf" | sed -e 's/:.*$//'` 16593 # Check whether this is an Automake generated Makefile or not. 16594 # We used to match only the files named 'Makefile.in', but 16595 # some people rename them; so instead we look at the file content. 16596 # Grep'ing the first line is not enough: some people post-process 16597 # each Makefile.in and add a new line on top of each file to say so. 16598 # Grep'ing the whole file is not good either: AIX grep has a line 16599 # limit of 2048, but all sed's we know have understand at least 4000. 16600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16601 dirpart=`$as_dirname -- "$mf" || 16602$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16603 X"$mf" : 'X\(//\)[^/]' \| \ 16604 X"$mf" : 'X\(//\)$' \| \ 16605 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16606$as_echo X"$mf" | 16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16608 s//\1/ 16609 q 16610 } 16611 /^X\(\/\/\)[^/].*/{ 16612 s//\1/ 16613 q 16614 } 16615 /^X\(\/\/\)$/{ 16616 s//\1/ 16617 q 16618 } 16619 /^X\(\/\).*/{ 16620 s//\1/ 16621 q 16622 } 16623 s/.*/./; q'` 16624 else 16625 continue 16626 fi 16627 # Extract the definition of DEPDIR, am__include, and am__quote 16628 # from the Makefile without running 'make'. 16629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16630 test -z "$DEPDIR" && continue 16631 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16632 test -z "$am__include" && continue 16633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16634 # Find all dependency output files, they are included files with 16635 # $(DEPDIR) in their names. We invoke sed twice because it is the 16636 # simplest approach to changing $(DEPDIR) to its actual value in the 16637 # expansion. 16638 for file in `sed -n " 16639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16641 # Make sure the directory exists. 16642 test -f "$dirpart/$file" && continue 16643 fdir=`$as_dirname -- "$file" || 16644$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16645 X"$file" : 'X\(//\)[^/]' \| \ 16646 X"$file" : 'X\(//\)$' \| \ 16647 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16648$as_echo X"$file" | 16649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16650 s//\1/ 16651 q 16652 } 16653 /^X\(\/\/\)[^/].*/{ 16654 s//\1/ 16655 q 16656 } 16657 /^X\(\/\/\)$/{ 16658 s//\1/ 16659 q 16660 } 16661 /^X\(\/\).*/{ 16662 s//\1/ 16663 q 16664 } 16665 s/.*/./; q'` 16666 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16667 # echo "creating $dirpart/$file" 16668 echo '# dummy' > "$dirpart/$file" 16669 done 16670 done 16671} 16672 ;; 16673 "libtool":C) 16674 16675 # See if we are running on zsh, and set the options that allow our 16676 # commands through without removal of \ escapes. 16677 if test -n "${ZSH_VERSION+set}"; then 16678 setopt NO_GLOB_SUBST 16679 fi 16680 16681 cfgfile=${ofile}T 16682 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16683 $RM "$cfgfile" 16684 16685 cat <<_LT_EOF >> "$cfgfile" 16686#! $SHELL 16687# Generated automatically by $as_me ($PACKAGE) $VERSION 16688# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16689# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16690 16691# Provide generalized library-building support services. 16692# Written by Gordon Matzigkeit, 1996 16693 16694# Copyright (C) 2014 Free Software Foundation, Inc. 16695# This is free software; see the source for copying conditions. There is NO 16696# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16697 16698# GNU Libtool is free software; you can redistribute it and/or modify 16699# it under the terms of the GNU General Public License as published by 16700# the Free Software Foundation; either version 2 of of the License, or 16701# (at your option) any later version. 16702# 16703# As a special exception to the GNU General Public License, if you 16704# distribute this file as part of a program or library that is built 16705# using GNU Libtool, you may include this file under the same 16706# distribution terms that you use for the rest of that program. 16707# 16708# GNU Libtool is distributed in the hope that it will be useful, but 16709# WITHOUT ANY WARRANTY; without even the implied warranty of 16710# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16711# GNU General Public License for more details. 16712# 16713# You should have received a copy of the GNU General Public License 16714# along with this program. If not, see <http://www.gnu.org/licenses/>. 16715 16716 16717# The names of the tagged configurations supported by this script. 16718available_tags='' 16719 16720# Configured defaults for sys_lib_dlsearch_path munging. 16721: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16722 16723# ### BEGIN LIBTOOL CONFIG 16724 16725# Which release of libtool.m4 was used? 16726macro_version=$macro_version 16727macro_revision=$macro_revision 16728 16729# Whether or not to build shared libraries. 16730build_libtool_libs=$enable_shared 16731 16732# Whether or not to build static libraries. 16733build_old_libs=$enable_static 16734 16735# What type of objects to build. 16736pic_mode=$pic_mode 16737 16738# Whether or not to optimize for fast installation. 16739fast_install=$enable_fast_install 16740 16741# Shared archive member basename,for filename based shared library versioning on AIX. 16742shared_archive_member_spec=$shared_archive_member_spec 16743 16744# Shell to use when invoking shell scripts. 16745SHELL=$lt_SHELL 16746 16747# An echo program that protects backslashes. 16748ECHO=$lt_ECHO 16749 16750# The PATH separator for the build system. 16751PATH_SEPARATOR=$lt_PATH_SEPARATOR 16752 16753# The host system. 16754host_alias=$host_alias 16755host=$host 16756host_os=$host_os 16757 16758# The build system. 16759build_alias=$build_alias 16760build=$build 16761build_os=$build_os 16762 16763# A sed program that does not truncate output. 16764SED=$lt_SED 16765 16766# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16767Xsed="\$SED -e 1s/^X//" 16768 16769# A grep program that handles long lines. 16770GREP=$lt_GREP 16771 16772# An ERE matcher. 16773EGREP=$lt_EGREP 16774 16775# A literal string matcher. 16776FGREP=$lt_FGREP 16777 16778# A BSD- or MS-compatible name lister. 16779NM=$lt_NM 16780 16781# Whether we need soft or hard links. 16782LN_S=$lt_LN_S 16783 16784# What is the maximum length of a command? 16785max_cmd_len=$max_cmd_len 16786 16787# Object file suffix (normally "o"). 16788objext=$ac_objext 16789 16790# Executable file suffix (normally ""). 16791exeext=$exeext 16792 16793# whether the shell understands "unset". 16794lt_unset=$lt_unset 16795 16796# turn spaces into newlines. 16797SP2NL=$lt_lt_SP2NL 16798 16799# turn newlines into spaces. 16800NL2SP=$lt_lt_NL2SP 16801 16802# convert \$build file names to \$host format. 16803to_host_file_cmd=$lt_cv_to_host_file_cmd 16804 16805# convert \$build files to toolchain format. 16806to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16807 16808# An object symbol dumper. 16809OBJDUMP=$lt_OBJDUMP 16810 16811# Method to check whether dependent libraries are shared objects. 16812deplibs_check_method=$lt_deplibs_check_method 16813 16814# Command to use when deplibs_check_method = "file_magic". 16815file_magic_cmd=$lt_file_magic_cmd 16816 16817# How to find potential files when deplibs_check_method = "file_magic". 16818file_magic_glob=$lt_file_magic_glob 16819 16820# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16821want_nocaseglob=$lt_want_nocaseglob 16822 16823# DLL creation program. 16824DLLTOOL=$lt_DLLTOOL 16825 16826# Command to associate shared and link libraries. 16827sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16828 16829# The archiver. 16830AR=$lt_AR 16831 16832# Flags to create an archive. 16833AR_FLAGS=$lt_AR_FLAGS 16834 16835# How to feed a file listing to the archiver. 16836archiver_list_spec=$lt_archiver_list_spec 16837 16838# A symbol stripping program. 16839STRIP=$lt_STRIP 16840 16841# Commands used to install an old-style archive. 16842RANLIB=$lt_RANLIB 16843old_postinstall_cmds=$lt_old_postinstall_cmds 16844old_postuninstall_cmds=$lt_old_postuninstall_cmds 16845 16846# Whether to use a lock for old archive extraction. 16847lock_old_archive_extraction=$lock_old_archive_extraction 16848 16849# A C compiler. 16850LTCC=$lt_CC 16851 16852# LTCC compiler flags. 16853LTCFLAGS=$lt_CFLAGS 16854 16855# Take the output of nm and produce a listing of raw symbols and C names. 16856global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16857 16858# Transform the output of nm in a proper C declaration. 16859global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16860 16861# Transform the output of nm into a list of symbols to manually relocate. 16862global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16863 16864# Transform the output of nm in a C name address pair. 16865global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16866 16867# Transform the output of nm in a C name address pair when lib prefix is needed. 16868global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16869 16870# The name lister interface. 16871nm_interface=$lt_lt_cv_nm_interface 16872 16873# Specify filename containing input files for \$NM. 16874nm_file_list_spec=$lt_nm_file_list_spec 16875 16876# The root where to search for dependent libraries,and where our libraries should be installed. 16877lt_sysroot=$lt_sysroot 16878 16879# Command to truncate a binary pipe. 16880lt_truncate_bin=$lt_lt_cv_truncate_bin 16881 16882# The name of the directory that contains temporary libtool files. 16883objdir=$objdir 16884 16885# Used to examine libraries when file_magic_cmd begins with "file". 16886MAGIC_CMD=$MAGIC_CMD 16887 16888# Must we lock files when doing compilation? 16889need_locks=$lt_need_locks 16890 16891# Manifest tool. 16892MANIFEST_TOOL=$lt_MANIFEST_TOOL 16893 16894# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16895DSYMUTIL=$lt_DSYMUTIL 16896 16897# Tool to change global to local symbols on Mac OS X. 16898NMEDIT=$lt_NMEDIT 16899 16900# Tool to manipulate fat objects and archives on Mac OS X. 16901LIPO=$lt_LIPO 16902 16903# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16904OTOOL=$lt_OTOOL 16905 16906# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16907OTOOL64=$lt_OTOOL64 16908 16909# Old archive suffix (normally "a"). 16910libext=$libext 16911 16912# Shared library suffix (normally ".so"). 16913shrext_cmds=$lt_shrext_cmds 16914 16915# The commands to extract the exported symbol list from a shared archive. 16916extract_expsyms_cmds=$lt_extract_expsyms_cmds 16917 16918# Variables whose values should be saved in libtool wrapper scripts and 16919# restored at link time. 16920variables_saved_for_relink=$lt_variables_saved_for_relink 16921 16922# Do we need the "lib" prefix for modules? 16923need_lib_prefix=$need_lib_prefix 16924 16925# Do we need a version for libraries? 16926need_version=$need_version 16927 16928# Library versioning type. 16929version_type=$version_type 16930 16931# Shared library runtime path variable. 16932runpath_var=$runpath_var 16933 16934# Shared library path variable. 16935shlibpath_var=$shlibpath_var 16936 16937# Is shlibpath searched before the hard-coded library search path? 16938shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16939 16940# Format of library name prefix. 16941libname_spec=$lt_libname_spec 16942 16943# List of archive names. First name is the real one, the rest are links. 16944# The last name is the one that the linker finds with -lNAME 16945library_names_spec=$lt_library_names_spec 16946 16947# The coded name of the library, if different from the real name. 16948soname_spec=$lt_soname_spec 16949 16950# Permission mode override for installation of shared libraries. 16951install_override_mode=$lt_install_override_mode 16952 16953# Command to use after installation of a shared archive. 16954postinstall_cmds=$lt_postinstall_cmds 16955 16956# Command to use after uninstallation of a shared archive. 16957postuninstall_cmds=$lt_postuninstall_cmds 16958 16959# Commands used to finish a libtool library installation in a directory. 16960finish_cmds=$lt_finish_cmds 16961 16962# As "finish_cmds", except a single script fragment to be evaled but 16963# not shown. 16964finish_eval=$lt_finish_eval 16965 16966# Whether we should hardcode library paths into libraries. 16967hardcode_into_libs=$hardcode_into_libs 16968 16969# Compile-time system search path for libraries. 16970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16971 16972# Detected run-time system search path for libraries. 16973sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16974 16975# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16976configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16977 16978# Whether dlopen is supported. 16979dlopen_support=$enable_dlopen 16980 16981# Whether dlopen of programs is supported. 16982dlopen_self=$enable_dlopen_self 16983 16984# Whether dlopen of statically linked programs is supported. 16985dlopen_self_static=$enable_dlopen_self_static 16986 16987# Commands to strip libraries. 16988old_striplib=$lt_old_striplib 16989striplib=$lt_striplib 16990 16991 16992# The linker used to build libraries. 16993LD=$lt_LD 16994 16995# How to create reloadable object files. 16996reload_flag=$lt_reload_flag 16997reload_cmds=$lt_reload_cmds 16998 16999# Commands used to build an old-style archive. 17000old_archive_cmds=$lt_old_archive_cmds 17001 17002# A language specific compiler. 17003CC=$lt_compiler 17004 17005# Is the compiler the GNU compiler? 17006with_gcc=$GCC 17007 17008# Compiler flag to turn off builtin functions. 17009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17010 17011# Additional compiler flags for building library objects. 17012pic_flag=$lt_lt_prog_compiler_pic 17013 17014# How to pass a linker flag through the compiler. 17015wl=$lt_lt_prog_compiler_wl 17016 17017# Compiler flag to prevent dynamic linking. 17018link_static_flag=$lt_lt_prog_compiler_static 17019 17020# Does compiler simultaneously support -c and -o options? 17021compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17022 17023# Whether or not to add -lc for building shared libraries. 17024build_libtool_need_lc=$archive_cmds_need_lc 17025 17026# Whether or not to disallow shared libs when runtime libs are static. 17027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17028 17029# Compiler flag to allow reflexive dlopens. 17030export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17031 17032# Compiler flag to generate shared objects directly from archives. 17033whole_archive_flag_spec=$lt_whole_archive_flag_spec 17034 17035# Whether the compiler copes with passing no objects directly. 17036compiler_needs_object=$lt_compiler_needs_object 17037 17038# Create an old-style archive from a shared archive. 17039old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17040 17041# Create a temporary old-style archive to link instead of a shared archive. 17042old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17043 17044# Commands used to build a shared archive. 17045archive_cmds=$lt_archive_cmds 17046archive_expsym_cmds=$lt_archive_expsym_cmds 17047 17048# Commands used to build a loadable module if different from building 17049# a shared archive. 17050module_cmds=$lt_module_cmds 17051module_expsym_cmds=$lt_module_expsym_cmds 17052 17053# Whether we are building with GNU ld or not. 17054with_gnu_ld=$lt_with_gnu_ld 17055 17056# Flag that allows shared libraries with undefined symbols to be built. 17057allow_undefined_flag=$lt_allow_undefined_flag 17058 17059# Flag that enforces no undefined symbols. 17060no_undefined_flag=$lt_no_undefined_flag 17061 17062# Flag to hardcode \$libdir into a binary during linking. 17063# This must work even if \$libdir does not exist 17064hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17065 17066# Whether we need a single "-rpath" flag with a separated argument. 17067hardcode_libdir_separator=$lt_hardcode_libdir_separator 17068 17069# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17070# DIR into the resulting binary. 17071hardcode_direct=$hardcode_direct 17072 17073# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17074# DIR into the resulting binary and the resulting library dependency is 17075# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17076# library is relocated. 17077hardcode_direct_absolute=$hardcode_direct_absolute 17078 17079# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17080# into the resulting binary. 17081hardcode_minus_L=$hardcode_minus_L 17082 17083# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17084# into the resulting binary. 17085hardcode_shlibpath_var=$hardcode_shlibpath_var 17086 17087# Set to "yes" if building a shared library automatically hardcodes DIR 17088# into the library and all subsequent libraries and executables linked 17089# against it. 17090hardcode_automatic=$hardcode_automatic 17091 17092# Set to yes if linker adds runtime paths of dependent libraries 17093# to runtime path list. 17094inherit_rpath=$inherit_rpath 17095 17096# Whether libtool must link a program against all its dependency libraries. 17097link_all_deplibs=$link_all_deplibs 17098 17099# Set to "yes" if exported symbols are required. 17100always_export_symbols=$always_export_symbols 17101 17102# The commands to list exported symbols. 17103export_symbols_cmds=$lt_export_symbols_cmds 17104 17105# Symbols that should not be listed in the preloaded symbols. 17106exclude_expsyms=$lt_exclude_expsyms 17107 17108# Symbols that must always be exported. 17109include_expsyms=$lt_include_expsyms 17110 17111# Commands necessary for linking programs (against libraries) with templates. 17112prelink_cmds=$lt_prelink_cmds 17113 17114# Commands necessary for finishing linking programs. 17115postlink_cmds=$lt_postlink_cmds 17116 17117# Specify filename containing input files. 17118file_list_spec=$lt_file_list_spec 17119 17120# How to hardcode a shared library path into an executable. 17121hardcode_action=$hardcode_action 17122 17123# ### END LIBTOOL CONFIG 17124 17125_LT_EOF 17126 17127 cat <<'_LT_EOF' >> "$cfgfile" 17128 17129# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17130 17131# func_munge_path_list VARIABLE PATH 17132# ----------------------------------- 17133# VARIABLE is name of variable containing _space_ separated list of 17134# directories to be munged by the contents of PATH, which is string 17135# having a format: 17136# "DIR[:DIR]:" 17137# string "DIR[ DIR]" will be prepended to VARIABLE 17138# ":DIR[:DIR]" 17139# string "DIR[ DIR]" will be appended to VARIABLE 17140# "DIRP[:DIRP]::[DIRA:]DIRA" 17141# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17142# "DIRA[ DIRA]" will be appended to VARIABLE 17143# "DIR[:DIR]" 17144# VARIABLE will be replaced by "DIR[ DIR]" 17145func_munge_path_list () 17146{ 17147 case x$2 in 17148 x) 17149 ;; 17150 *:) 17151 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17152 ;; 17153 x:*) 17154 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17155 ;; 17156 *::*) 17157 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17158 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17159 ;; 17160 *) 17161 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17162 ;; 17163 esac 17164} 17165 17166 17167# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17168func_cc_basename () 17169{ 17170 for cc_temp in $*""; do 17171 case $cc_temp in 17172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17174 \-*) ;; 17175 *) break;; 17176 esac 17177 done 17178 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17179} 17180 17181 17182# ### END FUNCTIONS SHARED WITH CONFIGURE 17183 17184_LT_EOF 17185 17186 case $host_os in 17187 aix3*) 17188 cat <<\_LT_EOF >> "$cfgfile" 17189# AIX sometimes has problems with the GCC collect2 program. For some 17190# reason, if we set the COLLECT_NAMES environment variable, the problems 17191# vanish in a puff of smoke. 17192if test set != "${COLLECT_NAMES+set}"; then 17193 COLLECT_NAMES= 17194 export COLLECT_NAMES 17195fi 17196_LT_EOF 17197 ;; 17198 esac 17199 17200 17201ltmain=$ac_aux_dir/ltmain.sh 17202 17203 17204 # We use sed instead of cat because bash on DJGPP gets confused if 17205 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17206 # text mode, it properly converts lines to CR/LF. This bash problem 17207 # is reportedly fixed, but why not run on old versions too? 17208 sed '$q' "$ltmain" >> "$cfgfile" \ 17209 || (rm -f "$cfgfile"; exit 1) 17210 17211 mv -f "$cfgfile" "$ofile" || 17212 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17213 chmod +x "$ofile" 17214 17215 ;; 17216 17217 esac 17218done # for ac_tag 17219 17220 17221as_fn_exit 0 17222_ACEOF 17223ac_clean_files=$ac_clean_files_save 17224 17225test $ac_write_fail = 0 || 17226 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17227 17228 17229# configure is writing to config.log, and then calls config.status. 17230# config.status does its own redirection, appending to config.log. 17231# Unfortunately, on DOS this fails, as config.log is still kept open 17232# by configure, so config.status won't be able to write to it; its 17233# output is simply discarded. So we exec the FD to /dev/null, 17234# effectively closing config.log, so it can be properly (re)opened and 17235# appended to by config.status. When coming back to configure, we 17236# need to make the FD available again. 17237if test "$no_create" != yes; then 17238 ac_cs_success=: 17239 ac_config_status_args= 17240 test "$silent" = yes && 17241 ac_config_status_args="$ac_config_status_args --quiet" 17242 exec 5>/dev/null 17243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17244 exec 5>>config.log 17245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17246 # would make configure fail if this is the last instruction. 17247 $ac_cs_success || as_fn_exit 1 17248fi 17249if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17251$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17252fi 17253 17254 17255{ $as_echo "$as_me:${as_lineno-$LINENO}: 17256------------------------------------------------------------------------ 17257 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. 17258 17259 Compiler support: 17260 17261 C99 var arrays: ................ ${has_var_arrays} 17262 C99 lrintf: .................... ${ac_cv_func_lrintf} 17263 Stack protector: ............... ${enable_stack_protector} 17264 PIE: ........................... ${enable_pie} 17265 17266 General configuration: 17267 17268 Assertion checking: ............ ${enable_assertions} 17269 FLAC input: .................... ${with_flac} 17270 17271------------------------------------------------------------------------ 17272 17273 Type \"make; make install\" to compile and install 17274" >&5 17275$as_echo "$as_me: 17276------------------------------------------------------------------------ 17277 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. 17278 17279 Compiler support: 17280 17281 C99 var arrays: ................ ${has_var_arrays} 17282 C99 lrintf: .................... ${ac_cv_func_lrintf} 17283 Stack protector: ............... ${enable_stack_protector} 17284 PIE: ........................... ${enable_pie} 17285 17286 General configuration: 17287 17288 Assertion checking: ............ ${enable_assertions} 17289 FLAC input: .................... ${with_flac} 17290 17291------------------------------------------------------------------------ 17292 17293 Type \"make; make install\" to compile and install 17294" >&6;} 17295