1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for opus 1.0.3. 4# 5# Report bugs to <opus@xiph.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org 250$0: about your system, including any error possibly output 251$0: before this message. Then install a modern shell, or 252$0: manually run the script under such a shell if you do 253$0: have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='opus' 572PACKAGE_TARNAME='opus' 573PACKAGE_VERSION='1.0.3' 574PACKAGE_STRING='opus 1.0.3' 575PACKAGE_BUGREPORT='opus@xiph.org' 576PACKAGE_URL='' 577 578ac_unique_file="src/opus_encoder.c" 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618LIBOBJS 619PC_LIBM 620PC_BUILD 621USE_ENCODER_FALSE 622USE_ENCODER_TRUE 623CUSTOM_MODES_FALSE 624CUSTOM_MODES_TRUE 625FIXED_POINT_FALSE 626FIXED_POINT_TRUE 627SIZE32 628SIZE16 629SYMBOL_VISIBILITY 630HAVE_DOXYGEN_FALSE 631HAVE_DOXYGEN_TRUE 632HAVE_DOXYGEN 633LIBM 634CPP 635OTOOL64 636OTOOL 637LIPO 638NMEDIT 639DSYMUTIL 640MANIFEST_TOOL 641RANLIB 642ac_ct_AR 643AR 644DLLTOOL 645OBJDUMP 646LN_S 647NM 648ac_ct_DUMPBIN 649DUMPBIN 650LD 651FGREP 652EGREP 653GREP 654SED 655am__fastdepCC_FALSE 656am__fastdepCC_TRUE 657CCDEPMODE 658am__nodep 659AMDEPBACKSLASH 660AMDEP_FALSE 661AMDEP_TRUE 662am__quote 663am__include 664DEPDIR 665OBJEXT 666EXEEXT 667ac_ct_CC 668CPPFLAGS 669LDFLAGS 670CFLAGS 671CC 672LIBTOOL 673host_os 674host_vendor 675host_cpu 676host 677build_os 678build_vendor 679build_cpu 680build 681MAINT 682MAINTAINER_MODE_FALSE 683MAINTAINER_MODE_TRUE 684am__untar 685am__tar 686AMTAR 687am__leading_dot 688SET_MAKE 689AWK 690mkdir_p 691MKDIR_P 692INSTALL_STRIP_PROGRAM 693STRIP 694install_sh 695MAKEINFO 696AUTOHEADER 697AUTOMAKE 698AUTOCONF 699ACLOCAL 700VERSION 701PACKAGE 702CYGPATH_W 703am__isrc 704INSTALL_DATA 705INSTALL_SCRIPT 706INSTALL_PROGRAM 707OPUS_LT_AGE 708OPUS_LT_REVISION 709OPUS_LT_CURRENT 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_silent_rules 756enable_maintainer_mode 757enable_shared 758enable_static 759with_pic 760enable_fast_install 761enable_dependency_tracking 762with_gnu_ld 763with_sysroot 764enable_libtool_lock 765enable_fixed_point 766enable_fixed_point_debug 767enable_custom_modes 768enable_float_approx 769enable_assertions 770enable_fuzzing 771enable_doc 772enable_encoder 773' 774 ac_precious_vars='build_alias 775host_alias 776target_alias 777CC 778CFLAGS 779LDFLAGS 780LIBS 781CPPFLAGS 782CPP' 783 784 785# Initialize some variables set by options. 786ac_init_help= 787ac_init_version=false 788ac_unrecognized_opts= 789ac_unrecognized_sep= 790# The variables have the same names as the options, with 791# dashes changed to underlines. 792cache_file=/dev/null 793exec_prefix=NONE 794no_create= 795no_recursion= 796prefix=NONE 797program_prefix=NONE 798program_suffix=NONE 799program_transform_name=s,x,x, 800silent= 801site= 802srcdir= 803verbose= 804x_includes=NONE 805x_libraries=NONE 806 807# Installation directory options. 808# These are left unexpanded so users can "make install exec_prefix=/foo" 809# and all the variables that are supposed to be based on exec_prefix 810# by default will actually change. 811# Use braces instead of parens because sh, perl, etc. also accept them. 812# (The list follows the same order as the GNU Coding Standards.) 813bindir='${exec_prefix}/bin' 814sbindir='${exec_prefix}/sbin' 815libexecdir='${exec_prefix}/libexec' 816datarootdir='${prefix}/share' 817datadir='${datarootdir}' 818sysconfdir='${prefix}/etc' 819sharedstatedir='${prefix}/com' 820localstatedir='${prefix}/var' 821includedir='${prefix}/include' 822oldincludedir='/usr/include' 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824infodir='${datarootdir}/info' 825htmldir='${docdir}' 826dvidir='${docdir}' 827pdfdir='${docdir}' 828psdir='${docdir}' 829libdir='${exec_prefix}/lib' 830localedir='${datarootdir}/locale' 831mandir='${datarootdir}/man' 832 833ac_prev= 834ac_dashdash= 835for ac_option 836do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *=) ac_optarg= ;; 847 *) ac_optarg=yes ;; 848 esac 849 850 # Accept the important Cygnus configure options, so we can diagnose typos. 851 852 case $ac_dashdash$ac_option in 853 --) 854 ac_dashdash=yes ;; 855 856 -bindir | --bindir | --bindi | --bind | --bin | --bi) 857 ac_prev=bindir ;; 858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 859 bindir=$ac_optarg ;; 860 861 -build | --build | --buil | --bui | --bu) 862 ac_prev=build_alias ;; 863 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 864 build_alias=$ac_optarg ;; 865 866 -cache-file | --cache-file | --cache-fil | --cache-fi \ 867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 868 ac_prev=cache_file ;; 869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 871 cache_file=$ac_optarg ;; 872 873 --config-cache | -C) 874 cache_file=config.cache ;; 875 876 -datadir | --datadir | --datadi | --datad) 877 ac_prev=datadir ;; 878 -datadir=* | --datadir=* | --datadi=* | --datad=*) 879 datadir=$ac_optarg ;; 880 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 882 | --dataroo | --dataro | --datar) 883 ac_prev=datarootdir ;; 884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 886 datarootdir=$ac_optarg ;; 887 888 -disable-* | --disable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=\$ac_optarg ;; 929 930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 932 | --exec | --exe | --ex) 933 ac_prev=exec_prefix ;; 934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 936 | --exec=* | --exe=* | --ex=*) 937 exec_prefix=$ac_optarg ;; 938 939 -gas | --gas | --ga | --g) 940 # Obsolete; use --with-gas. 941 with_gas=yes ;; 942 943 -help | --help | --hel | --he | -h) 944 ac_init_help=long ;; 945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 946 ac_init_help=recursive ;; 947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 948 ac_init_help=short ;; 949 950 -host | --host | --hos | --ho) 951 ac_prev=host_alias ;; 952 -host=* | --host=* | --hos=* | --ho=*) 953 host_alias=$ac_optarg ;; 954 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 956 ac_prev=htmldir ;; 957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 958 | --ht=*) 959 htmldir=$ac_optarg ;; 960 961 -includedir | --includedir | --includedi | --included | --include \ 962 | --includ | --inclu | --incl | --inc) 963 ac_prev=includedir ;; 964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 965 | --includ=* | --inclu=* | --incl=* | --inc=*) 966 includedir=$ac_optarg ;; 967 968 -infodir | --infodir | --infodi | --infod | --info | --inf) 969 ac_prev=infodir ;; 970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 971 infodir=$ac_optarg ;; 972 973 -libdir | --libdir | --libdi | --libd) 974 ac_prev=libdir ;; 975 -libdir=* | --libdir=* | --libdi=* | --libd=*) 976 libdir=$ac_optarg ;; 977 978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 979 | --libexe | --libex | --libe) 980 ac_prev=libexecdir ;; 981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 982 | --libexe=* | --libex=* | --libe=*) 983 libexecdir=$ac_optarg ;; 984 985 -localedir | --localedir | --localedi | --localed | --locale) 986 ac_prev=localedir ;; 987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 988 localedir=$ac_optarg ;; 989 990 -localstatedir | --localstatedir | --localstatedi | --localstated \ 991 | --localstate | --localstat | --localsta | --localst | --locals) 992 ac_prev=localstatedir ;; 993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 995 localstatedir=$ac_optarg ;; 996 997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 998 ac_prev=mandir ;; 999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1000 mandir=$ac_optarg ;; 1001 1002 -nfp | --nfp | --nf) 1003 # Obsolete; use --without-fp. 1004 with_fp=no ;; 1005 1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1007 | --no-cr | --no-c | -n) 1008 no_create=yes ;; 1009 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1012 no_recursion=yes ;; 1013 1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1016 | --oldin | --oldi | --old | --ol | --o) 1017 ac_prev=oldincludedir ;; 1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1021 oldincludedir=$ac_optarg ;; 1022 1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1024 ac_prev=prefix ;; 1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1026 prefix=$ac_optarg ;; 1027 1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1029 | --program-pre | --program-pr | --program-p) 1030 ac_prev=program_prefix ;; 1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1033 program_prefix=$ac_optarg ;; 1034 1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1036 | --program-suf | --program-su | --program-s) 1037 ac_prev=program_suffix ;; 1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1040 program_suffix=$ac_optarg ;; 1041 1042 -program-transform-name | --program-transform-name \ 1043 | --program-transform-nam | --program-transform-na \ 1044 | --program-transform-n | --program-transform- \ 1045 | --program-transform | --program-transfor \ 1046 | --program-transfo | --program-transf \ 1047 | --program-trans | --program-tran \ 1048 | --progr-tra | --program-tr | --program-t) 1049 ac_prev=program_transform_name ;; 1050 -program-transform-name=* | --program-transform-name=* \ 1051 | --program-transform-nam=* | --program-transform-na=* \ 1052 | --program-transform-n=* | --program-transform-=* \ 1053 | --program-transform=* | --program-transfor=* \ 1054 | --program-transfo=* | --program-transf=* \ 1055 | --program-trans=* | --program-tran=* \ 1056 | --progr-tra=* | --program-tr=* | --program-t=*) 1057 program_transform_name=$ac_optarg ;; 1058 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1060 ac_prev=pdfdir ;; 1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1062 pdfdir=$ac_optarg ;; 1063 1064 -psdir | --psdir | --psdi | --psd | --ps) 1065 ac_prev=psdir ;; 1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1067 psdir=$ac_optarg ;; 1068 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1070 | -silent | --silent | --silen | --sile | --sil) 1071 silent=yes ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1239 If a cross compiler is detected then cross compile mode will be used" >&2 1240 elif test "x$build_alias" != "x$host_alias"; then 1241 cross_compiling=yes 1242 fi 1243fi 1244 1245ac_tool_prefix= 1246test -n "$host_alias" && ac_tool_prefix=$host_alias- 1247 1248test "$silent" = yes && exec 6>/dev/null 1249 1250 1251ac_pwd=`pwd` && test -n "$ac_pwd" && 1252ac_ls_di=`ls -di .` && 1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1254 as_fn_error $? "working directory cannot be determined" 1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1256 as_fn_error $? "pwd does not report name of working directory" 1257 1258 1259# Find the source files, if location was not specified. 1260if test -z "$srcdir"; then 1261 ac_srcdir_defaulted=yes 1262 # Try the directory containing this script, then the parent directory. 1263 ac_confdir=`$as_dirname -- "$as_myself" || 1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1265 X"$as_myself" : 'X\(//\)[^/]' \| \ 1266 X"$as_myself" : 'X\(//\)$' \| \ 1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1268$as_echo X"$as_myself" | 1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\/\)[^/].*/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\).*/{ 1282 s//\1/ 1283 q 1284 } 1285 s/.*/./; q'` 1286 srcdir=$ac_confdir 1287 if test ! -r "$srcdir/$ac_unique_file"; then 1288 srcdir=.. 1289 fi 1290else 1291 ac_srcdir_defaulted=no 1292fi 1293if test ! -r "$srcdir/$ac_unique_file"; then 1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1296fi 1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1298ac_abs_confdir=`( 1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1300 pwd)` 1301# When building in place, set srcdir=. 1302if test "$ac_abs_confdir" = "$ac_pwd"; then 1303 srcdir=. 1304fi 1305# Remove unnecessary trailing slashes from srcdir. 1306# Double slashes in file names in object file debugging info 1307# mess up M-x gdb in Emacs. 1308case $srcdir in 1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1310esac 1311for ac_var in $ac_precious_vars; do 1312 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_env_${ac_var}_value=\$${ac_var} 1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1316done 1317 1318# 1319# Report the --help message. 1320# 1321if test "$ac_init_help" = "long"; then 1322 # Omit some internal or obsolete options to make the list less imposing. 1323 # This message is too long to be a string in the A/UX 3.1 sh. 1324 cat <<_ACEOF 1325\`configure' configures opus 1.0.3 to adapt to many kinds of systems. 1326 1327Usage: $0 [OPTION]... [VAR=VALUE]... 1328 1329To assign environment variables (e.g., CC, CFLAGS...), specify them as 1330VAR=VALUE. See below for descriptions of some of the useful variables. 1331 1332Defaults for the options are specified in brackets. 1333 1334Configuration: 1335 -h, --help display this help and exit 1336 --help=short display options specific to this package 1337 --help=recursive display the short help of all the included packages 1338 -V, --version display version information and exit 1339 -q, --quiet, --silent do not print \`checking ...' messages 1340 --cache-file=FILE cache test results in FILE [disabled] 1341 -C, --config-cache alias for \`--cache-file=config.cache' 1342 -n, --no-create do not create output files 1343 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1344 1345Installation directories: 1346 --prefix=PREFIX install architecture-independent files in PREFIX 1347 [$ac_default_prefix] 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1349 [PREFIX] 1350 1351By default, \`make install' will install all the files in 1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1353an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1354for instance \`--prefix=\$HOME'. 1355 1356For better control, use the options below. 1357 1358Fine tuning of the installation directories: 1359 --bindir=DIR user executables [EPREFIX/bin] 1360 --sbindir=DIR system admin executables [EPREFIX/sbin] 1361 --libexecdir=DIR program executables [EPREFIX/libexec] 1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1365 --libdir=DIR object code libraries [EPREFIX/lib] 1366 --includedir=DIR C header files [PREFIX/include] 1367 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1370 --infodir=DIR info documentation [DATAROOTDIR/info] 1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1372 --mandir=DIR man documentation [DATAROOTDIR/man] 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/opus] 1374 --htmldir=DIR html documentation [DOCDIR] 1375 --dvidir=DIR dvi documentation [DOCDIR] 1376 --pdfdir=DIR pdf documentation [DOCDIR] 1377 --psdir=DIR ps documentation [DOCDIR] 1378_ACEOF 1379 1380 cat <<\_ACEOF 1381 1382Program names: 1383 --program-prefix=PREFIX prepend PREFIX to installed program names 1384 --program-suffix=SUFFIX append SUFFIX to installed program names 1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1386 1387System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390_ACEOF 1391fi 1392 1393if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of opus 1.0.3:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399Optional Features: 1400 --disable-option-checking ignore unrecognized --enable/--with options 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --enable-silent-rules less verbose build output (undo: `make V=1') 1404 --disable-silent-rules verbose build output (undo: `make V=0') 1405 --disable-maintainer-mode disable make rules and dependencies not useful 1406 (and sometimes confusing) to the casual installer 1407 --enable-shared[=PKGS] build shared libraries [default=yes] 1408 --enable-static[=PKGS] build static libraries [default=yes] 1409 --enable-fast-install[=PKGS] 1410 optimize for fast installation [default=yes] 1411 --disable-dependency-tracking speeds up one-time build 1412 --enable-dependency-tracking do not reject slow dependency extractors 1413 --disable-libtool-lock avoid locking (might break parallel builds) 1414 --enable-fixed-point compile without floating point (for machines without a fast enough FPU) 1415 --enable-fixed-point-debug debug fixed-point implementation 1416 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames 1417 --enable-float-approx enable fast approximations for floating point 1418 --enable-assertions enable additional software error checking 1419 --enable-fuzzing causes the encoder to make random decisions 1420 --disable-doc Do not build API documentation 1421 --enable-encoder compile with encoder support 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1427 both] 1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1429 --with-sysroot=DIR Search for dependent libraries within DIR 1430 (or the compiler's sysroot if not specified). 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 CPP C preprocessor 1441 1442Use these variables to override the choices made by `configure' or to help 1443it to find libraries and programs with nonstandard names/locations. 1444 1445Report bugs to <opus@xiph.org>. 1446_ACEOF 1447ac_status=$? 1448fi 1449 1450if test "$ac_init_help" = "recursive"; then 1451 # If there are subdirs, report their specific --help. 1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1453 test -d "$ac_dir" || 1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1455 continue 1456 ac_builddir=. 1457 1458case "$ac_dir" in 1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460*) 1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1462 # A ".." for each directory in $ac_dir_suffix. 1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1464 case $ac_top_builddir_sub in 1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1467 esac ;; 1468esac 1469ac_abs_top_builddir=$ac_pwd 1470ac_abs_builddir=$ac_pwd$ac_dir_suffix 1471# for backward compatibility: 1472ac_top_builddir=$ac_top_build_prefix 1473 1474case $srcdir in 1475 .) # We are building in place. 1476 ac_srcdir=. 1477 ac_top_srcdir=$ac_top_builddir_sub 1478 ac_abs_top_srcdir=$ac_pwd ;; 1479 [\\/]* | ?:[\\/]* ) # Absolute name. 1480 ac_srcdir=$srcdir$ac_dir_suffix; 1481 ac_top_srcdir=$srcdir 1482 ac_abs_top_srcdir=$srcdir ;; 1483 *) # Relative name. 1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1485 ac_top_srcdir=$ac_top_build_prefix$srcdir 1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1487esac 1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1489 1490 cd "$ac_dir" || { ac_status=$?; continue; } 1491 # Check for guested configure. 1492 if test -f "$ac_srcdir/configure.gnu"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1495 elif test -f "$ac_srcdir/configure"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure" --help=recursive 1498 else 1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1500 fi || ac_status=$? 1501 cd "$ac_pwd" || { ac_status=$?; break; } 1502 done 1503fi 1504 1505test -n "$ac_init_help" && exit $ac_status 1506if $ac_init_version; then 1507 cat <<\_ACEOF 1508opus configure 1.0.3 1509generated by GNU Autoconf 2.68 1510 1511Copyright (C) 2010 Free Software Foundation, Inc. 1512This configure script is free software; the Free Software Foundation 1513gives unlimited permission to copy, distribute and modify it. 1514_ACEOF 1515 exit 1516fi 1517 1518## ------------------------ ## 1519## Autoconf initialization. ## 1520## ------------------------ ## 1521 1522# ac_fn_c_try_compile LINENO 1523# -------------------------- 1524# Try to compile conftest.$ac_ext, and return whether this succeeded. 1525ac_fn_c_try_compile () 1526{ 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528 rm -f conftest.$ac_objext 1529 if { { ac_try="$ac_compile" 1530case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533esac 1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535$as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_compile") 2>conftest.err 1537 ac_status=$? 1538 if test -s conftest.err; then 1539 grep -v '^ *+' conftest.err >conftest.er1 1540 cat conftest.er1 >&5 1541 mv -f conftest.er1 conftest.err 1542 fi 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1544 test $ac_status = 0; } && { 1545 test -z "$ac_c_werror_flag" || 1546 test ! -s conftest.err 1547 } && test -s conftest.$ac_objext; then : 1548 ac_retval=0 1549else 1550 $as_echo "$as_me: failed program was:" >&5 1551sed 's/^/| /' conftest.$ac_ext >&5 1552 1553 ac_retval=1 1554fi 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 as_fn_set_status $ac_retval 1557 1558} # ac_fn_c_try_compile 1559 1560# ac_fn_c_try_link LINENO 1561# ----------------------- 1562# Try to link conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_link () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext conftest$ac_exeext 1567 if { { ac_try="$ac_link" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_link") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest$ac_exeext && { 1586 test "$cross_compiling" = yes || 1587 $as_test_x conftest$ac_exeext 1588 }; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1598 # interfere with the next link command; also delete a directory that is 1599 # left behind by Apple's compiler. We do this before executing the actions. 1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_link 1605 1606# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1607# ------------------------------------------------------- 1608# Tests whether HEADER exists and can be compiled using the include files in 1609# INCLUDES, setting the cache variable VAR accordingly. 1610ac_fn_c_check_header_compile () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1614$as_echo_n "checking for $2... " >&6; } 1615if eval \${$3+:} false; then : 1616 $as_echo_n "(cached) " >&6 1617else 1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620$4 1621#include <$2> 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO"; then : 1624 eval "$3=yes" 1625else 1626 eval "$3=no" 1627fi 1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1629fi 1630eval ac_res=\$$3 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632$as_echo "$ac_res" >&6; } 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 1635} # ac_fn_c_check_header_compile 1636 1637# ac_fn_c_try_cpp LINENO 1638# ---------------------- 1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_cpp () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 if { { ac_try="$ac_cpp conftest.$ac_ext" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } > conftest.i && { 1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_cpp 1673 1674# ac_fn_c_try_run LINENO 1675# ---------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1677# that executables *can* be run. 1678ac_fn_c_try_run () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>&5 1689 ac_status=$? 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1692 { { case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_try") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; }; }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: program exited with status $ac_status" >&5 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=$ac_status 1709fi 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_run 1715 1716# ac_fn_c_check_func LINENO FUNC VAR 1717# ---------------------------------- 1718# Tests whether FUNC exists, setting the cache variable VAR accordingly 1719ac_fn_c_check_func () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723$as_echo_n "checking for $2... " >&6; } 1724if eval \${$3+:} false; then : 1725 $as_echo_n "(cached) " >&6 1726else 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (); below. 1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1736 <limits.h> exists even on freestanding compilers. */ 1737 1738#ifdef __STDC__ 1739# include <limits.h> 1740#else 1741# include <assert.h> 1742#endif 1743 1744#undef $2 1745 1746/* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749#ifdef __cplusplus 1750extern "C" 1751#endif 1752char $2 (); 1753/* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756#if defined __stub_$2 || defined __stub___$2 1757choke me 1758#endif 1759 1760int 1761main () 1762{ 1763return $2 (); 1764 ; 1765 return 0; 1766} 1767_ACEOF 1768if ac_fn_c_try_link "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext \ 1774 conftest$ac_exeext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_func 1782 1783# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1784# ------------------------------------------------------- 1785# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1786# the include files in INCLUDES and setting the cache variable VAR 1787# accordingly. 1788ac_fn_c_check_header_mongrel () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if eval \${$3+:} false; then : 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800else 1801 # Is the header compilable? 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1803$as_echo_n "checking $2 usability... " >&6; } 1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 ac_header_compiler=yes 1811else 1812 ac_header_compiler=no 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1816$as_echo "$ac_header_compiler" >&6; } 1817 1818# Is the header present? 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1820$as_echo_n "checking $2 presence... " >&6; } 1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823#include <$2> 1824_ACEOF 1825if ac_fn_c_try_cpp "$LINENO"; then : 1826 ac_header_preproc=yes 1827else 1828 ac_header_preproc=no 1829fi 1830rm -f conftest.err conftest.i conftest.$ac_ext 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1832$as_echo "$ac_header_preproc" >&6; } 1833 1834# So? What about this header? 1835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1836 yes:no: ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1838$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1840$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1841 ;; 1842 no:yes:* ) 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1844$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1846$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1848$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1850$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1853( $as_echo "## ---------------------------- ## 1854## Report this to opus@xiph.org ## 1855## ---------------------------- ##" 1856 ) | sed "s/^/$as_me: WARNING: /" >&2 1857 ;; 1858esac 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 eval "$3=\$ac_header_compiler" 1865fi 1866eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868$as_echo "$ac_res" >&6; } 1869fi 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_header_mongrel 1873 1874# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1875# -------------------------------------------- 1876# Tries to find the compile-time value of EXPR in a program that includes 1877# INCLUDES, setting VAR accordingly. Returns whether the value could be 1878# computed 1879ac_fn_c_compute_int () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 if test "$cross_compiling" = yes; then 1883 # Depending upon the size, compute the lo and hi bounds. 1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887int 1888main () 1889{ 1890static int test_array [1 - 2 * !(($2) >= 0)]; 1891test_array [0] = 0 1892 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 ac_lo=0 ac_mid=0 1899 while :; do 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1907test_array [0] = 0 1908 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_compile "$LINENO"; then : 1914 ac_hi=$ac_mid; break 1915else 1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1917 if test $ac_lo -le $ac_mid; then 1918 ac_lo= ac_hi= 1919 break 1920 fi 1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924 done 1925else 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928$4 1929int 1930main () 1931{ 1932static int test_array [1 - 2 * !(($2) < 0)]; 1933test_array [0] = 0 1934 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_hi=-1 ac_mid=-1 1941 while :; do 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1949test_array [0] = 0 1950 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_compile "$LINENO"; then : 1956 ac_lo=$ac_mid; break 1957else 1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1959 if test $ac_mid -le $ac_hi; then 1960 ac_lo= ac_hi= 1961 break 1962 fi 1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966 done 1967else 1968 ac_lo= ac_hi= 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971fi 1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1973# Binary search between lo and hi bounds. 1974while test "x$ac_lo" != "x$ac_hi"; do 1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978$4 1979int 1980main () 1981{ 1982static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1983test_array [0] = 0 1984 1985 ; 1986 return 0; 1987} 1988_ACEOF 1989if ac_fn_c_try_compile "$LINENO"; then : 1990 ac_hi=$ac_mid 1991else 1992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995done 1996case $ac_lo in #(( 1997?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1998'') ac_retval=1 ;; 1999esac 2000 else 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004static long int longval () { return $2; } 2005static unsigned long int ulongval () { return $2; } 2006#include <stdio.h> 2007#include <stdlib.h> 2008int 2009main () 2010{ 2011 2012 FILE *f = fopen ("conftest.val", "w"); 2013 if (! f) 2014 return 1; 2015 if (($2) < 0) 2016 { 2017 long int i = longval (); 2018 if (i != ($2)) 2019 return 1; 2020 fprintf (f, "%ld", i); 2021 } 2022 else 2023 { 2024 unsigned long int i = ulongval (); 2025 if (i != ($2)) 2026 return 1; 2027 fprintf (f, "%lu", i); 2028 } 2029 /* Do not output a trailing newline, as this causes \r\n confusion 2030 on some platforms. */ 2031 return ferror (f) || fclose (f) != 0; 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_run "$LINENO"; then : 2038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2039else 2040 ac_retval=1 2041fi 2042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2043 conftest.$ac_objext conftest.beam conftest.$ac_ext 2044rm -f conftest.val 2045 2046 fi 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 as_fn_set_status $ac_retval 2049 2050} # ac_fn_c_compute_int 2051cat >config.log <<_ACEOF 2052This file contains any messages produced by compilers while 2053running configure, to aid debugging if configure makes a mistake. 2054 2055It was created by opus $as_me 1.0.3, which was 2056generated by GNU Autoconf 2.68. Invocation command line was 2057 2058 $ $0 $@ 2059 2060_ACEOF 2061exec 5>>config.log 2062{ 2063cat <<_ASUNAME 2064## --------- ## 2065## Platform. ## 2066## --------- ## 2067 2068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2069uname -m = `(uname -m) 2>/dev/null || echo unknown` 2070uname -r = `(uname -r) 2>/dev/null || echo unknown` 2071uname -s = `(uname -s) 2>/dev/null || echo unknown` 2072uname -v = `(uname -v) 2>/dev/null || echo unknown` 2073 2074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2075/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2076 2077/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2078/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2080/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2081/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2082/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2083/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2084 2085_ASUNAME 2086 2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2088for as_dir in $PATH 2089do 2090 IFS=$as_save_IFS 2091 test -z "$as_dir" && as_dir=. 2092 $as_echo "PATH: $as_dir" 2093 done 2094IFS=$as_save_IFS 2095 2096} >&5 2097 2098cat >&5 <<_ACEOF 2099 2100 2101## ----------- ## 2102## Core tests. ## 2103## ----------- ## 2104 2105_ACEOF 2106 2107 2108# Keep a trace of the command line. 2109# Strip out --no-create and --no-recursion so they do not pile up. 2110# Strip out --silent because we don't want to record it for future runs. 2111# Also quote any args containing shell meta-characters. 2112# Make two passes to allow for proper duplicate-argument suppression. 2113ac_configure_args= 2114ac_configure_args0= 2115ac_configure_args1= 2116ac_must_keep_next=false 2117for ac_pass in 1 2 2118do 2119 for ac_arg 2120 do 2121 case $ac_arg in 2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2124 | -silent | --silent | --silen | --sile | --sil) 2125 continue ;; 2126 *\'*) 2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2128 esac 2129 case $ac_pass in 2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2131 2) 2132 as_fn_append ac_configure_args1 " '$ac_arg'" 2133 if test $ac_must_keep_next = true; then 2134 ac_must_keep_next=false # Got value, back to normal. 2135 else 2136 case $ac_arg in 2137 *=* | --config-cache | -C | -disable-* | --disable-* \ 2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2140 | -with-* | --with-* | -without-* | --without-* | --x) 2141 case "$ac_configure_args0 " in 2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2143 esac 2144 ;; 2145 -* ) ac_must_keep_next=true ;; 2146 esac 2147 fi 2148 as_fn_append ac_configure_args " '$ac_arg'" 2149 ;; 2150 esac 2151 done 2152done 2153{ ac_configure_args0=; unset ac_configure_args0;} 2154{ ac_configure_args1=; unset ac_configure_args1;} 2155 2156# When interrupted or exit'd, cleanup temporary files, and complete 2157# config.log. We remove comments because anyway the quotes in there 2158# would cause problems or look ugly. 2159# WARNING: Use '\'' to represent an apostrophe within the trap. 2160# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2161trap 'exit_status=$? 2162 # Save into config.log some information that might help in debugging. 2163 { 2164 echo 2165 2166 $as_echo "## ---------------- ## 2167## Cache variables. ## 2168## ---------------- ##" 2169 echo 2170 # The following way of writing the cache mishandles newlines in values, 2171( 2172 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in #( 2175 *${as_nl}*) 2176 case $ac_var in #( 2177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2179 esac 2180 case $ac_var in #( 2181 _ | IFS | as_nl) ;; #( 2182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2183 *) { eval $ac_var=; unset $ac_var;} ;; 2184 esac ;; 2185 esac 2186 done 2187 (set) 2>&1 | 2188 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2189 *${as_nl}ac_space=\ *) 2190 sed -n \ 2191 "s/'\''/'\''\\\\'\'''\''/g; 2192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2193 ;; #( 2194 *) 2195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2196 ;; 2197 esac | 2198 sort 2199) 2200 echo 2201 2202 $as_echo "## ----------------- ## 2203## Output variables. ## 2204## ----------------- ##" 2205 echo 2206 for ac_var in $ac_subst_vars 2207 do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in 2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2211 esac 2212 $as_echo "$ac_var='\''$ac_val'\''" 2213 done | sort 2214 echo 2215 2216 if test -n "$ac_subst_files"; then 2217 $as_echo "## ------------------- ## 2218## File substitutions. ## 2219## ------------------- ##" 2220 echo 2221 for ac_var in $ac_subst_files 2222 do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in 2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2226 esac 2227 $as_echo "$ac_var='\''$ac_val'\''" 2228 done | sort 2229 echo 2230 fi 2231 2232 if test -s confdefs.h; then 2233 $as_echo "## ----------- ## 2234## confdefs.h. ## 2235## ----------- ##" 2236 echo 2237 cat confdefs.h 2238 echo 2239 fi 2240 test "$ac_signal" != 0 && 2241 $as_echo "$as_me: caught signal $ac_signal" 2242 $as_echo "$as_me: exit $exit_status" 2243 } >&5 2244 rm -f core *.core core.conftest.* && 2245 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2246 exit $exit_status 2247' 0 2248for ac_signal in 1 2 13 15; do 2249 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2250done 2251ac_signal=0 2252 2253# confdefs.h avoids OS command line length limits that DEFS can exceed. 2254rm -f -r conftest* confdefs.h 2255 2256$as_echo "/* confdefs.h */" > confdefs.h 2257 2258# Predefined preprocessor variables. 2259 2260cat >>confdefs.h <<_ACEOF 2261#define PACKAGE_NAME "$PACKAGE_NAME" 2262_ACEOF 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2266_ACEOF 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_VERSION "$PACKAGE_VERSION" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_STRING "$PACKAGE_STRING" 2274_ACEOF 2275 2276cat >>confdefs.h <<_ACEOF 2277#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2278_ACEOF 2279 2280cat >>confdefs.h <<_ACEOF 2281#define PACKAGE_URL "$PACKAGE_URL" 2282_ACEOF 2283 2284 2285# Let the site file select an alternate cache file if it wants to. 2286# Prefer an explicitly selected file to automatically selected ones. 2287ac_site_file1=NONE 2288ac_site_file2=NONE 2289if test -n "$CONFIG_SITE"; then 2290 # We do not want a PATH search for config.site. 2291 case $CONFIG_SITE in #(( 2292 -*) ac_site_file1=./$CONFIG_SITE;; 2293 */*) ac_site_file1=$CONFIG_SITE;; 2294 *) ac_site_file1=./$CONFIG_SITE;; 2295 esac 2296elif test "x$prefix" != xNONE; then 2297 ac_site_file1=$prefix/share/config.site 2298 ac_site_file2=$prefix/etc/config.site 2299else 2300 ac_site_file1=$ac_default_prefix/share/config.site 2301 ac_site_file2=$ac_default_prefix/etc/config.site 2302fi 2303for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2304do 2305 test "x$ac_site_file" = xNONE && continue 2306 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2308$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2309 sed 's/^/| /' "$ac_site_file" >&5 2310 . "$ac_site_file" \ 2311 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313as_fn_error $? "failed to load site script $ac_site_file 2314See \`config.log' for more details" "$LINENO" 5; } 2315 fi 2316done 2317 2318if test -r "$cache_file"; then 2319 # Some versions of bash will fail to source /dev/null (special files 2320 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2321 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2323$as_echo "$as_me: loading cache $cache_file" >&6;} 2324 case $cache_file in 2325 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2326 *) . "./$cache_file";; 2327 esac 2328 fi 2329else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2331$as_echo "$as_me: creating cache $cache_file" >&6;} 2332 >$cache_file 2333fi 2334 2335# Check that the precious variables saved in the cache have kept the same 2336# value. 2337ac_cache_corrupted=false 2338for ac_var in $ac_precious_vars; do 2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2340 eval ac_new_set=\$ac_env_${ac_var}_set 2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2342 eval ac_new_val=\$ac_env_${ac_var}_value 2343 case $ac_old_set,$ac_new_set in 2344 set,) 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2346$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2347 ac_cache_corrupted=: ;; 2348 ,set) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2350$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,);; 2353 *) 2354 if test "x$ac_old_val" != "x$ac_new_val"; then 2355 # differences in whitespace do not lead to failure. 2356 ac_old_val_w=`echo x $ac_old_val` 2357 ac_new_val_w=`echo x $ac_new_val` 2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2360$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2361 ac_cache_corrupted=: 2362 else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2364$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2365 eval $ac_var=\$ac_old_val 2366 fi 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2368$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2370$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2371 fi;; 2372 esac 2373 # Pass precious variables to config.status. 2374 if test "$ac_new_set" = set; then 2375 case $ac_new_val in 2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2377 *) ac_arg=$ac_var=$ac_new_val ;; 2378 esac 2379 case " $ac_configure_args " in 2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2382 esac 2383 fi 2384done 2385if $ac_cache_corrupted; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2389$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2391fi 2392## -------------------- ## 2393## Main body of script. ## 2394## -------------------- ## 2395 2396ac_ext=c 2397ac_cpp='$CPP $CPPFLAGS' 2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2400ac_compiler_gnu=$ac_cv_c_compiler_gnu 2401 2402 2403 2404 2405 2406# Check whether --enable-silent-rules was given. 2407if test "${enable_silent_rules+set}" = set; then : 2408 enableval=$enable_silent_rules; 2409fi 2410 2411case $enable_silent_rules in 2412yes) AM_DEFAULT_VERBOSITY=0;; 2413no) AM_DEFAULT_VERBOSITY=1;; 2414*) AM_DEFAULT_VERBOSITY=0;; 2415esac 2416am_make=${MAKE-make} 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2418$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2419if ${am_cv_make_support_nested_variables+:} false; then : 2420 $as_echo_n "(cached) " >&6 2421else 2422 if $as_echo 'TRUE=$(BAR$(V)) 2423BAR0=false 2424BAR1=true 2425V=1 2426am__doit: 2427 @$(TRUE) 2428.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2429 am_cv_make_support_nested_variables=yes 2430else 2431 am_cv_make_support_nested_variables=no 2432fi 2433fi 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2435$as_echo "$am_cv_make_support_nested_variables" >&6; } 2436if test $am_cv_make_support_nested_variables = yes; then 2437 AM_V='$(V)' 2438 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2439else 2440 AM_V=$AM_DEFAULT_VERBOSITY 2441 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2442fi 2443AM_BACKSLASH='\' 2444 2445 2446 2447# For libtool. 2448OPUS_LT_CURRENT=4 2449OPUS_LT_REVISION=0 2450OPUS_LT_AGE=4 2451 2452 2453 2454 2455 2456am__api_version='1.11' 2457 2458ac_aux_dir= 2459for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2460 if test -f "$ac_dir/install-sh"; then 2461 ac_aux_dir=$ac_dir 2462 ac_install_sh="$ac_aux_dir/install-sh -c" 2463 break 2464 elif test -f "$ac_dir/install.sh"; then 2465 ac_aux_dir=$ac_dir 2466 ac_install_sh="$ac_aux_dir/install.sh -c" 2467 break 2468 elif test -f "$ac_dir/shtool"; then 2469 ac_aux_dir=$ac_dir 2470 ac_install_sh="$ac_aux_dir/shtool install -c" 2471 break 2472 fi 2473done 2474if test -z "$ac_aux_dir"; then 2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2476fi 2477 2478# These three variables are undocumented and unsupported, 2479# and are intended to be withdrawn in a future Autoconf release. 2480# They can cause serious problems if a builder's source tree is in a directory 2481# whose full name contains unusual characters. 2482ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2483ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2484ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2485 2486 2487# Find a good install program. We prefer a C program (faster), 2488# so one script is as good as another. But avoid the broken or 2489# incompatible versions: 2490# SysV /etc/install, /usr/sbin/install 2491# SunOS /usr/etc/install 2492# IRIX /sbin/install 2493# AIX /bin/install 2494# AmigaOS /C/install, which installs bootblocks on floppy discs 2495# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2496# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2497# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2498# OS/2's system install, which has a completely different semantic 2499# ./install, which can be erroneously created by make from ./install.sh. 2500# Reject install programs that cannot install multiple files. 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2502$as_echo_n "checking for a BSD-compatible install... " >&6; } 2503if test -z "$INSTALL"; then 2504if ${ac_cv_path_install+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506else 2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 # Account for people who put trailing slashes in PATH elements. 2513case $as_dir/ in #(( 2514 ./ | .// | /[cC]/* | \ 2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2517 /usr/ucb/* ) ;; 2518 *) 2519 # OSF1 and SCO ODT 3.0 have their own names for install. 2520 # Don't use installbsd from OSF since it installs stuff as root 2521 # by default. 2522 for ac_prog in ginstall scoinst install; do 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2525 if test $ac_prog = install && 2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2527 # AIX install. It has an incompatible calling convention. 2528 : 2529 elif test $ac_prog = install && 2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2531 # program-specific install script used by HP pwplus--don't use. 2532 : 2533 else 2534 rm -rf conftest.one conftest.two conftest.dir 2535 echo one > conftest.one 2536 echo two > conftest.two 2537 mkdir conftest.dir 2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2539 test -s conftest.one && test -s conftest.two && 2540 test -s conftest.dir/conftest.one && 2541 test -s conftest.dir/conftest.two 2542 then 2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2544 break 3 2545 fi 2546 fi 2547 fi 2548 done 2549 done 2550 ;; 2551esac 2552 2553 done 2554IFS=$as_save_IFS 2555 2556rm -rf conftest.one conftest.two conftest.dir 2557 2558fi 2559 if test "${ac_cv_path_install+set}" = set; then 2560 INSTALL=$ac_cv_path_install 2561 else 2562 # As a last resort, use the slow shell script. Don't cache a 2563 # value for INSTALL within a source directory, because that will 2564 # break other packages using the cache if that directory is 2565 # removed, or if the value is a relative name. 2566 INSTALL=$ac_install_sh 2567 fi 2568fi 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2570$as_echo "$INSTALL" >&6; } 2571 2572# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2573# It thinks the first close brace ends the variable substitution. 2574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2575 2576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2577 2578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2579 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2581$as_echo_n "checking whether build environment is sane... " >&6; } 2582# Just in case 2583sleep 1 2584echo timestamp > conftest.file 2585# Reject unsafe characters in $srcdir or the absolute working directory 2586# name. Accept space and tab only in the latter. 2587am_lf=' 2588' 2589case `pwd` in 2590 *[\\\"\#\$\&\'\`$am_lf]*) 2591 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2592esac 2593case $srcdir in 2594 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2595 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2596esac 2597 2598# Do `set' in a subshell so we don't clobber the current shell's 2599# arguments. Must try -L first in case configure is actually a 2600# symlink; some systems play weird games with the mod time of symlinks 2601# (eg FreeBSD returns the mod time of the symlink's containing 2602# directory). 2603if ( 2604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2605 if test "$*" = "X"; then 2606 # -L didn't work. 2607 set X `ls -t "$srcdir/configure" conftest.file` 2608 fi 2609 rm -f conftest.file 2610 if test "$*" != "X $srcdir/configure conftest.file" \ 2611 && test "$*" != "X conftest.file $srcdir/configure"; then 2612 2613 # If neither matched, then we have a broken ls. This can happen 2614 # if, for instance, CONFIG_SHELL is bash and it inherits a 2615 # broken ls alias from the environment. This has actually 2616 # happened. Such a system could not be considered "sane". 2617 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2618alias in your environment" "$LINENO" 5 2619 fi 2620 2621 test "$2" = conftest.file 2622 ) 2623then 2624 # Ok. 2625 : 2626else 2627 as_fn_error $? "newly created file is older than distributed files! 2628Check your system clock" "$LINENO" 5 2629fi 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2631$as_echo "yes" >&6; } 2632test "$program_prefix" != NONE && 2633 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2634# Use a double $ so make ignores it. 2635test "$program_suffix" != NONE && 2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2637# Double any \ or $. 2638# By default was `s,x,x', remove it if useless. 2639ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2640program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2641 2642# expand $ac_aux_dir to an absolute path 2643am_aux_dir=`cd $ac_aux_dir && pwd` 2644 2645if test x"${MISSING+set}" != xset; then 2646 case $am_aux_dir in 2647 *\ * | *\ *) 2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2649 *) 2650 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2651 esac 2652fi 2653# Use eval to expand $SHELL 2654if eval "$MISSING --run true"; then 2655 am_missing_run="$MISSING --run " 2656else 2657 am_missing_run= 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2659$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2660fi 2661 2662if test x"${install_sh}" != xset; then 2663 case $am_aux_dir in 2664 *\ * | *\ *) 2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2666 *) 2667 install_sh="\${SHELL} $am_aux_dir/install-sh" 2668 esac 2669fi 2670 2671# Installed binaries are usually stripped using `strip' when the user 2672# run `make install-strip'. However `strip' might not be the right 2673# tool to use in cross-compilation environments, therefore Automake 2674# will honor the `STRIP' environment variable to overrule this program. 2675if test "$cross_compiling" != no; then 2676 if test -n "$ac_tool_prefix"; then 2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2678set dummy ${ac_tool_prefix}strip; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_STRIP+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$STRIP"; then 2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704STRIP=$ac_cv_prog_STRIP 2705if test -n "$STRIP"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2707$as_echo "$STRIP" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 2714fi 2715if test -z "$ac_cv_prog_STRIP"; then 2716 ac_ct_STRIP=$STRIP 2717 # Extract the first word of "strip", so it can be a program name with args. 2718set dummy strip; ac_word=$2 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2720$as_echo_n "checking for $ac_word... " >&6; } 2721if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if test -n "$ac_ct_STRIP"; then 2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2734 ac_cv_prog_ac_ct_STRIP="strip" 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2745if test -n "$ac_ct_STRIP"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2747$as_echo "$ac_ct_STRIP" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 if test "x$ac_ct_STRIP" = x; then 2754 STRIP=":" 2755 else 2756 case $cross_compiling:$ac_tool_warned in 2757yes:) 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2760ac_tool_warned=yes ;; 2761esac 2762 STRIP=$ac_ct_STRIP 2763 fi 2764else 2765 STRIP="$ac_cv_prog_STRIP" 2766fi 2767 2768fi 2769INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2770 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2772$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2773if test -z "$MKDIR_P"; then 2774 if ${ac_cv_path_mkdir+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_prog in mkdir gmkdir; do 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2786 'mkdir (GNU coreutils) '* | \ 2787 'mkdir (coreutils) '* | \ 2788 'mkdir (fileutils) '4.1*) 2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2790 break 3;; 2791 esac 2792 done 2793 done 2794 done 2795IFS=$as_save_IFS 2796 2797fi 2798 2799 test -d ./--version && rmdir ./--version 2800 if test "${ac_cv_path_mkdir+set}" = set; then 2801 MKDIR_P="$ac_cv_path_mkdir -p" 2802 else 2803 # As a last resort, use the slow shell script. Don't cache a 2804 # value for MKDIR_P within a source directory, because that will 2805 # break other packages using the cache if that directory is 2806 # removed, or if the value is a relative name. 2807 MKDIR_P="$ac_install_sh -d" 2808 fi 2809fi 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2811$as_echo "$MKDIR_P" >&6; } 2812 2813mkdir_p="$MKDIR_P" 2814case $mkdir_p in 2815 [\\/$]* | ?:[\\/]*) ;; 2816 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2817esac 2818 2819for ac_prog in gawk mawk nawk awk 2820do 2821 # Extract the first word of "$ac_prog", so it can be a program name with args. 2822set dummy $ac_prog; ac_word=$2 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2824$as_echo_n "checking for $ac_word... " >&6; } 2825if ${ac_cv_prog_AWK+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test -n "$AWK"; then 2829 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2838 ac_cv_prog_AWK="$ac_prog" 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843 done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848AWK=$ac_cv_prog_AWK 2849if test -n "$AWK"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2851$as_echo "$AWK" >&6; } 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 2858 test -n "$AWK" && break 2859done 2860 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2862$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2863set x ${MAKE-make} 2864ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2865if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 cat >conftest.make <<\_ACEOF 2869SHELL = /bin/sh 2870all: 2871 @echo '@@@%%%=$(MAKE)=@@@%%%' 2872_ACEOF 2873# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2874case `${MAKE-make} -f conftest.make 2>/dev/null` in 2875 *@@@%%%=?*=@@@%%%*) 2876 eval ac_cv_prog_make_${ac_make}_set=yes;; 2877 *) 2878 eval ac_cv_prog_make_${ac_make}_set=no;; 2879esac 2880rm -f conftest.make 2881fi 2882if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2884$as_echo "yes" >&6; } 2885 SET_MAKE= 2886else 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889 SET_MAKE="MAKE=${MAKE-make}" 2890fi 2891 2892rm -rf .tst 2>/dev/null 2893mkdir .tst 2>/dev/null 2894if test -d .tst; then 2895 am__leading_dot=. 2896else 2897 am__leading_dot=_ 2898fi 2899rmdir .tst 2>/dev/null 2900 2901if test "`cd $srcdir && pwd`" != "`pwd`"; then 2902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2903 # is not polluted with repeated "-I." 2904 am__isrc=' -I$(srcdir)' 2905 # test to see if srcdir already configured 2906 if test -f $srcdir/config.status; then 2907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2908 fi 2909fi 2910 2911# test whether we have cygpath 2912if test -z "$CYGPATH_W"; then 2913 if (cygpath --version) >/dev/null 2>/dev/null; then 2914 CYGPATH_W='cygpath -w' 2915 else 2916 CYGPATH_W=echo 2917 fi 2918fi 2919 2920 2921# Define the identity of the package. 2922 PACKAGE='opus' 2923 VERSION='1.0.3' 2924 2925 2926# Some tools Automake needs. 2927 2928ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2929 2930 2931AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2932 2933 2934AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2935 2936 2937AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2938 2939 2940MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2941 2942# We need awk for the "check" target. The system "awk" is bad on 2943# some platforms. 2944# Always define AMTAR for backward compatibility. Yes, it's still used 2945# in the wild :-( We should find a proper way to deprecate it ... 2946AMTAR='$${TAR-tar}' 2947 2948am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2949 2950 2951 2952 2953 2954 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2956$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2957 # Check whether --enable-maintainer-mode was given. 2958if test "${enable_maintainer_mode+set}" = set; then : 2959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2960else 2961 USE_MAINTAINER_MODE=yes 2962fi 2963 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2965$as_echo "$USE_MAINTAINER_MODE" >&6; } 2966 if test $USE_MAINTAINER_MODE = yes; then 2967 MAINTAINER_MODE_TRUE= 2968 MAINTAINER_MODE_FALSE='#' 2969else 2970 MAINTAINER_MODE_TRUE='#' 2971 MAINTAINER_MODE_FALSE= 2972fi 2973 2974 MAINT=$MAINTAINER_MODE_TRUE 2975 2976 2977 2978# Make sure we can run config.sub. 2979$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2980 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2981 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2983$as_echo_n "checking build system type... " >&6; } 2984if ${ac_cv_build+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 ac_build_alias=$build_alias 2988test "x$ac_build_alias" = x && 2989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2990test "x$ac_build_alias" = x && 2991 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2992ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2993 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2994 2995fi 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2997$as_echo "$ac_cv_build" >&6; } 2998case $ac_cv_build in 2999*-*-*) ;; 3000*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3001esac 3002build=$ac_cv_build 3003ac_save_IFS=$IFS; IFS='-' 3004set x $ac_cv_build 3005shift 3006build_cpu=$1 3007build_vendor=$2 3008shift; shift 3009# Remember, the first character of IFS is used to create $*, 3010# except with old shells: 3011build_os=$* 3012IFS=$ac_save_IFS 3013case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3014 3015 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3017$as_echo_n "checking host system type... " >&6; } 3018if ${ac_cv_host+:} false; then : 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test "x$host_alias" = x; then 3022 ac_cv_host=$ac_cv_build 3023else 3024 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3025 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3026fi 3027 3028fi 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3030$as_echo "$ac_cv_host" >&6; } 3031case $ac_cv_host in 3032*-*-*) ;; 3033*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3034esac 3035host=$ac_cv_host 3036ac_save_IFS=$IFS; IFS='-' 3037set x $ac_cv_host 3038shift 3039host_cpu=$1 3040host_vendor=$2 3041shift; shift 3042# Remember, the first character of IFS is used to create $*, 3043# except with old shells: 3044host_os=$* 3045IFS=$ac_save_IFS 3046case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3047 3048 3049 3050case $host_os in 3051 *mingw32* ) MINGW32=yes;; 3052 * ) MINGW32=no;; 3053esac 3054 3055case `pwd` in 3056 *\ * | *\ *) 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3058$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3059esac 3060 3061 3062 3063macro_version='2.4.2' 3064macro_revision='1.3337' 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078ltmain="$ac_aux_dir/ltmain.sh" 3079 3080# Backslashify metacharacters that are still active within 3081# double-quoted strings. 3082sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3083 3084# Same as above, but do not quote variable references. 3085double_quote_subst='s/\(["`\\]\)/\\\1/g' 3086 3087# Sed substitution to delay expansion of an escaped shell variable in a 3088# double_quote_subst'ed string. 3089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3090 3091# Sed substitution to delay expansion of an escaped single quote. 3092delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3093 3094# Sed substitution to avoid accidental globbing in evaled expressions 3095no_glob_subst='s/\*/\\\*/g' 3096 3097ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3098ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3099ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3100 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3102$as_echo_n "checking how to print strings... " >&6; } 3103# Test print first, because it will be a builtin if present. 3104if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3105 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3106 ECHO='print -r --' 3107elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3108 ECHO='printf %s\n' 3109else 3110 # Use this function as a fallback that always works. 3111 func_fallback_echo () 3112 { 3113 eval 'cat <<_LTECHO_EOF 3114$1 3115_LTECHO_EOF' 3116 } 3117 ECHO='func_fallback_echo' 3118fi 3119 3120# func_echo_all arg... 3121# Invoke $ECHO with all args, space-separated. 3122func_echo_all () 3123{ 3124 $ECHO "" 3125} 3126 3127case "$ECHO" in 3128 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3129$as_echo "printf" >&6; } ;; 3130 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3131$as_echo "print -r" >&6; } ;; 3132 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3133$as_echo "cat" >&6; } ;; 3134esac 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149DEPDIR="${am__leading_dot}deps" 3150 3151ac_config_commands="$ac_config_commands depfiles" 3152 3153 3154am_make=${MAKE-make} 3155cat > confinc << 'END' 3156am__doit: 3157 @echo this is the am__doit target 3158.PHONY: am__doit 3159END 3160# If we don't find an include directive, just comment out the code. 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3162$as_echo_n "checking for style of include used by $am_make... " >&6; } 3163am__include="#" 3164am__quote= 3165_am_result=none 3166# First try GNU make style include. 3167echo "include confinc" > confmf 3168# Ignore all kinds of additional output from `make'. 3169case `$am_make -s -f confmf 2> /dev/null` in #( 3170*the\ am__doit\ target*) 3171 am__include=include 3172 am__quote= 3173 _am_result=GNU 3174 ;; 3175esac 3176# Now try BSD make style include. 3177if test "$am__include" = "#"; then 3178 echo '.include "confinc"' > confmf 3179 case `$am_make -s -f confmf 2> /dev/null` in #( 3180 *the\ am__doit\ target*) 3181 am__include=.include 3182 am__quote="\"" 3183 _am_result=BSD 3184 ;; 3185 esac 3186fi 3187 3188 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3190$as_echo "$_am_result" >&6; } 3191rm -f confinc confmf 3192 3193# Check whether --enable-dependency-tracking was given. 3194if test "${enable_dependency_tracking+set}" = set; then : 3195 enableval=$enable_dependency_tracking; 3196fi 3197 3198if test "x$enable_dependency_tracking" != xno; then 3199 am_depcomp="$ac_aux_dir/depcomp" 3200 AMDEPBACKSLASH='\' 3201 am__nodep='_no' 3202fi 3203 if test "x$enable_dependency_tracking" != xno; then 3204 AMDEP_TRUE= 3205 AMDEP_FALSE='#' 3206else 3207 AMDEP_TRUE='#' 3208 AMDEP_FALSE= 3209fi 3210 3211 3212ac_ext=c 3213ac_cpp='$CPP $CPPFLAGS' 3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3216ac_compiler_gnu=$ac_cv_c_compiler_gnu 3217if test -n "$ac_tool_prefix"; then 3218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3219set dummy ${ac_tool_prefix}gcc; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_CC+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$CC"; then 3226 ac_cv_prog_CC="$CC" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3235 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243fi 3244fi 3245CC=$ac_cv_prog_CC 3246if test -n "$CC"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3248$as_echo "$CC" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 3255fi 3256if test -z "$ac_cv_prog_CC"; then 3257 ac_ct_CC=$CC 3258 # Extract the first word of "gcc", so it can be a program name with args. 3259set dummy gcc; ac_word=$2 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3261$as_echo_n "checking for $ac_word... " >&6; } 3262if ${ac_cv_prog_ac_ct_CC+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264else 3265 if test -n "$ac_ct_CC"; then 3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3267else 3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3269for as_dir in $PATH 3270do 3271 IFS=$as_save_IFS 3272 test -z "$as_dir" && as_dir=. 3273 for ac_exec_ext in '' $ac_executable_extensions; do 3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3275 ac_cv_prog_ac_ct_CC="gcc" 3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3277 break 2 3278 fi 3279done 3280 done 3281IFS=$as_save_IFS 3282 3283fi 3284fi 3285ac_ct_CC=$ac_cv_prog_ac_ct_CC 3286if test -n "$ac_ct_CC"; then 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3288$as_echo "$ac_ct_CC" >&6; } 3289else 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291$as_echo "no" >&6; } 3292fi 3293 3294 if test "x$ac_ct_CC" = x; then 3295 CC="" 3296 else 3297 case $cross_compiling:$ac_tool_warned in 3298yes:) 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3301ac_tool_warned=yes ;; 3302esac 3303 CC=$ac_ct_CC 3304 fi 3305else 3306 CC="$ac_cv_prog_CC" 3307fi 3308 3309if test -z "$CC"; then 3310 if test -n "$ac_tool_prefix"; then 3311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3312set dummy ${ac_tool_prefix}cc; ac_word=$2 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3314$as_echo_n "checking for $ac_word... " >&6; } 3315if ${ac_cv_prog_CC+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 if test -n "$CC"; then 3319 ac_cv_prog_CC="$CC" # Let the user override the test. 3320else 3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3322for as_dir in $PATH 3323do 3324 IFS=$as_save_IFS 3325 test -z "$as_dir" && as_dir=. 3326 for ac_exec_ext in '' $ac_executable_extensions; do 3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3328 ac_cv_prog_CC="${ac_tool_prefix}cc" 3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3330 break 2 3331 fi 3332done 3333 done 3334IFS=$as_save_IFS 3335 3336fi 3337fi 3338CC=$ac_cv_prog_CC 3339if test -n "$CC"; then 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3341$as_echo "$CC" >&6; } 3342else 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3344$as_echo "no" >&6; } 3345fi 3346 3347 3348 fi 3349fi 3350if test -z "$CC"; then 3351 # Extract the first word of "cc", so it can be a program name with args. 3352set dummy cc; ac_word=$2 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354$as_echo_n "checking for $ac_word... " >&6; } 3355if ${ac_cv_prog_CC+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357else 3358 if test -n "$CC"; then 3359 ac_cv_prog_CC="$CC" # Let the user override the test. 3360else 3361 ac_prog_rejected=no 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3370 ac_prog_rejected=yes 3371 continue 3372 fi 3373 ac_cv_prog_CC="cc" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381if test $ac_prog_rejected = yes; then 3382 # We found a bogon in the path, so make sure we never use it. 3383 set dummy $ac_cv_prog_CC 3384 shift 3385 if test $# != 0; then 3386 # We chose a different compiler from the bogus one. 3387 # However, it has the same basename, so the bogon will be chosen 3388 # first if we set CC to just the basename; use the full file name. 3389 shift 3390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3391 fi 3392fi 3393fi 3394fi 3395CC=$ac_cv_prog_CC 3396if test -n "$CC"; then 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3398$as_echo "$CC" >&6; } 3399else 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3401$as_echo "no" >&6; } 3402fi 3403 3404 3405fi 3406if test -z "$CC"; then 3407 if test -n "$ac_tool_prefix"; then 3408 for ac_prog in cl.exe 3409 do 3410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3411set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413$as_echo_n "checking for $ac_word... " >&6; } 3414if ${ac_cv_prog_CC+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 if test -n "$CC"; then 3418 ac_cv_prog_CC="$CC" # Let the user override the test. 3419else 3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421for as_dir in $PATH 3422do 3423 IFS=$as_save_IFS 3424 test -z "$as_dir" && as_dir=. 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3429 break 2 3430 fi 3431done 3432 done 3433IFS=$as_save_IFS 3434 3435fi 3436fi 3437CC=$ac_cv_prog_CC 3438if test -n "$CC"; then 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3440$as_echo "$CC" >&6; } 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444fi 3445 3446 3447 test -n "$CC" && break 3448 done 3449fi 3450if test -z "$CC"; then 3451 ac_ct_CC=$CC 3452 for ac_prog in cl.exe 3453do 3454 # Extract the first word of "$ac_prog", so it can be a program name with args. 3455set dummy $ac_prog; ac_word=$2 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457$as_echo_n "checking for $ac_word... " >&6; } 3458if ${ac_cv_prog_ac_ct_CC+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 if test -n "$ac_ct_CC"; then 3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3463else 3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3471 ac_cv_prog_ac_ct_CC="$ac_prog" 3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479fi 3480fi 3481ac_ct_CC=$ac_cv_prog_ac_ct_CC 3482if test -n "$ac_ct_CC"; then 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3484$as_echo "$ac_ct_CC" >&6; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487$as_echo "no" >&6; } 3488fi 3489 3490 3491 test -n "$ac_ct_CC" && break 3492done 3493 3494 if test "x$ac_ct_CC" = x; then 3495 CC="" 3496 else 3497 case $cross_compiling:$ac_tool_warned in 3498yes:) 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3501ac_tool_warned=yes ;; 3502esac 3503 CC=$ac_ct_CC 3504 fi 3505fi 3506 3507fi 3508 3509 3510test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3512as_fn_error $? "no acceptable C compiler found in \$PATH 3513See \`config.log' for more details" "$LINENO" 5; } 3514 3515# Provide some information about the compiler. 3516$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3517set X $ac_compile 3518ac_compiler=$2 3519for ac_option in --version -v -V -qversion; do 3520 { { ac_try="$ac_compiler $ac_option >&5" 3521case "(($ac_try" in 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3523 *) ac_try_echo=$ac_try;; 3524esac 3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3526$as_echo "$ac_try_echo"; } >&5 3527 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3528 ac_status=$? 3529 if test -s conftest.err; then 3530 sed '10a\ 3531... rest of stderr output deleted ... 3532 10q' conftest.err >conftest.er1 3533 cat conftest.er1 >&5 3534 fi 3535 rm -f conftest.er1 conftest.err 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; } 3538done 3539 3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551ac_clean_files_save=$ac_clean_files 3552ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3553# Try to create an executable without -o first, disregard a.out. 3554# It will help us diagnose broken compilers, and finding out an intuition 3555# of exeext. 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3557$as_echo_n "checking whether the C compiler works... " >&6; } 3558ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3559 3560# The possible output files: 3561ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3562 3563ac_rmfiles= 3564for ac_file in $ac_files 3565do 3566 case $ac_file in 3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3568 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3569 esac 3570done 3571rm -f $ac_rmfiles 3572 3573if { { ac_try="$ac_link_default" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579$as_echo "$ac_try_echo"; } >&5 3580 (eval "$ac_link_default") 2>&5 3581 ac_status=$? 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; }; then : 3584 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3585# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3586# in a Makefile. We should not override ac_cv_exeext if it was cached, 3587# so that the user can short-circuit this test for compilers unknown to 3588# Autoconf. 3589for ac_file in $ac_files '' 3590do 3591 test -f "$ac_file" || continue 3592 case $ac_file in 3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3594 ;; 3595 [ab].out ) 3596 # We found the default executable, but exeext='' is most 3597 # certainly right. 3598 break;; 3599 *.* ) 3600 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3601 then :; else 3602 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3603 fi 3604 # We set ac_cv_exeext here because the later test for it is not 3605 # safe: cross compilers may not add the suffix if given an `-o' 3606 # argument, so we may need to know it at that point already. 3607 # Even if this section looks crufty: it has the advantage of 3608 # actually working. 3609 break;; 3610 * ) 3611 break;; 3612 esac 3613done 3614test "$ac_cv_exeext" = no && ac_cv_exeext= 3615 3616else 3617 ac_file='' 3618fi 3619if test -z "$ac_file"; then : 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621$as_echo "no" >&6; } 3622$as_echo "$as_me: failed program was:" >&5 3623sed 's/^/| /' conftest.$ac_ext >&5 3624 3625{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3627as_fn_error 77 "C compiler cannot create executables 3628See \`config.log' for more details" "$LINENO" 5; } 3629else 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3631$as_echo "yes" >&6; } 3632fi 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3634$as_echo_n "checking for C compiler default output file name... " >&6; } 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3636$as_echo "$ac_file" >&6; } 3637ac_exeext=$ac_cv_exeext 3638 3639rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3640ac_clean_files=$ac_clean_files_save 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3642$as_echo_n "checking for suffix of executables... " >&6; } 3643if { { ac_try="$ac_link" 3644case "(($ac_try" in 3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3646 *) ac_try_echo=$ac_try;; 3647esac 3648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3649$as_echo "$ac_try_echo"; } >&5 3650 (eval "$ac_link") 2>&5 3651 ac_status=$? 3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3653 test $ac_status = 0; }; then : 3654 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3655# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3656# work properly (i.e., refer to `conftest.exe'), while it won't with 3657# `rm'. 3658for ac_file in conftest.exe conftest conftest.*; do 3659 test -f "$ac_file" || continue 3660 case $ac_file in 3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3663 break;; 3664 * ) break;; 3665 esac 3666done 3667else 3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3670as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3671See \`config.log' for more details" "$LINENO" 5; } 3672fi 3673rm -f conftest conftest$ac_cv_exeext 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3675$as_echo "$ac_cv_exeext" >&6; } 3676 3677rm -f conftest.$ac_ext 3678EXEEXT=$ac_cv_exeext 3679ac_exeext=$EXEEXT 3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682#include <stdio.h> 3683int 3684main () 3685{ 3686FILE *f = fopen ("conftest.out", "w"); 3687 return ferror (f) || fclose (f) != 0; 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693ac_clean_files="$ac_clean_files conftest.out" 3694# Check that the compiler produces executables we can run. If not, either 3695# the compiler is broken, or we cross compile. 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3697$as_echo_n "checking whether we are cross compiling... " >&6; } 3698if test "$cross_compiling" != yes; then 3699 { { ac_try="$ac_link" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705$as_echo "$ac_try_echo"; } >&5 3706 (eval "$ac_link") 2>&5 3707 ac_status=$? 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3709 test $ac_status = 0; } 3710 if { ac_try='./conftest$ac_cv_exeext' 3711 { { case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716$as_echo "$ac_try_echo"; } >&5 3717 (eval "$ac_try") 2>&5 3718 ac_status=$? 3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; }; }; then 3721 cross_compiling=no 3722 else 3723 if test "$cross_compiling" = maybe; then 3724 cross_compiling=yes 3725 else 3726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3728as_fn_error $? "cannot run C compiled programs. 3729If you meant to cross compile, use \`--host'. 3730See \`config.log' for more details" "$LINENO" 5; } 3731 fi 3732 fi 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3735$as_echo "$cross_compiling" >&6; } 3736 3737rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3738ac_clean_files=$ac_clean_files_save 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3740$as_echo_n "checking for suffix of object files... " >&6; } 3741if ${ac_cv_objext+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746 3747int 3748main () 3749{ 3750 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755rm -f conftest.o conftest.obj 3756if { { ac_try="$ac_compile" 3757case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760esac 3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762$as_echo "$ac_try_echo"; } >&5 3763 (eval "$ac_compile") 2>&5 3764 ac_status=$? 3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; }; then : 3767 for ac_file in conftest.o conftest.obj conftest.*; do 3768 test -f "$ac_file" || continue; 3769 case $ac_file in 3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3771 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3772 break;; 3773 esac 3774done 3775else 3776 $as_echo "$as_me: failed program was:" >&5 3777sed 's/^/| /' conftest.$ac_ext >&5 3778 3779{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3781as_fn_error $? "cannot compute suffix of object files: cannot compile 3782See \`config.log' for more details" "$LINENO" 5; } 3783fi 3784rm -f conftest.$ac_cv_objext conftest.$ac_ext 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3787$as_echo "$ac_cv_objext" >&6; } 3788OBJEXT=$ac_cv_objext 3789ac_objext=$OBJEXT 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3791$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3792if ${ac_cv_c_compiler_gnu+:} false; then : 3793 $as_echo_n "(cached) " >&6 3794else 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797 3798int 3799main () 3800{ 3801#ifndef __GNUC__ 3802 choke me 3803#endif 3804 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809if ac_fn_c_try_compile "$LINENO"; then : 3810 ac_compiler_gnu=yes 3811else 3812 ac_compiler_gnu=no 3813fi 3814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3815ac_cv_c_compiler_gnu=$ac_compiler_gnu 3816 3817fi 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3819$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3820if test $ac_compiler_gnu = yes; then 3821 GCC=yes 3822else 3823 GCC= 3824fi 3825ac_test_CFLAGS=${CFLAGS+set} 3826ac_save_CFLAGS=$CFLAGS 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3828$as_echo_n "checking whether $CC accepts -g... " >&6; } 3829if ${ac_cv_prog_cc_g+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 ac_save_c_werror_flag=$ac_c_werror_flag 3833 ac_c_werror_flag=yes 3834 ac_cv_prog_cc_g=no 3835 CFLAGS="-g" 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_c_try_compile "$LINENO"; then : 3848 ac_cv_prog_cc_g=yes 3849else 3850 CFLAGS="" 3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3852/* end confdefs.h. */ 3853 3854int 3855main () 3856{ 3857 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862if ac_fn_c_try_compile "$LINENO"; then : 3863 3864else 3865 ac_c_werror_flag=$ac_save_c_werror_flag 3866 CFLAGS="-g" 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878if ac_fn_c_try_compile "$LINENO"; then : 3879 ac_cv_prog_cc_g=yes 3880fi 3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3882fi 3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3884fi 3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3886 ac_c_werror_flag=$ac_save_c_werror_flag 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3889$as_echo "$ac_cv_prog_cc_g" >&6; } 3890if test "$ac_test_CFLAGS" = set; then 3891 CFLAGS=$ac_save_CFLAGS 3892elif test $ac_cv_prog_cc_g = yes; then 3893 if test "$GCC" = yes; then 3894 CFLAGS="-g -O2" 3895 else 3896 CFLAGS="-g" 3897 fi 3898else 3899 if test "$GCC" = yes; then 3900 CFLAGS="-O2" 3901 else 3902 CFLAGS= 3903 fi 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3906$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3907if ${ac_cv_prog_cc_c89+:} false; then : 3908 $as_echo_n "(cached) " >&6 3909else 3910 ac_cv_prog_cc_c89=no 3911ac_save_CC=$CC 3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914#include <stdarg.h> 3915#include <stdio.h> 3916#include <sys/types.h> 3917#include <sys/stat.h> 3918/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3919struct buf { int x; }; 3920FILE * (*rcsopen) (struct buf *, struct stat *, int); 3921static char *e (p, i) 3922 char **p; 3923 int i; 3924{ 3925 return p[i]; 3926} 3927static char *f (char * (*g) (char **, int), char **p, ...) 3928{ 3929 char *s; 3930 va_list v; 3931 va_start (v,p); 3932 s = g (p, va_arg (v,int)); 3933 va_end (v); 3934 return s; 3935} 3936 3937/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3938 function prototypes and stuff, but not '\xHH' hex character constants. 3939 These don't provoke an error unfortunately, instead are silently treated 3940 as 'x'. The following induces an error, until -std is added to get 3941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3942 array size at least. It's necessary to write '\x00'==0 to get something 3943 that's true only with -std. */ 3944int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3945 3946/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3947 inside strings and character constants. */ 3948#define FOO(x) 'x' 3949int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3950 3951int test (int i, double x); 3952struct s1 {int (*f) (int a);}; 3953struct s2 {int (*f) (double a);}; 3954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3955int argc; 3956char **argv; 3957int 3958main () 3959{ 3960return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3967do 3968 CC="$ac_save_CC $ac_arg" 3969 if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_cv_prog_cc_c89=$ac_arg 3971fi 3972rm -f core conftest.err conftest.$ac_objext 3973 test "x$ac_cv_prog_cc_c89" != "xno" && break 3974done 3975rm -f conftest.$ac_ext 3976CC=$ac_save_CC 3977 3978fi 3979# AC_CACHE_VAL 3980case "x$ac_cv_prog_cc_c89" in 3981 x) 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3983$as_echo "none needed" >&6; } ;; 3984 xno) 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3986$as_echo "unsupported" >&6; } ;; 3987 *) 3988 CC="$CC $ac_cv_prog_cc_c89" 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3990$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3991esac 3992if test "x$ac_cv_prog_cc_c89" != xno; then : 3993 3994fi 3995 3996ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001 4002depcc="$CC" am_compiler_list= 4003 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4005$as_echo_n "checking dependency style of $depcc... " >&6; } 4006if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4010 # We make a subdir and do the tests there. Otherwise we can end up 4011 # making bogus files that we don't know about and never remove. For 4012 # instance it was reported that on HP-UX the gcc test will end up 4013 # making a dummy file named `D' -- because `-MD' means `put the output 4014 # in D'. 4015 rm -rf conftest.dir 4016 mkdir conftest.dir 4017 # Copy depcomp to subdir because otherwise we won't find it if we're 4018 # using a relative directory. 4019 cp "$am_depcomp" conftest.dir 4020 cd conftest.dir 4021 # We will build objects and dependencies in a subdirectory because 4022 # it helps to detect inapplicable dependency modes. For instance 4023 # both Tru64's cc and ICC support -MD to output dependencies as a 4024 # side effect of compilation, but ICC will put the dependencies in 4025 # the current directory while Tru64 will put them in the object 4026 # directory. 4027 mkdir sub 4028 4029 am_cv_CC_dependencies_compiler_type=none 4030 if test "$am_compiler_list" = ""; then 4031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4032 fi 4033 am__universal=false 4034 case " $depcc " in #( 4035 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4036 esac 4037 4038 for depmode in $am_compiler_list; do 4039 # Setup a source with many dependencies, because some compilers 4040 # like to wrap large dependency lists on column 80 (with \), and 4041 # we should not choose a depcomp mode which is confused by this. 4042 # 4043 # We need to recreate these files for each test, as the compiler may 4044 # overwrite some of them when testing with obscure command lines. 4045 # This happens at least with the AIX C compiler. 4046 : > sub/conftest.c 4047 for i in 1 2 3 4 5 6; do 4048 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4050 # Solaris 8's {/usr,}/bin/sh. 4051 touch sub/conftst$i.h 4052 done 4053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4054 4055 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4056 # mode. It turns out that the SunPro C++ compiler does not properly 4057 # handle `-M -o', and we need to detect this. Also, some Intel 4058 # versions had trouble with output in subdirs 4059 am__obj=sub/conftest.${OBJEXT-o} 4060 am__minus_obj="-o $am__obj" 4061 case $depmode in 4062 gcc) 4063 # This depmode causes a compiler race in universal mode. 4064 test "$am__universal" = false || continue 4065 ;; 4066 nosideeffect) 4067 # after this tag, mechanisms are not by side-effect, so they'll 4068 # only be used when explicitly requested 4069 if test "x$enable_dependency_tracking" = xyes; then 4070 continue 4071 else 4072 break 4073 fi 4074 ;; 4075 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4076 # This compiler won't grok `-c -o', but also, the minuso test has 4077 # not run yet. These depmodes are late enough in the game, and 4078 # so weak that their functioning should not be impacted. 4079 am__obj=conftest.${OBJEXT-o} 4080 am__minus_obj= 4081 ;; 4082 none) break ;; 4083 esac 4084 if depmode=$depmode \ 4085 source=sub/conftest.c object=$am__obj \ 4086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4088 >/dev/null 2>conftest.err && 4089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4093 # icc doesn't choke on unknown options, it will just issue warnings 4094 # or remarks (even with -Werror). So we grep stderr for any message 4095 # that says an option was ignored or not supported. 4096 # When given -MP, icc 7.0 and 7.1 complain thusly: 4097 # icc: Command line warning: ignoring option '-M'; no argument required 4098 # The diagnosis changed in icc 8.0: 4099 # icc: Command line remark: option '-MP' not supported 4100 if (grep 'ignoring option' conftest.err || 4101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4102 am_cv_CC_dependencies_compiler_type=$depmode 4103 break 4104 fi 4105 fi 4106 done 4107 4108 cd .. 4109 rm -rf conftest.dir 4110else 4111 am_cv_CC_dependencies_compiler_type=none 4112fi 4113 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4116$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4118 4119 if 4120 test "x$enable_dependency_tracking" != xno \ 4121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4122 am__fastdepCC_TRUE= 4123 am__fastdepCC_FALSE='#' 4124else 4125 am__fastdepCC_TRUE='#' 4126 am__fastdepCC_FALSE= 4127fi 4128 4129 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4131$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4132if ${ac_cv_path_SED+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4136 for ac_i in 1 2 3 4 5 6 7; do 4137 ac_script="$ac_script$as_nl$ac_script" 4138 done 4139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4140 { ac_script=; unset ac_script;} 4141 if test -z "$SED"; then 4142 ac_path_SED_found=false 4143 # Loop through the user's path and test for each of PROGNAME-LIST 4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4145for as_dir in $PATH 4146do 4147 IFS=$as_save_IFS 4148 test -z "$as_dir" && as_dir=. 4149 for ac_prog in sed gsed; do 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4152 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4153# Check for GNU ac_path_SED and select it if it is found. 4154 # Check for GNU $ac_path_SED 4155case `"$ac_path_SED" --version 2>&1` in 4156*GNU*) 4157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4158*) 4159 ac_count=0 4160 $as_echo_n 0123456789 >"conftest.in" 4161 while : 4162 do 4163 cat "conftest.in" "conftest.in" >"conftest.tmp" 4164 mv "conftest.tmp" "conftest.in" 4165 cp "conftest.in" "conftest.nl" 4166 $as_echo '' >> "conftest.nl" 4167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4169 as_fn_arith $ac_count + 1 && ac_count=$as_val 4170 if test $ac_count -gt ${ac_path_SED_max-0}; then 4171 # Best one so far, save it but keep looking for a better one 4172 ac_cv_path_SED="$ac_path_SED" 4173 ac_path_SED_max=$ac_count 4174 fi 4175 # 10*(2^10) chars as input seems more than enough 4176 test $ac_count -gt 10 && break 4177 done 4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4179esac 4180 4181 $ac_path_SED_found && break 3 4182 done 4183 done 4184 done 4185IFS=$as_save_IFS 4186 if test -z "$ac_cv_path_SED"; then 4187 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4188 fi 4189else 4190 ac_cv_path_SED=$SED 4191fi 4192 4193fi 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4195$as_echo "$ac_cv_path_SED" >&6; } 4196 SED="$ac_cv_path_SED" 4197 rm -f conftest.sed 4198 4199test -z "$SED" && SED=sed 4200Xsed="$SED -e 1s/^X//" 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4213$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4214if ${ac_cv_path_GREP+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 if test -z "$GREP"; then 4218 ac_path_GREP_found=false 4219 # Loop through the user's path and test for each of PROGNAME-LIST 4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4222do 4223 IFS=$as_save_IFS 4224 test -z "$as_dir" && as_dir=. 4225 for ac_prog in grep ggrep; do 4226 for ac_exec_ext in '' $ac_executable_extensions; do 4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4229# Check for GNU ac_path_GREP and select it if it is found. 4230 # Check for GNU $ac_path_GREP 4231case `"$ac_path_GREP" --version 2>&1` in 4232*GNU*) 4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4234*) 4235 ac_count=0 4236 $as_echo_n 0123456789 >"conftest.in" 4237 while : 4238 do 4239 cat "conftest.in" "conftest.in" >"conftest.tmp" 4240 mv "conftest.tmp" "conftest.in" 4241 cp "conftest.in" "conftest.nl" 4242 $as_echo 'GREP' >> "conftest.nl" 4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4245 as_fn_arith $ac_count + 1 && ac_count=$as_val 4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4247 # Best one so far, save it but keep looking for a better one 4248 ac_cv_path_GREP="$ac_path_GREP" 4249 ac_path_GREP_max=$ac_count 4250 fi 4251 # 10*(2^10) chars as input seems more than enough 4252 test $ac_count -gt 10 && break 4253 done 4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4255esac 4256 4257 $ac_path_GREP_found && break 3 4258 done 4259 done 4260 done 4261IFS=$as_save_IFS 4262 if test -z "$ac_cv_path_GREP"; then 4263 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4264 fi 4265else 4266 ac_cv_path_GREP=$GREP 4267fi 4268 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4271$as_echo "$ac_cv_path_GREP" >&6; } 4272 GREP="$ac_cv_path_GREP" 4273 4274 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4276$as_echo_n "checking for egrep... " >&6; } 4277if ${ac_cv_path_EGREP+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4281 then ac_cv_path_EGREP="$GREP -E" 4282 else 4283 if test -z "$EGREP"; then 4284 ac_path_EGREP_found=false 4285 # Loop through the user's path and test for each of PROGNAME-LIST 4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4288do 4289 IFS=$as_save_IFS 4290 test -z "$as_dir" && as_dir=. 4291 for ac_prog in egrep; do 4292 for ac_exec_ext in '' $ac_executable_extensions; do 4293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4294 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4295# Check for GNU ac_path_EGREP and select it if it is found. 4296 # Check for GNU $ac_path_EGREP 4297case `"$ac_path_EGREP" --version 2>&1` in 4298*GNU*) 4299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4300*) 4301 ac_count=0 4302 $as_echo_n 0123456789 >"conftest.in" 4303 while : 4304 do 4305 cat "conftest.in" "conftest.in" >"conftest.tmp" 4306 mv "conftest.tmp" "conftest.in" 4307 cp "conftest.in" "conftest.nl" 4308 $as_echo 'EGREP' >> "conftest.nl" 4309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4311 as_fn_arith $ac_count + 1 && ac_count=$as_val 4312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4313 # Best one so far, save it but keep looking for a better one 4314 ac_cv_path_EGREP="$ac_path_EGREP" 4315 ac_path_EGREP_max=$ac_count 4316 fi 4317 # 10*(2^10) chars as input seems more than enough 4318 test $ac_count -gt 10 && break 4319 done 4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4321esac 4322 4323 $ac_path_EGREP_found && break 3 4324 done 4325 done 4326 done 4327IFS=$as_save_IFS 4328 if test -z "$ac_cv_path_EGREP"; then 4329 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4330 fi 4331else 4332 ac_cv_path_EGREP=$EGREP 4333fi 4334 4335 fi 4336fi 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4338$as_echo "$ac_cv_path_EGREP" >&6; } 4339 EGREP="$ac_cv_path_EGREP" 4340 4341 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4343$as_echo_n "checking for fgrep... " >&6; } 4344if ${ac_cv_path_FGREP+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4348 then ac_cv_path_FGREP="$GREP -F" 4349 else 4350 if test -z "$FGREP"; then 4351 ac_path_FGREP_found=false 4352 # Loop through the user's path and test for each of PROGNAME-LIST 4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_prog in fgrep; do 4359 for ac_exec_ext in '' $ac_executable_extensions; do 4360 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4361 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4362# Check for GNU ac_path_FGREP and select it if it is found. 4363 # Check for GNU $ac_path_FGREP 4364case `"$ac_path_FGREP" --version 2>&1` in 4365*GNU*) 4366 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4367*) 4368 ac_count=0 4369 $as_echo_n 0123456789 >"conftest.in" 4370 while : 4371 do 4372 cat "conftest.in" "conftest.in" >"conftest.tmp" 4373 mv "conftest.tmp" "conftest.in" 4374 cp "conftest.in" "conftest.nl" 4375 $as_echo 'FGREP' >> "conftest.nl" 4376 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4378 as_fn_arith $ac_count + 1 && ac_count=$as_val 4379 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4380 # Best one so far, save it but keep looking for a better one 4381 ac_cv_path_FGREP="$ac_path_FGREP" 4382 ac_path_FGREP_max=$ac_count 4383 fi 4384 # 10*(2^10) chars as input seems more than enough 4385 test $ac_count -gt 10 && break 4386 done 4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4388esac 4389 4390 $ac_path_FGREP_found && break 3 4391 done 4392 done 4393 done 4394IFS=$as_save_IFS 4395 if test -z "$ac_cv_path_FGREP"; then 4396 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4397 fi 4398else 4399 ac_cv_path_FGREP=$FGREP 4400fi 4401 4402 fi 4403fi 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4405$as_echo "$ac_cv_path_FGREP" >&6; } 4406 FGREP="$ac_cv_path_FGREP" 4407 4408 4409test -z "$GREP" && GREP=grep 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429# Check whether --with-gnu-ld was given. 4430if test "${with_gnu_ld+set}" = set; then : 4431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4432else 4433 with_gnu_ld=no 4434fi 4435 4436ac_prog=ld 4437if test "$GCC" = yes; then 4438 # Check if gcc -print-prog-name=ld gives a path. 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4440$as_echo_n "checking for ld used by $CC... " >&6; } 4441 case $host in 4442 *-*-mingw*) 4443 # gcc leaves a trailing carriage return which upsets mingw 4444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4445 *) 4446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4447 esac 4448 case $ac_prog in 4449 # Accept absolute paths. 4450 [\\/]* | ?:[\\/]*) 4451 re_direlt='/[^/][^/]*/\.\./' 4452 # Canonicalize the pathname of ld 4453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4456 done 4457 test -z "$LD" && LD="$ac_prog" 4458 ;; 4459 "") 4460 # If it fails, then pretend we aren't using GCC. 4461 ac_prog=ld 4462 ;; 4463 *) 4464 # If it is relative, then search for the first ld in PATH. 4465 with_gnu_ld=unknown 4466 ;; 4467 esac 4468elif test "$with_gnu_ld" = yes; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4470$as_echo_n "checking for GNU ld... " >&6; } 4471else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4473$as_echo_n "checking for non-GNU ld... " >&6; } 4474fi 4475if ${lt_cv_path_LD+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 if test -z "$LD"; then 4479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4480 for ac_dir in $PATH; do 4481 IFS="$lt_save_ifs" 4482 test -z "$ac_dir" && ac_dir=. 4483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4484 lt_cv_path_LD="$ac_dir/$ac_prog" 4485 # Check to see if the program is GNU ld. I'd rather use --version, 4486 # but apparently some variants of GNU ld only accept -v. 4487 # Break only if it was the GNU/non-GNU ld that we prefer. 4488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4489 *GNU* | *'with BFD'*) 4490 test "$with_gnu_ld" != no && break 4491 ;; 4492 *) 4493 test "$with_gnu_ld" != yes && break 4494 ;; 4495 esac 4496 fi 4497 done 4498 IFS="$lt_save_ifs" 4499else 4500 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4501fi 4502fi 4503 4504LD="$lt_cv_path_LD" 4505if test -n "$LD"; then 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4507$as_echo "$LD" >&6; } 4508else 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4510$as_echo "no" >&6; } 4511fi 4512test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4514$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4515if ${lt_cv_prog_gnu_ld+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4519case `$LD -v 2>&1 </dev/null` in 4520*GNU* | *'with BFD'*) 4521 lt_cv_prog_gnu_ld=yes 4522 ;; 4523*) 4524 lt_cv_prog_gnu_ld=no 4525 ;; 4526esac 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4529$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4530with_gnu_ld=$lt_cv_prog_gnu_ld 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4541$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4542if ${lt_cv_path_NM+:} false; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 if test -n "$NM"; then 4546 # Let the user override the test. 4547 lt_cv_path_NM="$NM" 4548else 4549 lt_nm_to_check="${ac_tool_prefix}nm" 4550 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4551 lt_nm_to_check="$lt_nm_to_check nm" 4552 fi 4553 for lt_tmp_nm in $lt_nm_to_check; do 4554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4555 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4556 IFS="$lt_save_ifs" 4557 test -z "$ac_dir" && ac_dir=. 4558 tmp_nm="$ac_dir/$lt_tmp_nm" 4559 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4560 # Check to see if the nm accepts a BSD-compat flag. 4561 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4562 # nm: unknown option "B" ignored 4563 # Tru64's nm complains that /dev/null is an invalid object file 4564 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4565 */dev/null* | *'Invalid file or object type'*) 4566 lt_cv_path_NM="$tmp_nm -B" 4567 break 4568 ;; 4569 *) 4570 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4571 */dev/null*) 4572 lt_cv_path_NM="$tmp_nm -p" 4573 break 4574 ;; 4575 *) 4576 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4577 continue # so that we can try to find one that supports BSD flags 4578 ;; 4579 esac 4580 ;; 4581 esac 4582 fi 4583 done 4584 IFS="$lt_save_ifs" 4585 done 4586 : ${lt_cv_path_NM=no} 4587fi 4588fi 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4590$as_echo "$lt_cv_path_NM" >&6; } 4591if test "$lt_cv_path_NM" != "no"; then 4592 NM="$lt_cv_path_NM" 4593else 4594 # Didn't find any BSD compatible name lister, look for dumpbin. 4595 if test -n "$DUMPBIN"; then : 4596 # Let the user override the test. 4597 else 4598 if test -n "$ac_tool_prefix"; then 4599 for ac_prog in dumpbin "link -dump" 4600 do 4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4602set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604$as_echo_n "checking for $ac_word... " >&6; } 4605if ${ac_cv_prog_DUMPBIN+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 if test -n "$DUMPBIN"; then 4609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4610else 4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612for as_dir in $PATH 4613do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623 done 4624IFS=$as_save_IFS 4625 4626fi 4627fi 4628DUMPBIN=$ac_cv_prog_DUMPBIN 4629if test -n "$DUMPBIN"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4631$as_echo "$DUMPBIN" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634$as_echo "no" >&6; } 4635fi 4636 4637 4638 test -n "$DUMPBIN" && break 4639 done 4640fi 4641if test -z "$DUMPBIN"; then 4642 ac_ct_DUMPBIN=$DUMPBIN 4643 for ac_prog in dumpbin "link -dump" 4644do 4645 # Extract the first word of "$ac_prog", so it can be a program name with args. 4646set dummy $ac_prog; ac_word=$2 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4648$as_echo_n "checking for $ac_word... " >&6; } 4649if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -n "$ac_ct_DUMPBIN"; then 4653 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4654else 4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4656for as_dir in $PATH 4657do 4658 IFS=$as_save_IFS 4659 test -z "$as_dir" && as_dir=. 4660 for ac_exec_ext in '' $ac_executable_extensions; do 4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4662 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4664 break 2 4665 fi 4666done 4667 done 4668IFS=$as_save_IFS 4669 4670fi 4671fi 4672ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4673if test -n "$ac_ct_DUMPBIN"; then 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4675$as_echo "$ac_ct_DUMPBIN" >&6; } 4676else 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4678$as_echo "no" >&6; } 4679fi 4680 4681 4682 test -n "$ac_ct_DUMPBIN" && break 4683done 4684 4685 if test "x$ac_ct_DUMPBIN" = x; then 4686 DUMPBIN=":" 4687 else 4688 case $cross_compiling:$ac_tool_warned in 4689yes:) 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4692ac_tool_warned=yes ;; 4693esac 4694 DUMPBIN=$ac_ct_DUMPBIN 4695 fi 4696fi 4697 4698 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4699 *COFF*) 4700 DUMPBIN="$DUMPBIN -symbols" 4701 ;; 4702 *) 4703 DUMPBIN=: 4704 ;; 4705 esac 4706 fi 4707 4708 if test "$DUMPBIN" != ":"; then 4709 NM="$DUMPBIN" 4710 fi 4711fi 4712test -z "$NM" && NM=nm 4713 4714 4715 4716 4717 4718 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4720$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4721if ${lt_cv_nm_interface+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 lt_cv_nm_interface="BSD nm" 4725 echo "int some_variable = 0;" > conftest.$ac_ext 4726 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4727 (eval "$ac_compile" 2>conftest.err) 4728 cat conftest.err >&5 4729 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4730 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4731 cat conftest.err >&5 4732 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4733 cat conftest.out >&5 4734 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4735 lt_cv_nm_interface="MS dumpbin" 4736 fi 4737 rm -f conftest* 4738fi 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4740$as_echo "$lt_cv_nm_interface" >&6; } 4741 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4743$as_echo_n "checking whether ln -s works... " >&6; } 4744LN_S=$as_ln_s 4745if test "$LN_S" = "ln -s"; then 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4747$as_echo "yes" >&6; } 4748else 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4750$as_echo "no, using $LN_S" >&6; } 4751fi 4752 4753# find the maximum length of command line arguments 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4755$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4756if ${lt_cv_sys_max_cmd_len+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 i=0 4760 teststring="ABCD" 4761 4762 case $build_os in 4763 msdosdjgpp*) 4764 # On DJGPP, this test can blow up pretty badly due to problems in libc 4765 # (any single argument exceeding 2000 bytes causes a buffer overrun 4766 # during glob expansion). Even if it were fixed, the result of this 4767 # check would be larger than it should be. 4768 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4769 ;; 4770 4771 gnu*) 4772 # Under GNU Hurd, this test is not required because there is 4773 # no limit to the length of command line arguments. 4774 # Libtool will interpret -1 as no limit whatsoever 4775 lt_cv_sys_max_cmd_len=-1; 4776 ;; 4777 4778 cygwin* | mingw* | cegcc*) 4779 # On Win9x/ME, this test blows up -- it succeeds, but takes 4780 # about 5 minutes as the teststring grows exponentially. 4781 # Worse, since 9x/ME are not pre-emptively multitasking, 4782 # you end up with a "frozen" computer, even though with patience 4783 # the test eventually succeeds (with a max line length of 256k). 4784 # Instead, let's just punt: use the minimum linelength reported by 4785 # all of the supported platforms: 8192 (on NT/2K/XP). 4786 lt_cv_sys_max_cmd_len=8192; 4787 ;; 4788 4789 mint*) 4790 # On MiNT this can take a long time and run out of memory. 4791 lt_cv_sys_max_cmd_len=8192; 4792 ;; 4793 4794 amigaos*) 4795 # On AmigaOS with pdksh, this test takes hours, literally. 4796 # So we just punt and use a minimum line length of 8192. 4797 lt_cv_sys_max_cmd_len=8192; 4798 ;; 4799 4800 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4801 # This has been around since 386BSD, at least. Likely further. 4802 if test -x /sbin/sysctl; then 4803 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4804 elif test -x /usr/sbin/sysctl; then 4805 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4806 else 4807 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4808 fi 4809 # And add a safety zone 4810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4812 ;; 4813 4814 interix*) 4815 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4816 lt_cv_sys_max_cmd_len=196608 4817 ;; 4818 4819 os2*) 4820 # The test takes a long time on OS/2. 4821 lt_cv_sys_max_cmd_len=8192 4822 ;; 4823 4824 osf*) 4825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4827 # nice to cause kernel panics so lets avoid the loop below. 4828 # First set a reasonable default. 4829 lt_cv_sys_max_cmd_len=16384 4830 # 4831 if test -x /sbin/sysconfig; then 4832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4833 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4834 esac 4835 fi 4836 ;; 4837 sco3.2v5*) 4838 lt_cv_sys_max_cmd_len=102400 4839 ;; 4840 sysv5* | sco5v6* | sysv4.2uw2*) 4841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4842 if test -n "$kargmax"; then 4843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4844 else 4845 lt_cv_sys_max_cmd_len=32768 4846 fi 4847 ;; 4848 *) 4849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4850 if test -n "$lt_cv_sys_max_cmd_len"; then 4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4853 else 4854 # Make teststring a little bigger before we do anything with it. 4855 # a 1K string should be a reasonable start. 4856 for i in 1 2 3 4 5 6 7 8 ; do 4857 teststring=$teststring$teststring 4858 done 4859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4860 # If test is not a shell built-in, we'll probably end up computing a 4861 # maximum length that is only half of the actual maximum length, but 4862 # we can't tell. 4863 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4864 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4865 test $i != 17 # 1/2 MB should be enough 4866 do 4867 i=`expr $i + 1` 4868 teststring=$teststring$teststring 4869 done 4870 # Only check the string length outside the loop. 4871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4872 teststring= 4873 # Add a significant safety factor because C++ compilers can tack on 4874 # massive amounts of additional arguments before passing them to the 4875 # linker. It appears as though 1/2 is a usable value. 4876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4877 fi 4878 ;; 4879 esac 4880 4881fi 4882 4883if test -n $lt_cv_sys_max_cmd_len ; then 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4885$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4886else 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4888$as_echo "none" >&6; } 4889fi 4890max_cmd_len=$lt_cv_sys_max_cmd_len 4891 4892 4893 4894 4895 4896 4897: ${CP="cp -f"} 4898: ${MV="mv -f"} 4899: ${RM="rm -f"} 4900 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4902$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4903# Try some XSI features 4904xsi_shell=no 4905( _lt_dummy="a/b/c" 4906 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4907 = c,a/b,b/c, \ 4908 && eval 'test $(( 1 + 1 )) -eq 2 \ 4909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4910 && xsi_shell=yes 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4912$as_echo "$xsi_shell" >&6; } 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4916$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4917lt_shell_append=no 4918( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4919 >/dev/null 2>&1 \ 4920 && lt_shell_append=yes 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4922$as_echo "$lt_shell_append" >&6; } 4923 4924 4925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4926 lt_unset=unset 4927else 4928 lt_unset=false 4929fi 4930 4931 4932 4933 4934 4935# test EBCDIC or ASCII 4936case `echo X|tr X '\101'` in 4937 A) # ASCII based system 4938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4939 lt_SP2NL='tr \040 \012' 4940 lt_NL2SP='tr \015\012 \040\040' 4941 ;; 4942 *) # EBCDIC based system 4943 lt_SP2NL='tr \100 \n' 4944 lt_NL2SP='tr \r\n \100\100' 4945 ;; 4946esac 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4957$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4958if ${lt_cv_to_host_file_cmd+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 case $host in 4962 *-*-mingw* ) 4963 case $build in 4964 *-*-mingw* ) # actually msys 4965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4966 ;; 4967 *-*-cygwin* ) 4968 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4969 ;; 4970 * ) # otherwise, assume *nix 4971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4972 ;; 4973 esac 4974 ;; 4975 *-*-cygwin* ) 4976 case $build in 4977 *-*-mingw* ) # actually msys 4978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4979 ;; 4980 *-*-cygwin* ) 4981 lt_cv_to_host_file_cmd=func_convert_file_noop 4982 ;; 4983 * ) # otherwise, assume *nix 4984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4985 ;; 4986 esac 4987 ;; 4988 * ) # unhandled hosts (and "normal" native builds) 4989 lt_cv_to_host_file_cmd=func_convert_file_noop 4990 ;; 4991esac 4992 4993fi 4994 4995to_host_file_cmd=$lt_cv_to_host_file_cmd 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4997$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4998 4999 5000 5001 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5004$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5005if ${lt_cv_to_tool_file_cmd+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 #assume ordinary cross tools, or native build. 5009lt_cv_to_tool_file_cmd=func_convert_file_noop 5010case $host in 5011 *-*-mingw* ) 5012 case $build in 5013 *-*-mingw* ) # actually msys 5014 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5015 ;; 5016 esac 5017 ;; 5018esac 5019 5020fi 5021 5022to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5024$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5025 5026 5027 5028 5029 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5031$as_echo_n "checking for $LD option to reload object files... " >&6; } 5032if ${lt_cv_ld_reload_flag+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 lt_cv_ld_reload_flag='-r' 5036fi 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5038$as_echo "$lt_cv_ld_reload_flag" >&6; } 5039reload_flag=$lt_cv_ld_reload_flag 5040case $reload_flag in 5041"" | " "*) ;; 5042*) reload_flag=" $reload_flag" ;; 5043esac 5044reload_cmds='$LD$reload_flag -o $output$reload_objs' 5045case $host_os in 5046 cygwin* | mingw* | pw32* | cegcc*) 5047 if test "$GCC" != yes; then 5048 reload_cmds=false 5049 fi 5050 ;; 5051 darwin*) 5052 if test "$GCC" = yes; then 5053 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5054 else 5055 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5056 fi 5057 ;; 5058esac 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068if test -n "$ac_tool_prefix"; then 5069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5070set dummy ${ac_tool_prefix}objdump; ac_word=$2 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5072$as_echo_n "checking for $ac_word... " >&6; } 5073if ${ac_cv_prog_OBJDUMP+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 if test -n "$OBJDUMP"; then 5077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5078else 5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080for as_dir in $PATH 5081do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090done 5091 done 5092IFS=$as_save_IFS 5093 5094fi 5095fi 5096OBJDUMP=$ac_cv_prog_OBJDUMP 5097if test -n "$OBJDUMP"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5099$as_echo "$OBJDUMP" >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102$as_echo "no" >&6; } 5103fi 5104 5105 5106fi 5107if test -z "$ac_cv_prog_OBJDUMP"; then 5108 ac_ct_OBJDUMP=$OBJDUMP 5109 # Extract the first word of "objdump", so it can be a program name with args. 5110set dummy objdump; ac_word=$2 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5112$as_echo_n "checking for $ac_word... " >&6; } 5113if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test -n "$ac_ct_OBJDUMP"; then 5117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5118else 5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120for as_dir in $PATH 5121do 5122 IFS=$as_save_IFS 5123 test -z "$as_dir" && as_dir=. 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5126 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5128 break 2 5129 fi 5130done 5131 done 5132IFS=$as_save_IFS 5133 5134fi 5135fi 5136ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5137if test -n "$ac_ct_OBJDUMP"; then 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5139$as_echo "$ac_ct_OBJDUMP" >&6; } 5140else 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5142$as_echo "no" >&6; } 5143fi 5144 5145 if test "x$ac_ct_OBJDUMP" = x; then 5146 OBJDUMP="false" 5147 else 5148 case $cross_compiling:$ac_tool_warned in 5149yes:) 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5152ac_tool_warned=yes ;; 5153esac 5154 OBJDUMP=$ac_ct_OBJDUMP 5155 fi 5156else 5157 OBJDUMP="$ac_cv_prog_OBJDUMP" 5158fi 5159 5160test -z "$OBJDUMP" && OBJDUMP=objdump 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5171$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5172if ${lt_cv_deplibs_check_method+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 lt_cv_file_magic_cmd='$MAGIC_CMD' 5176lt_cv_file_magic_test_file= 5177lt_cv_deplibs_check_method='unknown' 5178# Need to set the preceding variable on all platforms that support 5179# interlibrary dependencies. 5180# 'none' -- dependencies not supported. 5181# `unknown' -- same as none, but documents that we really don't know. 5182# 'pass_all' -- all dependencies passed with no checks. 5183# 'test_compile' -- check by making test program. 5184# 'file_magic [[regex]]' -- check by looking for files in library path 5185# which responds to the $file_magic_cmd with a given extended regex. 5186# If you have `file' or equivalent on your system and you're not sure 5187# whether `pass_all' will *always* work, you probably want this one. 5188 5189case $host_os in 5190aix[4-9]*) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 5194beos*) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197 5198bsdi[45]*) 5199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5200 lt_cv_file_magic_cmd='/usr/bin/file -L' 5201 lt_cv_file_magic_test_file=/shlib/libc.so 5202 ;; 5203 5204cygwin*) 5205 # func_win32_libid is a shell function defined in ltmain.sh 5206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5207 lt_cv_file_magic_cmd='func_win32_libid' 5208 ;; 5209 5210mingw* | pw32*) 5211 # Base MSYS/MinGW do not provide the 'file' command needed by 5212 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5213 # unless we find 'file', for example because we are cross-compiling. 5214 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5215 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5217 lt_cv_file_magic_cmd='func_win32_libid' 5218 else 5219 # Keep this pattern in sync with the one in func_win32_libid. 5220 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5221 lt_cv_file_magic_cmd='$OBJDUMP -f' 5222 fi 5223 ;; 5224 5225cegcc*) 5226 # use the weaker test based on 'objdump'. See mingw*. 5227 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5228 lt_cv_file_magic_cmd='$OBJDUMP -f' 5229 ;; 5230 5231darwin* | rhapsody*) 5232 lt_cv_deplibs_check_method=pass_all 5233 ;; 5234 5235freebsd* | dragonfly*) 5236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5237 case $host_cpu in 5238 i*86 ) 5239 # Not sure whether the presence of OpenBSD here was a mistake. 5240 # Let's accept both of them until this is cleared up. 5241 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5242 lt_cv_file_magic_cmd=/usr/bin/file 5243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5244 ;; 5245 esac 5246 else 5247 lt_cv_deplibs_check_method=pass_all 5248 fi 5249 ;; 5250 5251gnu*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255haiku*) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 5259hpux10.20* | hpux11*) 5260 lt_cv_file_magic_cmd=/usr/bin/file 5261 case $host_cpu in 5262 ia64*) 5263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5264 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5265 ;; 5266 hppa*64*) 5267 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]' 5268 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5269 ;; 5270 *) 5271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5272 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5273 ;; 5274 esac 5275 ;; 5276 5277interix[3-9]*) 5278 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5280 ;; 5281 5282irix5* | irix6* | nonstopux*) 5283 case $LD in 5284 *-32|*"-32 ") libmagic=32-bit;; 5285 *-n32|*"-n32 ") libmagic=N32;; 5286 *-64|*"-64 ") libmagic=64-bit;; 5287 *) libmagic=never-match;; 5288 esac 5289 lt_cv_deplibs_check_method=pass_all 5290 ;; 5291 5292# This must be glibc/ELF. 5293linux* | k*bsd*-gnu | kopensolaris*-gnu) 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 5297netbsd*) 5298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5300 else 5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5302 fi 5303 ;; 5304 5305newos6*) 5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5307 lt_cv_file_magic_cmd=/usr/bin/file 5308 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5309 ;; 5310 5311*nto* | *qnx*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315openbsd*) 5316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5318 else 5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5320 fi 5321 ;; 5322 5323osf3* | osf4* | osf5*) 5324 lt_cv_deplibs_check_method=pass_all 5325 ;; 5326 5327rdos*) 5328 lt_cv_deplibs_check_method=pass_all 5329 ;; 5330 5331solaris*) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334 5335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5336 lt_cv_deplibs_check_method=pass_all 5337 ;; 5338 5339sysv4 | sysv4.3*) 5340 case $host_vendor in 5341 motorola) 5342 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]' 5343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5344 ;; 5345 ncr) 5346 lt_cv_deplibs_check_method=pass_all 5347 ;; 5348 sequent) 5349 lt_cv_file_magic_cmd='/bin/file' 5350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5351 ;; 5352 sni) 5353 lt_cv_file_magic_cmd='/bin/file' 5354 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5355 lt_cv_file_magic_test_file=/lib/libc.so 5356 ;; 5357 siemens) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 pc) 5361 lt_cv_deplibs_check_method=pass_all 5362 ;; 5363 esac 5364 ;; 5365 5366tpf*) 5367 lt_cv_deplibs_check_method=pass_all 5368 ;; 5369esac 5370 5371fi 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5373$as_echo "$lt_cv_deplibs_check_method" >&6; } 5374 5375file_magic_glob= 5376want_nocaseglob=no 5377if test "$build" = "$host"; then 5378 case $host_os in 5379 mingw* | pw32*) 5380 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5381 want_nocaseglob=yes 5382 else 5383 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5384 fi 5385 ;; 5386 esac 5387fi 5388 5389file_magic_cmd=$lt_cv_file_magic_cmd 5390deplibs_check_method=$lt_cv_deplibs_check_method 5391test -z "$deplibs_check_method" && deplibs_check_method=unknown 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414if test -n "$ac_tool_prefix"; then 5415 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5416set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5418$as_echo_n "checking for $ac_word... " >&6; } 5419if ${ac_cv_prog_DLLTOOL+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 if test -n "$DLLTOOL"; then 5423 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5424else 5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5432 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437 done 5438IFS=$as_save_IFS 5439 5440fi 5441fi 5442DLLTOOL=$ac_cv_prog_DLLTOOL 5443if test -n "$DLLTOOL"; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5445$as_echo "$DLLTOOL" >&6; } 5446else 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5448$as_echo "no" >&6; } 5449fi 5450 5451 5452fi 5453if test -z "$ac_cv_prog_DLLTOOL"; then 5454 ac_ct_DLLTOOL=$DLLTOOL 5455 # Extract the first word of "dlltool", so it can be a program name with args. 5456set dummy dlltool; ac_word=$2 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5458$as_echo_n "checking for $ac_word... " >&6; } 5459if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 if test -n "$ac_ct_DLLTOOL"; then 5463 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5464else 5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5466for as_dir in $PATH 5467do 5468 IFS=$as_save_IFS 5469 test -z "$as_dir" && as_dir=. 5470 for ac_exec_ext in '' $ac_executable_extensions; do 5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5472 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5474 break 2 5475 fi 5476done 5477 done 5478IFS=$as_save_IFS 5479 5480fi 5481fi 5482ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5483if test -n "$ac_ct_DLLTOOL"; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5485$as_echo "$ac_ct_DLLTOOL" >&6; } 5486else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5488$as_echo "no" >&6; } 5489fi 5490 5491 if test "x$ac_ct_DLLTOOL" = x; then 5492 DLLTOOL="false" 5493 else 5494 case $cross_compiling:$ac_tool_warned in 5495yes:) 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5498ac_tool_warned=yes ;; 5499esac 5500 DLLTOOL=$ac_ct_DLLTOOL 5501 fi 5502else 5503 DLLTOOL="$ac_cv_prog_DLLTOOL" 5504fi 5505 5506test -z "$DLLTOOL" && DLLTOOL=dlltool 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5518$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5519if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5520 $as_echo_n "(cached) " >&6 5521else 5522 lt_cv_sharedlib_from_linklib_cmd='unknown' 5523 5524case $host_os in 5525cygwin* | mingw* | pw32* | cegcc*) 5526 # two different shell functions defined in ltmain.sh 5527 # decide which to use based on capabilities of $DLLTOOL 5528 case `$DLLTOOL --help 2>&1` in 5529 *--identify-strict*) 5530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5531 ;; 5532 *) 5533 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5534 ;; 5535 esac 5536 ;; 5537*) 5538 # fallback: assume linklib IS sharedlib 5539 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5540 ;; 5541esac 5542 5543fi 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5545$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5546sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5547test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5548 5549 5550 5551 5552 5553 5554 5555 5556if test -n "$ac_tool_prefix"; then 5557 for ac_prog in ar 5558 do 5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5560set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5562$as_echo_n "checking for $ac_word... " >&6; } 5563if ${ac_cv_prog_AR+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 if test -n "$AR"; then 5567 ac_cv_prog_AR="$AR" # Let the user override the test. 5568else 5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5570for as_dir in $PATH 5571do 5572 IFS=$as_save_IFS 5573 test -z "$as_dir" && as_dir=. 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5576 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5578 break 2 5579 fi 5580done 5581 done 5582IFS=$as_save_IFS 5583 5584fi 5585fi 5586AR=$ac_cv_prog_AR 5587if test -n "$AR"; then 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5589$as_echo "$AR" >&6; } 5590else 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5592$as_echo "no" >&6; } 5593fi 5594 5595 5596 test -n "$AR" && break 5597 done 5598fi 5599if test -z "$AR"; then 5600 ac_ct_AR=$AR 5601 for ac_prog in ar 5602do 5603 # Extract the first word of "$ac_prog", so it can be a program name with args. 5604set dummy $ac_prog; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_ac_ct_AR+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$ac_ct_AR"; then 5611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5620 ac_cv_prog_ac_ct_AR="$ac_prog" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630ac_ct_AR=$ac_cv_prog_ac_ct_AR 5631if test -n "$ac_ct_AR"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5633$as_echo "$ac_ct_AR" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 5640 test -n "$ac_ct_AR" && break 5641done 5642 5643 if test "x$ac_ct_AR" = x; then 5644 AR="false" 5645 else 5646 case $cross_compiling:$ac_tool_warned in 5647yes:) 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5650ac_tool_warned=yes ;; 5651esac 5652 AR=$ac_ct_AR 5653 fi 5654fi 5655 5656: ${AR=ar} 5657: ${AR_FLAGS=cru} 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5670$as_echo_n "checking for archiver @FILE support... " >&6; } 5671if ${lt_cv_ar_at_file+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 lt_cv_ar_at_file=no 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676/* end confdefs.h. */ 5677 5678int 5679main () 5680{ 5681 5682 ; 5683 return 0; 5684} 5685_ACEOF 5686if ac_fn_c_try_compile "$LINENO"; then : 5687 echo conftest.$ac_objext > conftest.lst 5688 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5690 (eval $lt_ar_try) 2>&5 5691 ac_status=$? 5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5693 test $ac_status = 0; } 5694 if test "$ac_status" -eq 0; then 5695 # Ensure the archiver fails upon bogus file names. 5696 rm -f conftest.$ac_objext libconftest.a 5697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5698 (eval $lt_ar_try) 2>&5 5699 ac_status=$? 5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5701 test $ac_status = 0; } 5702 if test "$ac_status" -ne 0; then 5703 lt_cv_ar_at_file=@ 5704 fi 5705 fi 5706 rm -f conftest.* libconftest.a 5707 5708fi 5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5710 5711fi 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5713$as_echo "$lt_cv_ar_at_file" >&6; } 5714 5715if test "x$lt_cv_ar_at_file" = xno; then 5716 archiver_list_spec= 5717else 5718 archiver_list_spec=$lt_cv_ar_at_file 5719fi 5720 5721 5722 5723 5724 5725 5726 5727if test -n "$ac_tool_prefix"; then 5728 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5729set dummy ${ac_tool_prefix}strip; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_STRIP+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$STRIP"; then 5736 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5745 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755STRIP=$ac_cv_prog_STRIP 5756if test -n "$STRIP"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5758$as_echo "$STRIP" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765fi 5766if test -z "$ac_cv_prog_STRIP"; then 5767 ac_ct_STRIP=$STRIP 5768 # Extract the first word of "strip", so it can be a program name with args. 5769set dummy strip; ac_word=$2 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5771$as_echo_n "checking for $ac_word... " >&6; } 5772if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 if test -n "$ac_ct_STRIP"; then 5776 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5777else 5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5779for as_dir in $PATH 5780do 5781 IFS=$as_save_IFS 5782 test -z "$as_dir" && as_dir=. 5783 for ac_exec_ext in '' $ac_executable_extensions; do 5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5785 ac_cv_prog_ac_ct_STRIP="strip" 5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5787 break 2 5788 fi 5789done 5790 done 5791IFS=$as_save_IFS 5792 5793fi 5794fi 5795ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5796if test -n "$ac_ct_STRIP"; then 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5798$as_echo "$ac_ct_STRIP" >&6; } 5799else 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5801$as_echo "no" >&6; } 5802fi 5803 5804 if test "x$ac_ct_STRIP" = x; then 5805 STRIP=":" 5806 else 5807 case $cross_compiling:$ac_tool_warned in 5808yes:) 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5811ac_tool_warned=yes ;; 5812esac 5813 STRIP=$ac_ct_STRIP 5814 fi 5815else 5816 STRIP="$ac_cv_prog_STRIP" 5817fi 5818 5819test -z "$STRIP" && STRIP=: 5820 5821 5822 5823 5824 5825 5826if test -n "$ac_tool_prefix"; then 5827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5828set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830$as_echo_n "checking for $ac_word... " >&6; } 5831if ${ac_cv_prog_RANLIB+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 if test -n "$RANLIB"; then 5835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5836else 5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848done 5849 done 5850IFS=$as_save_IFS 5851 5852fi 5853fi 5854RANLIB=$ac_cv_prog_RANLIB 5855if test -n "$RANLIB"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5857$as_echo "$RANLIB" >&6; } 5858else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860$as_echo "no" >&6; } 5861fi 5862 5863 5864fi 5865if test -z "$ac_cv_prog_RANLIB"; then 5866 ac_ct_RANLIB=$RANLIB 5867 # Extract the first word of "ranlib", so it can be a program name with args. 5868set dummy ranlib; ac_word=$2 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870$as_echo_n "checking for $ac_word... " >&6; } 5871if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 if test -n "$ac_ct_RANLIB"; then 5875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5876else 5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5878for as_dir in $PATH 5879do 5880 IFS=$as_save_IFS 5881 test -z "$as_dir" && as_dir=. 5882 for ac_exec_ext in '' $ac_executable_extensions; do 5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5884 ac_cv_prog_ac_ct_RANLIB="ranlib" 5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5886 break 2 5887 fi 5888done 5889 done 5890IFS=$as_save_IFS 5891 5892fi 5893fi 5894ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5895if test -n "$ac_ct_RANLIB"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5897$as_echo "$ac_ct_RANLIB" >&6; } 5898else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900$as_echo "no" >&6; } 5901fi 5902 5903 if test "x$ac_ct_RANLIB" = x; then 5904 RANLIB=":" 5905 else 5906 case $cross_compiling:$ac_tool_warned in 5907yes:) 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5910ac_tool_warned=yes ;; 5911esac 5912 RANLIB=$ac_ct_RANLIB 5913 fi 5914else 5915 RANLIB="$ac_cv_prog_RANLIB" 5916fi 5917 5918test -z "$RANLIB" && RANLIB=: 5919 5920 5921 5922 5923 5924 5925# Determine commands to create old-style static archives. 5926old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5927old_postinstall_cmds='chmod 644 $oldlib' 5928old_postuninstall_cmds= 5929 5930if test -n "$RANLIB"; then 5931 case $host_os in 5932 openbsd*) 5933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5934 ;; 5935 *) 5936 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5937 ;; 5938 esac 5939 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5940fi 5941 5942case $host_os in 5943 darwin*) 5944 lock_old_archive_extraction=yes ;; 5945 *) 5946 lock_old_archive_extraction=no ;; 5947esac 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987# If no C compiler was specified, use CC. 5988LTCC=${LTCC-"$CC"} 5989 5990# If no C compiler flags were specified, use CFLAGS. 5991LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5992 5993# Allow CC to be a program name with arguments. 5994compiler=$CC 5995 5996 5997# Check for command to grab the raw symbol name followed by C symbol from nm. 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5999$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6000if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 6004# These are sane defaults that work on at least a few old systems. 6005# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6006 6007# Character class describing NM global symbol codes. 6008symcode='[BCDEGRST]' 6009 6010# Regexp to match symbols that can be accessed directly from C. 6011sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6012 6013# Define system-specific variables. 6014case $host_os in 6015aix*) 6016 symcode='[BCDT]' 6017 ;; 6018cygwin* | mingw* | pw32* | cegcc*) 6019 symcode='[ABCDGISTW]' 6020 ;; 6021hpux*) 6022 if test "$host_cpu" = ia64; then 6023 symcode='[ABCDEGRST]' 6024 fi 6025 ;; 6026irix* | nonstopux*) 6027 symcode='[BCDEGRST]' 6028 ;; 6029osf*) 6030 symcode='[BCDEGQRST]' 6031 ;; 6032solaris*) 6033 symcode='[BDRT]' 6034 ;; 6035sco3.2v5*) 6036 symcode='[DT]' 6037 ;; 6038sysv4.2uw2*) 6039 symcode='[DT]' 6040 ;; 6041sysv5* | sco5v6* | unixware* | OpenUNIX*) 6042 symcode='[ABDT]' 6043 ;; 6044sysv4) 6045 symcode='[DFNSTU]' 6046 ;; 6047esac 6048 6049# If we're using GNU nm, then use its standard symbol codes. 6050case `$NM -V 2>&1` in 6051*GNU* | *'with BFD'*) 6052 symcode='[ABCDGIRSTW]' ;; 6053esac 6054 6055# Transform an extracted symbol line into a proper C declaration. 6056# Some systems (esp. on ia64) link data and code symbols differently, 6057# so use this general approach. 6058lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6059 6060# Transform an extracted symbol line into symbol name and symbol address 6061lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6062lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6063 6064# Handle CRLF in mingw tool chain 6065opt_cr= 6066case $build_os in 6067mingw*) 6068 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6069 ;; 6070esac 6071 6072# Try without a prefix underscore, then with it. 6073for ac_symprfx in "" "_"; do 6074 6075 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6076 symxfrm="\\1 $ac_symprfx\\2 \\2" 6077 6078 # Write the raw and C identifiers. 6079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6080 # Fake it for dumpbin and say T for any non-static function 6081 # and D for any global variable. 6082 # Also find C++ and __fastcall symbols from MSVC++, 6083 # which start with @ or ?. 6084 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6085" {last_section=section; section=\$ 3};"\ 6086" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6087" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6088" \$ 0!~/External *\|/{next};"\ 6089" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6090" {if(hide[section]) next};"\ 6091" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6092" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6093" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6094" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6095" ' prfx=^$ac_symprfx" 6096 else 6097 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6098 fi 6099 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6100 6101 # Check to see that the pipe works correctly. 6102 pipe_works=no 6103 6104 rm -f conftest* 6105 cat > conftest.$ac_ext <<_LT_EOF 6106#ifdef __cplusplus 6107extern "C" { 6108#endif 6109char nm_test_var; 6110void nm_test_func(void); 6111void nm_test_func(void){} 6112#ifdef __cplusplus 6113} 6114#endif 6115int main(){nm_test_var='a';nm_test_func();return(0);} 6116_LT_EOF 6117 6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6119 (eval $ac_compile) 2>&5 6120 ac_status=$? 6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6122 test $ac_status = 0; }; then 6123 # Now try to grab the symbols. 6124 nlist=conftest.nm 6125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6126 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6127 ac_status=$? 6128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6129 test $ac_status = 0; } && test -s "$nlist"; then 6130 # Try sorting and uniquifying the output. 6131 if sort "$nlist" | uniq > "$nlist"T; then 6132 mv -f "$nlist"T "$nlist" 6133 else 6134 rm -f "$nlist"T 6135 fi 6136 6137 # Make sure that we snagged all the symbols we need. 6138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6140 cat <<_LT_EOF > conftest.$ac_ext 6141/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6142#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6143/* DATA imports from DLLs on WIN32 con't be const, because runtime 6144 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6145# define LT_DLSYM_CONST 6146#elif defined(__osf__) 6147/* This system does not cope well with relocations in const data. */ 6148# define LT_DLSYM_CONST 6149#else 6150# define LT_DLSYM_CONST const 6151#endif 6152 6153#ifdef __cplusplus 6154extern "C" { 6155#endif 6156 6157_LT_EOF 6158 # Now generate the symbol file. 6159 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6160 6161 cat <<_LT_EOF >> conftest.$ac_ext 6162 6163/* The mapping between symbol names and symbols. */ 6164LT_DLSYM_CONST struct { 6165 const char *name; 6166 void *address; 6167} 6168lt__PROGRAM__LTX_preloaded_symbols[] = 6169{ 6170 { "@PROGRAM@", (void *) 0 }, 6171_LT_EOF 6172 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6173 cat <<\_LT_EOF >> conftest.$ac_ext 6174 {0, (void *) 0} 6175}; 6176 6177/* This works around a problem in FreeBSD linker */ 6178#ifdef FREEBSD_WORKAROUND 6179static const void *lt_preloaded_setup() { 6180 return lt__PROGRAM__LTX_preloaded_symbols; 6181} 6182#endif 6183 6184#ifdef __cplusplus 6185} 6186#endif 6187_LT_EOF 6188 # Now try linking the two files. 6189 mv conftest.$ac_objext conftstm.$ac_objext 6190 lt_globsym_save_LIBS=$LIBS 6191 lt_globsym_save_CFLAGS=$CFLAGS 6192 LIBS="conftstm.$ac_objext" 6193 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6195 (eval $ac_link) 2>&5 6196 ac_status=$? 6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6198 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6199 pipe_works=yes 6200 fi 6201 LIBS=$lt_globsym_save_LIBS 6202 CFLAGS=$lt_globsym_save_CFLAGS 6203 else 6204 echo "cannot find nm_test_func in $nlist" >&5 6205 fi 6206 else 6207 echo "cannot find nm_test_var in $nlist" >&5 6208 fi 6209 else 6210 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6211 fi 6212 else 6213 echo "$progname: failed program was:" >&5 6214 cat conftest.$ac_ext >&5 6215 fi 6216 rm -rf conftest* conftst* 6217 6218 # Do not use the global_symbol_pipe unless it works. 6219 if test "$pipe_works" = yes; then 6220 break 6221 else 6222 lt_cv_sys_global_symbol_pipe= 6223 fi 6224done 6225 6226fi 6227 6228if test -z "$lt_cv_sys_global_symbol_pipe"; then 6229 lt_cv_sys_global_symbol_to_cdecl= 6230fi 6231if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6233$as_echo "failed" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6236$as_echo "ok" >&6; } 6237fi 6238 6239# Response file support. 6240if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6241 nm_file_list_spec='@' 6242elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6243 nm_file_list_spec='@' 6244fi 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6273$as_echo_n "checking for sysroot... " >&6; } 6274 6275# Check whether --with-sysroot was given. 6276if test "${with_sysroot+set}" = set; then : 6277 withval=$with_sysroot; 6278else 6279 with_sysroot=no 6280fi 6281 6282 6283lt_sysroot= 6284case ${with_sysroot} in #( 6285 yes) 6286 if test "$GCC" = yes; then 6287 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6288 fi 6289 ;; #( 6290 /*) 6291 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6292 ;; #( 6293 no|'') 6294 ;; #( 6295 *) 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6297$as_echo "${with_sysroot}" >&6; } 6298 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6299 ;; 6300esac 6301 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6303$as_echo "${lt_sysroot:-no}" >&6; } 6304 6305 6306 6307 6308 6309# Check whether --enable-libtool-lock was given. 6310if test "${enable_libtool_lock+set}" = set; then : 6311 enableval=$enable_libtool_lock; 6312fi 6313 6314test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6315 6316# Some flags need to be propagated to the compiler or linker for good 6317# libtool support. 6318case $host in 6319ia64-*-hpux*) 6320 # Find out which ABI we are using. 6321 echo 'int i;' > conftest.$ac_ext 6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6323 (eval $ac_compile) 2>&5 6324 ac_status=$? 6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6326 test $ac_status = 0; }; then 6327 case `/usr/bin/file conftest.$ac_objext` in 6328 *ELF-32*) 6329 HPUX_IA64_MODE="32" 6330 ;; 6331 *ELF-64*) 6332 HPUX_IA64_MODE="64" 6333 ;; 6334 esac 6335 fi 6336 rm -rf conftest* 6337 ;; 6338*-*-irix6*) 6339 # Find out which ABI we are using. 6340 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6342 (eval $ac_compile) 2>&5 6343 ac_status=$? 6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345 test $ac_status = 0; }; then 6346 if test "$lt_cv_prog_gnu_ld" = yes; then 6347 case `/usr/bin/file conftest.$ac_objext` in 6348 *32-bit*) 6349 LD="${LD-ld} -melf32bsmip" 6350 ;; 6351 *N32*) 6352 LD="${LD-ld} -melf32bmipn32" 6353 ;; 6354 *64-bit*) 6355 LD="${LD-ld} -melf64bmip" 6356 ;; 6357 esac 6358 else 6359 case `/usr/bin/file conftest.$ac_objext` in 6360 *32-bit*) 6361 LD="${LD-ld} -32" 6362 ;; 6363 *N32*) 6364 LD="${LD-ld} -n32" 6365 ;; 6366 *64-bit*) 6367 LD="${LD-ld} -64" 6368 ;; 6369 esac 6370 fi 6371 fi 6372 rm -rf conftest* 6373 ;; 6374 6375x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6376s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6377 # Find out which ABI we are using. 6378 echo 'int i;' > conftest.$ac_ext 6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6380 (eval $ac_compile) 2>&5 6381 ac_status=$? 6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6383 test $ac_status = 0; }; then 6384 case `/usr/bin/file conftest.o` in 6385 *32-bit*) 6386 case $host in 6387 x86_64-*kfreebsd*-gnu) 6388 LD="${LD-ld} -m elf_i386_fbsd" 6389 ;; 6390 x86_64-*linux*) 6391 LD="${LD-ld} -m elf_i386" 6392 ;; 6393 ppc64-*linux*|powerpc64-*linux*) 6394 LD="${LD-ld} -m elf32ppclinux" 6395 ;; 6396 s390x-*linux*) 6397 LD="${LD-ld} -m elf_s390" 6398 ;; 6399 sparc64-*linux*) 6400 LD="${LD-ld} -m elf32_sparc" 6401 ;; 6402 esac 6403 ;; 6404 *64-bit*) 6405 case $host in 6406 x86_64-*kfreebsd*-gnu) 6407 LD="${LD-ld} -m elf_x86_64_fbsd" 6408 ;; 6409 x86_64-*linux*) 6410 LD="${LD-ld} -m elf_x86_64" 6411 ;; 6412 ppc*-*linux*|powerpc*-*linux*) 6413 LD="${LD-ld} -m elf64ppc" 6414 ;; 6415 s390*-*linux*|s390*-*tpf*) 6416 LD="${LD-ld} -m elf64_s390" 6417 ;; 6418 sparc*-*linux*) 6419 LD="${LD-ld} -m elf64_sparc" 6420 ;; 6421 esac 6422 ;; 6423 esac 6424 fi 6425 rm -rf conftest* 6426 ;; 6427 6428*-*-sco3.2v5*) 6429 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6430 SAVE_CFLAGS="$CFLAGS" 6431 CFLAGS="$CFLAGS -belf" 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6433$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6434if ${lt_cv_cc_needs_belf+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436else 6437 ac_ext=c 6438ac_cpp='$CPP $CPPFLAGS' 6439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6441ac_compiler_gnu=$ac_cv_c_compiler_gnu 6442 6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444/* end confdefs.h. */ 6445 6446int 6447main () 6448{ 6449 6450 ; 6451 return 0; 6452} 6453_ACEOF 6454if ac_fn_c_try_link "$LINENO"; then : 6455 lt_cv_cc_needs_belf=yes 6456else 6457 lt_cv_cc_needs_belf=no 6458fi 6459rm -f core conftest.err conftest.$ac_objext \ 6460 conftest$ac_exeext conftest.$ac_ext 6461 ac_ext=c 6462ac_cpp='$CPP $CPPFLAGS' 6463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6465ac_compiler_gnu=$ac_cv_c_compiler_gnu 6466 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6469$as_echo "$lt_cv_cc_needs_belf" >&6; } 6470 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6472 CFLAGS="$SAVE_CFLAGS" 6473 fi 6474 ;; 6475*-*solaris*) 6476 # Find out which ABI we are using. 6477 echo 'int i;' > conftest.$ac_ext 6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6479 (eval $ac_compile) 2>&5 6480 ac_status=$? 6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; }; then 6483 case `/usr/bin/file conftest.o` in 6484 *64-bit*) 6485 case $lt_cv_prog_gnu_ld in 6486 yes*) 6487 case $host in 6488 i?86-*-solaris*) 6489 LD="${LD-ld} -m elf_x86_64" 6490 ;; 6491 sparc*-*-solaris*) 6492 LD="${LD-ld} -m elf64_sparc" 6493 ;; 6494 esac 6495 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6496 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6497 LD="${LD-ld}_sol2" 6498 fi 6499 ;; 6500 *) 6501 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6502 LD="${LD-ld} -64" 6503 fi 6504 ;; 6505 esac 6506 ;; 6507 esac 6508 fi 6509 rm -rf conftest* 6510 ;; 6511esac 6512 6513need_locks="$enable_libtool_lock" 6514 6515if test -n "$ac_tool_prefix"; then 6516 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6517set dummy ${ac_tool_prefix}mt; ac_word=$2 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6519$as_echo_n "checking for $ac_word... " >&6; } 6520if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 if test -n "$MANIFEST_TOOL"; then 6524 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6525else 6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6527for as_dir in $PATH 6528do 6529 IFS=$as_save_IFS 6530 test -z "$as_dir" && as_dir=. 6531 for ac_exec_ext in '' $ac_executable_extensions; do 6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6533 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6535 break 2 6536 fi 6537done 6538 done 6539IFS=$as_save_IFS 6540 6541fi 6542fi 6543MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6544if test -n "$MANIFEST_TOOL"; then 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6546$as_echo "$MANIFEST_TOOL" >&6; } 6547else 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6549$as_echo "no" >&6; } 6550fi 6551 6552 6553fi 6554if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6555 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6556 # Extract the first word of "mt", so it can be a program name with args. 6557set dummy mt; ac_word=$2 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6559$as_echo_n "checking for $ac_word... " >&6; } 6560if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 if test -n "$ac_ct_MANIFEST_TOOL"; then 6564 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6565else 6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6573 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6575 break 2 6576 fi 6577done 6578 done 6579IFS=$as_save_IFS 6580 6581fi 6582fi 6583ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6584if test -n "$ac_ct_MANIFEST_TOOL"; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6586$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6587else 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6589$as_echo "no" >&6; } 6590fi 6591 6592 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6593 MANIFEST_TOOL=":" 6594 else 6595 case $cross_compiling:$ac_tool_warned in 6596yes:) 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6599ac_tool_warned=yes ;; 6600esac 6601 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6602 fi 6603else 6604 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6605fi 6606 6607test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6609$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6610if ${lt_cv_path_mainfest_tool+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 lt_cv_path_mainfest_tool=no 6614 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6615 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6616 cat conftest.err >&5 6617 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6618 lt_cv_path_mainfest_tool=yes 6619 fi 6620 rm -f conftest* 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6623$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6624if test "x$lt_cv_path_mainfest_tool" != xyes; then 6625 MANIFEST_TOOL=: 6626fi 6627 6628 6629 6630 6631 6632 6633 case $host_os in 6634 rhapsody* | darwin*) 6635 if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_DSYMUTIL+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$DSYMUTIL"; then 6644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661fi 6662fi 6663DSYMUTIL=$ac_cv_prog_DSYMUTIL 6664if test -n "$DSYMUTIL"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6666$as_echo "$DSYMUTIL" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 6673fi 6674if test -z "$ac_cv_prog_DSYMUTIL"; then 6675 ac_ct_DSYMUTIL=$DSYMUTIL 6676 # Extract the first word of "dsymutil", so it can be a program name with args. 6677set dummy dsymutil; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$ac_ct_DSYMUTIL"; then 6684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6704if test -n "$ac_ct_DSYMUTIL"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6706$as_echo "$ac_ct_DSYMUTIL" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_DSYMUTIL" = x; then 6713 DSYMUTIL=":" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 DSYMUTIL=$ac_ct_DSYMUTIL 6722 fi 6723else 6724 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6725fi 6726 6727 if test -n "$ac_tool_prefix"; then 6728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6729set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731$as_echo_n "checking for $ac_word... " >&6; } 6732if ${ac_cv_prog_NMEDIT+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 if test -n "$NMEDIT"; then 6736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6737else 6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6739for as_dir in $PATH 6740do 6741 IFS=$as_save_IFS 6742 test -z "$as_dir" && as_dir=. 6743 for ac_exec_ext in '' $ac_executable_extensions; do 6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6747 break 2 6748 fi 6749done 6750 done 6751IFS=$as_save_IFS 6752 6753fi 6754fi 6755NMEDIT=$ac_cv_prog_NMEDIT 6756if test -n "$NMEDIT"; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6758$as_echo "$NMEDIT" >&6; } 6759else 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6761$as_echo "no" >&6; } 6762fi 6763 6764 6765fi 6766if test -z "$ac_cv_prog_NMEDIT"; then 6767 ac_ct_NMEDIT=$NMEDIT 6768 # Extract the first word of "nmedit", so it can be a program name with args. 6769set dummy nmedit; ac_word=$2 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6771$as_echo_n "checking for $ac_word... " >&6; } 6772if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 if test -n "$ac_ct_NMEDIT"; then 6776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6777else 6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6779for as_dir in $PATH 6780do 6781 IFS=$as_save_IFS 6782 test -z "$as_dir" && as_dir=. 6783 for ac_exec_ext in '' $ac_executable_extensions; do 6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6785 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6787 break 2 6788 fi 6789done 6790 done 6791IFS=$as_save_IFS 6792 6793fi 6794fi 6795ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6796if test -n "$ac_ct_NMEDIT"; then 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6798$as_echo "$ac_ct_NMEDIT" >&6; } 6799else 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6801$as_echo "no" >&6; } 6802fi 6803 6804 if test "x$ac_ct_NMEDIT" = x; then 6805 NMEDIT=":" 6806 else 6807 case $cross_compiling:$ac_tool_warned in 6808yes:) 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6811ac_tool_warned=yes ;; 6812esac 6813 NMEDIT=$ac_ct_NMEDIT 6814 fi 6815else 6816 NMEDIT="$ac_cv_prog_NMEDIT" 6817fi 6818 6819 if test -n "$ac_tool_prefix"; then 6820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6821set dummy ${ac_tool_prefix}lipo; ac_word=$2 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823$as_echo_n "checking for $ac_word... " >&6; } 6824if ${ac_cv_prog_LIPO+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 if test -n "$LIPO"; then 6828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6829else 6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6831for as_dir in $PATH 6832do 6833 IFS=$as_save_IFS 6834 test -z "$as_dir" && as_dir=. 6835 for ac_exec_ext in '' $ac_executable_extensions; do 6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6839 break 2 6840 fi 6841done 6842 done 6843IFS=$as_save_IFS 6844 6845fi 6846fi 6847LIPO=$ac_cv_prog_LIPO 6848if test -n "$LIPO"; then 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6850$as_echo "$LIPO" >&6; } 6851else 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6853$as_echo "no" >&6; } 6854fi 6855 6856 6857fi 6858if test -z "$ac_cv_prog_LIPO"; then 6859 ac_ct_LIPO=$LIPO 6860 # Extract the first word of "lipo", so it can be a program name with args. 6861set dummy lipo; ac_word=$2 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6863$as_echo_n "checking for $ac_word... " >&6; } 6864if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 if test -n "$ac_ct_LIPO"; then 6868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6869else 6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6877 ac_cv_prog_ac_ct_LIPO="lipo" 6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882 done 6883IFS=$as_save_IFS 6884 6885fi 6886fi 6887ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6888if test -n "$ac_ct_LIPO"; then 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6890$as_echo "$ac_ct_LIPO" >&6; } 6891else 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6893$as_echo "no" >&6; } 6894fi 6895 6896 if test "x$ac_ct_LIPO" = x; then 6897 LIPO=":" 6898 else 6899 case $cross_compiling:$ac_tool_warned in 6900yes:) 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6903ac_tool_warned=yes ;; 6904esac 6905 LIPO=$ac_ct_LIPO 6906 fi 6907else 6908 LIPO="$ac_cv_prog_LIPO" 6909fi 6910 6911 if test -n "$ac_tool_prefix"; then 6912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6913set dummy ${ac_tool_prefix}otool; ac_word=$2 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6915$as_echo_n "checking for $ac_word... " >&6; } 6916if ${ac_cv_prog_OTOOL+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 if test -n "$OTOOL"; then 6920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6921else 6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6923for as_dir in $PATH 6924do 6925 IFS=$as_save_IFS 6926 test -z "$as_dir" && as_dir=. 6927 for ac_exec_ext in '' $ac_executable_extensions; do 6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6931 break 2 6932 fi 6933done 6934 done 6935IFS=$as_save_IFS 6936 6937fi 6938fi 6939OTOOL=$ac_cv_prog_OTOOL 6940if test -n "$OTOOL"; then 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6942$as_echo "$OTOOL" >&6; } 6943else 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6945$as_echo "no" >&6; } 6946fi 6947 6948 6949fi 6950if test -z "$ac_cv_prog_OTOOL"; then 6951 ac_ct_OTOOL=$OTOOL 6952 # Extract the first word of "otool", so it can be a program name with args. 6953set dummy otool; ac_word=$2 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6955$as_echo_n "checking for $ac_word... " >&6; } 6956if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 if test -n "$ac_ct_OTOOL"; then 6960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6961else 6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6963for as_dir in $PATH 6964do 6965 IFS=$as_save_IFS 6966 test -z "$as_dir" && as_dir=. 6967 for ac_exec_ext in '' $ac_executable_extensions; do 6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6969 ac_cv_prog_ac_ct_OTOOL="otool" 6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6971 break 2 6972 fi 6973done 6974 done 6975IFS=$as_save_IFS 6976 6977fi 6978fi 6979ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6980if test -n "$ac_ct_OTOOL"; then 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6982$as_echo "$ac_ct_OTOOL" >&6; } 6983else 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6985$as_echo "no" >&6; } 6986fi 6987 6988 if test "x$ac_ct_OTOOL" = x; then 6989 OTOOL=":" 6990 else 6991 case $cross_compiling:$ac_tool_warned in 6992yes:) 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6995ac_tool_warned=yes ;; 6996esac 6997 OTOOL=$ac_ct_OTOOL 6998 fi 6999else 7000 OTOOL="$ac_cv_prog_OTOOL" 7001fi 7002 7003 if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}otool64; ac_word=$2 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7007$as_echo_n "checking for $ac_word... " >&6; } 7008if ${ac_cv_prog_OTOOL64+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 if test -n "$OTOOL64"; then 7012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7013else 7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031OTOOL64=$ac_cv_prog_OTOOL64 7032if test -n "$OTOOL64"; then 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7034$as_echo "$OTOOL64" >&6; } 7035else 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037$as_echo "no" >&6; } 7038fi 7039 7040 7041fi 7042if test -z "$ac_cv_prog_OTOOL64"; then 7043 ac_ct_OTOOL64=$OTOOL64 7044 # Extract the first word of "otool64", so it can be a program name with args. 7045set dummy otool64; ac_word=$2 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7047$as_echo_n "checking for $ac_word... " >&6; } 7048if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 if test -n "$ac_ct_OTOOL64"; then 7052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7053else 7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7061 ac_cv_prog_ac_ct_OTOOL64="otool64" 7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066 done 7067IFS=$as_save_IFS 7068 7069fi 7070fi 7071ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7072if test -n "$ac_ct_OTOOL64"; then 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7074$as_echo "$ac_ct_OTOOL64" >&6; } 7075else 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7077$as_echo "no" >&6; } 7078fi 7079 7080 if test "x$ac_ct_OTOOL64" = x; then 7081 OTOOL64=":" 7082 else 7083 case $cross_compiling:$ac_tool_warned in 7084yes:) 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7087ac_tool_warned=yes ;; 7088esac 7089 OTOOL64=$ac_ct_OTOOL64 7090 fi 7091else 7092 OTOOL64="$ac_cv_prog_OTOOL64" 7093fi 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7122$as_echo_n "checking for -single_module linker flag... " >&6; } 7123if ${lt_cv_apple_cc_single_mod+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 lt_cv_apple_cc_single_mod=no 7127 if test -z "${LT_MULTI_MODULE}"; then 7128 # By default we will add the -single_module flag. You can override 7129 # by either setting the environment variable LT_MULTI_MODULE 7130 # non-empty at configure time, or by adding -multi_module to the 7131 # link flags. 7132 rm -rf libconftest.dylib* 7133 echo "int foo(void){return 1;}" > conftest.c 7134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7135-dynamiclib -Wl,-single_module conftest.c" >&5 7136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7138 _lt_result=$? 7139 # If there is a non-empty error log, and "single_module" 7140 # appears in it, assume the flag caused a linker warning 7141 if test -s conftest.err && $GREP single_module conftest.err; then 7142 cat conftest.err >&5 7143 # Otherwise, if the output was created with a 0 exit code from 7144 # the compiler, it worked. 7145 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7146 lt_cv_apple_cc_single_mod=yes 7147 else 7148 cat conftest.err >&5 7149 fi 7150 rm -rf libconftest.dylib* 7151 rm -f conftest.* 7152 fi 7153fi 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7155$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7156 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7158$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7159if ${lt_cv_ld_exported_symbols_list+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161else 7162 lt_cv_ld_exported_symbols_list=no 7163 save_LDFLAGS=$LDFLAGS 7164 echo "_main" > conftest.sym 7165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167/* end confdefs.h. */ 7168 7169int 7170main () 7171{ 7172 7173 ; 7174 return 0; 7175} 7176_ACEOF 7177if ac_fn_c_try_link "$LINENO"; then : 7178 lt_cv_ld_exported_symbols_list=yes 7179else 7180 lt_cv_ld_exported_symbols_list=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext \ 7183 conftest$ac_exeext conftest.$ac_ext 7184 LDFLAGS="$save_LDFLAGS" 7185 7186fi 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7188$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7189 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7191$as_echo_n "checking for -force_load linker flag... " >&6; } 7192if ${lt_cv_ld_force_load+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 lt_cv_ld_force_load=no 7196 cat > conftest.c << _LT_EOF 7197int forced_loaded() { return 2;} 7198_LT_EOF 7199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7201 echo "$AR cru libconftest.a conftest.o" >&5 7202 $AR cru libconftest.a conftest.o 2>&5 7203 echo "$RANLIB libconftest.a" >&5 7204 $RANLIB libconftest.a 2>&5 7205 cat > conftest.c << _LT_EOF 7206int main() { return 0;} 7207_LT_EOF 7208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7210 _lt_result=$? 7211 if test -s conftest.err && $GREP force_load conftest.err; then 7212 cat conftest.err >&5 7213 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7214 lt_cv_ld_force_load=yes 7215 else 7216 cat conftest.err >&5 7217 fi 7218 rm -f conftest.err libconftest.a conftest conftest.c 7219 rm -rf conftest.dSYM 7220 7221fi 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7223$as_echo "$lt_cv_ld_force_load" >&6; } 7224 case $host_os in 7225 rhapsody* | darwin1.[012]) 7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7227 darwin1.*) 7228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7229 darwin*) # darwin 5.x on 7230 # if running on 10.5 or later, the deployment target defaults 7231 # to the OS version, if on x86, and 10.4, the deployment 7232 # target defaults to 10.4. Don't you love it? 7233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7234 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7236 10.[012]*) 7237 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7238 10.*) 7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7240 esac 7241 ;; 7242 esac 7243 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7244 _lt_dar_single_mod='$single_module' 7245 fi 7246 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7247 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7248 else 7249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7250 fi 7251 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7252 _lt_dsymutil='~$DSYMUTIL $lib || :' 7253 else 7254 _lt_dsymutil= 7255 fi 7256 ;; 7257 esac 7258 7259ac_ext=c 7260ac_cpp='$CPP $CPPFLAGS' 7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7263ac_compiler_gnu=$ac_cv_c_compiler_gnu 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7265$as_echo_n "checking how to run the C preprocessor... " >&6; } 7266# On Suns, sometimes $CPP names a directory. 7267if test -n "$CPP" && test -d "$CPP"; then 7268 CPP= 7269fi 7270if test -z "$CPP"; then 7271 if ${ac_cv_prog_CPP+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 # Double quotes because CPP needs to be expanded 7275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7276 do 7277 ac_preproc_ok=false 7278for ac_c_preproc_warn_flag in '' yes 7279do 7280 # Use a header file that comes with gcc, so configuring glibc 7281 # with a fresh cross-compiler works. 7282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7283 # <limits.h> exists even on freestanding compilers. 7284 # On the NeXT, cc -E runs the code through the compiler's parser, 7285 # not just through cpp. "Syntax error" is here to catch this case. 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288#ifdef __STDC__ 7289# include <limits.h> 7290#else 7291# include <assert.h> 7292#endif 7293 Syntax error 7294_ACEOF 7295if ac_fn_c_try_cpp "$LINENO"; then : 7296 7297else 7298 # Broken: fails on valid input. 7299continue 7300fi 7301rm -f conftest.err conftest.i conftest.$ac_ext 7302 7303 # OK, works on sane cases. Now check whether nonexistent headers 7304 # can be detected and how. 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307#include <ac_nonexistent.h> 7308_ACEOF 7309if ac_fn_c_try_cpp "$LINENO"; then : 7310 # Broken: success on invalid input. 7311continue 7312else 7313 # Passes both tests. 7314ac_preproc_ok=: 7315break 7316fi 7317rm -f conftest.err conftest.i conftest.$ac_ext 7318 7319done 7320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7321rm -f conftest.i conftest.err conftest.$ac_ext 7322if $ac_preproc_ok; then : 7323 break 7324fi 7325 7326 done 7327 ac_cv_prog_CPP=$CPP 7328 7329fi 7330 CPP=$ac_cv_prog_CPP 7331else 7332 ac_cv_prog_CPP=$CPP 7333fi 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7335$as_echo "$CPP" >&6; } 7336ac_preproc_ok=false 7337for ac_c_preproc_warn_flag in '' yes 7338do 7339 # Use a header file that comes with gcc, so configuring glibc 7340 # with a fresh cross-compiler works. 7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7342 # <limits.h> exists even on freestanding compilers. 7343 # On the NeXT, cc -E runs the code through the compiler's parser, 7344 # not just through cpp. "Syntax error" is here to catch this case. 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#ifdef __STDC__ 7348# include <limits.h> 7349#else 7350# include <assert.h> 7351#endif 7352 Syntax error 7353_ACEOF 7354if ac_fn_c_try_cpp "$LINENO"; then : 7355 7356else 7357 # Broken: fails on valid input. 7358continue 7359fi 7360rm -f conftest.err conftest.i conftest.$ac_ext 7361 7362 # OK, works on sane cases. Now check whether nonexistent headers 7363 # can be detected and how. 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366#include <ac_nonexistent.h> 7367_ACEOF 7368if ac_fn_c_try_cpp "$LINENO"; then : 7369 # Broken: success on invalid input. 7370continue 7371else 7372 # Passes both tests. 7373ac_preproc_ok=: 7374break 7375fi 7376rm -f conftest.err conftest.i conftest.$ac_ext 7377 7378done 7379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7380rm -f conftest.i conftest.err conftest.$ac_ext 7381if $ac_preproc_ok; then : 7382 7383else 7384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7386as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7387See \`config.log' for more details" "$LINENO" 5; } 7388fi 7389 7390ac_ext=c 7391ac_cpp='$CPP $CPPFLAGS' 7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7394ac_compiler_gnu=$ac_cv_c_compiler_gnu 7395 7396 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7398$as_echo_n "checking for ANSI C header files... " >&6; } 7399if ${ac_cv_header_stdc+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404#include <stdlib.h> 7405#include <stdarg.h> 7406#include <string.h> 7407#include <float.h> 7408 7409int 7410main () 7411{ 7412 7413 ; 7414 return 0; 7415} 7416_ACEOF 7417if ac_fn_c_try_compile "$LINENO"; then : 7418 ac_cv_header_stdc=yes 7419else 7420 ac_cv_header_stdc=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7423 7424if test $ac_cv_header_stdc = yes; then 7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428#include <string.h> 7429 7430_ACEOF 7431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7432 $EGREP "memchr" >/dev/null 2>&1; then : 7433 7434else 7435 ac_cv_header_stdc=no 7436fi 7437rm -f conftest* 7438 7439fi 7440 7441if test $ac_cv_header_stdc = yes; then 7442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445#include <stdlib.h> 7446 7447_ACEOF 7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7449 $EGREP "free" >/dev/null 2>&1; then : 7450 7451else 7452 ac_cv_header_stdc=no 7453fi 7454rm -f conftest* 7455 7456fi 7457 7458if test $ac_cv_header_stdc = yes; then 7459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7460 if test "$cross_compiling" = yes; then : 7461 : 7462else 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465#include <ctype.h> 7466#include <stdlib.h> 7467#if ((' ' & 0x0FF) == 0x020) 7468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7470#else 7471# define ISLOWER(c) \ 7472 (('a' <= (c) && (c) <= 'i') \ 7473 || ('j' <= (c) && (c) <= 'r') \ 7474 || ('s' <= (c) && (c) <= 'z')) 7475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7476#endif 7477 7478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7479int 7480main () 7481{ 7482 int i; 7483 for (i = 0; i < 256; i++) 7484 if (XOR (islower (i), ISLOWER (i)) 7485 || toupper (i) != TOUPPER (i)) 7486 return 2; 7487 return 0; 7488} 7489_ACEOF 7490if ac_fn_c_try_run "$LINENO"; then : 7491 7492else 7493 ac_cv_header_stdc=no 7494fi 7495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7496 conftest.$ac_objext conftest.beam conftest.$ac_ext 7497fi 7498 7499fi 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7502$as_echo "$ac_cv_header_stdc" >&6; } 7503if test $ac_cv_header_stdc = yes; then 7504 7505$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7506 7507fi 7508 7509# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7511 inttypes.h stdint.h unistd.h 7512do : 7513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7515" 7516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7517 cat >>confdefs.h <<_ACEOF 7518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7519_ACEOF 7520 7521fi 7522 7523done 7524 7525 7526for ac_header in dlfcn.h 7527do : 7528 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7529" 7530if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7531 cat >>confdefs.h <<_ACEOF 7532#define HAVE_DLFCN_H 1 7533_ACEOF 7534 7535fi 7536 7537done 7538 7539 7540 7541 7542 7543# Set options 7544 7545 7546 7547 enable_dlopen=no 7548 7549 7550 enable_win32_dll=no 7551 7552 7553 # Check whether --enable-shared was given. 7554if test "${enable_shared+set}" = set; then : 7555 enableval=$enable_shared; p=${PACKAGE-default} 7556 case $enableval in 7557 yes) enable_shared=yes ;; 7558 no) enable_shared=no ;; 7559 *) 7560 enable_shared=no 7561 # Look at the argument we got. We use all the common list separators. 7562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7563 for pkg in $enableval; do 7564 IFS="$lt_save_ifs" 7565 if test "X$pkg" = "X$p"; then 7566 enable_shared=yes 7567 fi 7568 done 7569 IFS="$lt_save_ifs" 7570 ;; 7571 esac 7572else 7573 enable_shared=yes 7574fi 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 # Check whether --enable-static was given. 7585if test "${enable_static+set}" = set; then : 7586 enableval=$enable_static; p=${PACKAGE-default} 7587 case $enableval in 7588 yes) enable_static=yes ;; 7589 no) enable_static=no ;; 7590 *) 7591 enable_static=no 7592 # Look at the argument we got. We use all the common list separators. 7593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7594 for pkg in $enableval; do 7595 IFS="$lt_save_ifs" 7596 if test "X$pkg" = "X$p"; then 7597 enable_static=yes 7598 fi 7599 done 7600 IFS="$lt_save_ifs" 7601 ;; 7602 esac 7603else 7604 enable_static=yes 7605fi 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616# Check whether --with-pic was given. 7617if test "${with_pic+set}" = set; then : 7618 withval=$with_pic; lt_p=${PACKAGE-default} 7619 case $withval in 7620 yes|no) pic_mode=$withval ;; 7621 *) 7622 pic_mode=default 7623 # Look at the argument we got. We use all the common list separators. 7624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7625 for lt_pkg in $withval; do 7626 IFS="$lt_save_ifs" 7627 if test "X$lt_pkg" = "X$lt_p"; then 7628 pic_mode=yes 7629 fi 7630 done 7631 IFS="$lt_save_ifs" 7632 ;; 7633 esac 7634else 7635 pic_mode=default 7636fi 7637 7638 7639test -z "$pic_mode" && pic_mode=default 7640 7641 7642 7643 7644 7645 7646 7647 # Check whether --enable-fast-install was given. 7648if test "${enable_fast_install+set}" = set; then : 7649 enableval=$enable_fast_install; p=${PACKAGE-default} 7650 case $enableval in 7651 yes) enable_fast_install=yes ;; 7652 no) enable_fast_install=no ;; 7653 *) 7654 enable_fast_install=no 7655 # Look at the argument we got. We use all the common list separators. 7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7657 for pkg in $enableval; do 7658 IFS="$lt_save_ifs" 7659 if test "X$pkg" = "X$p"; then 7660 enable_fast_install=yes 7661 fi 7662 done 7663 IFS="$lt_save_ifs" 7664 ;; 7665 esac 7666else 7667 enable_fast_install=yes 7668fi 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680# This can be used to rebuild libtool when needed 7681LIBTOOL_DEPS="$ltmain" 7682 7683# Always use our own libtool. 7684LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715test -z "$LN_S" && LN_S="ln -s" 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730if test -n "${ZSH_VERSION+set}" ; then 7731 setopt NO_GLOB_SUBST 7732fi 7733 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7735$as_echo_n "checking for objdir... " >&6; } 7736if ${lt_cv_objdir+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 rm -f .libs 2>/dev/null 7740mkdir .libs 2>/dev/null 7741if test -d .libs; then 7742 lt_cv_objdir=.libs 7743else 7744 # MS-DOS does not allow filenames that begin with a dot. 7745 lt_cv_objdir=_libs 7746fi 7747rmdir .libs 2>/dev/null 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7750$as_echo "$lt_cv_objdir" >&6; } 7751objdir=$lt_cv_objdir 7752 7753 7754 7755 7756 7757cat >>confdefs.h <<_ACEOF 7758#define LT_OBJDIR "$lt_cv_objdir/" 7759_ACEOF 7760 7761 7762 7763 7764case $host_os in 7765aix3*) 7766 # AIX sometimes has problems with the GCC collect2 program. For some 7767 # reason, if we set the COLLECT_NAMES environment variable, the problems 7768 # vanish in a puff of smoke. 7769 if test "X${COLLECT_NAMES+set}" != Xset; then 7770 COLLECT_NAMES= 7771 export COLLECT_NAMES 7772 fi 7773 ;; 7774esac 7775 7776# Global variables: 7777ofile=libtool 7778can_build_shared=yes 7779 7780# All known linkers require a `.a' archive for static linking (except MSVC, 7781# which needs '.lib'). 7782libext=a 7783 7784with_gnu_ld="$lt_cv_prog_gnu_ld" 7785 7786old_CC="$CC" 7787old_CFLAGS="$CFLAGS" 7788 7789# Set sane defaults for various variables 7790test -z "$CC" && CC=cc 7791test -z "$LTCC" && LTCC=$CC 7792test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7793test -z "$LD" && LD=ld 7794test -z "$ac_objext" && ac_objext=o 7795 7796for cc_temp in $compiler""; do 7797 case $cc_temp in 7798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7800 \-*) ;; 7801 *) break;; 7802 esac 7803done 7804cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7805 7806 7807# Only perform the check for file, if the check method requires it 7808test -z "$MAGIC_CMD" && MAGIC_CMD=file 7809case $deplibs_check_method in 7810file_magic*) 7811 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7813$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7814if ${lt_cv_path_MAGIC_CMD+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 case $MAGIC_CMD in 7818[\\/*] | ?:[\\/]*) 7819 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7820 ;; 7821*) 7822 lt_save_MAGIC_CMD="$MAGIC_CMD" 7823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7824 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7825 for ac_dir in $ac_dummy; do 7826 IFS="$lt_save_ifs" 7827 test -z "$ac_dir" && ac_dir=. 7828 if test -f $ac_dir/${ac_tool_prefix}file; then 7829 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7830 if test -n "$file_magic_test_file"; then 7831 case $deplibs_check_method in 7832 "file_magic "*) 7833 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7836 $EGREP "$file_magic_regex" > /dev/null; then 7837 : 7838 else 7839 cat <<_LT_EOF 1>&2 7840 7841*** Warning: the command libtool uses to detect shared libraries, 7842*** $file_magic_cmd, produces output that libtool cannot recognize. 7843*** The result is that libtool may fail to recognize shared libraries 7844*** as such. This will affect the creation of libtool libraries that 7845*** depend on shared libraries, but programs linked with such libtool 7846*** libraries will work regardless of this problem. Nevertheless, you 7847*** may want to report the problem to your system manager and/or to 7848*** bug-libtool@gnu.org 7849 7850_LT_EOF 7851 fi ;; 7852 esac 7853 fi 7854 break 7855 fi 7856 done 7857 IFS="$lt_save_ifs" 7858 MAGIC_CMD="$lt_save_MAGIC_CMD" 7859 ;; 7860esac 7861fi 7862 7863MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7864if test -n "$MAGIC_CMD"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7866$as_echo "$MAGIC_CMD" >&6; } 7867else 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869$as_echo "no" >&6; } 7870fi 7871 7872 7873 7874 7875 7876if test -z "$lt_cv_path_MAGIC_CMD"; then 7877 if test -n "$ac_tool_prefix"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7879$as_echo_n "checking for file... " >&6; } 7880if ${lt_cv_path_MAGIC_CMD+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 case $MAGIC_CMD in 7884[\\/*] | ?:[\\/]*) 7885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7886 ;; 7887*) 7888 lt_save_MAGIC_CMD="$MAGIC_CMD" 7889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7891 for ac_dir in $ac_dummy; do 7892 IFS="$lt_save_ifs" 7893 test -z "$ac_dir" && ac_dir=. 7894 if test -f $ac_dir/file; then 7895 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7896 if test -n "$file_magic_test_file"; then 7897 case $deplibs_check_method in 7898 "file_magic "*) 7899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7902 $EGREP "$file_magic_regex" > /dev/null; then 7903 : 7904 else 7905 cat <<_LT_EOF 1>&2 7906 7907*** Warning: the command libtool uses to detect shared libraries, 7908*** $file_magic_cmd, produces output that libtool cannot recognize. 7909*** The result is that libtool may fail to recognize shared libraries 7910*** as such. This will affect the creation of libtool libraries that 7911*** depend on shared libraries, but programs linked with such libtool 7912*** libraries will work regardless of this problem. Nevertheless, you 7913*** may want to report the problem to your system manager and/or to 7914*** bug-libtool@gnu.org 7915 7916_LT_EOF 7917 fi ;; 7918 esac 7919 fi 7920 break 7921 fi 7922 done 7923 IFS="$lt_save_ifs" 7924 MAGIC_CMD="$lt_save_MAGIC_CMD" 7925 ;; 7926esac 7927fi 7928 7929MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7930if test -n "$MAGIC_CMD"; then 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7932$as_echo "$MAGIC_CMD" >&6; } 7933else 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7935$as_echo "no" >&6; } 7936fi 7937 7938 7939 else 7940 MAGIC_CMD=: 7941 fi 7942fi 7943 7944 fi 7945 ;; 7946esac 7947 7948# Use C for the default configuration in the libtool script 7949 7950lt_save_CC="$CC" 7951ac_ext=c 7952ac_cpp='$CPP $CPPFLAGS' 7953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7955ac_compiler_gnu=$ac_cv_c_compiler_gnu 7956 7957 7958# Source file extension for C test sources. 7959ac_ext=c 7960 7961# Object file extension for compiled C test sources. 7962objext=o 7963objext=$objext 7964 7965# Code to be used in simple compile tests 7966lt_simple_compile_test_code="int some_variable = 0;" 7967 7968# Code to be used in simple link tests 7969lt_simple_link_test_code='int main(){return(0);}' 7970 7971 7972 7973 7974 7975 7976 7977# If no C compiler was specified, use CC. 7978LTCC=${LTCC-"$CC"} 7979 7980# If no C compiler flags were specified, use CFLAGS. 7981LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7982 7983# Allow CC to be a program name with arguments. 7984compiler=$CC 7985 7986# Save the default compiler, since it gets overwritten when the other 7987# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7988compiler_DEFAULT=$CC 7989 7990# save warnings/boilerplate of simple test code 7991ac_outfile=conftest.$ac_objext 7992echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7993eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7994_lt_compiler_boilerplate=`cat conftest.err` 7995$RM conftest* 7996 7997ac_outfile=conftest.$ac_objext 7998echo "$lt_simple_link_test_code" >conftest.$ac_ext 7999eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8000_lt_linker_boilerplate=`cat conftest.err` 8001$RM -r conftest* 8002 8003 8004## CAVEAT EMPTOR: 8005## There is no encapsulation within the following macros, do not change 8006## the running order or otherwise move them around unless you know exactly 8007## what you are doing... 8008if test -n "$compiler"; then 8009 8010lt_prog_compiler_no_builtin_flag= 8011 8012if test "$GCC" = yes; then 8013 case $cc_basename in 8014 nvcc*) 8015 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8016 *) 8017 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8018 esac 8019 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8021$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8022if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 lt_cv_prog_compiler_rtti_exceptions=no 8026 ac_outfile=conftest.$ac_objext 8027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8028 lt_compiler_flag="-fno-rtti -fno-exceptions" 8029 # Insert the option either (1) after the last *FLAGS variable, or 8030 # (2) before a word containing "conftest.", or (3) at the end. 8031 # Note that $ac_compile itself does not contain backslashes and begins 8032 # with a dollar sign (not a hyphen), so the echo should work correctly. 8033 # The option is referenced via a variable to avoid confusing sed. 8034 lt_compile=`echo "$ac_compile" | $SED \ 8035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8037 -e 's:$: $lt_compiler_flag:'` 8038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8039 (eval "$lt_compile" 2>conftest.err) 8040 ac_status=$? 8041 cat conftest.err >&5 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8043 if (exit $ac_status) && test -s "$ac_outfile"; then 8044 # The compiler can only warn and ignore the option if not recognized 8045 # So say no if there are warnings other than the usual output. 8046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8049 lt_cv_prog_compiler_rtti_exceptions=yes 8050 fi 8051 fi 8052 $RM conftest* 8053 8054fi 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8056$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8057 8058if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8059 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8060else 8061 : 8062fi 8063 8064fi 8065 8066 8067 8068 8069 8070 8071 lt_prog_compiler_wl= 8072lt_prog_compiler_pic= 8073lt_prog_compiler_static= 8074 8075 8076 if test "$GCC" = yes; then 8077 lt_prog_compiler_wl='-Wl,' 8078 lt_prog_compiler_static='-static' 8079 8080 case $host_os in 8081 aix*) 8082 # All AIX code is PIC. 8083 if test "$host_cpu" = ia64; then 8084 # AIX 5 now supports IA64 processor 8085 lt_prog_compiler_static='-Bstatic' 8086 fi 8087 ;; 8088 8089 amigaos*) 8090 case $host_cpu in 8091 powerpc) 8092 # see comment about AmigaOS4 .so support 8093 lt_prog_compiler_pic='-fPIC' 8094 ;; 8095 m68k) 8096 # FIXME: we need at least 68020 code to build shared libraries, but 8097 # adding the `-m68020' flag to GCC prevents building anything better, 8098 # like `-m68040'. 8099 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8100 ;; 8101 esac 8102 ;; 8103 8104 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8105 # PIC is the default for these OSes. 8106 ;; 8107 8108 mingw* | cygwin* | pw32* | os2* | cegcc*) 8109 # This hack is so that the source file can tell whether it is being 8110 # built for inclusion in a dll (and should export symbols for example). 8111 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8112 # (--disable-auto-import) libraries 8113 lt_prog_compiler_pic='-DDLL_EXPORT' 8114 ;; 8115 8116 darwin* | rhapsody*) 8117 # PIC is the default on this platform 8118 # Common symbols not allowed in MH_DYLIB files 8119 lt_prog_compiler_pic='-fno-common' 8120 ;; 8121 8122 haiku*) 8123 # PIC is the default for Haiku. 8124 # The "-static" flag exists, but is broken. 8125 lt_prog_compiler_static= 8126 ;; 8127 8128 hpux*) 8129 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8130 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8131 # sets the default TLS model and affects inlining. 8132 case $host_cpu in 8133 hppa*64*) 8134 # +Z the default 8135 ;; 8136 *) 8137 lt_prog_compiler_pic='-fPIC' 8138 ;; 8139 esac 8140 ;; 8141 8142 interix[3-9]*) 8143 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8144 # Instead, we relocate shared libraries at runtime. 8145 ;; 8146 8147 msdosdjgpp*) 8148 # Just because we use GCC doesn't mean we suddenly get shared libraries 8149 # on systems that don't support them. 8150 lt_prog_compiler_can_build_shared=no 8151 enable_shared=no 8152 ;; 8153 8154 *nto* | *qnx*) 8155 # QNX uses GNU C++, but need to define -shared option too, otherwise 8156 # it will coredump. 8157 lt_prog_compiler_pic='-fPIC -shared' 8158 ;; 8159 8160 sysv4*MP*) 8161 if test -d /usr/nec; then 8162 lt_prog_compiler_pic=-Kconform_pic 8163 fi 8164 ;; 8165 8166 *) 8167 lt_prog_compiler_pic='-fPIC' 8168 ;; 8169 esac 8170 8171 case $cc_basename in 8172 nvcc*) # Cuda Compiler Driver 2.2 8173 lt_prog_compiler_wl='-Xlinker ' 8174 if test -n "$lt_prog_compiler_pic"; then 8175 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8176 fi 8177 ;; 8178 esac 8179 else 8180 # PORTME Check for flag to pass linker flags through the system compiler. 8181 case $host_os in 8182 aix*) 8183 lt_prog_compiler_wl='-Wl,' 8184 if test "$host_cpu" = ia64; then 8185 # AIX 5 now supports IA64 processor 8186 lt_prog_compiler_static='-Bstatic' 8187 else 8188 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8189 fi 8190 ;; 8191 8192 mingw* | cygwin* | pw32* | os2* | cegcc*) 8193 # This hack is so that the source file can tell whether it is being 8194 # built for inclusion in a dll (and should export symbols for example). 8195 lt_prog_compiler_pic='-DDLL_EXPORT' 8196 ;; 8197 8198 hpux9* | hpux10* | hpux11*) 8199 lt_prog_compiler_wl='-Wl,' 8200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8201 # not for PA HP-UX. 8202 case $host_cpu in 8203 hppa*64*|ia64*) 8204 # +Z the default 8205 ;; 8206 *) 8207 lt_prog_compiler_pic='+Z' 8208 ;; 8209 esac 8210 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8211 lt_prog_compiler_static='${wl}-a ${wl}archive' 8212 ;; 8213 8214 irix5* | irix6* | nonstopux*) 8215 lt_prog_compiler_wl='-Wl,' 8216 # PIC (with -KPIC) is the default. 8217 lt_prog_compiler_static='-non_shared' 8218 ;; 8219 8220 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8221 case $cc_basename in 8222 # old Intel for x86_64 which still supported -KPIC. 8223 ecc*) 8224 lt_prog_compiler_wl='-Wl,' 8225 lt_prog_compiler_pic='-KPIC' 8226 lt_prog_compiler_static='-static' 8227 ;; 8228 # icc used to be incompatible with GCC. 8229 # ICC 10 doesn't accept -KPIC any more. 8230 icc* | ifort*) 8231 lt_prog_compiler_wl='-Wl,' 8232 lt_prog_compiler_pic='-fPIC' 8233 lt_prog_compiler_static='-static' 8234 ;; 8235 # Lahey Fortran 8.1. 8236 lf95*) 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_pic='--shared' 8239 lt_prog_compiler_static='--static' 8240 ;; 8241 nagfor*) 8242 # NAG Fortran compiler 8243 lt_prog_compiler_wl='-Wl,-Wl,,' 8244 lt_prog_compiler_pic='-PIC' 8245 lt_prog_compiler_static='-Bstatic' 8246 ;; 8247 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8248 # Portland Group compilers (*not* the Pentium gcc compiler, 8249 # which looks to be a dead project) 8250 lt_prog_compiler_wl='-Wl,' 8251 lt_prog_compiler_pic='-fpic' 8252 lt_prog_compiler_static='-Bstatic' 8253 ;; 8254 ccc*) 8255 lt_prog_compiler_wl='-Wl,' 8256 # All Alpha code is PIC. 8257 lt_prog_compiler_static='-non_shared' 8258 ;; 8259 xl* | bgxl* | bgf* | mpixl*) 8260 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8261 lt_prog_compiler_wl='-Wl,' 8262 lt_prog_compiler_pic='-qpic' 8263 lt_prog_compiler_static='-qstaticlink' 8264 ;; 8265 *) 8266 case `$CC -V 2>&1 | sed 5q` in 8267 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8268 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8269 lt_prog_compiler_pic='-KPIC' 8270 lt_prog_compiler_static='-Bstatic' 8271 lt_prog_compiler_wl='' 8272 ;; 8273 *Sun\ F* | *Sun*Fortran*) 8274 lt_prog_compiler_pic='-KPIC' 8275 lt_prog_compiler_static='-Bstatic' 8276 lt_prog_compiler_wl='-Qoption ld ' 8277 ;; 8278 *Sun\ C*) 8279 # Sun C 5.9 8280 lt_prog_compiler_pic='-KPIC' 8281 lt_prog_compiler_static='-Bstatic' 8282 lt_prog_compiler_wl='-Wl,' 8283 ;; 8284 *Intel*\ [CF]*Compiler*) 8285 lt_prog_compiler_wl='-Wl,' 8286 lt_prog_compiler_pic='-fPIC' 8287 lt_prog_compiler_static='-static' 8288 ;; 8289 *Portland\ Group*) 8290 lt_prog_compiler_wl='-Wl,' 8291 lt_prog_compiler_pic='-fpic' 8292 lt_prog_compiler_static='-Bstatic' 8293 ;; 8294 esac 8295 ;; 8296 esac 8297 ;; 8298 8299 newsos6) 8300 lt_prog_compiler_pic='-KPIC' 8301 lt_prog_compiler_static='-Bstatic' 8302 ;; 8303 8304 *nto* | *qnx*) 8305 # QNX uses GNU C++, but need to define -shared option too, otherwise 8306 # it will coredump. 8307 lt_prog_compiler_pic='-fPIC -shared' 8308 ;; 8309 8310 osf3* | osf4* | osf5*) 8311 lt_prog_compiler_wl='-Wl,' 8312 # All OSF/1 code is PIC. 8313 lt_prog_compiler_static='-non_shared' 8314 ;; 8315 8316 rdos*) 8317 lt_prog_compiler_static='-non_shared' 8318 ;; 8319 8320 solaris*) 8321 lt_prog_compiler_pic='-KPIC' 8322 lt_prog_compiler_static='-Bstatic' 8323 case $cc_basename in 8324 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8325 lt_prog_compiler_wl='-Qoption ld ';; 8326 *) 8327 lt_prog_compiler_wl='-Wl,';; 8328 esac 8329 ;; 8330 8331 sunos4*) 8332 lt_prog_compiler_wl='-Qoption ld ' 8333 lt_prog_compiler_pic='-PIC' 8334 lt_prog_compiler_static='-Bstatic' 8335 ;; 8336 8337 sysv4 | sysv4.2uw2* | sysv4.3*) 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='-KPIC' 8340 lt_prog_compiler_static='-Bstatic' 8341 ;; 8342 8343 sysv4*MP*) 8344 if test -d /usr/nec ;then 8345 lt_prog_compiler_pic='-Kconform_pic' 8346 lt_prog_compiler_static='-Bstatic' 8347 fi 8348 ;; 8349 8350 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8351 lt_prog_compiler_wl='-Wl,' 8352 lt_prog_compiler_pic='-KPIC' 8353 lt_prog_compiler_static='-Bstatic' 8354 ;; 8355 8356 unicos*) 8357 lt_prog_compiler_wl='-Wl,' 8358 lt_prog_compiler_can_build_shared=no 8359 ;; 8360 8361 uts4*) 8362 lt_prog_compiler_pic='-pic' 8363 lt_prog_compiler_static='-Bstatic' 8364 ;; 8365 8366 *) 8367 lt_prog_compiler_can_build_shared=no 8368 ;; 8369 esac 8370 fi 8371 8372case $host_os in 8373 # For platforms which do not support PIC, -DPIC is meaningless: 8374 *djgpp*) 8375 lt_prog_compiler_pic= 8376 ;; 8377 *) 8378 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8379 ;; 8380esac 8381 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8383$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8384if ${lt_cv_prog_compiler_pic+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8388fi 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8390$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8391lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8392 8393# 8394# Check to make sure the PIC flag actually works. 8395# 8396if test -n "$lt_prog_compiler_pic"; then 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8398$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8399if ${lt_cv_prog_compiler_pic_works+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 lt_cv_prog_compiler_pic_works=no 8403 ac_outfile=conftest.$ac_objext 8404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8405 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8406 # Insert the option either (1) after the last *FLAGS variable, or 8407 # (2) before a word containing "conftest.", or (3) at the end. 8408 # Note that $ac_compile itself does not contain backslashes and begins 8409 # with a dollar sign (not a hyphen), so the echo should work correctly. 8410 # The option is referenced via a variable to avoid confusing sed. 8411 lt_compile=`echo "$ac_compile" | $SED \ 8412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8414 -e 's:$: $lt_compiler_flag:'` 8415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8416 (eval "$lt_compile" 2>conftest.err) 8417 ac_status=$? 8418 cat conftest.err >&5 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 if (exit $ac_status) && test -s "$ac_outfile"; then 8421 # The compiler can only warn and ignore the option if not recognized 8422 # So say no if there are warnings other than the usual output. 8423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8426 lt_cv_prog_compiler_pic_works=yes 8427 fi 8428 fi 8429 $RM conftest* 8430 8431fi 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8433$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8434 8435if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8436 case $lt_prog_compiler_pic in 8437 "" | " "*) ;; 8438 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8439 esac 8440else 8441 lt_prog_compiler_pic= 8442 lt_prog_compiler_can_build_shared=no 8443fi 8444 8445fi 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457# 8458# Check to make sure the static flag actually works. 8459# 8460wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8462$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8463if ${lt_cv_prog_compiler_static_works+:} false; then : 8464 $as_echo_n "(cached) " >&6 8465else 8466 lt_cv_prog_compiler_static_works=no 8467 save_LDFLAGS="$LDFLAGS" 8468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8469 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8471 # The linker can only warn and ignore the option if not recognized 8472 # So say no if there are warnings 8473 if test -s conftest.err; then 8474 # Append any errors to the config.log. 8475 cat conftest.err 1>&5 8476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8478 if diff conftest.exp conftest.er2 >/dev/null; then 8479 lt_cv_prog_compiler_static_works=yes 8480 fi 8481 else 8482 lt_cv_prog_compiler_static_works=yes 8483 fi 8484 fi 8485 $RM -r conftest* 8486 LDFLAGS="$save_LDFLAGS" 8487 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8490$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8491 8492if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8493 : 8494else 8495 lt_prog_compiler_static= 8496fi 8497 8498 8499 8500 8501 8502 8503 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8505$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8506if ${lt_cv_prog_compiler_c_o+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508else 8509 lt_cv_prog_compiler_c_o=no 8510 $RM -r conftest 2>/dev/null 8511 mkdir conftest 8512 cd conftest 8513 mkdir out 8514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8515 8516 lt_compiler_flag="-o out/conftest2.$ac_objext" 8517 # Insert the option either (1) after the last *FLAGS variable, or 8518 # (2) before a word containing "conftest.", or (3) at the end. 8519 # Note that $ac_compile itself does not contain backslashes and begins 8520 # with a dollar sign (not a hyphen), so the echo should work correctly. 8521 lt_compile=`echo "$ac_compile" | $SED \ 8522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8524 -e 's:$: $lt_compiler_flag:'` 8525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8526 (eval "$lt_compile" 2>out/conftest.err) 8527 ac_status=$? 8528 cat out/conftest.err >&5 8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8530 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8531 then 8532 # The compiler can only warn and ignore the option if not recognized 8533 # So say no if there are warnings 8534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8537 lt_cv_prog_compiler_c_o=yes 8538 fi 8539 fi 8540 chmod u+w . 2>&5 8541 $RM conftest* 8542 # SGI C++ compiler will create directory out/ii_files/ for 8543 # template instantiation 8544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8545 $RM out/* && rmdir out 8546 cd .. 8547 $RM -r conftest 8548 $RM conftest* 8549 8550fi 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8552$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8553 8554 8555 8556 8557 8558 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8560$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8561if ${lt_cv_prog_compiler_c_o+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_prog_compiler_c_o=no 8565 $RM -r conftest 2>/dev/null 8566 mkdir conftest 8567 cd conftest 8568 mkdir out 8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8570 8571 lt_compiler_flag="-o out/conftest2.$ac_objext" 8572 # Insert the option either (1) after the last *FLAGS variable, or 8573 # (2) before a word containing "conftest.", or (3) at the end. 8574 # Note that $ac_compile itself does not contain backslashes and begins 8575 # with a dollar sign (not a hyphen), so the echo should work correctly. 8576 lt_compile=`echo "$ac_compile" | $SED \ 8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8579 -e 's:$: $lt_compiler_flag:'` 8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8581 (eval "$lt_compile" 2>out/conftest.err) 8582 ac_status=$? 8583 cat out/conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8586 then 8587 # The compiler can only warn and ignore the option if not recognized 8588 # So say no if there are warnings 8589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8592 lt_cv_prog_compiler_c_o=yes 8593 fi 8594 fi 8595 chmod u+w . 2>&5 8596 $RM conftest* 8597 # SGI C++ compiler will create directory out/ii_files/ for 8598 # template instantiation 8599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8600 $RM out/* && rmdir out 8601 cd .. 8602 $RM -r conftest 8603 $RM conftest* 8604 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8607$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8608 8609 8610 8611 8612hard_links="nottested" 8613if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8614 # do not overwrite the value of need_locks provided by the user 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8616$as_echo_n "checking if we can lock with hard links... " >&6; } 8617 hard_links=yes 8618 $RM conftest* 8619 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8620 touch conftest.a 8621 ln conftest.a conftest.b 2>&5 || hard_links=no 8622 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8624$as_echo "$hard_links" >&6; } 8625 if test "$hard_links" = no; then 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8627$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8628 need_locks=warn 8629 fi 8630else 8631 need_locks=no 8632fi 8633 8634 8635 8636 8637 8638 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8640$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8641 8642 runpath_var= 8643 allow_undefined_flag= 8644 always_export_symbols=no 8645 archive_cmds= 8646 archive_expsym_cmds= 8647 compiler_needs_object=no 8648 enable_shared_with_static_runtimes=no 8649 export_dynamic_flag_spec= 8650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8651 hardcode_automatic=no 8652 hardcode_direct=no 8653 hardcode_direct_absolute=no 8654 hardcode_libdir_flag_spec= 8655 hardcode_libdir_separator= 8656 hardcode_minus_L=no 8657 hardcode_shlibpath_var=unsupported 8658 inherit_rpath=no 8659 link_all_deplibs=unknown 8660 module_cmds= 8661 module_expsym_cmds= 8662 old_archive_from_new_cmds= 8663 old_archive_from_expsyms_cmds= 8664 thread_safe_flag_spec= 8665 whole_archive_flag_spec= 8666 # include_expsyms should be a list of space-separated symbols to be *always* 8667 # included in the symbol list 8668 include_expsyms= 8669 # exclude_expsyms can be an extended regexp of symbols to exclude 8670 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8672 # as well as any symbol that contains `d'. 8673 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8675 # platforms (ab)use it in PIC code, but their linkers get confused if 8676 # the symbol is explicitly referenced. Since portable code cannot 8677 # rely on this symbol name, it's probably fine to never include it in 8678 # preloaded symbol tables. 8679 # Exclude shared library initialization/finalization symbols. 8680 extract_expsyms_cmds= 8681 8682 case $host_os in 8683 cygwin* | mingw* | pw32* | cegcc*) 8684 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8685 # When not using gcc, we currently assume that we are using 8686 # Microsoft Visual C++. 8687 if test "$GCC" != yes; then 8688 with_gnu_ld=no 8689 fi 8690 ;; 8691 interix*) 8692 # we just hope/assume this is gcc and not c89 (= MSVC++) 8693 with_gnu_ld=yes 8694 ;; 8695 openbsd*) 8696 with_gnu_ld=no 8697 ;; 8698 esac 8699 8700 ld_shlibs=yes 8701 8702 # On some targets, GNU ld is compatible enough with the native linker 8703 # that we're better off using the native interface for both. 8704 lt_use_gnu_ld_interface=no 8705 if test "$with_gnu_ld" = yes; then 8706 case $host_os in 8707 aix*) 8708 # The AIX port of GNU ld has always aspired to compatibility 8709 # with the native linker. However, as the warning in the GNU ld 8710 # block says, versions before 2.19.5* couldn't really create working 8711 # shared libraries, regardless of the interface used. 8712 case `$LD -v 2>&1` in 8713 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8714 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8715 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8716 *) 8717 lt_use_gnu_ld_interface=yes 8718 ;; 8719 esac 8720 ;; 8721 *) 8722 lt_use_gnu_ld_interface=yes 8723 ;; 8724 esac 8725 fi 8726 8727 if test "$lt_use_gnu_ld_interface" = yes; then 8728 # If archive_cmds runs LD, not CC, wlarc should be empty 8729 wlarc='${wl}' 8730 8731 # Set some defaults for GNU ld with shared library support. These 8732 # are reset later if shared libraries are not supported. Putting them 8733 # here allows them to be overridden if necessary. 8734 runpath_var=LD_RUN_PATH 8735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8736 export_dynamic_flag_spec='${wl}--export-dynamic' 8737 # ancient GNU ld didn't support --whole-archive et. al. 8738 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8740 else 8741 whole_archive_flag_spec= 8742 fi 8743 supports_anon_versioning=no 8744 case `$LD -v 2>&1` in 8745 *GNU\ gold*) supports_anon_versioning=yes ;; 8746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8749 *\ 2.11.*) ;; # other 2.11 versions 8750 *) supports_anon_versioning=yes ;; 8751 esac 8752 8753 # See if GNU ld supports shared libraries. 8754 case $host_os in 8755 aix[3-9]*) 8756 # On AIX/PPC, the GNU linker is very broken 8757 if test "$host_cpu" != ia64; then 8758 ld_shlibs=no 8759 cat <<_LT_EOF 1>&2 8760 8761*** Warning: the GNU linker, at least up to release 2.19, is reported 8762*** to be unable to reliably create shared libraries on AIX. 8763*** Therefore, libtool is disabling shared libraries support. If you 8764*** really care for shared libraries, you may want to install binutils 8765*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8766*** You will then need to restart the configuration process. 8767 8768_LT_EOF 8769 fi 8770 ;; 8771 8772 amigaos*) 8773 case $host_cpu in 8774 powerpc) 8775 # see comment about AmigaOS4 .so support 8776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8777 archive_expsym_cmds='' 8778 ;; 8779 m68k) 8780 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)' 8781 hardcode_libdir_flag_spec='-L$libdir' 8782 hardcode_minus_L=yes 8783 ;; 8784 esac 8785 ;; 8786 8787 beos*) 8788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8789 allow_undefined_flag=unsupported 8790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8791 # support --undefined. This deserves some investigation. FIXME 8792 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8793 else 8794 ld_shlibs=no 8795 fi 8796 ;; 8797 8798 cygwin* | mingw* | pw32* | cegcc*) 8799 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8800 # as there is no search path for DLLs. 8801 hardcode_libdir_flag_spec='-L$libdir' 8802 export_dynamic_flag_spec='${wl}--export-all-symbols' 8803 allow_undefined_flag=unsupported 8804 always_export_symbols=no 8805 enable_shared_with_static_runtimes=yes 8806 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' 8807 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8808 8809 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8811 # If the export-symbols file already is a .def file (1st line 8812 # is EXPORTS), use it as is; otherwise, prepend... 8813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8814 cp $export_symbols $output_objdir/$soname.def; 8815 else 8816 echo EXPORTS > $output_objdir/$soname.def; 8817 cat $export_symbols >> $output_objdir/$soname.def; 8818 fi~ 8819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8820 else 8821 ld_shlibs=no 8822 fi 8823 ;; 8824 8825 haiku*) 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8827 link_all_deplibs=yes 8828 ;; 8829 8830 interix[3-9]*) 8831 hardcode_direct=no 8832 hardcode_shlibpath_var=no 8833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8834 export_dynamic_flag_spec='${wl}-E' 8835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8836 # Instead, shared libraries are loaded at an image base (0x10000000 by 8837 # default) and relocated if they conflict, which is a slow very memory 8838 # consuming and fragmenting process. To avoid this, we pick a random, 8839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8840 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8842 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' 8843 ;; 8844 8845 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8846 tmp_diet=no 8847 if test "$host_os" = linux-dietlibc; then 8848 case $cc_basename in 8849 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8850 esac 8851 fi 8852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8853 && test "$tmp_diet" = no 8854 then 8855 tmp_addflag=' $pic_flag' 8856 tmp_sharedflag='-shared' 8857 case $cc_basename,$host_cpu in 8858 pgcc*) # Portland Group C compiler 8859 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' 8860 tmp_addflag=' $pic_flag' 8861 ;; 8862 pgf77* | pgf90* | pgf95* | pgfortran*) 8863 # Portland Group f77 and f90 compilers 8864 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' 8865 tmp_addflag=' $pic_flag -Mnomain' ;; 8866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8867 tmp_addflag=' -i_dynamic' ;; 8868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8869 tmp_addflag=' -i_dynamic -nofor_main' ;; 8870 ifc* | ifort*) # Intel Fortran compiler 8871 tmp_addflag=' -nofor_main' ;; 8872 lf95*) # Lahey Fortran 8.1 8873 whole_archive_flag_spec= 8874 tmp_sharedflag='--shared' ;; 8875 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8876 tmp_sharedflag='-qmkshrobj' 8877 tmp_addflag= ;; 8878 nvcc*) # Cuda Compiler Driver 2.2 8879 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' 8880 compiler_needs_object=yes 8881 ;; 8882 esac 8883 case `$CC -V 2>&1 | sed 5q` in 8884 *Sun\ C*) # Sun C 5.9 8885 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' 8886 compiler_needs_object=yes 8887 tmp_sharedflag='-G' ;; 8888 *Sun\ F*) # Sun Fortran 8.3 8889 tmp_sharedflag='-G' ;; 8890 esac 8891 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8892 8893 if test "x$supports_anon_versioning" = xyes; then 8894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8896 echo "local: *; };" >> $output_objdir/$libname.ver~ 8897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8898 fi 8899 8900 case $cc_basename in 8901 xlf* | bgf* | bgxlf* | mpixlf*) 8902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8903 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8905 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8906 if test "x$supports_anon_versioning" = xyes; then 8907 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8909 echo "local: *; };" >> $output_objdir/$libname.ver~ 8910 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8911 fi 8912 ;; 8913 esac 8914 else 8915 ld_shlibs=no 8916 fi 8917 ;; 8918 8919 netbsd*) 8920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8921 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8922 wlarc= 8923 else 8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8926 fi 8927 ;; 8928 8929 solaris*) 8930 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8931 ld_shlibs=no 8932 cat <<_LT_EOF 1>&2 8933 8934*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8935*** create shared libraries on Solaris systems. Therefore, libtool 8936*** is disabling shared libraries support. We urge you to upgrade GNU 8937*** binutils to release 2.9.1 or newer. Another option is to modify 8938*** your PATH or compiler configuration so that the native linker is 8939*** used, and then restart. 8940 8941_LT_EOF 8942 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8944 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8945 else 8946 ld_shlibs=no 8947 fi 8948 ;; 8949 8950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8951 case `$LD -v 2>&1` in 8952 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8953 ld_shlibs=no 8954 cat <<_LT_EOF 1>&2 8955 8956*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8957*** reliably create shared libraries on SCO systems. Therefore, libtool 8958*** is disabling shared libraries support. We urge you to upgrade GNU 8959*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8960*** your PATH or compiler configuration so that the native linker is 8961*** used, and then restart. 8962 8963_LT_EOF 8964 ;; 8965 *) 8966 # For security reasons, it is highly recommended that you always 8967 # use absolute paths for naming shared libraries, and exclude the 8968 # DT_RUNPATH tag from executables and libraries. But doing so 8969 # requires that you compile everything twice, which is a pain. 8970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8974 else 8975 ld_shlibs=no 8976 fi 8977 ;; 8978 esac 8979 ;; 8980 8981 sunos4*) 8982 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8983 wlarc= 8984 hardcode_direct=yes 8985 hardcode_shlibpath_var=no 8986 ;; 8987 8988 *) 8989 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8992 else 8993 ld_shlibs=no 8994 fi 8995 ;; 8996 esac 8997 8998 if test "$ld_shlibs" = no; then 8999 runpath_var= 9000 hardcode_libdir_flag_spec= 9001 export_dynamic_flag_spec= 9002 whole_archive_flag_spec= 9003 fi 9004 else 9005 # PORTME fill in a description of your system's linker (not GNU ld) 9006 case $host_os in 9007 aix3*) 9008 allow_undefined_flag=unsupported 9009 always_export_symbols=yes 9010 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' 9011 # Note: this linker hardcodes the directories in LIBPATH if there 9012 # are no directories specified by -L. 9013 hardcode_minus_L=yes 9014 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9015 # Neither direct hardcoding nor static linking is supported with a 9016 # broken collect2. 9017 hardcode_direct=unsupported 9018 fi 9019 ;; 9020 9021 aix[4-9]*) 9022 if test "$host_cpu" = ia64; then 9023 # On IA64, the linker does run time linking by default, so we don't 9024 # have to do anything special. 9025 aix_use_runtimelinking=no 9026 exp_sym_flag='-Bexport' 9027 no_entry_flag="" 9028 else 9029 # If we're using GNU nm, then we don't want the "-C" option. 9030 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9031 # Also, AIX nm treats weak defined symbols like other global 9032 # defined symbols, whereas GNU nm marks them as "W". 9033 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9034 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9035 else 9036 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9037 fi 9038 aix_use_runtimelinking=no 9039 9040 # Test if we are trying to use run time linking or normal 9041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9042 # need to do runtime linking. 9043 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9044 for ld_flag in $LDFLAGS; do 9045 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9046 aix_use_runtimelinking=yes 9047 break 9048 fi 9049 done 9050 ;; 9051 esac 9052 9053 exp_sym_flag='-bexport' 9054 no_entry_flag='-bnoentry' 9055 fi 9056 9057 # When large executables or shared objects are built, AIX ld can 9058 # have problems creating the table of contents. If linking a library 9059 # or program results in "error TOC overflow" add -mminimal-toc to 9060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9062 9063 archive_cmds='' 9064 hardcode_direct=yes 9065 hardcode_direct_absolute=yes 9066 hardcode_libdir_separator=':' 9067 link_all_deplibs=yes 9068 file_list_spec='${wl}-f,' 9069 9070 if test "$GCC" = yes; then 9071 case $host_os in aix4.[012]|aix4.[012].*) 9072 # We only want to do this on AIX 4.2 and lower, the check 9073 # below for broken collect2 doesn't work under 4.3+ 9074 collect2name=`${CC} -print-prog-name=collect2` 9075 if test -f "$collect2name" && 9076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9077 then 9078 # We have reworked collect2 9079 : 9080 else 9081 # We have old collect2 9082 hardcode_direct=unsupported 9083 # It fails to find uninstalled libraries when the uninstalled 9084 # path is not listed in the libpath. Setting hardcode_minus_L 9085 # to unsupported forces relinking 9086 hardcode_minus_L=yes 9087 hardcode_libdir_flag_spec='-L$libdir' 9088 hardcode_libdir_separator= 9089 fi 9090 ;; 9091 esac 9092 shared_flag='-shared' 9093 if test "$aix_use_runtimelinking" = yes; then 9094 shared_flag="$shared_flag "'${wl}-G' 9095 fi 9096 else 9097 # not using gcc 9098 if test "$host_cpu" = ia64; then 9099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9100 # chokes on -Wl,-G. The following line is correct: 9101 shared_flag='-G' 9102 else 9103 if test "$aix_use_runtimelinking" = yes; then 9104 shared_flag='${wl}-G' 9105 else 9106 shared_flag='${wl}-bM:SRE' 9107 fi 9108 fi 9109 fi 9110 9111 export_dynamic_flag_spec='${wl}-bexpall' 9112 # It seems that -bexpall does not export symbols beginning with 9113 # underscore (_), so it is better to generate a list of symbols to export. 9114 always_export_symbols=yes 9115 if test "$aix_use_runtimelinking" = yes; then 9116 # Warning - without using the other runtime loading flags (-brtl), 9117 # -berok will link without error, but may produce a broken library. 9118 allow_undefined_flag='-berok' 9119 # Determine the default libpath from the value encoded in an 9120 # empty executable. 9121 if test "${lt_cv_aix_libpath+set}" = set; then 9122 aix_libpath=$lt_cv_aix_libpath 9123else 9124 if ${lt_cv_aix_libpath_+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129 9130int 9131main () 9132{ 9133 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138if ac_fn_c_try_link "$LINENO"; then : 9139 9140 lt_aix_libpath_sed=' 9141 /Import File Strings/,/^$/ { 9142 /^0/ { 9143 s/^0 *\([^ ]*\) *$/\1/ 9144 p 9145 } 9146 }' 9147 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9148 # Check for a 64-bit object if we didn't find anything. 9149 if test -z "$lt_cv_aix_libpath_"; then 9150 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9151 fi 9152fi 9153rm -f core conftest.err conftest.$ac_objext \ 9154 conftest$ac_exeext conftest.$ac_ext 9155 if test -z "$lt_cv_aix_libpath_"; then 9156 lt_cv_aix_libpath_="/usr/lib:/lib" 9157 fi 9158 9159fi 9160 9161 aix_libpath=$lt_cv_aix_libpath_ 9162fi 9163 9164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9165 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9166 else 9167 if test "$host_cpu" = ia64; then 9168 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9169 allow_undefined_flag="-z nodefs" 9170 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" 9171 else 9172 # Determine the default libpath from the value encoded in an 9173 # empty executable. 9174 if test "${lt_cv_aix_libpath+set}" = set; then 9175 aix_libpath=$lt_cv_aix_libpath 9176else 9177 if ${lt_cv_aix_libpath_+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182 9183int 9184main () 9185{ 9186 9187 ; 9188 return 0; 9189} 9190_ACEOF 9191if ac_fn_c_try_link "$LINENO"; then : 9192 9193 lt_aix_libpath_sed=' 9194 /Import File Strings/,/^$/ { 9195 /^0/ { 9196 s/^0 *\([^ ]*\) *$/\1/ 9197 p 9198 } 9199 }' 9200 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9201 # Check for a 64-bit object if we didn't find anything. 9202 if test -z "$lt_cv_aix_libpath_"; then 9203 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9204 fi 9205fi 9206rm -f core conftest.err conftest.$ac_objext \ 9207 conftest$ac_exeext conftest.$ac_ext 9208 if test -z "$lt_cv_aix_libpath_"; then 9209 lt_cv_aix_libpath_="/usr/lib:/lib" 9210 fi 9211 9212fi 9213 9214 aix_libpath=$lt_cv_aix_libpath_ 9215fi 9216 9217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9218 # Warning - without using the other run time loading flags, 9219 # -berok will link without error, but may produce a broken library. 9220 no_undefined_flag=' ${wl}-bernotok' 9221 allow_undefined_flag=' ${wl}-berok' 9222 if test "$with_gnu_ld" = yes; then 9223 # We only use this code for GNU lds that support --whole-archive. 9224 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9225 else 9226 # Exported symbols can be pulled into shared objects from archives 9227 whole_archive_flag_spec='$convenience' 9228 fi 9229 archive_cmds_need_lc=yes 9230 # This is similar to how AIX traditionally builds its shared libraries. 9231 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9232 fi 9233 fi 9234 ;; 9235 9236 amigaos*) 9237 case $host_cpu in 9238 powerpc) 9239 # see comment about AmigaOS4 .so support 9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9241 archive_expsym_cmds='' 9242 ;; 9243 m68k) 9244 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)' 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 hardcode_minus_L=yes 9247 ;; 9248 esac 9249 ;; 9250 9251 bsdi[45]*) 9252 export_dynamic_flag_spec=-rdynamic 9253 ;; 9254 9255 cygwin* | mingw* | pw32* | cegcc*) 9256 # When not using gcc, we currently assume that we are using 9257 # Microsoft Visual C++. 9258 # hardcode_libdir_flag_spec is actually meaningless, as there is 9259 # no search path for DLLs. 9260 case $cc_basename in 9261 cl*) 9262 # Native MSVC 9263 hardcode_libdir_flag_spec=' ' 9264 allow_undefined_flag=unsupported 9265 always_export_symbols=yes 9266 file_list_spec='@' 9267 # Tell ltmain to make .lib files, not .a files. 9268 libext=lib 9269 # Tell ltmain to make .dll files, not .so files. 9270 shrext_cmds=".dll" 9271 # FIXME: Setting linknames here is a bad hack. 9272 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9273 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9274 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9275 else 9276 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9277 fi~ 9278 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9279 linknames=' 9280 # The linker will not automatically build a static lib if we build a DLL. 9281 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9282 enable_shared_with_static_runtimes=yes 9283 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9285 # Don't use ranlib 9286 old_postinstall_cmds='chmod 644 $oldlib' 9287 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9288 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9289 case $lt_outputfile in 9290 *.exe|*.EXE) ;; 9291 *) 9292 lt_outputfile="$lt_outputfile.exe" 9293 lt_tool_outputfile="$lt_tool_outputfile.exe" 9294 ;; 9295 esac~ 9296 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9297 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9298 $RM "$lt_outputfile.manifest"; 9299 fi' 9300 ;; 9301 *) 9302 # Assume MSVC wrapper 9303 hardcode_libdir_flag_spec=' ' 9304 allow_undefined_flag=unsupported 9305 # Tell ltmain to make .lib files, not .a files. 9306 libext=lib 9307 # Tell ltmain to make .dll files, not .so files. 9308 shrext_cmds=".dll" 9309 # FIXME: Setting linknames here is a bad hack. 9310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9311 # The linker will automatically build a .lib file if we build a DLL. 9312 old_archive_from_new_cmds='true' 9313 # FIXME: Should let the user specify the lib program. 9314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9315 enable_shared_with_static_runtimes=yes 9316 ;; 9317 esac 9318 ;; 9319 9320 darwin* | rhapsody*) 9321 9322 9323 archive_cmds_need_lc=no 9324 hardcode_direct=no 9325 hardcode_automatic=yes 9326 hardcode_shlibpath_var=unsupported 9327 if test "$lt_cv_ld_force_load" = "yes"; then 9328 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\"`' 9329 9330 else 9331 whole_archive_flag_spec='' 9332 fi 9333 link_all_deplibs=yes 9334 allow_undefined_flag="$_lt_dar_allow_undefined" 9335 case $cc_basename in 9336 ifort*) _lt_dar_can_shared=yes ;; 9337 *) _lt_dar_can_shared=$GCC ;; 9338 esac 9339 if test "$_lt_dar_can_shared" = "yes"; then 9340 output_verbose_link_cmd=func_echo_all 9341 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9342 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9343 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}" 9344 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}" 9345 9346 else 9347 ld_shlibs=no 9348 fi 9349 9350 ;; 9351 9352 dgux*) 9353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9354 hardcode_libdir_flag_spec='-L$libdir' 9355 hardcode_shlibpath_var=no 9356 ;; 9357 9358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9359 # support. Future versions do this automatically, but an explicit c++rt0.o 9360 # does not break anything, and helps significantly (at the cost of a little 9361 # extra space). 9362 freebsd2.2*) 9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9364 hardcode_libdir_flag_spec='-R$libdir' 9365 hardcode_direct=yes 9366 hardcode_shlibpath_var=no 9367 ;; 9368 9369 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9370 freebsd2.*) 9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9372 hardcode_direct=yes 9373 hardcode_minus_L=yes 9374 hardcode_shlibpath_var=no 9375 ;; 9376 9377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9378 freebsd* | dragonfly*) 9379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9380 hardcode_libdir_flag_spec='-R$libdir' 9381 hardcode_direct=yes 9382 hardcode_shlibpath_var=no 9383 ;; 9384 9385 hpux9*) 9386 if test "$GCC" = yes; then 9387 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9388 else 9389 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9390 fi 9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9392 hardcode_libdir_separator=: 9393 hardcode_direct=yes 9394 9395 # hardcode_minus_L: Not really in the search PATH, 9396 # but as the default location of the library. 9397 hardcode_minus_L=yes 9398 export_dynamic_flag_spec='${wl}-E' 9399 ;; 9400 9401 hpux10*) 9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9403 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9404 else 9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9406 fi 9407 if test "$with_gnu_ld" = no; then 9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9409 hardcode_libdir_separator=: 9410 hardcode_direct=yes 9411 hardcode_direct_absolute=yes 9412 export_dynamic_flag_spec='${wl}-E' 9413 # hardcode_minus_L: Not really in the search PATH, 9414 # but as the default location of the library. 9415 hardcode_minus_L=yes 9416 fi 9417 ;; 9418 9419 hpux11*) 9420 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9421 case $host_cpu in 9422 hppa*64*) 9423 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9424 ;; 9425 ia64*) 9426 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9427 ;; 9428 *) 9429 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9430 ;; 9431 esac 9432 else 9433 case $host_cpu in 9434 hppa*64*) 9435 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9436 ;; 9437 ia64*) 9438 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9439 ;; 9440 *) 9441 9442 # Older versions of the 11.00 compiler do not understand -b yet 9443 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9445$as_echo_n "checking if $CC understands -b... " >&6; } 9446if ${lt_cv_prog_compiler__b+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448else 9449 lt_cv_prog_compiler__b=no 9450 save_LDFLAGS="$LDFLAGS" 9451 LDFLAGS="$LDFLAGS -b" 9452 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9454 # The linker can only warn and ignore the option if not recognized 9455 # So say no if there are warnings 9456 if test -s conftest.err; then 9457 # Append any errors to the config.log. 9458 cat conftest.err 1>&5 9459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9461 if diff conftest.exp conftest.er2 >/dev/null; then 9462 lt_cv_prog_compiler__b=yes 9463 fi 9464 else 9465 lt_cv_prog_compiler__b=yes 9466 fi 9467 fi 9468 $RM -r conftest* 9469 LDFLAGS="$save_LDFLAGS" 9470 9471fi 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9473$as_echo "$lt_cv_prog_compiler__b" >&6; } 9474 9475if test x"$lt_cv_prog_compiler__b" = xyes; then 9476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9477else 9478 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9479fi 9480 9481 ;; 9482 esac 9483 fi 9484 if test "$with_gnu_ld" = no; then 9485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9486 hardcode_libdir_separator=: 9487 9488 case $host_cpu in 9489 hppa*64*|ia64*) 9490 hardcode_direct=no 9491 hardcode_shlibpath_var=no 9492 ;; 9493 *) 9494 hardcode_direct=yes 9495 hardcode_direct_absolute=yes 9496 export_dynamic_flag_spec='${wl}-E' 9497 9498 # hardcode_minus_L: Not really in the search PATH, 9499 # but as the default location of the library. 9500 hardcode_minus_L=yes 9501 ;; 9502 esac 9503 fi 9504 ;; 9505 9506 irix5* | irix6* | nonstopux*) 9507 if test "$GCC" = yes; then 9508 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' 9509 # Try to use the -exported_symbol ld option, if it does not 9510 # work, assume that -exports_file does not work either and 9511 # implicitly export all symbols. 9512 # This should be the same for all languages, so no per-tag cache variable. 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9514$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9515if ${lt_cv_irix_exported_symbol+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 save_LDFLAGS="$LDFLAGS" 9519 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522int foo (void) { return 0; } 9523_ACEOF 9524if ac_fn_c_try_link "$LINENO"; then : 9525 lt_cv_irix_exported_symbol=yes 9526else 9527 lt_cv_irix_exported_symbol=no 9528fi 9529rm -f core conftest.err conftest.$ac_objext \ 9530 conftest$ac_exeext conftest.$ac_ext 9531 LDFLAGS="$save_LDFLAGS" 9532fi 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9534$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9535 if test "$lt_cv_irix_exported_symbol" = yes; then 9536 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' 9537 fi 9538 else 9539 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' 9540 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' 9541 fi 9542 archive_cmds_need_lc='no' 9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9544 hardcode_libdir_separator=: 9545 inherit_rpath=yes 9546 link_all_deplibs=yes 9547 ;; 9548 9549 netbsd*) 9550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9552 else 9553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9554 fi 9555 hardcode_libdir_flag_spec='-R$libdir' 9556 hardcode_direct=yes 9557 hardcode_shlibpath_var=no 9558 ;; 9559 9560 newsos6) 9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9562 hardcode_direct=yes 9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9564 hardcode_libdir_separator=: 9565 hardcode_shlibpath_var=no 9566 ;; 9567 9568 *nto* | *qnx*) 9569 ;; 9570 9571 openbsd*) 9572 if test -f /usr/libexec/ld.so; then 9573 hardcode_direct=yes 9574 hardcode_shlibpath_var=no 9575 hardcode_direct_absolute=yes 9576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9578 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9580 export_dynamic_flag_spec='${wl}-E' 9581 else 9582 case $host_os in 9583 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9585 hardcode_libdir_flag_spec='-R$libdir' 9586 ;; 9587 *) 9588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9590 ;; 9591 esac 9592 fi 9593 else 9594 ld_shlibs=no 9595 fi 9596 ;; 9597 9598 os2*) 9599 hardcode_libdir_flag_spec='-L$libdir' 9600 hardcode_minus_L=yes 9601 allow_undefined_flag=unsupported 9602 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9603 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9604 ;; 9605 9606 osf3*) 9607 if test "$GCC" = yes; then 9608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9609 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' 9610 else 9611 allow_undefined_flag=' -expect_unresolved \*' 9612 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' 9613 fi 9614 archive_cmds_need_lc='no' 9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9616 hardcode_libdir_separator=: 9617 ;; 9618 9619 osf4* | osf5*) # as osf3* with the addition of -msym flag 9620 if test "$GCC" = yes; then 9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9622 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' 9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9624 else 9625 allow_undefined_flag=' -expect_unresolved \*' 9626 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' 9627 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~ 9628 $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' 9629 9630 # Both c and cxx compiler support -rpath directly 9631 hardcode_libdir_flag_spec='-rpath $libdir' 9632 fi 9633 archive_cmds_need_lc='no' 9634 hardcode_libdir_separator=: 9635 ;; 9636 9637 solaris*) 9638 no_undefined_flag=' -z defs' 9639 if test "$GCC" = yes; then 9640 wlarc='${wl}' 9641 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9643 $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' 9644 else 9645 case `$CC -V 2>&1` in 9646 *"Compilers 5.0"*) 9647 wlarc='' 9648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9651 ;; 9652 *) 9653 wlarc='${wl}' 9654 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9656 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9657 ;; 9658 esac 9659 fi 9660 hardcode_libdir_flag_spec='-R$libdir' 9661 hardcode_shlibpath_var=no 9662 case $host_os in 9663 solaris2.[0-5] | solaris2.[0-5].*) ;; 9664 *) 9665 # The compiler driver will combine and reorder linker options, 9666 # but understands `-z linker_flag'. GCC discards it without `$wl', 9667 # but is careful enough not to reorder. 9668 # Supported since Solaris 2.6 (maybe 2.5.1?) 9669 if test "$GCC" = yes; then 9670 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9671 else 9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9673 fi 9674 ;; 9675 esac 9676 link_all_deplibs=yes 9677 ;; 9678 9679 sunos4*) 9680 if test "x$host_vendor" = xsequent; then 9681 # Use $CC to link under sequent, because it throws in some extra .o 9682 # files that make .init and .fini sections work. 9683 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9684 else 9685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9686 fi 9687 hardcode_libdir_flag_spec='-L$libdir' 9688 hardcode_direct=yes 9689 hardcode_minus_L=yes 9690 hardcode_shlibpath_var=no 9691 ;; 9692 9693 sysv4) 9694 case $host_vendor in 9695 sni) 9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9697 hardcode_direct=yes # is this really true??? 9698 ;; 9699 siemens) 9700 ## LD is ld it makes a PLAMLIB 9701 ## CC just makes a GrossModule. 9702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9703 reload_cmds='$CC -r -o $output$reload_objs' 9704 hardcode_direct=no 9705 ;; 9706 motorola) 9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9709 ;; 9710 esac 9711 runpath_var='LD_RUN_PATH' 9712 hardcode_shlibpath_var=no 9713 ;; 9714 9715 sysv4.3*) 9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9717 hardcode_shlibpath_var=no 9718 export_dynamic_flag_spec='-Bexport' 9719 ;; 9720 9721 sysv4*MP*) 9722 if test -d /usr/nec; then 9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9724 hardcode_shlibpath_var=no 9725 runpath_var=LD_RUN_PATH 9726 hardcode_runpath_var=yes 9727 ld_shlibs=yes 9728 fi 9729 ;; 9730 9731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9732 no_undefined_flag='${wl}-z,text' 9733 archive_cmds_need_lc=no 9734 hardcode_shlibpath_var=no 9735 runpath_var='LD_RUN_PATH' 9736 9737 if test "$GCC" = yes; then 9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 else 9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 fi 9744 ;; 9745 9746 sysv5* | sco3.2v5* | sco5v6*) 9747 # Note: We can NOT use -z defs as we might desire, because we do not 9748 # link with -lc, and that would cause any symbols used from libc to 9749 # always be unresolved, which means just about no library would 9750 # ever link correctly. If we're not using GNU ld we use -z text 9751 # though, which does catch some bad symbols but isn't as heavy-handed 9752 # as -z defs. 9753 no_undefined_flag='${wl}-z,text' 9754 allow_undefined_flag='${wl}-z,nodefs' 9755 archive_cmds_need_lc=no 9756 hardcode_shlibpath_var=no 9757 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9758 hardcode_libdir_separator=':' 9759 link_all_deplibs=yes 9760 export_dynamic_flag_spec='${wl}-Bexport' 9761 runpath_var='LD_RUN_PATH' 9762 9763 if test "$GCC" = yes; then 9764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9766 else 9767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9769 fi 9770 ;; 9771 9772 uts4*) 9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9774 hardcode_libdir_flag_spec='-L$libdir' 9775 hardcode_shlibpath_var=no 9776 ;; 9777 9778 *) 9779 ld_shlibs=no 9780 ;; 9781 esac 9782 9783 if test x$host_vendor = xsni; then 9784 case $host in 9785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9786 export_dynamic_flag_spec='${wl}-Blargedynsym' 9787 ;; 9788 esac 9789 fi 9790 fi 9791 9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9793$as_echo "$ld_shlibs" >&6; } 9794test "$ld_shlibs" = no && can_build_shared=no 9795 9796with_gnu_ld=$with_gnu_ld 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812# 9813# Do we need to explicitly link libc? 9814# 9815case "x$archive_cmds_need_lc" in 9816x|xyes) 9817 # Assume -lc should be added 9818 archive_cmds_need_lc=yes 9819 9820 if test "$enable_shared" = yes && test "$GCC" = yes; then 9821 case $archive_cmds in 9822 *'~'*) 9823 # FIXME: we may have to deal with multi-command sequences. 9824 ;; 9825 '$CC '*) 9826 # Test whether the compiler implicitly links with -lc since on some 9827 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9828 # to ld, don't add -lc before -lgcc. 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9831if ${lt_cv_archive_cmds_need_lc+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 $RM conftest* 9835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9836 9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9838 (eval $ac_compile) 2>&5 9839 ac_status=$? 9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9841 test $ac_status = 0; } 2>conftest.err; then 9842 soname=conftest 9843 lib=conftest 9844 libobjs=conftest.$ac_objext 9845 deplibs= 9846 wl=$lt_prog_compiler_wl 9847 pic_flag=$lt_prog_compiler_pic 9848 compiler_flags=-v 9849 linker_flags=-v 9850 verstring= 9851 output_objdir=. 9852 libname=conftest 9853 lt_save_allow_undefined_flag=$allow_undefined_flag 9854 allow_undefined_flag= 9855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9856 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9857 ac_status=$? 9858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9859 test $ac_status = 0; } 9860 then 9861 lt_cv_archive_cmds_need_lc=no 9862 else 9863 lt_cv_archive_cmds_need_lc=yes 9864 fi 9865 allow_undefined_flag=$lt_save_allow_undefined_flag 9866 else 9867 cat conftest.err 1>&5 9868 fi 9869 $RM conftest* 9870 9871fi 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9873$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9874 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9875 ;; 9876 esac 9877 fi 9878 ;; 9879esac 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10033$as_echo_n "checking dynamic linker characteristics... " >&6; } 10034 10035if test "$GCC" = yes; then 10036 case $host_os in 10037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10038 *) lt_awk_arg="/^libraries:/" ;; 10039 esac 10040 case $host_os in 10041 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10042 *) lt_sed_strip_eq="s,=/,/,g" ;; 10043 esac 10044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10045 case $lt_search_path_spec in 10046 *\;*) 10047 # if the path contains ";" then we assume it to be the separator 10048 # otherwise default to the standard path separator (i.e. ":") - it is 10049 # assumed that no part of a normal pathname contains ";" but that should 10050 # okay in the real world where ";" in dirpaths is itself problematic. 10051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10052 ;; 10053 *) 10054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10055 ;; 10056 esac 10057 # Ok, now we have the path, separated by spaces, we can step through it 10058 # and add multilib dir if necessary... 10059 lt_tmp_lt_search_path_spec= 10060 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10061 # ...but if some path already ends with the multilib dir we assume 10062 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer). 10063 case "$lt_multi_os_dir; $lt_search_path_spec " in 10064 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10065 lt_multi_os_dir= 10066 ;; 10067 esac 10068 for lt_sys_path in $lt_search_path_spec; do 10069 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10071 elif test -n "$lt_multi_os_dir"; then 10072 test -d "$lt_sys_path" && \ 10073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10074 fi 10075 done 10076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10077BEGIN {RS=" "; FS="/|\n";} { 10078 lt_foo=""; 10079 lt_count=0; 10080 for (lt_i = NF; lt_i > 0; lt_i--) { 10081 if ($lt_i != "" && $lt_i != ".") { 10082 if ($lt_i == "..") { 10083 lt_count++; 10084 } else { 10085 if (lt_count == 0) { 10086 lt_foo="/" $lt_i lt_foo; 10087 } else { 10088 lt_count--; 10089 } 10090 } 10091 } 10092 } 10093 if (lt_foo != "") { lt_freq[lt_foo]++; } 10094 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10095}'` 10096 # AWK program above erroneously prepends '/' to C:/dos/paths 10097 # for these hosts. 10098 case $host_os in 10099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10100 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10101 esac 10102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10103else 10104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10105fi 10106library_names_spec= 10107libname_spec='lib$name' 10108soname_spec= 10109shrext_cmds=".so" 10110postinstall_cmds= 10111postuninstall_cmds= 10112finish_cmds= 10113finish_eval= 10114shlibpath_var= 10115shlibpath_overrides_runpath=unknown 10116version_type=none 10117dynamic_linker="$host_os ld.so" 10118sys_lib_dlsearch_path_spec="/lib /usr/lib" 10119need_lib_prefix=unknown 10120hardcode_into_libs=no 10121 10122# when you set need_version to no, make sure it does not cause -set_version 10123# flags to be left without arguments 10124need_version=unknown 10125 10126case $host_os in 10127aix3*) 10128 version_type=linux # correct to gnu/linux during the next big refactor 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10130 shlibpath_var=LIBPATH 10131 10132 # AIX 3 has no versioning support, so we append a major version to the name. 10133 soname_spec='${libname}${release}${shared_ext}$major' 10134 ;; 10135 10136aix[4-9]*) 10137 version_type=linux # correct to gnu/linux during the next big refactor 10138 need_lib_prefix=no 10139 need_version=no 10140 hardcode_into_libs=yes 10141 if test "$host_cpu" = ia64; then 10142 # AIX 5 supports IA64 10143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10144 shlibpath_var=LD_LIBRARY_PATH 10145 else 10146 # With GCC up to 2.95.x, collect2 would create an import file 10147 # for dependence libraries. The import file would start with 10148 # the line `#! .'. This would cause the generated library to 10149 # depend on `.', always an invalid library. This was fixed in 10150 # development snapshots of GCC prior to 3.0. 10151 case $host_os in 10152 aix4 | aix4.[01] | aix4.[01].*) 10153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10154 echo ' yes ' 10155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10156 : 10157 else 10158 can_build_shared=no 10159 fi 10160 ;; 10161 esac 10162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10163 # soname into executable. Probably we can add versioning support to 10164 # collect2, so additional links can be useful in future. 10165 if test "$aix_use_runtimelinking" = yes; then 10166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10167 # instead of lib<name>.a to let people know that these are not 10168 # typical AIX shared libraries. 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10170 else 10171 # We preserve .a as extension for shared libraries through AIX4.2 10172 # and later when we are not doing run time linking. 10173 library_names_spec='${libname}${release}.a $libname.a' 10174 soname_spec='${libname}${release}${shared_ext}$major' 10175 fi 10176 shlibpath_var=LIBPATH 10177 fi 10178 ;; 10179 10180amigaos*) 10181 case $host_cpu in 10182 powerpc) 10183 # Since July 2007 AmigaOS4 officially supports .so libraries. 10184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10186 ;; 10187 m68k) 10188 library_names_spec='$libname.ixlibrary $libname.a' 10189 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10190 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10191 ;; 10192 esac 10193 ;; 10194 10195beos*) 10196 library_names_spec='${libname}${shared_ext}' 10197 dynamic_linker="$host_os ld.so" 10198 shlibpath_var=LIBRARY_PATH 10199 ;; 10200 10201bsdi[45]*) 10202 version_type=linux # correct to gnu/linux during the next big refactor 10203 need_version=no 10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10205 soname_spec='${libname}${release}${shared_ext}$major' 10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10207 shlibpath_var=LD_LIBRARY_PATH 10208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10210 # the default ld.so.conf also contains /usr/contrib/lib and 10211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10212 # libtool to hard-code these into programs 10213 ;; 10214 10215cygwin* | mingw* | pw32* | cegcc*) 10216 version_type=windows 10217 shrext_cmds=".dll" 10218 need_version=no 10219 need_lib_prefix=no 10220 10221 case $GCC,$cc_basename in 10222 yes,*) 10223 # gcc 10224 library_names_spec='$libname.dll.a' 10225 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10226 postinstall_cmds='base_file=`basename \${file}`~ 10227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10228 dldir=$destdir/`dirname \$dlpath`~ 10229 test -d \$dldir || mkdir -p \$dldir~ 10230 $install_prog $dir/$dlname \$dldir/$dlname~ 10231 chmod a+x \$dldir/$dlname~ 10232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10234 fi' 10235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10236 dlpath=$dir/\$dldll~ 10237 $RM \$dlpath' 10238 shlibpath_overrides_runpath=yes 10239 10240 case $host_os in 10241 cygwin*) 10242 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10244 10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10246 ;; 10247 mingw* | cegcc*) 10248 # MinGW DLLs use traditional 'lib' prefix 10249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10250 ;; 10251 pw32*) 10252 # pw32 DLLs use 'pw' prefix rather than 'lib' 10253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10254 ;; 10255 esac 10256 dynamic_linker='Win32 ld.exe' 10257 ;; 10258 10259 *,cl*) 10260 # Native MSVC 10261 libname_spec='$name' 10262 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10263 library_names_spec='${libname}.dll.lib' 10264 10265 case $build_os in 10266 mingw*) 10267 sys_lib_search_path_spec= 10268 lt_save_ifs=$IFS 10269 IFS=';' 10270 for lt_path in $LIB 10271 do 10272 IFS=$lt_save_ifs 10273 # Let DOS variable expansion print the short 8.3 style file name. 10274 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10275 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10276 done 10277 IFS=$lt_save_ifs 10278 # Convert to MSYS style. 10279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10280 ;; 10281 cygwin*) 10282 # Convert to unix form, then to dos form, then back to unix form 10283 # but this time dos style (no spaces!) so that the unix form looks 10284 # like /cygdrive/c/PROGRA~1:/cygdr... 10285 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10286 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10287 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10288 ;; 10289 *) 10290 sys_lib_search_path_spec="$LIB" 10291 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10292 # It is most probably a Windows format PATH. 10293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10294 else 10295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10296 fi 10297 # FIXME: find the short name or the path components, as spaces are 10298 # common. (e.g. "Program Files" -> "PROGRA~1") 10299 ;; 10300 esac 10301 10302 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10303 postinstall_cmds='base_file=`basename \${file}`~ 10304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10305 dldir=$destdir/`dirname \$dlpath`~ 10306 test -d \$dldir || mkdir -p \$dldir~ 10307 $install_prog $dir/$dlname \$dldir/$dlname' 10308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10309 dlpath=$dir/\$dldll~ 10310 $RM \$dlpath' 10311 shlibpath_overrides_runpath=yes 10312 dynamic_linker='Win32 link.exe' 10313 ;; 10314 10315 *) 10316 # Assume MSVC wrapper 10317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10318 dynamic_linker='Win32 ld.exe' 10319 ;; 10320 esac 10321 # FIXME: first we should search . and the directory the executable is in 10322 shlibpath_var=PATH 10323 ;; 10324 10325darwin* | rhapsody*) 10326 dynamic_linker="$host_os dyld" 10327 version_type=darwin 10328 need_lib_prefix=no 10329 need_version=no 10330 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10331 soname_spec='${libname}${release}${major}$shared_ext' 10332 shlibpath_overrides_runpath=yes 10333 shlibpath_var=DYLD_LIBRARY_PATH 10334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10335 10336 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10338 ;; 10339 10340dgux*) 10341 version_type=linux # correct to gnu/linux during the next big refactor 10342 need_lib_prefix=no 10343 need_version=no 10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10345 soname_spec='${libname}${release}${shared_ext}$major' 10346 shlibpath_var=LD_LIBRARY_PATH 10347 ;; 10348 10349freebsd* | dragonfly*) 10350 # DragonFly does not have aout. When/if they implement a new 10351 # versioning mechanism, adjust this. 10352 if test -x /usr/bin/objformat; then 10353 objformat=`/usr/bin/objformat` 10354 else 10355 case $host_os in 10356 freebsd[23].*) objformat=aout ;; 10357 *) objformat=elf ;; 10358 esac 10359 fi 10360 version_type=freebsd-$objformat 10361 case $version_type in 10362 freebsd-elf*) 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10364 need_version=no 10365 need_lib_prefix=no 10366 ;; 10367 freebsd-*) 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10369 need_version=yes 10370 ;; 10371 esac 10372 shlibpath_var=LD_LIBRARY_PATH 10373 case $host_os in 10374 freebsd2.*) 10375 shlibpath_overrides_runpath=yes 10376 ;; 10377 freebsd3.[01]* | freebsdelf3.[01]*) 10378 shlibpath_overrides_runpath=yes 10379 hardcode_into_libs=yes 10380 ;; 10381 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10382 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10383 shlibpath_overrides_runpath=no 10384 hardcode_into_libs=yes 10385 ;; 10386 *) # from 4.6 on, and DragonFly 10387 shlibpath_overrides_runpath=yes 10388 hardcode_into_libs=yes 10389 ;; 10390 esac 10391 ;; 10392 10393gnu*) 10394 version_type=linux # correct to gnu/linux during the next big refactor 10395 need_lib_prefix=no 10396 need_version=no 10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10398 soname_spec='${libname}${release}${shared_ext}$major' 10399 shlibpath_var=LD_LIBRARY_PATH 10400 shlibpath_overrides_runpath=no 10401 hardcode_into_libs=yes 10402 ;; 10403 10404haiku*) 10405 version_type=linux # correct to gnu/linux during the next big refactor 10406 need_lib_prefix=no 10407 need_version=no 10408 dynamic_linker="$host_os runtime_loader" 10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10410 soname_spec='${libname}${release}${shared_ext}$major' 10411 shlibpath_var=LIBRARY_PATH 10412 shlibpath_overrides_runpath=yes 10413 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10414 hardcode_into_libs=yes 10415 ;; 10416 10417hpux9* | hpux10* | hpux11*) 10418 # Give a soname corresponding to the major version so that dld.sl refuses to 10419 # link against other versions. 10420 version_type=sunos 10421 need_lib_prefix=no 10422 need_version=no 10423 case $host_cpu in 10424 ia64*) 10425 shrext_cmds='.so' 10426 hardcode_into_libs=yes 10427 dynamic_linker="$host_os dld.so" 10428 shlibpath_var=LD_LIBRARY_PATH 10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10431 soname_spec='${libname}${release}${shared_ext}$major' 10432 if test "X$HPUX_IA64_MODE" = X32; then 10433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10434 else 10435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10436 fi 10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10438 ;; 10439 hppa*64*) 10440 shrext_cmds='.sl' 10441 hardcode_into_libs=yes 10442 dynamic_linker="$host_os dld.sl" 10443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10446 soname_spec='${libname}${release}${shared_ext}$major' 10447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10449 ;; 10450 *) 10451 shrext_cmds='.sl' 10452 dynamic_linker="$host_os dld.sl" 10453 shlibpath_var=SHLIB_PATH 10454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10456 soname_spec='${libname}${release}${shared_ext}$major' 10457 ;; 10458 esac 10459 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10460 postinstall_cmds='chmod 555 $lib' 10461 # or fails outright, so override atomically: 10462 install_override_mode=555 10463 ;; 10464 10465interix[3-9]*) 10466 version_type=linux # correct to gnu/linux during the next big refactor 10467 need_lib_prefix=no 10468 need_version=no 10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10470 soname_spec='${libname}${release}${shared_ext}$major' 10471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10472 shlibpath_var=LD_LIBRARY_PATH 10473 shlibpath_overrides_runpath=no 10474 hardcode_into_libs=yes 10475 ;; 10476 10477irix5* | irix6* | nonstopux*) 10478 case $host_os in 10479 nonstopux*) version_type=nonstopux ;; 10480 *) 10481 if test "$lt_cv_prog_gnu_ld" = yes; then 10482 version_type=linux # correct to gnu/linux during the next big refactor 10483 else 10484 version_type=irix 10485 fi ;; 10486 esac 10487 need_lib_prefix=no 10488 need_version=no 10489 soname_spec='${libname}${release}${shared_ext}$major' 10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10491 case $host_os in 10492 irix5* | nonstopux*) 10493 libsuff= shlibsuff= 10494 ;; 10495 *) 10496 case $LD in # libtool.m4 will add one of these switches to LD 10497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10498 libsuff= shlibsuff= libmagic=32-bit;; 10499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10500 libsuff=32 shlibsuff=N32 libmagic=N32;; 10501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10502 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10503 *) libsuff= shlibsuff= libmagic=never-match;; 10504 esac 10505 ;; 10506 esac 10507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10508 shlibpath_overrides_runpath=no 10509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10511 hardcode_into_libs=yes 10512 ;; 10513 10514# No shared lib support for Linux oldld, aout, or coff. 10515linux*oldld* | linux*aout* | linux*coff*) 10516 dynamic_linker=no 10517 ;; 10518 10519# This must be glibc/ELF. 10520linux* | k*bsd*-gnu | kopensolaris*-gnu) 10521 version_type=linux # correct to gnu/linux during the next big refactor 10522 need_lib_prefix=no 10523 need_version=no 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10525 soname_spec='${libname}${release}${shared_ext}$major' 10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10527 shlibpath_var=LD_LIBRARY_PATH 10528 shlibpath_overrides_runpath=no 10529 10530 # Some binutils ld are patched to set DT_RUNPATH 10531 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10532 $as_echo_n "(cached) " >&6 10533else 10534 lt_cv_shlibpath_overrides_runpath=no 10535 save_LDFLAGS=$LDFLAGS 10536 save_libdir=$libdir 10537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541 10542int 10543main () 10544{ 10545 10546 ; 10547 return 0; 10548} 10549_ACEOF 10550if ac_fn_c_try_link "$LINENO"; then : 10551 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10552 lt_cv_shlibpath_overrides_runpath=yes 10553fi 10554fi 10555rm -f core conftest.err conftest.$ac_objext \ 10556 conftest$ac_exeext conftest.$ac_ext 10557 LDFLAGS=$save_LDFLAGS 10558 libdir=$save_libdir 10559 10560fi 10561 10562 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10563 10564 # This implies no fast_install, which is unacceptable. 10565 # Some rework will be needed to allow for fast_install 10566 # before this can be enabled. 10567 hardcode_into_libs=yes 10568 10569 # Add ABI-specific directories to the system library path. 10570 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10571 10572 # Append ld.so.conf contents to the search path 10573 if test -f /etc/ld.so.conf; then 10574 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' ' '` 10575 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10576 10577 fi 10578 10579 # We used to test for /lib/ld.so.1 and disable shared libraries on 10580 # powerpc, because MkLinux only supported shared libraries with the 10581 # GNU dynamic linker. Since this was broken with cross compilers, 10582 # most powerpc-linux boxes support dynamic linking these days and 10583 # people can always --disable-shared, the test was removed, and we 10584 # assume the GNU/Linux dynamic linker is in use. 10585 dynamic_linker='GNU/Linux ld.so' 10586 ;; 10587 10588netbsd*) 10589 version_type=sunos 10590 need_lib_prefix=no 10591 need_version=no 10592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10595 dynamic_linker='NetBSD (a.out) ld.so' 10596 else 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 dynamic_linker='NetBSD ld.elf_so' 10600 fi 10601 shlibpath_var=LD_LIBRARY_PATH 10602 shlibpath_overrides_runpath=yes 10603 hardcode_into_libs=yes 10604 ;; 10605 10606newsos6) 10607 version_type=linux # correct to gnu/linux during the next big refactor 10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 shlibpath_overrides_runpath=yes 10611 ;; 10612 10613*nto* | *qnx*) 10614 version_type=qnx 10615 need_lib_prefix=no 10616 need_version=no 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10618 soname_spec='${libname}${release}${shared_ext}$major' 10619 shlibpath_var=LD_LIBRARY_PATH 10620 shlibpath_overrides_runpath=no 10621 hardcode_into_libs=yes 10622 dynamic_linker='ldqnx.so' 10623 ;; 10624 10625openbsd*) 10626 version_type=sunos 10627 sys_lib_dlsearch_path_spec="/usr/lib" 10628 need_lib_prefix=no 10629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10630 case $host_os in 10631 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10632 *) need_version=no ;; 10633 esac 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10636 shlibpath_var=LD_LIBRARY_PATH 10637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10638 case $host_os in 10639 openbsd2.[89] | openbsd2.[89].*) 10640 shlibpath_overrides_runpath=no 10641 ;; 10642 *) 10643 shlibpath_overrides_runpath=yes 10644 ;; 10645 esac 10646 else 10647 shlibpath_overrides_runpath=yes 10648 fi 10649 ;; 10650 10651os2*) 10652 libname_spec='$name' 10653 shrext_cmds=".dll" 10654 need_lib_prefix=no 10655 library_names_spec='$libname${shared_ext} $libname.a' 10656 dynamic_linker='OS/2 ld.exe' 10657 shlibpath_var=LIBPATH 10658 ;; 10659 10660osf3* | osf4* | osf5*) 10661 version_type=osf 10662 need_lib_prefix=no 10663 need_version=no 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10666 shlibpath_var=LD_LIBRARY_PATH 10667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10669 ;; 10670 10671rdos*) 10672 dynamic_linker=no 10673 ;; 10674 10675solaris*) 10676 version_type=linux # correct to gnu/linux during the next big refactor 10677 need_lib_prefix=no 10678 need_version=no 10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10680 soname_spec='${libname}${release}${shared_ext}$major' 10681 shlibpath_var=LD_LIBRARY_PATH 10682 shlibpath_overrides_runpath=yes 10683 hardcode_into_libs=yes 10684 # ldd complains unless libraries are executable 10685 postinstall_cmds='chmod +x $lib' 10686 ;; 10687 10688sunos4*) 10689 version_type=sunos 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10692 shlibpath_var=LD_LIBRARY_PATH 10693 shlibpath_overrides_runpath=yes 10694 if test "$with_gnu_ld" = yes; then 10695 need_lib_prefix=no 10696 fi 10697 need_version=yes 10698 ;; 10699 10700sysv4 | sysv4.3*) 10701 version_type=linux # correct to gnu/linux during the next big refactor 10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10703 soname_spec='${libname}${release}${shared_ext}$major' 10704 shlibpath_var=LD_LIBRARY_PATH 10705 case $host_vendor in 10706 sni) 10707 shlibpath_overrides_runpath=no 10708 need_lib_prefix=no 10709 runpath_var=LD_RUN_PATH 10710 ;; 10711 siemens) 10712 need_lib_prefix=no 10713 ;; 10714 motorola) 10715 need_lib_prefix=no 10716 need_version=no 10717 shlibpath_overrides_runpath=no 10718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10719 ;; 10720 esac 10721 ;; 10722 10723sysv4*MP*) 10724 if test -d /usr/nec ;then 10725 version_type=linux # correct to gnu/linux during the next big refactor 10726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10727 soname_spec='$libname${shared_ext}.$major' 10728 shlibpath_var=LD_LIBRARY_PATH 10729 fi 10730 ;; 10731 10732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10733 version_type=freebsd-elf 10734 need_lib_prefix=no 10735 need_version=no 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10737 soname_spec='${libname}${release}${shared_ext}$major' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 shlibpath_overrides_runpath=yes 10740 hardcode_into_libs=yes 10741 if test "$with_gnu_ld" = yes; then 10742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10743 else 10744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10745 case $host_os in 10746 sco3.2v5*) 10747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10748 ;; 10749 esac 10750 fi 10751 sys_lib_dlsearch_path_spec='/usr/lib' 10752 ;; 10753 10754tpf*) 10755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10756 version_type=linux # correct to gnu/linux during the next big refactor 10757 need_lib_prefix=no 10758 need_version=no 10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10760 shlibpath_var=LD_LIBRARY_PATH 10761 shlibpath_overrides_runpath=no 10762 hardcode_into_libs=yes 10763 ;; 10764 10765uts4*) 10766 version_type=linux # correct to gnu/linux during the next big refactor 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10768 soname_spec='${libname}${release}${shared_ext}$major' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 ;; 10771 10772*) 10773 dynamic_linker=no 10774 ;; 10775esac 10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10777$as_echo "$dynamic_linker" >&6; } 10778test "$dynamic_linker" = no && can_build_shared=no 10779 10780variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10781if test "$GCC" = yes; then 10782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10783fi 10784 10785if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10787fi 10788if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10789 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10790fi 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10884$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10885hardcode_action= 10886if test -n "$hardcode_libdir_flag_spec" || 10887 test -n "$runpath_var" || 10888 test "X$hardcode_automatic" = "Xyes" ; then 10889 10890 # We can hardcode non-existent directories. 10891 if test "$hardcode_direct" != no && 10892 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10893 # have to relink, otherwise we might link with an installed library 10894 # when we should be linking with a yet-to-be-installed one 10895 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10896 test "$hardcode_minus_L" != no; then 10897 # Linking always hardcodes the temporary library directory. 10898 hardcode_action=relink 10899 else 10900 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10901 hardcode_action=immediate 10902 fi 10903else 10904 # We cannot hardcode anything, or else we can only hardcode existing 10905 # directories. 10906 hardcode_action=unsupported 10907fi 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10909$as_echo "$hardcode_action" >&6; } 10910 10911if test "$hardcode_action" = relink || 10912 test "$inherit_rpath" = yes; then 10913 # Fast installation is not supported 10914 enable_fast_install=no 10915elif test "$shlibpath_overrides_runpath" = yes || 10916 test "$enable_shared" = no; then 10917 # Fast installation is not necessary 10918 enable_fast_install=needless 10919fi 10920 10921 10922 10923 10924 10925 10926 if test "x$enable_dlopen" != xyes; then 10927 enable_dlopen=unknown 10928 enable_dlopen_self=unknown 10929 enable_dlopen_self_static=unknown 10930else 10931 lt_cv_dlopen=no 10932 lt_cv_dlopen_libs= 10933 10934 case $host_os in 10935 beos*) 10936 lt_cv_dlopen="load_add_on" 10937 lt_cv_dlopen_libs= 10938 lt_cv_dlopen_self=yes 10939 ;; 10940 10941 mingw* | pw32* | cegcc*) 10942 lt_cv_dlopen="LoadLibrary" 10943 lt_cv_dlopen_libs= 10944 ;; 10945 10946 cygwin*) 10947 lt_cv_dlopen="dlopen" 10948 lt_cv_dlopen_libs= 10949 ;; 10950 10951 darwin*) 10952 # if libdl is installed we need to link against it 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10954$as_echo_n "checking for dlopen in -ldl... " >&6; } 10955if ${ac_cv_lib_dl_dlopen+:} false; then : 10956 $as_echo_n "(cached) " >&6 10957else 10958 ac_check_lib_save_LIBS=$LIBS 10959LIBS="-ldl $LIBS" 10960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10961/* end confdefs.h. */ 10962 10963/* Override any GCC internal prototype to avoid an error. 10964 Use char because int might match the return type of a GCC 10965 builtin and then its argument prototype would still apply. */ 10966#ifdef __cplusplus 10967extern "C" 10968#endif 10969char dlopen (); 10970int 10971main () 10972{ 10973return dlopen (); 10974 ; 10975 return 0; 10976} 10977_ACEOF 10978if ac_fn_c_try_link "$LINENO"; then : 10979 ac_cv_lib_dl_dlopen=yes 10980else 10981 ac_cv_lib_dl_dlopen=no 10982fi 10983rm -f core conftest.err conftest.$ac_objext \ 10984 conftest$ac_exeext conftest.$ac_ext 10985LIBS=$ac_check_lib_save_LIBS 10986fi 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10988$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10989if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10991else 10992 10993 lt_cv_dlopen="dyld" 10994 lt_cv_dlopen_libs= 10995 lt_cv_dlopen_self=yes 10996 10997fi 10998 10999 ;; 11000 11001 *) 11002 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11003if test "x$ac_cv_func_shl_load" = xyes; then : 11004 lt_cv_dlopen="shl_load" 11005else 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11007$as_echo_n "checking for shl_load in -ldld... " >&6; } 11008if ${ac_cv_lib_dld_shl_load+:} false; then : 11009 $as_echo_n "(cached) " >&6 11010else 11011 ac_check_lib_save_LIBS=$LIBS 11012LIBS="-ldld $LIBS" 11013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015 11016/* Override any GCC internal prototype to avoid an error. 11017 Use char because int might match the return type of a GCC 11018 builtin and then its argument prototype would still apply. */ 11019#ifdef __cplusplus 11020extern "C" 11021#endif 11022char shl_load (); 11023int 11024main () 11025{ 11026return shl_load (); 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031if ac_fn_c_try_link "$LINENO"; then : 11032 ac_cv_lib_dld_shl_load=yes 11033else 11034 ac_cv_lib_dld_shl_load=no 11035fi 11036rm -f core conftest.err conftest.$ac_objext \ 11037 conftest$ac_exeext conftest.$ac_ext 11038LIBS=$ac_check_lib_save_LIBS 11039fi 11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11041$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11042if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11043 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11044else 11045 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11046if test "x$ac_cv_func_dlopen" = xyes; then : 11047 lt_cv_dlopen="dlopen" 11048else 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11050$as_echo_n "checking for dlopen in -ldl... " >&6; } 11051if ${ac_cv_lib_dl_dlopen+:} false; then : 11052 $as_echo_n "(cached) " >&6 11053else 11054 ac_check_lib_save_LIBS=$LIBS 11055LIBS="-ldl $LIBS" 11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058 11059/* Override any GCC internal prototype to avoid an error. 11060 Use char because int might match the return type of a GCC 11061 builtin and then its argument prototype would still apply. */ 11062#ifdef __cplusplus 11063extern "C" 11064#endif 11065char dlopen (); 11066int 11067main () 11068{ 11069return dlopen (); 11070 ; 11071 return 0; 11072} 11073_ACEOF 11074if ac_fn_c_try_link "$LINENO"; then : 11075 ac_cv_lib_dl_dlopen=yes 11076else 11077 ac_cv_lib_dl_dlopen=no 11078fi 11079rm -f core conftest.err conftest.$ac_objext \ 11080 conftest$ac_exeext conftest.$ac_ext 11081LIBS=$ac_check_lib_save_LIBS 11082fi 11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11084$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11085if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11087else 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11089$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11090if ${ac_cv_lib_svld_dlopen+:} false; then : 11091 $as_echo_n "(cached) " >&6 11092else 11093 ac_check_lib_save_LIBS=$LIBS 11094LIBS="-lsvld $LIBS" 11095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096/* end confdefs.h. */ 11097 11098/* Override any GCC internal prototype to avoid an error. 11099 Use char because int might match the return type of a GCC 11100 builtin and then its argument prototype would still apply. */ 11101#ifdef __cplusplus 11102extern "C" 11103#endif 11104char dlopen (); 11105int 11106main () 11107{ 11108return dlopen (); 11109 ; 11110 return 0; 11111} 11112_ACEOF 11113if ac_fn_c_try_link "$LINENO"; then : 11114 ac_cv_lib_svld_dlopen=yes 11115else 11116 ac_cv_lib_svld_dlopen=no 11117fi 11118rm -f core conftest.err conftest.$ac_objext \ 11119 conftest$ac_exeext conftest.$ac_ext 11120LIBS=$ac_check_lib_save_LIBS 11121fi 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11123$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11124if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11126else 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11128$as_echo_n "checking for dld_link in -ldld... " >&6; } 11129if ${ac_cv_lib_dld_dld_link+:} false; then : 11130 $as_echo_n "(cached) " >&6 11131else 11132 ac_check_lib_save_LIBS=$LIBS 11133LIBS="-ldld $LIBS" 11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11135/* end confdefs.h. */ 11136 11137/* Override any GCC internal prototype to avoid an error. 11138 Use char because int might match the return type of a GCC 11139 builtin and then its argument prototype would still apply. */ 11140#ifdef __cplusplus 11141extern "C" 11142#endif 11143char dld_link (); 11144int 11145main () 11146{ 11147return dld_link (); 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152if ac_fn_c_try_link "$LINENO"; then : 11153 ac_cv_lib_dld_dld_link=yes 11154else 11155 ac_cv_lib_dld_dld_link=no 11156fi 11157rm -f core conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159LIBS=$ac_check_lib_save_LIBS 11160fi 11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11162$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11163if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11165fi 11166 11167 11168fi 11169 11170 11171fi 11172 11173 11174fi 11175 11176 11177fi 11178 11179 11180fi 11181 11182 ;; 11183 esac 11184 11185 if test "x$lt_cv_dlopen" != xno; then 11186 enable_dlopen=yes 11187 else 11188 enable_dlopen=no 11189 fi 11190 11191 case $lt_cv_dlopen in 11192 dlopen) 11193 save_CPPFLAGS="$CPPFLAGS" 11194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11195 11196 save_LDFLAGS="$LDFLAGS" 11197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11198 11199 save_LIBS="$LIBS" 11200 LIBS="$lt_cv_dlopen_libs $LIBS" 11201 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11203$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11204if ${lt_cv_dlopen_self+:} false; then : 11205 $as_echo_n "(cached) " >&6 11206else 11207 if test "$cross_compiling" = yes; then : 11208 lt_cv_dlopen_self=cross 11209else 11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11211 lt_status=$lt_dlunknown 11212 cat > conftest.$ac_ext <<_LT_EOF 11213#line $LINENO "configure" 11214#include "confdefs.h" 11215 11216#if HAVE_DLFCN_H 11217#include <dlfcn.h> 11218#endif 11219 11220#include <stdio.h> 11221 11222#ifdef RTLD_GLOBAL 11223# define LT_DLGLOBAL RTLD_GLOBAL 11224#else 11225# ifdef DL_GLOBAL 11226# define LT_DLGLOBAL DL_GLOBAL 11227# else 11228# define LT_DLGLOBAL 0 11229# endif 11230#endif 11231 11232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11233 find out it does not work in some platform. */ 11234#ifndef LT_DLLAZY_OR_NOW 11235# ifdef RTLD_LAZY 11236# define LT_DLLAZY_OR_NOW RTLD_LAZY 11237# else 11238# ifdef DL_LAZY 11239# define LT_DLLAZY_OR_NOW DL_LAZY 11240# else 11241# ifdef RTLD_NOW 11242# define LT_DLLAZY_OR_NOW RTLD_NOW 11243# else 11244# ifdef DL_NOW 11245# define LT_DLLAZY_OR_NOW DL_NOW 11246# else 11247# define LT_DLLAZY_OR_NOW 0 11248# endif 11249# endif 11250# endif 11251# endif 11252#endif 11253 11254/* When -fvisbility=hidden is used, assume the code has been annotated 11255 correspondingly for the symbols needed. */ 11256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11257int fnord () __attribute__((visibility("default"))); 11258#endif 11259 11260int fnord () { return 42; } 11261int main () 11262{ 11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11264 int status = $lt_dlunknown; 11265 11266 if (self) 11267 { 11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11269 else 11270 { 11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11272 else puts (dlerror ()); 11273 } 11274 /* dlclose (self); */ 11275 } 11276 else 11277 puts (dlerror ()); 11278 11279 return status; 11280} 11281_LT_EOF 11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11283 (eval $ac_link) 2>&5 11284 ac_status=$? 11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11287 (./conftest; exit; ) >&5 2>/dev/null 11288 lt_status=$? 11289 case x$lt_status in 11290 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11291 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11292 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11293 esac 11294 else : 11295 # compilation failed 11296 lt_cv_dlopen_self=no 11297 fi 11298fi 11299rm -fr conftest* 11300 11301 11302fi 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11304$as_echo "$lt_cv_dlopen_self" >&6; } 11305 11306 if test "x$lt_cv_dlopen_self" = xyes; then 11307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11309$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11310if ${lt_cv_dlopen_self_static+:} false; then : 11311 $as_echo_n "(cached) " >&6 11312else 11313 if test "$cross_compiling" = yes; then : 11314 lt_cv_dlopen_self_static=cross 11315else 11316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11317 lt_status=$lt_dlunknown 11318 cat > conftest.$ac_ext <<_LT_EOF 11319#line $LINENO "configure" 11320#include "confdefs.h" 11321 11322#if HAVE_DLFCN_H 11323#include <dlfcn.h> 11324#endif 11325 11326#include <stdio.h> 11327 11328#ifdef RTLD_GLOBAL 11329# define LT_DLGLOBAL RTLD_GLOBAL 11330#else 11331# ifdef DL_GLOBAL 11332# define LT_DLGLOBAL DL_GLOBAL 11333# else 11334# define LT_DLGLOBAL 0 11335# endif 11336#endif 11337 11338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11339 find out it does not work in some platform. */ 11340#ifndef LT_DLLAZY_OR_NOW 11341# ifdef RTLD_LAZY 11342# define LT_DLLAZY_OR_NOW RTLD_LAZY 11343# else 11344# ifdef DL_LAZY 11345# define LT_DLLAZY_OR_NOW DL_LAZY 11346# else 11347# ifdef RTLD_NOW 11348# define LT_DLLAZY_OR_NOW RTLD_NOW 11349# else 11350# ifdef DL_NOW 11351# define LT_DLLAZY_OR_NOW DL_NOW 11352# else 11353# define LT_DLLAZY_OR_NOW 0 11354# endif 11355# endif 11356# endif 11357# endif 11358#endif 11359 11360/* When -fvisbility=hidden is used, assume the code has been annotated 11361 correspondingly for the symbols needed. */ 11362#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11363int fnord () __attribute__((visibility("default"))); 11364#endif 11365 11366int fnord () { return 42; } 11367int main () 11368{ 11369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11370 int status = $lt_dlunknown; 11371 11372 if (self) 11373 { 11374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11375 else 11376 { 11377 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11378 else puts (dlerror ()); 11379 } 11380 /* dlclose (self); */ 11381 } 11382 else 11383 puts (dlerror ()); 11384 11385 return status; 11386} 11387_LT_EOF 11388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11389 (eval $ac_link) 2>&5 11390 ac_status=$? 11391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11392 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11393 (./conftest; exit; ) >&5 2>/dev/null 11394 lt_status=$? 11395 case x$lt_status in 11396 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11397 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11398 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11399 esac 11400 else : 11401 # compilation failed 11402 lt_cv_dlopen_self_static=no 11403 fi 11404fi 11405rm -fr conftest* 11406 11407 11408fi 11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11410$as_echo "$lt_cv_dlopen_self_static" >&6; } 11411 fi 11412 11413 CPPFLAGS="$save_CPPFLAGS" 11414 LDFLAGS="$save_LDFLAGS" 11415 LIBS="$save_LIBS" 11416 ;; 11417 esac 11418 11419 case $lt_cv_dlopen_self in 11420 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11421 *) enable_dlopen_self=unknown ;; 11422 esac 11423 11424 case $lt_cv_dlopen_self_static in 11425 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11426 *) enable_dlopen_self_static=unknown ;; 11427 esac 11428fi 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446striplib= 11447old_striplib= 11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11449$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11450if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11451 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11452 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11454$as_echo "yes" >&6; } 11455else 11456# FIXME - insert some real tests, host_os isn't really good enough 11457 case $host_os in 11458 darwin*) 11459 if test -n "$STRIP" ; then 11460 striplib="$STRIP -x" 11461 old_striplib="$STRIP -S" 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11463$as_echo "yes" >&6; } 11464 else 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11466$as_echo "no" >&6; } 11467 fi 11468 ;; 11469 *) 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11471$as_echo "no" >&6; } 11472 ;; 11473 esac 11474fi 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 # Report which library types will actually be built 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11489$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11491$as_echo "$can_build_shared" >&6; } 11492 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11494$as_echo_n "checking whether to build shared libraries... " >&6; } 11495 test "$can_build_shared" = "no" && enable_shared=no 11496 11497 # On AIX, shared libraries and static libraries use the same namespace, and 11498 # are all built from PIC. 11499 case $host_os in 11500 aix3*) 11501 test "$enable_shared" = yes && enable_static=no 11502 if test -n "$RANLIB"; then 11503 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11504 postinstall_cmds='$RANLIB $lib' 11505 fi 11506 ;; 11507 11508 aix[4-9]*) 11509 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11510 test "$enable_shared" = yes && enable_static=no 11511 fi 11512 ;; 11513 esac 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11515$as_echo "$enable_shared" >&6; } 11516 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11518$as_echo_n "checking whether to build static libraries... " >&6; } 11519 # Make sure either enable_shared or enable_static is yes. 11520 test "$enable_shared" = yes || enable_static=yes 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11522$as_echo "$enable_static" >&6; } 11523 11524 11525 11526 11527fi 11528ac_ext=c 11529ac_cpp='$CPP $CPPFLAGS' 11530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11532ac_compiler_gnu=$ac_cv_c_compiler_gnu 11533 11534CC="$lt_save_CC" 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 ac_config_commands="$ac_config_commands libtool" 11551 11552 11553 11554 11555# Only expand once: 11556 11557 11558if test "x$CC" != xcc; then 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 11560$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11561else 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 11563$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11564fi 11565set dummy $CC; ac_cc=`$as_echo "$2" | 11566 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11567if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 11568 $as_echo_n "(cached) " >&6 11569else 11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11571/* end confdefs.h. */ 11572 11573int 11574main () 11575{ 11576 11577 ; 11578 return 0; 11579} 11580_ACEOF 11581# Make sure it works both with $CC and with simple cc. 11582# We do the test twice because some compilers refuse to overwrite an 11583# existing .o file with -o, though they will create one. 11584ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11585rm -f conftest2.* 11586if { { case "(($ac_try" in 11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11588 *) ac_try_echo=$ac_try;; 11589esac 11590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11591$as_echo "$ac_try_echo"; } >&5 11592 (eval "$ac_try") 2>&5 11593 ac_status=$? 11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11595 test $ac_status = 0; } && 11596 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11598 *) ac_try_echo=$ac_try;; 11599esac 11600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11601$as_echo "$ac_try_echo"; } >&5 11602 (eval "$ac_try") 2>&5 11603 ac_status=$? 11604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11605 test $ac_status = 0; }; 11606then 11607 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11608 if test "x$CC" != xcc; then 11609 # Test first that cc exists at all. 11610 if { ac_try='cc -c conftest.$ac_ext >&5' 11611 { { case "(($ac_try" in 11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11613 *) ac_try_echo=$ac_try;; 11614esac 11615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11616$as_echo "$ac_try_echo"; } >&5 11617 (eval "$ac_try") 2>&5 11618 ac_status=$? 11619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11620 test $ac_status = 0; }; }; then 11621 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11622 rm -f conftest2.* 11623 if { { case "(($ac_try" in 11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11625 *) ac_try_echo=$ac_try;; 11626esac 11627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11628$as_echo "$ac_try_echo"; } >&5 11629 (eval "$ac_try") 2>&5 11630 ac_status=$? 11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11632 test $ac_status = 0; } && 11633 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11635 *) ac_try_echo=$ac_try;; 11636esac 11637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11638$as_echo "$ac_try_echo"; } >&5 11639 (eval "$ac_try") 2>&5 11640 ac_status=$? 11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11642 test $ac_status = 0; }; 11643 then 11644 # cc works too. 11645 : 11646 else 11647 # cc exists but doesn't like -o. 11648 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11649 fi 11650 fi 11651 fi 11652else 11653 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11654fi 11655rm -f core conftest* 11656 11657fi 11658if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11660$as_echo "yes" >&6; } 11661else 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663$as_echo "no" >&6; } 11664 11665$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 11666 11667fi 11668 11669# FIXME: we rely on the cache variable name because 11670# there is no other way. 11671set dummy $CC 11672am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11673eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 11674if test "$am_t" != yes; then 11675 # Losing compiler, so override with the script. 11676 # FIXME: It is wrong to rewrite CC. 11677 # But if we don't then we get into trouble of one sort or another. 11678 # A longer-term fix would be to have automake use am__CC in this case, 11679 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11680 CC="$am_aux_dir/compile $CC" 11681fi 11682 11683 11684 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11686$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11687if ${ac_cv_prog_cc_c99+:} false; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 ac_cv_prog_cc_c99=no 11691ac_save_CC=$CC 11692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694#include <stdarg.h> 11695#include <stdbool.h> 11696#include <stdlib.h> 11697#include <wchar.h> 11698#include <stdio.h> 11699 11700// Check varargs macros. These examples are taken from C99 6.10.3.5. 11701#define debug(...) fprintf (stderr, __VA_ARGS__) 11702#define showlist(...) puts (#__VA_ARGS__) 11703#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11704static void 11705test_varargs_macros (void) 11706{ 11707 int x = 1234; 11708 int y = 5678; 11709 debug ("Flag"); 11710 debug ("X = %d\n", x); 11711 showlist (The first, second, and third items.); 11712 report (x>y, "x is %d but y is %d", x, y); 11713} 11714 11715// Check long long types. 11716#define BIG64 18446744073709551615ull 11717#define BIG32 4294967295ul 11718#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11719#if !BIG_OK 11720 your preprocessor is broken; 11721#endif 11722#if BIG_OK 11723#else 11724 your preprocessor is broken; 11725#endif 11726static long long int bignum = -9223372036854775807LL; 11727static unsigned long long int ubignum = BIG64; 11728 11729struct incomplete_array 11730{ 11731 int datasize; 11732 double data[]; 11733}; 11734 11735struct named_init { 11736 int number; 11737 const wchar_t *name; 11738 double average; 11739}; 11740 11741typedef const char *ccp; 11742 11743static inline int 11744test_restrict (ccp restrict text) 11745{ 11746 // See if C++-style comments work. 11747 // Iterate through items via the restricted pointer. 11748 // Also check for declarations in for loops. 11749 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11750 continue; 11751 return 0; 11752} 11753 11754// Check varargs and va_copy. 11755static void 11756test_varargs (const char *format, ...) 11757{ 11758 va_list args; 11759 va_start (args, format); 11760 va_list args_copy; 11761 va_copy (args_copy, args); 11762 11763 const char *str; 11764 int number; 11765 float fnumber; 11766 11767 while (*format) 11768 { 11769 switch (*format++) 11770 { 11771 case 's': // string 11772 str = va_arg (args_copy, const char *); 11773 break; 11774 case 'd': // int 11775 number = va_arg (args_copy, int); 11776 break; 11777 case 'f': // float 11778 fnumber = va_arg (args_copy, double); 11779 break; 11780 default: 11781 break; 11782 } 11783 } 11784 va_end (args_copy); 11785 va_end (args); 11786} 11787 11788int 11789main () 11790{ 11791 11792 // Check bool. 11793 _Bool success = false; 11794 11795 // Check restrict. 11796 if (test_restrict ("String literal") == 0) 11797 success = true; 11798 char *restrict newvar = "Another string"; 11799 11800 // Check varargs. 11801 test_varargs ("s, d' f .", "string", 65, 34.234); 11802 test_varargs_macros (); 11803 11804 // Check flexible array members. 11805 struct incomplete_array *ia = 11806 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11807 ia->datasize = 10; 11808 for (int i = 0; i < ia->datasize; ++i) 11809 ia->data[i] = i * 1.234; 11810 11811 // Check named initializers. 11812 struct named_init ni = { 11813 .number = 34, 11814 .name = L"Test wide string", 11815 .average = 543.34343, 11816 }; 11817 11818 ni.number = 58; 11819 11820 int dynamic_array[ni.number]; 11821 dynamic_array[ni.number - 1] = 543; 11822 11823 // work around unused variable warnings 11824 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11825 || dynamic_array[ni.number - 1] != 543); 11826 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11832do 11833 CC="$ac_save_CC $ac_arg" 11834 if ac_fn_c_try_compile "$LINENO"; then : 11835 ac_cv_prog_cc_c99=$ac_arg 11836fi 11837rm -f core conftest.err conftest.$ac_objext 11838 test "x$ac_cv_prog_cc_c99" != "xno" && break 11839done 11840rm -f conftest.$ac_ext 11841CC=$ac_save_CC 11842 11843fi 11844# AC_CACHE_VAL 11845case "x$ac_cv_prog_cc_c99" in 11846 x) 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11848$as_echo "none needed" >&6; } ;; 11849 xno) 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11851$as_echo "unsupported" >&6; } ;; 11852 *) 11853 CC="$CC $ac_cv_prog_cc_c99" 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11855$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11856esac 11857if test "x$ac_cv_prog_cc_c99" != xno; then : 11858 11859fi 11860 11861 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11863$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11864if ${ac_cv_c_const+:} false; then : 11865 $as_echo_n "(cached) " >&6 11866else 11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11868/* end confdefs.h. */ 11869 11870int 11871main () 11872{ 11873/* FIXME: Include the comments suggested by Paul. */ 11874#ifndef __cplusplus 11875 /* Ultrix mips cc rejects this. */ 11876 typedef int charset[2]; 11877 const charset cs; 11878 /* SunOS 4.1.1 cc rejects this. */ 11879 char const *const *pcpcc; 11880 char **ppc; 11881 /* NEC SVR4.0.2 mips cc rejects this. */ 11882 struct point {int x, y;}; 11883 static struct point const zero = {0,0}; 11884 /* AIX XL C 1.02.0.0 rejects this. 11885 It does not let you subtract one const X* pointer from another in 11886 an arm of an if-expression whose if-part is not a constant 11887 expression */ 11888 const char *g = "string"; 11889 pcpcc = &g + (g ? g-g : 0); 11890 /* HPUX 7.0 cc rejects these. */ 11891 ++pcpcc; 11892 ppc = (char**) pcpcc; 11893 pcpcc = (char const *const *) ppc; 11894 { /* SCO 3.2v4 cc rejects this. */ 11895 char *t; 11896 char const *s = 0 ? (char *) 0 : (char const *) 0; 11897 11898 *t++ = 0; 11899 if (s) return 0; 11900 } 11901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11902 int x[] = {25, 17}; 11903 const int *foo = &x[0]; 11904 ++foo; 11905 } 11906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11907 typedef const int *iptr; 11908 iptr p = 0; 11909 ++p; 11910 } 11911 { /* AIX XL C 1.02.0.0 rejects this saying 11912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11913 struct s { int j; const int *ap[3]; }; 11914 struct s *b; b->j = 5; 11915 } 11916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11917 const int foo = 10; 11918 if (!foo) return 0; 11919 } 11920 return !cs[0] && !zero.x; 11921#endif 11922 11923 ; 11924 return 0; 11925} 11926_ACEOF 11927if ac_fn_c_try_compile "$LINENO"; then : 11928 ac_cv_c_const=yes 11929else 11930 ac_cv_c_const=no 11931fi 11932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11933fi 11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11935$as_echo "$ac_cv_c_const" >&6; } 11936if test $ac_cv_c_const = no; then 11937 11938$as_echo "#define const /**/" >>confdefs.h 11939 11940fi 11941 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11943$as_echo_n "checking for inline... " >&6; } 11944if ${ac_cv_c_inline+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 ac_cv_c_inline=no 11948for ac_kw in inline __inline__ __inline; do 11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950/* end confdefs.h. */ 11951#ifndef __cplusplus 11952typedef int foo_t; 11953static $ac_kw foo_t static_foo () {return 0; } 11954$ac_kw foo_t foo () {return 0; } 11955#endif 11956 11957_ACEOF 11958if ac_fn_c_try_compile "$LINENO"; then : 11959 ac_cv_c_inline=$ac_kw 11960fi 11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11962 test "$ac_cv_c_inline" != no && break 11963done 11964 11965fi 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11967$as_echo "$ac_cv_c_inline" >&6; } 11968 11969case $ac_cv_c_inline in 11970 inline | yes) ;; 11971 *) 11972 case $ac_cv_c_inline in 11973 no) ac_val=;; 11974 *) ac_val=$ac_cv_c_inline;; 11975 esac 11976 cat >>confdefs.h <<_ACEOF 11977#ifndef __cplusplus 11978#define inline $ac_val 11979#endif 11980_ACEOF 11981 ;; 11982esac 11983 11984 11985#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not 11986#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 11988$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 11989if ${ac_cv_c_restrict+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 ac_cv_c_restrict=no 11993 # The order here caters to the fact that C++ does not require restrict. 11994 for ac_kw in __restrict __restrict__ _Restrict restrict; do 11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11996/* end confdefs.h. */ 11997typedef int * int_ptr; 11998 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { 11999 return ip[0]; 12000 } 12001int 12002main () 12003{ 12004int s[1]; 12005 int * $ac_kw t = s; 12006 t[0] = 0; 12007 return foo(t, (void *)0) 12008 ; 12009 return 0; 12010} 12011_ACEOF 12012if ac_fn_c_try_compile "$LINENO"; then : 12013 ac_cv_c_restrict=$ac_kw 12014fi 12015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12016 test "$ac_cv_c_restrict" != no && break 12017 done 12018 12019fi 12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 12021$as_echo "$ac_cv_c_restrict" >&6; } 12022 12023 case $ac_cv_c_restrict in 12024 restrict) ;; 12025 no) $as_echo "#define restrict /**/" >>confdefs.h 12026 ;; 12027 *) cat >>confdefs.h <<_ACEOF 12028#define restrict $ac_cv_c_restrict 12029_ACEOF 12030 ;; 12031 esac 12032 12033 12034$as_echo "#define OPUS_BUILD /**/" >>confdefs.h 12035 12036 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5 12038$as_echo_n "checking for C99 variable-size arrays... " >&6; } 12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12040/* end confdefs.h. */ 12041 12042int 12043main () 12044{ 12045static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0]; 12046 ; 12047 return 0; 12048} 12049_ACEOF 12050if ac_fn_c_try_compile "$LINENO"; then : 12051 has_var_arrays=yes; 12052$as_echo "#define VAR_ARRAYS /**/" >>confdefs.h 12053 12054 12055else 12056 has_var_arrays=no 12057 12058fi 12059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5 12061$as_echo "$has_var_arrays" >&6; } 12062 12063for ac_header in alloca.h getopt.h 12064do : 12065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12068 cat >>confdefs.h <<_ACEOF 12069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12070_ACEOF 12071 12072fi 12073 12074done 12075 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 12077$as_echo_n "checking for alloca... " >&6; } 12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080#include <alloca.h> 12081int 12082main () 12083{ 12084 12085int foo=10; 12086int *array = alloca(foo); 12087 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092if ac_fn_c_try_compile "$LINENO"; then : 12093 12094has_alloca=yes; 12095if test x$has_var_arrays = "xno" ; then 12096 12097$as_echo "#define USE_ALLOCA /**/" >>confdefs.h 12098 12099fi 12100 12101else 12102 has_alloca=no 12103 12104fi 12105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5 12107$as_echo "$has_alloca" >&6; } 12108 12109ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp" 12110if test "x$ac_cv_func_exp" = xyes; then : 12111 fp_libm_not_needed=yes;LIBM= 12112else 12113 fp_libm_not_needed=dunno 12114fi 12115 12116if test x"$fp_libm_not_needed" = xdunno; then 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5 12118$as_echo_n "checking for exp in -lm... " >&6; } 12119if ${ac_cv_lib_m_exp+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 ac_check_lib_save_LIBS=$LIBS 12123LIBS="-lm $LIBS" 12124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12125/* end confdefs.h. */ 12126 12127/* Override any GCC internal prototype to avoid an error. 12128 Use char because int might match the return type of a GCC 12129 builtin and then its argument prototype would still apply. */ 12130#ifdef __cplusplus 12131extern "C" 12132#endif 12133char exp (); 12134int 12135main () 12136{ 12137return exp (); 12138 ; 12139 return 0; 12140} 12141_ACEOF 12142if ac_fn_c_try_link "$LINENO"; then : 12143 ac_cv_lib_m_exp=yes 12144else 12145 ac_cv_lib_m_exp=no 12146fi 12147rm -f core conftest.err conftest.$ac_objext \ 12148 conftest$ac_exeext conftest.$ac_ext 12149LIBS=$ac_check_lib_save_LIBS 12150fi 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5 12152$as_echo "$ac_cv_lib_m_exp" >&6; } 12153if test "x$ac_cv_lib_m_exp" = xyes; then : 12154 LIBS="-lm $LIBS"; LIBM="-lm" 12155else 12156 LIBM= 12157fi 12158 12159fi 12160 12161 12162has_float_approx=no 12163#case "$host_cpu" in 12164#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64) 12165# has_float_approx=yes 12166# ;; 12167#esac 12168 12169ac_enable_fixed="no"; 12170ac_enable_float="yes"; 12171# Check whether --enable-fixed-point was given. 12172if test "${enable_fixed_point+set}" = set; then : 12173 enableval=$enable_fixed_point; if test "$enableval" = yes; then 12174 ac_enable_fixed="yes"; 12175 ac_enable_float="no"; 12176 12177$as_echo "#define FIXED_POINT 1" >>confdefs.h 12178 12179fi 12180fi 12181 12182 12183ac_enable_fixed_debug="no" 12184# Check whether --enable-fixed-point-debug was given. 12185if test "${enable_fixed_point_debug+set}" = set; then : 12186 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then 12187 ac_enable_fixed_debug="yes" 12188 12189$as_echo "#define FIXED_DEBUG /**/" >>confdefs.h 12190 12191fi 12192fi 12193 12194 12195ac_enable_custom_modes="no" 12196# Check whether --enable-custom-modes was given. 12197if test "${enable_custom_modes+set}" = set; then : 12198 enableval=$enable_custom_modes; if test "$enableval" = yes; then 12199 ac_enable_custom_modes="yes" 12200 12201$as_echo "#define CUSTOM_MODES /**/" >>confdefs.h 12202 12203fi 12204fi 12205 12206 12207float_approx=$has_float_approx 12208# Check whether --enable-float-approx was given. 12209if test "${enable_float_approx+set}" = set; then : 12210 enableval=$enable_float_approx; if test "$enableval" = yes; then 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5 12212$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;} 12213 float_approx=yes 12214 else 12215 float_approx=no 12216 fi 12217else 12218 float_approx=$has_float_approx 12219fi 12220 12221 12222if test "x${float_approx}" = "xyes"; then 12223 12224$as_echo "#define FLOAT_APPROX /**/" >>confdefs.h 12225 12226fi 12227 12228ac_enable_assertions="no" 12229# Check whether --enable-assertions was given. 12230if test "${enable_assertions+set}" = set; then : 12231 enableval=$enable_assertions; if test "$enableval" = yes; then 12232 ac_enable_assertions="yes" 12233 12234$as_echo "#define ENABLE_ASSERTIONS /**/" >>confdefs.h 12235 12236fi 12237fi 12238 12239 12240ac_enable_fuzzing="no" 12241# Check whether --enable-fuzzing was given. 12242if test "${enable_fuzzing+set}" = set; then : 12243 enableval=$enable_fuzzing; if test "$enableval" = yes; then 12244 ac_enable_fuzzing="yes" 12245 12246$as_echo "#define FUZZING /**/" >>confdefs.h 12247 12248fi 12249fi 12250 12251 12252ac_enable_doc="yes" 12253# Check whether --enable-doc was given. 12254if test "${enable_doc+set}" = set; then : 12255 enableval=$enable_doc; ac_enable_doc=$enableval 12256fi 12257 12258# Extract the first word of "doxygen", so it can be a program name with args. 12259set dummy doxygen; ac_word=$2 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12261$as_echo_n "checking for $ac_word... " >&6; } 12262if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then : 12263 $as_echo_n "(cached) " >&6 12264else 12265 if test -n "$HAVE_DOXYGEN"; then 12266 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 12267else 12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12269for as_dir in $PATH 12270do 12271 IFS=$as_save_IFS 12272 test -z "$as_dir" && as_dir=. 12273 for ac_exec_ext in '' $ac_executable_extensions; do 12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12275 ac_cv_prog_HAVE_DOXYGEN="yes" 12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12277 break 2 12278 fi 12279done 12280 done 12281IFS=$as_save_IFS 12282 12283 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no" 12284fi 12285fi 12286HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 12287if test -n "$HAVE_DOXYGEN"; then 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5 12289$as_echo "$HAVE_DOXYGEN" >&6; } 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292$as_echo "no" >&6; } 12293fi 12294 12295 12296if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then 12297 HAVE_DOXYGEN="false" 12298 ac_enable_doc="no" 12299fi 12300 if test $HAVE_DOXYGEN = yes; then 12301 HAVE_DOXYGEN_TRUE= 12302 HAVE_DOXYGEN_FALSE='#' 12303else 12304 HAVE_DOXYGEN_TRUE='#' 12305 HAVE_DOXYGEN_FALSE= 12306fi 12307 12308 12309ac_enable_encoder="no"; 12310# Check whether --enable-encoder was given. 12311if test "${enable_encoder+set}" = set; then : 12312 enableval=$enable_encoder; if test "$enableval" = yes; then 12313 ac_enable_encoder="yes"; 12314 12315$as_echo "#define OPUS_ENABLE_ENCODER 1" >>confdefs.h 12316 12317fi 12318fi 12319 12320 12321saved_CFLAGS="$CFLAGS" 12322CFLAGS="$CFLAGS -fvisibility=hidden" 12323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5 12324$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; } 12325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12326/* end confdefs.h. */ 12327char foo; 12328_ACEOF 12329if ac_fn_c_try_compile "$LINENO"; then : 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331$as_echo "yes" >&6; } 12332 SYMBOL_VISIBILITY="-fvisibility=hidden" 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336fi 12337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12338CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY" 12339 12340 12341CFLAGS="$CFLAGS -W" 12342 12343saved_CFLAGS="$CFLAGS" 12344CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" 12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" >&5 12346$as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... " >&6; } 12347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12348/* end confdefs.h. */ 12349char foo; 12350_ACEOF 12351if ac_fn_c_try_compile "$LINENO"; then : 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12353$as_echo "yes" >&6; } 12354 EXTRA_WARNS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" 12355else 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12357$as_echo "no" >&6; } 12358fi 12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12360CFLAGS="$saved_CFLAGS $EXTRA_WARNS" 12361 12362for ac_func in lrintf 12363do : 12364 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf" 12365if test "x$ac_cv_func_lrintf" = xyes; then : 12366 cat >>confdefs.h <<_ACEOF 12367#define HAVE_LRINTF 1 12368_ACEOF 12369 12370fi 12371done 12372 12373for ac_func in lrint 12374do : 12375 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 12376if test "x$ac_cv_func_lrint" = xyes; then : 12377 cat >>confdefs.h <<_ACEOF 12378#define HAVE_LRINT 1 12379_ACEOF 12380 12381fi 12382done 12383 12384for ac_func in __malloc_hook 12385do : 12386 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook" 12387if test "x$ac_cv_func___malloc_hook" = xyes; then : 12388 cat >>confdefs.h <<_ACEOF 12389#define HAVE___MALLOC_HOOK 1 12390_ACEOF 12391 12392fi 12393done 12394 12395 12396# The cast to long int works around a bug in the HP C Compiler 12397# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12398# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12399# This bug is HP SR number 8606223364. 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 12401$as_echo_n "checking size of short... " >&6; } 12402if ${ac_cv_sizeof_short+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404else 12405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 12406 12407else 12408 if test "$ac_cv_type_short" = yes; then 12409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12411as_fn_error 77 "cannot compute sizeof (short) 12412See \`config.log' for more details" "$LINENO" 5; } 12413 else 12414 ac_cv_sizeof_short=0 12415 fi 12416fi 12417 12418fi 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 12420$as_echo "$ac_cv_sizeof_short" >&6; } 12421 12422 12423 12424cat >>confdefs.h <<_ACEOF 12425#define SIZEOF_SHORT $ac_cv_sizeof_short 12426_ACEOF 12427 12428 12429# The cast to long int works around a bug in the HP C Compiler 12430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12432# This bug is HP SR number 8606223364. 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12434$as_echo_n "checking size of int... " >&6; } 12435if ${ac_cv_sizeof_int+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437else 12438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12439 12440else 12441 if test "$ac_cv_type_int" = yes; then 12442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12444as_fn_error 77 "cannot compute sizeof (int) 12445See \`config.log' for more details" "$LINENO" 5; } 12446 else 12447 ac_cv_sizeof_int=0 12448 fi 12449fi 12450 12451fi 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12453$as_echo "$ac_cv_sizeof_int" >&6; } 12454 12455 12456 12457cat >>confdefs.h <<_ACEOF 12458#define SIZEOF_INT $ac_cv_sizeof_int 12459_ACEOF 12460 12461 12462# The cast to long int works around a bug in the HP C Compiler 12463# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12464# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12465# This bug is HP SR number 8606223364. 12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12467$as_echo_n "checking size of long... " >&6; } 12468if ${ac_cv_sizeof_long+:} false; then : 12469 $as_echo_n "(cached) " >&6 12470else 12471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12472 12473else 12474 if test "$ac_cv_type_long" = yes; then 12475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12477as_fn_error 77 "cannot compute sizeof (long) 12478See \`config.log' for more details" "$LINENO" 5; } 12479 else 12480 ac_cv_sizeof_long=0 12481 fi 12482fi 12483 12484fi 12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12486$as_echo "$ac_cv_sizeof_long" >&6; } 12487 12488 12489 12490cat >>confdefs.h <<_ACEOF 12491#define SIZEOF_LONG $ac_cv_sizeof_long 12492_ACEOF 12493 12494 12495# The cast to long int works around a bug in the HP C Compiler 12496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12498# This bug is HP SR number 8606223364. 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12500$as_echo_n "checking size of long long... " >&6; } 12501if ${ac_cv_sizeof_long_long+:} false; then : 12502 $as_echo_n "(cached) " >&6 12503else 12504 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12505 12506else 12507 if test "$ac_cv_type_long_long" = yes; then 12508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12510as_fn_error 77 "cannot compute sizeof (long long) 12511See \`config.log' for more details" "$LINENO" 5; } 12512 else 12513 ac_cv_sizeof_long_long=0 12514 fi 12515fi 12516 12517fi 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12519$as_echo "$ac_cv_sizeof_long_long" >&6; } 12520 12521 12522 12523cat >>confdefs.h <<_ACEOF 12524#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12525_ACEOF 12526 12527 12528 12529if test x$has_char16 = "xyes" ; then 12530 case 1 in 12531 $ac_cv_sizeof_short) SIZE16="short";; 12532 $ac_cv_sizeof_int) SIZE16="int";; 12533 esac 12534else 12535 case 2 in 12536 $ac_cv_sizeof_short) SIZE16="short";; 12537 $ac_cv_sizeof_int) SIZE16="int";; 12538 esac 12539fi 12540 12541if test x$has_char16 = "xyes" ; then 12542 case 2 in 12543 $ac_cv_sizeof_int) SIZE32="int";; 12544 $ac_cv_sizeof_long) SIZE32="long";; 12545 $ac_cv_sizeof_short) SIZE32="short";; 12546 esac 12547else 12548 case 4 in 12549 $ac_cv_sizeof_int) SIZE32="int";; 12550 $ac_cv_sizeof_long) SIZE32="long";; 12551 $ac_cv_sizeof_short) SIZE32="short";; 12552 esac 12553fi 12554 12555 12556 12557 12558 if test x$ac_enable_fixed = xyes; then 12559 FIXED_POINT_TRUE= 12560 FIXED_POINT_FALSE='#' 12561else 12562 FIXED_POINT_TRUE='#' 12563 FIXED_POINT_FALSE= 12564fi 12565 12566 if test x$ac_enable_custom_modes = xyes; then 12567 CUSTOM_MODES_TRUE= 12568 CUSTOM_MODES_FALSE='#' 12569else 12570 CUSTOM_MODES_TRUE='#' 12571 CUSTOM_MODES_FALSE= 12572fi 12573 12574 if test x$ac_enable_encoder = xyes; then 12575 USE_ENCODER_TRUE= 12576 USE_ENCODER_FALSE='#' 12577else 12578 USE_ENCODER_TRUE='#' 12579 USE_ENCODER_FALSE= 12580fi 12581 12582 12583if test x$ac_enable_float = xyes; then 12584 PC_BUILD="floating-point" 12585 PC_LIBM=$LIBM 12586else 12587 PC_BUILD="fixed-point" 12588 PC_LIBM= 12589fi 12590if test x$ac_enable_custom_modes = xyes; then 12591 PC_BUILD="${PC_BUILD}, custom modes" 12592 PC_LIBM=$LIBM 12593fi 12594 12595 12596 12597 12598ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc doc/Makefile doc/Doxyfile" 12599 12600ac_config_headers="$ac_config_headers config.h" 12601 12602 12603cat >confcache <<\_ACEOF 12604# This file is a shell script that caches the results of configure 12605# tests run on this system so they can be shared between configure 12606# scripts and configure runs, see configure's option --config-cache. 12607# It is not useful on other systems. If it contains results you don't 12608# want to keep, you may remove or edit it. 12609# 12610# config.status only pays attention to the cache file if you give it 12611# the --recheck option to rerun configure. 12612# 12613# `ac_cv_env_foo' variables (set or unset) will be overridden when 12614# loading this file, other *unset* `ac_cv_foo' will be assigned the 12615# following values. 12616 12617_ACEOF 12618 12619# The following way of writing the cache mishandles newlines in values, 12620# but we know of no workaround that is simple, portable, and efficient. 12621# So, we kill variables containing newlines. 12622# Ultrix sh set writes to stderr and can't be redirected directly, 12623# and sets the high bit in the cache file unless we assign to the vars. 12624( 12625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12626 eval ac_val=\$$ac_var 12627 case $ac_val in #( 12628 *${as_nl}*) 12629 case $ac_var in #( 12630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12631$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12632 esac 12633 case $ac_var in #( 12634 _ | IFS | as_nl) ;; #( 12635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12636 *) { eval $ac_var=; unset $ac_var;} ;; 12637 esac ;; 12638 esac 12639 done 12640 12641 (set) 2>&1 | 12642 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12643 *${as_nl}ac_space=\ *) 12644 # `set' does not quote correctly, so add quotes: double-quote 12645 # substitution turns \\\\ into \\, and sed turns \\ into \. 12646 sed -n \ 12647 "s/'/'\\\\''/g; 12648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12649 ;; #( 12650 *) 12651 # `set' quotes correctly as required by POSIX, so do not add quotes. 12652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12653 ;; 12654 esac | 12655 sort 12656) | 12657 sed ' 12658 /^ac_cv_env_/b end 12659 t clear 12660 :clear 12661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12662 t end 12663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12664 :end' >>confcache 12665if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12666 if test -w "$cache_file"; then 12667 if test "x$cache_file" != "x/dev/null"; then 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12669$as_echo "$as_me: updating cache $cache_file" >&6;} 12670 if test ! -f "$cache_file" || test -h "$cache_file"; then 12671 cat confcache >"$cache_file" 12672 else 12673 case $cache_file in #( 12674 */* | ?:*) 12675 mv -f confcache "$cache_file"$$ && 12676 mv -f "$cache_file"$$ "$cache_file" ;; #( 12677 *) 12678 mv -f confcache "$cache_file" ;; 12679 esac 12680 fi 12681 fi 12682 else 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12684$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12685 fi 12686fi 12687rm -f confcache 12688 12689test "x$prefix" = xNONE && prefix=$ac_default_prefix 12690# Let make expand exec_prefix. 12691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12692 12693DEFS=-DHAVE_CONFIG_H 12694 12695ac_libobjs= 12696ac_ltlibobjs= 12697U= 12698for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12699 # 1. Remove the extension, and $U if already installed. 12700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12703 # will be set to the directory where LIBOBJS objects are built. 12704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12706done 12707LIBOBJS=$ac_libobjs 12708 12709LTLIBOBJS=$ac_ltlibobjs 12710 12711 12712 if test -n "$EXEEXT"; then 12713 am__EXEEXT_TRUE= 12714 am__EXEEXT_FALSE='#' 12715else 12716 am__EXEEXT_TRUE='#' 12717 am__EXEEXT_FALSE= 12718fi 12719 12720if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12721 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12722Usually this means the macro was only invoked conditionally." "$LINENO" 5 12723fi 12724if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12725 as_fn_error $? "conditional \"AMDEP\" was never defined. 12726Usually this means the macro was only invoked conditionally." "$LINENO" 5 12727fi 12728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12730Usually this means the macro was only invoked conditionally." "$LINENO" 5 12731fi 12732if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 12733 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 12734Usually this means the macro was only invoked conditionally." "$LINENO" 5 12735fi 12736if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then 12737 as_fn_error $? "conditional \"FIXED_POINT\" was never defined. 12738Usually this means the macro was only invoked conditionally." "$LINENO" 5 12739fi 12740if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then 12741 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined. 12742Usually this means the macro was only invoked conditionally." "$LINENO" 5 12743fi 12744if test -z "${USE_ENCODER_TRUE}" && test -z "${USE_ENCODER_FALSE}"; then 12745 as_fn_error $? "conditional \"USE_ENCODER\" was never defined. 12746Usually this means the macro was only invoked conditionally." "$LINENO" 5 12747fi 12748 12749: "${CONFIG_STATUS=./config.status}" 12750ac_write_fail=0 12751ac_clean_files_save=$ac_clean_files 12752ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12754$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12755as_write_fail=0 12756cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12757#! $SHELL 12758# Generated by $as_me. 12759# Run this file to recreate the current configuration. 12760# Compiler output produced by configure, useful for debugging 12761# configure, is in config.log if it exists. 12762 12763debug=false 12764ac_cs_recheck=false 12765ac_cs_silent=false 12766 12767SHELL=\${CONFIG_SHELL-$SHELL} 12768export SHELL 12769_ASEOF 12770cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12771## -------------------- ## 12772## M4sh Initialization. ## 12773## -------------------- ## 12774 12775# Be more Bourne compatible 12776DUALCASE=1; export DUALCASE # for MKS sh 12777if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12778 emulate sh 12779 NULLCMD=: 12780 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12781 # is contrary to our usage. Disable this feature. 12782 alias -g '${1+"$@"}'='"$@"' 12783 setopt NO_GLOB_SUBST 12784else 12785 case `(set -o) 2>/dev/null` in #( 12786 *posix*) : 12787 set -o posix ;; #( 12788 *) : 12789 ;; 12790esac 12791fi 12792 12793 12794as_nl=' 12795' 12796export as_nl 12797# Printing a long string crashes Solaris 7 /usr/bin/printf. 12798as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12799as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12800as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12801# Prefer a ksh shell builtin over an external printf program on Solaris, 12802# but without wasting forks for bash or zsh. 12803if test -z "$BASH_VERSION$ZSH_VERSION" \ 12804 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12805 as_echo='print -r --' 12806 as_echo_n='print -rn --' 12807elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12808 as_echo='printf %s\n' 12809 as_echo_n='printf %s' 12810else 12811 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12812 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12813 as_echo_n='/usr/ucb/echo -n' 12814 else 12815 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12816 as_echo_n_body='eval 12817 arg=$1; 12818 case $arg in #( 12819 *"$as_nl"*) 12820 expr "X$arg" : "X\\(.*\\)$as_nl"; 12821 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12822 esac; 12823 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12824 ' 12825 export as_echo_n_body 12826 as_echo_n='sh -c $as_echo_n_body as_echo' 12827 fi 12828 export as_echo_body 12829 as_echo='sh -c $as_echo_body as_echo' 12830fi 12831 12832# The user is always right. 12833if test "${PATH_SEPARATOR+set}" != set; then 12834 PATH_SEPARATOR=: 12835 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12836 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12837 PATH_SEPARATOR=';' 12838 } 12839fi 12840 12841 12842# IFS 12843# We need space, tab and new line, in precisely that order. Quoting is 12844# there to prevent editors from complaining about space-tab. 12845# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12846# splitting by setting IFS to empty value.) 12847IFS=" "" $as_nl" 12848 12849# Find who we are. Look in the path if we contain no directory separator. 12850as_myself= 12851case $0 in #(( 12852 *[\\/]* ) as_myself=$0 ;; 12853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12854for as_dir in $PATH 12855do 12856 IFS=$as_save_IFS 12857 test -z "$as_dir" && as_dir=. 12858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12859 done 12860IFS=$as_save_IFS 12861 12862 ;; 12863esac 12864# We did not find ourselves, most probably we were run as `sh COMMAND' 12865# in which case we are not to be found in the path. 12866if test "x$as_myself" = x; then 12867 as_myself=$0 12868fi 12869if test ! -f "$as_myself"; then 12870 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12871 exit 1 12872fi 12873 12874# Unset variables that we do not need and which cause bugs (e.g. in 12875# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12876# suppresses any "Segmentation fault" message there. '((' could 12877# trigger a bug in pdksh 5.2.14. 12878for as_var in BASH_ENV ENV MAIL MAILPATH 12879do eval test x\${$as_var+set} = xset \ 12880 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12881done 12882PS1='$ ' 12883PS2='> ' 12884PS4='+ ' 12885 12886# NLS nuisances. 12887LC_ALL=C 12888export LC_ALL 12889LANGUAGE=C 12890export LANGUAGE 12891 12892# CDPATH. 12893(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12894 12895 12896# as_fn_error STATUS ERROR [LINENO LOG_FD] 12897# ---------------------------------------- 12898# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12899# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12900# script with STATUS, using 1 if that was 0. 12901as_fn_error () 12902{ 12903 as_status=$1; test $as_status -eq 0 && as_status=1 12904 if test "$4"; then 12905 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12906 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12907 fi 12908 $as_echo "$as_me: error: $2" >&2 12909 as_fn_exit $as_status 12910} # as_fn_error 12911 12912 12913# as_fn_set_status STATUS 12914# ----------------------- 12915# Set $? to STATUS, without forking. 12916as_fn_set_status () 12917{ 12918 return $1 12919} # as_fn_set_status 12920 12921# as_fn_exit STATUS 12922# ----------------- 12923# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12924as_fn_exit () 12925{ 12926 set +e 12927 as_fn_set_status $1 12928 exit $1 12929} # as_fn_exit 12930 12931# as_fn_unset VAR 12932# --------------- 12933# Portably unset VAR. 12934as_fn_unset () 12935{ 12936 { eval $1=; unset $1;} 12937} 12938as_unset=as_fn_unset 12939# as_fn_append VAR VALUE 12940# ---------------------- 12941# Append the text in VALUE to the end of the definition contained in VAR. Take 12942# advantage of any shell optimizations that allow amortized linear growth over 12943# repeated appends, instead of the typical quadratic growth present in naive 12944# implementations. 12945if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12946 eval 'as_fn_append () 12947 { 12948 eval $1+=\$2 12949 }' 12950else 12951 as_fn_append () 12952 { 12953 eval $1=\$$1\$2 12954 } 12955fi # as_fn_append 12956 12957# as_fn_arith ARG... 12958# ------------------ 12959# Perform arithmetic evaluation on the ARGs, and store the result in the 12960# global $as_val. Take advantage of shells that can avoid forks. The arguments 12961# must be portable across $(()) and expr. 12962if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12963 eval 'as_fn_arith () 12964 { 12965 as_val=$(( $* )) 12966 }' 12967else 12968 as_fn_arith () 12969 { 12970 as_val=`expr "$@" || test $? -eq 1` 12971 } 12972fi # as_fn_arith 12973 12974 12975if expr a : '\(a\)' >/dev/null 2>&1 && 12976 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12977 as_expr=expr 12978else 12979 as_expr=false 12980fi 12981 12982if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12983 as_basename=basename 12984else 12985 as_basename=false 12986fi 12987 12988if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12989 as_dirname=dirname 12990else 12991 as_dirname=false 12992fi 12993 12994as_me=`$as_basename -- "$0" || 12995$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12996 X"$0" : 'X\(//\)$' \| \ 12997 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12998$as_echo X/"$0" | 12999 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13000 s//\1/ 13001 q 13002 } 13003 /^X\/\(\/\/\)$/{ 13004 s//\1/ 13005 q 13006 } 13007 /^X\/\(\/\).*/{ 13008 s//\1/ 13009 q 13010 } 13011 s/.*/./; q'` 13012 13013# Avoid depending upon Character Ranges. 13014as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13015as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13016as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13017as_cr_digits='0123456789' 13018as_cr_alnum=$as_cr_Letters$as_cr_digits 13019 13020ECHO_C= ECHO_N= ECHO_T= 13021case `echo -n x` in #((((( 13022-n*) 13023 case `echo 'xy\c'` in 13024 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13025 xy) ECHO_C='\c';; 13026 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13027 ECHO_T=' ';; 13028 esac;; 13029*) 13030 ECHO_N='-n';; 13031esac 13032 13033rm -f conf$$ conf$$.exe conf$$.file 13034if test -d conf$$.dir; then 13035 rm -f conf$$.dir/conf$$.file 13036else 13037 rm -f conf$$.dir 13038 mkdir conf$$.dir 2>/dev/null 13039fi 13040if (echo >conf$$.file) 2>/dev/null; then 13041 if ln -s conf$$.file conf$$ 2>/dev/null; then 13042 as_ln_s='ln -s' 13043 # ... but there are two gotchas: 13044 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13045 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13046 # In both cases, we have to default to `cp -p'. 13047 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13048 as_ln_s='cp -p' 13049 elif ln conf$$.file conf$$ 2>/dev/null; then 13050 as_ln_s=ln 13051 else 13052 as_ln_s='cp -p' 13053 fi 13054else 13055 as_ln_s='cp -p' 13056fi 13057rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13058rmdir conf$$.dir 2>/dev/null 13059 13060 13061# as_fn_mkdir_p 13062# ------------- 13063# Create "$as_dir" as a directory, including parents if necessary. 13064as_fn_mkdir_p () 13065{ 13066 13067 case $as_dir in #( 13068 -*) as_dir=./$as_dir;; 13069 esac 13070 test -d "$as_dir" || eval $as_mkdir_p || { 13071 as_dirs= 13072 while :; do 13073 case $as_dir in #( 13074 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13075 *) as_qdir=$as_dir;; 13076 esac 13077 as_dirs="'$as_qdir' $as_dirs" 13078 as_dir=`$as_dirname -- "$as_dir" || 13079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13080 X"$as_dir" : 'X\(//\)[^/]' \| \ 13081 X"$as_dir" : 'X\(//\)$' \| \ 13082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13083$as_echo X"$as_dir" | 13084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13085 s//\1/ 13086 q 13087 } 13088 /^X\(\/\/\)[^/].*/{ 13089 s//\1/ 13090 q 13091 } 13092 /^X\(\/\/\)$/{ 13093 s//\1/ 13094 q 13095 } 13096 /^X\(\/\).*/{ 13097 s//\1/ 13098 q 13099 } 13100 s/.*/./; q'` 13101 test -d "$as_dir" && break 13102 done 13103 test -z "$as_dirs" || eval "mkdir $as_dirs" 13104 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13105 13106 13107} # as_fn_mkdir_p 13108if mkdir -p . 2>/dev/null; then 13109 as_mkdir_p='mkdir -p "$as_dir"' 13110else 13111 test -d ./-p && rmdir ./-p 13112 as_mkdir_p=false 13113fi 13114 13115if test -x / >/dev/null 2>&1; then 13116 as_test_x='test -x' 13117else 13118 if ls -dL / >/dev/null 2>&1; then 13119 as_ls_L_option=L 13120 else 13121 as_ls_L_option= 13122 fi 13123 as_test_x=' 13124 eval sh -c '\'' 13125 if test -d "$1"; then 13126 test -d "$1/."; 13127 else 13128 case $1 in #( 13129 -*)set "./$1";; 13130 esac; 13131 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13132 ???[sx]*):;;*)false;;esac;fi 13133 '\'' sh 13134 ' 13135fi 13136as_executable_p=$as_test_x 13137 13138# Sed expression to map a string onto a valid CPP name. 13139as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13140 13141# Sed expression to map a string onto a valid variable name. 13142as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13143 13144 13145exec 6>&1 13146## ----------------------------------- ## 13147## Main body of $CONFIG_STATUS script. ## 13148## ----------------------------------- ## 13149_ASEOF 13150test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13151 13152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13153# Save the log message, to keep $0 and so on meaningful, and to 13154# report actual input values of CONFIG_FILES etc. instead of their 13155# values after options handling. 13156ac_log=" 13157This file was extended by opus $as_me 1.0.3, which was 13158generated by GNU Autoconf 2.68. Invocation command line was 13159 13160 CONFIG_FILES = $CONFIG_FILES 13161 CONFIG_HEADERS = $CONFIG_HEADERS 13162 CONFIG_LINKS = $CONFIG_LINKS 13163 CONFIG_COMMANDS = $CONFIG_COMMANDS 13164 $ $0 $@ 13165 13166on `(hostname || uname -n) 2>/dev/null | sed 1q` 13167" 13168 13169_ACEOF 13170 13171case $ac_config_files in *" 13172"*) set x $ac_config_files; shift; ac_config_files=$*;; 13173esac 13174 13175case $ac_config_headers in *" 13176"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13177esac 13178 13179 13180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13181# Files that config.status was made for. 13182config_files="$ac_config_files" 13183config_headers="$ac_config_headers" 13184config_commands="$ac_config_commands" 13185 13186_ACEOF 13187 13188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13189ac_cs_usage="\ 13190\`$as_me' instantiates files and other configuration actions 13191from templates according to the current configuration. Unless the files 13192and actions are specified as TAGs, all are instantiated by default. 13193 13194Usage: $0 [OPTION]... [TAG]... 13195 13196 -h, --help print this help, then exit 13197 -V, --version print version number and configuration settings, then exit 13198 --config print configuration, then exit 13199 -q, --quiet, --silent 13200 do not print progress messages 13201 -d, --debug don't remove temporary files 13202 --recheck update $as_me by reconfiguring in the same conditions 13203 --file=FILE[:TEMPLATE] 13204 instantiate the configuration file FILE 13205 --header=FILE[:TEMPLATE] 13206 instantiate the configuration header FILE 13207 13208Configuration files: 13209$config_files 13210 13211Configuration headers: 13212$config_headers 13213 13214Configuration commands: 13215$config_commands 13216 13217Report bugs to <opus@xiph.org>." 13218 13219_ACEOF 13220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13221ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13222ac_cs_version="\\ 13223opus config.status 1.0.3 13224configured by $0, generated by GNU Autoconf 2.68, 13225 with options \\"\$ac_cs_config\\" 13226 13227Copyright (C) 2010 Free Software Foundation, Inc. 13228This config.status script is free software; the Free Software Foundation 13229gives unlimited permission to copy, distribute and modify it." 13230 13231ac_pwd='$ac_pwd' 13232srcdir='$srcdir' 13233INSTALL='$INSTALL' 13234MKDIR_P='$MKDIR_P' 13235AWK='$AWK' 13236test -n "\$AWK" || AWK=awk 13237_ACEOF 13238 13239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13240# The default lists apply if the user does not specify any file. 13241ac_need_defaults=: 13242while test $# != 0 13243do 13244 case $1 in 13245 --*=?*) 13246 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13247 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13248 ac_shift=: 13249 ;; 13250 --*=) 13251 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13252 ac_optarg= 13253 ac_shift=: 13254 ;; 13255 *) 13256 ac_option=$1 13257 ac_optarg=$2 13258 ac_shift=shift 13259 ;; 13260 esac 13261 13262 case $ac_option in 13263 # Handling of the options. 13264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13265 ac_cs_recheck=: ;; 13266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13267 $as_echo "$ac_cs_version"; exit ;; 13268 --config | --confi | --conf | --con | --co | --c ) 13269 $as_echo "$ac_cs_config"; exit ;; 13270 --debug | --debu | --deb | --de | --d | -d ) 13271 debug=: ;; 13272 --file | --fil | --fi | --f ) 13273 $ac_shift 13274 case $ac_optarg in 13275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13276 '') as_fn_error $? "missing file argument" ;; 13277 esac 13278 as_fn_append CONFIG_FILES " '$ac_optarg'" 13279 ac_need_defaults=false;; 13280 --header | --heade | --head | --hea ) 13281 $ac_shift 13282 case $ac_optarg in 13283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13284 esac 13285 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13286 ac_need_defaults=false;; 13287 --he | --h) 13288 # Conflict between --help and --header 13289 as_fn_error $? "ambiguous option: \`$1' 13290Try \`$0 --help' for more information.";; 13291 --help | --hel | -h ) 13292 $as_echo "$ac_cs_usage"; exit ;; 13293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13294 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13295 ac_cs_silent=: ;; 13296 13297 # This is an error. 13298 -*) as_fn_error $? "unrecognized option: \`$1' 13299Try \`$0 --help' for more information." ;; 13300 13301 *) as_fn_append ac_config_targets " $1" 13302 ac_need_defaults=false ;; 13303 13304 esac 13305 shift 13306done 13307 13308ac_configure_extra_args= 13309 13310if $ac_cs_silent; then 13311 exec 6>/dev/null 13312 ac_configure_extra_args="$ac_configure_extra_args --silent" 13313fi 13314 13315_ACEOF 13316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13317if \$ac_cs_recheck; then 13318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13319 shift 13320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13321 CONFIG_SHELL='$SHELL' 13322 export CONFIG_SHELL 13323 exec "\$@" 13324fi 13325 13326_ACEOF 13327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13328exec 5>>config.log 13329{ 13330 echo 13331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13332## Running $as_me. ## 13333_ASBOX 13334 $as_echo "$ac_log" 13335} >&5 13336 13337_ACEOF 13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13339# 13340# INIT-COMMANDS 13341# 13342AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13343 13344 13345# The HP-UX ksh and POSIX shell print the target directory to stdout 13346# if CDPATH is set. 13347(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13348 13349sed_quote_subst='$sed_quote_subst' 13350double_quote_subst='$double_quote_subst' 13351delay_variable_subst='$delay_variable_subst' 13352macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13353macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13354enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13355enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13356pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13357enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13358SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13359ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13360PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13361host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13362host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13363host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13364build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13365build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13366build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13367SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13368Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13369GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13370EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13371FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13372LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13373NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13374LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13375max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13376ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13377exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13378lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13379lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13380lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13381lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13382lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13383reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13384reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13385OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13386deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13387file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13388file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13389want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13390DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13391sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13392AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13393AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13394archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13395STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13396RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13397old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13398old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13399old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13400lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13401CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13402CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13403compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13404GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13405lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13406lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13407lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13408lt_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"`' 13409nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13410lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13411objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13412MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13413lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13414lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13415lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13416lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13417lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13418need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13419MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13420DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13421NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13422LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13423OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13424OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13425libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13426shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13427extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13428archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13429enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13430export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13431whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13432compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13433old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13434old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13435archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13436archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13437module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13438module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13439with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13440allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13441no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13442hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13443hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13444hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13445hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13446hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13447hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13448hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13449inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13450link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13451always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13452export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13453exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13454include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13455prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13456postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13457file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13458variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13459need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13460need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13461version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13462runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13463shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13464shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13465libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13466library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13467soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13468install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13469postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13470postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13471finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13472finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13473hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13474sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13475sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13476hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13477enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13478enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13479enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13480old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13481striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13482 13483LTCC='$LTCC' 13484LTCFLAGS='$LTCFLAGS' 13485compiler='$compiler_DEFAULT' 13486 13487# A function that is used when there is no print builtin or printf. 13488func_fallback_echo () 13489{ 13490 eval 'cat <<_LTECHO_EOF 13491\$1 13492_LTECHO_EOF' 13493} 13494 13495# Quote evaled strings. 13496for var in SHELL \ 13497ECHO \ 13498PATH_SEPARATOR \ 13499SED \ 13500GREP \ 13501EGREP \ 13502FGREP \ 13503LD \ 13504NM \ 13505LN_S \ 13506lt_SP2NL \ 13507lt_NL2SP \ 13508reload_flag \ 13509OBJDUMP \ 13510deplibs_check_method \ 13511file_magic_cmd \ 13512file_magic_glob \ 13513want_nocaseglob \ 13514DLLTOOL \ 13515sharedlib_from_linklib_cmd \ 13516AR \ 13517AR_FLAGS \ 13518archiver_list_spec \ 13519STRIP \ 13520RANLIB \ 13521CC \ 13522CFLAGS \ 13523compiler \ 13524lt_cv_sys_global_symbol_pipe \ 13525lt_cv_sys_global_symbol_to_cdecl \ 13526lt_cv_sys_global_symbol_to_c_name_address \ 13527lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13528nm_file_list_spec \ 13529lt_prog_compiler_no_builtin_flag \ 13530lt_prog_compiler_pic \ 13531lt_prog_compiler_wl \ 13532lt_prog_compiler_static \ 13533lt_cv_prog_compiler_c_o \ 13534need_locks \ 13535MANIFEST_TOOL \ 13536DSYMUTIL \ 13537NMEDIT \ 13538LIPO \ 13539OTOOL \ 13540OTOOL64 \ 13541shrext_cmds \ 13542export_dynamic_flag_spec \ 13543whole_archive_flag_spec \ 13544compiler_needs_object \ 13545with_gnu_ld \ 13546allow_undefined_flag \ 13547no_undefined_flag \ 13548hardcode_libdir_flag_spec \ 13549hardcode_libdir_separator \ 13550exclude_expsyms \ 13551include_expsyms \ 13552file_list_spec \ 13553variables_saved_for_relink \ 13554libname_spec \ 13555library_names_spec \ 13556soname_spec \ 13557install_override_mode \ 13558finish_eval \ 13559old_striplib \ 13560striplib; do 13561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13562 *[\\\\\\\`\\"\\\$]*) 13563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13564 ;; 13565 *) 13566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13567 ;; 13568 esac 13569done 13570 13571# Double-quote double-evaled strings. 13572for var in reload_cmds \ 13573old_postinstall_cmds \ 13574old_postuninstall_cmds \ 13575old_archive_cmds \ 13576extract_expsyms_cmds \ 13577old_archive_from_new_cmds \ 13578old_archive_from_expsyms_cmds \ 13579archive_cmds \ 13580archive_expsym_cmds \ 13581module_cmds \ 13582module_expsym_cmds \ 13583export_symbols_cmds \ 13584prelink_cmds \ 13585postlink_cmds \ 13586postinstall_cmds \ 13587postuninstall_cmds \ 13588finish_cmds \ 13589sys_lib_search_path_spec \ 13590sys_lib_dlsearch_path_spec; do 13591 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13592 *[\\\\\\\`\\"\\\$]*) 13593 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13594 ;; 13595 *) 13596 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13597 ;; 13598 esac 13599done 13600 13601ac_aux_dir='$ac_aux_dir' 13602xsi_shell='$xsi_shell' 13603lt_shell_append='$lt_shell_append' 13604 13605# See if we are running on zsh, and set the options which allow our 13606# commands through without removal of \ escapes INIT. 13607if test -n "\${ZSH_VERSION+set}" ; then 13608 setopt NO_GLOB_SUBST 13609fi 13610 13611 13612 PACKAGE='$PACKAGE' 13613 VERSION='$VERSION' 13614 TIMESTAMP='$TIMESTAMP' 13615 RM='$RM' 13616 ofile='$ofile' 13617 13618 13619 13620 13621_ACEOF 13622 13623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13624 13625# Handling of arguments. 13626for ac_config_target in $ac_config_targets 13627do 13628 case $ac_config_target in 13629 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13630 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13631 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13632 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;; 13633 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;; 13634 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13635 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 13636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13637 13638 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13639 esac 13640done 13641 13642 13643# If the user did not use the arguments to specify the items to instantiate, 13644# then the envvar interface is used. Set only those that are not. 13645# We use the long form for the default assignment because of an extremely 13646# bizarre bug on SunOS 4.1.3. 13647if $ac_need_defaults; then 13648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13650 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13651fi 13652 13653# Have a temporary directory for convenience. Make it in the build tree 13654# simply because there is no reason against having it here, and in addition, 13655# creating and moving files from /tmp can sometimes cause problems. 13656# Hook for its removal unless debugging. 13657# Note that there is a small window in which the directory will not be cleaned: 13658# after its creation but before its name has been assigned to `$tmp'. 13659$debug || 13660{ 13661 tmp= ac_tmp= 13662 trap 'exit_status=$? 13663 : "${ac_tmp:=$tmp}" 13664 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13665' 0 13666 trap 'as_fn_exit 1' 1 2 13 15 13667} 13668# Create a (secure) tmp directory for tmp files. 13669 13670{ 13671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13672 test -d "$tmp" 13673} || 13674{ 13675 tmp=./conf$$-$RANDOM 13676 (umask 077 && mkdir "$tmp") 13677} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13678ac_tmp=$tmp 13679 13680# Set up the scripts for CONFIG_FILES section. 13681# No need to generate them if there are no CONFIG_FILES. 13682# This happens for instance with `./config.status config.h'. 13683if test -n "$CONFIG_FILES"; then 13684 13685 13686ac_cr=`echo X | tr X '\015'` 13687# On cygwin, bash can eat \r inside `` if the user requested igncr. 13688# But we know of no other shell where ac_cr would be empty at this 13689# point, so we can use a bashism as a fallback. 13690if test "x$ac_cr" = x; then 13691 eval ac_cr=\$\'\\r\' 13692fi 13693ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13694if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13695 ac_cs_awk_cr='\\r' 13696else 13697 ac_cs_awk_cr=$ac_cr 13698fi 13699 13700echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13701_ACEOF 13702 13703 13704{ 13705 echo "cat >conf$$subs.awk <<_ACEOF" && 13706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13707 echo "_ACEOF" 13708} >conf$$subs.sh || 13709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13710ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13711ac_delim='%!_!# ' 13712for ac_last_try in false false false false false :; do 13713 . ./conf$$subs.sh || 13714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13715 13716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13717 if test $ac_delim_n = $ac_delim_num; then 13718 break 13719 elif $ac_last_try; then 13720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13721 else 13722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13723 fi 13724done 13725rm -f conf$$subs.sh 13726 13727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13728cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13729_ACEOF 13730sed -n ' 13731h 13732s/^/S["/; s/!.*/"]=/ 13733p 13734g 13735s/^[^!]*!// 13736:repl 13737t repl 13738s/'"$ac_delim"'$// 13739t delim 13740:nl 13741h 13742s/\(.\{148\}\)..*/\1/ 13743t more1 13744s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13745p 13746n 13747b repl 13748:more1 13749s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13750p 13751g 13752s/.\{148\}// 13753t nl 13754:delim 13755h 13756s/\(.\{148\}\)..*/\1/ 13757t more2 13758s/["\\]/\\&/g; s/^/"/; s/$/"/ 13759p 13760b 13761:more2 13762s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13763p 13764g 13765s/.\{148\}// 13766t delim 13767' <conf$$subs.awk | sed ' 13768/^[^""]/{ 13769 N 13770 s/\n// 13771} 13772' >>$CONFIG_STATUS || ac_write_fail=1 13773rm -f conf$$subs.awk 13774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13775_ACAWK 13776cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13777 for (key in S) S_is_set[key] = 1 13778 FS = "" 13779 13780} 13781{ 13782 line = $ 0 13783 nfields = split(line, field, "@") 13784 substed = 0 13785 len = length(field[1]) 13786 for (i = 2; i < nfields; i++) { 13787 key = field[i] 13788 keylen = length(key) 13789 if (S_is_set[key]) { 13790 value = S[key] 13791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13792 len += length(value) + length(field[++i]) 13793 substed = 1 13794 } else 13795 len += 1 + keylen 13796 } 13797 13798 print line 13799} 13800 13801_ACAWK 13802_ACEOF 13803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13804if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13805 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13806else 13807 cat 13808fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13809 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13810_ACEOF 13811 13812# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13813# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13814# trailing colons and then remove the whole line if VPATH becomes empty 13815# (actually we leave an empty line to preserve line numbers). 13816if test "x$srcdir" = x.; then 13817 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13818h 13819s/// 13820s/^/:/ 13821s/[ ]*$/:/ 13822s/:\$(srcdir):/:/g 13823s/:\${srcdir}:/:/g 13824s/:@srcdir@:/:/g 13825s/^:*// 13826s/:*$// 13827x 13828s/\(=[ ]*\).*/\1/ 13829G 13830s/\n// 13831s/^[^=]*=[ ]*$// 13832}' 13833fi 13834 13835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13836fi # test -n "$CONFIG_FILES" 13837 13838# Set up the scripts for CONFIG_HEADERS section. 13839# No need to generate them if there are no CONFIG_HEADERS. 13840# This happens for instance with `./config.status Makefile'. 13841if test -n "$CONFIG_HEADERS"; then 13842cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13843BEGIN { 13844_ACEOF 13845 13846# Transform confdefs.h into an awk script `defines.awk', embedded as 13847# here-document in config.status, that substitutes the proper values into 13848# config.h.in to produce config.h. 13849 13850# Create a delimiter string that does not exist in confdefs.h, to ease 13851# handling of long lines. 13852ac_delim='%!_!# ' 13853for ac_last_try in false false :; do 13854 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13855 if test -z "$ac_tt"; then 13856 break 13857 elif $ac_last_try; then 13858 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13859 else 13860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13861 fi 13862done 13863 13864# For the awk script, D is an array of macro values keyed by name, 13865# likewise P contains macro parameters if any. Preserve backslash 13866# newline sequences. 13867 13868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13869sed -n ' 13870s/.\{148\}/&'"$ac_delim"'/g 13871t rset 13872:rset 13873s/^[ ]*#[ ]*define[ ][ ]*/ / 13874t def 13875d 13876:def 13877s/\\$// 13878t bsnl 13879s/["\\]/\\&/g 13880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13881D["\1"]=" \3"/p 13882s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13883d 13884:bsnl 13885s/["\\]/\\&/g 13886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13887D["\1"]=" \3\\\\\\n"\\/p 13888t cont 13889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13890t cont 13891d 13892:cont 13893n 13894s/.\{148\}/&'"$ac_delim"'/g 13895t clear 13896:clear 13897s/\\$// 13898t bsnlc 13899s/["\\]/\\&/g; s/^/"/; s/$/"/p 13900d 13901:bsnlc 13902s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13903b cont 13904' <confdefs.h | sed ' 13905s/'"$ac_delim"'/"\\\ 13906"/g' >>$CONFIG_STATUS || ac_write_fail=1 13907 13908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13909 for (key in D) D_is_set[key] = 1 13910 FS = "" 13911} 13912/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13913 line = \$ 0 13914 split(line, arg, " ") 13915 if (arg[1] == "#") { 13916 defundef = arg[2] 13917 mac1 = arg[3] 13918 } else { 13919 defundef = substr(arg[1], 2) 13920 mac1 = arg[2] 13921 } 13922 split(mac1, mac2, "(") #) 13923 macro = mac2[1] 13924 prefix = substr(line, 1, index(line, defundef) - 1) 13925 if (D_is_set[macro]) { 13926 # Preserve the white space surrounding the "#". 13927 print prefix "define", macro P[macro] D[macro] 13928 next 13929 } else { 13930 # Replace #undef with comments. This is necessary, for example, 13931 # in the case of _POSIX_SOURCE, which is predefined and required 13932 # on some systems where configure will not decide to define it. 13933 if (defundef == "undef") { 13934 print "/*", prefix defundef, macro, "*/" 13935 next 13936 } 13937 } 13938} 13939{ print } 13940_ACAWK 13941_ACEOF 13942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13943 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13944fi # test -n "$CONFIG_HEADERS" 13945 13946 13947eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13948shift 13949for ac_tag 13950do 13951 case $ac_tag in 13952 :[FHLC]) ac_mode=$ac_tag; continue;; 13953 esac 13954 case $ac_mode$ac_tag in 13955 :[FHL]*:*);; 13956 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13957 :[FH]-) ac_tag=-:-;; 13958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13959 esac 13960 ac_save_IFS=$IFS 13961 IFS=: 13962 set x $ac_tag 13963 IFS=$ac_save_IFS 13964 shift 13965 ac_file=$1 13966 shift 13967 13968 case $ac_mode in 13969 :L) ac_source=$1;; 13970 :[FH]) 13971 ac_file_inputs= 13972 for ac_f 13973 do 13974 case $ac_f in 13975 -) ac_f="$ac_tmp/stdin";; 13976 *) # Look for the file first in the build tree, then in the source tree 13977 # (if the path is not absolute). The absolute path cannot be DOS-style, 13978 # because $ac_f cannot contain `:'. 13979 test -f "$ac_f" || 13980 case $ac_f in 13981 [\\/$]*) false;; 13982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13983 esac || 13984 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13985 esac 13986 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13987 as_fn_append ac_file_inputs " '$ac_f'" 13988 done 13989 13990 # Let's still pretend it is `configure' which instantiates (i.e., don't 13991 # use $as_me), people would be surprised to read: 13992 # /* config.h. Generated by config.status. */ 13993 configure_input='Generated from '` 13994 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13995 `' by configure.' 13996 if test x"$ac_file" != x-; then 13997 configure_input="$ac_file. $configure_input" 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13999$as_echo "$as_me: creating $ac_file" >&6;} 14000 fi 14001 # Neutralize special characters interpreted by sed in replacement strings. 14002 case $configure_input in #( 14003 *\&* | *\|* | *\\* ) 14004 ac_sed_conf_input=`$as_echo "$configure_input" | 14005 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14006 *) ac_sed_conf_input=$configure_input;; 14007 esac 14008 14009 case $ac_tag in 14010 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14012 esac 14013 ;; 14014 esac 14015 14016 ac_dir=`$as_dirname -- "$ac_file" || 14017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14018 X"$ac_file" : 'X\(//\)[^/]' \| \ 14019 X"$ac_file" : 'X\(//\)$' \| \ 14020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14021$as_echo X"$ac_file" | 14022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14023 s//\1/ 14024 q 14025 } 14026 /^X\(\/\/\)[^/].*/{ 14027 s//\1/ 14028 q 14029 } 14030 /^X\(\/\/\)$/{ 14031 s//\1/ 14032 q 14033 } 14034 /^X\(\/\).*/{ 14035 s//\1/ 14036 q 14037 } 14038 s/.*/./; q'` 14039 as_dir="$ac_dir"; as_fn_mkdir_p 14040 ac_builddir=. 14041 14042case "$ac_dir" in 14043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14044*) 14045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14046 # A ".." for each directory in $ac_dir_suffix. 14047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14048 case $ac_top_builddir_sub in 14049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14051 esac ;; 14052esac 14053ac_abs_top_builddir=$ac_pwd 14054ac_abs_builddir=$ac_pwd$ac_dir_suffix 14055# for backward compatibility: 14056ac_top_builddir=$ac_top_build_prefix 14057 14058case $srcdir in 14059 .) # We are building in place. 14060 ac_srcdir=. 14061 ac_top_srcdir=$ac_top_builddir_sub 14062 ac_abs_top_srcdir=$ac_pwd ;; 14063 [\\/]* | ?:[\\/]* ) # Absolute name. 14064 ac_srcdir=$srcdir$ac_dir_suffix; 14065 ac_top_srcdir=$srcdir 14066 ac_abs_top_srcdir=$srcdir ;; 14067 *) # Relative name. 14068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14069 ac_top_srcdir=$ac_top_build_prefix$srcdir 14070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14071esac 14072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14073 14074 14075 case $ac_mode in 14076 :F) 14077 # 14078 # CONFIG_FILE 14079 # 14080 14081 case $INSTALL in 14082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14084 esac 14085 ac_MKDIR_P=$MKDIR_P 14086 case $MKDIR_P in 14087 [\\/$]* | ?:[\\/]* ) ;; 14088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14089 esac 14090_ACEOF 14091 14092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14093# If the template does not know about datarootdir, expand it. 14094# FIXME: This hack should be removed a few years after 2.60. 14095ac_datarootdir_hack=; ac_datarootdir_seen= 14096ac_sed_dataroot=' 14097/datarootdir/ { 14098 p 14099 q 14100} 14101/@datadir@/p 14102/@docdir@/p 14103/@infodir@/p 14104/@localedir@/p 14105/@mandir@/p' 14106case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14107*datarootdir*) ac_datarootdir_seen=yes;; 14108*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14110$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14111_ACEOF 14112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14113 ac_datarootdir_hack=' 14114 s&@datadir@&$datadir&g 14115 s&@docdir@&$docdir&g 14116 s&@infodir@&$infodir&g 14117 s&@localedir@&$localedir&g 14118 s&@mandir@&$mandir&g 14119 s&\\\${datarootdir}&$datarootdir&g' ;; 14120esac 14121_ACEOF 14122 14123# Neutralize VPATH when `$srcdir' = `.'. 14124# Shell code in configure.ac might set extrasub. 14125# FIXME: do we really want to maintain this feature? 14126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14127ac_sed_extra="$ac_vpsub 14128$extrasub 14129_ACEOF 14130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14131:t 14132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14133s|@configure_input@|$ac_sed_conf_input|;t t 14134s&@top_builddir@&$ac_top_builddir_sub&;t t 14135s&@top_build_prefix@&$ac_top_build_prefix&;t t 14136s&@srcdir@&$ac_srcdir&;t t 14137s&@abs_srcdir@&$ac_abs_srcdir&;t t 14138s&@top_srcdir@&$ac_top_srcdir&;t t 14139s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14140s&@builddir@&$ac_builddir&;t t 14141s&@abs_builddir@&$ac_abs_builddir&;t t 14142s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14143s&@INSTALL@&$ac_INSTALL&;t t 14144s&@MKDIR_P@&$ac_MKDIR_P&;t t 14145$ac_datarootdir_hack 14146" 14147eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14148 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14149 14150test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14151 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14153 "$ac_tmp/out"`; test -z "$ac_out"; } && 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14155which seems to be undefined. Please make sure it is defined" >&5 14156$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14157which seems to be undefined. Please make sure it is defined" >&2;} 14158 14159 rm -f "$ac_tmp/stdin" 14160 case $ac_file in 14161 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14162 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14163 esac \ 14164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14165 ;; 14166 :H) 14167 # 14168 # CONFIG_HEADER 14169 # 14170 if test x"$ac_file" != x-; then 14171 { 14172 $as_echo "/* $configure_input */" \ 14173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14174 } >"$ac_tmp/config.h" \ 14175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14176 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14178$as_echo "$as_me: $ac_file is unchanged" >&6;} 14179 else 14180 rm -f "$ac_file" 14181 mv "$ac_tmp/config.h" "$ac_file" \ 14182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14183 fi 14184 else 14185 $as_echo "/* $configure_input */" \ 14186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14187 || as_fn_error $? "could not create -" "$LINENO" 5 14188 fi 14189# Compute "$ac_file"'s index in $config_headers. 14190_am_arg="$ac_file" 14191_am_stamp_count=1 14192for _am_header in $config_headers :; do 14193 case $_am_header in 14194 $_am_arg | $_am_arg:* ) 14195 break ;; 14196 * ) 14197 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14198 esac 14199done 14200echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14201$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14202 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14203 X"$_am_arg" : 'X\(//\)$' \| \ 14204 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14205$as_echo X"$_am_arg" | 14206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14207 s//\1/ 14208 q 14209 } 14210 /^X\(\/\/\)[^/].*/{ 14211 s//\1/ 14212 q 14213 } 14214 /^X\(\/\/\)$/{ 14215 s//\1/ 14216 q 14217 } 14218 /^X\(\/\).*/{ 14219 s//\1/ 14220 q 14221 } 14222 s/.*/./; q'`/stamp-h$_am_stamp_count 14223 ;; 14224 14225 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14226$as_echo "$as_me: executing $ac_file commands" >&6;} 14227 ;; 14228 esac 14229 14230 14231 case $ac_file$ac_mode in 14232 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14233 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14234 # are listed without --file. Let's play safe and only enable the eval 14235 # if we detect the quoting. 14236 case $CONFIG_FILES in 14237 *\'*) eval set x "$CONFIG_FILES" ;; 14238 *) set x $CONFIG_FILES ;; 14239 esac 14240 shift 14241 for mf 14242 do 14243 # Strip MF so we end up with the name of the file. 14244 mf=`echo "$mf" | sed -e 's/:.*$//'` 14245 # Check whether this is an Automake generated Makefile or not. 14246 # We used to match only the files named `Makefile.in', but 14247 # some people rename them; so instead we look at the file content. 14248 # Grep'ing the first line is not enough: some people post-process 14249 # each Makefile.in and add a new line on top of each file to say so. 14250 # Grep'ing the whole file is not good either: AIX grep has a line 14251 # limit of 2048, but all sed's we know have understand at least 4000. 14252 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14253 dirpart=`$as_dirname -- "$mf" || 14254$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14255 X"$mf" : 'X\(//\)[^/]' \| \ 14256 X"$mf" : 'X\(//\)$' \| \ 14257 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14258$as_echo X"$mf" | 14259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14260 s//\1/ 14261 q 14262 } 14263 /^X\(\/\/\)[^/].*/{ 14264 s//\1/ 14265 q 14266 } 14267 /^X\(\/\/\)$/{ 14268 s//\1/ 14269 q 14270 } 14271 /^X\(\/\).*/{ 14272 s//\1/ 14273 q 14274 } 14275 s/.*/./; q'` 14276 else 14277 continue 14278 fi 14279 # Extract the definition of DEPDIR, am__include, and am__quote 14280 # from the Makefile without running `make'. 14281 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14282 test -z "$DEPDIR" && continue 14283 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14284 test -z "am__include" && continue 14285 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14286 # When using ansi2knr, U may be empty or an underscore; expand it 14287 U=`sed -n 's/^U = //p' < "$mf"` 14288 # Find all dependency output files, they are included files with 14289 # $(DEPDIR) in their names. We invoke sed twice because it is the 14290 # simplest approach to changing $(DEPDIR) to its actual value in the 14291 # expansion. 14292 for file in `sed -n " 14293 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14294 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14295 # Make sure the directory exists. 14296 test -f "$dirpart/$file" && continue 14297 fdir=`$as_dirname -- "$file" || 14298$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14299 X"$file" : 'X\(//\)[^/]' \| \ 14300 X"$file" : 'X\(//\)$' \| \ 14301 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14302$as_echo X"$file" | 14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14304 s//\1/ 14305 q 14306 } 14307 /^X\(\/\/\)[^/].*/{ 14308 s//\1/ 14309 q 14310 } 14311 /^X\(\/\/\)$/{ 14312 s//\1/ 14313 q 14314 } 14315 /^X\(\/\).*/{ 14316 s//\1/ 14317 q 14318 } 14319 s/.*/./; q'` 14320 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14321 # echo "creating $dirpart/$file" 14322 echo '# dummy' > "$dirpart/$file" 14323 done 14324 done 14325} 14326 ;; 14327 "libtool":C) 14328 14329 # See if we are running on zsh, and set the options which allow our 14330 # commands through without removal of \ escapes. 14331 if test -n "${ZSH_VERSION+set}" ; then 14332 setopt NO_GLOB_SUBST 14333 fi 14334 14335 cfgfile="${ofile}T" 14336 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14337 $RM "$cfgfile" 14338 14339 cat <<_LT_EOF >> "$cfgfile" 14340#! $SHELL 14341 14342# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14343# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14345# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14346# 14347# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14348# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14349# Foundation, Inc. 14350# Written by Gordon Matzigkeit, 1996 14351# 14352# This file is part of GNU Libtool. 14353# 14354# GNU Libtool is free software; you can redistribute it and/or 14355# modify it under the terms of the GNU General Public License as 14356# published by the Free Software Foundation; either version 2 of 14357# the License, or (at your option) any later version. 14358# 14359# As a special exception to the GNU General Public License, 14360# if you distribute this file as part of a program or library that 14361# is built using GNU Libtool, you may include this file under the 14362# same distribution terms that you use for the rest of that program. 14363# 14364# GNU Libtool is distributed in the hope that it will be useful, 14365# but WITHOUT ANY WARRANTY; without even the implied warranty of 14366# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14367# GNU General Public License for more details. 14368# 14369# You should have received a copy of the GNU General Public License 14370# along with GNU Libtool; see the file COPYING. If not, a copy 14371# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14372# obtained by writing to the Free Software Foundation, Inc., 14373# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14374 14375 14376# The names of the tagged configurations supported by this script. 14377available_tags="" 14378 14379# ### BEGIN LIBTOOL CONFIG 14380 14381# Which release of libtool.m4 was used? 14382macro_version=$macro_version 14383macro_revision=$macro_revision 14384 14385# Whether or not to build shared libraries. 14386build_libtool_libs=$enable_shared 14387 14388# Whether or not to build static libraries. 14389build_old_libs=$enable_static 14390 14391# What type of objects to build. 14392pic_mode=$pic_mode 14393 14394# Whether or not to optimize for fast installation. 14395fast_install=$enable_fast_install 14396 14397# Shell to use when invoking shell scripts. 14398SHELL=$lt_SHELL 14399 14400# An echo program that protects backslashes. 14401ECHO=$lt_ECHO 14402 14403# The PATH separator for the build system. 14404PATH_SEPARATOR=$lt_PATH_SEPARATOR 14405 14406# The host system. 14407host_alias=$host_alias 14408host=$host 14409host_os=$host_os 14410 14411# The build system. 14412build_alias=$build_alias 14413build=$build 14414build_os=$build_os 14415 14416# A sed program that does not truncate output. 14417SED=$lt_SED 14418 14419# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14420Xsed="\$SED -e 1s/^X//" 14421 14422# A grep program that handles long lines. 14423GREP=$lt_GREP 14424 14425# An ERE matcher. 14426EGREP=$lt_EGREP 14427 14428# A literal string matcher. 14429FGREP=$lt_FGREP 14430 14431# A BSD- or MS-compatible name lister. 14432NM=$lt_NM 14433 14434# Whether we need soft or hard links. 14435LN_S=$lt_LN_S 14436 14437# What is the maximum length of a command? 14438max_cmd_len=$max_cmd_len 14439 14440# Object file suffix (normally "o"). 14441objext=$ac_objext 14442 14443# Executable file suffix (normally ""). 14444exeext=$exeext 14445 14446# whether the shell understands "unset". 14447lt_unset=$lt_unset 14448 14449# turn spaces into newlines. 14450SP2NL=$lt_lt_SP2NL 14451 14452# turn newlines into spaces. 14453NL2SP=$lt_lt_NL2SP 14454 14455# convert \$build file names to \$host format. 14456to_host_file_cmd=$lt_cv_to_host_file_cmd 14457 14458# convert \$build files to toolchain format. 14459to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14460 14461# An object symbol dumper. 14462OBJDUMP=$lt_OBJDUMP 14463 14464# Method to check whether dependent libraries are shared objects. 14465deplibs_check_method=$lt_deplibs_check_method 14466 14467# Command to use when deplibs_check_method = "file_magic". 14468file_magic_cmd=$lt_file_magic_cmd 14469 14470# How to find potential files when deplibs_check_method = "file_magic". 14471file_magic_glob=$lt_file_magic_glob 14472 14473# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14474want_nocaseglob=$lt_want_nocaseglob 14475 14476# DLL creation program. 14477DLLTOOL=$lt_DLLTOOL 14478 14479# Command to associate shared and link libraries. 14480sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14481 14482# The archiver. 14483AR=$lt_AR 14484 14485# Flags to create an archive. 14486AR_FLAGS=$lt_AR_FLAGS 14487 14488# How to feed a file listing to the archiver. 14489archiver_list_spec=$lt_archiver_list_spec 14490 14491# A symbol stripping program. 14492STRIP=$lt_STRIP 14493 14494# Commands used to install an old-style archive. 14495RANLIB=$lt_RANLIB 14496old_postinstall_cmds=$lt_old_postinstall_cmds 14497old_postuninstall_cmds=$lt_old_postuninstall_cmds 14498 14499# Whether to use a lock for old archive extraction. 14500lock_old_archive_extraction=$lock_old_archive_extraction 14501 14502# A C compiler. 14503LTCC=$lt_CC 14504 14505# LTCC compiler flags. 14506LTCFLAGS=$lt_CFLAGS 14507 14508# Take the output of nm and produce a listing of raw symbols and C names. 14509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14510 14511# Transform the output of nm in a proper C declaration. 14512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14513 14514# Transform the output of nm in a C name address pair. 14515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14516 14517# Transform the output of nm in a C name address pair when lib prefix is needed. 14518global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14519 14520# Specify filename containing input files for \$NM. 14521nm_file_list_spec=$lt_nm_file_list_spec 14522 14523# The root where to search for dependent libraries,and in which our libraries should be installed. 14524lt_sysroot=$lt_sysroot 14525 14526# The name of the directory that contains temporary libtool files. 14527objdir=$objdir 14528 14529# Used to examine libraries when file_magic_cmd begins with "file". 14530MAGIC_CMD=$MAGIC_CMD 14531 14532# Must we lock files when doing compilation? 14533need_locks=$lt_need_locks 14534 14535# Manifest tool. 14536MANIFEST_TOOL=$lt_MANIFEST_TOOL 14537 14538# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14539DSYMUTIL=$lt_DSYMUTIL 14540 14541# Tool to change global to local symbols on Mac OS X. 14542NMEDIT=$lt_NMEDIT 14543 14544# Tool to manipulate fat objects and archives on Mac OS X. 14545LIPO=$lt_LIPO 14546 14547# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14548OTOOL=$lt_OTOOL 14549 14550# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14551OTOOL64=$lt_OTOOL64 14552 14553# Old archive suffix (normally "a"). 14554libext=$libext 14555 14556# Shared library suffix (normally ".so"). 14557shrext_cmds=$lt_shrext_cmds 14558 14559# The commands to extract the exported symbol list from a shared archive. 14560extract_expsyms_cmds=$lt_extract_expsyms_cmds 14561 14562# Variables whose values should be saved in libtool wrapper scripts and 14563# restored at link time. 14564variables_saved_for_relink=$lt_variables_saved_for_relink 14565 14566# Do we need the "lib" prefix for modules? 14567need_lib_prefix=$need_lib_prefix 14568 14569# Do we need a version for libraries? 14570need_version=$need_version 14571 14572# Library versioning type. 14573version_type=$version_type 14574 14575# Shared library runtime path variable. 14576runpath_var=$runpath_var 14577 14578# Shared library path variable. 14579shlibpath_var=$shlibpath_var 14580 14581# Is shlibpath searched before the hard-coded library search path? 14582shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14583 14584# Format of library name prefix. 14585libname_spec=$lt_libname_spec 14586 14587# List of archive names. First name is the real one, the rest are links. 14588# The last name is the one that the linker finds with -lNAME 14589library_names_spec=$lt_library_names_spec 14590 14591# The coded name of the library, if different from the real name. 14592soname_spec=$lt_soname_spec 14593 14594# Permission mode override for installation of shared libraries. 14595install_override_mode=$lt_install_override_mode 14596 14597# Command to use after installation of a shared archive. 14598postinstall_cmds=$lt_postinstall_cmds 14599 14600# Command to use after uninstallation of a shared archive. 14601postuninstall_cmds=$lt_postuninstall_cmds 14602 14603# Commands used to finish a libtool library installation in a directory. 14604finish_cmds=$lt_finish_cmds 14605 14606# As "finish_cmds", except a single script fragment to be evaled but 14607# not shown. 14608finish_eval=$lt_finish_eval 14609 14610# Whether we should hardcode library paths into libraries. 14611hardcode_into_libs=$hardcode_into_libs 14612 14613# Compile-time system search path for libraries. 14614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14615 14616# Run-time system search path for libraries. 14617sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14618 14619# Whether dlopen is supported. 14620dlopen_support=$enable_dlopen 14621 14622# Whether dlopen of programs is supported. 14623dlopen_self=$enable_dlopen_self 14624 14625# Whether dlopen of statically linked programs is supported. 14626dlopen_self_static=$enable_dlopen_self_static 14627 14628# Commands to strip libraries. 14629old_striplib=$lt_old_striplib 14630striplib=$lt_striplib 14631 14632 14633# The linker used to build libraries. 14634LD=$lt_LD 14635 14636# How to create reloadable object files. 14637reload_flag=$lt_reload_flag 14638reload_cmds=$lt_reload_cmds 14639 14640# Commands used to build an old-style archive. 14641old_archive_cmds=$lt_old_archive_cmds 14642 14643# A language specific compiler. 14644CC=$lt_compiler 14645 14646# Is the compiler the GNU compiler? 14647with_gcc=$GCC 14648 14649# Compiler flag to turn off builtin functions. 14650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14651 14652# Additional compiler flags for building library objects. 14653pic_flag=$lt_lt_prog_compiler_pic 14654 14655# How to pass a linker flag through the compiler. 14656wl=$lt_lt_prog_compiler_wl 14657 14658# Compiler flag to prevent dynamic linking. 14659link_static_flag=$lt_lt_prog_compiler_static 14660 14661# Does compiler simultaneously support -c and -o options? 14662compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14663 14664# Whether or not to add -lc for building shared libraries. 14665build_libtool_need_lc=$archive_cmds_need_lc 14666 14667# Whether or not to disallow shared libs when runtime libs are static. 14668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14669 14670# Compiler flag to allow reflexive dlopens. 14671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14672 14673# Compiler flag to generate shared objects directly from archives. 14674whole_archive_flag_spec=$lt_whole_archive_flag_spec 14675 14676# Whether the compiler copes with passing no objects directly. 14677compiler_needs_object=$lt_compiler_needs_object 14678 14679# Create an old-style archive from a shared archive. 14680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14681 14682# Create a temporary old-style archive to link instead of a shared archive. 14683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14684 14685# Commands used to build a shared archive. 14686archive_cmds=$lt_archive_cmds 14687archive_expsym_cmds=$lt_archive_expsym_cmds 14688 14689# Commands used to build a loadable module if different from building 14690# a shared archive. 14691module_cmds=$lt_module_cmds 14692module_expsym_cmds=$lt_module_expsym_cmds 14693 14694# Whether we are building with GNU ld or not. 14695with_gnu_ld=$lt_with_gnu_ld 14696 14697# Flag that allows shared libraries with undefined symbols to be built. 14698allow_undefined_flag=$lt_allow_undefined_flag 14699 14700# Flag that enforces no undefined symbols. 14701no_undefined_flag=$lt_no_undefined_flag 14702 14703# Flag to hardcode \$libdir into a binary during linking. 14704# This must work even if \$libdir does not exist 14705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14706 14707# Whether we need a single "-rpath" flag with a separated argument. 14708hardcode_libdir_separator=$lt_hardcode_libdir_separator 14709 14710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14711# DIR into the resulting binary. 14712hardcode_direct=$hardcode_direct 14713 14714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14715# DIR into the resulting binary and the resulting library dependency is 14716# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14717# library is relocated. 14718hardcode_direct_absolute=$hardcode_direct_absolute 14719 14720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14721# into the resulting binary. 14722hardcode_minus_L=$hardcode_minus_L 14723 14724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14725# into the resulting binary. 14726hardcode_shlibpath_var=$hardcode_shlibpath_var 14727 14728# Set to "yes" if building a shared library automatically hardcodes DIR 14729# into the library and all subsequent libraries and executables linked 14730# against it. 14731hardcode_automatic=$hardcode_automatic 14732 14733# Set to yes if linker adds runtime paths of dependent libraries 14734# to runtime path list. 14735inherit_rpath=$inherit_rpath 14736 14737# Whether libtool must link a program against all its dependency libraries. 14738link_all_deplibs=$link_all_deplibs 14739 14740# Set to "yes" if exported symbols are required. 14741always_export_symbols=$always_export_symbols 14742 14743# The commands to list exported symbols. 14744export_symbols_cmds=$lt_export_symbols_cmds 14745 14746# Symbols that should not be listed in the preloaded symbols. 14747exclude_expsyms=$lt_exclude_expsyms 14748 14749# Symbols that must always be exported. 14750include_expsyms=$lt_include_expsyms 14751 14752# Commands necessary for linking programs (against libraries) with templates. 14753prelink_cmds=$lt_prelink_cmds 14754 14755# Commands necessary for finishing linking programs. 14756postlink_cmds=$lt_postlink_cmds 14757 14758# Specify filename containing input files. 14759file_list_spec=$lt_file_list_spec 14760 14761# How to hardcode a shared library path into an executable. 14762hardcode_action=$hardcode_action 14763 14764# ### END LIBTOOL CONFIG 14765 14766_LT_EOF 14767 14768 case $host_os in 14769 aix3*) 14770 cat <<\_LT_EOF >> "$cfgfile" 14771# AIX sometimes has problems with the GCC collect2 program. For some 14772# reason, if we set the COLLECT_NAMES environment variable, the problems 14773# vanish in a puff of smoke. 14774if test "X${COLLECT_NAMES+set}" != Xset; then 14775 COLLECT_NAMES= 14776 export COLLECT_NAMES 14777fi 14778_LT_EOF 14779 ;; 14780 esac 14781 14782 14783ltmain="$ac_aux_dir/ltmain.sh" 14784 14785 14786 # We use sed instead of cat because bash on DJGPP gets confused if 14787 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14788 # text mode, it properly converts lines to CR/LF. This bash problem 14789 # is reportedly fixed, but why not run on old versions too? 14790 sed '$q' "$ltmain" >> "$cfgfile" \ 14791 || (rm -f "$cfgfile"; exit 1) 14792 14793 if test x"$xsi_shell" = xyes; then 14794 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14795func_dirname ()\ 14796{\ 14797\ case ${1} in\ 14798\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14799\ * ) func_dirname_result="${3}" ;;\ 14800\ esac\ 14801} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14802 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14804test 0 -eq $? || _lt_function_replace_fail=: 14805 14806 14807 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14808func_basename ()\ 14809{\ 14810\ func_basename_result="${1##*/}"\ 14811} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14812 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14814test 0 -eq $? || _lt_function_replace_fail=: 14815 14816 14817 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14818func_dirname_and_basename ()\ 14819{\ 14820\ case ${1} in\ 14821\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14822\ * ) func_dirname_result="${3}" ;;\ 14823\ esac\ 14824\ func_basename_result="${1##*/}"\ 14825} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14826 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14828test 0 -eq $? || _lt_function_replace_fail=: 14829 14830 14831 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14832func_stripname ()\ 14833{\ 14834\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14835\ # positional parameters, so assign one to ordinary parameter first.\ 14836\ func_stripname_result=${3}\ 14837\ func_stripname_result=${func_stripname_result#"${1}"}\ 14838\ func_stripname_result=${func_stripname_result%"${2}"}\ 14839} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14840 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14842test 0 -eq $? || _lt_function_replace_fail=: 14843 14844 14845 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14846func_split_long_opt ()\ 14847{\ 14848\ func_split_long_opt_name=${1%%=*}\ 14849\ func_split_long_opt_arg=${1#*=}\ 14850} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14851 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14853test 0 -eq $? || _lt_function_replace_fail=: 14854 14855 14856 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14857func_split_short_opt ()\ 14858{\ 14859\ func_split_short_opt_arg=${1#??}\ 14860\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14861} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14862 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14864test 0 -eq $? || _lt_function_replace_fail=: 14865 14866 14867 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14868func_lo2o ()\ 14869{\ 14870\ case ${1} in\ 14871\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14872\ *) func_lo2o_result=${1} ;;\ 14873\ esac\ 14874} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14875 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14877test 0 -eq $? || _lt_function_replace_fail=: 14878 14879 14880 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14881func_xform ()\ 14882{\ 14883 func_xform_result=${1%.*}.lo\ 14884} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14885 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14887test 0 -eq $? || _lt_function_replace_fail=: 14888 14889 14890 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14891func_arith ()\ 14892{\ 14893 func_arith_result=$(( $* ))\ 14894} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14895 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14897test 0 -eq $? || _lt_function_replace_fail=: 14898 14899 14900 sed -e '/^func_len ()$/,/^} # func_len /c\ 14901func_len ()\ 14902{\ 14903 func_len_result=${#1}\ 14904} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14905 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14907test 0 -eq $? || _lt_function_replace_fail=: 14908 14909fi 14910 14911if test x"$lt_shell_append" = xyes; then 14912 sed -e '/^func_append ()$/,/^} # func_append /c\ 14913func_append ()\ 14914{\ 14915 eval "${1}+=\\${2}"\ 14916} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14917 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14919test 0 -eq $? || _lt_function_replace_fail=: 14920 14921 14922 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14923func_append_quoted ()\ 14924{\ 14925\ func_quote_for_eval "${2}"\ 14926\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14927} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14930test 0 -eq $? || _lt_function_replace_fail=: 14931 14932 14933 # Save a `func_append' function call where possible by direct use of '+=' 14934 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14935 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14937 test 0 -eq $? || _lt_function_replace_fail=: 14938else 14939 # Save a `func_append' function call even when '+=' is not available 14940 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14941 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14943 test 0 -eq $? || _lt_function_replace_fail=: 14944fi 14945 14946if test x"$_lt_function_replace_fail" = x":"; then 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14948$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14949fi 14950 14951 14952 mv -f "$cfgfile" "$ofile" || 14953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14954 chmod +x "$ofile" 14955 14956 ;; 14957 14958 esac 14959done # for ac_tag 14960 14961 14962as_fn_exit 0 14963_ACEOF 14964ac_clean_files=$ac_clean_files_save 14965 14966test $ac_write_fail = 0 || 14967 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14968 14969 14970# configure is writing to config.log, and then calls config.status. 14971# config.status does its own redirection, appending to config.log. 14972# Unfortunately, on DOS this fails, as config.log is still kept open 14973# by configure, so config.status won't be able to write to it; its 14974# output is simply discarded. So we exec the FD to /dev/null, 14975# effectively closing config.log, so it can be properly (re)opened and 14976# appended to by config.status. When coming back to configure, we 14977# need to make the FD available again. 14978if test "$no_create" != yes; then 14979 ac_cs_success=: 14980 ac_config_status_args= 14981 test "$silent" = yes && 14982 ac_config_status_args="$ac_config_status_args --quiet" 14983 exec 5>/dev/null 14984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14985 exec 5>>config.log 14986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14987 # would make configure fail if this is the last instruction. 14988 $ac_cs_success || as_fn_exit 1 14989fi 14990if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14992$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14993fi 14994 14995 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 14997------------------------------------------------------------------------ 14998 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. 14999 15000 Compiler support: 15001 15002 C99 var arrays: ................ ${has_var_arrays} 15003 C99 lrintf: .................... ${ac_cv_func_lrintf} 15004 Alloca: ........................ ${has_alloca} 15005 15006 General configuration: 15007 15008 Floating point support: ........ ${ac_enable_float} 15009 Fast float approximations: ..... ${float_approx} 15010 Fixed point debugging: ......... ${ac_enable_fixed_debug} 15011 Encoder support: ............... ${ac_enable_encoder} 15012 Custom modes: .................. ${ac_enable_custom_modes} 15013 Assertion checking: ............ ${ac_enable_assertions} 15014 Fuzzing: ....................... ${ac_enable_fuzzing} 15015 15016 API documentation: ............. ${ac_enable_doc} 15017------------------------------------------------------------------------ 15018" >&5 15019$as_echo " 15020------------------------------------------------------------------------ 15021 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. 15022 15023 Compiler support: 15024 15025 C99 var arrays: ................ ${has_var_arrays} 15026 C99 lrintf: .................... ${ac_cv_func_lrintf} 15027 Alloca: ........................ ${has_alloca} 15028 15029 General configuration: 15030 15031 Floating point support: ........ ${ac_enable_float} 15032 Fast float approximations: ..... ${float_approx} 15033 Fixed point debugging: ......... ${ac_enable_fixed_debug} 15034 Encoder support: ............... ${ac_enable_encoder} 15035 Custom modes: .................. ${ac_enable_custom_modes} 15036 Assertion checking: ............ ${ac_enable_assertions} 15037 Fuzzing: ....................... ${ac_enable_fuzzing} 15038 15039 API documentation: ............. ${ac_enable_doc} 15040------------------------------------------------------------------------ 15041" >&6; } 15042 15043echo "Type \"make; make install\" to compile and install"; 15044echo "Type \"make check\" to run the test suite"; 15045