1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for lame 3.100. 4# 5# Report bugs to <lame-dev@lists.sf.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: lame-dev@lists.sf.net about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='lame' 592PACKAGE_TARNAME='lame' 593PACKAGE_VERSION='3.100' 594PACKAGE_STRING='lame 3.100' 595PACKAGE_BUGREPORT='lame-dev@lists.sf.net' 596PACKAGE_URL='' 597 598ac_unique_file="libmp3lame/lame.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639CONFIG_DEFS 640CPUCCODE 641CPUTYPE 642WITH_MP3RTP 643WITH_MP3X 644WITH_FRONTEND 645RM_F 646MAKEDEP 647NASM_FORMAT 648LIB_MINOR_VERSION 649LIB_MAJOR_VERSION 650LDADD 651CONFIG_MATH_LIB 652LIBMP3LAME_LDADD 653FRONTEND_LDADD 654FRONTEND_CFLAGS 655FRONTEND_LDFLAGS 656INCLUDES 657HAVE_NASM_FALSE 658HAVE_NASM_TRUE 659NASM 660WITH_VECTOR_FALSE 661WITH_VECTOR_TRUE 662WITH_XMM_FALSE 663WITH_XMM_TRUE 664LIB_WITH_DECODER_FALSE 665LIB_WITH_DECODER_TRUE 666mpg123_LIBS 667mpg123_CFLAGS 668SNDFILE_LIBS 669SNDFILE_CFLAGS 670GTK_LIBS 671GTK_CFLAGS 672GTK_CONFIG 673LTLIBICONV 674LIBICONV 675ALLOCA 676LIBTOOL_DEPS 677LT_SYS_LIBRARY_PATH 678OTOOL64 679OTOOL 680LIPO 681NMEDIT 682DSYMUTIL 683MANIFEST_TOOL 684RANLIB 685ac_ct_AR 686AR 687DLLTOOL 688OBJDUMP 689LN_S 690NM 691ac_ct_DUMPBIN 692DUMPBIN 693LD 694FGREP 695SED 696LIBTOOL 697EGREP 698GREP 699CPP 700am__fastdepCC_FALSE 701am__fastdepCC_TRUE 702CCDEPMODE 703am__nodep 704AMDEPBACKSLASH 705AMDEP_FALSE 706AMDEP_TRUE 707DEPDIR 708OBJEXT 709EXEEXT 710ac_ct_CC 711CPPFLAGS 712LDFLAGS 713CFLAGS 714CC 715PKG_CONFIG_LIBDIR 716PKG_CONFIG_PATH 717PKG_CONFIG 718am__include 719MAINT 720MAINTAINER_MODE_FALSE 721MAINTAINER_MODE_TRUE 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749host_os 750host_vendor 751host_cpu 752host 753build_os 754build_vendor 755build_cpu 756build 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_URL 788PACKAGE_BUGREPORT 789PACKAGE_STRING 790PACKAGE_VERSION 791PACKAGE_TARNAME 792PACKAGE_NAME 793PATH_SEPARATOR 794SHELL 795am__quote' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_maintainer_mode 801enable_dependency_tracking 802enable_shared 803enable_static 804with_pic 805enable_fast_install 806with_aix_soname 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810with_dmalloc 811enable_largefile 812enable_nasm 813enable_ieeehack 814enable_rpath 815with_libiconv_prefix 816enable_cpml 817with_gtk_prefix 818with_gtk_exec_prefix 819enable_gtktest 820enable_efence 821with_fileio 822enable_analyzer_hooks 823enable_decoder 824enable_libmpg123 825enable_frontend 826enable_mp3x 827enable_mp3rtp 828enable_dynamic_frontends 829enable_expopt 830enable_debug 831' 832 ac_precious_vars='build_alias 833host_alias 834target_alias 835PKG_CONFIG 836PKG_CONFIG_PATH 837PKG_CONFIG_LIBDIR 838CC 839CFLAGS 840LDFLAGS 841LIBS 842CPPFLAGS 843CPP 844LT_SYS_LIBRARY_PATH 845SNDFILE_CFLAGS 846SNDFILE_LIBS 847mpg123_CFLAGS 848mpg123_LIBS' 849 850 851# Initialize some variables set by options. 852ac_init_help= 853ac_init_version=false 854ac_unrecognized_opts= 855ac_unrecognized_sep= 856# The variables have the same names as the options, with 857# dashes changed to underlines. 858cache_file=/dev/null 859exec_prefix=NONE 860no_create= 861no_recursion= 862prefix=NONE 863program_prefix=NONE 864program_suffix=NONE 865program_transform_name=s,x,x, 866silent= 867site= 868srcdir= 869verbose= 870x_includes=NONE 871x_libraries=NONE 872 873# Installation directory options. 874# These are left unexpanded so users can "make install exec_prefix=/foo" 875# and all the variables that are supposed to be based on exec_prefix 876# by default will actually change. 877# Use braces instead of parens because sh, perl, etc. also accept them. 878# (The list follows the same order as the GNU Coding Standards.) 879bindir='${exec_prefix}/bin' 880sbindir='${exec_prefix}/sbin' 881libexecdir='${exec_prefix}/libexec' 882datarootdir='${prefix}/share' 883datadir='${datarootdir}' 884sysconfdir='${prefix}/etc' 885sharedstatedir='${prefix}/com' 886localstatedir='${prefix}/var' 887includedir='${prefix}/include' 888oldincludedir='/usr/include' 889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 890infodir='${datarootdir}/info' 891htmldir='${docdir}' 892dvidir='${docdir}' 893pdfdir='${docdir}' 894psdir='${docdir}' 895libdir='${exec_prefix}/lib' 896localedir='${datarootdir}/locale' 897mandir='${datarootdir}/man' 898 899ac_prev= 900ac_dashdash= 901for ac_option 902do 903 # If the previous option needs an argument, assign it. 904 if test -n "$ac_prev"; then 905 eval $ac_prev=\$ac_option 906 ac_prev= 907 continue 908 fi 909 910 case $ac_option in 911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 912 *=) ac_optarg= ;; 913 *) ac_optarg=yes ;; 914 esac 915 916 # Accept the important Cygnus configure options, so we can diagnose typos. 917 918 case $ac_dashdash$ac_option in 919 --) 920 ac_dashdash=yes ;; 921 922 -bindir | --bindir | --bindi | --bind | --bin | --bi) 923 ac_prev=bindir ;; 924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 925 bindir=$ac_optarg ;; 926 927 -build | --build | --buil | --bui | --bu) 928 ac_prev=build_alias ;; 929 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 930 build_alias=$ac_optarg ;; 931 932 -cache-file | --cache-file | --cache-fil | --cache-fi \ 933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 934 ac_prev=cache_file ;; 935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 937 cache_file=$ac_optarg ;; 938 939 --config-cache | -C) 940 cache_file=config.cache ;; 941 942 -datadir | --datadir | --datadi | --datad) 943 ac_prev=datadir ;; 944 -datadir=* | --datadir=* | --datadi=* | --datad=*) 945 datadir=$ac_optarg ;; 946 947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 948 | --dataroo | --dataro | --datar) 949 ac_prev=datarootdir ;; 950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 952 datarootdir=$ac_optarg ;; 953 954 -disable-* | --disable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: $ac_useropt" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=no ;; 969 970 -docdir | --docdir | --docdi | --doc | --do) 971 ac_prev=docdir ;; 972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 973 docdir=$ac_optarg ;; 974 975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 976 ac_prev=dvidir ;; 977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 978 dvidir=$ac_optarg ;; 979 980 -enable-* | --enable-*) 981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 982 # Reject names that are not valid shell variable names. 983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 984 as_fn_error $? "invalid feature name: $ac_useropt" 985 ac_useropt_orig=$ac_useropt 986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 987 case $ac_user_opts in 988 *" 989"enable_$ac_useropt" 990"*) ;; 991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 992 ac_unrecognized_sep=', ';; 993 esac 994 eval enable_$ac_useropt=\$ac_optarg ;; 995 996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 998 | --exec | --exe | --ex) 999 ac_prev=exec_prefix ;; 1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1002 | --exec=* | --exe=* | --ex=*) 1003 exec_prefix=$ac_optarg ;; 1004 1005 -gas | --gas | --ga | --g) 1006 # Obsolete; use --with-gas. 1007 with_gas=yes ;; 1008 1009 -help | --help | --hel | --he | -h) 1010 ac_init_help=long ;; 1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1012 ac_init_help=recursive ;; 1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1014 ac_init_help=short ;; 1015 1016 -host | --host | --hos | --ho) 1017 ac_prev=host_alias ;; 1018 -host=* | --host=* | --hos=* | --ho=*) 1019 host_alias=$ac_optarg ;; 1020 1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1022 ac_prev=htmldir ;; 1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1024 | --ht=*) 1025 htmldir=$ac_optarg ;; 1026 1027 -includedir | --includedir | --includedi | --included | --include \ 1028 | --includ | --inclu | --incl | --inc) 1029 ac_prev=includedir ;; 1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1031 | --includ=* | --inclu=* | --incl=* | --inc=*) 1032 includedir=$ac_optarg ;; 1033 1034 -infodir | --infodir | --infodi | --infod | --info | --inf) 1035 ac_prev=infodir ;; 1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1037 infodir=$ac_optarg ;; 1038 1039 -libdir | --libdir | --libdi | --libd) 1040 ac_prev=libdir ;; 1041 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1042 libdir=$ac_optarg ;; 1043 1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1045 | --libexe | --libex | --libe) 1046 ac_prev=libexecdir ;; 1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1048 | --libexe=* | --libex=* | --libe=*) 1049 libexecdir=$ac_optarg ;; 1050 1051 -localedir | --localedir | --localedi | --localed | --locale) 1052 ac_prev=localedir ;; 1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1054 localedir=$ac_optarg ;; 1055 1056 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1057 | --localstate | --localstat | --localsta | --localst | --locals) 1058 ac_prev=localstatedir ;; 1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1061 localstatedir=$ac_optarg ;; 1062 1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1064 ac_prev=mandir ;; 1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1066 mandir=$ac_optarg ;; 1067 1068 -nfp | --nfp | --nf) 1069 # Obsolete; use --without-fp. 1070 with_fp=no ;; 1071 1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1073 | --no-cr | --no-c | -n) 1074 no_create=yes ;; 1075 1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1078 no_recursion=yes ;; 1079 1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1082 | --oldin | --oldi | --old | --ol | --o) 1083 ac_prev=oldincludedir ;; 1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1087 oldincludedir=$ac_optarg ;; 1088 1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1090 ac_prev=prefix ;; 1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1092 prefix=$ac_optarg ;; 1093 1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1095 | --program-pre | --program-pr | --program-p) 1096 ac_prev=program_prefix ;; 1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1099 program_prefix=$ac_optarg ;; 1100 1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1102 | --program-suf | --program-su | --program-s) 1103 ac_prev=program_suffix ;; 1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1106 program_suffix=$ac_optarg ;; 1107 1108 -program-transform-name | --program-transform-name \ 1109 | --program-transform-nam | --program-transform-na \ 1110 | --program-transform-n | --program-transform- \ 1111 | --program-transform | --program-transfor \ 1112 | --program-transfo | --program-transf \ 1113 | --program-trans | --program-tran \ 1114 | --progr-tra | --program-tr | --program-t) 1115 ac_prev=program_transform_name ;; 1116 -program-transform-name=* | --program-transform-name=* \ 1117 | --program-transform-nam=* | --program-transform-na=* \ 1118 | --program-transform-n=* | --program-transform-=* \ 1119 | --program-transform=* | --program-transfor=* \ 1120 | --program-transfo=* | --program-transf=* \ 1121 | --program-trans=* | --program-tran=* \ 1122 | --progr-tra=* | --program-tr=* | --program-t=*) 1123 program_transform_name=$ac_optarg ;; 1124 1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1126 ac_prev=pdfdir ;; 1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1128 pdfdir=$ac_optarg ;; 1129 1130 -psdir | --psdir | --psdi | --psd | --ps) 1131 ac_prev=psdir ;; 1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1133 psdir=$ac_optarg ;; 1134 1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1136 | -silent | --silent | --silen | --sile | --sil) 1137 silent=yes ;; 1138 1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1140 ac_prev=sbindir ;; 1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1142 | --sbi=* | --sb=*) 1143 sbindir=$ac_optarg ;; 1144 1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1147 | --sharedst | --shareds | --shared | --share | --shar \ 1148 | --sha | --sh) 1149 ac_prev=sharedstatedir ;; 1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1153 | --sha=* | --sh=*) 1154 sharedstatedir=$ac_optarg ;; 1155 1156 -site | --site | --sit) 1157 ac_prev=site ;; 1158 -site=* | --site=* | --sit=*) 1159 site=$ac_optarg ;; 1160 1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1162 ac_prev=srcdir ;; 1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1164 srcdir=$ac_optarg ;; 1165 1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1167 | --syscon | --sysco | --sysc | --sys | --sy) 1168 ac_prev=sysconfdir ;; 1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1171 sysconfdir=$ac_optarg ;; 1172 1173 -target | --target | --targe | --targ | --tar | --ta | --t) 1174 ac_prev=target_alias ;; 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1176 target_alias=$ac_optarg ;; 1177 1178 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1179 verbose=yes ;; 1180 1181 -version | --version | --versio | --versi | --vers | -V) 1182 ac_init_version=: ;; 1183 1184 -with-* | --with-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=\$ac_optarg ;; 1199 1200 -without-* | --without-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: $ac_useropt" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=no ;; 1215 1216 --x) 1217 # Obsolete; use --with-x. 1218 with_x=yes ;; 1219 1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1221 | --x-incl | --x-inc | --x-in | --x-i) 1222 ac_prev=x_includes ;; 1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1225 x_includes=$ac_optarg ;; 1226 1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1229 ac_prev=x_libraries ;; 1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1232 x_libraries=$ac_optarg ;; 1233 1234 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1235Try \`$0 --help' for more information" 1236 ;; 1237 1238 *=*) 1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1240 # Reject names that are not valid shell variable names. 1241 case $ac_envvar in #( 1242 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1244 esac 1245 eval $ac_envvar=\$ac_optarg 1246 export $ac_envvar ;; 1247 1248 *) 1249 # FIXME: should be removed in autoconf 3.0. 1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1254 ;; 1255 1256 esac 1257done 1258 1259if test -n "$ac_prev"; then 1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1261 as_fn_error $? "missing argument to $ac_option" 1262fi 1263 1264if test -n "$ac_unrecognized_opts"; then 1265 case $enable_option_checking in 1266 no) ;; 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1269 esac 1270fi 1271 1272# Check all directory arguments for consistency. 1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1274 datadir sysconfdir sharedstatedir localstatedir includedir \ 1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1276 libdir localedir mandir 1277do 1278 eval ac_val=\$$ac_var 1279 # Remove trailing slashes. 1280 case $ac_val in 1281 */ ) 1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1283 eval $ac_var=\$ac_val;; 1284 esac 1285 # Be sure to have absolute directory names. 1286 case $ac_val in 1287 [\\/$]* | ?:[\\/]* ) continue;; 1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1289 esac 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1291done 1292 1293# There might be people who depend on the old broken behavior: `$host' 1294# used to hold the argument of --host etc. 1295# FIXME: To remove some day. 1296build=$build_alias 1297host=$host_alias 1298target=$target_alias 1299 1300# FIXME: To remove some day. 1301if test "x$host_alias" != x; then 1302 if test "x$build_alias" = x; then 1303 cross_compiling=maybe 1304 elif test "x$build_alias" != "x$host_alias"; then 1305 cross_compiling=yes 1306 fi 1307fi 1308 1309ac_tool_prefix= 1310test -n "$host_alias" && ac_tool_prefix=$host_alias- 1311 1312test "$silent" = yes && exec 6>/dev/null 1313 1314 1315ac_pwd=`pwd` && test -n "$ac_pwd" && 1316ac_ls_di=`ls -di .` && 1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1318 as_fn_error $? "working directory cannot be determined" 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 as_fn_error $? "pwd does not report name of working directory" 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$as_myself" || 1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$as_myself" : 'X\(//\)[^/]' \| \ 1330 X"$as_myself" : 'X\(//\)$' \| \ 1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1332$as_echo X"$as_myself" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1360fi 1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1362ac_abs_confdir=`( 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1364 pwd)` 1365# When building in place, set srcdir=. 1366if test "$ac_abs_confdir" = "$ac_pwd"; then 1367 srcdir=. 1368fi 1369# Remove unnecessary trailing slashes from srcdir. 1370# Double slashes in file names in object file debugging info 1371# mess up M-x gdb in Emacs. 1372case $srcdir in 1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1374esac 1375for ac_var in $ac_precious_vars; do 1376 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_env_${ac_var}_value=\$${ac_var} 1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1380done 1381 1382# 1383# Report the --help message. 1384# 1385if test "$ac_init_help" = "long"; then 1386 # Omit some internal or obsolete options to make the list less imposing. 1387 # This message is too long to be a string in the A/UX 3.1 sh. 1388 cat <<_ACEOF 1389\`configure' configures lame 3.100 to adapt to many kinds of systems. 1390 1391Usage: $0 [OPTION]... [VAR=VALUE]... 1392 1393To assign environment variables (e.g., CC, CFLAGS...), specify them as 1394VAR=VALUE. See below for descriptions of some of the useful variables. 1395 1396Defaults for the options are specified in brackets. 1397 1398Configuration: 1399 -h, --help display this help and exit 1400 --help=short display options specific to this package 1401 --help=recursive display the short help of all the included packages 1402 -V, --version display version information and exit 1403 -q, --quiet, --silent do not print \`checking ...' messages 1404 --cache-file=FILE cache test results in FILE [disabled] 1405 -C, --config-cache alias for \`--cache-file=config.cache' 1406 -n, --no-create do not create output files 1407 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1408 1409Installation directories: 1410 --prefix=PREFIX install architecture-independent files in PREFIX 1411 [$ac_default_prefix] 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1413 [PREFIX] 1414 1415By default, \`make install' will install all the files in 1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1417an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1418for instance \`--prefix=\$HOME'. 1419 1420For better control, use the options below. 1421 1422Fine tuning of the installation directories: 1423 --bindir=DIR user executables [EPREFIX/bin] 1424 --sbindir=DIR system admin executables [EPREFIX/sbin] 1425 --libexecdir=DIR program executables [EPREFIX/libexec] 1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1429 --libdir=DIR object code libraries [EPREFIX/lib] 1430 --includedir=DIR C header files [PREFIX/include] 1431 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1434 --infodir=DIR info documentation [DATAROOTDIR/info] 1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1436 --mandir=DIR man documentation [DATAROOTDIR/man] 1437 --docdir=DIR documentation root [DATAROOTDIR/doc/lame] 1438 --htmldir=DIR html documentation [DOCDIR] 1439 --dvidir=DIR dvi documentation [DOCDIR] 1440 --pdfdir=DIR pdf documentation [DOCDIR] 1441 --psdir=DIR ps documentation [DOCDIR] 1442_ACEOF 1443 1444 cat <<\_ACEOF 1445 1446Program names: 1447 --program-prefix=PREFIX prepend PREFIX to installed program names 1448 --program-suffix=SUFFIX append SUFFIX to installed program names 1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1450 1451System types: 1452 --build=BUILD configure for building on BUILD [guessed] 1453 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1454_ACEOF 1455fi 1456 1457if test -n "$ac_init_help"; then 1458 case $ac_init_help in 1459 short | recursive ) echo "Configuration of lame 3.100:";; 1460 esac 1461 cat <<\_ACEOF 1462 1463Optional Features: 1464 --disable-option-checking ignore unrecognized --enable/--with options 1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1467 --enable-silent-rules less verbose build output (undo: "make V=1") 1468 --disable-silent-rules verbose build output (undo: "make V=0") 1469 --enable-maintainer-mode 1470 enable make rules and dependencies not useful (and 1471 sometimes confusing) to the casual installer 1472 --enable-dependency-tracking 1473 do not reject slow dependency extractors 1474 --disable-dependency-tracking 1475 speeds up one-time build 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-largefile omit support for large files 1482 --enable-nasm Allow the use of nasm if available 1483 --enable-ieeehack Enable Takhiros IEEE754 hack (speed improvement for old CPUs) 1484 --disable-rpath do not hardcode runtime library paths 1485 --disable-cpml Do not use Compaq's fast Math Library 1486 --disable-gtktest Do not try to compile and run a test GTK program 1487 --enable-efence Use ElectricFence for malloc debugging 1488 --disable-analyzer-hooks Exclude analyzer hooks 1489 --disable-decoder Exclude mpg123 decoder (internal or external) 1490 --disable-libmpg123 Disable use of external libmpg123 decoder (normally favoured over internal decoder) 1491 --disable-frontend Do not build the lame executable default=build 1492 --enable-mp3x Build GTK frame analyzer default=no 1493 --enable-mp3rtp Build mp3rtp default=no 1494 --enable-dynamic-frontends Link frontends against shared libraries default=no 1495 --enable-expopt=full,norm Whether to enable experimental optimizations 1496 default=no 1497 --enable-debug=alot,norm Enable debugging (disables optimizations) 1498 default=no 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1504 both] 1505 --with-aix-soname=aix|svr4|both 1506 shared library versioning (aka "SONAME") variant to 1507 provide on AIX, [default=aix]. 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1510 compiler's sysroot if not specified). 1511 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1514 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1515 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1516 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1517 --with-fileio=lame Use lame's internal file io routines default 1518 =sndfile Use Erik de Castro Lopo's libsndfile 1519 (no stdin possible currently) 1520 1521Some influential environment variables: 1522 PKG_CONFIG path to pkg-config utility 1523 PKG_CONFIG_PATH 1524 directories to add to pkg-config's search path 1525 PKG_CONFIG_LIBDIR 1526 path overriding pkg-config's built-in search path 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 CPP C preprocessor 1535 LT_SYS_LIBRARY_PATH 1536 User-defined run-time library search path. 1537 SNDFILE_CFLAGS 1538 C compiler flags for SNDFILE, overriding pkg-config 1539 SNDFILE_LIBS 1540 linker flags for SNDFILE, overriding pkg-config 1541 mpg123_CFLAGS 1542 C compiler flags for mpg123, overriding pkg-config 1543 mpg123_LIBS linker flags for mpg123, overriding pkg-config 1544 1545Use these variables to override the choices made by `configure' or to help 1546it to find libraries and programs with nonstandard names/locations. 1547 1548Report bugs to <lame-dev@lists.sf.net>. 1549_ACEOF 1550ac_status=$? 1551fi 1552 1553if test "$ac_init_help" = "recursive"; then 1554 # If there are subdirs, report their specific --help. 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556 test -d "$ac_dir" || 1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1558 continue 1559 ac_builddir=. 1560 1561case "$ac_dir" in 1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563*) 1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1565 # A ".." for each directory in $ac_dir_suffix. 1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1567 case $ac_top_builddir_sub in 1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1570 esac ;; 1571esac 1572ac_abs_top_builddir=$ac_pwd 1573ac_abs_builddir=$ac_pwd$ac_dir_suffix 1574# for backward compatibility: 1575ac_top_builddir=$ac_top_build_prefix 1576 1577case $srcdir in 1578 .) # We are building in place. 1579 ac_srcdir=. 1580 ac_top_srcdir=$ac_top_builddir_sub 1581 ac_abs_top_srcdir=$ac_pwd ;; 1582 [\\/]* | ?:[\\/]* ) # Absolute name. 1583 ac_srcdir=$srcdir$ac_dir_suffix; 1584 ac_top_srcdir=$srcdir 1585 ac_abs_top_srcdir=$srcdir ;; 1586 *) # Relative name. 1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1588 ac_top_srcdir=$ac_top_build_prefix$srcdir 1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1590esac 1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1592 1593 cd "$ac_dir" || { ac_status=$?; continue; } 1594 # Check for guested configure. 1595 if test -f "$ac_srcdir/configure.gnu"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1598 elif test -f "$ac_srcdir/configure"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure" --help=recursive 1601 else 1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1603 fi || ac_status=$? 1604 cd "$ac_pwd" || { ac_status=$?; break; } 1605 done 1606fi 1607 1608test -n "$ac_init_help" && exit $ac_status 1609if $ac_init_version; then 1610 cat <<\_ACEOF 1611lame configure 3.100 1612generated by GNU Autoconf 2.69 1613 1614Copyright (C) 2012 Free Software Foundation, Inc. 1615This configure script is free software; the Free Software Foundation 1616gives unlimited permission to copy, distribute and modify it. 1617_ACEOF 1618 exit 1619fi 1620 1621## ------------------------ ## 1622## Autoconf initialization. ## 1623## ------------------------ ## 1624 1625# ac_fn_c_try_compile LINENO 1626# -------------------------- 1627# Try to compile conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 rm -f conftest.$ac_objext 1632 if { { ac_try="$ac_compile" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_compile") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { 1648 test -z "$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 } && test -s conftest.$ac_objext; then : 1651 ac_retval=0 1652else 1653 $as_echo "$as_me: failed program was:" >&5 1654sed 's/^/| /' conftest.$ac_ext >&5 1655 1656 ac_retval=1 1657fi 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_compile 1662 1663# ac_fn_c_try_cpp LINENO 1664# ---------------------- 1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1666ac_fn_c_try_cpp () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 if { { ac_try="$ac_cpp conftest.$ac_ext" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } > conftest.i && { 1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_cpp 1699 1700# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1701# ------------------------------------------------------- 1702# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1703# the include files in INCLUDES and setting the cache variable VAR 1704# accordingly. 1705ac_fn_c_check_header_mongrel () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 if eval \${$3+:} false; then : 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710$as_echo_n "checking for $2... " >&6; } 1711if eval \${$3+:} false; then : 1712 $as_echo_n "(cached) " >&6 1713fi 1714eval ac_res=\$$3 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1716$as_echo "$ac_res" >&6; } 1717else 1718 # Is the header compilable? 1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1720$as_echo_n "checking $2 usability... " >&6; } 1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723$4 1724#include <$2> 1725_ACEOF 1726if ac_fn_c_try_compile "$LINENO"; then : 1727 ac_header_compiler=yes 1728else 1729 ac_header_compiler=no 1730fi 1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1733$as_echo "$ac_header_compiler" >&6; } 1734 1735# Is the header present? 1736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1737$as_echo_n "checking $2 presence... " >&6; } 1738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_cpp "$LINENO"; then : 1743 ac_header_preproc=yes 1744else 1745 ac_header_preproc=no 1746fi 1747rm -f conftest.err conftest.i conftest.$ac_ext 1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1749$as_echo "$ac_header_preproc" >&6; } 1750 1751# So? What about this header? 1752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1753 yes:no: ) 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1755$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1757$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1758 ;; 1759 no:yes:* ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1761$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1763$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1765$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1767$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1770( $as_echo "## ------------------------------------ ## 1771## Report this to lame-dev@lists.sf.net ## 1772## ------------------------------------ ##" 1773 ) | sed "s/^/$as_me: WARNING: /" >&2 1774 ;; 1775esac 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777$as_echo_n "checking for $2... " >&6; } 1778if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780else 1781 eval "$3=\$ac_header_compiler" 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786fi 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1789} # ac_fn_c_check_header_mongrel 1790 1791# ac_fn_c_try_run LINENO 1792# ---------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1794# that executables *can* be run. 1795ac_fn_c_try_run () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>&5 1806 ac_status=$? 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1809 { { case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812esac 1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814$as_echo "$ac_try_echo"; } >&5 1815 (eval "$ac_try") 2>&5 1816 ac_status=$? 1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1818 test $ac_status = 0; }; }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: program exited with status $ac_status" >&5 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=$ac_status 1826fi 1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 as_fn_set_status $ac_retval 1830 1831} # ac_fn_c_try_run 1832 1833# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1834# ------------------------------------------------------- 1835# Tests whether HEADER exists and can be compiled using the include files in 1836# INCLUDES, setting the cache variable VAR accordingly. 1837ac_fn_c_check_header_compile () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846/* end confdefs.h. */ 1847$4 1848#include <$2> 1849_ACEOF 1850if ac_fn_c_try_compile "$LINENO"; then : 1851 eval "$3=yes" 1852else 1853 eval "$3=no" 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_header_compile 1863 1864# ac_fn_c_try_link LINENO 1865# ----------------------- 1866# Try to link conftest.$ac_ext, and return whether this succeeded. 1867ac_fn_c_try_link () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 rm -f conftest.$ac_objext conftest$ac_exeext 1871 if { { ac_try="$ac_link" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877$as_echo "$ac_try_echo"; } >&5 1878 (eval "$ac_link") 2>conftest.err 1879 ac_status=$? 1880 if test -s conftest.err; then 1881 grep -v '^ *+' conftest.err >conftest.er1 1882 cat conftest.er1 >&5 1883 mv -f conftest.er1 conftest.err 1884 fi 1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } && { 1887 test -z "$ac_c_werror_flag" || 1888 test ! -s conftest.err 1889 } && test -s conftest$ac_exeext && { 1890 test "$cross_compiling" = yes || 1891 test -x conftest$ac_exeext 1892 }; then : 1893 ac_retval=0 1894else 1895 $as_echo "$as_me: failed program was:" >&5 1896sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=1 1899fi 1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1902 # interfere with the next link command; also delete a directory that is 1903 # left behind by Apple's compiler. We do this before executing the actions. 1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 as_fn_set_status $ac_retval 1907 1908} # ac_fn_c_try_link 1909 1910# ac_fn_c_check_func LINENO FUNC VAR 1911# ---------------------------------- 1912# Tests whether FUNC exists, setting the cache variable VAR accordingly 1913ac_fn_c_check_func () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1917$as_echo_n "checking for $2... " >&6; } 1918if eval \${$3+:} false; then : 1919 $as_echo_n "(cached) " >&6 1920else 1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1922/* end confdefs.h. */ 1923/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1924 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1925#define $2 innocuous_$2 1926 1927/* System header to define __stub macros and hopefully few prototypes, 1928 which can conflict with char $2 (); below. 1929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1930 <limits.h> exists even on freestanding compilers. */ 1931 1932#ifdef __STDC__ 1933# include <limits.h> 1934#else 1935# include <assert.h> 1936#endif 1937 1938#undef $2 1939 1940/* Override any GCC internal prototype to avoid an error. 1941 Use char because int might match the return type of a GCC 1942 builtin and then its argument prototype would still apply. */ 1943#ifdef __cplusplus 1944extern "C" 1945#endif 1946char $2 (); 1947/* The GNU C library defines this for functions which it implements 1948 to always fail with ENOSYS. Some functions are actually named 1949 something starting with __ and the normal name is an alias. */ 1950#if defined __stub_$2 || defined __stub___$2 1951choke me 1952#endif 1953 1954int 1955main () 1956{ 1957return $2 (); 1958 ; 1959 return 0; 1960} 1961_ACEOF 1962if ac_fn_c_try_link "$LINENO"; then : 1963 eval "$3=yes" 1964else 1965 eval "$3=no" 1966fi 1967rm -f core conftest.err conftest.$ac_objext \ 1968 conftest$ac_exeext conftest.$ac_ext 1969fi 1970eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972$as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_func 1976 1977# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1978# -------------------------------------------- 1979# Tries to find the compile-time value of EXPR in a program that includes 1980# INCLUDES, setting VAR accordingly. Returns whether the value could be 1981# computed 1982ac_fn_c_compute_int () 1983{ 1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1985 if test "$cross_compiling" = yes; then 1986 # Depending upon the size, compute the lo and hi bounds. 1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990int 1991main () 1992{ 1993static int test_array [1 - 2 * !(($2) >= 0)]; 1994test_array [0] = 0; 1995return test_array [0]; 1996 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_compile "$LINENO"; then : 2002 ac_lo=0 ac_mid=0 2003 while :; do 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main () 2009{ 2010static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2011test_array [0] = 0; 2012return test_array [0]; 2013 2014 ; 2015 return 0; 2016} 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO"; then : 2019 ac_hi=$ac_mid; break 2020else 2021 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2022 if test $ac_lo -le $ac_mid; then 2023 ac_lo= ac_hi= 2024 break 2025 fi 2026 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2027fi 2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2029 done 2030else 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033$4 2034int 2035main () 2036{ 2037static int test_array [1 - 2 * !(($2) < 0)]; 2038test_array [0] = 0; 2039return test_array [0]; 2040 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 ac_hi=-1 ac_mid=-1 2047 while :; do 2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2049/* end confdefs.h. */ 2050$4 2051int 2052main () 2053{ 2054static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2055test_array [0] = 0; 2056return test_array [0]; 2057 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_compile "$LINENO"; then : 2063 ac_lo=$ac_mid; break 2064else 2065 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2066 if test $ac_mid -le $ac_hi; then 2067 ac_lo= ac_hi= 2068 break 2069 fi 2070 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2071fi 2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2073 done 2074else 2075 ac_lo= ac_hi= 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080# Binary search between lo and hi bounds. 2081while test "x$ac_lo" != "x$ac_hi"; do 2082 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085$4 2086int 2087main () 2088{ 2089static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2090test_array [0] = 0; 2091return test_array [0]; 2092 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_compile "$LINENO"; then : 2098 ac_hi=$ac_mid 2099else 2100 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2101fi 2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103done 2104case $ac_lo in #(( 2105?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2106'') ac_retval=1 ;; 2107esac 2108 else 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112static long int longval () { return $2; } 2113static unsigned long int ulongval () { return $2; } 2114#include <stdio.h> 2115#include <stdlib.h> 2116int 2117main () 2118{ 2119 2120 FILE *f = fopen ("conftest.val", "w"); 2121 if (! f) 2122 return 1; 2123 if (($2) < 0) 2124 { 2125 long int i = longval (); 2126 if (i != ($2)) 2127 return 1; 2128 fprintf (f, "%ld", i); 2129 } 2130 else 2131 { 2132 unsigned long int i = ulongval (); 2133 if (i != ($2)) 2134 return 1; 2135 fprintf (f, "%lu", i); 2136 } 2137 /* Do not output a trailing newline, as this causes \r\n confusion 2138 on some platforms. */ 2139 return ferror (f) || fclose (f) != 0; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_run "$LINENO"; then : 2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2147else 2148 ac_retval=1 2149fi 2150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2151 conftest.$ac_objext conftest.beam conftest.$ac_ext 2152rm -f conftest.val 2153 2154 fi 2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2156 as_fn_set_status $ac_retval 2157 2158} # ac_fn_c_compute_int 2159 2160# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2161# ------------------------------------------- 2162# Tests whether TYPE exists after having included INCLUDES, setting cache 2163# variable VAR accordingly. 2164ac_fn_c_check_type () 2165{ 2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2168$as_echo_n "checking for $2... " >&6; } 2169if eval \${$3+:} false; then : 2170 $as_echo_n "(cached) " >&6 2171else 2172 eval "$3=no" 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174/* end confdefs.h. */ 2175$4 2176int 2177main () 2178{ 2179if (sizeof ($2)) 2180 return 0; 2181 ; 2182 return 0; 2183} 2184_ACEOF 2185if ac_fn_c_try_compile "$LINENO"; then : 2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2187/* end confdefs.h. */ 2188$4 2189int 2190main () 2191{ 2192if (sizeof (($2))) 2193 return 0; 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_compile "$LINENO"; then : 2199 2200else 2201 eval "$3=yes" 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204fi 2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2206fi 2207eval ac_res=\$$3 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2209$as_echo "$ac_res" >&6; } 2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2211 2212} # ac_fn_c_check_type 2213cat >config.log <<_ACEOF 2214This file contains any messages produced by compilers while 2215running configure, to aid debugging if configure makes a mistake. 2216 2217It was created by lame $as_me 3.100, which was 2218generated by GNU Autoconf 2.69. Invocation command line was 2219 2220 $ $0 $@ 2221 2222_ACEOF 2223exec 5>>config.log 2224{ 2225cat <<_ASUNAME 2226## --------- ## 2227## Platform. ## 2228## --------- ## 2229 2230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2231uname -m = `(uname -m) 2>/dev/null || echo unknown` 2232uname -r = `(uname -r) 2>/dev/null || echo unknown` 2233uname -s = `(uname -s) 2>/dev/null || echo unknown` 2234uname -v = `(uname -v) 2>/dev/null || echo unknown` 2235 2236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2238 2239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2242/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2246 2247_ASUNAME 2248 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 $as_echo "PATH: $as_dir" 2255 done 2256IFS=$as_save_IFS 2257 2258} >&5 2259 2260cat >&5 <<_ACEOF 2261 2262 2263## ----------- ## 2264## Core tests. ## 2265## ----------- ## 2266 2267_ACEOF 2268 2269 2270# Keep a trace of the command line. 2271# Strip out --no-create and --no-recursion so they do not pile up. 2272# Strip out --silent because we don't want to record it for future runs. 2273# Also quote any args containing shell meta-characters. 2274# Make two passes to allow for proper duplicate-argument suppression. 2275ac_configure_args= 2276ac_configure_args0= 2277ac_configure_args1= 2278ac_must_keep_next=false 2279for ac_pass in 1 2 2280do 2281 for ac_arg 2282 do 2283 case $ac_arg in 2284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2286 | -silent | --silent | --silen | --sile | --sil) 2287 continue ;; 2288 *\'*) 2289 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2290 esac 2291 case $ac_pass in 2292 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2293 2) 2294 as_fn_append ac_configure_args1 " '$ac_arg'" 2295 if test $ac_must_keep_next = true; then 2296 ac_must_keep_next=false # Got value, back to normal. 2297 else 2298 case $ac_arg in 2299 *=* | --config-cache | -C | -disable-* | --disable-* \ 2300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2302 | -with-* | --with-* | -without-* | --without-* | --x) 2303 case "$ac_configure_args0 " in 2304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2305 esac 2306 ;; 2307 -* ) ac_must_keep_next=true ;; 2308 esac 2309 fi 2310 as_fn_append ac_configure_args " '$ac_arg'" 2311 ;; 2312 esac 2313 done 2314done 2315{ ac_configure_args0=; unset ac_configure_args0;} 2316{ ac_configure_args1=; unset ac_configure_args1;} 2317 2318# When interrupted or exit'd, cleanup temporary files, and complete 2319# config.log. We remove comments because anyway the quotes in there 2320# would cause problems or look ugly. 2321# WARNING: Use '\'' to represent an apostrophe within the trap. 2322# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2323trap 'exit_status=$? 2324 # Save into config.log some information that might help in debugging. 2325 { 2326 echo 2327 2328 $as_echo "## ---------------- ## 2329## Cache variables. ## 2330## ---------------- ##" 2331 echo 2332 # The following way of writing the cache mishandles newlines in values, 2333( 2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2335 eval ac_val=\$$ac_var 2336 case $ac_val in #( 2337 *${as_nl}*) 2338 case $ac_var in #( 2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2341 esac 2342 case $ac_var in #( 2343 _ | IFS | as_nl) ;; #( 2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2345 *) { eval $ac_var=; unset $ac_var;} ;; 2346 esac ;; 2347 esac 2348 done 2349 (set) 2>&1 | 2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2351 *${as_nl}ac_space=\ *) 2352 sed -n \ 2353 "s/'\''/'\''\\\\'\'''\''/g; 2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2355 ;; #( 2356 *) 2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2358 ;; 2359 esac | 2360 sort 2361) 2362 echo 2363 2364 $as_echo "## ----------------- ## 2365## Output variables. ## 2366## ----------------- ##" 2367 echo 2368 for ac_var in $ac_subst_vars 2369 do 2370 eval ac_val=\$$ac_var 2371 case $ac_val in 2372 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2373 esac 2374 $as_echo "$ac_var='\''$ac_val'\''" 2375 done | sort 2376 echo 2377 2378 if test -n "$ac_subst_files"; then 2379 $as_echo "## ------------------- ## 2380## File substitutions. ## 2381## ------------------- ##" 2382 echo 2383 for ac_var in $ac_subst_files 2384 do 2385 eval ac_val=\$$ac_var 2386 case $ac_val in 2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2388 esac 2389 $as_echo "$ac_var='\''$ac_val'\''" 2390 done | sort 2391 echo 2392 fi 2393 2394 if test -s confdefs.h; then 2395 $as_echo "## ----------- ## 2396## confdefs.h. ## 2397## ----------- ##" 2398 echo 2399 cat confdefs.h 2400 echo 2401 fi 2402 test "$ac_signal" != 0 && 2403 $as_echo "$as_me: caught signal $ac_signal" 2404 $as_echo "$as_me: exit $exit_status" 2405 } >&5 2406 rm -f core *.core core.conftest.* && 2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2408 exit $exit_status 2409' 0 2410for ac_signal in 1 2 13 15; do 2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2412done 2413ac_signal=0 2414 2415# confdefs.h avoids OS command line length limits that DEFS can exceed. 2416rm -f -r conftest* confdefs.h 2417 2418$as_echo "/* confdefs.h */" > confdefs.h 2419 2420# Predefined preprocessor variables. 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_NAME "$PACKAGE_NAME" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2428_ACEOF 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_VERSION "$PACKAGE_VERSION" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_STRING "$PACKAGE_STRING" 2436_ACEOF 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2440_ACEOF 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE_URL "$PACKAGE_URL" 2444_ACEOF 2445 2446 2447# Let the site file select an alternate cache file if it wants to. 2448# Prefer an explicitly selected file to automatically selected ones. 2449ac_site_file1=NONE 2450ac_site_file2=NONE 2451if test -n "$CONFIG_SITE"; then 2452 # We do not want a PATH search for config.site. 2453 case $CONFIG_SITE in #(( 2454 -*) ac_site_file1=./$CONFIG_SITE;; 2455 */*) ac_site_file1=$CONFIG_SITE;; 2456 *) ac_site_file1=./$CONFIG_SITE;; 2457 esac 2458elif test "x$prefix" != xNONE; then 2459 ac_site_file1=$prefix/share/config.site 2460 ac_site_file2=$prefix/etc/config.site 2461else 2462 ac_site_file1=$ac_default_prefix/share/config.site 2463 ac_site_file2=$ac_default_prefix/etc/config.site 2464fi 2465for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2466do 2467 test "x$ac_site_file" = xNONE && continue 2468 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2470$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2471 sed 's/^/| /' "$ac_site_file" >&5 2472 . "$ac_site_file" \ 2473 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2475as_fn_error $? "failed to load site script $ac_site_file 2476See \`config.log' for more details" "$LINENO" 5; } 2477 fi 2478done 2479 2480if test -r "$cache_file"; then 2481 # Some versions of bash will fail to source /dev/null (special files 2482 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2483 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2485$as_echo "$as_me: loading cache $cache_file" >&6;} 2486 case $cache_file in 2487 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2488 *) . "./$cache_file";; 2489 esac 2490 fi 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2493$as_echo "$as_me: creating cache $cache_file" >&6;} 2494 >$cache_file 2495fi 2496 2497# Check that the precious variables saved in the cache have kept the same 2498# value. 2499ac_cache_corrupted=false 2500for ac_var in $ac_precious_vars; do 2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2502 eval ac_new_set=\$ac_env_${ac_var}_set 2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2504 eval ac_new_val=\$ac_env_${ac_var}_value 2505 case $ac_old_set,$ac_new_set in 2506 set,) 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2508$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2509 ac_cache_corrupted=: ;; 2510 ,set) 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2512$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,);; 2515 *) 2516 if test "x$ac_old_val" != "x$ac_new_val"; then 2517 # differences in whitespace do not lead to failure. 2518 ac_old_val_w=`echo x $ac_old_val` 2519 ac_new_val_w=`echo x $ac_new_val` 2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2522$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2523 ac_cache_corrupted=: 2524 else 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2526$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2527 eval $ac_var=\$ac_old_val 2528 fi 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2530$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2532$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2533 fi;; 2534 esac 2535 # Pass precious variables to config.status. 2536 if test "$ac_new_set" = set; then 2537 case $ac_new_val in 2538 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2539 *) ac_arg=$ac_var=$ac_new_val ;; 2540 esac 2541 case " $ac_configure_args " in 2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2544 esac 2545 fi 2546done 2547if $ac_cache_corrupted; then 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2551$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2552 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2553fi 2554## -------------------- ## 2555## Main body of script. ## 2556## -------------------- ## 2557 2558ac_ext=c 2559ac_cpp='$CPP $CPPFLAGS' 2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2562ac_compiler_gnu=$ac_cv_c_compiler_gnu 2563 2564 2565 2566ac_ext=c 2567ac_cpp='$CPP $CPPFLAGS' 2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_c_compiler_gnu 2571 2572 2573ac_aux_dir= 2574for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2575 if test -f "$ac_dir/install-sh"; then 2576 ac_aux_dir=$ac_dir 2577 ac_install_sh="$ac_aux_dir/install-sh -c" 2578 break 2579 elif test -f "$ac_dir/install.sh"; then 2580 ac_aux_dir=$ac_dir 2581 ac_install_sh="$ac_aux_dir/install.sh -c" 2582 break 2583 elif test -f "$ac_dir/shtool"; then 2584 ac_aux_dir=$ac_dir 2585 ac_install_sh="$ac_aux_dir/shtool install -c" 2586 break 2587 fi 2588done 2589if test -z "$ac_aux_dir"; then 2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2591fi 2592 2593# These three variables are undocumented and unsupported, 2594# and are intended to be withdrawn in a future Autoconf release. 2595# They can cause serious problems if a builder's source tree is in a directory 2596# whose full name contains unusual characters. 2597ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2598ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2599ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2600 2601 2602# Make sure we can run config.sub. 2603$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2605 2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2607$as_echo_n "checking build system type... " >&6; } 2608if ${ac_cv_build+:} false; then : 2609 $as_echo_n "(cached) " >&6 2610else 2611 ac_build_alias=$build_alias 2612test "x$ac_build_alias" = x && 2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2614test "x$ac_build_alias" = x && 2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2616ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2618 2619fi 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2621$as_echo "$ac_cv_build" >&6; } 2622case $ac_cv_build in 2623*-*-*) ;; 2624*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2625esac 2626build=$ac_cv_build 2627ac_save_IFS=$IFS; IFS='-' 2628set x $ac_cv_build 2629shift 2630build_cpu=$1 2631build_vendor=$2 2632shift; shift 2633# Remember, the first character of IFS is used to create $*, 2634# except with old shells: 2635build_os=$* 2636IFS=$ac_save_IFS 2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2638 2639 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2641$as_echo_n "checking host system type... " >&6; } 2642if ${ac_cv_host+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test "x$host_alias" = x; then 2646 ac_cv_host=$ac_cv_build 2647else 2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2650fi 2651 2652fi 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2654$as_echo "$ac_cv_host" >&6; } 2655case $ac_cv_host in 2656*-*-*) ;; 2657*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2658esac 2659host=$ac_cv_host 2660ac_save_IFS=$IFS; IFS='-' 2661set x $ac_cv_host 2662shift 2663host_cpu=$1 2664host_vendor=$2 2665shift; shift 2666# Remember, the first character of IFS is used to create $*, 2667# except with old shells: 2668host_os=$* 2669IFS=$ac_save_IFS 2670case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2671 2672 2673 2674am__api_version='1.16' 2675 2676# Find a good install program. We prefer a C program (faster), 2677# so one script is as good as another. But avoid the broken or 2678# incompatible versions: 2679# SysV /etc/install, /usr/sbin/install 2680# SunOS /usr/etc/install 2681# IRIX /sbin/install 2682# AIX /bin/install 2683# AmigaOS /C/install, which installs bootblocks on floppy discs 2684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2685# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2687# OS/2's system install, which has a completely different semantic 2688# ./install, which can be erroneously created by make from ./install.sh. 2689# Reject install programs that cannot install multiple files. 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2691$as_echo_n "checking for a BSD-compatible install... " >&6; } 2692if test -z "$INSTALL"; then 2693if ${ac_cv_path_install+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 # Account for people who put trailing slashes in PATH elements. 2702case $as_dir/ in #(( 2703 ./ | .// | /[cC]/* | \ 2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2706 /usr/ucb/* ) ;; 2707 *) 2708 # OSF1 and SCO ODT 3.0 have their own names for install. 2709 # Don't use installbsd from OSF since it installs stuff as root 2710 # by default. 2711 for ac_prog in ginstall scoinst install; do 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2714 if test $ac_prog = install && 2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2716 # AIX install. It has an incompatible calling convention. 2717 : 2718 elif test $ac_prog = install && 2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2720 # program-specific install script used by HP pwplus--don't use. 2721 : 2722 else 2723 rm -rf conftest.one conftest.two conftest.dir 2724 echo one > conftest.one 2725 echo two > conftest.two 2726 mkdir conftest.dir 2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2728 test -s conftest.one && test -s conftest.two && 2729 test -s conftest.dir/conftest.one && 2730 test -s conftest.dir/conftest.two 2731 then 2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2733 break 3 2734 fi 2735 fi 2736 fi 2737 done 2738 done 2739 ;; 2740esac 2741 2742 done 2743IFS=$as_save_IFS 2744 2745rm -rf conftest.one conftest.two conftest.dir 2746 2747fi 2748 if test "${ac_cv_path_install+set}" = set; then 2749 INSTALL=$ac_cv_path_install 2750 else 2751 # As a last resort, use the slow shell script. Don't cache a 2752 # value for INSTALL within a source directory, because that will 2753 # break other packages using the cache if that directory is 2754 # removed, or if the value is a relative name. 2755 INSTALL=$ac_install_sh 2756 fi 2757fi 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2759$as_echo "$INSTALL" >&6; } 2760 2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2762# It thinks the first close brace ends the variable substitution. 2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2764 2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2766 2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2770$as_echo_n "checking whether build environment is sane... " >&6; } 2771# Reject unsafe characters in $srcdir or the absolute working directory 2772# name. Accept space and tab only in the latter. 2773am_lf=' 2774' 2775case `pwd` in 2776 *[\\\"\#\$\&\'\`$am_lf]*) 2777 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2778esac 2779case $srcdir in 2780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2781 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2782esac 2783 2784# Do 'set' in a subshell so we don't clobber the current shell's 2785# arguments. Must try -L first in case configure is actually a 2786# symlink; some systems play weird games with the mod time of symlinks 2787# (eg FreeBSD returns the mod time of the symlink's containing 2788# directory). 2789if ( 2790 am_has_slept=no 2791 for am_try in 1 2; do 2792 echo "timestamp, slept: $am_has_slept" > conftest.file 2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2794 if test "$*" = "X"; then 2795 # -L didn't work. 2796 set X `ls -t "$srcdir/configure" conftest.file` 2797 fi 2798 if test "$*" != "X $srcdir/configure conftest.file" \ 2799 && test "$*" != "X conftest.file $srcdir/configure"; then 2800 2801 # If neither matched, then we have a broken ls. This can happen 2802 # if, for instance, CONFIG_SHELL is bash and it inherits a 2803 # broken ls alias from the environment. This has actually 2804 # happened. Such a system could not be considered "sane". 2805 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2806 alias in your environment" "$LINENO" 5 2807 fi 2808 if test "$2" = conftest.file || test $am_try -eq 2; then 2809 break 2810 fi 2811 # Just in case. 2812 sleep 1 2813 am_has_slept=yes 2814 done 2815 test "$2" = conftest.file 2816 ) 2817then 2818 # Ok. 2819 : 2820else 2821 as_fn_error $? "newly created file is older than distributed files! 2822Check your system clock" "$LINENO" 5 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2825$as_echo "yes" >&6; } 2826# If we didn't sleep, we still need to ensure time stamps of config.status and 2827# generated files are strictly newer. 2828am_sleep_pid= 2829if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2830 ( sleep 1 ) & 2831 am_sleep_pid=$! 2832fi 2833 2834rm -f conftest.file 2835 2836test "$program_prefix" != NONE && 2837 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2838# Use a double $ so make ignores it. 2839test "$program_suffix" != NONE && 2840 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2841# Double any \ or $. 2842# By default was `s,x,x', remove it if useless. 2843ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2844program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2845 2846# Expand $ac_aux_dir to an absolute path. 2847am_aux_dir=`cd "$ac_aux_dir" && pwd` 2848 2849if test x"${MISSING+set}" != xset; then 2850 case $am_aux_dir in 2851 *\ * | *\ *) 2852 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2853 *) 2854 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2855 esac 2856fi 2857# Use eval to expand $SHELL 2858if eval "$MISSING --is-lightweight"; then 2859 am_missing_run="$MISSING " 2860else 2861 am_missing_run= 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2863$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2864fi 2865 2866if test x"${install_sh+set}" != xset; then 2867 case $am_aux_dir in 2868 *\ * | *\ *) 2869 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2870 *) 2871 install_sh="\${SHELL} $am_aux_dir/install-sh" 2872 esac 2873fi 2874 2875# Installed binaries are usually stripped using 'strip' when the user 2876# run "make install-strip". However 'strip' might not be the right 2877# tool to use in cross-compilation environments, therefore Automake 2878# will honor the 'STRIP' environment variable to overrule this program. 2879if test "$cross_compiling" != no; then 2880 if test -n "$ac_tool_prefix"; then 2881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2882set dummy ${ac_tool_prefix}strip; ac_word=$2 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884$as_echo_n "checking for $ac_word... " >&6; } 2885if ${ac_cv_prog_STRIP+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test -n "$STRIP"; then 2889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2890else 2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in $PATH 2893do 2894 IFS=$as_save_IFS 2895 test -z "$as_dir" && as_dir=. 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2898 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2900 break 2 2901 fi 2902done 2903 done 2904IFS=$as_save_IFS 2905 2906fi 2907fi 2908STRIP=$ac_cv_prog_STRIP 2909if test -n "$STRIP"; then 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2911$as_echo "$STRIP" >&6; } 2912else 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914$as_echo "no" >&6; } 2915fi 2916 2917 2918fi 2919if test -z "$ac_cv_prog_STRIP"; then 2920 ac_ct_STRIP=$STRIP 2921 # Extract the first word of "strip", so it can be a program name with args. 2922set dummy strip; ac_word=$2 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924$as_echo_n "checking for $ac_word... " >&6; } 2925if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2926 $as_echo_n "(cached) " >&6 2927else 2928 if test -n "$ac_ct_STRIP"; then 2929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2938 ac_cv_prog_ac_ct_STRIP="strip" 2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943 done 2944IFS=$as_save_IFS 2945 2946fi 2947fi 2948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2949if test -n "$ac_ct_STRIP"; then 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2951$as_echo "$ac_ct_STRIP" >&6; } 2952else 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954$as_echo "no" >&6; } 2955fi 2956 2957 if test "x$ac_ct_STRIP" = x; then 2958 STRIP=":" 2959 else 2960 case $cross_compiling:$ac_tool_warned in 2961yes:) 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2964ac_tool_warned=yes ;; 2965esac 2966 STRIP=$ac_ct_STRIP 2967 fi 2968else 2969 STRIP="$ac_cv_prog_STRIP" 2970fi 2971 2972fi 2973INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2974 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2976$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2977if test -z "$MKDIR_P"; then 2978 if ${ac_cv_path_mkdir+:} false; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_prog in mkdir gmkdir; do 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2989 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2990 'mkdir (GNU coreutils) '* | \ 2991 'mkdir (coreutils) '* | \ 2992 'mkdir (fileutils) '4.1*) 2993 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2994 break 3;; 2995 esac 2996 done 2997 done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002 3003 test -d ./--version && rmdir ./--version 3004 if test "${ac_cv_path_mkdir+set}" = set; then 3005 MKDIR_P="$ac_cv_path_mkdir -p" 3006 else 3007 # As a last resort, use the slow shell script. Don't cache a 3008 # value for MKDIR_P within a source directory, because that will 3009 # break other packages using the cache if that directory is 3010 # removed, or if the value is a relative name. 3011 MKDIR_P="$ac_install_sh -d" 3012 fi 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3015$as_echo "$MKDIR_P" >&6; } 3016 3017for ac_prog in gawk mawk nawk awk 3018do 3019 # Extract the first word of "$ac_prog", so it can be a program name with args. 3020set dummy $ac_prog; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if ${ac_cv_prog_AWK+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 if test -n "$AWK"; then 3027 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3028else 3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_AWK="$ac_prog" 3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046AWK=$ac_cv_prog_AWK 3047if test -n "$AWK"; then 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3049$as_echo "$AWK" >&6; } 3050else 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052$as_echo "no" >&6; } 3053fi 3054 3055 3056 test -n "$AWK" && break 3057done 3058 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3060$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3061set x ${MAKE-make} 3062ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3063if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 cat >conftest.make <<\_ACEOF 3067SHELL = /bin/sh 3068all: 3069 @echo '@@@%%%=$(MAKE)=@@@%%%' 3070_ACEOF 3071# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3072case `${MAKE-make} -f conftest.make 2>/dev/null` in 3073 *@@@%%%=?*=@@@%%%*) 3074 eval ac_cv_prog_make_${ac_make}_set=yes;; 3075 *) 3076 eval ac_cv_prog_make_${ac_make}_set=no;; 3077esac 3078rm -f conftest.make 3079fi 3080if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3082$as_echo "yes" >&6; } 3083 SET_MAKE= 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087 SET_MAKE="MAKE=${MAKE-make}" 3088fi 3089 3090rm -rf .tst 2>/dev/null 3091mkdir .tst 2>/dev/null 3092if test -d .tst; then 3093 am__leading_dot=. 3094else 3095 am__leading_dot=_ 3096fi 3097rmdir .tst 2>/dev/null 3098 3099# Check whether --enable-silent-rules was given. 3100if test "${enable_silent_rules+set}" = set; then : 3101 enableval=$enable_silent_rules; 3102fi 3103 3104case $enable_silent_rules in # ((( 3105 yes) AM_DEFAULT_VERBOSITY=0;; 3106 no) AM_DEFAULT_VERBOSITY=1;; 3107 *) AM_DEFAULT_VERBOSITY=1;; 3108esac 3109am_make=${MAKE-make} 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3111$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3112if ${am_cv_make_support_nested_variables+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if $as_echo 'TRUE=$(BAR$(V)) 3116BAR0=false 3117BAR1=true 3118V=1 3119am__doit: 3120 @$(TRUE) 3121.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3122 am_cv_make_support_nested_variables=yes 3123else 3124 am_cv_make_support_nested_variables=no 3125fi 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3128$as_echo "$am_cv_make_support_nested_variables" >&6; } 3129if test $am_cv_make_support_nested_variables = yes; then 3130 AM_V='$(V)' 3131 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3132else 3133 AM_V=$AM_DEFAULT_VERBOSITY 3134 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3135fi 3136AM_BACKSLASH='\' 3137 3138if test "`cd $srcdir && pwd`" != "`pwd`"; then 3139 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3140 # is not polluted with repeated "-I." 3141 am__isrc=' -I$(srcdir)' 3142 # test to see if srcdir already configured 3143 if test -f $srcdir/config.status; then 3144 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3145 fi 3146fi 3147 3148# test whether we have cygpath 3149if test -z "$CYGPATH_W"; then 3150 if (cygpath --version) >/dev/null 2>/dev/null; then 3151 CYGPATH_W='cygpath -w' 3152 else 3153 CYGPATH_W=echo 3154 fi 3155fi 3156 3157 3158# Define the identity of the package. 3159 PACKAGE='lame' 3160 VERSION='3.100' 3161 3162 3163cat >>confdefs.h <<_ACEOF 3164#define PACKAGE "$PACKAGE" 3165_ACEOF 3166 3167 3168cat >>confdefs.h <<_ACEOF 3169#define VERSION "$VERSION" 3170_ACEOF 3171 3172# Some tools Automake needs. 3173 3174ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3175 3176 3177AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3178 3179 3180AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3181 3182 3183AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3184 3185 3186MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3187 3188# For better backward compatibility. To be removed once Automake 1.9.x 3189# dies out for good. For more background, see: 3190# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3191# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3192mkdir_p='$(MKDIR_P)' 3193 3194# We need awk for the "check" target (and possibly the TAP driver). The 3195# system "awk" is bad on some platforms. 3196# Always define AMTAR for backward compatibility. Yes, it's still used 3197# in the wild :-( We should find a proper way to deprecate it ... 3198AMTAR='$${TAR-tar}' 3199 3200 3201# We'll loop over all known methods to create a tar archive until one works. 3202_am_tools='gnutar pax cpio none' 3203 3204am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3205 3206 3207 3208 3209 3210 3211# POSIX will say in a future version that running "rm -f" with no argument 3212# is OK; and we want to be able to make that assumption in our Makefile 3213# recipes. So use an aggressive probe to check that the usage we want is 3214# actually supported "in the wild" to an acceptable degree. 3215# See automake bug#10828. 3216# To make any issue more visible, cause the running configure to be aborted 3217# by default if the 'rm' program in use doesn't match our expectations; the 3218# user can still override this though. 3219if rm -f && rm -fr && rm -rf; then : OK; else 3220 cat >&2 <<'END' 3221Oops! 3222 3223Your 'rm' program seems unable to run without file operands specified 3224on the command line, even when the '-f' option is present. This is contrary 3225to the behaviour of most rm programs out there, and not conforming with 3226the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3227 3228Please tell bug-automake@gnu.org about your system, including the value 3229of your $PATH and any error possibly output before this message. This 3230can help us improve future automake versions. 3231 3232END 3233 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3234 echo 'Configuration will proceed anyway, since you have set the' >&2 3235 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3236 echo >&2 3237 else 3238 cat >&2 <<'END' 3239Aborting the configuration process, to ensure you take notice of the issue. 3240 3241You can download and install GNU coreutils to get an 'rm' implementation 3242that behaves properly: <https://www.gnu.org/software/coreutils/>. 3243 3244If you want to complete the configuration process using your problematic 3245'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3246to "yes", and re-run configure. 3247 3248END 3249 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3250 fi 3251fi 3252 3253ac_config_headers="$ac_config_headers config.h" 3254 3255 3256 3257 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3259$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3260 # Check whether --enable-maintainer-mode was given. 3261if test "${enable_maintainer_mode+set}" = set; then : 3262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3263else 3264 USE_MAINTAINER_MODE=no 3265fi 3266 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3268$as_echo "$USE_MAINTAINER_MODE" >&6; } 3269 if test $USE_MAINTAINER_MODE = yes; then 3270 MAINTAINER_MODE_TRUE= 3271 MAINTAINER_MODE_FALSE='#' 3272else 3273 MAINTAINER_MODE_TRUE='#' 3274 MAINTAINER_MODE_FALSE= 3275fi 3276 3277 MAINT=$MAINTAINER_MODE_TRUE 3278 3279 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3281$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3282cat > confinc.mk << 'END' 3283am__doit: 3284 @echo this is the am__doit target >confinc.out 3285.PHONY: am__doit 3286END 3287am__include="#" 3288am__quote= 3289# BSD make does it like this. 3290echo '.include "confinc.mk" # ignored' > confmf.BSD 3291# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3292echo 'include confinc.mk # ignored' > confmf.GNU 3293_am_result=no 3294for s in GNU BSD; do 3295 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3296 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } 3300 case $?:`cat confinc.out 2>/dev/null` in #( 3301 '0:this is the am__doit target') : 3302 case $s in #( 3303 BSD) : 3304 am__include='.include' am__quote='"' ;; #( 3305 *) : 3306 am__include='include' am__quote='' ;; 3307esac ;; #( 3308 *) : 3309 ;; 3310esac 3311 if test "$am__include" != "#"; then 3312 _am_result="yes ($s style)" 3313 break 3314 fi 3315done 3316rm -f confinc.* confmf.* 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3318$as_echo "${_am_result}" >&6; } 3319 3320 3321 3322 3323 3324 3325 3326 3327if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3328 if test -n "$ac_tool_prefix"; then 3329 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3330set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332$as_echo_n "checking for $ac_word... " >&6; } 3333if ${ac_cv_path_PKG_CONFIG+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 case $PKG_CONFIG in 3337 [\\/]* | ?:[\\/]*) 3338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3339 ;; 3340 *) 3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342for as_dir in $PATH 3343do 3344 IFS=$as_save_IFS 3345 test -z "$as_dir" && as_dir=. 3346 for ac_exec_ext in '' $ac_executable_extensions; do 3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3350 break 2 3351 fi 3352done 3353 done 3354IFS=$as_save_IFS 3355 3356 ;; 3357esac 3358fi 3359PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3360if test -n "$PKG_CONFIG"; then 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3362$as_echo "$PKG_CONFIG" >&6; } 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3365$as_echo "no" >&6; } 3366fi 3367 3368 3369fi 3370if test -z "$ac_cv_path_PKG_CONFIG"; then 3371 ac_pt_PKG_CONFIG=$PKG_CONFIG 3372 # Extract the first word of "pkg-config", so it can be a program name with args. 3373set dummy pkg-config; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 case $ac_pt_PKG_CONFIG in 3380 [\\/]* | ?:[\\/]*) 3381 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3382 ;; 3383 *) 3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385for as_dir in $PATH 3386do 3387 IFS=$as_save_IFS 3388 test -z "$as_dir" && as_dir=. 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3391 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3393 break 2 3394 fi 3395done 3396 done 3397IFS=$as_save_IFS 3398 3399 ;; 3400esac 3401fi 3402ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3403if test -n "$ac_pt_PKG_CONFIG"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3405$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 if test "x$ac_pt_PKG_CONFIG" = x; then 3412 PKG_CONFIG="" 3413 else 3414 case $cross_compiling:$ac_tool_warned in 3415yes:) 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3418ac_tool_warned=yes ;; 3419esac 3420 PKG_CONFIG=$ac_pt_PKG_CONFIG 3421 fi 3422else 3423 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3424fi 3425 3426fi 3427if test -n "$PKG_CONFIG"; then 3428 _pkg_min_version=0.9.0 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3430$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3431 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3433$as_echo "yes" >&6; } 3434 else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437 PKG_CONFIG="" 3438 fi 3439fi 3440 3441DEPDIR="${am__leading_dot}deps" 3442 3443ac_config_commands="$ac_config_commands depfiles" 3444 3445# Check whether --enable-dependency-tracking was given. 3446if test "${enable_dependency_tracking+set}" = set; then : 3447 enableval=$enable_dependency_tracking; 3448fi 3449 3450if test "x$enable_dependency_tracking" != xno; then 3451 am_depcomp="$ac_aux_dir/depcomp" 3452 AMDEPBACKSLASH='\' 3453 am__nodep='_no' 3454fi 3455 if test "x$enable_dependency_tracking" != xno; then 3456 AMDEP_TRUE= 3457 AMDEP_FALSE='#' 3458else 3459 AMDEP_TRUE='#' 3460 AMDEP_FALSE= 3461fi 3462 3463 3464ac_ext=c 3465ac_cpp='$CPP $CPPFLAGS' 3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3468ac_compiler_gnu=$ac_cv_c_compiler_gnu 3469if test -n "$ac_tool_prefix"; then 3470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3471set dummy ${ac_tool_prefix}gcc; ac_word=$2 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3473$as_echo_n "checking for $ac_word... " >&6; } 3474if ${ac_cv_prog_CC+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 if test -n "$CC"; then 3478 ac_cv_prog_CC="$CC" # Let the user override the test. 3479else 3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3481for as_dir in $PATH 3482do 3483 IFS=$as_save_IFS 3484 test -z "$as_dir" && as_dir=. 3485 for ac_exec_ext in '' $ac_executable_extensions; do 3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3487 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495fi 3496fi 3497CC=$ac_cv_prog_CC 3498if test -n "$CC"; then 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3500$as_echo "$CC" >&6; } 3501else 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3503$as_echo "no" >&6; } 3504fi 3505 3506 3507fi 3508if test -z "$ac_cv_prog_CC"; then 3509 ac_ct_CC=$CC 3510 # Extract the first word of "gcc", so it can be a program name with args. 3511set dummy gcc; ac_word=$2 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3513$as_echo_n "checking for $ac_word... " >&6; } 3514if ${ac_cv_prog_ac_ct_CC+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 if test -n "$ac_ct_CC"; then 3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 for ac_exec_ext in '' $ac_executable_extensions; do 3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3527 ac_cv_prog_ac_ct_CC="gcc" 3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3529 break 2 3530 fi 3531done 3532 done 3533IFS=$as_save_IFS 3534 3535fi 3536fi 3537ac_ct_CC=$ac_cv_prog_ac_ct_CC 3538if test -n "$ac_ct_CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3540$as_echo "$ac_ct_CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 if test "x$ac_ct_CC" = x; then 3547 CC="" 3548 else 3549 case $cross_compiling:$ac_tool_warned in 3550yes:) 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3553ac_tool_warned=yes ;; 3554esac 3555 CC=$ac_ct_CC 3556 fi 3557else 3558 CC="$ac_cv_prog_CC" 3559fi 3560 3561if test -z "$CC"; then 3562 if test -n "$ac_tool_prefix"; then 3563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3564set dummy ${ac_tool_prefix}cc; ac_word=$2 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3566$as_echo_n "checking for $ac_word... " >&6; } 3567if ${ac_cv_prog_CC+:} false; then : 3568 $as_echo_n "(cached) " >&6 3569else 3570 if test -n "$CC"; then 3571 ac_cv_prog_CC="$CC" # Let the user override the test. 3572else 3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3574for as_dir in $PATH 3575do 3576 IFS=$as_save_IFS 3577 test -z "$as_dir" && as_dir=. 3578 for ac_exec_ext in '' $ac_executable_extensions; do 3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3580 ac_cv_prog_CC="${ac_tool_prefix}cc" 3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3582 break 2 3583 fi 3584done 3585 done 3586IFS=$as_save_IFS 3587 3588fi 3589fi 3590CC=$ac_cv_prog_CC 3591if test -n "$CC"; then 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593$as_echo "$CC" >&6; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597fi 3598 3599 3600 fi 3601fi 3602if test -z "$CC"; then 3603 # Extract the first word of "cc", so it can be a program name with args. 3604set dummy cc; ac_word=$2 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606$as_echo_n "checking for $ac_word... " >&6; } 3607if ${ac_cv_prog_CC+:} false; then : 3608 $as_echo_n "(cached) " >&6 3609else 3610 if test -n "$CC"; then 3611 ac_cv_prog_CC="$CC" # Let the user override the test. 3612else 3613 ac_prog_rejected=no 3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3622 ac_prog_rejected=yes 3623 continue 3624 fi 3625 ac_cv_prog_CC="cc" 3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3627 break 2 3628 fi 3629done 3630 done 3631IFS=$as_save_IFS 3632 3633if test $ac_prog_rejected = yes; then 3634 # We found a bogon in the path, so make sure we never use it. 3635 set dummy $ac_cv_prog_CC 3636 shift 3637 if test $# != 0; then 3638 # We chose a different compiler from the bogus one. 3639 # However, it has the same basename, so the bogon will be chosen 3640 # first if we set CC to just the basename; use the full file name. 3641 shift 3642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3643 fi 3644fi 3645fi 3646fi 3647CC=$ac_cv_prog_CC 3648if test -n "$CC"; then 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3650$as_echo "$CC" >&6; } 3651else 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653$as_echo "no" >&6; } 3654fi 3655 3656 3657fi 3658if test -z "$CC"; then 3659 if test -n "$ac_tool_prefix"; then 3660 for ac_prog in cl.exe 3661 do 3662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3663set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3665$as_echo_n "checking for $ac_word... " >&6; } 3666if ${ac_cv_prog_CC+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 if test -n "$CC"; then 3670 ac_cv_prog_CC="$CC" # Let the user override the test. 3671else 3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3673for as_dir in $PATH 3674do 3675 IFS=$as_save_IFS 3676 test -z "$as_dir" && as_dir=. 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3681 break 2 3682 fi 3683done 3684 done 3685IFS=$as_save_IFS 3686 3687fi 3688fi 3689CC=$ac_cv_prog_CC 3690if test -n "$CC"; then 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3692$as_echo "$CC" >&6; } 3693else 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3695$as_echo "no" >&6; } 3696fi 3697 3698 3699 test -n "$CC" && break 3700 done 3701fi 3702if test -z "$CC"; then 3703 ac_ct_CC=$CC 3704 for ac_prog in cl.exe 3705do 3706 # Extract the first word of "$ac_prog", so it can be a program name with args. 3707set dummy $ac_prog; ac_word=$2 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3709$as_echo_n "checking for $ac_word... " >&6; } 3710if ${ac_cv_prog_ac_ct_CC+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 if test -n "$ac_ct_CC"; then 3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3715else 3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717for as_dir in $PATH 3718do 3719 IFS=$as_save_IFS 3720 test -z "$as_dir" && as_dir=. 3721 for ac_exec_ext in '' $ac_executable_extensions; do 3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3723 ac_cv_prog_ac_ct_CC="$ac_prog" 3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3725 break 2 3726 fi 3727done 3728 done 3729IFS=$as_save_IFS 3730 3731fi 3732fi 3733ac_ct_CC=$ac_cv_prog_ac_ct_CC 3734if test -n "$ac_ct_CC"; then 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3736$as_echo "$ac_ct_CC" >&6; } 3737else 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3739$as_echo "no" >&6; } 3740fi 3741 3742 3743 test -n "$ac_ct_CC" && break 3744done 3745 3746 if test "x$ac_ct_CC" = x; then 3747 CC="" 3748 else 3749 case $cross_compiling:$ac_tool_warned in 3750yes:) 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3753ac_tool_warned=yes ;; 3754esac 3755 CC=$ac_ct_CC 3756 fi 3757fi 3758 3759fi 3760 3761 3762test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3764as_fn_error $? "no acceptable C compiler found in \$PATH 3765See \`config.log' for more details" "$LINENO" 5; } 3766 3767# Provide some information about the compiler. 3768$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3769set X $ac_compile 3770ac_compiler=$2 3771for ac_option in --version -v -V -qversion; do 3772 { { ac_try="$ac_compiler $ac_option >&5" 3773case "(($ac_try" in 3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3775 *) ac_try_echo=$ac_try;; 3776esac 3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3778$as_echo "$ac_try_echo"; } >&5 3779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3780 ac_status=$? 3781 if test -s conftest.err; then 3782 sed '10a\ 3783... rest of stderr output deleted ... 3784 10q' conftest.err >conftest.er1 3785 cat conftest.er1 >&5 3786 fi 3787 rm -f conftest.er1 conftest.err 3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3789 test $ac_status = 0; } 3790done 3791 3792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793/* end confdefs.h. */ 3794 3795int 3796main () 3797{ 3798 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803ac_clean_files_save=$ac_clean_files 3804ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3805# Try to create an executable without -o first, disregard a.out. 3806# It will help us diagnose broken compilers, and finding out an intuition 3807# of exeext. 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3809$as_echo_n "checking whether the C compiler works... " >&6; } 3810ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3811 3812# The possible output files: 3813ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3814 3815ac_rmfiles= 3816for ac_file in $ac_files 3817do 3818 case $ac_file in 3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3820 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3821 esac 3822done 3823rm -f $ac_rmfiles 3824 3825if { { ac_try="$ac_link_default" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831$as_echo "$ac_try_echo"; } >&5 3832 (eval "$ac_link_default") 2>&5 3833 ac_status=$? 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; }; then : 3836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3838# in a Makefile. We should not override ac_cv_exeext if it was cached, 3839# so that the user can short-circuit this test for compilers unknown to 3840# Autoconf. 3841for ac_file in $ac_files '' 3842do 3843 test -f "$ac_file" || continue 3844 case $ac_file in 3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3846 ;; 3847 [ab].out ) 3848 # We found the default executable, but exeext='' is most 3849 # certainly right. 3850 break;; 3851 *.* ) 3852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3853 then :; else 3854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3855 fi 3856 # We set ac_cv_exeext here because the later test for it is not 3857 # safe: cross compilers may not add the suffix if given an `-o' 3858 # argument, so we may need to know it at that point already. 3859 # Even if this section looks crufty: it has the advantage of 3860 # actually working. 3861 break;; 3862 * ) 3863 break;; 3864 esac 3865done 3866test "$ac_cv_exeext" = no && ac_cv_exeext= 3867 3868else 3869 ac_file='' 3870fi 3871if test -z "$ac_file"; then : 3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3873$as_echo "no" >&6; } 3874$as_echo "$as_me: failed program was:" >&5 3875sed 's/^/| /' conftest.$ac_ext >&5 3876 3877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3879as_fn_error 77 "C compiler cannot create executables 3880See \`config.log' for more details" "$LINENO" 5; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3883$as_echo "yes" >&6; } 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3886$as_echo_n "checking for C compiler default output file name... " >&6; } 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3888$as_echo "$ac_file" >&6; } 3889ac_exeext=$ac_cv_exeext 3890 3891rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3892ac_clean_files=$ac_clean_files_save 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3894$as_echo_n "checking for suffix of executables... " >&6; } 3895if { { ac_try="$ac_link" 3896case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899esac 3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3901$as_echo "$ac_try_echo"; } >&5 3902 (eval "$ac_link") 2>&5 3903 ac_status=$? 3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; }; then : 3906 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3908# work properly (i.e., refer to `conftest.exe'), while it won't with 3909# `rm'. 3910for ac_file in conftest.exe conftest conftest.*; do 3911 test -f "$ac_file" || continue 3912 case $ac_file in 3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3915 break;; 3916 * ) break;; 3917 esac 3918done 3919else 3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3922as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3923See \`config.log' for more details" "$LINENO" 5; } 3924fi 3925rm -f conftest conftest$ac_cv_exeext 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3927$as_echo "$ac_cv_exeext" >&6; } 3928 3929rm -f conftest.$ac_ext 3930EXEEXT=$ac_cv_exeext 3931ac_exeext=$EXEEXT 3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934#include <stdio.h> 3935int 3936main () 3937{ 3938FILE *f = fopen ("conftest.out", "w"); 3939 return ferror (f) || fclose (f) != 0; 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945ac_clean_files="$ac_clean_files conftest.out" 3946# Check that the compiler produces executables we can run. If not, either 3947# the compiler is broken, or we cross compile. 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3949$as_echo_n "checking whether we are cross compiling... " >&6; } 3950if test "$cross_compiling" != yes; then 3951 { { ac_try="$ac_link" 3952case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3957$as_echo "$ac_try_echo"; } >&5 3958 (eval "$ac_link") 2>&5 3959 ac_status=$? 3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; } 3962 if { ac_try='./conftest$ac_cv_exeext' 3963 { { case "(($ac_try" in 3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3965 *) ac_try_echo=$ac_try;; 3966esac 3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3968$as_echo "$ac_try_echo"; } >&5 3969 (eval "$ac_try") 2>&5 3970 ac_status=$? 3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3972 test $ac_status = 0; }; }; then 3973 cross_compiling=no 3974 else 3975 if test "$cross_compiling" = maybe; then 3976 cross_compiling=yes 3977 else 3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3980as_fn_error $? "cannot run C compiled programs. 3981If you meant to cross compile, use \`--host'. 3982See \`config.log' for more details" "$LINENO" 5; } 3983 fi 3984 fi 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3987$as_echo "$cross_compiling" >&6; } 3988 3989rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3990ac_clean_files=$ac_clean_files_save 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3992$as_echo_n "checking for suffix of object files... " >&6; } 3993if ${ac_cv_objext+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995else 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998 3999int 4000main () 4001{ 4002 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007rm -f conftest.o conftest.obj 4008if { { ac_try="$ac_compile" 4009case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014$as_echo "$ac_try_echo"; } >&5 4015 (eval "$ac_compile") 2>&5 4016 ac_status=$? 4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; }; then : 4019 for ac_file in conftest.o conftest.obj conftest.*; do 4020 test -f "$ac_file" || continue; 4021 case $ac_file in 4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4024 break;; 4025 esac 4026done 4027else 4028 $as_echo "$as_me: failed program was:" >&5 4029sed 's/^/| /' conftest.$ac_ext >&5 4030 4031{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4033as_fn_error $? "cannot compute suffix of object files: cannot compile 4034See \`config.log' for more details" "$LINENO" 5; } 4035fi 4036rm -f conftest.$ac_cv_objext conftest.$ac_ext 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4039$as_echo "$ac_cv_objext" >&6; } 4040OBJEXT=$ac_cv_objext 4041ac_objext=$OBJEXT 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4043$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4044if ${ac_cv_c_compiler_gnu+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049 4050int 4051main () 4052{ 4053#ifndef __GNUC__ 4054 choke me 4055#endif 4056 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_compile "$LINENO"; then : 4062 ac_compiler_gnu=yes 4063else 4064 ac_compiler_gnu=no 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067ac_cv_c_compiler_gnu=$ac_compiler_gnu 4068 4069fi 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4071$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4072if test $ac_compiler_gnu = yes; then 4073 GCC=yes 4074else 4075 GCC= 4076fi 4077ac_test_CFLAGS=${CFLAGS+set} 4078ac_save_CFLAGS=$CFLAGS 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4080$as_echo_n "checking whether $CC accepts -g... " >&6; } 4081if ${ac_cv_prog_cc_g+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 ac_save_c_werror_flag=$ac_c_werror_flag 4085 ac_c_werror_flag=yes 4086 ac_cv_prog_cc_g=no 4087 CFLAGS="-g" 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090 4091int 4092main () 4093{ 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099if ac_fn_c_try_compile "$LINENO"; then : 4100 ac_cv_prog_cc_g=yes 4101else 4102 CFLAGS="" 4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4104/* end confdefs.h. */ 4105 4106int 4107main () 4108{ 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114if ac_fn_c_try_compile "$LINENO"; then : 4115 4116else 4117 ac_c_werror_flag=$ac_save_c_werror_flag 4118 CFLAGS="-g" 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121 4122int 4123main () 4124{ 4125 4126 ; 4127 return 0; 4128} 4129_ACEOF 4130if ac_fn_c_try_compile "$LINENO"; then : 4131 ac_cv_prog_cc_g=yes 4132fi 4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4134fi 4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4136fi 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4138 ac_c_werror_flag=$ac_save_c_werror_flag 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4141$as_echo "$ac_cv_prog_cc_g" >&6; } 4142if test "$ac_test_CFLAGS" = set; then 4143 CFLAGS=$ac_save_CFLAGS 4144elif test $ac_cv_prog_cc_g = yes; then 4145 if test "$GCC" = yes; then 4146 CFLAGS="-g -O2" 4147 else 4148 CFLAGS="-g" 4149 fi 4150else 4151 if test "$GCC" = yes; then 4152 CFLAGS="-O2" 4153 else 4154 CFLAGS= 4155 fi 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4158$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4159if ${ac_cv_prog_cc_c89+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 ac_cv_prog_cc_c89=no 4163ac_save_CC=$CC 4164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4165/* end confdefs.h. */ 4166#include <stdarg.h> 4167#include <stdio.h> 4168struct stat; 4169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4170struct buf { int x; }; 4171FILE * (*rcsopen) (struct buf *, struct stat *, int); 4172static char *e (p, i) 4173 char **p; 4174 int i; 4175{ 4176 return p[i]; 4177} 4178static char *f (char * (*g) (char **, int), char **p, ...) 4179{ 4180 char *s; 4181 va_list v; 4182 va_start (v,p); 4183 s = g (p, va_arg (v,int)); 4184 va_end (v); 4185 return s; 4186} 4187 4188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4189 function prototypes and stuff, but not '\xHH' hex character constants. 4190 These don't provoke an error unfortunately, instead are silently treated 4191 as 'x'. The following induces an error, until -std is added to get 4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4193 array size at least. It's necessary to write '\x00'==0 to get something 4194 that's true only with -std. */ 4195int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4196 4197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4198 inside strings and character constants. */ 4199#define FOO(x) 'x' 4200int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4201 4202int test (int i, double x); 4203struct s1 {int (*f) (int a);}; 4204struct s2 {int (*f) (double a);}; 4205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4206int argc; 4207char **argv; 4208int 4209main () 4210{ 4211return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4218do 4219 CC="$ac_save_CC $ac_arg" 4220 if ac_fn_c_try_compile "$LINENO"; then : 4221 ac_cv_prog_cc_c89=$ac_arg 4222fi 4223rm -f core conftest.err conftest.$ac_objext 4224 test "x$ac_cv_prog_cc_c89" != "xno" && break 4225done 4226rm -f conftest.$ac_ext 4227CC=$ac_save_CC 4228 4229fi 4230# AC_CACHE_VAL 4231case "x$ac_cv_prog_cc_c89" in 4232 x) 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4234$as_echo "none needed" >&6; } ;; 4235 xno) 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4237$as_echo "unsupported" >&6; } ;; 4238 *) 4239 CC="$CC $ac_cv_prog_cc_c89" 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4241$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4242esac 4243if test "x$ac_cv_prog_cc_c89" != xno; then : 4244 4245fi 4246 4247ac_ext=c 4248ac_cpp='$CPP $CPPFLAGS' 4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4251ac_compiler_gnu=$ac_cv_c_compiler_gnu 4252 4253ac_ext=c 4254ac_cpp='$CPP $CPPFLAGS' 4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4257ac_compiler_gnu=$ac_cv_c_compiler_gnu 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4259$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4260if ${am_cv_prog_cc_c_o+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266int 4267main () 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274 # Make sure it works both with $CC and with simple cc. 4275 # Following AC_PROG_CC_C_O, we do the test twice because some 4276 # compilers refuse to overwrite an existing .o file with -o, 4277 # though they will create one. 4278 am_cv_prog_cc_c_o=yes 4279 for am_i in 1 2; do 4280 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4281 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); } \ 4285 && test -f conftest2.$ac_objext; then 4286 : OK 4287 else 4288 am_cv_prog_cc_c_o=no 4289 break 4290 fi 4291 done 4292 rm -f core conftest* 4293 unset am_i 4294fi 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4296$as_echo "$am_cv_prog_cc_c_o" >&6; } 4297if test "$am_cv_prog_cc_c_o" != yes; then 4298 # Losing compiler, so override with the script. 4299 # FIXME: It is wrong to rewrite CC. 4300 # But if we don't then we get into trouble of one sort or another. 4301 # A longer-term fix would be to have automake use am__CC in this case, 4302 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4303 CC="$am_aux_dir/compile $CC" 4304fi 4305ac_ext=c 4306ac_cpp='$CPP $CPPFLAGS' 4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4309ac_compiler_gnu=$ac_cv_c_compiler_gnu 4310 4311 4312depcc="$CC" am_compiler_list= 4313 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4315$as_echo_n "checking dependency style of $depcc... " >&6; } 4316if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4317 $as_echo_n "(cached) " >&6 4318else 4319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4320 # We make a subdir and do the tests there. Otherwise we can end up 4321 # making bogus files that we don't know about and never remove. For 4322 # instance it was reported that on HP-UX the gcc test will end up 4323 # making a dummy file named 'D' -- because '-MD' means "put the output 4324 # in D". 4325 rm -rf conftest.dir 4326 mkdir conftest.dir 4327 # Copy depcomp to subdir because otherwise we won't find it if we're 4328 # using a relative directory. 4329 cp "$am_depcomp" conftest.dir 4330 cd conftest.dir 4331 # We will build objects and dependencies in a subdirectory because 4332 # it helps to detect inapplicable dependency modes. For instance 4333 # both Tru64's cc and ICC support -MD to output dependencies as a 4334 # side effect of compilation, but ICC will put the dependencies in 4335 # the current directory while Tru64 will put them in the object 4336 # directory. 4337 mkdir sub 4338 4339 am_cv_CC_dependencies_compiler_type=none 4340 if test "$am_compiler_list" = ""; then 4341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4342 fi 4343 am__universal=false 4344 case " $depcc " in #( 4345 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4346 esac 4347 4348 for depmode in $am_compiler_list; do 4349 # Setup a source with many dependencies, because some compilers 4350 # like to wrap large dependency lists on column 80 (with \), and 4351 # we should not choose a depcomp mode which is confused by this. 4352 # 4353 # We need to recreate these files for each test, as the compiler may 4354 # overwrite some of them when testing with obscure command lines. 4355 # This happens at least with the AIX C compiler. 4356 : > sub/conftest.c 4357 for i in 1 2 3 4 5 6; do 4358 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4359 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4360 # Solaris 10 /bin/sh. 4361 echo '/* dummy */' > sub/conftst$i.h 4362 done 4363 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4364 4365 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4366 # mode. It turns out that the SunPro C++ compiler does not properly 4367 # handle '-M -o', and we need to detect this. Also, some Intel 4368 # versions had trouble with output in subdirs. 4369 am__obj=sub/conftest.${OBJEXT-o} 4370 am__minus_obj="-o $am__obj" 4371 case $depmode in 4372 gcc) 4373 # This depmode causes a compiler race in universal mode. 4374 test "$am__universal" = false || continue 4375 ;; 4376 nosideeffect) 4377 # After this tag, mechanisms are not by side-effect, so they'll 4378 # only be used when explicitly requested. 4379 if test "x$enable_dependency_tracking" = xyes; then 4380 continue 4381 else 4382 break 4383 fi 4384 ;; 4385 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4386 # This compiler won't grok '-c -o', but also, the minuso test has 4387 # not run yet. These depmodes are late enough in the game, and 4388 # so weak that their functioning should not be impacted. 4389 am__obj=conftest.${OBJEXT-o} 4390 am__minus_obj= 4391 ;; 4392 none) break ;; 4393 esac 4394 if depmode=$depmode \ 4395 source=sub/conftest.c object=$am__obj \ 4396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4397 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4398 >/dev/null 2>conftest.err && 4399 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4401 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4403 # icc doesn't choke on unknown options, it will just issue warnings 4404 # or remarks (even with -Werror). So we grep stderr for any message 4405 # that says an option was ignored or not supported. 4406 # When given -MP, icc 7.0 and 7.1 complain thusly: 4407 # icc: Command line warning: ignoring option '-M'; no argument required 4408 # The diagnosis changed in icc 8.0: 4409 # icc: Command line remark: option '-MP' not supported 4410 if (grep 'ignoring option' conftest.err || 4411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4412 am_cv_CC_dependencies_compiler_type=$depmode 4413 break 4414 fi 4415 fi 4416 done 4417 4418 cd .. 4419 rm -rf conftest.dir 4420else 4421 am_cv_CC_dependencies_compiler_type=none 4422fi 4423 4424fi 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4426$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4427CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4428 4429 if 4430 test "x$enable_dependency_tracking" != xno \ 4431 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4432 am__fastdepCC_TRUE= 4433 am__fastdepCC_FALSE='#' 4434else 4435 am__fastdepCC_TRUE='#' 4436 am__fastdepCC_FALSE= 4437fi 4438 4439 4440 4441ac_ext=c 4442ac_cpp='$CPP $CPPFLAGS' 4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4445ac_compiler_gnu=$ac_cv_c_compiler_gnu 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4447$as_echo_n "checking how to run the C preprocessor... " >&6; } 4448# On Suns, sometimes $CPP names a directory. 4449if test -n "$CPP" && test -d "$CPP"; then 4450 CPP= 4451fi 4452if test -z "$CPP"; then 4453 if ${ac_cv_prog_CPP+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 # Double quotes because CPP needs to be expanded 4457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4458 do 4459 ac_preproc_ok=false 4460for ac_c_preproc_warn_flag in '' yes 4461do 4462 # Use a header file that comes with gcc, so configuring glibc 4463 # with a fresh cross-compiler works. 4464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4465 # <limits.h> exists even on freestanding compilers. 4466 # On the NeXT, cc -E runs the code through the compiler's parser, 4467 # not just through cpp. "Syntax error" is here to catch this case. 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470#ifdef __STDC__ 4471# include <limits.h> 4472#else 4473# include <assert.h> 4474#endif 4475 Syntax error 4476_ACEOF 4477if ac_fn_c_try_cpp "$LINENO"; then : 4478 4479else 4480 # Broken: fails on valid input. 4481continue 4482fi 4483rm -f conftest.err conftest.i conftest.$ac_ext 4484 4485 # OK, works on sane cases. Now check whether nonexistent headers 4486 # can be detected and how. 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489#include <ac_nonexistent.h> 4490_ACEOF 4491if ac_fn_c_try_cpp "$LINENO"; then : 4492 # Broken: success on invalid input. 4493continue 4494else 4495 # Passes both tests. 4496ac_preproc_ok=: 4497break 4498fi 4499rm -f conftest.err conftest.i conftest.$ac_ext 4500 4501done 4502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4503rm -f conftest.i conftest.err conftest.$ac_ext 4504if $ac_preproc_ok; then : 4505 break 4506fi 4507 4508 done 4509 ac_cv_prog_CPP=$CPP 4510 4511fi 4512 CPP=$ac_cv_prog_CPP 4513else 4514 ac_cv_prog_CPP=$CPP 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4517$as_echo "$CPP" >&6; } 4518ac_preproc_ok=false 4519for ac_c_preproc_warn_flag in '' yes 4520do 4521 # Use a header file that comes with gcc, so configuring glibc 4522 # with a fresh cross-compiler works. 4523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4524 # <limits.h> exists even on freestanding compilers. 4525 # On the NeXT, cc -E runs the code through the compiler's parser, 4526 # not just through cpp. "Syntax error" is here to catch this case. 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529#ifdef __STDC__ 4530# include <limits.h> 4531#else 4532# include <assert.h> 4533#endif 4534 Syntax error 4535_ACEOF 4536if ac_fn_c_try_cpp "$LINENO"; then : 4537 4538else 4539 # Broken: fails on valid input. 4540continue 4541fi 4542rm -f conftest.err conftest.i conftest.$ac_ext 4543 4544 # OK, works on sane cases. Now check whether nonexistent headers 4545 # can be detected and how. 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#include <ac_nonexistent.h> 4549_ACEOF 4550if ac_fn_c_try_cpp "$LINENO"; then : 4551 # Broken: success on invalid input. 4552continue 4553else 4554 # Passes both tests. 4555ac_preproc_ok=: 4556break 4557fi 4558rm -f conftest.err conftest.i conftest.$ac_ext 4559 4560done 4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4562rm -f conftest.i conftest.err conftest.$ac_ext 4563if $ac_preproc_ok; then : 4564 4565else 4566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4568as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4569See \`config.log' for more details" "$LINENO" 5; } 4570fi 4571 4572ac_ext=c 4573ac_cpp='$CPP $CPPFLAGS' 4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4576ac_compiler_gnu=$ac_cv_c_compiler_gnu 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4580$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4581if ${ac_cv_path_GREP+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 if test -z "$GREP"; then 4585 ac_path_GREP_found=false 4586 # Loop through the user's path and test for each of PROGNAME-LIST 4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_prog in grep ggrep; do 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4595 as_fn_executable_p "$ac_path_GREP" || continue 4596# Check for GNU ac_path_GREP and select it if it is found. 4597 # Check for GNU $ac_path_GREP 4598case `"$ac_path_GREP" --version 2>&1` in 4599*GNU*) 4600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4601*) 4602 ac_count=0 4603 $as_echo_n 0123456789 >"conftest.in" 4604 while : 4605 do 4606 cat "conftest.in" "conftest.in" >"conftest.tmp" 4607 mv "conftest.tmp" "conftest.in" 4608 cp "conftest.in" "conftest.nl" 4609 $as_echo 'GREP' >> "conftest.nl" 4610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4612 as_fn_arith $ac_count + 1 && ac_count=$as_val 4613 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4614 # Best one so far, save it but keep looking for a better one 4615 ac_cv_path_GREP="$ac_path_GREP" 4616 ac_path_GREP_max=$ac_count 4617 fi 4618 # 10*(2^10) chars as input seems more than enough 4619 test $ac_count -gt 10 && break 4620 done 4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4622esac 4623 4624 $ac_path_GREP_found && break 3 4625 done 4626 done 4627 done 4628IFS=$as_save_IFS 4629 if test -z "$ac_cv_path_GREP"; then 4630 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4631 fi 4632else 4633 ac_cv_path_GREP=$GREP 4634fi 4635 4636fi 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4638$as_echo "$ac_cv_path_GREP" >&6; } 4639 GREP="$ac_cv_path_GREP" 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4643$as_echo_n "checking for egrep... " >&6; } 4644if ${ac_cv_path_EGREP+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4648 then ac_cv_path_EGREP="$GREP -E" 4649 else 4650 if test -z "$EGREP"; then 4651 ac_path_EGREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in egrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4661 as_fn_executable_p "$ac_path_EGREP" || continue 4662# Check for GNU ac_path_EGREP and select it if it is found. 4663 # Check for GNU $ac_path_EGREP 4664case `"$ac_path_EGREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'EGREP' >> "conftest.nl" 4676 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_EGREP="$ac_path_EGREP" 4682 ac_path_EGREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_EGREP_found && break 3 4691 done 4692 done 4693 done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_EGREP"; then 4696 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698else 4699 ac_cv_path_EGREP=$EGREP 4700fi 4701 4702 fi 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4705$as_echo "$ac_cv_path_EGREP" >&6; } 4706 EGREP="$ac_cv_path_EGREP" 4707 4708 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4710$as_echo_n "checking for ANSI C header files... " >&6; } 4711if ${ac_cv_header_stdc+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716#include <stdlib.h> 4717#include <stdarg.h> 4718#include <string.h> 4719#include <float.h> 4720 4721int 4722main () 4723{ 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_cv_header_stdc=yes 4731else 4732 ac_cv_header_stdc=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735 4736if test $ac_cv_header_stdc = yes; then 4737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740#include <string.h> 4741 4742_ACEOF 4743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4744 $EGREP "memchr" >/dev/null 2>&1; then : 4745 4746else 4747 ac_cv_header_stdc=no 4748fi 4749rm -f conftest* 4750 4751fi 4752 4753if test $ac_cv_header_stdc = yes; then 4754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4756/* end confdefs.h. */ 4757#include <stdlib.h> 4758 4759_ACEOF 4760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4761 $EGREP "free" >/dev/null 2>&1; then : 4762 4763else 4764 ac_cv_header_stdc=no 4765fi 4766rm -f conftest* 4767 4768fi 4769 4770if test $ac_cv_header_stdc = yes; then 4771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4772 if test "$cross_compiling" = yes; then : 4773 : 4774else 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776/* end confdefs.h. */ 4777#include <ctype.h> 4778#include <stdlib.h> 4779#if ((' ' & 0x0FF) == 0x020) 4780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4782#else 4783# define ISLOWER(c) \ 4784 (('a' <= (c) && (c) <= 'i') \ 4785 || ('j' <= (c) && (c) <= 'r') \ 4786 || ('s' <= (c) && (c) <= 'z')) 4787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4788#endif 4789 4790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4791int 4792main () 4793{ 4794 int i; 4795 for (i = 0; i < 256; i++) 4796 if (XOR (islower (i), ISLOWER (i)) 4797 || toupper (i) != TOUPPER (i)) 4798 return 2; 4799 return 0; 4800} 4801_ACEOF 4802if ac_fn_c_try_run "$LINENO"; then : 4803 4804else 4805 ac_cv_header_stdc=no 4806fi 4807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4808 conftest.$ac_objext conftest.beam conftest.$ac_ext 4809fi 4810 4811fi 4812fi 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4814$as_echo "$ac_cv_header_stdc" >&6; } 4815if test $ac_cv_header_stdc = yes; then 4816 4817$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4818 4819fi 4820 4821# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4822for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4823 inttypes.h stdint.h unistd.h 4824do : 4825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4826ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4827" 4828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4829 cat >>confdefs.h <<_ACEOF 4830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4831_ACEOF 4832 4833fi 4834 4835done 4836 4837 4838 4839 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4840if test "x$ac_cv_header_minix_config_h" = xyes; then : 4841 MINIX=yes 4842else 4843 MINIX= 4844fi 4845 4846 4847 if test "$MINIX" = yes; then 4848 4849$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4850 4851 4852$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4853 4854 4855$as_echo "#define _MINIX 1" >>confdefs.h 4856 4857 fi 4858 4859 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4861$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4862if ${ac_cv_safe_to_define___extensions__+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867 4868# define __EXTENSIONS__ 1 4869 $ac_includes_default 4870int 4871main () 4872{ 4873 4874 ; 4875 return 0; 4876} 4877_ACEOF 4878if ac_fn_c_try_compile "$LINENO"; then : 4879 ac_cv_safe_to_define___extensions__=yes 4880else 4881 ac_cv_safe_to_define___extensions__=no 4882fi 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4884fi 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4886$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4887 test $ac_cv_safe_to_define___extensions__ = yes && 4888 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4889 4890 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4891 4892 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4893 4894 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4895 4896 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4897 4898 4899 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4901$as_echo_n "checking for library containing strerror... " >&6; } 4902if ${ac_cv_search_strerror+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 ac_func_search_save_LIBS=$LIBS 4906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909/* Override any GCC internal prototype to avoid an error. 4910 Use char because int might match the return type of a GCC 4911 builtin and then its argument prototype would still apply. */ 4912#ifdef __cplusplus 4913extern "C" 4914#endif 4915char strerror (); 4916int 4917main () 4918{ 4919return strerror (); 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924for ac_lib in '' cposix; do 4925 if test -z "$ac_lib"; then 4926 ac_res="none required" 4927 else 4928 ac_res=-l$ac_lib 4929 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4930 fi 4931 if ac_fn_c_try_link "$LINENO"; then : 4932 ac_cv_search_strerror=$ac_res 4933fi 4934rm -f core conftest.err conftest.$ac_objext \ 4935 conftest$ac_exeext 4936 if ${ac_cv_search_strerror+:} false; then : 4937 break 4938fi 4939done 4940if ${ac_cv_search_strerror+:} false; then : 4941 4942else 4943 ac_cv_search_strerror=no 4944fi 4945rm conftest.$ac_ext 4946LIBS=$ac_func_search_save_LIBS 4947fi 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4949$as_echo "$ac_cv_search_strerror" >&6; } 4950ac_res=$ac_cv_search_strerror 4951if test "$ac_res" != no; then : 4952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4953 4954fi 4955 4956 4957case $host_os in 4958 *cygwin* ) CYGWIN=yes;; 4959 * ) CYGWIN=no;; 4960esac 4961 4962# AC_DISABLE_SHARED 4963case `pwd` in 4964 *\ * | *\ *) 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4966$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4967esac 4968 4969 4970 4971macro_version='2.4.6' 4972macro_revision='2.4.6' 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986ltmain=$ac_aux_dir/ltmain.sh 4987 4988# Backslashify metacharacters that are still active within 4989# double-quoted strings. 4990sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4991 4992# Same as above, but do not quote variable references. 4993double_quote_subst='s/\(["`\\]\)/\\\1/g' 4994 4995# Sed substitution to delay expansion of an escaped shell variable in a 4996# double_quote_subst'ed string. 4997delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4998 4999# Sed substitution to delay expansion of an escaped single quote. 5000delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5001 5002# Sed substitution to avoid accidental globbing in evaled expressions 5003no_glob_subst='s/\*/\\\*/g' 5004 5005ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5006ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5007ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5008 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5010$as_echo_n "checking how to print strings... " >&6; } 5011# Test print first, because it will be a builtin if present. 5012if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5013 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5014 ECHO='print -r --' 5015elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5016 ECHO='printf %s\n' 5017else 5018 # Use this function as a fallback that always works. 5019 func_fallback_echo () 5020 { 5021 eval 'cat <<_LTECHO_EOF 5022$1 5023_LTECHO_EOF' 5024 } 5025 ECHO='func_fallback_echo' 5026fi 5027 5028# func_echo_all arg... 5029# Invoke $ECHO with all args, space-separated. 5030func_echo_all () 5031{ 5032 $ECHO "" 5033} 5034 5035case $ECHO in 5036 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5037$as_echo "printf" >&6; } ;; 5038 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5039$as_echo "print -r" >&6; } ;; 5040 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5041$as_echo "cat" >&6; } ;; 5042esac 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5058$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5059if ${ac_cv_path_SED+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5063 for ac_i in 1 2 3 4 5 6 7; do 5064 ac_script="$ac_script$as_nl$ac_script" 5065 done 5066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5067 { ac_script=; unset ac_script;} 5068 if test -z "$SED"; then 5069 ac_path_SED_found=false 5070 # Loop through the user's path and test for each of PROGNAME-LIST 5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5072for as_dir in $PATH 5073do 5074 IFS=$as_save_IFS 5075 test -z "$as_dir" && as_dir=. 5076 for ac_prog in sed gsed; do 5077 for ac_exec_ext in '' $ac_executable_extensions; do 5078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5079 as_fn_executable_p "$ac_path_SED" || continue 5080# Check for GNU ac_path_SED and select it if it is found. 5081 # Check for GNU $ac_path_SED 5082case `"$ac_path_SED" --version 2>&1` in 5083*GNU*) 5084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5085*) 5086 ac_count=0 5087 $as_echo_n 0123456789 >"conftest.in" 5088 while : 5089 do 5090 cat "conftest.in" "conftest.in" >"conftest.tmp" 5091 mv "conftest.tmp" "conftest.in" 5092 cp "conftest.in" "conftest.nl" 5093 $as_echo '' >> "conftest.nl" 5094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5096 as_fn_arith $ac_count + 1 && ac_count=$as_val 5097 if test $ac_count -gt ${ac_path_SED_max-0}; then 5098 # Best one so far, save it but keep looking for a better one 5099 ac_cv_path_SED="$ac_path_SED" 5100 ac_path_SED_max=$ac_count 5101 fi 5102 # 10*(2^10) chars as input seems more than enough 5103 test $ac_count -gt 10 && break 5104 done 5105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5106esac 5107 5108 $ac_path_SED_found && break 3 5109 done 5110 done 5111 done 5112IFS=$as_save_IFS 5113 if test -z "$ac_cv_path_SED"; then 5114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5115 fi 5116else 5117 ac_cv_path_SED=$SED 5118fi 5119 5120fi 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5122$as_echo "$ac_cv_path_SED" >&6; } 5123 SED="$ac_cv_path_SED" 5124 rm -f conftest.sed 5125 5126test -z "$SED" && SED=sed 5127Xsed="$SED -e 1s/^X//" 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5140$as_echo_n "checking for fgrep... " >&6; } 5141if ${ac_cv_path_FGREP+:} false; then : 5142 $as_echo_n "(cached) " >&6 5143else 5144 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5145 then ac_cv_path_FGREP="$GREP -F" 5146 else 5147 if test -z "$FGREP"; then 5148 ac_path_FGREP_found=false 5149 # Loop through the user's path and test for each of PROGNAME-LIST 5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5152do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_prog in fgrep; do 5156 for ac_exec_ext in '' $ac_executable_extensions; do 5157 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5158 as_fn_executable_p "$ac_path_FGREP" || continue 5159# Check for GNU ac_path_FGREP and select it if it is found. 5160 # Check for GNU $ac_path_FGREP 5161case `"$ac_path_FGREP" --version 2>&1` in 5162*GNU*) 5163 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5164*) 5165 ac_count=0 5166 $as_echo_n 0123456789 >"conftest.in" 5167 while : 5168 do 5169 cat "conftest.in" "conftest.in" >"conftest.tmp" 5170 mv "conftest.tmp" "conftest.in" 5171 cp "conftest.in" "conftest.nl" 5172 $as_echo 'FGREP' >> "conftest.nl" 5173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5175 as_fn_arith $ac_count + 1 && ac_count=$as_val 5176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5177 # Best one so far, save it but keep looking for a better one 5178 ac_cv_path_FGREP="$ac_path_FGREP" 5179 ac_path_FGREP_max=$ac_count 5180 fi 5181 # 10*(2^10) chars as input seems more than enough 5182 test $ac_count -gt 10 && break 5183 done 5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5185esac 5186 5187 $ac_path_FGREP_found && break 3 5188 done 5189 done 5190 done 5191IFS=$as_save_IFS 5192 if test -z "$ac_cv_path_FGREP"; then 5193 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5194 fi 5195else 5196 ac_cv_path_FGREP=$FGREP 5197fi 5198 5199 fi 5200fi 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5202$as_echo "$ac_cv_path_FGREP" >&6; } 5203 FGREP="$ac_cv_path_FGREP" 5204 5205 5206test -z "$GREP" && GREP=grep 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226# Check whether --with-gnu-ld was given. 5227if test "${with_gnu_ld+set}" = set; then : 5228 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5229else 5230 with_gnu_ld=no 5231fi 5232 5233ac_prog=ld 5234if test yes = "$GCC"; then 5235 # Check if gcc -print-prog-name=ld gives a path. 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5237$as_echo_n "checking for ld used by $CC... " >&6; } 5238 case $host in 5239 *-*-mingw*) 5240 # gcc leaves a trailing carriage return, which upsets mingw 5241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5242 *) 5243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5244 esac 5245 case $ac_prog in 5246 # Accept absolute paths. 5247 [\\/]* | ?:[\\/]*) 5248 re_direlt='/[^/][^/]*/\.\./' 5249 # Canonicalize the pathname of ld 5250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5253 done 5254 test -z "$LD" && LD=$ac_prog 5255 ;; 5256 "") 5257 # If it fails, then pretend we aren't using GCC. 5258 ac_prog=ld 5259 ;; 5260 *) 5261 # If it is relative, then search for the first ld in PATH. 5262 with_gnu_ld=unknown 5263 ;; 5264 esac 5265elif test yes = "$with_gnu_ld"; then 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5267$as_echo_n "checking for GNU ld... " >&6; } 5268else 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5270$as_echo_n "checking for non-GNU ld... " >&6; } 5271fi 5272if ${lt_cv_path_LD+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 if test -z "$LD"; then 5276 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5277 for ac_dir in $PATH; do 5278 IFS=$lt_save_ifs 5279 test -z "$ac_dir" && ac_dir=. 5280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5281 lt_cv_path_LD=$ac_dir/$ac_prog 5282 # Check to see if the program is GNU ld. I'd rather use --version, 5283 # but apparently some variants of GNU ld only accept -v. 5284 # Break only if it was the GNU/non-GNU ld that we prefer. 5285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5286 *GNU* | *'with BFD'*) 5287 test no != "$with_gnu_ld" && break 5288 ;; 5289 *) 5290 test yes != "$with_gnu_ld" && break 5291 ;; 5292 esac 5293 fi 5294 done 5295 IFS=$lt_save_ifs 5296else 5297 lt_cv_path_LD=$LD # Let the user override the test with a path. 5298fi 5299fi 5300 5301LD=$lt_cv_path_LD 5302if test -n "$LD"; then 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5304$as_echo "$LD" >&6; } 5305else 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5307$as_echo "no" >&6; } 5308fi 5309test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5311$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5312if ${lt_cv_prog_gnu_ld+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5316case `$LD -v 2>&1 </dev/null` in 5317*GNU* | *'with BFD'*) 5318 lt_cv_prog_gnu_ld=yes 5319 ;; 5320*) 5321 lt_cv_prog_gnu_ld=no 5322 ;; 5323esac 5324fi 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5326$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5327with_gnu_ld=$lt_cv_prog_gnu_ld 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5338$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5339if ${lt_cv_path_NM+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 if test -n "$NM"; then 5343 # Let the user override the test. 5344 lt_cv_path_NM=$NM 5345else 5346 lt_nm_to_check=${ac_tool_prefix}nm 5347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5348 lt_nm_to_check="$lt_nm_to_check nm" 5349 fi 5350 for lt_tmp_nm in $lt_nm_to_check; do 5351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5352 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5353 IFS=$lt_save_ifs 5354 test -z "$ac_dir" && ac_dir=. 5355 tmp_nm=$ac_dir/$lt_tmp_nm 5356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5357 # Check to see if the nm accepts a BSD-compat flag. 5358 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5359 # nm: unknown option "B" ignored 5360 # Tru64's nm complains that /dev/null is an invalid object file 5361 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5362 case $build_os in 5363 mingw*) lt_bad_file=conftest.nm/nofile ;; 5364 *) lt_bad_file=/dev/null ;; 5365 esac 5366 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5367 *$lt_bad_file* | *'Invalid file or object type'*) 5368 lt_cv_path_NM="$tmp_nm -B" 5369 break 2 5370 ;; 5371 *) 5372 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5373 */dev/null*) 5374 lt_cv_path_NM="$tmp_nm -p" 5375 break 2 5376 ;; 5377 *) 5378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5379 continue # so that we can try to find one that supports BSD flags 5380 ;; 5381 esac 5382 ;; 5383 esac 5384 fi 5385 done 5386 IFS=$lt_save_ifs 5387 done 5388 : ${lt_cv_path_NM=no} 5389fi 5390fi 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5392$as_echo "$lt_cv_path_NM" >&6; } 5393if test no != "$lt_cv_path_NM"; then 5394 NM=$lt_cv_path_NM 5395else 5396 # Didn't find any BSD compatible name lister, look for dumpbin. 5397 if test -n "$DUMPBIN"; then : 5398 # Let the user override the test. 5399 else 5400 if test -n "$ac_tool_prefix"; then 5401 for ac_prog in dumpbin "link -dump" 5402 do 5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5404set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5406$as_echo_n "checking for $ac_word... " >&6; } 5407if ${ac_cv_prog_DUMPBIN+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 if test -n "$DUMPBIN"; then 5411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5412else 5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5414for as_dir in $PATH 5415do 5416 IFS=$as_save_IFS 5417 test -z "$as_dir" && as_dir=. 5418 for ac_exec_ext in '' $ac_executable_extensions; do 5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5420 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5422 break 2 5423 fi 5424done 5425 done 5426IFS=$as_save_IFS 5427 5428fi 5429fi 5430DUMPBIN=$ac_cv_prog_DUMPBIN 5431if test -n "$DUMPBIN"; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5433$as_echo "$DUMPBIN" >&6; } 5434else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5436$as_echo "no" >&6; } 5437fi 5438 5439 5440 test -n "$DUMPBIN" && break 5441 done 5442fi 5443if test -z "$DUMPBIN"; then 5444 ac_ct_DUMPBIN=$DUMPBIN 5445 for ac_prog in dumpbin "link -dump" 5446do 5447 # Extract the first word of "$ac_prog", so it can be a program name with args. 5448set dummy $ac_prog; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$ac_ct_DUMPBIN"; then 5455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5475if test -n "$ac_ct_DUMPBIN"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5477$as_echo "$ac_ct_DUMPBIN" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 5484 test -n "$ac_ct_DUMPBIN" && break 5485done 5486 5487 if test "x$ac_ct_DUMPBIN" = x; then 5488 DUMPBIN=":" 5489 else 5490 case $cross_compiling:$ac_tool_warned in 5491yes:) 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5494ac_tool_warned=yes ;; 5495esac 5496 DUMPBIN=$ac_ct_DUMPBIN 5497 fi 5498fi 5499 5500 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5501 *COFF*) 5502 DUMPBIN="$DUMPBIN -symbols -headers" 5503 ;; 5504 *) 5505 DUMPBIN=: 5506 ;; 5507 esac 5508 fi 5509 5510 if test : != "$DUMPBIN"; then 5511 NM=$DUMPBIN 5512 fi 5513fi 5514test -z "$NM" && NM=nm 5515 5516 5517 5518 5519 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5522$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5523if ${lt_cv_nm_interface+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 lt_cv_nm_interface="BSD nm" 5527 echo "int some_variable = 0;" > conftest.$ac_ext 5528 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5529 (eval "$ac_compile" 2>conftest.err) 5530 cat conftest.err >&5 5531 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5532 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5533 cat conftest.err >&5 5534 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5535 cat conftest.out >&5 5536 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5537 lt_cv_nm_interface="MS dumpbin" 5538 fi 5539 rm -f conftest* 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5542$as_echo "$lt_cv_nm_interface" >&6; } 5543 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5545$as_echo_n "checking whether ln -s works... " >&6; } 5546LN_S=$as_ln_s 5547if test "$LN_S" = "ln -s"; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5549$as_echo "yes" >&6; } 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5552$as_echo "no, using $LN_S" >&6; } 5553fi 5554 5555# find the maximum length of command line arguments 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5557$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5558if ${lt_cv_sys_max_cmd_len+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 i=0 5562 teststring=ABCD 5563 5564 case $build_os in 5565 msdosdjgpp*) 5566 # On DJGPP, this test can blow up pretty badly due to problems in libc 5567 # (any single argument exceeding 2000 bytes causes a buffer overrun 5568 # during glob expansion). Even if it were fixed, the result of this 5569 # check would be larger than it should be. 5570 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5571 ;; 5572 5573 gnu*) 5574 # Under GNU Hurd, this test is not required because there is 5575 # no limit to the length of command line arguments. 5576 # Libtool will interpret -1 as no limit whatsoever 5577 lt_cv_sys_max_cmd_len=-1; 5578 ;; 5579 5580 cygwin* | mingw* | cegcc*) 5581 # On Win9x/ME, this test blows up -- it succeeds, but takes 5582 # about 5 minutes as the teststring grows exponentially. 5583 # Worse, since 9x/ME are not pre-emptively multitasking, 5584 # you end up with a "frozen" computer, even though with patience 5585 # the test eventually succeeds (with a max line length of 256k). 5586 # Instead, let's just punt: use the minimum linelength reported by 5587 # all of the supported platforms: 8192 (on NT/2K/XP). 5588 lt_cv_sys_max_cmd_len=8192; 5589 ;; 5590 5591 mint*) 5592 # On MiNT this can take a long time and run out of memory. 5593 lt_cv_sys_max_cmd_len=8192; 5594 ;; 5595 5596 amigaos*) 5597 # On AmigaOS with pdksh, this test takes hours, literally. 5598 # So we just punt and use a minimum line length of 8192. 5599 lt_cv_sys_max_cmd_len=8192; 5600 ;; 5601 5602 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5603 # This has been around since 386BSD, at least. Likely further. 5604 if test -x /sbin/sysctl; then 5605 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5606 elif test -x /usr/sbin/sysctl; then 5607 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5608 else 5609 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5610 fi 5611 # And add a safety zone 5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5614 ;; 5615 5616 interix*) 5617 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5618 lt_cv_sys_max_cmd_len=196608 5619 ;; 5620 5621 os2*) 5622 # The test takes a long time on OS/2. 5623 lt_cv_sys_max_cmd_len=8192 5624 ;; 5625 5626 osf*) 5627 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5628 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5629 # nice to cause kernel panics so lets avoid the loop below. 5630 # First set a reasonable default. 5631 lt_cv_sys_max_cmd_len=16384 5632 # 5633 if test -x /sbin/sysconfig; then 5634 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5635 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5636 esac 5637 fi 5638 ;; 5639 sco3.2v5*) 5640 lt_cv_sys_max_cmd_len=102400 5641 ;; 5642 sysv5* | sco5v6* | sysv4.2uw2*) 5643 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5644 if test -n "$kargmax"; then 5645 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5646 else 5647 lt_cv_sys_max_cmd_len=32768 5648 fi 5649 ;; 5650 *) 5651 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5652 if test -n "$lt_cv_sys_max_cmd_len" && \ 5653 test undefined != "$lt_cv_sys_max_cmd_len"; then 5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5656 else 5657 # Make teststring a little bigger before we do anything with it. 5658 # a 1K string should be a reasonable start. 5659 for i in 1 2 3 4 5 6 7 8; do 5660 teststring=$teststring$teststring 5661 done 5662 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5663 # If test is not a shell built-in, we'll probably end up computing a 5664 # maximum length that is only half of the actual maximum length, but 5665 # we can't tell. 5666 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5667 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5668 test 17 != "$i" # 1/2 MB should be enough 5669 do 5670 i=`expr $i + 1` 5671 teststring=$teststring$teststring 5672 done 5673 # Only check the string length outside the loop. 5674 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5675 teststring= 5676 # Add a significant safety factor because C++ compilers can tack on 5677 # massive amounts of additional arguments before passing them to the 5678 # linker. It appears as though 1/2 is a usable value. 5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5680 fi 5681 ;; 5682 esac 5683 5684fi 5685 5686if test -n "$lt_cv_sys_max_cmd_len"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5688$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5691$as_echo "none" >&6; } 5692fi 5693max_cmd_len=$lt_cv_sys_max_cmd_len 5694 5695 5696 5697 5698 5699 5700: ${CP="cp -f"} 5701: ${MV="mv -f"} 5702: ${RM="rm -f"} 5703 5704if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5705 lt_unset=unset 5706else 5707 lt_unset=false 5708fi 5709 5710 5711 5712 5713 5714# test EBCDIC or ASCII 5715case `echo X|tr X '\101'` in 5716 A) # ASCII based system 5717 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5718 lt_SP2NL='tr \040 \012' 5719 lt_NL2SP='tr \015\012 \040\040' 5720 ;; 5721 *) # EBCDIC based system 5722 lt_SP2NL='tr \100 \n' 5723 lt_NL2SP='tr \r\n \100\100' 5724 ;; 5725esac 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5736$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5737if ${lt_cv_to_host_file_cmd+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 case $host in 5741 *-*-mingw* ) 5742 case $build in 5743 *-*-mingw* ) # actually msys 5744 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5745 ;; 5746 *-*-cygwin* ) 5747 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5748 ;; 5749 * ) # otherwise, assume *nix 5750 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5751 ;; 5752 esac 5753 ;; 5754 *-*-cygwin* ) 5755 case $build in 5756 *-*-mingw* ) # actually msys 5757 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5758 ;; 5759 *-*-cygwin* ) 5760 lt_cv_to_host_file_cmd=func_convert_file_noop 5761 ;; 5762 * ) # otherwise, assume *nix 5763 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5764 ;; 5765 esac 5766 ;; 5767 * ) # unhandled hosts (and "normal" native builds) 5768 lt_cv_to_host_file_cmd=func_convert_file_noop 5769 ;; 5770esac 5771 5772fi 5773 5774to_host_file_cmd=$lt_cv_to_host_file_cmd 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5776$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5777 5778 5779 5780 5781 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5783$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5784if ${lt_cv_to_tool_file_cmd+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 #assume ordinary cross tools, or native build. 5788lt_cv_to_tool_file_cmd=func_convert_file_noop 5789case $host in 5790 *-*-mingw* ) 5791 case $build in 5792 *-*-mingw* ) # actually msys 5793 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5794 ;; 5795 esac 5796 ;; 5797esac 5798 5799fi 5800 5801to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5803$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5804 5805 5806 5807 5808 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5810$as_echo_n "checking for $LD option to reload object files... " >&6; } 5811if ${lt_cv_ld_reload_flag+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 lt_cv_ld_reload_flag='-r' 5815fi 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5817$as_echo "$lt_cv_ld_reload_flag" >&6; } 5818reload_flag=$lt_cv_ld_reload_flag 5819case $reload_flag in 5820"" | " "*) ;; 5821*) reload_flag=" $reload_flag" ;; 5822esac 5823reload_cmds='$LD$reload_flag -o $output$reload_objs' 5824case $host_os in 5825 cygwin* | mingw* | pw32* | cegcc*) 5826 if test yes != "$GCC"; then 5827 reload_cmds=false 5828 fi 5829 ;; 5830 darwin*) 5831 if test yes = "$GCC"; then 5832 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5833 else 5834 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5835 fi 5836 ;; 5837esac 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847if test -n "$ac_tool_prefix"; then 5848 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5849set dummy ${ac_tool_prefix}objdump; ac_word=$2 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5851$as_echo_n "checking for $ac_word... " >&6; } 5852if ${ac_cv_prog_OBJDUMP+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 if test -n "$OBJDUMP"; then 5856 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5857else 5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859for as_dir in $PATH 5860do 5861 IFS=$as_save_IFS 5862 test -z "$as_dir" && as_dir=. 5863 for ac_exec_ext in '' $ac_executable_extensions; do 5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5865 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5867 break 2 5868 fi 5869done 5870 done 5871IFS=$as_save_IFS 5872 5873fi 5874fi 5875OBJDUMP=$ac_cv_prog_OBJDUMP 5876if test -n "$OBJDUMP"; then 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5878$as_echo "$OBJDUMP" >&6; } 5879else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5881$as_echo "no" >&6; } 5882fi 5883 5884 5885fi 5886if test -z "$ac_cv_prog_OBJDUMP"; then 5887 ac_ct_OBJDUMP=$OBJDUMP 5888 # Extract the first word of "objdump", so it can be a program name with args. 5889set dummy objdump; ac_word=$2 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5891$as_echo_n "checking for $ac_word... " >&6; } 5892if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 if test -n "$ac_ct_OBJDUMP"; then 5896 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5897else 5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899for as_dir in $PATH 5900do 5901 IFS=$as_save_IFS 5902 test -z "$as_dir" && as_dir=. 5903 for ac_exec_ext in '' $ac_executable_extensions; do 5904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5905 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5907 break 2 5908 fi 5909done 5910 done 5911IFS=$as_save_IFS 5912 5913fi 5914fi 5915ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5916if test -n "$ac_ct_OBJDUMP"; then 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5918$as_echo "$ac_ct_OBJDUMP" >&6; } 5919else 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5921$as_echo "no" >&6; } 5922fi 5923 5924 if test "x$ac_ct_OBJDUMP" = x; then 5925 OBJDUMP="false" 5926 else 5927 case $cross_compiling:$ac_tool_warned in 5928yes:) 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5931ac_tool_warned=yes ;; 5932esac 5933 OBJDUMP=$ac_ct_OBJDUMP 5934 fi 5935else 5936 OBJDUMP="$ac_cv_prog_OBJDUMP" 5937fi 5938 5939test -z "$OBJDUMP" && OBJDUMP=objdump 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5950$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5951if ${lt_cv_deplibs_check_method+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 lt_cv_file_magic_cmd='$MAGIC_CMD' 5955lt_cv_file_magic_test_file= 5956lt_cv_deplibs_check_method='unknown' 5957# Need to set the preceding variable on all platforms that support 5958# interlibrary dependencies. 5959# 'none' -- dependencies not supported. 5960# 'unknown' -- same as none, but documents that we really don't know. 5961# 'pass_all' -- all dependencies passed with no checks. 5962# 'test_compile' -- check by making test program. 5963# 'file_magic [[regex]]' -- check by looking for files in library path 5964# that responds to the $file_magic_cmd with a given extended regex. 5965# If you have 'file' or equivalent on your system and you're not sure 5966# whether 'pass_all' will *always* work, you probably want this one. 5967 5968case $host_os in 5969aix[4-9]*) 5970 lt_cv_deplibs_check_method=pass_all 5971 ;; 5972 5973beos*) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 5977bsdi[45]*) 5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5979 lt_cv_file_magic_cmd='/usr/bin/file -L' 5980 lt_cv_file_magic_test_file=/shlib/libc.so 5981 ;; 5982 5983cygwin*) 5984 # func_win32_libid is a shell function defined in ltmain.sh 5985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5986 lt_cv_file_magic_cmd='func_win32_libid' 5987 ;; 5988 5989mingw* | pw32*) 5990 # Base MSYS/MinGW do not provide the 'file' command needed by 5991 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5992 # unless we find 'file', for example because we are cross-compiling. 5993 if ( file / ) >/dev/null 2>&1; then 5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5995 lt_cv_file_magic_cmd='func_win32_libid' 5996 else 5997 # Keep this pattern in sync with the one in func_win32_libid. 5998 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5999 lt_cv_file_magic_cmd='$OBJDUMP -f' 6000 fi 6001 ;; 6002 6003cegcc*) 6004 # use the weaker test based on 'objdump'. See mingw*. 6005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6006 lt_cv_file_magic_cmd='$OBJDUMP -f' 6007 ;; 6008 6009darwin* | rhapsody*) 6010 lt_cv_deplibs_check_method=pass_all 6011 ;; 6012 6013freebsd* | dragonfly*) 6014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6015 case $host_cpu in 6016 i*86 ) 6017 # Not sure whether the presence of OpenBSD here was a mistake. 6018 # Let's accept both of them until this is cleared up. 6019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6020 lt_cv_file_magic_cmd=/usr/bin/file 6021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6022 ;; 6023 esac 6024 else 6025 lt_cv_deplibs_check_method=pass_all 6026 fi 6027 ;; 6028 6029haiku*) 6030 lt_cv_deplibs_check_method=pass_all 6031 ;; 6032 6033hpux10.20* | hpux11*) 6034 lt_cv_file_magic_cmd=/usr/bin/file 6035 case $host_cpu in 6036 ia64*) 6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6039 ;; 6040 hppa*64*) 6041 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]' 6042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6043 ;; 6044 *) 6045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6046 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6047 ;; 6048 esac 6049 ;; 6050 6051interix[3-9]*) 6052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6054 ;; 6055 6056irix5* | irix6* | nonstopux*) 6057 case $LD in 6058 *-32|*"-32 ") libmagic=32-bit;; 6059 *-n32|*"-n32 ") libmagic=N32;; 6060 *-64|*"-64 ") libmagic=64-bit;; 6061 *) libmagic=never-match;; 6062 esac 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066# This must be glibc/ELF. 6067linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071netbsd*) 6072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6074 else 6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6076 fi 6077 ;; 6078 6079newos6*) 6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6081 lt_cv_file_magic_cmd=/usr/bin/file 6082 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6083 ;; 6084 6085*nto* | *qnx*) 6086 lt_cv_deplibs_check_method=pass_all 6087 ;; 6088 6089openbsd* | bitrig*) 6090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6092 else 6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6094 fi 6095 ;; 6096 6097osf3* | osf4* | osf5*) 6098 lt_cv_deplibs_check_method=pass_all 6099 ;; 6100 6101rdos*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105solaris*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113sysv4 | sysv4.3*) 6114 case $host_vendor in 6115 motorola) 6116 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]' 6117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6118 ;; 6119 ncr) 6120 lt_cv_deplibs_check_method=pass_all 6121 ;; 6122 sequent) 6123 lt_cv_file_magic_cmd='/bin/file' 6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6125 ;; 6126 sni) 6127 lt_cv_file_magic_cmd='/bin/file' 6128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6129 lt_cv_file_magic_test_file=/lib/libc.so 6130 ;; 6131 siemens) 6132 lt_cv_deplibs_check_method=pass_all 6133 ;; 6134 pc) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 esac 6138 ;; 6139 6140tpf*) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143os2*) 6144 lt_cv_deplibs_check_method=pass_all 6145 ;; 6146esac 6147 6148fi 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6150$as_echo "$lt_cv_deplibs_check_method" >&6; } 6151 6152file_magic_glob= 6153want_nocaseglob=no 6154if test "$build" = "$host"; then 6155 case $host_os in 6156 mingw* | pw32*) 6157 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6158 want_nocaseglob=yes 6159 else 6160 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6161 fi 6162 ;; 6163 esac 6164fi 6165 6166file_magic_cmd=$lt_cv_file_magic_cmd 6167deplibs_check_method=$lt_cv_deplibs_check_method 6168test -z "$deplibs_check_method" && deplibs_check_method=unknown 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191if test -n "$ac_tool_prefix"; then 6192 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6193set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6195$as_echo_n "checking for $ac_word... " >&6; } 6196if ${ac_cv_prog_DLLTOOL+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 if test -n "$DLLTOOL"; then 6200 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6201else 6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6203for as_dir in $PATH 6204do 6205 IFS=$as_save_IFS 6206 test -z "$as_dir" && as_dir=. 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6209 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214 done 6215IFS=$as_save_IFS 6216 6217fi 6218fi 6219DLLTOOL=$ac_cv_prog_DLLTOOL 6220if test -n "$DLLTOOL"; then 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6222$as_echo "$DLLTOOL" >&6; } 6223else 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225$as_echo "no" >&6; } 6226fi 6227 6228 6229fi 6230if test -z "$ac_cv_prog_DLLTOOL"; then 6231 ac_ct_DLLTOOL=$DLLTOOL 6232 # Extract the first word of "dlltool", so it can be a program name with args. 6233set dummy dlltool; ac_word=$2 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6235$as_echo_n "checking for $ac_word... " >&6; } 6236if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 if test -n "$ac_ct_DLLTOOL"; then 6240 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6241else 6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6243for as_dir in $PATH 6244do 6245 IFS=$as_save_IFS 6246 test -z "$as_dir" && as_dir=. 6247 for ac_exec_ext in '' $ac_executable_extensions; do 6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6249 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6251 break 2 6252 fi 6253done 6254 done 6255IFS=$as_save_IFS 6256 6257fi 6258fi 6259ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6260if test -n "$ac_ct_DLLTOOL"; then 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6262$as_echo "$ac_ct_DLLTOOL" >&6; } 6263else 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6265$as_echo "no" >&6; } 6266fi 6267 6268 if test "x$ac_ct_DLLTOOL" = x; then 6269 DLLTOOL="false" 6270 else 6271 case $cross_compiling:$ac_tool_warned in 6272yes:) 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6275ac_tool_warned=yes ;; 6276esac 6277 DLLTOOL=$ac_ct_DLLTOOL 6278 fi 6279else 6280 DLLTOOL="$ac_cv_prog_DLLTOOL" 6281fi 6282 6283test -z "$DLLTOOL" && DLLTOOL=dlltool 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6295$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6296if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 lt_cv_sharedlib_from_linklib_cmd='unknown' 6300 6301case $host_os in 6302cygwin* | mingw* | pw32* | cegcc*) 6303 # two different shell functions defined in ltmain.sh; 6304 # decide which one to use based on capabilities of $DLLTOOL 6305 case `$DLLTOOL --help 2>&1` in 6306 *--identify-strict*) 6307 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6308 ;; 6309 *) 6310 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6311 ;; 6312 esac 6313 ;; 6314*) 6315 # fallback: assume linklib IS sharedlib 6316 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6317 ;; 6318esac 6319 6320fi 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6322$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6323sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6324test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6325 6326 6327 6328 6329 6330 6331 6332if test -n "$ac_tool_prefix"; then 6333 for ac_prog in ar 6334 do 6335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6336set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6338$as_echo_n "checking for $ac_word... " >&6; } 6339if ${ac_cv_prog_AR+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 if test -n "$AR"; then 6343 ac_cv_prog_AR="$AR" # Let the user override the test. 6344else 6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6346for as_dir in $PATH 6347do 6348 IFS=$as_save_IFS 6349 test -z "$as_dir" && as_dir=. 6350 for ac_exec_ext in '' $ac_executable_extensions; do 6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6352 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6354 break 2 6355 fi 6356done 6357 done 6358IFS=$as_save_IFS 6359 6360fi 6361fi 6362AR=$ac_cv_prog_AR 6363if test -n "$AR"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6365$as_echo "$AR" >&6; } 6366else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6368$as_echo "no" >&6; } 6369fi 6370 6371 6372 test -n "$AR" && break 6373 done 6374fi 6375if test -z "$AR"; then 6376 ac_ct_AR=$AR 6377 for ac_prog in ar 6378do 6379 # Extract the first word of "$ac_prog", so it can be a program name with args. 6380set dummy $ac_prog; ac_word=$2 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382$as_echo_n "checking for $ac_word... " >&6; } 6383if ${ac_cv_prog_ac_ct_AR+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 if test -n "$ac_ct_AR"; then 6387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396 ac_cv_prog_ac_ct_AR="$ac_prog" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406ac_ct_AR=$ac_cv_prog_ac_ct_AR 6407if test -n "$ac_ct_AR"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6409$as_echo "$ac_ct_AR" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412$as_echo "no" >&6; } 6413fi 6414 6415 6416 test -n "$ac_ct_AR" && break 6417done 6418 6419 if test "x$ac_ct_AR" = x; then 6420 AR="false" 6421 else 6422 case $cross_compiling:$ac_tool_warned in 6423yes:) 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6426ac_tool_warned=yes ;; 6427esac 6428 AR=$ac_ct_AR 6429 fi 6430fi 6431 6432: ${AR=ar} 6433: ${AR_FLAGS=cru} 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6446$as_echo_n "checking for archiver @FILE support... " >&6; } 6447if ${lt_cv_ar_at_file+:} false; then : 6448 $as_echo_n "(cached) " >&6 6449else 6450 lt_cv_ar_at_file=no 6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6452/* end confdefs.h. */ 6453 6454int 6455main () 6456{ 6457 6458 ; 6459 return 0; 6460} 6461_ACEOF 6462if ac_fn_c_try_compile "$LINENO"; then : 6463 echo conftest.$ac_objext > conftest.lst 6464 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6466 (eval $lt_ar_try) 2>&5 6467 ac_status=$? 6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6469 test $ac_status = 0; } 6470 if test 0 -eq "$ac_status"; then 6471 # Ensure the archiver fails upon bogus file names. 6472 rm -f conftest.$ac_objext libconftest.a 6473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6474 (eval $lt_ar_try) 2>&5 6475 ac_status=$? 6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6477 test $ac_status = 0; } 6478 if test 0 -ne "$ac_status"; then 6479 lt_cv_ar_at_file=@ 6480 fi 6481 fi 6482 rm -f conftest.* libconftest.a 6483 6484fi 6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6486 6487fi 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6489$as_echo "$lt_cv_ar_at_file" >&6; } 6490 6491if test no = "$lt_cv_ar_at_file"; then 6492 archiver_list_spec= 6493else 6494 archiver_list_spec=$lt_cv_ar_at_file 6495fi 6496 6497 6498 6499 6500 6501 6502 6503if test -n "$ac_tool_prefix"; then 6504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6505set dummy ${ac_tool_prefix}strip; ac_word=$2 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507$as_echo_n "checking for $ac_word... " >&6; } 6508if ${ac_cv_prog_STRIP+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 if test -n "$STRIP"; then 6512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6513else 6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6515for as_dir in $PATH 6516do 6517 IFS=$as_save_IFS 6518 test -z "$as_dir" && as_dir=. 6519 for ac_exec_ext in '' $ac_executable_extensions; do 6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6521 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6523 break 2 6524 fi 6525done 6526 done 6527IFS=$as_save_IFS 6528 6529fi 6530fi 6531STRIP=$ac_cv_prog_STRIP 6532if test -n "$STRIP"; then 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6534$as_echo "$STRIP" >&6; } 6535else 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6537$as_echo "no" >&6; } 6538fi 6539 6540 6541fi 6542if test -z "$ac_cv_prog_STRIP"; then 6543 ac_ct_STRIP=$STRIP 6544 # Extract the first word of "strip", so it can be a program name with args. 6545set dummy strip; ac_word=$2 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547$as_echo_n "checking for $ac_word... " >&6; } 6548if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 if test -n "$ac_ct_STRIP"; then 6552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_ac_ct_STRIP="strip" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569fi 6570fi 6571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6572if test -n "$ac_ct_STRIP"; then 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6574$as_echo "$ac_ct_STRIP" >&6; } 6575else 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577$as_echo "no" >&6; } 6578fi 6579 6580 if test "x$ac_ct_STRIP" = x; then 6581 STRIP=":" 6582 else 6583 case $cross_compiling:$ac_tool_warned in 6584yes:) 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6587ac_tool_warned=yes ;; 6588esac 6589 STRIP=$ac_ct_STRIP 6590 fi 6591else 6592 STRIP="$ac_cv_prog_STRIP" 6593fi 6594 6595test -z "$STRIP" && STRIP=: 6596 6597 6598 6599 6600 6601 6602if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if ${ac_cv_prog_RANLIB+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$RANLIB"; then 6611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625 done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630RANLIB=$ac_cv_prog_RANLIB 6631if test -n "$RANLIB"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6633$as_echo "$RANLIB" >&6; } 6634else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 6640fi 6641if test -z "$ac_cv_prog_RANLIB"; then 6642 ac_ct_RANLIB=$RANLIB 6643 # Extract the first word of "ranlib", so it can be a program name with args. 6644set dummy ranlib; ac_word=$2 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6646$as_echo_n "checking for $ac_word... " >&6; } 6647if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 if test -n "$ac_ct_RANLIB"; then 6651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6652else 6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6660 ac_cv_prog_ac_ct_RANLIB="ranlib" 6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665 done 6666IFS=$as_save_IFS 6667 6668fi 6669fi 6670ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6671if test -n "$ac_ct_RANLIB"; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6673$as_echo "$ac_ct_RANLIB" >&6; } 6674else 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678 6679 if test "x$ac_ct_RANLIB" = x; then 6680 RANLIB=":" 6681 else 6682 case $cross_compiling:$ac_tool_warned in 6683yes:) 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6686ac_tool_warned=yes ;; 6687esac 6688 RANLIB=$ac_ct_RANLIB 6689 fi 6690else 6691 RANLIB="$ac_cv_prog_RANLIB" 6692fi 6693 6694test -z "$RANLIB" && RANLIB=: 6695 6696 6697 6698 6699 6700 6701# Determine commands to create old-style static archives. 6702old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6703old_postinstall_cmds='chmod 644 $oldlib' 6704old_postuninstall_cmds= 6705 6706if test -n "$RANLIB"; then 6707 case $host_os in 6708 bitrig* | openbsd*) 6709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6710 ;; 6711 *) 6712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6713 ;; 6714 esac 6715 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6716fi 6717 6718case $host_os in 6719 darwin*) 6720 lock_old_archive_extraction=yes ;; 6721 *) 6722 lock_old_archive_extraction=no ;; 6723esac 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763# If no C compiler was specified, use CC. 6764LTCC=${LTCC-"$CC"} 6765 6766# If no C compiler flags were specified, use CFLAGS. 6767LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6768 6769# Allow CC to be a program name with arguments. 6770compiler=$CC 6771 6772 6773# Check for command to grab the raw symbol name followed by C symbol from nm. 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6775$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6776if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 6780# These are sane defaults that work on at least a few old systems. 6781# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6782 6783# Character class describing NM global symbol codes. 6784symcode='[BCDEGRST]' 6785 6786# Regexp to match symbols that can be accessed directly from C. 6787sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6788 6789# Define system-specific variables. 6790case $host_os in 6791aix*) 6792 symcode='[BCDT]' 6793 ;; 6794cygwin* | mingw* | pw32* | cegcc*) 6795 symcode='[ABCDGISTW]' 6796 ;; 6797hpux*) 6798 if test ia64 = "$host_cpu"; then 6799 symcode='[ABCDEGRST]' 6800 fi 6801 ;; 6802irix* | nonstopux*) 6803 symcode='[BCDEGRST]' 6804 ;; 6805osf*) 6806 symcode='[BCDEGQRST]' 6807 ;; 6808solaris*) 6809 symcode='[BDRT]' 6810 ;; 6811sco3.2v5*) 6812 symcode='[DT]' 6813 ;; 6814sysv4.2uw2*) 6815 symcode='[DT]' 6816 ;; 6817sysv5* | sco5v6* | unixware* | OpenUNIX*) 6818 symcode='[ABDT]' 6819 ;; 6820sysv4) 6821 symcode='[DFNSTU]' 6822 ;; 6823esac 6824 6825# If we're using GNU nm, then use its standard symbol codes. 6826case `$NM -V 2>&1` in 6827*GNU* | *'with BFD'*) 6828 symcode='[ABCDGIRSTW]' ;; 6829esac 6830 6831if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6832 # Gets list of data symbols to import. 6833 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6834 # Adjust the below global symbol transforms to fixup imported variables. 6835 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6836 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6837 lt_c_name_lib_hook="\ 6838 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6839 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6840else 6841 # Disable hooks by default. 6842 lt_cv_sys_global_symbol_to_import= 6843 lt_cdecl_hook= 6844 lt_c_name_hook= 6845 lt_c_name_lib_hook= 6846fi 6847 6848# Transform an extracted symbol line into a proper C declaration. 6849# Some systems (esp. on ia64) link data and code symbols differently, 6850# so use this general approach. 6851lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6852$lt_cdecl_hook\ 6853" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6854" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6855 6856# Transform an extracted symbol line into symbol name and symbol address 6857lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6858$lt_c_name_hook\ 6859" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6860" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6861 6862# Transform an extracted symbol line into symbol name with lib prefix and 6863# symbol address. 6864lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6865$lt_c_name_lib_hook\ 6866" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6867" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6868" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6869 6870# Handle CRLF in mingw tool chain 6871opt_cr= 6872case $build_os in 6873mingw*) 6874 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6875 ;; 6876esac 6877 6878# Try without a prefix underscore, then with it. 6879for ac_symprfx in "" "_"; do 6880 6881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6882 symxfrm="\\1 $ac_symprfx\\2 \\2" 6883 6884 # Write the raw and C identifiers. 6885 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6886 # Fake it for dumpbin and say T for any non-static function, 6887 # D for any global variable and I for any imported variable. 6888 # Also find C++ and __fastcall symbols from MSVC++, 6889 # which start with @ or ?. 6890 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6891" {last_section=section; section=\$ 3};"\ 6892" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6893" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6894" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6895" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6896" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6897" \$ 0!~/External *\|/{next};"\ 6898" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6899" {if(hide[section]) next};"\ 6900" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6901" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6902" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6903" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6904" ' prfx=^$ac_symprfx" 6905 else 6906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6907 fi 6908 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6909 6910 # Check to see that the pipe works correctly. 6911 pipe_works=no 6912 6913 rm -f conftest* 6914 cat > conftest.$ac_ext <<_LT_EOF 6915#ifdef __cplusplus 6916extern "C" { 6917#endif 6918char nm_test_var; 6919void nm_test_func(void); 6920void nm_test_func(void){} 6921#ifdef __cplusplus 6922} 6923#endif 6924int main(){nm_test_var='a';nm_test_func();return(0);} 6925_LT_EOF 6926 6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6928 (eval $ac_compile) 2>&5 6929 ac_status=$? 6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6931 test $ac_status = 0; }; then 6932 # Now try to grab the symbols. 6933 nlist=conftest.nm 6934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6935 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6936 ac_status=$? 6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6938 test $ac_status = 0; } && test -s "$nlist"; then 6939 # Try sorting and uniquifying the output. 6940 if sort "$nlist" | uniq > "$nlist"T; then 6941 mv -f "$nlist"T "$nlist" 6942 else 6943 rm -f "$nlist"T 6944 fi 6945 6946 # Make sure that we snagged all the symbols we need. 6947 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6948 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6949 cat <<_LT_EOF > conftest.$ac_ext 6950/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6951#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6952/* DATA imports from DLLs on WIN32 can't be const, because runtime 6953 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6954# define LT_DLSYM_CONST 6955#elif defined __osf__ 6956/* This system does not cope well with relocations in const data. */ 6957# define LT_DLSYM_CONST 6958#else 6959# define LT_DLSYM_CONST const 6960#endif 6961 6962#ifdef __cplusplus 6963extern "C" { 6964#endif 6965 6966_LT_EOF 6967 # Now generate the symbol file. 6968 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6969 6970 cat <<_LT_EOF >> conftest.$ac_ext 6971 6972/* The mapping between symbol names and symbols. */ 6973LT_DLSYM_CONST struct { 6974 const char *name; 6975 void *address; 6976} 6977lt__PROGRAM__LTX_preloaded_symbols[] = 6978{ 6979 { "@PROGRAM@", (void *) 0 }, 6980_LT_EOF 6981 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6982 cat <<\_LT_EOF >> conftest.$ac_ext 6983 {0, (void *) 0} 6984}; 6985 6986/* This works around a problem in FreeBSD linker */ 6987#ifdef FREEBSD_WORKAROUND 6988static const void *lt_preloaded_setup() { 6989 return lt__PROGRAM__LTX_preloaded_symbols; 6990} 6991#endif 6992 6993#ifdef __cplusplus 6994} 6995#endif 6996_LT_EOF 6997 # Now try linking the two files. 6998 mv conftest.$ac_objext conftstm.$ac_objext 6999 lt_globsym_save_LIBS=$LIBS 7000 lt_globsym_save_CFLAGS=$CFLAGS 7001 LIBS=conftstm.$ac_objext 7002 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7004 (eval $ac_link) 2>&5 7005 ac_status=$? 7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7008 pipe_works=yes 7009 fi 7010 LIBS=$lt_globsym_save_LIBS 7011 CFLAGS=$lt_globsym_save_CFLAGS 7012 else 7013 echo "cannot find nm_test_func in $nlist" >&5 7014 fi 7015 else 7016 echo "cannot find nm_test_var in $nlist" >&5 7017 fi 7018 else 7019 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7020 fi 7021 else 7022 echo "$progname: failed program was:" >&5 7023 cat conftest.$ac_ext >&5 7024 fi 7025 rm -rf conftest* conftst* 7026 7027 # Do not use the global_symbol_pipe unless it works. 7028 if test yes = "$pipe_works"; then 7029 break 7030 else 7031 lt_cv_sys_global_symbol_pipe= 7032 fi 7033done 7034 7035fi 7036 7037if test -z "$lt_cv_sys_global_symbol_pipe"; then 7038 lt_cv_sys_global_symbol_to_cdecl= 7039fi 7040if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7042$as_echo "failed" >&6; } 7043else 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7045$as_echo "ok" >&6; } 7046fi 7047 7048# Response file support. 7049if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7050 nm_file_list_spec='@' 7051elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7052 nm_file_list_spec='@' 7053fi 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7092$as_echo_n "checking for sysroot... " >&6; } 7093 7094# Check whether --with-sysroot was given. 7095if test "${with_sysroot+set}" = set; then : 7096 withval=$with_sysroot; 7097else 7098 with_sysroot=no 7099fi 7100 7101 7102lt_sysroot= 7103case $with_sysroot in #( 7104 yes) 7105 if test yes = "$GCC"; then 7106 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7107 fi 7108 ;; #( 7109 /*) 7110 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7111 ;; #( 7112 no|'') 7113 ;; #( 7114 *) 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7116$as_echo "$with_sysroot" >&6; } 7117 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7118 ;; 7119esac 7120 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7122$as_echo "${lt_sysroot:-no}" >&6; } 7123 7124 7125 7126 7127 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7129$as_echo_n "checking for a working dd... " >&6; } 7130if ${ac_cv_path_lt_DD+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 printf 0123456789abcdef0123456789abcdef >conftest.i 7134cat conftest.i conftest.i >conftest2.i 7135: ${lt_DD:=$DD} 7136if test -z "$lt_DD"; then 7137 ac_path_lt_DD_found=false 7138 # Loop through the user's path and test for each of PROGNAME-LIST 7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140for as_dir in $PATH 7141do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_prog in dd; do 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7147 as_fn_executable_p "$ac_path_lt_DD" || continue 7148if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7149 cmp -s conftest.i conftest.out \ 7150 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7151fi 7152 $ac_path_lt_DD_found && break 3 7153 done 7154 done 7155 done 7156IFS=$as_save_IFS 7157 if test -z "$ac_cv_path_lt_DD"; then 7158 : 7159 fi 7160else 7161 ac_cv_path_lt_DD=$lt_DD 7162fi 7163 7164rm -f conftest.i conftest2.i conftest.out 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7167$as_echo "$ac_cv_path_lt_DD" >&6; } 7168 7169 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7171$as_echo_n "checking how to truncate binary pipes... " >&6; } 7172if ${lt_cv_truncate_bin+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 printf 0123456789abcdef0123456789abcdef >conftest.i 7176cat conftest.i conftest.i >conftest2.i 7177lt_cv_truncate_bin= 7178if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7179 cmp -s conftest.i conftest.out \ 7180 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7181fi 7182rm -f conftest.i conftest2.i conftest.out 7183test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7186$as_echo "$lt_cv_truncate_bin" >&6; } 7187 7188 7189 7190 7191 7192 7193 7194# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7195func_cc_basename () 7196{ 7197 for cc_temp in $*""; do 7198 case $cc_temp in 7199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7201 \-*) ;; 7202 *) break;; 7203 esac 7204 done 7205 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7206} 7207 7208# Check whether --enable-libtool-lock was given. 7209if test "${enable_libtool_lock+set}" = set; then : 7210 enableval=$enable_libtool_lock; 7211fi 7212 7213test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7214 7215# Some flags need to be propagated to the compiler or linker for good 7216# libtool support. 7217case $host in 7218ia64-*-hpux*) 7219 # Find out what ABI is being produced by ac_compile, and set mode 7220 # options accordingly. 7221 echo 'int i;' > conftest.$ac_ext 7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7223 (eval $ac_compile) 2>&5 7224 ac_status=$? 7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7226 test $ac_status = 0; }; then 7227 case `/usr/bin/file conftest.$ac_objext` in 7228 *ELF-32*) 7229 HPUX_IA64_MODE=32 7230 ;; 7231 *ELF-64*) 7232 HPUX_IA64_MODE=64 7233 ;; 7234 esac 7235 fi 7236 rm -rf conftest* 7237 ;; 7238*-*-irix6*) 7239 # Find out what ABI is being produced by ac_compile, and set linker 7240 # options accordingly. 7241 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7243 (eval $ac_compile) 2>&5 7244 ac_status=$? 7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7246 test $ac_status = 0; }; then 7247 if test yes = "$lt_cv_prog_gnu_ld"; then 7248 case `/usr/bin/file conftest.$ac_objext` in 7249 *32-bit*) 7250 LD="${LD-ld} -melf32bsmip" 7251 ;; 7252 *N32*) 7253 LD="${LD-ld} -melf32bmipn32" 7254 ;; 7255 *64-bit*) 7256 LD="${LD-ld} -melf64bmip" 7257 ;; 7258 esac 7259 else 7260 case `/usr/bin/file conftest.$ac_objext` in 7261 *32-bit*) 7262 LD="${LD-ld} -32" 7263 ;; 7264 *N32*) 7265 LD="${LD-ld} -n32" 7266 ;; 7267 *64-bit*) 7268 LD="${LD-ld} -64" 7269 ;; 7270 esac 7271 fi 7272 fi 7273 rm -rf conftest* 7274 ;; 7275 7276mips64*-*linux*) 7277 # Find out what ABI is being produced by ac_compile, and set linker 7278 # options accordingly. 7279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7281 (eval $ac_compile) 2>&5 7282 ac_status=$? 7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; }; then 7285 emul=elf 7286 case `/usr/bin/file conftest.$ac_objext` in 7287 *32-bit*) 7288 emul="${emul}32" 7289 ;; 7290 *64-bit*) 7291 emul="${emul}64" 7292 ;; 7293 esac 7294 case `/usr/bin/file conftest.$ac_objext` in 7295 *MSB*) 7296 emul="${emul}btsmip" 7297 ;; 7298 *LSB*) 7299 emul="${emul}ltsmip" 7300 ;; 7301 esac 7302 case `/usr/bin/file conftest.$ac_objext` in 7303 *N32*) 7304 emul="${emul}n32" 7305 ;; 7306 esac 7307 LD="${LD-ld} -m $emul" 7308 fi 7309 rm -rf conftest* 7310 ;; 7311 7312x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7313s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7314 # Find out what ABI is being produced by ac_compile, and set linker 7315 # options accordingly. Note that the listed cases only cover the 7316 # situations where additional linker options are needed (such as when 7317 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7318 # vice versa); the common cases where no linker options are needed do 7319 # not appear in the list. 7320 echo 'int i;' > conftest.$ac_ext 7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7322 (eval $ac_compile) 2>&5 7323 ac_status=$? 7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7325 test $ac_status = 0; }; then 7326 case `/usr/bin/file conftest.o` in 7327 *32-bit*) 7328 case $host in 7329 x86_64-*kfreebsd*-gnu) 7330 LD="${LD-ld} -m elf_i386_fbsd" 7331 ;; 7332 x86_64-*linux*) 7333 case `/usr/bin/file conftest.o` in 7334 *x86-64*) 7335 LD="${LD-ld} -m elf32_x86_64" 7336 ;; 7337 *) 7338 LD="${LD-ld} -m elf_i386" 7339 ;; 7340 esac 7341 ;; 7342 powerpc64le-*linux*) 7343 LD="${LD-ld} -m elf32lppclinux" 7344 ;; 7345 powerpc64-*linux*) 7346 LD="${LD-ld} -m elf32ppclinux" 7347 ;; 7348 s390x-*linux*) 7349 LD="${LD-ld} -m elf_s390" 7350 ;; 7351 sparc64-*linux*) 7352 LD="${LD-ld} -m elf32_sparc" 7353 ;; 7354 esac 7355 ;; 7356 *64-bit*) 7357 case $host in 7358 x86_64-*kfreebsd*-gnu) 7359 LD="${LD-ld} -m elf_x86_64_fbsd" 7360 ;; 7361 x86_64-*linux*) 7362 LD="${LD-ld} -m elf_x86_64" 7363 ;; 7364 powerpcle-*linux*) 7365 LD="${LD-ld} -m elf64lppc" 7366 ;; 7367 powerpc-*linux*) 7368 LD="${LD-ld} -m elf64ppc" 7369 ;; 7370 s390*-*linux*|s390*-*tpf*) 7371 LD="${LD-ld} -m elf64_s390" 7372 ;; 7373 sparc*-*linux*) 7374 LD="${LD-ld} -m elf64_sparc" 7375 ;; 7376 esac 7377 ;; 7378 esac 7379 fi 7380 rm -rf conftest* 7381 ;; 7382 7383*-*-sco3.2v5*) 7384 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7385 SAVE_CFLAGS=$CFLAGS 7386 CFLAGS="$CFLAGS -belf" 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7388$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7389if ${lt_cv_cc_needs_belf+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 ac_ext=c 7393ac_cpp='$CPP $CPPFLAGS' 7394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7396ac_compiler_gnu=$ac_cv_c_compiler_gnu 7397 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400 7401int 7402main () 7403{ 7404 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409if ac_fn_c_try_link "$LINENO"; then : 7410 lt_cv_cc_needs_belf=yes 7411else 7412 lt_cv_cc_needs_belf=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext \ 7415 conftest$ac_exeext conftest.$ac_ext 7416 ac_ext=c 7417ac_cpp='$CPP $CPPFLAGS' 7418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7420ac_compiler_gnu=$ac_cv_c_compiler_gnu 7421 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7424$as_echo "$lt_cv_cc_needs_belf" >&6; } 7425 if test yes != "$lt_cv_cc_needs_belf"; then 7426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7427 CFLAGS=$SAVE_CFLAGS 7428 fi 7429 ;; 7430*-*solaris*) 7431 # Find out what ABI is being produced by ac_compile, and set linker 7432 # options accordingly. 7433 echo 'int i;' > conftest.$ac_ext 7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7435 (eval $ac_compile) 2>&5 7436 ac_status=$? 7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7438 test $ac_status = 0; }; then 7439 case `/usr/bin/file conftest.o` in 7440 *64-bit*) 7441 case $lt_cv_prog_gnu_ld in 7442 yes*) 7443 case $host in 7444 i?86-*-solaris*|x86_64-*-solaris*) 7445 LD="${LD-ld} -m elf_x86_64" 7446 ;; 7447 sparc*-*-solaris*) 7448 LD="${LD-ld} -m elf64_sparc" 7449 ;; 7450 esac 7451 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7452 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7453 LD=${LD-ld}_sol2 7454 fi 7455 ;; 7456 *) 7457 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7458 LD="${LD-ld} -64" 7459 fi 7460 ;; 7461 esac 7462 ;; 7463 esac 7464 fi 7465 rm -rf conftest* 7466 ;; 7467esac 7468 7469need_locks=$enable_libtool_lock 7470 7471if test -n "$ac_tool_prefix"; then 7472 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7473set dummy ${ac_tool_prefix}mt; ac_word=$2 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7475$as_echo_n "checking for $ac_word... " >&6; } 7476if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 if test -n "$MANIFEST_TOOL"; then 7480 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7481else 7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7483for as_dir in $PATH 7484do 7485 IFS=$as_save_IFS 7486 test -z "$as_dir" && as_dir=. 7487 for ac_exec_ext in '' $ac_executable_extensions; do 7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7489 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7491 break 2 7492 fi 7493done 7494 done 7495IFS=$as_save_IFS 7496 7497fi 7498fi 7499MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7500if test -n "$MANIFEST_TOOL"; then 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7502$as_echo "$MANIFEST_TOOL" >&6; } 7503else 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7505$as_echo "no" >&6; } 7506fi 7507 7508 7509fi 7510if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7511 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7512 # Extract the first word of "mt", so it can be a program name with args. 7513set dummy mt; ac_word=$2 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515$as_echo_n "checking for $ac_word... " >&6; } 7516if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 if test -n "$ac_ct_MANIFEST_TOOL"; then 7520 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7521else 7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7523for as_dir in $PATH 7524do 7525 IFS=$as_save_IFS 7526 test -z "$as_dir" && as_dir=. 7527 for ac_exec_ext in '' $ac_executable_extensions; do 7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7529 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7531 break 2 7532 fi 7533done 7534 done 7535IFS=$as_save_IFS 7536 7537fi 7538fi 7539ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7540if test -n "$ac_ct_MANIFEST_TOOL"; then 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7542$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7543else 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7545$as_echo "no" >&6; } 7546fi 7547 7548 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7549 MANIFEST_TOOL=":" 7550 else 7551 case $cross_compiling:$ac_tool_warned in 7552yes:) 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7555ac_tool_warned=yes ;; 7556esac 7557 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7558 fi 7559else 7560 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7561fi 7562 7563test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7565$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7566if ${lt_cv_path_mainfest_tool+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 lt_cv_path_mainfest_tool=no 7570 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7571 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7572 cat conftest.err >&5 7573 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7574 lt_cv_path_mainfest_tool=yes 7575 fi 7576 rm -f conftest* 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7579$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7580if test yes != "$lt_cv_path_mainfest_tool"; then 7581 MANIFEST_TOOL=: 7582fi 7583 7584 7585 7586 7587 7588 7589 case $host_os in 7590 rhapsody* | darwin*) 7591 if test -n "$ac_tool_prefix"; then 7592 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7593set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7595$as_echo_n "checking for $ac_word... " >&6; } 7596if ${ac_cv_prog_DSYMUTIL+:} false; then : 7597 $as_echo_n "(cached) " >&6 7598else 7599 if test -n "$DSYMUTIL"; then 7600 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7601else 7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7603for as_dir in $PATH 7604do 7605 IFS=$as_save_IFS 7606 test -z "$as_dir" && as_dir=. 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619DSYMUTIL=$ac_cv_prog_DSYMUTIL 7620if test -n "$DSYMUTIL"; then 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7622$as_echo "$DSYMUTIL" >&6; } 7623else 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625$as_echo "no" >&6; } 7626fi 7627 7628 7629fi 7630if test -z "$ac_cv_prog_DSYMUTIL"; then 7631 ac_ct_DSYMUTIL=$DSYMUTIL 7632 # Extract the first word of "dsymutil", so it can be a program name with args. 7633set dummy dsymutil; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -n "$ac_ct_DSYMUTIL"; then 7640 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654 done 7655IFS=$as_save_IFS 7656 7657fi 7658fi 7659ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7660if test -n "$ac_ct_DSYMUTIL"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7662$as_echo "$ac_ct_DSYMUTIL" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 if test "x$ac_ct_DSYMUTIL" = x; then 7669 DSYMUTIL=":" 7670 else 7671 case $cross_compiling:$ac_tool_warned in 7672yes:) 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7675ac_tool_warned=yes ;; 7676esac 7677 DSYMUTIL=$ac_ct_DSYMUTIL 7678 fi 7679else 7680 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7681fi 7682 7683 if test -n "$ac_tool_prefix"; then 7684 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7685set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7687$as_echo_n "checking for $ac_word... " >&6; } 7688if ${ac_cv_prog_NMEDIT+:} false; then : 7689 $as_echo_n "(cached) " >&6 7690else 7691 if test -n "$NMEDIT"; then 7692 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7693else 7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695for as_dir in $PATH 7696do 7697 IFS=$as_save_IFS 7698 test -z "$as_dir" && as_dir=. 7699 for ac_exec_ext in '' $ac_executable_extensions; do 7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7701 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7703 break 2 7704 fi 7705done 7706 done 7707IFS=$as_save_IFS 7708 7709fi 7710fi 7711NMEDIT=$ac_cv_prog_NMEDIT 7712if test -n "$NMEDIT"; then 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7714$as_echo "$NMEDIT" >&6; } 7715else 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7717$as_echo "no" >&6; } 7718fi 7719 7720 7721fi 7722if test -z "$ac_cv_prog_NMEDIT"; then 7723 ac_ct_NMEDIT=$NMEDIT 7724 # Extract the first word of "nmedit", so it can be a program name with args. 7725set dummy nmedit; ac_word=$2 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727$as_echo_n "checking for $ac_word... " >&6; } 7728if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 if test -n "$ac_ct_NMEDIT"; then 7732 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7733else 7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735for as_dir in $PATH 7736do 7737 IFS=$as_save_IFS 7738 test -z "$as_dir" && as_dir=. 7739 for ac_exec_ext in '' $ac_executable_extensions; do 7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7741 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7743 break 2 7744 fi 7745done 7746 done 7747IFS=$as_save_IFS 7748 7749fi 7750fi 7751ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7752if test -n "$ac_ct_NMEDIT"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7754$as_echo "$ac_ct_NMEDIT" >&6; } 7755else 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757$as_echo "no" >&6; } 7758fi 7759 7760 if test "x$ac_ct_NMEDIT" = x; then 7761 NMEDIT=":" 7762 else 7763 case $cross_compiling:$ac_tool_warned in 7764yes:) 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7767ac_tool_warned=yes ;; 7768esac 7769 NMEDIT=$ac_ct_NMEDIT 7770 fi 7771else 7772 NMEDIT="$ac_cv_prog_NMEDIT" 7773fi 7774 7775 if test -n "$ac_tool_prefix"; then 7776 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7777set dummy ${ac_tool_prefix}lipo; ac_word=$2 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779$as_echo_n "checking for $ac_word... " >&6; } 7780if ${ac_cv_prog_LIPO+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 if test -n "$LIPO"; then 7784 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7785else 7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7787for as_dir in $PATH 7788do 7789 IFS=$as_save_IFS 7790 test -z "$as_dir" && as_dir=. 7791 for ac_exec_ext in '' $ac_executable_extensions; do 7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7793 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7795 break 2 7796 fi 7797done 7798 done 7799IFS=$as_save_IFS 7800 7801fi 7802fi 7803LIPO=$ac_cv_prog_LIPO 7804if test -n "$LIPO"; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7806$as_echo "$LIPO" >&6; } 7807else 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809$as_echo "no" >&6; } 7810fi 7811 7812 7813fi 7814if test -z "$ac_cv_prog_LIPO"; then 7815 ac_ct_LIPO=$LIPO 7816 # Extract the first word of "lipo", so it can be a program name with args. 7817set dummy lipo; ac_word=$2 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7819$as_echo_n "checking for $ac_word... " >&6; } 7820if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 if test -n "$ac_ct_LIPO"; then 7824 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7825else 7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7827for as_dir in $PATH 7828do 7829 IFS=$as_save_IFS 7830 test -z "$as_dir" && as_dir=. 7831 for ac_exec_ext in '' $ac_executable_extensions; do 7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7833 ac_cv_prog_ac_ct_LIPO="lipo" 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7835 break 2 7836 fi 7837done 7838 done 7839IFS=$as_save_IFS 7840 7841fi 7842fi 7843ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7844if test -n "$ac_ct_LIPO"; then 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7846$as_echo "$ac_ct_LIPO" >&6; } 7847else 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7849$as_echo "no" >&6; } 7850fi 7851 7852 if test "x$ac_ct_LIPO" = x; then 7853 LIPO=":" 7854 else 7855 case $cross_compiling:$ac_tool_warned in 7856yes:) 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7859ac_tool_warned=yes ;; 7860esac 7861 LIPO=$ac_ct_LIPO 7862 fi 7863else 7864 LIPO="$ac_cv_prog_LIPO" 7865fi 7866 7867 if test -n "$ac_tool_prefix"; then 7868 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7869set dummy ${ac_tool_prefix}otool; ac_word=$2 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7871$as_echo_n "checking for $ac_word... " >&6; } 7872if ${ac_cv_prog_OTOOL+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 if test -n "$OTOOL"; then 7876 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7877else 7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7879for as_dir in $PATH 7880do 7881 IFS=$as_save_IFS 7882 test -z "$as_dir" && as_dir=. 7883 for ac_exec_ext in '' $ac_executable_extensions; do 7884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7885 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7887 break 2 7888 fi 7889done 7890 done 7891IFS=$as_save_IFS 7892 7893fi 7894fi 7895OTOOL=$ac_cv_prog_OTOOL 7896if test -n "$OTOOL"; then 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7898$as_echo "$OTOOL" >&6; } 7899else 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7901$as_echo "no" >&6; } 7902fi 7903 7904 7905fi 7906if test -z "$ac_cv_prog_OTOOL"; then 7907 ac_ct_OTOOL=$OTOOL 7908 # Extract the first word of "otool", so it can be a program name with args. 7909set dummy otool; ac_word=$2 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7911$as_echo_n "checking for $ac_word... " >&6; } 7912if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 if test -n "$ac_ct_OTOOL"; then 7916 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7917else 7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919for as_dir in $PATH 7920do 7921 IFS=$as_save_IFS 7922 test -z "$as_dir" && as_dir=. 7923 for ac_exec_ext in '' $ac_executable_extensions; do 7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7925 ac_cv_prog_ac_ct_OTOOL="otool" 7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7927 break 2 7928 fi 7929done 7930 done 7931IFS=$as_save_IFS 7932 7933fi 7934fi 7935ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7936if test -n "$ac_ct_OTOOL"; then 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7938$as_echo "$ac_ct_OTOOL" >&6; } 7939else 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7941$as_echo "no" >&6; } 7942fi 7943 7944 if test "x$ac_ct_OTOOL" = x; then 7945 OTOOL=":" 7946 else 7947 case $cross_compiling:$ac_tool_warned in 7948yes:) 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7951ac_tool_warned=yes ;; 7952esac 7953 OTOOL=$ac_ct_OTOOL 7954 fi 7955else 7956 OTOOL="$ac_cv_prog_OTOOL" 7957fi 7958 7959 if test -n "$ac_tool_prefix"; then 7960 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7961set dummy ${ac_tool_prefix}otool64; ac_word=$2 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7963$as_echo_n "checking for $ac_word... " >&6; } 7964if ${ac_cv_prog_OTOOL64+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 if test -n "$OTOOL64"; then 7968 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7969else 7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7971for as_dir in $PATH 7972do 7973 IFS=$as_save_IFS 7974 test -z "$as_dir" && as_dir=. 7975 for ac_exec_ext in '' $ac_executable_extensions; do 7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7977 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7979 break 2 7980 fi 7981done 7982 done 7983IFS=$as_save_IFS 7984 7985fi 7986fi 7987OTOOL64=$ac_cv_prog_OTOOL64 7988if test -n "$OTOOL64"; then 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7990$as_echo "$OTOOL64" >&6; } 7991else 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7993$as_echo "no" >&6; } 7994fi 7995 7996 7997fi 7998if test -z "$ac_cv_prog_OTOOL64"; then 7999 ac_ct_OTOOL64=$OTOOL64 8000 # Extract the first word of "otool64", so it can be a program name with args. 8001set dummy otool64; ac_word=$2 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8003$as_echo_n "checking for $ac_word... " >&6; } 8004if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 if test -n "$ac_ct_OTOOL64"; then 8008 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8009else 8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8011for as_dir in $PATH 8012do 8013 IFS=$as_save_IFS 8014 test -z "$as_dir" && as_dir=. 8015 for ac_exec_ext in '' $ac_executable_extensions; do 8016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8017 ac_cv_prog_ac_ct_OTOOL64="otool64" 8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8019 break 2 8020 fi 8021done 8022 done 8023IFS=$as_save_IFS 8024 8025fi 8026fi 8027ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8028if test -n "$ac_ct_OTOOL64"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8030$as_echo "$ac_ct_OTOOL64" >&6; } 8031else 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8033$as_echo "no" >&6; } 8034fi 8035 8036 if test "x$ac_ct_OTOOL64" = x; then 8037 OTOOL64=":" 8038 else 8039 case $cross_compiling:$ac_tool_warned in 8040yes:) 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8043ac_tool_warned=yes ;; 8044esac 8045 OTOOL64=$ac_ct_OTOOL64 8046 fi 8047else 8048 OTOOL64="$ac_cv_prog_OTOOL64" 8049fi 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8078$as_echo_n "checking for -single_module linker flag... " >&6; } 8079if ${lt_cv_apple_cc_single_mod+:} false; then : 8080 $as_echo_n "(cached) " >&6 8081else 8082 lt_cv_apple_cc_single_mod=no 8083 if test -z "$LT_MULTI_MODULE"; then 8084 # By default we will add the -single_module flag. You can override 8085 # by either setting the environment variable LT_MULTI_MODULE 8086 # non-empty at configure time, or by adding -multi_module to the 8087 # link flags. 8088 rm -rf libconftest.dylib* 8089 echo "int foo(void){return 1;}" > conftest.c 8090 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8091-dynamiclib -Wl,-single_module conftest.c" >&5 8092 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8093 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8094 _lt_result=$? 8095 # If there is a non-empty error log, and "single_module" 8096 # appears in it, assume the flag caused a linker warning 8097 if test -s conftest.err && $GREP single_module conftest.err; then 8098 cat conftest.err >&5 8099 # Otherwise, if the output was created with a 0 exit code from 8100 # the compiler, it worked. 8101 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8102 lt_cv_apple_cc_single_mod=yes 8103 else 8104 cat conftest.err >&5 8105 fi 8106 rm -rf libconftest.dylib* 8107 rm -f conftest.* 8108 fi 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8111$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8112 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8114$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8115if ${lt_cv_ld_exported_symbols_list+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 lt_cv_ld_exported_symbols_list=no 8119 save_LDFLAGS=$LDFLAGS 8120 echo "_main" > conftest.sym 8121 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124 8125int 8126main () 8127{ 8128 8129 ; 8130 return 0; 8131} 8132_ACEOF 8133if ac_fn_c_try_link "$LINENO"; then : 8134 lt_cv_ld_exported_symbols_list=yes 8135else 8136 lt_cv_ld_exported_symbols_list=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext \ 8139 conftest$ac_exeext conftest.$ac_ext 8140 LDFLAGS=$save_LDFLAGS 8141 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8144$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8147$as_echo_n "checking for -force_load linker flag... " >&6; } 8148if ${lt_cv_ld_force_load+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 lt_cv_ld_force_load=no 8152 cat > conftest.c << _LT_EOF 8153int forced_loaded() { return 2;} 8154_LT_EOF 8155 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8156 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8157 echo "$AR cru libconftest.a conftest.o" >&5 8158 $AR cru libconftest.a conftest.o 2>&5 8159 echo "$RANLIB libconftest.a" >&5 8160 $RANLIB libconftest.a 2>&5 8161 cat > conftest.c << _LT_EOF 8162int main() { return 0;} 8163_LT_EOF 8164 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8165 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8166 _lt_result=$? 8167 if test -s conftest.err && $GREP force_load conftest.err; then 8168 cat conftest.err >&5 8169 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8170 lt_cv_ld_force_load=yes 8171 else 8172 cat conftest.err >&5 8173 fi 8174 rm -f conftest.err libconftest.a conftest conftest.c 8175 rm -rf conftest.dSYM 8176 8177fi 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8179$as_echo "$lt_cv_ld_force_load" >&6; } 8180 case $host_os in 8181 rhapsody* | darwin1.[012]) 8182 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8183 darwin1.*) 8184 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8185 darwin*) # darwin 5.x on 8186 # if running on 10.5 or later, the deployment target defaults 8187 # to the OS version, if on x86, and 10.4, the deployment 8188 # target defaults to 10.4. Don't you love it? 8189 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8190 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8191 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8192 10.[012][,.]*) 8193 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8194 10.*) 8195 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8196 esac 8197 ;; 8198 esac 8199 if test yes = "$lt_cv_apple_cc_single_mod"; then 8200 _lt_dar_single_mod='$single_module' 8201 fi 8202 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8203 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8204 else 8205 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8206 fi 8207 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8208 _lt_dsymutil='~$DSYMUTIL $lib || :' 8209 else 8210 _lt_dsymutil= 8211 fi 8212 ;; 8213 esac 8214 8215# func_munge_path_list VARIABLE PATH 8216# ----------------------------------- 8217# VARIABLE is name of variable containing _space_ separated list of 8218# directories to be munged by the contents of PATH, which is string 8219# having a format: 8220# "DIR[:DIR]:" 8221# string "DIR[ DIR]" will be prepended to VARIABLE 8222# ":DIR[:DIR]" 8223# string "DIR[ DIR]" will be appended to VARIABLE 8224# "DIRP[:DIRP]::[DIRA:]DIRA" 8225# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8226# "DIRA[ DIRA]" will be appended to VARIABLE 8227# "DIR[:DIR]" 8228# VARIABLE will be replaced by "DIR[ DIR]" 8229func_munge_path_list () 8230{ 8231 case x$2 in 8232 x) 8233 ;; 8234 *:) 8235 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8236 ;; 8237 x:*) 8238 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8239 ;; 8240 *::*) 8241 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8242 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8243 ;; 8244 *) 8245 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8246 ;; 8247 esac 8248} 8249 8250for ac_header in dlfcn.h 8251do : 8252 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8253" 8254if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8255 cat >>confdefs.h <<_ACEOF 8256#define HAVE_DLFCN_H 1 8257_ACEOF 8258 8259fi 8260 8261done 8262 8263 8264 8265 8266 8267# Set options 8268 8269 8270 8271 enable_dlopen=no 8272 8273 8274 enable_win32_dll=no 8275 8276 8277 # Check whether --enable-shared was given. 8278if test "${enable_shared+set}" = set; then : 8279 enableval=$enable_shared; p=${PACKAGE-default} 8280 case $enableval in 8281 yes) enable_shared=yes ;; 8282 no) enable_shared=no ;; 8283 *) 8284 enable_shared=no 8285 # Look at the argument we got. We use all the common list separators. 8286 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8287 for pkg in $enableval; do 8288 IFS=$lt_save_ifs 8289 if test "X$pkg" = "X$p"; then 8290 enable_shared=yes 8291 fi 8292 done 8293 IFS=$lt_save_ifs 8294 ;; 8295 esac 8296else 8297 enable_shared=yes 8298fi 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 # Check whether --enable-static was given. 8309if test "${enable_static+set}" = set; then : 8310 enableval=$enable_static; p=${PACKAGE-default} 8311 case $enableval in 8312 yes) enable_static=yes ;; 8313 no) enable_static=no ;; 8314 *) 8315 enable_static=no 8316 # Look at the argument we got. We use all the common list separators. 8317 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8318 for pkg in $enableval; do 8319 IFS=$lt_save_ifs 8320 if test "X$pkg" = "X$p"; then 8321 enable_static=yes 8322 fi 8323 done 8324 IFS=$lt_save_ifs 8325 ;; 8326 esac 8327else 8328 enable_static=yes 8329fi 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340# Check whether --with-pic was given. 8341if test "${with_pic+set}" = set; then : 8342 withval=$with_pic; lt_p=${PACKAGE-default} 8343 case $withval in 8344 yes|no) pic_mode=$withval ;; 8345 *) 8346 pic_mode=default 8347 # Look at the argument we got. We use all the common list separators. 8348 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8349 for lt_pkg in $withval; do 8350 IFS=$lt_save_ifs 8351 if test "X$lt_pkg" = "X$lt_p"; then 8352 pic_mode=yes 8353 fi 8354 done 8355 IFS=$lt_save_ifs 8356 ;; 8357 esac 8358else 8359 pic_mode=default 8360fi 8361 8362 8363 8364 8365 8366 8367 8368 8369 # Check whether --enable-fast-install was given. 8370if test "${enable_fast_install+set}" = set; then : 8371 enableval=$enable_fast_install; p=${PACKAGE-default} 8372 case $enableval in 8373 yes) enable_fast_install=yes ;; 8374 no) enable_fast_install=no ;; 8375 *) 8376 enable_fast_install=no 8377 # Look at the argument we got. We use all the common list separators. 8378 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8379 for pkg in $enableval; do 8380 IFS=$lt_save_ifs 8381 if test "X$pkg" = "X$p"; then 8382 enable_fast_install=yes 8383 fi 8384 done 8385 IFS=$lt_save_ifs 8386 ;; 8387 esac 8388else 8389 enable_fast_install=yes 8390fi 8391 8392 8393 8394 8395 8396 8397 8398 8399 shared_archive_member_spec= 8400case $host,$enable_shared in 8401power*-*-aix[5-9]*,yes) 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8403$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8404 8405# Check whether --with-aix-soname was given. 8406if test "${with_aix_soname+set}" = set; then : 8407 withval=$with_aix_soname; case $withval in 8408 aix|svr4|both) 8409 ;; 8410 *) 8411 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8412 ;; 8413 esac 8414 lt_cv_with_aix_soname=$with_aix_soname 8415else 8416 if ${lt_cv_with_aix_soname+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 lt_cv_with_aix_soname=aix 8420fi 8421 8422 with_aix_soname=$lt_cv_with_aix_soname 8423fi 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8426$as_echo "$with_aix_soname" >&6; } 8427 if test aix != "$with_aix_soname"; then 8428 # For the AIX way of multilib, we name the shared archive member 8429 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8430 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8431 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8432 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8433 if test 64 = "${OBJECT_MODE-32}"; then 8434 shared_archive_member_spec=shr_64 8435 else 8436 shared_archive_member_spec=shr 8437 fi 8438 fi 8439 ;; 8440*) 8441 with_aix_soname=aix 8442 ;; 8443esac 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454# This can be used to rebuild libtool when needed 8455LIBTOOL_DEPS=$ltmain 8456 8457# Always use our own libtool. 8458LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489test -z "$LN_S" && LN_S="ln -s" 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504if test -n "${ZSH_VERSION+set}"; then 8505 setopt NO_GLOB_SUBST 8506fi 8507 8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8509$as_echo_n "checking for objdir... " >&6; } 8510if ${lt_cv_objdir+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 rm -f .libs 2>/dev/null 8514mkdir .libs 2>/dev/null 8515if test -d .libs; then 8516 lt_cv_objdir=.libs 8517else 8518 # MS-DOS does not allow filenames that begin with a dot. 8519 lt_cv_objdir=_libs 8520fi 8521rmdir .libs 2>/dev/null 8522fi 8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8524$as_echo "$lt_cv_objdir" >&6; } 8525objdir=$lt_cv_objdir 8526 8527 8528 8529 8530 8531cat >>confdefs.h <<_ACEOF 8532#define LT_OBJDIR "$lt_cv_objdir/" 8533_ACEOF 8534 8535 8536 8537 8538case $host_os in 8539aix3*) 8540 # AIX sometimes has problems with the GCC collect2 program. For some 8541 # reason, if we set the COLLECT_NAMES environment variable, the problems 8542 # vanish in a puff of smoke. 8543 if test set != "${COLLECT_NAMES+set}"; then 8544 COLLECT_NAMES= 8545 export COLLECT_NAMES 8546 fi 8547 ;; 8548esac 8549 8550# Global variables: 8551ofile=libtool 8552can_build_shared=yes 8553 8554# All known linkers require a '.a' archive for static linking (except MSVC, 8555# which needs '.lib'). 8556libext=a 8557 8558with_gnu_ld=$lt_cv_prog_gnu_ld 8559 8560old_CC=$CC 8561old_CFLAGS=$CFLAGS 8562 8563# Set sane defaults for various variables 8564test -z "$CC" && CC=cc 8565test -z "$LTCC" && LTCC=$CC 8566test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8567test -z "$LD" && LD=ld 8568test -z "$ac_objext" && ac_objext=o 8569 8570func_cc_basename $compiler 8571cc_basename=$func_cc_basename_result 8572 8573 8574# Only perform the check for file, if the check method requires it 8575test -z "$MAGIC_CMD" && MAGIC_CMD=file 8576case $deplibs_check_method in 8577file_magic*) 8578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8580$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8581if ${lt_cv_path_MAGIC_CMD+:} false; then : 8582 $as_echo_n "(cached) " >&6 8583else 8584 case $MAGIC_CMD in 8585[\\/*] | ?:[\\/]*) 8586 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8587 ;; 8588*) 8589 lt_save_MAGIC_CMD=$MAGIC_CMD 8590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8592 for ac_dir in $ac_dummy; do 8593 IFS=$lt_save_ifs 8594 test -z "$ac_dir" && ac_dir=. 8595 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8596 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8597 if test -n "$file_magic_test_file"; then 8598 case $deplibs_check_method in 8599 "file_magic "*) 8600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8603 $EGREP "$file_magic_regex" > /dev/null; then 8604 : 8605 else 8606 cat <<_LT_EOF 1>&2 8607 8608*** Warning: the command libtool uses to detect shared libraries, 8609*** $file_magic_cmd, produces output that libtool cannot recognize. 8610*** The result is that libtool may fail to recognize shared libraries 8611*** as such. This will affect the creation of libtool libraries that 8612*** depend on shared libraries, but programs linked with such libtool 8613*** libraries will work regardless of this problem. Nevertheless, you 8614*** may want to report the problem to your system manager and/or to 8615*** bug-libtool@gnu.org 8616 8617_LT_EOF 8618 fi ;; 8619 esac 8620 fi 8621 break 8622 fi 8623 done 8624 IFS=$lt_save_ifs 8625 MAGIC_CMD=$lt_save_MAGIC_CMD 8626 ;; 8627esac 8628fi 8629 8630MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8631if test -n "$MAGIC_CMD"; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8633$as_echo "$MAGIC_CMD" >&6; } 8634else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636$as_echo "no" >&6; } 8637fi 8638 8639 8640 8641 8642 8643if test -z "$lt_cv_path_MAGIC_CMD"; then 8644 if test -n "$ac_tool_prefix"; then 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8646$as_echo_n "checking for file... " >&6; } 8647if ${lt_cv_path_MAGIC_CMD+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 case $MAGIC_CMD in 8651[\\/*] | ?:[\\/]*) 8652 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8653 ;; 8654*) 8655 lt_save_MAGIC_CMD=$MAGIC_CMD 8656 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8658 for ac_dir in $ac_dummy; do 8659 IFS=$lt_save_ifs 8660 test -z "$ac_dir" && ac_dir=. 8661 if test -f "$ac_dir/file"; then 8662 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8663 if test -n "$file_magic_test_file"; then 8664 case $deplibs_check_method in 8665 "file_magic "*) 8666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8667 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8669 $EGREP "$file_magic_regex" > /dev/null; then 8670 : 8671 else 8672 cat <<_LT_EOF 1>&2 8673 8674*** Warning: the command libtool uses to detect shared libraries, 8675*** $file_magic_cmd, produces output that libtool cannot recognize. 8676*** The result is that libtool may fail to recognize shared libraries 8677*** as such. This will affect the creation of libtool libraries that 8678*** depend on shared libraries, but programs linked with such libtool 8679*** libraries will work regardless of this problem. Nevertheless, you 8680*** may want to report the problem to your system manager and/or to 8681*** bug-libtool@gnu.org 8682 8683_LT_EOF 8684 fi ;; 8685 esac 8686 fi 8687 break 8688 fi 8689 done 8690 IFS=$lt_save_ifs 8691 MAGIC_CMD=$lt_save_MAGIC_CMD 8692 ;; 8693esac 8694fi 8695 8696MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8697if test -n "$MAGIC_CMD"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8699$as_echo "$MAGIC_CMD" >&6; } 8700else 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8702$as_echo "no" >&6; } 8703fi 8704 8705 8706 else 8707 MAGIC_CMD=: 8708 fi 8709fi 8710 8711 fi 8712 ;; 8713esac 8714 8715# Use C for the default configuration in the libtool script 8716 8717lt_save_CC=$CC 8718ac_ext=c 8719ac_cpp='$CPP $CPPFLAGS' 8720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8722ac_compiler_gnu=$ac_cv_c_compiler_gnu 8723 8724 8725# Source file extension for C test sources. 8726ac_ext=c 8727 8728# Object file extension for compiled C test sources. 8729objext=o 8730objext=$objext 8731 8732# Code to be used in simple compile tests 8733lt_simple_compile_test_code="int some_variable = 0;" 8734 8735# Code to be used in simple link tests 8736lt_simple_link_test_code='int main(){return(0);}' 8737 8738 8739 8740 8741 8742 8743 8744# If no C compiler was specified, use CC. 8745LTCC=${LTCC-"$CC"} 8746 8747# If no C compiler flags were specified, use CFLAGS. 8748LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8749 8750# Allow CC to be a program name with arguments. 8751compiler=$CC 8752 8753# Save the default compiler, since it gets overwritten when the other 8754# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8755compiler_DEFAULT=$CC 8756 8757# save warnings/boilerplate of simple test code 8758ac_outfile=conftest.$ac_objext 8759echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8761_lt_compiler_boilerplate=`cat conftest.err` 8762$RM conftest* 8763 8764ac_outfile=conftest.$ac_objext 8765echo "$lt_simple_link_test_code" >conftest.$ac_ext 8766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8767_lt_linker_boilerplate=`cat conftest.err` 8768$RM -r conftest* 8769 8770 8771if test -n "$compiler"; then 8772 8773lt_prog_compiler_no_builtin_flag= 8774 8775if test yes = "$GCC"; then 8776 case $cc_basename in 8777 nvcc*) 8778 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8779 *) 8780 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8781 esac 8782 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8784$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8785if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 lt_cv_prog_compiler_rtti_exceptions=no 8789 ac_outfile=conftest.$ac_objext 8790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8791 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8792 # Insert the option either (1) after the last *FLAGS variable, or 8793 # (2) before a word containing "conftest.", or (3) at the end. 8794 # Note that $ac_compile itself does not contain backslashes and begins 8795 # with a dollar sign (not a hyphen), so the echo should work correctly. 8796 # The option is referenced via a variable to avoid confusing sed. 8797 lt_compile=`echo "$ac_compile" | $SED \ 8798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8800 -e 's:$: $lt_compiler_flag:'` 8801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8802 (eval "$lt_compile" 2>conftest.err) 8803 ac_status=$? 8804 cat conftest.err >&5 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8806 if (exit $ac_status) && test -s "$ac_outfile"; then 8807 # The compiler can only warn and ignore the option if not recognized 8808 # So say no if there are warnings other than the usual output. 8809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8812 lt_cv_prog_compiler_rtti_exceptions=yes 8813 fi 8814 fi 8815 $RM conftest* 8816 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8819$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8820 8821if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8822 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8823else 8824 : 8825fi 8826 8827fi 8828 8829 8830 8831 8832 8833 8834 lt_prog_compiler_wl= 8835lt_prog_compiler_pic= 8836lt_prog_compiler_static= 8837 8838 8839 if test yes = "$GCC"; then 8840 lt_prog_compiler_wl='-Wl,' 8841 lt_prog_compiler_static='-static' 8842 8843 case $host_os in 8844 aix*) 8845 # All AIX code is PIC. 8846 if test ia64 = "$host_cpu"; then 8847 # AIX 5 now supports IA64 processor 8848 lt_prog_compiler_static='-Bstatic' 8849 fi 8850 lt_prog_compiler_pic='-fPIC' 8851 ;; 8852 8853 amigaos*) 8854 case $host_cpu in 8855 powerpc) 8856 # see comment about AmigaOS4 .so support 8857 lt_prog_compiler_pic='-fPIC' 8858 ;; 8859 m68k) 8860 # FIXME: we need at least 68020 code to build shared libraries, but 8861 # adding the '-m68020' flag to GCC prevents building anything better, 8862 # like '-m68040'. 8863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8864 ;; 8865 esac 8866 ;; 8867 8868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8869 # PIC is the default for these OSes. 8870 ;; 8871 8872 mingw* | cygwin* | pw32* | os2* | cegcc*) 8873 # This hack is so that the source file can tell whether it is being 8874 # built for inclusion in a dll (and should export symbols for example). 8875 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8876 # (--disable-auto-import) libraries 8877 lt_prog_compiler_pic='-DDLL_EXPORT' 8878 case $host_os in 8879 os2*) 8880 lt_prog_compiler_static='$wl-static' 8881 ;; 8882 esac 8883 ;; 8884 8885 darwin* | rhapsody*) 8886 # PIC is the default on this platform 8887 # Common symbols not allowed in MH_DYLIB files 8888 lt_prog_compiler_pic='-fno-common' 8889 ;; 8890 8891 haiku*) 8892 # PIC is the default for Haiku. 8893 # The "-static" flag exists, but is broken. 8894 lt_prog_compiler_static= 8895 ;; 8896 8897 hpux*) 8898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8900 # sets the default TLS model and affects inlining. 8901 case $host_cpu in 8902 hppa*64*) 8903 # +Z the default 8904 ;; 8905 *) 8906 lt_prog_compiler_pic='-fPIC' 8907 ;; 8908 esac 8909 ;; 8910 8911 interix[3-9]*) 8912 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8913 # Instead, we relocate shared libraries at runtime. 8914 ;; 8915 8916 msdosdjgpp*) 8917 # Just because we use GCC doesn't mean we suddenly get shared libraries 8918 # on systems that don't support them. 8919 lt_prog_compiler_can_build_shared=no 8920 enable_shared=no 8921 ;; 8922 8923 *nto* | *qnx*) 8924 # QNX uses GNU C++, but need to define -shared option too, otherwise 8925 # it will coredump. 8926 lt_prog_compiler_pic='-fPIC -shared' 8927 ;; 8928 8929 sysv4*MP*) 8930 if test -d /usr/nec; then 8931 lt_prog_compiler_pic=-Kconform_pic 8932 fi 8933 ;; 8934 8935 *) 8936 lt_prog_compiler_pic='-fPIC' 8937 ;; 8938 esac 8939 8940 case $cc_basename in 8941 nvcc*) # Cuda Compiler Driver 2.2 8942 lt_prog_compiler_wl='-Xlinker ' 8943 if test -n "$lt_prog_compiler_pic"; then 8944 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8945 fi 8946 ;; 8947 esac 8948 else 8949 # PORTME Check for flag to pass linker flags through the system compiler. 8950 case $host_os in 8951 aix*) 8952 lt_prog_compiler_wl='-Wl,' 8953 if test ia64 = "$host_cpu"; then 8954 # AIX 5 now supports IA64 processor 8955 lt_prog_compiler_static='-Bstatic' 8956 else 8957 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8958 fi 8959 ;; 8960 8961 darwin* | rhapsody*) 8962 # PIC is the default on this platform 8963 # Common symbols not allowed in MH_DYLIB files 8964 lt_prog_compiler_pic='-fno-common' 8965 case $cc_basename in 8966 nagfor*) 8967 # NAG Fortran compiler 8968 lt_prog_compiler_wl='-Wl,-Wl,,' 8969 lt_prog_compiler_pic='-PIC' 8970 lt_prog_compiler_static='-Bstatic' 8971 ;; 8972 esac 8973 ;; 8974 8975 mingw* | cygwin* | pw32* | os2* | cegcc*) 8976 # This hack is so that the source file can tell whether it is being 8977 # built for inclusion in a dll (and should export symbols for example). 8978 lt_prog_compiler_pic='-DDLL_EXPORT' 8979 case $host_os in 8980 os2*) 8981 lt_prog_compiler_static='$wl-static' 8982 ;; 8983 esac 8984 ;; 8985 8986 hpux9* | hpux10* | hpux11*) 8987 lt_prog_compiler_wl='-Wl,' 8988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8989 # not for PA HP-UX. 8990 case $host_cpu in 8991 hppa*64*|ia64*) 8992 # +Z the default 8993 ;; 8994 *) 8995 lt_prog_compiler_pic='+Z' 8996 ;; 8997 esac 8998 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8999 lt_prog_compiler_static='$wl-a ${wl}archive' 9000 ;; 9001 9002 irix5* | irix6* | nonstopux*) 9003 lt_prog_compiler_wl='-Wl,' 9004 # PIC (with -KPIC) is the default. 9005 lt_prog_compiler_static='-non_shared' 9006 ;; 9007 9008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9009 case $cc_basename in 9010 # old Intel for x86_64, which still supported -KPIC. 9011 ecc*) 9012 lt_prog_compiler_wl='-Wl,' 9013 lt_prog_compiler_pic='-KPIC' 9014 lt_prog_compiler_static='-static' 9015 ;; 9016 # icc used to be incompatible with GCC. 9017 # ICC 10 doesn't accept -KPIC any more. 9018 icc* | ifort*) 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_pic='-fPIC' 9021 lt_prog_compiler_static='-static' 9022 ;; 9023 # Lahey Fortran 8.1. 9024 lf95*) 9025 lt_prog_compiler_wl='-Wl,' 9026 lt_prog_compiler_pic='--shared' 9027 lt_prog_compiler_static='--static' 9028 ;; 9029 nagfor*) 9030 # NAG Fortran compiler 9031 lt_prog_compiler_wl='-Wl,-Wl,,' 9032 lt_prog_compiler_pic='-PIC' 9033 lt_prog_compiler_static='-Bstatic' 9034 ;; 9035 tcc*) 9036 # Fabrice Bellard et al's Tiny C Compiler 9037 lt_prog_compiler_wl='-Wl,' 9038 lt_prog_compiler_pic='-fPIC' 9039 lt_prog_compiler_static='-static' 9040 ;; 9041 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9042 # Portland Group compilers (*not* the Pentium gcc compiler, 9043 # which looks to be a dead project) 9044 lt_prog_compiler_wl='-Wl,' 9045 lt_prog_compiler_pic='-fpic' 9046 lt_prog_compiler_static='-Bstatic' 9047 ;; 9048 ccc*) 9049 lt_prog_compiler_wl='-Wl,' 9050 # All Alpha code is PIC. 9051 lt_prog_compiler_static='-non_shared' 9052 ;; 9053 xl* | bgxl* | bgf* | mpixl*) 9054 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9055 lt_prog_compiler_wl='-Wl,' 9056 lt_prog_compiler_pic='-qpic' 9057 lt_prog_compiler_static='-qstaticlink' 9058 ;; 9059 *) 9060 case `$CC -V 2>&1 | sed 5q` in 9061 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9062 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9063 lt_prog_compiler_pic='-KPIC' 9064 lt_prog_compiler_static='-Bstatic' 9065 lt_prog_compiler_wl='' 9066 ;; 9067 *Sun\ F* | *Sun*Fortran*) 9068 lt_prog_compiler_pic='-KPIC' 9069 lt_prog_compiler_static='-Bstatic' 9070 lt_prog_compiler_wl='-Qoption ld ' 9071 ;; 9072 *Sun\ C*) 9073 # Sun C 5.9 9074 lt_prog_compiler_pic='-KPIC' 9075 lt_prog_compiler_static='-Bstatic' 9076 lt_prog_compiler_wl='-Wl,' 9077 ;; 9078 *Intel*\ [CF]*Compiler*) 9079 lt_prog_compiler_wl='-Wl,' 9080 lt_prog_compiler_pic='-fPIC' 9081 lt_prog_compiler_static='-static' 9082 ;; 9083 *Portland\ Group*) 9084 lt_prog_compiler_wl='-Wl,' 9085 lt_prog_compiler_pic='-fpic' 9086 lt_prog_compiler_static='-Bstatic' 9087 ;; 9088 esac 9089 ;; 9090 esac 9091 ;; 9092 9093 newsos6) 9094 lt_prog_compiler_pic='-KPIC' 9095 lt_prog_compiler_static='-Bstatic' 9096 ;; 9097 9098 *nto* | *qnx*) 9099 # QNX uses GNU C++, but need to define -shared option too, otherwise 9100 # it will coredump. 9101 lt_prog_compiler_pic='-fPIC -shared' 9102 ;; 9103 9104 osf3* | osf4* | osf5*) 9105 lt_prog_compiler_wl='-Wl,' 9106 # All OSF/1 code is PIC. 9107 lt_prog_compiler_static='-non_shared' 9108 ;; 9109 9110 rdos*) 9111 lt_prog_compiler_static='-non_shared' 9112 ;; 9113 9114 solaris*) 9115 lt_prog_compiler_pic='-KPIC' 9116 lt_prog_compiler_static='-Bstatic' 9117 case $cc_basename in 9118 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9119 lt_prog_compiler_wl='-Qoption ld ';; 9120 *) 9121 lt_prog_compiler_wl='-Wl,';; 9122 esac 9123 ;; 9124 9125 sunos4*) 9126 lt_prog_compiler_wl='-Qoption ld ' 9127 lt_prog_compiler_pic='-PIC' 9128 lt_prog_compiler_static='-Bstatic' 9129 ;; 9130 9131 sysv4 | sysv4.2uw2* | sysv4.3*) 9132 lt_prog_compiler_wl='-Wl,' 9133 lt_prog_compiler_pic='-KPIC' 9134 lt_prog_compiler_static='-Bstatic' 9135 ;; 9136 9137 sysv4*MP*) 9138 if test -d /usr/nec; then 9139 lt_prog_compiler_pic='-Kconform_pic' 9140 lt_prog_compiler_static='-Bstatic' 9141 fi 9142 ;; 9143 9144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9145 lt_prog_compiler_wl='-Wl,' 9146 lt_prog_compiler_pic='-KPIC' 9147 lt_prog_compiler_static='-Bstatic' 9148 ;; 9149 9150 unicos*) 9151 lt_prog_compiler_wl='-Wl,' 9152 lt_prog_compiler_can_build_shared=no 9153 ;; 9154 9155 uts4*) 9156 lt_prog_compiler_pic='-pic' 9157 lt_prog_compiler_static='-Bstatic' 9158 ;; 9159 9160 *) 9161 lt_prog_compiler_can_build_shared=no 9162 ;; 9163 esac 9164 fi 9165 9166case $host_os in 9167 # For platforms that do not support PIC, -DPIC is meaningless: 9168 *djgpp*) 9169 lt_prog_compiler_pic= 9170 ;; 9171 *) 9172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9173 ;; 9174esac 9175 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9177$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9178if ${lt_cv_prog_compiler_pic+:} false; then : 9179 $as_echo_n "(cached) " >&6 9180else 9181 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9184$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9185lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9186 9187# 9188# Check to make sure the PIC flag actually works. 9189# 9190if test -n "$lt_prog_compiler_pic"; then 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9192$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9193if ${lt_cv_prog_compiler_pic_works+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 lt_cv_prog_compiler_pic_works=no 9197 ac_outfile=conftest.$ac_objext 9198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9199 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9200 # Insert the option either (1) after the last *FLAGS variable, or 9201 # (2) before a word containing "conftest.", or (3) at the end. 9202 # Note that $ac_compile itself does not contain backslashes and begins 9203 # with a dollar sign (not a hyphen), so the echo should work correctly. 9204 # The option is referenced via a variable to avoid confusing sed. 9205 lt_compile=`echo "$ac_compile" | $SED \ 9206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9208 -e 's:$: $lt_compiler_flag:'` 9209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9210 (eval "$lt_compile" 2>conftest.err) 9211 ac_status=$? 9212 cat conftest.err >&5 9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9214 if (exit $ac_status) && test -s "$ac_outfile"; then 9215 # The compiler can only warn and ignore the option if not recognized 9216 # So say no if there are warnings other than the usual output. 9217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9220 lt_cv_prog_compiler_pic_works=yes 9221 fi 9222 fi 9223 $RM conftest* 9224 9225fi 9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9227$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9228 9229if test yes = "$lt_cv_prog_compiler_pic_works"; then 9230 case $lt_prog_compiler_pic in 9231 "" | " "*) ;; 9232 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9233 esac 9234else 9235 lt_prog_compiler_pic= 9236 lt_prog_compiler_can_build_shared=no 9237fi 9238 9239fi 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251# 9252# Check to make sure the static flag actually works. 9253# 9254wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9256$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9257if ${lt_cv_prog_compiler_static_works+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_prog_compiler_static_works=no 9261 save_LDFLAGS=$LDFLAGS 9262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9263 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9265 # The linker can only warn and ignore the option if not recognized 9266 # So say no if there are warnings 9267 if test -s conftest.err; then 9268 # Append any errors to the config.log. 9269 cat conftest.err 1>&5 9270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9272 if diff conftest.exp conftest.er2 >/dev/null; then 9273 lt_cv_prog_compiler_static_works=yes 9274 fi 9275 else 9276 lt_cv_prog_compiler_static_works=yes 9277 fi 9278 fi 9279 $RM -r conftest* 9280 LDFLAGS=$save_LDFLAGS 9281 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9284$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9285 9286if test yes = "$lt_cv_prog_compiler_static_works"; then 9287 : 9288else 9289 lt_prog_compiler_static= 9290fi 9291 9292 9293 9294 9295 9296 9297 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9299$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9300if ${lt_cv_prog_compiler_c_o+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 lt_cv_prog_compiler_c_o=no 9304 $RM -r conftest 2>/dev/null 9305 mkdir conftest 9306 cd conftest 9307 mkdir out 9308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9309 9310 lt_compiler_flag="-o out/conftest2.$ac_objext" 9311 # Insert the option either (1) after the last *FLAGS variable, or 9312 # (2) before a word containing "conftest.", or (3) at the end. 9313 # Note that $ac_compile itself does not contain backslashes and begins 9314 # with a dollar sign (not a hyphen), so the echo should work correctly. 9315 lt_compile=`echo "$ac_compile" | $SED \ 9316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9318 -e 's:$: $lt_compiler_flag:'` 9319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9320 (eval "$lt_compile" 2>out/conftest.err) 9321 ac_status=$? 9322 cat out/conftest.err >&5 9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9324 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9325 then 9326 # The compiler can only warn and ignore the option if not recognized 9327 # So say no if there are warnings 9328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9331 lt_cv_prog_compiler_c_o=yes 9332 fi 9333 fi 9334 chmod u+w . 2>&5 9335 $RM conftest* 9336 # SGI C++ compiler will create directory out/ii_files/ for 9337 # template instantiation 9338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9339 $RM out/* && rmdir out 9340 cd .. 9341 $RM -r conftest 9342 $RM conftest* 9343 9344fi 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9346$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9347 9348 9349 9350 9351 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9354$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9355if ${lt_cv_prog_compiler_c_o+:} false; then : 9356 $as_echo_n "(cached) " >&6 9357else 9358 lt_cv_prog_compiler_c_o=no 9359 $RM -r conftest 2>/dev/null 9360 mkdir conftest 9361 cd conftest 9362 mkdir out 9363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9364 9365 lt_compiler_flag="-o out/conftest2.$ac_objext" 9366 # Insert the option either (1) after the last *FLAGS variable, or 9367 # (2) before a word containing "conftest.", or (3) at the end. 9368 # Note that $ac_compile itself does not contain backslashes and begins 9369 # with a dollar sign (not a hyphen), so the echo should work correctly. 9370 lt_compile=`echo "$ac_compile" | $SED \ 9371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9373 -e 's:$: $lt_compiler_flag:'` 9374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9375 (eval "$lt_compile" 2>out/conftest.err) 9376 ac_status=$? 9377 cat out/conftest.err >&5 9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9379 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9380 then 9381 # The compiler can only warn and ignore the option if not recognized 9382 # So say no if there are warnings 9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9386 lt_cv_prog_compiler_c_o=yes 9387 fi 9388 fi 9389 chmod u+w . 2>&5 9390 $RM conftest* 9391 # SGI C++ compiler will create directory out/ii_files/ for 9392 # template instantiation 9393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9394 $RM out/* && rmdir out 9395 cd .. 9396 $RM -r conftest 9397 $RM conftest* 9398 9399fi 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9401$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9402 9403 9404 9405 9406hard_links=nottested 9407if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9408 # do not overwrite the value of need_locks provided by the user 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9410$as_echo_n "checking if we can lock with hard links... " >&6; } 9411 hard_links=yes 9412 $RM conftest* 9413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9414 touch conftest.a 9415 ln conftest.a conftest.b 2>&5 || hard_links=no 9416 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9418$as_echo "$hard_links" >&6; } 9419 if test no = "$hard_links"; then 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9421$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9422 need_locks=warn 9423 fi 9424else 9425 need_locks=no 9426fi 9427 9428 9429 9430 9431 9432 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9434$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9435 9436 runpath_var= 9437 allow_undefined_flag= 9438 always_export_symbols=no 9439 archive_cmds= 9440 archive_expsym_cmds= 9441 compiler_needs_object=no 9442 enable_shared_with_static_runtimes=no 9443 export_dynamic_flag_spec= 9444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9445 hardcode_automatic=no 9446 hardcode_direct=no 9447 hardcode_direct_absolute=no 9448 hardcode_libdir_flag_spec= 9449 hardcode_libdir_separator= 9450 hardcode_minus_L=no 9451 hardcode_shlibpath_var=unsupported 9452 inherit_rpath=no 9453 link_all_deplibs=unknown 9454 module_cmds= 9455 module_expsym_cmds= 9456 old_archive_from_new_cmds= 9457 old_archive_from_expsyms_cmds= 9458 thread_safe_flag_spec= 9459 whole_archive_flag_spec= 9460 # include_expsyms should be a list of space-separated symbols to be *always* 9461 # included in the symbol list 9462 include_expsyms= 9463 # exclude_expsyms can be an extended regexp of symbols to exclude 9464 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9465 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9466 # as well as any symbol that contains 'd'. 9467 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9469 # platforms (ab)use it in PIC code, but their linkers get confused if 9470 # the symbol is explicitly referenced. Since portable code cannot 9471 # rely on this symbol name, it's probably fine to never include it in 9472 # preloaded symbol tables. 9473 # Exclude shared library initialization/finalization symbols. 9474 extract_expsyms_cmds= 9475 9476 case $host_os in 9477 cygwin* | mingw* | pw32* | cegcc*) 9478 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9479 # When not using gcc, we currently assume that we are using 9480 # Microsoft Visual C++. 9481 if test yes != "$GCC"; then 9482 with_gnu_ld=no 9483 fi 9484 ;; 9485 interix*) 9486 # we just hope/assume this is gcc and not c89 (= MSVC++) 9487 with_gnu_ld=yes 9488 ;; 9489 openbsd* | bitrig*) 9490 with_gnu_ld=no 9491 ;; 9492 esac 9493 9494 ld_shlibs=yes 9495 9496 # On some targets, GNU ld is compatible enough with the native linker 9497 # that we're better off using the native interface for both. 9498 lt_use_gnu_ld_interface=no 9499 if test yes = "$with_gnu_ld"; then 9500 case $host_os in 9501 aix*) 9502 # The AIX port of GNU ld has always aspired to compatibility 9503 # with the native linker. However, as the warning in the GNU ld 9504 # block says, versions before 2.19.5* couldn't really create working 9505 # shared libraries, regardless of the interface used. 9506 case `$LD -v 2>&1` in 9507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9509 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9510 *) 9511 lt_use_gnu_ld_interface=yes 9512 ;; 9513 esac 9514 ;; 9515 *) 9516 lt_use_gnu_ld_interface=yes 9517 ;; 9518 esac 9519 fi 9520 9521 if test yes = "$lt_use_gnu_ld_interface"; then 9522 # If archive_cmds runs LD, not CC, wlarc should be empty 9523 wlarc='$wl' 9524 9525 # Set some defaults for GNU ld with shared library support. These 9526 # are reset later if shared libraries are not supported. Putting them 9527 # here allows them to be overridden if necessary. 9528 runpath_var=LD_RUN_PATH 9529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9530 export_dynamic_flag_spec='$wl--export-dynamic' 9531 # ancient GNU ld didn't support --whole-archive et. al. 9532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9533 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9534 else 9535 whole_archive_flag_spec= 9536 fi 9537 supports_anon_versioning=no 9538 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9539 *GNU\ gold*) supports_anon_versioning=yes ;; 9540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9543 *\ 2.11.*) ;; # other 2.11 versions 9544 *) supports_anon_versioning=yes ;; 9545 esac 9546 9547 # See if GNU ld supports shared libraries. 9548 case $host_os in 9549 aix[3-9]*) 9550 # On AIX/PPC, the GNU linker is very broken 9551 if test ia64 != "$host_cpu"; then 9552 ld_shlibs=no 9553 cat <<_LT_EOF 1>&2 9554 9555*** Warning: the GNU linker, at least up to release 2.19, is reported 9556*** to be unable to reliably create shared libraries on AIX. 9557*** Therefore, libtool is disabling shared libraries support. If you 9558*** really care for shared libraries, you may want to install binutils 9559*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9560*** You will then need to restart the configuration process. 9561 9562_LT_EOF 9563 fi 9564 ;; 9565 9566 amigaos*) 9567 case $host_cpu in 9568 powerpc) 9569 # see comment about AmigaOS4 .so support 9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9571 archive_expsym_cmds='' 9572 ;; 9573 m68k) 9574 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)' 9575 hardcode_libdir_flag_spec='-L$libdir' 9576 hardcode_minus_L=yes 9577 ;; 9578 esac 9579 ;; 9580 9581 beos*) 9582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9583 allow_undefined_flag=unsupported 9584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9585 # support --undefined. This deserves some investigation. FIXME 9586 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9587 else 9588 ld_shlibs=no 9589 fi 9590 ;; 9591 9592 cygwin* | mingw* | pw32* | cegcc*) 9593 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9594 # as there is no search path for DLLs. 9595 hardcode_libdir_flag_spec='-L$libdir' 9596 export_dynamic_flag_spec='$wl--export-all-symbols' 9597 allow_undefined_flag=unsupported 9598 always_export_symbols=no 9599 enable_shared_with_static_runtimes=yes 9600 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' 9601 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9602 9603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9605 # If the export-symbols file already is a .def file, use it as 9606 # is; otherwise, prepend EXPORTS... 9607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9608 cp $export_symbols $output_objdir/$soname.def; 9609 else 9610 echo EXPORTS > $output_objdir/$soname.def; 9611 cat $export_symbols >> $output_objdir/$soname.def; 9612 fi~ 9613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9614 else 9615 ld_shlibs=no 9616 fi 9617 ;; 9618 9619 haiku*) 9620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9621 link_all_deplibs=yes 9622 ;; 9623 9624 os2*) 9625 hardcode_libdir_flag_spec='-L$libdir' 9626 hardcode_minus_L=yes 9627 allow_undefined_flag=unsupported 9628 shrext_cmds=.dll 9629 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9632 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9635 emximp -o $lib $output_objdir/$libname.def' 9636 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9639 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9640 prefix_cmds="$SED"~ 9641 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9642 prefix_cmds="$prefix_cmds -e 1d"; 9643 fi~ 9644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9647 emximp -o $lib $output_objdir/$libname.def' 9648 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9649 enable_shared_with_static_runtimes=yes 9650 ;; 9651 9652 interix[3-9]*) 9653 hardcode_direct=no 9654 hardcode_shlibpath_var=no 9655 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9656 export_dynamic_flag_spec='$wl-E' 9657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9658 # Instead, shared libraries are loaded at an image base (0x10000000 by 9659 # default) and relocated if they conflict, which is a slow very memory 9660 # consuming and fragmenting process. To avoid this, we pick a random, 9661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9662 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9664 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' 9665 ;; 9666 9667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9668 tmp_diet=no 9669 if test linux-dietlibc = "$host_os"; then 9670 case $cc_basename in 9671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9672 esac 9673 fi 9674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9675 && test no = "$tmp_diet" 9676 then 9677 tmp_addflag=' $pic_flag' 9678 tmp_sharedflag='-shared' 9679 case $cc_basename,$host_cpu in 9680 pgcc*) # Portland Group C compiler 9681 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' 9682 tmp_addflag=' $pic_flag' 9683 ;; 9684 pgf77* | pgf90* | pgf95* | pgfortran*) 9685 # Portland Group f77 and f90 compilers 9686 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' 9687 tmp_addflag=' $pic_flag -Mnomain' ;; 9688 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9689 tmp_addflag=' -i_dynamic' ;; 9690 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9691 tmp_addflag=' -i_dynamic -nofor_main' ;; 9692 ifc* | ifort*) # Intel Fortran compiler 9693 tmp_addflag=' -nofor_main' ;; 9694 lf95*) # Lahey Fortran 8.1 9695 whole_archive_flag_spec= 9696 tmp_sharedflag='--shared' ;; 9697 nagfor*) # NAGFOR 5.3 9698 tmp_sharedflag='-Wl,-shared' ;; 9699 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9700 tmp_sharedflag='-qmkshrobj' 9701 tmp_addflag= ;; 9702 nvcc*) # Cuda Compiler Driver 2.2 9703 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' 9704 compiler_needs_object=yes 9705 ;; 9706 esac 9707 case `$CC -V 2>&1 | sed 5q` in 9708 *Sun\ C*) # Sun C 5.9 9709 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' 9710 compiler_needs_object=yes 9711 tmp_sharedflag='-G' ;; 9712 *Sun\ F*) # Sun Fortran 8.3 9713 tmp_sharedflag='-G' ;; 9714 esac 9715 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9716 9717 if test yes = "$supports_anon_versioning"; then 9718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9720 echo "local: *; };" >> $output_objdir/$libname.ver~ 9721 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9722 fi 9723 9724 case $cc_basename in 9725 tcc*) 9726 export_dynamic_flag_spec='-rdynamic' 9727 ;; 9728 xlf* | bgf* | bgxlf* | mpixlf*) 9729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9732 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9733 if test yes = "$supports_anon_versioning"; then 9734 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9736 echo "local: *; };" >> $output_objdir/$libname.ver~ 9737 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9738 fi 9739 ;; 9740 esac 9741 else 9742 ld_shlibs=no 9743 fi 9744 ;; 9745 9746 netbsd*) 9747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9749 wlarc= 9750 else 9751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9753 fi 9754 ;; 9755 9756 solaris*) 9757 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9758 ld_shlibs=no 9759 cat <<_LT_EOF 1>&2 9760 9761*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9762*** create shared libraries on Solaris systems. Therefore, libtool 9763*** is disabling shared libraries support. We urge you to upgrade GNU 9764*** binutils to release 2.9.1 or newer. Another option is to modify 9765*** your PATH or compiler configuration so that the native linker is 9766*** used, and then restart. 9767 9768_LT_EOF 9769 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9772 else 9773 ld_shlibs=no 9774 fi 9775 ;; 9776 9777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9778 case `$LD -v 2>&1` in 9779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9780 ld_shlibs=no 9781 cat <<_LT_EOF 1>&2 9782 9783*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9784*** reliably create shared libraries on SCO systems. Therefore, libtool 9785*** is disabling shared libraries support. We urge you to upgrade GNU 9786*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9787*** your PATH or compiler configuration so that the native linker is 9788*** used, and then restart. 9789 9790_LT_EOF 9791 ;; 9792 *) 9793 # For security reasons, it is highly recommended that you always 9794 # use absolute paths for naming shared libraries, and exclude the 9795 # DT_RUNPATH tag from executables and libraries. But doing so 9796 # requires that you compile everything twice, which is a pain. 9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9801 else 9802 ld_shlibs=no 9803 fi 9804 ;; 9805 esac 9806 ;; 9807 9808 sunos4*) 9809 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9810 wlarc= 9811 hardcode_direct=yes 9812 hardcode_shlibpath_var=no 9813 ;; 9814 9815 *) 9816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9819 else 9820 ld_shlibs=no 9821 fi 9822 ;; 9823 esac 9824 9825 if test no = "$ld_shlibs"; then 9826 runpath_var= 9827 hardcode_libdir_flag_spec= 9828 export_dynamic_flag_spec= 9829 whole_archive_flag_spec= 9830 fi 9831 else 9832 # PORTME fill in a description of your system's linker (not GNU ld) 9833 case $host_os in 9834 aix3*) 9835 allow_undefined_flag=unsupported 9836 always_export_symbols=yes 9837 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' 9838 # Note: this linker hardcodes the directories in LIBPATH if there 9839 # are no directories specified by -L. 9840 hardcode_minus_L=yes 9841 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9842 # Neither direct hardcoding nor static linking is supported with a 9843 # broken collect2. 9844 hardcode_direct=unsupported 9845 fi 9846 ;; 9847 9848 aix[4-9]*) 9849 if test ia64 = "$host_cpu"; then 9850 # On IA64, the linker does run time linking by default, so we don't 9851 # have to do anything special. 9852 aix_use_runtimelinking=no 9853 exp_sym_flag='-Bexport' 9854 no_entry_flag= 9855 else 9856 # If we're using GNU nm, then we don't want the "-C" option. 9857 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9858 # Without the "-l" option, or with the "-B" option, AIX nm treats 9859 # weak defined symbols like other global defined symbols, whereas 9860 # GNU nm marks them as "W". 9861 # While the 'weak' keyword is ignored in the Export File, we need 9862 # it in the Import File for the 'aix-soname' feature, so we have 9863 # to replace the "-B" option with "-P" for AIX nm. 9864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9865 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9866 else 9867 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9868 fi 9869 aix_use_runtimelinking=no 9870 9871 # Test if we are trying to use run time linking or normal 9872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9873 # have runtime linking enabled, and use it for executables. 9874 # For shared libraries, we enable/disable runtime linking 9875 # depending on the kind of the shared library created - 9876 # when "with_aix_soname,aix_use_runtimelinking" is: 9877 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9878 # "aix,yes" lib.so shared, rtl:yes, for executables 9879 # lib.a static archive 9880 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9881 # lib.a(lib.so.V) shared, rtl:no, for executables 9882 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9883 # lib.a(lib.so.V) shared, rtl:no 9884 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9885 # lib.a static archive 9886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9887 for ld_flag in $LDFLAGS; do 9888 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9889 aix_use_runtimelinking=yes 9890 break 9891 fi 9892 done 9893 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9894 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9895 # so we don't have lib.a shared libs to link our executables. 9896 # We have to force runtime linking in this case. 9897 aix_use_runtimelinking=yes 9898 LDFLAGS="$LDFLAGS -Wl,-brtl" 9899 fi 9900 ;; 9901 esac 9902 9903 exp_sym_flag='-bexport' 9904 no_entry_flag='-bnoentry' 9905 fi 9906 9907 # When large executables or shared objects are built, AIX ld can 9908 # have problems creating the table of contents. If linking a library 9909 # or program results in "error TOC overflow" add -mminimal-toc to 9910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9912 9913 archive_cmds='' 9914 hardcode_direct=yes 9915 hardcode_direct_absolute=yes 9916 hardcode_libdir_separator=':' 9917 link_all_deplibs=yes 9918 file_list_spec='$wl-f,' 9919 case $with_aix_soname,$aix_use_runtimelinking in 9920 aix,*) ;; # traditional, no import file 9921 svr4,* | *,yes) # use import file 9922 # The Import File defines what to hardcode. 9923 hardcode_direct=no 9924 hardcode_direct_absolute=no 9925 ;; 9926 esac 9927 9928 if test yes = "$GCC"; then 9929 case $host_os in aix4.[012]|aix4.[012].*) 9930 # We only want to do this on AIX 4.2 and lower, the check 9931 # below for broken collect2 doesn't work under 4.3+ 9932 collect2name=`$CC -print-prog-name=collect2` 9933 if test -f "$collect2name" && 9934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9935 then 9936 # We have reworked collect2 9937 : 9938 else 9939 # We have old collect2 9940 hardcode_direct=unsupported 9941 # It fails to find uninstalled libraries when the uninstalled 9942 # path is not listed in the libpath. Setting hardcode_minus_L 9943 # to unsupported forces relinking 9944 hardcode_minus_L=yes 9945 hardcode_libdir_flag_spec='-L$libdir' 9946 hardcode_libdir_separator= 9947 fi 9948 ;; 9949 esac 9950 shared_flag='-shared' 9951 if test yes = "$aix_use_runtimelinking"; then 9952 shared_flag="$shared_flag "'$wl-G' 9953 fi 9954 # Need to ensure runtime linking is disabled for the traditional 9955 # shared library, or the linker may eventually find shared libraries 9956 # /with/ Import File - we do not want to mix them. 9957 shared_flag_aix='-shared' 9958 shared_flag_svr4='-shared $wl-G' 9959 else 9960 # not using gcc 9961 if test ia64 = "$host_cpu"; then 9962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9963 # chokes on -Wl,-G. The following line is correct: 9964 shared_flag='-G' 9965 else 9966 if test yes = "$aix_use_runtimelinking"; then 9967 shared_flag='$wl-G' 9968 else 9969 shared_flag='$wl-bM:SRE' 9970 fi 9971 shared_flag_aix='$wl-bM:SRE' 9972 shared_flag_svr4='$wl-G' 9973 fi 9974 fi 9975 9976 export_dynamic_flag_spec='$wl-bexpall' 9977 # It seems that -bexpall does not export symbols beginning with 9978 # underscore (_), so it is better to generate a list of symbols to export. 9979 always_export_symbols=yes 9980 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9981 # Warning - without using the other runtime loading flags (-brtl), 9982 # -berok will link without error, but may produce a broken library. 9983 allow_undefined_flag='-berok' 9984 # Determine the default libpath from the value encoded in an 9985 # empty executable. 9986 if test set = "${lt_cv_aix_libpath+set}"; then 9987 aix_libpath=$lt_cv_aix_libpath 9988else 9989 if ${lt_cv_aix_libpath_+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993/* end confdefs.h. */ 9994 9995int 9996main () 9997{ 9998 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003if ac_fn_c_try_link "$LINENO"; then : 10004 10005 lt_aix_libpath_sed=' 10006 /Import File Strings/,/^$/ { 10007 /^0/ { 10008 s/^0 *\([^ ]*\) *$/\1/ 10009 p 10010 } 10011 }' 10012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10013 # Check for a 64-bit object if we didn't find anything. 10014 if test -z "$lt_cv_aix_libpath_"; then 10015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10016 fi 10017fi 10018rm -f core conftest.err conftest.$ac_objext \ 10019 conftest$ac_exeext conftest.$ac_ext 10020 if test -z "$lt_cv_aix_libpath_"; then 10021 lt_cv_aix_libpath_=/usr/lib:/lib 10022 fi 10023 10024fi 10025 10026 aix_libpath=$lt_cv_aix_libpath_ 10027fi 10028 10029 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10030 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10031 else 10032 if test ia64 = "$host_cpu"; then 10033 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10034 allow_undefined_flag="-z nodefs" 10035 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" 10036 else 10037 # Determine the default libpath from the value encoded in an 10038 # empty executable. 10039 if test set = "${lt_cv_aix_libpath+set}"; then 10040 aix_libpath=$lt_cv_aix_libpath 10041else 10042 if ${lt_cv_aix_libpath_+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047 10048int 10049main () 10050{ 10051 10052 ; 10053 return 0; 10054} 10055_ACEOF 10056if ac_fn_c_try_link "$LINENO"; then : 10057 10058 lt_aix_libpath_sed=' 10059 /Import File Strings/,/^$/ { 10060 /^0/ { 10061 s/^0 *\([^ ]*\) *$/\1/ 10062 p 10063 } 10064 }' 10065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10066 # Check for a 64-bit object if we didn't find anything. 10067 if test -z "$lt_cv_aix_libpath_"; then 10068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10069 fi 10070fi 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073 if test -z "$lt_cv_aix_libpath_"; then 10074 lt_cv_aix_libpath_=/usr/lib:/lib 10075 fi 10076 10077fi 10078 10079 aix_libpath=$lt_cv_aix_libpath_ 10080fi 10081 10082 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10083 # Warning - without using the other run time loading flags, 10084 # -berok will link without error, but may produce a broken library. 10085 no_undefined_flag=' $wl-bernotok' 10086 allow_undefined_flag=' $wl-berok' 10087 if test yes = "$with_gnu_ld"; then 10088 # We only use this code for GNU lds that support --whole-archive. 10089 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10090 else 10091 # Exported symbols can be pulled into shared objects from archives 10092 whole_archive_flag_spec='$convenience' 10093 fi 10094 archive_cmds_need_lc=yes 10095 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10096 # -brtl affects multiple linker settings, -berok does not and is overridden later 10097 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10098 if test svr4 != "$with_aix_soname"; then 10099 # This is similar to how AIX traditionally builds its shared libraries. 10100 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10101 fi 10102 if test aix != "$with_aix_soname"; then 10103 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10104 else 10105 # used by -dlpreopen to get the symbols 10106 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10107 fi 10108 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10109 fi 10110 fi 10111 ;; 10112 10113 amigaos*) 10114 case $host_cpu in 10115 powerpc) 10116 # see comment about AmigaOS4 .so support 10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10118 archive_expsym_cmds='' 10119 ;; 10120 m68k) 10121 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)' 10122 hardcode_libdir_flag_spec='-L$libdir' 10123 hardcode_minus_L=yes 10124 ;; 10125 esac 10126 ;; 10127 10128 bsdi[45]*) 10129 export_dynamic_flag_spec=-rdynamic 10130 ;; 10131 10132 cygwin* | mingw* | pw32* | cegcc*) 10133 # When not using gcc, we currently assume that we are using 10134 # Microsoft Visual C++. 10135 # hardcode_libdir_flag_spec is actually meaningless, as there is 10136 # no search path for DLLs. 10137 case $cc_basename in 10138 cl*) 10139 # Native MSVC 10140 hardcode_libdir_flag_spec=' ' 10141 allow_undefined_flag=unsupported 10142 always_export_symbols=yes 10143 file_list_spec='@' 10144 # Tell ltmain to make .lib files, not .a files. 10145 libext=lib 10146 # Tell ltmain to make .dll files, not .so files. 10147 shrext_cmds=.dll 10148 # FIXME: Setting linknames here is a bad hack. 10149 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10150 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10151 cp "$export_symbols" "$output_objdir/$soname.def"; 10152 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10153 else 10154 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10155 fi~ 10156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10157 linknames=' 10158 # The linker will not automatically build a static lib if we build a DLL. 10159 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10160 enable_shared_with_static_runtimes=yes 10161 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10163 # Don't use ranlib 10164 old_postinstall_cmds='chmod 644 $oldlib' 10165 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10166 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10167 case $lt_outputfile in 10168 *.exe|*.EXE) ;; 10169 *) 10170 lt_outputfile=$lt_outputfile.exe 10171 lt_tool_outputfile=$lt_tool_outputfile.exe 10172 ;; 10173 esac~ 10174 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10176 $RM "$lt_outputfile.manifest"; 10177 fi' 10178 ;; 10179 *) 10180 # Assume MSVC wrapper 10181 hardcode_libdir_flag_spec=' ' 10182 allow_undefined_flag=unsupported 10183 # Tell ltmain to make .lib files, not .a files. 10184 libext=lib 10185 # Tell ltmain to make .dll files, not .so files. 10186 shrext_cmds=.dll 10187 # FIXME: Setting linknames here is a bad hack. 10188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10189 # The linker will automatically build a .lib file if we build a DLL. 10190 old_archive_from_new_cmds='true' 10191 # FIXME: Should let the user specify the lib program. 10192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10193 enable_shared_with_static_runtimes=yes 10194 ;; 10195 esac 10196 ;; 10197 10198 darwin* | rhapsody*) 10199 10200 10201 archive_cmds_need_lc=no 10202 hardcode_direct=no 10203 hardcode_automatic=yes 10204 hardcode_shlibpath_var=unsupported 10205 if test yes = "$lt_cv_ld_force_load"; then 10206 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\"`' 10207 10208 else 10209 whole_archive_flag_spec='' 10210 fi 10211 link_all_deplibs=yes 10212 allow_undefined_flag=$_lt_dar_allow_undefined 10213 case $cc_basename in 10214 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10215 *) _lt_dar_can_shared=$GCC ;; 10216 esac 10217 if test yes = "$_lt_dar_can_shared"; then 10218 output_verbose_link_cmd=func_echo_all 10219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10221 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" 10222 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" 10223 10224 else 10225 ld_shlibs=no 10226 fi 10227 10228 ;; 10229 10230 dgux*) 10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10232 hardcode_libdir_flag_spec='-L$libdir' 10233 hardcode_shlibpath_var=no 10234 ;; 10235 10236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10237 # support. Future versions do this automatically, but an explicit c++rt0.o 10238 # does not break anything, and helps significantly (at the cost of a little 10239 # extra space). 10240 freebsd2.2*) 10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10242 hardcode_libdir_flag_spec='-R$libdir' 10243 hardcode_direct=yes 10244 hardcode_shlibpath_var=no 10245 ;; 10246 10247 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10248 freebsd2.*) 10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10250 hardcode_direct=yes 10251 hardcode_minus_L=yes 10252 hardcode_shlibpath_var=no 10253 ;; 10254 10255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10256 freebsd* | dragonfly*) 10257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10258 hardcode_libdir_flag_spec='-R$libdir' 10259 hardcode_direct=yes 10260 hardcode_shlibpath_var=no 10261 ;; 10262 10263 hpux9*) 10264 if test yes = "$GCC"; then 10265 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10266 else 10267 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10268 fi 10269 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10270 hardcode_libdir_separator=: 10271 hardcode_direct=yes 10272 10273 # hardcode_minus_L: Not really in the search PATH, 10274 # but as the default location of the library. 10275 hardcode_minus_L=yes 10276 export_dynamic_flag_spec='$wl-E' 10277 ;; 10278 10279 hpux10*) 10280 if test yes,no = "$GCC,$with_gnu_ld"; then 10281 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10282 else 10283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10284 fi 10285 if test no = "$with_gnu_ld"; then 10286 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10287 hardcode_libdir_separator=: 10288 hardcode_direct=yes 10289 hardcode_direct_absolute=yes 10290 export_dynamic_flag_spec='$wl-E' 10291 # hardcode_minus_L: Not really in the search PATH, 10292 # but as the default location of the library. 10293 hardcode_minus_L=yes 10294 fi 10295 ;; 10296 10297 hpux11*) 10298 if test yes,no = "$GCC,$with_gnu_ld"; then 10299 case $host_cpu in 10300 hppa*64*) 10301 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 ;; 10303 ia64*) 10304 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10305 ;; 10306 *) 10307 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10308 ;; 10309 esac 10310 else 10311 case $host_cpu in 10312 hppa*64*) 10313 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10314 ;; 10315 ia64*) 10316 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10317 ;; 10318 *) 10319 10320 # Older versions of the 11.00 compiler do not understand -b yet 10321 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10323$as_echo_n "checking if $CC understands -b... " >&6; } 10324if ${lt_cv_prog_compiler__b+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 lt_cv_prog_compiler__b=no 10328 save_LDFLAGS=$LDFLAGS 10329 LDFLAGS="$LDFLAGS -b" 10330 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10332 # The linker can only warn and ignore the option if not recognized 10333 # So say no if there are warnings 10334 if test -s conftest.err; then 10335 # Append any errors to the config.log. 10336 cat conftest.err 1>&5 10337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10339 if diff conftest.exp conftest.er2 >/dev/null; then 10340 lt_cv_prog_compiler__b=yes 10341 fi 10342 else 10343 lt_cv_prog_compiler__b=yes 10344 fi 10345 fi 10346 $RM -r conftest* 10347 LDFLAGS=$save_LDFLAGS 10348 10349fi 10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10351$as_echo "$lt_cv_prog_compiler__b" >&6; } 10352 10353if test yes = "$lt_cv_prog_compiler__b"; then 10354 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10355else 10356 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10357fi 10358 10359 ;; 10360 esac 10361 fi 10362 if test no = "$with_gnu_ld"; then 10363 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10364 hardcode_libdir_separator=: 10365 10366 case $host_cpu in 10367 hppa*64*|ia64*) 10368 hardcode_direct=no 10369 hardcode_shlibpath_var=no 10370 ;; 10371 *) 10372 hardcode_direct=yes 10373 hardcode_direct_absolute=yes 10374 export_dynamic_flag_spec='$wl-E' 10375 10376 # hardcode_minus_L: Not really in the search PATH, 10377 # but as the default location of the library. 10378 hardcode_minus_L=yes 10379 ;; 10380 esac 10381 fi 10382 ;; 10383 10384 irix5* | irix6* | nonstopux*) 10385 if test yes = "$GCC"; then 10386 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' 10387 # Try to use the -exported_symbol ld option, if it does not 10388 # work, assume that -exports_file does not work either and 10389 # implicitly export all symbols. 10390 # This should be the same for all languages, so no per-tag cache variable. 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10392$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10393if ${lt_cv_irix_exported_symbol+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 save_LDFLAGS=$LDFLAGS 10397 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10399/* end confdefs.h. */ 10400int foo (void) { return 0; } 10401_ACEOF 10402if ac_fn_c_try_link "$LINENO"; then : 10403 lt_cv_irix_exported_symbol=yes 10404else 10405 lt_cv_irix_exported_symbol=no 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409 LDFLAGS=$save_LDFLAGS 10410fi 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10412$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10413 if test yes = "$lt_cv_irix_exported_symbol"; then 10414 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' 10415 fi 10416 else 10417 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' 10418 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' 10419 fi 10420 archive_cmds_need_lc='no' 10421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10422 hardcode_libdir_separator=: 10423 inherit_rpath=yes 10424 link_all_deplibs=yes 10425 ;; 10426 10427 linux*) 10428 case $cc_basename in 10429 tcc*) 10430 # Fabrice Bellard et al's Tiny C Compiler 10431 ld_shlibs=yes 10432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10433 ;; 10434 esac 10435 ;; 10436 10437 netbsd*) 10438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10440 else 10441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10442 fi 10443 hardcode_libdir_flag_spec='-R$libdir' 10444 hardcode_direct=yes 10445 hardcode_shlibpath_var=no 10446 ;; 10447 10448 newsos6) 10449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10450 hardcode_direct=yes 10451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10452 hardcode_libdir_separator=: 10453 hardcode_shlibpath_var=no 10454 ;; 10455 10456 *nto* | *qnx*) 10457 ;; 10458 10459 openbsd* | bitrig*) 10460 if test -f /usr/libexec/ld.so; then 10461 hardcode_direct=yes 10462 hardcode_shlibpath_var=no 10463 hardcode_direct_absolute=yes 10464 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10466 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10467 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10468 export_dynamic_flag_spec='$wl-E' 10469 else 10470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10471 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10472 fi 10473 else 10474 ld_shlibs=no 10475 fi 10476 ;; 10477 10478 os2*) 10479 hardcode_libdir_flag_spec='-L$libdir' 10480 hardcode_minus_L=yes 10481 allow_undefined_flag=unsupported 10482 shrext_cmds=.dll 10483 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10486 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10487 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10489 emximp -o $lib $output_objdir/$libname.def' 10490 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10491 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10492 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10493 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10494 prefix_cmds="$SED"~ 10495 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10496 prefix_cmds="$prefix_cmds -e 1d"; 10497 fi~ 10498 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10499 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10501 emximp -o $lib $output_objdir/$libname.def' 10502 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10503 enable_shared_with_static_runtimes=yes 10504 ;; 10505 10506 osf3*) 10507 if test yes = "$GCC"; then 10508 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10509 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' 10510 else 10511 allow_undefined_flag=' -expect_unresolved \*' 10512 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' 10513 fi 10514 archive_cmds_need_lc='no' 10515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10516 hardcode_libdir_separator=: 10517 ;; 10518 10519 osf4* | osf5*) # as osf3* with the addition of -msym flag 10520 if test yes = "$GCC"; then 10521 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10522 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' 10523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10524 else 10525 allow_undefined_flag=' -expect_unresolved \*' 10526 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' 10527 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~ 10528 $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' 10529 10530 # Both c and cxx compiler support -rpath directly 10531 hardcode_libdir_flag_spec='-rpath $libdir' 10532 fi 10533 archive_cmds_need_lc='no' 10534 hardcode_libdir_separator=: 10535 ;; 10536 10537 solaris*) 10538 no_undefined_flag=' -z defs' 10539 if test yes = "$GCC"; then 10540 wlarc='$wl' 10541 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10543 $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' 10544 else 10545 case `$CC -V 2>&1` in 10546 *"Compilers 5.0"*) 10547 wlarc='' 10548 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10549 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10550 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10551 ;; 10552 *) 10553 wlarc='$wl' 10554 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10556 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10557 ;; 10558 esac 10559 fi 10560 hardcode_libdir_flag_spec='-R$libdir' 10561 hardcode_shlibpath_var=no 10562 case $host_os in 10563 solaris2.[0-5] | solaris2.[0-5].*) ;; 10564 *) 10565 # The compiler driver will combine and reorder linker options, 10566 # but understands '-z linker_flag'. GCC discards it without '$wl', 10567 # but is careful enough not to reorder. 10568 # Supported since Solaris 2.6 (maybe 2.5.1?) 10569 if test yes = "$GCC"; then 10570 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10571 else 10572 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10573 fi 10574 ;; 10575 esac 10576 link_all_deplibs=yes 10577 ;; 10578 10579 sunos4*) 10580 if test sequent = "$host_vendor"; then 10581 # Use $CC to link under sequent, because it throws in some extra .o 10582 # files that make .init and .fini sections work. 10583 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10584 else 10585 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10586 fi 10587 hardcode_libdir_flag_spec='-L$libdir' 10588 hardcode_direct=yes 10589 hardcode_minus_L=yes 10590 hardcode_shlibpath_var=no 10591 ;; 10592 10593 sysv4) 10594 case $host_vendor in 10595 sni) 10596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10597 hardcode_direct=yes # is this really true??? 10598 ;; 10599 siemens) 10600 ## LD is ld it makes a PLAMLIB 10601 ## CC just makes a GrossModule. 10602 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10603 reload_cmds='$CC -r -o $output$reload_objs' 10604 hardcode_direct=no 10605 ;; 10606 motorola) 10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10608 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10609 ;; 10610 esac 10611 runpath_var='LD_RUN_PATH' 10612 hardcode_shlibpath_var=no 10613 ;; 10614 10615 sysv4.3*) 10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10617 hardcode_shlibpath_var=no 10618 export_dynamic_flag_spec='-Bexport' 10619 ;; 10620 10621 sysv4*MP*) 10622 if test -d /usr/nec; then 10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10624 hardcode_shlibpath_var=no 10625 runpath_var=LD_RUN_PATH 10626 hardcode_runpath_var=yes 10627 ld_shlibs=yes 10628 fi 10629 ;; 10630 10631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10632 no_undefined_flag='$wl-z,text' 10633 archive_cmds_need_lc=no 10634 hardcode_shlibpath_var=no 10635 runpath_var='LD_RUN_PATH' 10636 10637 if test yes = "$GCC"; then 10638 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10639 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10640 else 10641 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10642 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10643 fi 10644 ;; 10645 10646 sysv5* | sco3.2v5* | sco5v6*) 10647 # Note: We CANNOT use -z defs as we might desire, because we do not 10648 # link with -lc, and that would cause any symbols used from libc to 10649 # always be unresolved, which means just about no library would 10650 # ever link correctly. If we're not using GNU ld we use -z text 10651 # though, which does catch some bad symbols but isn't as heavy-handed 10652 # as -z defs. 10653 no_undefined_flag='$wl-z,text' 10654 allow_undefined_flag='$wl-z,nodefs' 10655 archive_cmds_need_lc=no 10656 hardcode_shlibpath_var=no 10657 hardcode_libdir_flag_spec='$wl-R,$libdir' 10658 hardcode_libdir_separator=':' 10659 link_all_deplibs=yes 10660 export_dynamic_flag_spec='$wl-Bexport' 10661 runpath_var='LD_RUN_PATH' 10662 10663 if test yes = "$GCC"; then 10664 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10665 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10666 else 10667 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10668 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10669 fi 10670 ;; 10671 10672 uts4*) 10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10674 hardcode_libdir_flag_spec='-L$libdir' 10675 hardcode_shlibpath_var=no 10676 ;; 10677 10678 *) 10679 ld_shlibs=no 10680 ;; 10681 esac 10682 10683 if test sni = "$host_vendor"; then 10684 case $host in 10685 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10686 export_dynamic_flag_spec='$wl-Blargedynsym' 10687 ;; 10688 esac 10689 fi 10690 fi 10691 10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10693$as_echo "$ld_shlibs" >&6; } 10694test no = "$ld_shlibs" && can_build_shared=no 10695 10696with_gnu_ld=$with_gnu_ld 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712# 10713# Do we need to explicitly link libc? 10714# 10715case "x$archive_cmds_need_lc" in 10716x|xyes) 10717 # Assume -lc should be added 10718 archive_cmds_need_lc=yes 10719 10720 if test yes,yes = "$GCC,$enable_shared"; then 10721 case $archive_cmds in 10722 *'~'*) 10723 # FIXME: we may have to deal with multi-command sequences. 10724 ;; 10725 '$CC '*) 10726 # Test whether the compiler implicitly links with -lc since on some 10727 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10728 # to ld, don't add -lc before -lgcc. 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10730$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10731if ${lt_cv_archive_cmds_need_lc+:} false; then : 10732 $as_echo_n "(cached) " >&6 10733else 10734 $RM conftest* 10735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10736 10737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10738 (eval $ac_compile) 2>&5 10739 ac_status=$? 10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10741 test $ac_status = 0; } 2>conftest.err; then 10742 soname=conftest 10743 lib=conftest 10744 libobjs=conftest.$ac_objext 10745 deplibs= 10746 wl=$lt_prog_compiler_wl 10747 pic_flag=$lt_prog_compiler_pic 10748 compiler_flags=-v 10749 linker_flags=-v 10750 verstring= 10751 output_objdir=. 10752 libname=conftest 10753 lt_save_allow_undefined_flag=$allow_undefined_flag 10754 allow_undefined_flag= 10755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10756 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10757 ac_status=$? 10758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10759 test $ac_status = 0; } 10760 then 10761 lt_cv_archive_cmds_need_lc=no 10762 else 10763 lt_cv_archive_cmds_need_lc=yes 10764 fi 10765 allow_undefined_flag=$lt_save_allow_undefined_flag 10766 else 10767 cat conftest.err 1>&5 10768 fi 10769 $RM conftest* 10770 10771fi 10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10773$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10774 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10775 ;; 10776 esac 10777 fi 10778 ;; 10779esac 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 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 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10933$as_echo_n "checking dynamic linker characteristics... " >&6; } 10934 10935if test yes = "$GCC"; then 10936 case $host_os in 10937 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10938 *) lt_awk_arg='/^libraries:/' ;; 10939 esac 10940 case $host_os in 10941 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10942 *) lt_sed_strip_eq='s|=/|/|g' ;; 10943 esac 10944 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10945 case $lt_search_path_spec in 10946 *\;*) 10947 # if the path contains ";" then we assume it to be the separator 10948 # otherwise default to the standard path separator (i.e. ":") - it is 10949 # assumed that no part of a normal pathname contains ";" but that should 10950 # okay in the real world where ";" in dirpaths is itself problematic. 10951 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10952 ;; 10953 *) 10954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10955 ;; 10956 esac 10957 # Ok, now we have the path, separated by spaces, we can step through it 10958 # and add multilib dir if necessary... 10959 lt_tmp_lt_search_path_spec= 10960 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10961 # ...but if some path component already ends with the multilib dir we assume 10962 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10963 case "$lt_multi_os_dir; $lt_search_path_spec " in 10964 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10965 lt_multi_os_dir= 10966 ;; 10967 esac 10968 for lt_sys_path in $lt_search_path_spec; do 10969 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10971 elif test -n "$lt_multi_os_dir"; then 10972 test -d "$lt_sys_path" && \ 10973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10974 fi 10975 done 10976 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10977BEGIN {RS = " "; FS = "/|\n";} { 10978 lt_foo = ""; 10979 lt_count = 0; 10980 for (lt_i = NF; lt_i > 0; lt_i--) { 10981 if ($lt_i != "" && $lt_i != ".") { 10982 if ($lt_i == "..") { 10983 lt_count++; 10984 } else { 10985 if (lt_count == 0) { 10986 lt_foo = "/" $lt_i lt_foo; 10987 } else { 10988 lt_count--; 10989 } 10990 } 10991 } 10992 } 10993 if (lt_foo != "") { lt_freq[lt_foo]++; } 10994 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10995}'` 10996 # AWK program above erroneously prepends '/' to C:/dos/paths 10997 # for these hosts. 10998 case $host_os in 10999 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11000 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11001 esac 11002 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11003else 11004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11005fi 11006library_names_spec= 11007libname_spec='lib$name' 11008soname_spec= 11009shrext_cmds=.so 11010postinstall_cmds= 11011postuninstall_cmds= 11012finish_cmds= 11013finish_eval= 11014shlibpath_var= 11015shlibpath_overrides_runpath=unknown 11016version_type=none 11017dynamic_linker="$host_os ld.so" 11018sys_lib_dlsearch_path_spec="/lib /usr/lib" 11019need_lib_prefix=unknown 11020hardcode_into_libs=no 11021 11022# when you set need_version to no, make sure it does not cause -set_version 11023# flags to be left without arguments 11024need_version=unknown 11025 11026 11027 11028case $host_os in 11029aix3*) 11030 version_type=linux # correct to gnu/linux during the next big refactor 11031 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11032 shlibpath_var=LIBPATH 11033 11034 # AIX 3 has no versioning support, so we append a major version to the name. 11035 soname_spec='$libname$release$shared_ext$major' 11036 ;; 11037 11038aix[4-9]*) 11039 version_type=linux # correct to gnu/linux during the next big refactor 11040 need_lib_prefix=no 11041 need_version=no 11042 hardcode_into_libs=yes 11043 if test ia64 = "$host_cpu"; then 11044 # AIX 5 supports IA64 11045 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 else 11048 # With GCC up to 2.95.x, collect2 would create an import file 11049 # for dependence libraries. The import file would start with 11050 # the line '#! .'. This would cause the generated library to 11051 # depend on '.', always an invalid library. This was fixed in 11052 # development snapshots of GCC prior to 3.0. 11053 case $host_os in 11054 aix4 | aix4.[01] | aix4.[01].*) 11055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11056 echo ' yes ' 11057 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11058 : 11059 else 11060 can_build_shared=no 11061 fi 11062 ;; 11063 esac 11064 # Using Import Files as archive members, it is possible to support 11065 # filename-based versioning of shared library archives on AIX. While 11066 # this would work for both with and without runtime linking, it will 11067 # prevent static linking of such archives. So we do filename-based 11068 # shared library versioning with .so extension only, which is used 11069 # when both runtime linking and shared linking is enabled. 11070 # Unfortunately, runtime linking may impact performance, so we do 11071 # not want this to be the default eventually. Also, we use the 11072 # versioned .so libs for executables only if there is the -brtl 11073 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11074 # To allow for filename-based versioning support, we need to create 11075 # libNAME.so.V as an archive file, containing: 11076 # *) an Import File, referring to the versioned filename of the 11077 # archive as well as the shared archive member, telling the 11078 # bitwidth (32 or 64) of that shared object, and providing the 11079 # list of exported symbols of that shared object, eventually 11080 # decorated with the 'weak' keyword 11081 # *) the shared object with the F_LOADONLY flag set, to really avoid 11082 # it being seen by the linker. 11083 # At run time we better use the real file rather than another symlink, 11084 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11085 11086 case $with_aix_soname,$aix_use_runtimelinking in 11087 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11088 # soname into executable. Probably we can add versioning support to 11089 # collect2, so additional links can be useful in future. 11090 aix,yes) # traditional libtool 11091 dynamic_linker='AIX unversionable lib.so' 11092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11093 # instead of lib<name>.a to let people know that these are not 11094 # typical AIX shared libraries. 11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11096 ;; 11097 aix,no) # traditional AIX only 11098 dynamic_linker='AIX lib.a(lib.so.V)' 11099 # We preserve .a as extension for shared libraries through AIX4.2 11100 # and later when we are not doing run time linking. 11101 library_names_spec='$libname$release.a $libname.a' 11102 soname_spec='$libname$release$shared_ext$major' 11103 ;; 11104 svr4,*) # full svr4 only 11105 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11106 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11107 # We do not specify a path in Import Files, so LIBPATH fires. 11108 shlibpath_overrides_runpath=yes 11109 ;; 11110 *,yes) # both, prefer svr4 11111 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11112 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11113 # unpreferred sharedlib libNAME.a needs extra handling 11114 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11115 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11116 # We do not specify a path in Import Files, so LIBPATH fires. 11117 shlibpath_overrides_runpath=yes 11118 ;; 11119 *,no) # both, prefer aix 11120 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11121 library_names_spec='$libname$release.a $libname.a' 11122 soname_spec='$libname$release$shared_ext$major' 11123 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11124 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11125 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11126 ;; 11127 esac 11128 shlibpath_var=LIBPATH 11129 fi 11130 ;; 11131 11132amigaos*) 11133 case $host_cpu in 11134 powerpc) 11135 # Since July 2007 AmigaOS4 officially supports .so libraries. 11136 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11138 ;; 11139 m68k) 11140 library_names_spec='$libname.ixlibrary $libname.a' 11141 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11142 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11143 ;; 11144 esac 11145 ;; 11146 11147beos*) 11148 library_names_spec='$libname$shared_ext' 11149 dynamic_linker="$host_os ld.so" 11150 shlibpath_var=LIBRARY_PATH 11151 ;; 11152 11153bsdi[45]*) 11154 version_type=linux # correct to gnu/linux during the next big refactor 11155 need_version=no 11156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11157 soname_spec='$libname$release$shared_ext$major' 11158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11159 shlibpath_var=LD_LIBRARY_PATH 11160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11162 # the default ld.so.conf also contains /usr/contrib/lib and 11163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11164 # libtool to hard-code these into programs 11165 ;; 11166 11167cygwin* | mingw* | pw32* | cegcc*) 11168 version_type=windows 11169 shrext_cmds=.dll 11170 need_version=no 11171 need_lib_prefix=no 11172 11173 case $GCC,$cc_basename in 11174 yes,*) 11175 # gcc 11176 library_names_spec='$libname.dll.a' 11177 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11178 postinstall_cmds='base_file=`basename \$file`~ 11179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11180 dldir=$destdir/`dirname \$dlpath`~ 11181 test -d \$dldir || mkdir -p \$dldir~ 11182 $install_prog $dir/$dlname \$dldir/$dlname~ 11183 chmod a+x \$dldir/$dlname~ 11184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11186 fi' 11187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11188 dlpath=$dir/\$dldll~ 11189 $RM \$dlpath' 11190 shlibpath_overrides_runpath=yes 11191 11192 case $host_os in 11193 cygwin*) 11194 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11195 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11196 11197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11198 ;; 11199 mingw* | cegcc*) 11200 # MinGW DLLs use traditional 'lib' prefix 11201 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11202 ;; 11203 pw32*) 11204 # pw32 DLLs use 'pw' prefix rather than 'lib' 11205 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11206 ;; 11207 esac 11208 dynamic_linker='Win32 ld.exe' 11209 ;; 11210 11211 *,cl*) 11212 # Native MSVC 11213 libname_spec='$name' 11214 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11215 library_names_spec='$libname.dll.lib' 11216 11217 case $build_os in 11218 mingw*) 11219 sys_lib_search_path_spec= 11220 lt_save_ifs=$IFS 11221 IFS=';' 11222 for lt_path in $LIB 11223 do 11224 IFS=$lt_save_ifs 11225 # Let DOS variable expansion print the short 8.3 style file name. 11226 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11227 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11228 done 11229 IFS=$lt_save_ifs 11230 # Convert to MSYS style. 11231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11232 ;; 11233 cygwin*) 11234 # Convert to unix form, then to dos form, then back to unix form 11235 # but this time dos style (no spaces!) so that the unix form looks 11236 # like /cygdrive/c/PROGRA~1:/cygdr... 11237 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11238 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11239 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11240 ;; 11241 *) 11242 sys_lib_search_path_spec=$LIB 11243 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11244 # It is most probably a Windows format PATH. 11245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11246 else 11247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11248 fi 11249 # FIXME: find the short name or the path components, as spaces are 11250 # common. (e.g. "Program Files" -> "PROGRA~1") 11251 ;; 11252 esac 11253 11254 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11255 postinstall_cmds='base_file=`basename \$file`~ 11256 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11257 dldir=$destdir/`dirname \$dlpath`~ 11258 test -d \$dldir || mkdir -p \$dldir~ 11259 $install_prog $dir/$dlname \$dldir/$dlname' 11260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11261 dlpath=$dir/\$dldll~ 11262 $RM \$dlpath' 11263 shlibpath_overrides_runpath=yes 11264 dynamic_linker='Win32 link.exe' 11265 ;; 11266 11267 *) 11268 # Assume MSVC wrapper 11269 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11270 dynamic_linker='Win32 ld.exe' 11271 ;; 11272 esac 11273 # FIXME: first we should search . and the directory the executable is in 11274 shlibpath_var=PATH 11275 ;; 11276 11277darwin* | rhapsody*) 11278 dynamic_linker="$host_os dyld" 11279 version_type=darwin 11280 need_lib_prefix=no 11281 need_version=no 11282 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11283 soname_spec='$libname$release$major$shared_ext' 11284 shlibpath_overrides_runpath=yes 11285 shlibpath_var=DYLD_LIBRARY_PATH 11286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11287 11288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11290 ;; 11291 11292dgux*) 11293 version_type=linux # correct to gnu/linux during the next big refactor 11294 need_lib_prefix=no 11295 need_version=no 11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11297 soname_spec='$libname$release$shared_ext$major' 11298 shlibpath_var=LD_LIBRARY_PATH 11299 ;; 11300 11301freebsd* | dragonfly*) 11302 # DragonFly does not have aout. When/if they implement a new 11303 # versioning mechanism, adjust this. 11304 if test -x /usr/bin/objformat; then 11305 objformat=`/usr/bin/objformat` 11306 else 11307 case $host_os in 11308 freebsd[23].*) objformat=aout ;; 11309 *) objformat=elf ;; 11310 esac 11311 fi 11312 version_type=freebsd-$objformat 11313 case $version_type in 11314 freebsd-elf*) 11315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11316 soname_spec='$libname$release$shared_ext$major' 11317 need_version=no 11318 need_lib_prefix=no 11319 ;; 11320 freebsd-*) 11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11322 need_version=yes 11323 ;; 11324 esac 11325 shlibpath_var=LD_LIBRARY_PATH 11326 case $host_os in 11327 freebsd2.*) 11328 shlibpath_overrides_runpath=yes 11329 ;; 11330 freebsd3.[01]* | freebsdelf3.[01]*) 11331 shlibpath_overrides_runpath=yes 11332 hardcode_into_libs=yes 11333 ;; 11334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11336 shlibpath_overrides_runpath=no 11337 hardcode_into_libs=yes 11338 ;; 11339 *) # from 4.6 on, and DragonFly 11340 shlibpath_overrides_runpath=yes 11341 hardcode_into_libs=yes 11342 ;; 11343 esac 11344 ;; 11345 11346haiku*) 11347 version_type=linux # correct to gnu/linux during the next big refactor 11348 need_lib_prefix=no 11349 need_version=no 11350 dynamic_linker="$host_os runtime_loader" 11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11352 soname_spec='$libname$release$shared_ext$major' 11353 shlibpath_var=LIBRARY_PATH 11354 shlibpath_overrides_runpath=no 11355 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11356 hardcode_into_libs=yes 11357 ;; 11358 11359hpux9* | hpux10* | hpux11*) 11360 # Give a soname corresponding to the major version so that dld.sl refuses to 11361 # link against other versions. 11362 version_type=sunos 11363 need_lib_prefix=no 11364 need_version=no 11365 case $host_cpu in 11366 ia64*) 11367 shrext_cmds='.so' 11368 hardcode_into_libs=yes 11369 dynamic_linker="$host_os dld.so" 11370 shlibpath_var=LD_LIBRARY_PATH 11371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11373 soname_spec='$libname$release$shared_ext$major' 11374 if test 32 = "$HPUX_IA64_MODE"; then 11375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11376 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11377 else 11378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11379 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11380 fi 11381 ;; 11382 hppa*64*) 11383 shrext_cmds='.sl' 11384 hardcode_into_libs=yes 11385 dynamic_linker="$host_os dld.sl" 11386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11389 soname_spec='$libname$release$shared_ext$major' 11390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11392 ;; 11393 *) 11394 shrext_cmds='.sl' 11395 dynamic_linker="$host_os dld.sl" 11396 shlibpath_var=SHLIB_PATH 11397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11399 soname_spec='$libname$release$shared_ext$major' 11400 ;; 11401 esac 11402 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11403 postinstall_cmds='chmod 555 $lib' 11404 # or fails outright, so override atomically: 11405 install_override_mode=555 11406 ;; 11407 11408interix[3-9]*) 11409 version_type=linux # correct to gnu/linux during the next big refactor 11410 need_lib_prefix=no 11411 need_version=no 11412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11413 soname_spec='$libname$release$shared_ext$major' 11414 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11415 shlibpath_var=LD_LIBRARY_PATH 11416 shlibpath_overrides_runpath=no 11417 hardcode_into_libs=yes 11418 ;; 11419 11420irix5* | irix6* | nonstopux*) 11421 case $host_os in 11422 nonstopux*) version_type=nonstopux ;; 11423 *) 11424 if test yes = "$lt_cv_prog_gnu_ld"; then 11425 version_type=linux # correct to gnu/linux during the next big refactor 11426 else 11427 version_type=irix 11428 fi ;; 11429 esac 11430 need_lib_prefix=no 11431 need_version=no 11432 soname_spec='$libname$release$shared_ext$major' 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11434 case $host_os in 11435 irix5* | nonstopux*) 11436 libsuff= shlibsuff= 11437 ;; 11438 *) 11439 case $LD in # libtool.m4 will add one of these switches to LD 11440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11441 libsuff= shlibsuff= libmagic=32-bit;; 11442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11443 libsuff=32 shlibsuff=N32 libmagic=N32;; 11444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11445 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11446 *) libsuff= shlibsuff= libmagic=never-match;; 11447 esac 11448 ;; 11449 esac 11450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11451 shlibpath_overrides_runpath=no 11452 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11453 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11454 hardcode_into_libs=yes 11455 ;; 11456 11457# No shared lib support for Linux oldld, aout, or coff. 11458linux*oldld* | linux*aout* | linux*coff*) 11459 dynamic_linker=no 11460 ;; 11461 11462linux*android*) 11463 version_type=none # Android doesn't support versioned libraries. 11464 need_lib_prefix=no 11465 need_version=no 11466 library_names_spec='$libname$release$shared_ext' 11467 soname_spec='$libname$release$shared_ext' 11468 finish_cmds= 11469 shlibpath_var=LD_LIBRARY_PATH 11470 shlibpath_overrides_runpath=yes 11471 11472 # This implies no fast_install, which is unacceptable. 11473 # Some rework will be needed to allow for fast_install 11474 # before this can be enabled. 11475 hardcode_into_libs=yes 11476 11477 dynamic_linker='Android linker' 11478 # Don't embed -rpath directories since the linker doesn't support them. 11479 hardcode_libdir_flag_spec='-L$libdir' 11480 ;; 11481 11482# This must be glibc/ELF. 11483linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11484 version_type=linux # correct to gnu/linux during the next big refactor 11485 need_lib_prefix=no 11486 need_version=no 11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11488 soname_spec='$libname$release$shared_ext$major' 11489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11490 shlibpath_var=LD_LIBRARY_PATH 11491 shlibpath_overrides_runpath=no 11492 11493 # Some binutils ld are patched to set DT_RUNPATH 11494 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496else 11497 lt_cv_shlibpath_overrides_runpath=no 11498 save_LDFLAGS=$LDFLAGS 11499 save_libdir=$libdir 11500 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11501 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11503/* end confdefs.h. */ 11504 11505int 11506main () 11507{ 11508 11509 ; 11510 return 0; 11511} 11512_ACEOF 11513if ac_fn_c_try_link "$LINENO"; then : 11514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11515 lt_cv_shlibpath_overrides_runpath=yes 11516fi 11517fi 11518rm -f core conftest.err conftest.$ac_objext \ 11519 conftest$ac_exeext conftest.$ac_ext 11520 LDFLAGS=$save_LDFLAGS 11521 libdir=$save_libdir 11522 11523fi 11524 11525 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11526 11527 # This implies no fast_install, which is unacceptable. 11528 # Some rework will be needed to allow for fast_install 11529 # before this can be enabled. 11530 hardcode_into_libs=yes 11531 11532 # Ideally, we could use ldconfig to report *all* directores which are 11533 # searched for libraries, however this is still not possible. Aside from not 11534 # being certain /sbin/ldconfig is available, command 11535 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11536 # even though it is searched at run-time. Try to do the best guess by 11537 # appending ld.so.conf contents (and includes) to the search path. 11538 if test -f /etc/ld.so.conf; then 11539 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' ' '` 11540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11541 fi 11542 11543 # We used to test for /lib/ld.so.1 and disable shared libraries on 11544 # powerpc, because MkLinux only supported shared libraries with the 11545 # GNU dynamic linker. Since this was broken with cross compilers, 11546 # most powerpc-linux boxes support dynamic linking these days and 11547 # people can always --disable-shared, the test was removed, and we 11548 # assume the GNU/Linux dynamic linker is in use. 11549 dynamic_linker='GNU/Linux ld.so' 11550 ;; 11551 11552netbsd*) 11553 version_type=sunos 11554 need_lib_prefix=no 11555 need_version=no 11556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11559 dynamic_linker='NetBSD (a.out) ld.so' 11560 else 11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11562 soname_spec='$libname$release$shared_ext$major' 11563 dynamic_linker='NetBSD ld.elf_so' 11564 fi 11565 shlibpath_var=LD_LIBRARY_PATH 11566 shlibpath_overrides_runpath=yes 11567 hardcode_into_libs=yes 11568 ;; 11569 11570newsos6) 11571 version_type=linux # correct to gnu/linux during the next big refactor 11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11573 shlibpath_var=LD_LIBRARY_PATH 11574 shlibpath_overrides_runpath=yes 11575 ;; 11576 11577*nto* | *qnx*) 11578 version_type=qnx 11579 need_lib_prefix=no 11580 need_version=no 11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11582 soname_spec='$libname$release$shared_ext$major' 11583 shlibpath_var=LD_LIBRARY_PATH 11584 shlibpath_overrides_runpath=no 11585 hardcode_into_libs=yes 11586 dynamic_linker='ldqnx.so' 11587 ;; 11588 11589openbsd* | bitrig*) 11590 version_type=sunos 11591 sys_lib_dlsearch_path_spec=/usr/lib 11592 need_lib_prefix=no 11593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11594 need_version=no 11595 else 11596 need_version=yes 11597 fi 11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11600 shlibpath_var=LD_LIBRARY_PATH 11601 shlibpath_overrides_runpath=yes 11602 ;; 11603 11604os2*) 11605 libname_spec='$name' 11606 version_type=windows 11607 shrext_cmds=.dll 11608 need_version=no 11609 need_lib_prefix=no 11610 # OS/2 can only load a DLL with a base name of 8 characters or less. 11611 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11612 v=$($ECHO $release$versuffix | tr -d .-); 11613 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11614 $ECHO $n$v`$shared_ext' 11615 library_names_spec='${libname}_dll.$libext' 11616 dynamic_linker='OS/2 ld.exe' 11617 shlibpath_var=BEGINLIBPATH 11618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11620 postinstall_cmds='base_file=`basename \$file`~ 11621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11622 dldir=$destdir/`dirname \$dlpath`~ 11623 test -d \$dldir || mkdir -p \$dldir~ 11624 $install_prog $dir/$dlname \$dldir/$dlname~ 11625 chmod a+x \$dldir/$dlname~ 11626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11628 fi' 11629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11630 dlpath=$dir/\$dldll~ 11631 $RM \$dlpath' 11632 ;; 11633 11634osf3* | osf4* | osf5*) 11635 version_type=osf 11636 need_lib_prefix=no 11637 need_version=no 11638 soname_spec='$libname$release$shared_ext$major' 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11643 ;; 11644 11645rdos*) 11646 dynamic_linker=no 11647 ;; 11648 11649solaris*) 11650 version_type=linux # correct to gnu/linux during the next big refactor 11651 need_lib_prefix=no 11652 need_version=no 11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11654 soname_spec='$libname$release$shared_ext$major' 11655 shlibpath_var=LD_LIBRARY_PATH 11656 shlibpath_overrides_runpath=yes 11657 hardcode_into_libs=yes 11658 # ldd complains unless libraries are executable 11659 postinstall_cmds='chmod +x $lib' 11660 ;; 11661 11662sunos4*) 11663 version_type=sunos 11664 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11666 shlibpath_var=LD_LIBRARY_PATH 11667 shlibpath_overrides_runpath=yes 11668 if test yes = "$with_gnu_ld"; then 11669 need_lib_prefix=no 11670 fi 11671 need_version=yes 11672 ;; 11673 11674sysv4 | sysv4.3*) 11675 version_type=linux # correct to gnu/linux during the next big refactor 11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11677 soname_spec='$libname$release$shared_ext$major' 11678 shlibpath_var=LD_LIBRARY_PATH 11679 case $host_vendor in 11680 sni) 11681 shlibpath_overrides_runpath=no 11682 need_lib_prefix=no 11683 runpath_var=LD_RUN_PATH 11684 ;; 11685 siemens) 11686 need_lib_prefix=no 11687 ;; 11688 motorola) 11689 need_lib_prefix=no 11690 need_version=no 11691 shlibpath_overrides_runpath=no 11692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11693 ;; 11694 esac 11695 ;; 11696 11697sysv4*MP*) 11698 if test -d /usr/nec; then 11699 version_type=linux # correct to gnu/linux during the next big refactor 11700 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11701 soname_spec='$libname$shared_ext.$major' 11702 shlibpath_var=LD_LIBRARY_PATH 11703 fi 11704 ;; 11705 11706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11707 version_type=sco 11708 need_lib_prefix=no 11709 need_version=no 11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11711 soname_spec='$libname$release$shared_ext$major' 11712 shlibpath_var=LD_LIBRARY_PATH 11713 shlibpath_overrides_runpath=yes 11714 hardcode_into_libs=yes 11715 if test yes = "$with_gnu_ld"; then 11716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11717 else 11718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11719 case $host_os in 11720 sco3.2v5*) 11721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11722 ;; 11723 esac 11724 fi 11725 sys_lib_dlsearch_path_spec='/usr/lib' 11726 ;; 11727 11728tpf*) 11729 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11730 version_type=linux # correct to gnu/linux during the next big refactor 11731 need_lib_prefix=no 11732 need_version=no 11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 shlibpath_overrides_runpath=no 11736 hardcode_into_libs=yes 11737 ;; 11738 11739uts4*) 11740 version_type=linux # correct to gnu/linux during the next big refactor 11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11742 soname_spec='$libname$release$shared_ext$major' 11743 shlibpath_var=LD_LIBRARY_PATH 11744 ;; 11745 11746*) 11747 dynamic_linker=no 11748 ;; 11749esac 11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11751$as_echo "$dynamic_linker" >&6; } 11752test no = "$dynamic_linker" && can_build_shared=no 11753 11754variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11755if test yes = "$GCC"; then 11756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11757fi 11758 11759if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11760 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11761fi 11762 11763if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11764 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11765fi 11766 11767# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11768configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11769 11770# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11771func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11772 11773# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11774configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11873$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11874hardcode_action= 11875if test -n "$hardcode_libdir_flag_spec" || 11876 test -n "$runpath_var" || 11877 test yes = "$hardcode_automatic"; then 11878 11879 # We can hardcode non-existent directories. 11880 if test no != "$hardcode_direct" && 11881 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11882 # have to relink, otherwise we might link with an installed library 11883 # when we should be linking with a yet-to-be-installed one 11884 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11885 test no != "$hardcode_minus_L"; then 11886 # Linking always hardcodes the temporary library directory. 11887 hardcode_action=relink 11888 else 11889 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11890 hardcode_action=immediate 11891 fi 11892else 11893 # We cannot hardcode anything, or else we can only hardcode existing 11894 # directories. 11895 hardcode_action=unsupported 11896fi 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11898$as_echo "$hardcode_action" >&6; } 11899 11900if test relink = "$hardcode_action" || 11901 test yes = "$inherit_rpath"; then 11902 # Fast installation is not supported 11903 enable_fast_install=no 11904elif test yes = "$shlibpath_overrides_runpath" || 11905 test no = "$enable_shared"; then 11906 # Fast installation is not necessary 11907 enable_fast_install=needless 11908fi 11909 11910 11911 11912 11913 11914 11915 if test yes != "$enable_dlopen"; then 11916 enable_dlopen=unknown 11917 enable_dlopen_self=unknown 11918 enable_dlopen_self_static=unknown 11919else 11920 lt_cv_dlopen=no 11921 lt_cv_dlopen_libs= 11922 11923 case $host_os in 11924 beos*) 11925 lt_cv_dlopen=load_add_on 11926 lt_cv_dlopen_libs= 11927 lt_cv_dlopen_self=yes 11928 ;; 11929 11930 mingw* | pw32* | cegcc*) 11931 lt_cv_dlopen=LoadLibrary 11932 lt_cv_dlopen_libs= 11933 ;; 11934 11935 cygwin*) 11936 lt_cv_dlopen=dlopen 11937 lt_cv_dlopen_libs= 11938 ;; 11939 11940 darwin*) 11941 # if libdl is installed we need to link against it 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11943$as_echo_n "checking for dlopen in -ldl... " >&6; } 11944if ${ac_cv_lib_dl_dlopen+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 ac_check_lib_save_LIBS=$LIBS 11948LIBS="-ldl $LIBS" 11949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950/* end confdefs.h. */ 11951 11952/* Override any GCC internal prototype to avoid an error. 11953 Use char because int might match the return type of a GCC 11954 builtin and then its argument prototype would still apply. */ 11955#ifdef __cplusplus 11956extern "C" 11957#endif 11958char dlopen (); 11959int 11960main () 11961{ 11962return dlopen (); 11963 ; 11964 return 0; 11965} 11966_ACEOF 11967if ac_fn_c_try_link "$LINENO"; then : 11968 ac_cv_lib_dl_dlopen=yes 11969else 11970 ac_cv_lib_dl_dlopen=no 11971fi 11972rm -f core conftest.err conftest.$ac_objext \ 11973 conftest$ac_exeext conftest.$ac_ext 11974LIBS=$ac_check_lib_save_LIBS 11975fi 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11977$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11978if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11979 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11980else 11981 11982 lt_cv_dlopen=dyld 11983 lt_cv_dlopen_libs= 11984 lt_cv_dlopen_self=yes 11985 11986fi 11987 11988 ;; 11989 11990 tpf*) 11991 # Don't try to run any link tests for TPF. We know it's impossible 11992 # because TPF is a cross-compiler, and we know how we open DSOs. 11993 lt_cv_dlopen=dlopen 11994 lt_cv_dlopen_libs= 11995 lt_cv_dlopen_self=no 11996 ;; 11997 11998 *) 11999 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12000if test "x$ac_cv_func_shl_load" = xyes; then : 12001 lt_cv_dlopen=shl_load 12002else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12004$as_echo_n "checking for shl_load in -ldld... " >&6; } 12005if ${ac_cv_lib_dld_shl_load+:} false; then : 12006 $as_echo_n "(cached) " >&6 12007else 12008 ac_check_lib_save_LIBS=$LIBS 12009LIBS="-ldld $LIBS" 12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012 12013/* Override any GCC internal prototype to avoid an error. 12014 Use char because int might match the return type of a GCC 12015 builtin and then its argument prototype would still apply. */ 12016#ifdef __cplusplus 12017extern "C" 12018#endif 12019char shl_load (); 12020int 12021main () 12022{ 12023return shl_load (); 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028if ac_fn_c_try_link "$LINENO"; then : 12029 ac_cv_lib_dld_shl_load=yes 12030else 12031 ac_cv_lib_dld_shl_load=no 12032fi 12033rm -f core conftest.err conftest.$ac_objext \ 12034 conftest$ac_exeext conftest.$ac_ext 12035LIBS=$ac_check_lib_save_LIBS 12036fi 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12038$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12039if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12040 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12041else 12042 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12043if test "x$ac_cv_func_dlopen" = xyes; then : 12044 lt_cv_dlopen=dlopen 12045else 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12047$as_echo_n "checking for dlopen in -ldl... " >&6; } 12048if ${ac_cv_lib_dl_dlopen+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050else 12051 ac_check_lib_save_LIBS=$LIBS 12052LIBS="-ldl $LIBS" 12053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055 12056/* Override any GCC internal prototype to avoid an error. 12057 Use char because int might match the return type of a GCC 12058 builtin and then its argument prototype would still apply. */ 12059#ifdef __cplusplus 12060extern "C" 12061#endif 12062char dlopen (); 12063int 12064main () 12065{ 12066return dlopen (); 12067 ; 12068 return 0; 12069} 12070_ACEOF 12071if ac_fn_c_try_link "$LINENO"; then : 12072 ac_cv_lib_dl_dlopen=yes 12073else 12074 ac_cv_lib_dl_dlopen=no 12075fi 12076rm -f core conftest.err conftest.$ac_objext \ 12077 conftest$ac_exeext conftest.$ac_ext 12078LIBS=$ac_check_lib_save_LIBS 12079fi 12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12081$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12082if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12083 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12084else 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12086$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12087if ${ac_cv_lib_svld_dlopen+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 ac_check_lib_save_LIBS=$LIBS 12091LIBS="-lsvld $LIBS" 12092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093/* end confdefs.h. */ 12094 12095/* Override any GCC internal prototype to avoid an error. 12096 Use char because int might match the return type of a GCC 12097 builtin and then its argument prototype would still apply. */ 12098#ifdef __cplusplus 12099extern "C" 12100#endif 12101char dlopen (); 12102int 12103main () 12104{ 12105return dlopen (); 12106 ; 12107 return 0; 12108} 12109_ACEOF 12110if ac_fn_c_try_link "$LINENO"; then : 12111 ac_cv_lib_svld_dlopen=yes 12112else 12113 ac_cv_lib_svld_dlopen=no 12114fi 12115rm -f core conftest.err conftest.$ac_objext \ 12116 conftest$ac_exeext conftest.$ac_ext 12117LIBS=$ac_check_lib_save_LIBS 12118fi 12119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12120$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12121if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12122 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12123else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12125$as_echo_n "checking for dld_link in -ldld... " >&6; } 12126if ${ac_cv_lib_dld_dld_link+:} false; then : 12127 $as_echo_n "(cached) " >&6 12128else 12129 ac_check_lib_save_LIBS=$LIBS 12130LIBS="-ldld $LIBS" 12131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12132/* end confdefs.h. */ 12133 12134/* Override any GCC internal prototype to avoid an error. 12135 Use char because int might match the return type of a GCC 12136 builtin and then its argument prototype would still apply. */ 12137#ifdef __cplusplus 12138extern "C" 12139#endif 12140char dld_link (); 12141int 12142main () 12143{ 12144return dld_link (); 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149if ac_fn_c_try_link "$LINENO"; then : 12150 ac_cv_lib_dld_dld_link=yes 12151else 12152 ac_cv_lib_dld_dld_link=no 12153fi 12154rm -f core conftest.err conftest.$ac_objext \ 12155 conftest$ac_exeext conftest.$ac_ext 12156LIBS=$ac_check_lib_save_LIBS 12157fi 12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12159$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12160if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12161 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12162fi 12163 12164 12165fi 12166 12167 12168fi 12169 12170 12171fi 12172 12173 12174fi 12175 12176 12177fi 12178 12179 ;; 12180 esac 12181 12182 if test no = "$lt_cv_dlopen"; then 12183 enable_dlopen=no 12184 else 12185 enable_dlopen=yes 12186 fi 12187 12188 case $lt_cv_dlopen in 12189 dlopen) 12190 save_CPPFLAGS=$CPPFLAGS 12191 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12192 12193 save_LDFLAGS=$LDFLAGS 12194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12195 12196 save_LIBS=$LIBS 12197 LIBS="$lt_cv_dlopen_libs $LIBS" 12198 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12200$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12201if ${lt_cv_dlopen_self+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 if test yes = "$cross_compiling"; then : 12205 lt_cv_dlopen_self=cross 12206else 12207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12208 lt_status=$lt_dlunknown 12209 cat > conftest.$ac_ext <<_LT_EOF 12210#line $LINENO "configure" 12211#include "confdefs.h" 12212 12213#if HAVE_DLFCN_H 12214#include <dlfcn.h> 12215#endif 12216 12217#include <stdio.h> 12218 12219#ifdef RTLD_GLOBAL 12220# define LT_DLGLOBAL RTLD_GLOBAL 12221#else 12222# ifdef DL_GLOBAL 12223# define LT_DLGLOBAL DL_GLOBAL 12224# else 12225# define LT_DLGLOBAL 0 12226# endif 12227#endif 12228 12229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12230 find out it does not work in some platform. */ 12231#ifndef LT_DLLAZY_OR_NOW 12232# ifdef RTLD_LAZY 12233# define LT_DLLAZY_OR_NOW RTLD_LAZY 12234# else 12235# ifdef DL_LAZY 12236# define LT_DLLAZY_OR_NOW DL_LAZY 12237# else 12238# ifdef RTLD_NOW 12239# define LT_DLLAZY_OR_NOW RTLD_NOW 12240# else 12241# ifdef DL_NOW 12242# define LT_DLLAZY_OR_NOW DL_NOW 12243# else 12244# define LT_DLLAZY_OR_NOW 0 12245# endif 12246# endif 12247# endif 12248# endif 12249#endif 12250 12251/* When -fvisibility=hidden is used, assume the code has been annotated 12252 correspondingly for the symbols needed. */ 12253#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12254int fnord () __attribute__((visibility("default"))); 12255#endif 12256 12257int fnord () { return 42; } 12258int main () 12259{ 12260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12261 int status = $lt_dlunknown; 12262 12263 if (self) 12264 { 12265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12266 else 12267 { 12268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12269 else puts (dlerror ()); 12270 } 12271 /* dlclose (self); */ 12272 } 12273 else 12274 puts (dlerror ()); 12275 12276 return status; 12277} 12278_LT_EOF 12279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12280 (eval $ac_link) 2>&5 12281 ac_status=$? 12282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12284 (./conftest; exit; ) >&5 2>/dev/null 12285 lt_status=$? 12286 case x$lt_status in 12287 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12288 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12289 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12290 esac 12291 else : 12292 # compilation failed 12293 lt_cv_dlopen_self=no 12294 fi 12295fi 12296rm -fr conftest* 12297 12298 12299fi 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12301$as_echo "$lt_cv_dlopen_self" >&6; } 12302 12303 if test yes = "$lt_cv_dlopen_self"; then 12304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12306$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12307if ${lt_cv_dlopen_self_static+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309else 12310 if test yes = "$cross_compiling"; then : 12311 lt_cv_dlopen_self_static=cross 12312else 12313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12314 lt_status=$lt_dlunknown 12315 cat > conftest.$ac_ext <<_LT_EOF 12316#line $LINENO "configure" 12317#include "confdefs.h" 12318 12319#if HAVE_DLFCN_H 12320#include <dlfcn.h> 12321#endif 12322 12323#include <stdio.h> 12324 12325#ifdef RTLD_GLOBAL 12326# define LT_DLGLOBAL RTLD_GLOBAL 12327#else 12328# ifdef DL_GLOBAL 12329# define LT_DLGLOBAL DL_GLOBAL 12330# else 12331# define LT_DLGLOBAL 0 12332# endif 12333#endif 12334 12335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12336 find out it does not work in some platform. */ 12337#ifndef LT_DLLAZY_OR_NOW 12338# ifdef RTLD_LAZY 12339# define LT_DLLAZY_OR_NOW RTLD_LAZY 12340# else 12341# ifdef DL_LAZY 12342# define LT_DLLAZY_OR_NOW DL_LAZY 12343# else 12344# ifdef RTLD_NOW 12345# define LT_DLLAZY_OR_NOW RTLD_NOW 12346# else 12347# ifdef DL_NOW 12348# define LT_DLLAZY_OR_NOW DL_NOW 12349# else 12350# define LT_DLLAZY_OR_NOW 0 12351# endif 12352# endif 12353# endif 12354# endif 12355#endif 12356 12357/* When -fvisibility=hidden is used, assume the code has been annotated 12358 correspondingly for the symbols needed. */ 12359#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12360int fnord () __attribute__((visibility("default"))); 12361#endif 12362 12363int fnord () { return 42; } 12364int main () 12365{ 12366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12367 int status = $lt_dlunknown; 12368 12369 if (self) 12370 { 12371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12372 else 12373 { 12374 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12375 else puts (dlerror ()); 12376 } 12377 /* dlclose (self); */ 12378 } 12379 else 12380 puts (dlerror ()); 12381 12382 return status; 12383} 12384_LT_EOF 12385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12386 (eval $ac_link) 2>&5 12387 ac_status=$? 12388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12389 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12390 (./conftest; exit; ) >&5 2>/dev/null 12391 lt_status=$? 12392 case x$lt_status in 12393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12395 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12396 esac 12397 else : 12398 # compilation failed 12399 lt_cv_dlopen_self_static=no 12400 fi 12401fi 12402rm -fr conftest* 12403 12404 12405fi 12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12407$as_echo "$lt_cv_dlopen_self_static" >&6; } 12408 fi 12409 12410 CPPFLAGS=$save_CPPFLAGS 12411 LDFLAGS=$save_LDFLAGS 12412 LIBS=$save_LIBS 12413 ;; 12414 esac 12415 12416 case $lt_cv_dlopen_self in 12417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12418 *) enable_dlopen_self=unknown ;; 12419 esac 12420 12421 case $lt_cv_dlopen_self_static in 12422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12423 *) enable_dlopen_self_static=unknown ;; 12424 esac 12425fi 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443striplib= 12444old_striplib= 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12446$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12447if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12448 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12449 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12451$as_echo "yes" >&6; } 12452else 12453# FIXME - insert some real tests, host_os isn't really good enough 12454 case $host_os in 12455 darwin*) 12456 if test -n "$STRIP"; then 12457 striplib="$STRIP -x" 12458 old_striplib="$STRIP -S" 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12460$as_echo "yes" >&6; } 12461 else 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12463$as_echo "no" >&6; } 12464 fi 12465 ;; 12466 *) 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12468$as_echo "no" >&6; } 12469 ;; 12470 esac 12471fi 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 # Report what library types will actually be built 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12486$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12488$as_echo "$can_build_shared" >&6; } 12489 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12491$as_echo_n "checking whether to build shared libraries... " >&6; } 12492 test no = "$can_build_shared" && enable_shared=no 12493 12494 # On AIX, shared libraries and static libraries use the same namespace, and 12495 # are all built from PIC. 12496 case $host_os in 12497 aix3*) 12498 test yes = "$enable_shared" && enable_static=no 12499 if test -n "$RANLIB"; then 12500 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12501 postinstall_cmds='$RANLIB $lib' 12502 fi 12503 ;; 12504 12505 aix[4-9]*) 12506 if test ia64 != "$host_cpu"; then 12507 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12508 yes,aix,yes) ;; # shared object as lib.so file only 12509 yes,svr4,*) ;; # shared object as lib.so archive member only 12510 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12511 esac 12512 fi 12513 ;; 12514 esac 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12516$as_echo "$enable_shared" >&6; } 12517 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12519$as_echo_n "checking whether to build static libraries... " >&6; } 12520 # Make sure either enable_shared or enable_static is yes. 12521 test yes = "$enable_shared" || enable_static=yes 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12523$as_echo "$enable_static" >&6; } 12524 12525 12526 12527 12528fi 12529ac_ext=c 12530ac_cpp='$CPP $CPPFLAGS' 12531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12533ac_compiler_gnu=$ac_cv_c_compiler_gnu 12534 12535CC=$lt_save_CC 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 ac_config_commands="$ac_config_commands libtool" 12552 12553 12554 12555 12556# Only expand once: 12557 12558 12559 12560CFLAGS="${ac_save_CFLAGS}" 12561 12562# increase this when the shared lib becomes totally incompatible 12563LIB_MAJOR_VERSION=0 12564 12565# increase this when changes are made, but they are upward compatible 12566# to previous versions 12567LIB_MINOR_VERSION=0 12568 12569if test "${ac_cv_cygwin}" = "yes"; then 12570 if test "${CC}" != "gcc"; then 12571 as_fn_error $? "Please use 12572 CC=gcc ./configure 12573 Abort this configure run and add \"CC=gcc\" or you will 12574 see errors and no lame.exe will be build." "$LINENO" 5 12575 fi 12576fi 12577 12578ac_ext=c 12579ac_cpp='$CPP $CPPFLAGS' 12580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12582ac_compiler_gnu=$ac_cv_c_compiler_gnu 12583if test -n "$ac_tool_prefix"; then 12584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12585set dummy ${ac_tool_prefix}gcc; ac_word=$2 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12587$as_echo_n "checking for $ac_word... " >&6; } 12588if ${ac_cv_prog_CC+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 if test -n "$CC"; then 12592 ac_cv_prog_CC="$CC" # Let the user override the test. 12593else 12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12595for as_dir in $PATH 12596do 12597 IFS=$as_save_IFS 12598 test -z "$as_dir" && as_dir=. 12599 for ac_exec_ext in '' $ac_executable_extensions; do 12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12601 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12603 break 2 12604 fi 12605done 12606 done 12607IFS=$as_save_IFS 12608 12609fi 12610fi 12611CC=$ac_cv_prog_CC 12612if test -n "$CC"; then 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12614$as_echo "$CC" >&6; } 12615else 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12617$as_echo "no" >&6; } 12618fi 12619 12620 12621fi 12622if test -z "$ac_cv_prog_CC"; then 12623 ac_ct_CC=$CC 12624 # Extract the first word of "gcc", so it can be a program name with args. 12625set dummy gcc; ac_word=$2 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12627$as_echo_n "checking for $ac_word... " >&6; } 12628if ${ac_cv_prog_ac_ct_CC+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 if test -n "$ac_ct_CC"; then 12632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12633else 12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12635for as_dir in $PATH 12636do 12637 IFS=$as_save_IFS 12638 test -z "$as_dir" && as_dir=. 12639 for ac_exec_ext in '' $ac_executable_extensions; do 12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12641 ac_cv_prog_ac_ct_CC="gcc" 12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12643 break 2 12644 fi 12645done 12646 done 12647IFS=$as_save_IFS 12648 12649fi 12650fi 12651ac_ct_CC=$ac_cv_prog_ac_ct_CC 12652if test -n "$ac_ct_CC"; then 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12654$as_echo "$ac_ct_CC" >&6; } 12655else 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12657$as_echo "no" >&6; } 12658fi 12659 12660 if test "x$ac_ct_CC" = x; then 12661 CC="" 12662 else 12663 case $cross_compiling:$ac_tool_warned in 12664yes:) 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12667ac_tool_warned=yes ;; 12668esac 12669 CC=$ac_ct_CC 12670 fi 12671else 12672 CC="$ac_cv_prog_CC" 12673fi 12674 12675if test -z "$CC"; then 12676 if test -n "$ac_tool_prefix"; then 12677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12678set dummy ${ac_tool_prefix}cc; ac_word=$2 12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12680$as_echo_n "checking for $ac_word... " >&6; } 12681if ${ac_cv_prog_CC+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683else 12684 if test -n "$CC"; then 12685 ac_cv_prog_CC="$CC" # Let the user override the test. 12686else 12687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12688for as_dir in $PATH 12689do 12690 IFS=$as_save_IFS 12691 test -z "$as_dir" && as_dir=. 12692 for ac_exec_ext in '' $ac_executable_extensions; do 12693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12694 ac_cv_prog_CC="${ac_tool_prefix}cc" 12695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12696 break 2 12697 fi 12698done 12699 done 12700IFS=$as_save_IFS 12701 12702fi 12703fi 12704CC=$ac_cv_prog_CC 12705if test -n "$CC"; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12707$as_echo "$CC" >&6; } 12708else 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12710$as_echo "no" >&6; } 12711fi 12712 12713 12714 fi 12715fi 12716if test -z "$CC"; then 12717 # Extract the first word of "cc", so it can be a program name with args. 12718set dummy cc; ac_word=$2 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12720$as_echo_n "checking for $ac_word... " >&6; } 12721if ${ac_cv_prog_CC+:} false; then : 12722 $as_echo_n "(cached) " >&6 12723else 12724 if test -n "$CC"; then 12725 ac_cv_prog_CC="$CC" # Let the user override the test. 12726else 12727 ac_prog_rejected=no 12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12729for as_dir in $PATH 12730do 12731 IFS=$as_save_IFS 12732 test -z "$as_dir" && as_dir=. 12733 for ac_exec_ext in '' $ac_executable_extensions; do 12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12736 ac_prog_rejected=yes 12737 continue 12738 fi 12739 ac_cv_prog_CC="cc" 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12741 break 2 12742 fi 12743done 12744 done 12745IFS=$as_save_IFS 12746 12747if test $ac_prog_rejected = yes; then 12748 # We found a bogon in the path, so make sure we never use it. 12749 set dummy $ac_cv_prog_CC 12750 shift 12751 if test $# != 0; then 12752 # We chose a different compiler from the bogus one. 12753 # However, it has the same basename, so the bogon will be chosen 12754 # first if we set CC to just the basename; use the full file name. 12755 shift 12756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12757 fi 12758fi 12759fi 12760fi 12761CC=$ac_cv_prog_CC 12762if test -n "$CC"; then 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12764$as_echo "$CC" >&6; } 12765else 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12767$as_echo "no" >&6; } 12768fi 12769 12770 12771fi 12772if test -z "$CC"; then 12773 if test -n "$ac_tool_prefix"; then 12774 for ac_prog in cl.exe 12775 do 12776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12777set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12779$as_echo_n "checking for $ac_word... " >&6; } 12780if ${ac_cv_prog_CC+:} false; then : 12781 $as_echo_n "(cached) " >&6 12782else 12783 if test -n "$CC"; then 12784 ac_cv_prog_CC="$CC" # Let the user override the test. 12785else 12786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12787for as_dir in $PATH 12788do 12789 IFS=$as_save_IFS 12790 test -z "$as_dir" && as_dir=. 12791 for ac_exec_ext in '' $ac_executable_extensions; do 12792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12793 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12795 break 2 12796 fi 12797done 12798 done 12799IFS=$as_save_IFS 12800 12801fi 12802fi 12803CC=$ac_cv_prog_CC 12804if test -n "$CC"; then 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12806$as_echo "$CC" >&6; } 12807else 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810fi 12811 12812 12813 test -n "$CC" && break 12814 done 12815fi 12816if test -z "$CC"; then 12817 ac_ct_CC=$CC 12818 for ac_prog in cl.exe 12819do 12820 # Extract the first word of "$ac_prog", so it can be a program name with args. 12821set dummy $ac_prog; ac_word=$2 12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12823$as_echo_n "checking for $ac_word... " >&6; } 12824if ${ac_cv_prog_ac_ct_CC+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 if test -n "$ac_ct_CC"; then 12828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12829else 12830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12831for as_dir in $PATH 12832do 12833 IFS=$as_save_IFS 12834 test -z "$as_dir" && as_dir=. 12835 for ac_exec_ext in '' $ac_executable_extensions; do 12836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12837 ac_cv_prog_ac_ct_CC="$ac_prog" 12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12839 break 2 12840 fi 12841done 12842 done 12843IFS=$as_save_IFS 12844 12845fi 12846fi 12847ac_ct_CC=$ac_cv_prog_ac_ct_CC 12848if test -n "$ac_ct_CC"; then 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12850$as_echo "$ac_ct_CC" >&6; } 12851else 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12853$as_echo "no" >&6; } 12854fi 12855 12856 12857 test -n "$ac_ct_CC" && break 12858done 12859 12860 if test "x$ac_ct_CC" = x; then 12861 CC="" 12862 else 12863 case $cross_compiling:$ac_tool_warned in 12864yes:) 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12867ac_tool_warned=yes ;; 12868esac 12869 CC=$ac_ct_CC 12870 fi 12871fi 12872 12873fi 12874 12875 12876test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12878as_fn_error $? "no acceptable C compiler found in \$PATH 12879See \`config.log' for more details" "$LINENO" 5; } 12880 12881# Provide some information about the compiler. 12882$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12883set X $ac_compile 12884ac_compiler=$2 12885for ac_option in --version -v -V -qversion; do 12886 { { ac_try="$ac_compiler $ac_option >&5" 12887case "(($ac_try" in 12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12889 *) ac_try_echo=$ac_try;; 12890esac 12891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12892$as_echo "$ac_try_echo"; } >&5 12893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12894 ac_status=$? 12895 if test -s conftest.err; then 12896 sed '10a\ 12897... rest of stderr output deleted ... 12898 10q' conftest.err >conftest.er1 12899 cat conftest.er1 >&5 12900 fi 12901 rm -f conftest.er1 conftest.err 12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12903 test $ac_status = 0; } 12904done 12905 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12907$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12908if ${ac_cv_c_compiler_gnu+:} false; then : 12909 $as_echo_n "(cached) " >&6 12910else 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913 12914int 12915main () 12916{ 12917#ifndef __GNUC__ 12918 choke me 12919#endif 12920 12921 ; 12922 return 0; 12923} 12924_ACEOF 12925if ac_fn_c_try_compile "$LINENO"; then : 12926 ac_compiler_gnu=yes 12927else 12928 ac_compiler_gnu=no 12929fi 12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12931ac_cv_c_compiler_gnu=$ac_compiler_gnu 12932 12933fi 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12935$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12936if test $ac_compiler_gnu = yes; then 12937 GCC=yes 12938else 12939 GCC= 12940fi 12941ac_test_CFLAGS=${CFLAGS+set} 12942ac_save_CFLAGS=$CFLAGS 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12944$as_echo_n "checking whether $CC accepts -g... " >&6; } 12945if ${ac_cv_prog_cc_g+:} false; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 ac_save_c_werror_flag=$ac_c_werror_flag 12949 ac_c_werror_flag=yes 12950 ac_cv_prog_cc_g=no 12951 CFLAGS="-g" 12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953/* end confdefs.h. */ 12954 12955int 12956main () 12957{ 12958 12959 ; 12960 return 0; 12961} 12962_ACEOF 12963if ac_fn_c_try_compile "$LINENO"; then : 12964 ac_cv_prog_cc_g=yes 12965else 12966 CFLAGS="" 12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968/* end confdefs.h. */ 12969 12970int 12971main () 12972{ 12973 12974 ; 12975 return 0; 12976} 12977_ACEOF 12978if ac_fn_c_try_compile "$LINENO"; then : 12979 12980else 12981 ac_c_werror_flag=$ac_save_c_werror_flag 12982 CFLAGS="-g" 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985 12986int 12987main () 12988{ 12989 12990 ; 12991 return 0; 12992} 12993_ACEOF 12994if ac_fn_c_try_compile "$LINENO"; then : 12995 ac_cv_prog_cc_g=yes 12996fi 12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12998fi 12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13000fi 13001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13002 ac_c_werror_flag=$ac_save_c_werror_flag 13003fi 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13005$as_echo "$ac_cv_prog_cc_g" >&6; } 13006if test "$ac_test_CFLAGS" = set; then 13007 CFLAGS=$ac_save_CFLAGS 13008elif test $ac_cv_prog_cc_g = yes; then 13009 if test "$GCC" = yes; then 13010 CFLAGS="-g -O2" 13011 else 13012 CFLAGS="-g" 13013 fi 13014else 13015 if test "$GCC" = yes; then 13016 CFLAGS="-O2" 13017 else 13018 CFLAGS= 13019 fi 13020fi 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13022$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13023if ${ac_cv_prog_cc_c89+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 ac_cv_prog_cc_c89=no 13027ac_save_CC=$CC 13028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13029/* end confdefs.h. */ 13030#include <stdarg.h> 13031#include <stdio.h> 13032struct stat; 13033/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13034struct buf { int x; }; 13035FILE * (*rcsopen) (struct buf *, struct stat *, int); 13036static char *e (p, i) 13037 char **p; 13038 int i; 13039{ 13040 return p[i]; 13041} 13042static char *f (char * (*g) (char **, int), char **p, ...) 13043{ 13044 char *s; 13045 va_list v; 13046 va_start (v,p); 13047 s = g (p, va_arg (v,int)); 13048 va_end (v); 13049 return s; 13050} 13051 13052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13053 function prototypes and stuff, but not '\xHH' hex character constants. 13054 These don't provoke an error unfortunately, instead are silently treated 13055 as 'x'. The following induces an error, until -std is added to get 13056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13057 array size at least. It's necessary to write '\x00'==0 to get something 13058 that's true only with -std. */ 13059int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13060 13061/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13062 inside strings and character constants. */ 13063#define FOO(x) 'x' 13064int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13065 13066int test (int i, double x); 13067struct s1 {int (*f) (int a);}; 13068struct s2 {int (*f) (double a);}; 13069int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13070int argc; 13071char **argv; 13072int 13073main () 13074{ 13075return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13076 ; 13077 return 0; 13078} 13079_ACEOF 13080for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13082do 13083 CC="$ac_save_CC $ac_arg" 13084 if ac_fn_c_try_compile "$LINENO"; then : 13085 ac_cv_prog_cc_c89=$ac_arg 13086fi 13087rm -f core conftest.err conftest.$ac_objext 13088 test "x$ac_cv_prog_cc_c89" != "xno" && break 13089done 13090rm -f conftest.$ac_ext 13091CC=$ac_save_CC 13092 13093fi 13094# AC_CACHE_VAL 13095case "x$ac_cv_prog_cc_c89" in 13096 x) 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13098$as_echo "none needed" >&6; } ;; 13099 xno) 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13101$as_echo "unsupported" >&6; } ;; 13102 *) 13103 CC="$CC $ac_cv_prog_cc_c89" 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13105$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13106esac 13107if test "x$ac_cv_prog_cc_c89" != xno; then : 13108 13109fi 13110 13111ac_ext=c 13112ac_cpp='$CPP $CPPFLAGS' 13113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13115ac_compiler_gnu=$ac_cv_c_compiler_gnu 13116 13117ac_ext=c 13118ac_cpp='$CPP $CPPFLAGS' 13119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13121ac_compiler_gnu=$ac_cv_c_compiler_gnu 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13123$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13124if ${am_cv_prog_cc_c_o+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129 13130int 13131main () 13132{ 13133 13134 ; 13135 return 0; 13136} 13137_ACEOF 13138 # Make sure it works both with $CC and with simple cc. 13139 # Following AC_PROG_CC_C_O, we do the test twice because some 13140 # compilers refuse to overwrite an existing .o file with -o, 13141 # though they will create one. 13142 am_cv_prog_cc_c_o=yes 13143 for am_i in 1 2; do 13144 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13145 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13146 ac_status=$? 13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13148 (exit $ac_status); } \ 13149 && test -f conftest2.$ac_objext; then 13150 : OK 13151 else 13152 am_cv_prog_cc_c_o=no 13153 break 13154 fi 13155 done 13156 rm -f core conftest* 13157 unset am_i 13158fi 13159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13160$as_echo "$am_cv_prog_cc_c_o" >&6; } 13161if test "$am_cv_prog_cc_c_o" != yes; then 13162 # Losing compiler, so override with the script. 13163 # FIXME: It is wrong to rewrite CC. 13164 # But if we don't then we get into trouble of one sort or another. 13165 # A longer-term fix would be to have automake use am__CC in this case, 13166 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13167 CC="$am_aux_dir/compile $CC" 13168fi 13169ac_ext=c 13170ac_cpp='$CPP $CPPFLAGS' 13171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13173ac_compiler_gnu=$ac_cv_c_compiler_gnu 13174 13175 13176depcc="$CC" am_compiler_list= 13177 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13179$as_echo_n "checking dependency style of $depcc... " >&6; } 13180if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182else 13183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13184 # We make a subdir and do the tests there. Otherwise we can end up 13185 # making bogus files that we don't know about and never remove. For 13186 # instance it was reported that on HP-UX the gcc test will end up 13187 # making a dummy file named 'D' -- because '-MD' means "put the output 13188 # in D". 13189 rm -rf conftest.dir 13190 mkdir conftest.dir 13191 # Copy depcomp to subdir because otherwise we won't find it if we're 13192 # using a relative directory. 13193 cp "$am_depcomp" conftest.dir 13194 cd conftest.dir 13195 # We will build objects and dependencies in a subdirectory because 13196 # it helps to detect inapplicable dependency modes. For instance 13197 # both Tru64's cc and ICC support -MD to output dependencies as a 13198 # side effect of compilation, but ICC will put the dependencies in 13199 # the current directory while Tru64 will put them in the object 13200 # directory. 13201 mkdir sub 13202 13203 am_cv_CC_dependencies_compiler_type=none 13204 if test "$am_compiler_list" = ""; then 13205 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13206 fi 13207 am__universal=false 13208 case " $depcc " in #( 13209 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13210 esac 13211 13212 for depmode in $am_compiler_list; do 13213 # Setup a source with many dependencies, because some compilers 13214 # like to wrap large dependency lists on column 80 (with \), and 13215 # we should not choose a depcomp mode which is confused by this. 13216 # 13217 # We need to recreate these files for each test, as the compiler may 13218 # overwrite some of them when testing with obscure command lines. 13219 # This happens at least with the AIX C compiler. 13220 : > sub/conftest.c 13221 for i in 1 2 3 4 5 6; do 13222 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13223 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13224 # Solaris 10 /bin/sh. 13225 echo '/* dummy */' > sub/conftst$i.h 13226 done 13227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13228 13229 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13230 # mode. It turns out that the SunPro C++ compiler does not properly 13231 # handle '-M -o', and we need to detect this. Also, some Intel 13232 # versions had trouble with output in subdirs. 13233 am__obj=sub/conftest.${OBJEXT-o} 13234 am__minus_obj="-o $am__obj" 13235 case $depmode in 13236 gcc) 13237 # This depmode causes a compiler race in universal mode. 13238 test "$am__universal" = false || continue 13239 ;; 13240 nosideeffect) 13241 # After this tag, mechanisms are not by side-effect, so they'll 13242 # only be used when explicitly requested. 13243 if test "x$enable_dependency_tracking" = xyes; then 13244 continue 13245 else 13246 break 13247 fi 13248 ;; 13249 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13250 # This compiler won't grok '-c -o', but also, the minuso test has 13251 # not run yet. These depmodes are late enough in the game, and 13252 # so weak that their functioning should not be impacted. 13253 am__obj=conftest.${OBJEXT-o} 13254 am__minus_obj= 13255 ;; 13256 none) break ;; 13257 esac 13258 if depmode=$depmode \ 13259 source=sub/conftest.c object=$am__obj \ 13260 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13261 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13262 >/dev/null 2>conftest.err && 13263 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13265 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13267 # icc doesn't choke on unknown options, it will just issue warnings 13268 # or remarks (even with -Werror). So we grep stderr for any message 13269 # that says an option was ignored or not supported. 13270 # When given -MP, icc 7.0 and 7.1 complain thusly: 13271 # icc: Command line warning: ignoring option '-M'; no argument required 13272 # The diagnosis changed in icc 8.0: 13273 # icc: Command line remark: option '-MP' not supported 13274 if (grep 'ignoring option' conftest.err || 13275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13276 am_cv_CC_dependencies_compiler_type=$depmode 13277 break 13278 fi 13279 fi 13280 done 13281 13282 cd .. 13283 rm -rf conftest.dir 13284else 13285 am_cv_CC_dependencies_compiler_type=none 13286fi 13287 13288fi 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13290$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13291CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13292 13293 if 13294 test "x$enable_dependency_tracking" != xno \ 13295 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13296 am__fastdepCC_TRUE= 13297 am__fastdepCC_FALSE='#' 13298else 13299 am__fastdepCC_TRUE='#' 13300 am__fastdepCC_FALSE= 13301fi 13302 13303 13304 13305if test "x${GCC}" = "xyes"; then 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler" >&5 13307$as_echo_n "checking compiler... " >&6; } 13308 COMPILER_TYPE="`${CC} --version | head -1 | sed -e '1,$s/version.*//g'`" 13309 case "${COMPILER_TYPE}" in 13310 *gcc*) 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5 13312$as_echo "gcc" >&6; } 13313 HAVE_GCC=yes 13314 HAVE_CLANG=no 13315 ;; 13316 *clang*) 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: clang" >&5 13318$as_echo "clang" >&6; } 13319 HAVE_CLANG=yes 13320 HAVE_GCC=no 13321 ;; 13322 *) 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13324$as_echo "unknown" >&6; } 13325 HAVE_GCC=no 13326 HAVE_CLANG=no 13327 ;; 13328 esac 13329 13330 if test "${HAVE_GCC}" = "yes"; then 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GCC" >&5 13332$as_echo_n "checking version of GCC... " >&6; } 13333 GCC_version="`${CC} --version | sed -n '1s/^[^ ]* (.*) //;s/ .*$//;1p'`" 13334 case "${GCC_version}" in 13335 [0-9]*[0-9]*) 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GCC_version}" >&5 13337$as_echo "${GCC_version}" >&6; } 13338 ;; 13339 *) 13340 # probably not gcc... 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler version pattern" >&5 13342$as_echo "unknown compiler version pattern" >&6; } 13343 HAVE_GCC=no 13344 ;; 13345 esac 13346 fi 13347 13348 if test "${HAVE_CLANG}" = "yes"; then 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of clang" >&5 13350$as_echo_n "checking version of clang... " >&6; } 13351 CLANG_version="`${CC} --version | sed -n 's/.*clang version //;s/ .*$//;1p'`" 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CLANG_version}" >&5 13353$as_echo "${CLANG_version}" >&6; } 13354 fi 13355fi 13356 13357 13358 13359ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default" 13360if test "x$ac_cv_header_dmalloc_h" = xyes; then : 13361 13362fi 13363 13364 13365if test "${ac_cv_header_dmalloc_h}" = "yes"; then 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 13367$as_echo_n "checking if malloc debugging is wanted... " >&6; } 13368 13369# Check whether --with-dmalloc was given. 13370if test "${with_dmalloc+set}" = set; then : 13371 withval=$with_dmalloc; if test "$withval" = yes; then 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13373$as_echo "yes" >&6; } 13374 13375$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 13376 13377 LIBS="$LIBS -ldmalloc" 13378 LDFLAGS="$LDFLAGS -g" 13379else 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13381$as_echo "no" >&6; } 13382fi 13383else 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13385$as_echo "no" >&6; } 13386fi 13387 13388 13389fi 13390 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13392$as_echo_n "checking for ANSI C header files... " >&6; } 13393if ${ac_cv_header_stdc+:} false; then : 13394 $as_echo_n "(cached) " >&6 13395else 13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398#include <stdlib.h> 13399#include <stdarg.h> 13400#include <string.h> 13401#include <float.h> 13402 13403int 13404main () 13405{ 13406 13407 ; 13408 return 0; 13409} 13410_ACEOF 13411if ac_fn_c_try_compile "$LINENO"; then : 13412 ac_cv_header_stdc=yes 13413else 13414 ac_cv_header_stdc=no 13415fi 13416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13417 13418if test $ac_cv_header_stdc = yes; then 13419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422#include <string.h> 13423 13424_ACEOF 13425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13426 $EGREP "memchr" >/dev/null 2>&1; then : 13427 13428else 13429 ac_cv_header_stdc=no 13430fi 13431rm -f conftest* 13432 13433fi 13434 13435if test $ac_cv_header_stdc = yes; then 13436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13438/* end confdefs.h. */ 13439#include <stdlib.h> 13440 13441_ACEOF 13442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13443 $EGREP "free" >/dev/null 2>&1; then : 13444 13445else 13446 ac_cv_header_stdc=no 13447fi 13448rm -f conftest* 13449 13450fi 13451 13452if test $ac_cv_header_stdc = yes; then 13453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13454 if test "$cross_compiling" = yes; then : 13455 : 13456else 13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13458/* end confdefs.h. */ 13459#include <ctype.h> 13460#include <stdlib.h> 13461#if ((' ' & 0x0FF) == 0x020) 13462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13464#else 13465# define ISLOWER(c) \ 13466 (('a' <= (c) && (c) <= 'i') \ 13467 || ('j' <= (c) && (c) <= 'r') \ 13468 || ('s' <= (c) && (c) <= 'z')) 13469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13470#endif 13471 13472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13473int 13474main () 13475{ 13476 int i; 13477 for (i = 0; i < 256; i++) 13478 if (XOR (islower (i), ISLOWER (i)) 13479 || toupper (i) != TOUPPER (i)) 13480 return 2; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_run "$LINENO"; then : 13485 13486else 13487 ac_cv_header_stdc=no 13488fi 13489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13490 conftest.$ac_objext conftest.beam conftest.$ac_ext 13491fi 13492 13493fi 13494fi 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13496$as_echo "$ac_cv_header_stdc" >&6; } 13497if test $ac_cv_header_stdc = yes; then 13498 13499$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13500 13501fi 13502 13503for ac_header in \ 13504 errno.h \ 13505 fcntl.h \ 13506 limits.h \ 13507 stdint.h \ 13508 string.h \ 13509 sys/soundcard.h \ 13510 sys/time.h \ 13511 unistd.h \ 13512 linux/soundcard.h 13513do : 13514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13515ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13517 cat >>confdefs.h <<_ACEOF 13518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13519_ACEOF 13520 13521fi 13522 13523done 13524 13525 13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5 13527$as_echo_n "checking working SSE intrinsics... " >&6; } 13528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13529/* end confdefs.h. */ 13530#include <xmmintrin.h> 13531int 13532main () 13533{ 13534_mm_sfence(); 13535 ; 13536 return 0; 13537} 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 13541$as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h 13542 13543 ac_cv_header_xmmintrin_h=yes 13544else 13545 ac_cv_header_xmmintrin_h=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5 13549$as_echo "${ac_cv_header_xmmintrin_h}" >&6; } 13550 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13552$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13553if ${ac_cv_c_const+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558 13559int 13560main () 13561{ 13562 13563#ifndef __cplusplus 13564 /* Ultrix mips cc rejects this sort of thing. */ 13565 typedef int charset[2]; 13566 const charset cs = { 0, 0 }; 13567 /* SunOS 4.1.1 cc rejects this. */ 13568 char const *const *pcpcc; 13569 char **ppc; 13570 /* NEC SVR4.0.2 mips cc rejects this. */ 13571 struct point {int x, y;}; 13572 static struct point const zero = {0,0}; 13573 /* AIX XL C 1.02.0.0 rejects this. 13574 It does not let you subtract one const X* pointer from another in 13575 an arm of an if-expression whose if-part is not a constant 13576 expression */ 13577 const char *g = "string"; 13578 pcpcc = &g + (g ? g-g : 0); 13579 /* HPUX 7.0 cc rejects these. */ 13580 ++pcpcc; 13581 ppc = (char**) pcpcc; 13582 pcpcc = (char const *const *) ppc; 13583 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13584 char tx; 13585 char *t = &tx; 13586 char const *s = 0 ? (char *) 0 : (char const *) 0; 13587 13588 *t++ = 0; 13589 if (s) return 0; 13590 } 13591 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13592 int x[] = {25, 17}; 13593 const int *foo = &x[0]; 13594 ++foo; 13595 } 13596 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13597 typedef const int *iptr; 13598 iptr p = 0; 13599 ++p; 13600 } 13601 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13602 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13603 struct s { int j; const int *ap[3]; } bx; 13604 struct s *b = &bx; b->j = 5; 13605 } 13606 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13607 const int foo = 10; 13608 if (!foo) return 0; 13609 } 13610 return !cs[0] && !zero.x; 13611#endif 13612 13613 ; 13614 return 0; 13615} 13616_ACEOF 13617if ac_fn_c_try_compile "$LINENO"; then : 13618 ac_cv_c_const=yes 13619else 13620 ac_cv_c_const=no 13621fi 13622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13623fi 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13625$as_echo "$ac_cv_c_const" >&6; } 13626if test $ac_cv_c_const = no; then 13627 13628$as_echo "#define const /**/" >>confdefs.h 13629 13630fi 13631 13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13633$as_echo_n "checking for inline... " >&6; } 13634if ${ac_cv_c_inline+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636else 13637 ac_cv_c_inline=no 13638for ac_kw in inline __inline__ __inline; do 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640/* end confdefs.h. */ 13641#ifndef __cplusplus 13642typedef int foo_t; 13643static $ac_kw foo_t static_foo () {return 0; } 13644$ac_kw foo_t foo () {return 0; } 13645#endif 13646 13647_ACEOF 13648if ac_fn_c_try_compile "$LINENO"; then : 13649 ac_cv_c_inline=$ac_kw 13650fi 13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13652 test "$ac_cv_c_inline" != no && break 13653done 13654 13655fi 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13657$as_echo "$ac_cv_c_inline" >&6; } 13658 13659case $ac_cv_c_inline in 13660 inline | yes) ;; 13661 *) 13662 case $ac_cv_c_inline in 13663 no) ac_val=;; 13664 *) ac_val=$ac_cv_c_inline;; 13665 esac 13666 cat >>confdefs.h <<_ACEOF 13667#ifndef __cplusplus 13668#define inline $ac_val 13669#endif 13670_ACEOF 13671 ;; 13672esac 13673 13674if test ${cross_compiling} = "no"; then 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13676$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13677if ${ac_cv_c_bigendian+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 ac_cv_c_bigendian=unknown 13681 # See if we're dealing with a universal compiler. 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13683/* end confdefs.h. */ 13684#ifndef __APPLE_CC__ 13685 not a universal capable compiler 13686 #endif 13687 typedef int dummy; 13688 13689_ACEOF 13690if ac_fn_c_try_compile "$LINENO"; then : 13691 13692 # Check for potential -arch flags. It is not universal unless 13693 # there are at least two -arch flags with different values. 13694 ac_arch= 13695 ac_prev= 13696 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13697 if test -n "$ac_prev"; then 13698 case $ac_word in 13699 i?86 | x86_64 | ppc | ppc64) 13700 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13701 ac_arch=$ac_word 13702 else 13703 ac_cv_c_bigendian=universal 13704 break 13705 fi 13706 ;; 13707 esac 13708 ac_prev= 13709 elif test "x$ac_word" = "x-arch"; then 13710 ac_prev=arch 13711 fi 13712 done 13713fi 13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13715 if test $ac_cv_c_bigendian = unknown; then 13716 # See if sys/param.h defines the BYTE_ORDER macro. 13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13718/* end confdefs.h. */ 13719#include <sys/types.h> 13720 #include <sys/param.h> 13721 13722int 13723main () 13724{ 13725#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13726 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13727 && LITTLE_ENDIAN) 13728 bogus endian macros 13729 #endif 13730 13731 ; 13732 return 0; 13733} 13734_ACEOF 13735if ac_fn_c_try_compile "$LINENO"; then : 13736 # It does; now see whether it defined to BIG_ENDIAN or not. 13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738/* end confdefs.h. */ 13739#include <sys/types.h> 13740 #include <sys/param.h> 13741 13742int 13743main () 13744{ 13745#if BYTE_ORDER != BIG_ENDIAN 13746 not big endian 13747 #endif 13748 13749 ; 13750 return 0; 13751} 13752_ACEOF 13753if ac_fn_c_try_compile "$LINENO"; then : 13754 ac_cv_c_bigendian=yes 13755else 13756 ac_cv_c_bigendian=no 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759fi 13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13761 fi 13762 if test $ac_cv_c_bigendian = unknown; then 13763 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765/* end confdefs.h. */ 13766#include <limits.h> 13767 13768int 13769main () 13770{ 13771#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13772 bogus endian macros 13773 #endif 13774 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779if ac_fn_c_try_compile "$LINENO"; then : 13780 # It does; now see whether it defined to _BIG_ENDIAN or not. 13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13782/* end confdefs.h. */ 13783#include <limits.h> 13784 13785int 13786main () 13787{ 13788#ifndef _BIG_ENDIAN 13789 not big endian 13790 #endif 13791 13792 ; 13793 return 0; 13794} 13795_ACEOF 13796if ac_fn_c_try_compile "$LINENO"; then : 13797 ac_cv_c_bigendian=yes 13798else 13799 ac_cv_c_bigendian=no 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13802fi 13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13804 fi 13805 if test $ac_cv_c_bigendian = unknown; then 13806 # Compile a test program. 13807 if test "$cross_compiling" = yes; then : 13808 # Try to guess by grepping values from an object file. 13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13810/* end confdefs.h. */ 13811short int ascii_mm[] = 13812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13813 short int ascii_ii[] = 13814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13815 int use_ascii (int i) { 13816 return ascii_mm[i] + ascii_ii[i]; 13817 } 13818 short int ebcdic_ii[] = 13819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13820 short int ebcdic_mm[] = 13821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13822 int use_ebcdic (int i) { 13823 return ebcdic_mm[i] + ebcdic_ii[i]; 13824 } 13825 extern int foo; 13826 13827int 13828main () 13829{ 13830return use_ascii (foo) == use_ebcdic (foo); 13831 ; 13832 return 0; 13833} 13834_ACEOF 13835if ac_fn_c_try_compile "$LINENO"; then : 13836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13837 ac_cv_c_bigendian=yes 13838 fi 13839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13840 if test "$ac_cv_c_bigendian" = unknown; then 13841 ac_cv_c_bigendian=no 13842 else 13843 # finding both strings is unlikely to happen, but who knows? 13844 ac_cv_c_bigendian=unknown 13845 fi 13846 fi 13847fi 13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13849else 13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13851/* end confdefs.h. */ 13852$ac_includes_default 13853int 13854main () 13855{ 13856 13857 /* Are we little or big endian? From Harbison&Steele. */ 13858 union 13859 { 13860 long int l; 13861 char c[sizeof (long int)]; 13862 } u; 13863 u.l = 1; 13864 return u.c[sizeof (long int) - 1] == 1; 13865 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if ac_fn_c_try_run "$LINENO"; then : 13871 ac_cv_c_bigendian=no 13872else 13873 ac_cv_c_bigendian=yes 13874fi 13875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13876 conftest.$ac_objext conftest.beam conftest.$ac_ext 13877fi 13878 13879 fi 13880fi 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13882$as_echo "$ac_cv_c_bigendian" >&6; } 13883 case $ac_cv_c_bigendian in #( 13884 yes) 13885 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13886;; #( 13887 no) 13888 ;; #( 13889 universal) 13890 13891$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13892 13893 ;; #( 13894 *) 13895 as_fn_error $? "unknown endianness 13896 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13897 esac 13898 13899fi 13900 13901# Check whether --enable-largefile was given. 13902if test "${enable_largefile+set}" = set; then : 13903 enableval=$enable_largefile; 13904fi 13905 13906if test "$enable_largefile" != no; then 13907 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13909$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13910if ${ac_cv_sys_largefile_CC+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 ac_cv_sys_largefile_CC=no 13914 if test "$GCC" != yes; then 13915 ac_save_CC=$CC 13916 while :; do 13917 # IRIX 6.2 and later do not support large files by default, 13918 # so use the C compiler's -n32 option if that helps. 13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13920/* end confdefs.h. */ 13921#include <sys/types.h> 13922 /* Check that off_t can represent 2**63 - 1 correctly. 13923 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13924 since some C++ compilers masquerading as C compilers 13925 incorrectly reject 9223372036854775807. */ 13926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13928 && LARGE_OFF_T % 2147483647 == 1) 13929 ? 1 : -1]; 13930int 13931main () 13932{ 13933 13934 ; 13935 return 0; 13936} 13937_ACEOF 13938 if ac_fn_c_try_compile "$LINENO"; then : 13939 break 13940fi 13941rm -f core conftest.err conftest.$ac_objext 13942 CC="$CC -n32" 13943 if ac_fn_c_try_compile "$LINENO"; then : 13944 ac_cv_sys_largefile_CC=' -n32'; break 13945fi 13946rm -f core conftest.err conftest.$ac_objext 13947 break 13948 done 13949 CC=$ac_save_CC 13950 rm -f conftest.$ac_ext 13951 fi 13952fi 13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13954$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13955 if test "$ac_cv_sys_largefile_CC" != no; then 13956 CC=$CC$ac_cv_sys_largefile_CC 13957 fi 13958 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13960$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13961if ${ac_cv_sys_file_offset_bits+:} false; then : 13962 $as_echo_n "(cached) " >&6 13963else 13964 while :; do 13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13966/* end confdefs.h. */ 13967#include <sys/types.h> 13968 /* Check that off_t can represent 2**63 - 1 correctly. 13969 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13970 since some C++ compilers masquerading as C compilers 13971 incorrectly reject 9223372036854775807. */ 13972#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13974 && LARGE_OFF_T % 2147483647 == 1) 13975 ? 1 : -1]; 13976int 13977main () 13978{ 13979 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 ac_cv_sys_file_offset_bits=no; break 13986fi 13987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989/* end confdefs.h. */ 13990#define _FILE_OFFSET_BITS 64 13991#include <sys/types.h> 13992 /* Check that off_t can represent 2**63 - 1 correctly. 13993 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13994 since some C++ compilers masquerading as C compilers 13995 incorrectly reject 9223372036854775807. */ 13996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13998 && LARGE_OFF_T % 2147483647 == 1) 13999 ? 1 : -1]; 14000int 14001main () 14002{ 14003 14004 ; 14005 return 0; 14006} 14007_ACEOF 14008if ac_fn_c_try_compile "$LINENO"; then : 14009 ac_cv_sys_file_offset_bits=64; break 14010fi 14011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14012 ac_cv_sys_file_offset_bits=unknown 14013 break 14014done 14015fi 14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14017$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14018case $ac_cv_sys_file_offset_bits in #( 14019 no | unknown) ;; 14020 *) 14021cat >>confdefs.h <<_ACEOF 14022#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14023_ACEOF 14024;; 14025esac 14026rm -rf conftest* 14027 if test $ac_cv_sys_file_offset_bits = unknown; then 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14029$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14030if ${ac_cv_sys_large_files+:} false; then : 14031 $as_echo_n "(cached) " >&6 14032else 14033 while :; do 14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14035/* end confdefs.h. */ 14036#include <sys/types.h> 14037 /* Check that off_t can represent 2**63 - 1 correctly. 14038 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14039 since some C++ compilers masquerading as C compilers 14040 incorrectly reject 9223372036854775807. */ 14041#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14043 && LARGE_OFF_T % 2147483647 == 1) 14044 ? 1 : -1]; 14045int 14046main () 14047{ 14048 14049 ; 14050 return 0; 14051} 14052_ACEOF 14053if ac_fn_c_try_compile "$LINENO"; then : 14054 ac_cv_sys_large_files=no; break 14055fi 14056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058/* end confdefs.h. */ 14059#define _LARGE_FILES 1 14060#include <sys/types.h> 14061 /* Check that off_t can represent 2**63 - 1 correctly. 14062 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14063 since some C++ compilers masquerading as C compilers 14064 incorrectly reject 9223372036854775807. */ 14065#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14067 && LARGE_OFF_T % 2147483647 == 1) 14068 ? 1 : -1]; 14069int 14070main () 14071{ 14072 14073 ; 14074 return 0; 14075} 14076_ACEOF 14077if ac_fn_c_try_compile "$LINENO"; then : 14078 ac_cv_sys_large_files=1; break 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14081 ac_cv_sys_large_files=unknown 14082 break 14083done 14084fi 14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14086$as_echo "$ac_cv_sys_large_files" >&6; } 14087case $ac_cv_sys_large_files in #( 14088 no | unknown) ;; 14089 *) 14090cat >>confdefs.h <<_ACEOF 14091#define _LARGE_FILES $ac_cv_sys_large_files 14092_ACEOF 14093;; 14094esac 14095rm -rf conftest* 14096 fi 14097 14098 14099fi 14100 14101 14102# The cast to long int works around a bug in the HP C Compiler 14103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14105# This bug is HP SR number 8606223364. 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14107$as_echo_n "checking size of short... " >&6; } 14108if ${ac_cv_sizeof_short+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14112 14113else 14114 if test "$ac_cv_type_short" = yes; then 14115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14117as_fn_error 77 "cannot compute sizeof (short) 14118See \`config.log' for more details" "$LINENO" 5; } 14119 else 14120 ac_cv_sizeof_short=0 14121 fi 14122fi 14123 14124fi 14125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14126$as_echo "$ac_cv_sizeof_short" >&6; } 14127 14128 14129 14130cat >>confdefs.h <<_ACEOF 14131#define SIZEOF_SHORT $ac_cv_sizeof_short 14132_ACEOF 14133 14134 14135# The cast to long int works around a bug in the HP C Compiler 14136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14138# This bug is HP SR number 8606223364. 14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 14140$as_echo_n "checking size of unsigned short... " >&6; } 14141if ${ac_cv_sizeof_unsigned_short+:} false; then : 14142 $as_echo_n "(cached) " >&6 14143else 14144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 14145 14146else 14147 if test "$ac_cv_type_unsigned_short" = yes; then 14148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14150as_fn_error 77 "cannot compute sizeof (unsigned short) 14151See \`config.log' for more details" "$LINENO" 5; } 14152 else 14153 ac_cv_sizeof_unsigned_short=0 14154 fi 14155fi 14156 14157fi 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 14159$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 14160 14161 14162 14163cat >>confdefs.h <<_ACEOF 14164#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 14165_ACEOF 14166 14167 14168# The cast to long int works around a bug in the HP C Compiler 14169# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14170# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14171# This bug is HP SR number 8606223364. 14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14173$as_echo_n "checking size of int... " >&6; } 14174if ${ac_cv_sizeof_int+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14178 14179else 14180 if test "$ac_cv_type_int" = yes; then 14181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14183as_fn_error 77 "cannot compute sizeof (int) 14184See \`config.log' for more details" "$LINENO" 5; } 14185 else 14186 ac_cv_sizeof_int=0 14187 fi 14188fi 14189 14190fi 14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14192$as_echo "$ac_cv_sizeof_int" >&6; } 14193 14194 14195 14196cat >>confdefs.h <<_ACEOF 14197#define SIZEOF_INT $ac_cv_sizeof_int 14198_ACEOF 14199 14200 14201# The cast to long int works around a bug in the HP C Compiler 14202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14204# This bug is HP SR number 8606223364. 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 14206$as_echo_n "checking size of unsigned int... " >&6; } 14207if ${ac_cv_sizeof_unsigned_int+:} false; then : 14208 $as_echo_n "(cached) " >&6 14209else 14210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 14211 14212else 14213 if test "$ac_cv_type_unsigned_int" = yes; then 14214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14216as_fn_error 77 "cannot compute sizeof (unsigned int) 14217See \`config.log' for more details" "$LINENO" 5; } 14218 else 14219 ac_cv_sizeof_unsigned_int=0 14220 fi 14221fi 14222 14223fi 14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 14225$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 14226 14227 14228 14229cat >>confdefs.h <<_ACEOF 14230#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 14231_ACEOF 14232 14233 14234# The cast to long int works around a bug in the HP C Compiler 14235# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14236# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14237# This bug is HP SR number 8606223364. 14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14239$as_echo_n "checking size of long... " >&6; } 14240if ${ac_cv_sizeof_long+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14244 14245else 14246 if test "$ac_cv_type_long" = yes; then 14247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14249as_fn_error 77 "cannot compute sizeof (long) 14250See \`config.log' for more details" "$LINENO" 5; } 14251 else 14252 ac_cv_sizeof_long=0 14253 fi 14254fi 14255 14256fi 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14258$as_echo "$ac_cv_sizeof_long" >&6; } 14259 14260 14261 14262cat >>confdefs.h <<_ACEOF 14263#define SIZEOF_LONG $ac_cv_sizeof_long 14264_ACEOF 14265 14266 14267# The cast to long int works around a bug in the HP C Compiler 14268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14270# This bug is HP SR number 8606223364. 14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 14272$as_echo_n "checking size of unsigned long... " >&6; } 14273if ${ac_cv_sizeof_unsigned_long+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 14277 14278else 14279 if test "$ac_cv_type_unsigned_long" = yes; then 14280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14282as_fn_error 77 "cannot compute sizeof (unsigned long) 14283See \`config.log' for more details" "$LINENO" 5; } 14284 else 14285 ac_cv_sizeof_unsigned_long=0 14286 fi 14287fi 14288 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 14291$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 14292 14293 14294 14295cat >>confdefs.h <<_ACEOF 14296#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 14297_ACEOF 14298 14299 14300# The cast to long int works around a bug in the HP C Compiler 14301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14303# This bug is HP SR number 8606223364. 14304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14305$as_echo_n "checking size of long long... " >&6; } 14306if ${ac_cv_sizeof_long_long+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308else 14309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14310 14311else 14312 if test "$ac_cv_type_long_long" = yes; then 14313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14315as_fn_error 77 "cannot compute sizeof (long long) 14316See \`config.log' for more details" "$LINENO" 5; } 14317 else 14318 ac_cv_sizeof_long_long=0 14319 fi 14320fi 14321 14322fi 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14324$as_echo "$ac_cv_sizeof_long_long" >&6; } 14325 14326 14327 14328cat >>confdefs.h <<_ACEOF 14329#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14330_ACEOF 14331 14332 14333# The cast to long int works around a bug in the HP C Compiler 14334# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14335# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14336# This bug is HP SR number 8606223364. 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 14338$as_echo_n "checking size of unsigned long long... " >&6; } 14339if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 14340 $as_echo_n "(cached) " >&6 14341else 14342 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 14343 14344else 14345 if test "$ac_cv_type_unsigned_long_long" = yes; then 14346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14348as_fn_error 77 "cannot compute sizeof (unsigned long long) 14349See \`config.log' for more details" "$LINENO" 5; } 14350 else 14351 ac_cv_sizeof_unsigned_long_long=0 14352 fi 14353fi 14354 14355fi 14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 14357$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 14358 14359 14360 14361cat >>confdefs.h <<_ACEOF 14362#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 14363_ACEOF 14364 14365 14366# The cast to long int works around a bug in the HP C Compiler 14367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14369# This bug is HP SR number 8606223364. 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 14371$as_echo_n "checking size of float... " >&6; } 14372if ${ac_cv_sizeof_float+:} false; then : 14373 $as_echo_n "(cached) " >&6 14374else 14375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 14376 14377else 14378 if test "$ac_cv_type_float" = yes; then 14379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14381as_fn_error 77 "cannot compute sizeof (float) 14382See \`config.log' for more details" "$LINENO" 5; } 14383 else 14384 ac_cv_sizeof_float=0 14385 fi 14386fi 14387 14388fi 14389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 14390$as_echo "$ac_cv_sizeof_float" >&6; } 14391 14392 14393 14394cat >>confdefs.h <<_ACEOF 14395#define SIZEOF_FLOAT $ac_cv_sizeof_float 14396_ACEOF 14397 14398 14399# The cast to long int works around a bug in the HP C Compiler 14400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14402# This bug is HP SR number 8606223364. 14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 14404$as_echo_n "checking size of double... " >&6; } 14405if ${ac_cv_sizeof_double+:} false; then : 14406 $as_echo_n "(cached) " >&6 14407else 14408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 14409 14410else 14411 if test "$ac_cv_type_double" = yes; then 14412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14414as_fn_error 77 "cannot compute sizeof (double) 14415See \`config.log' for more details" "$LINENO" 5; } 14416 else 14417 ac_cv_sizeof_double=0 14418 fi 14419fi 14420 14421fi 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 14423$as_echo "$ac_cv_sizeof_double" >&6; } 14424 14425 14426 14427cat >>confdefs.h <<_ACEOF 14428#define SIZEOF_DOUBLE $ac_cv_sizeof_double 14429_ACEOF 14430 14431 14432 14433if test $ac_cv_sizeof_short -eq 0 \ 14434 -o $ac_cv_sizeof_unsigned_short -eq 0 \ 14435 -o $ac_cv_sizeof_int -eq 0 \ 14436 -o $ac_cv_sizeof_unsigned_int -eq 0 \ 14437 -o $ac_cv_sizeof_long -eq 0 \ 14438 -o $ac_cv_sizeof_unsigned_long -eq 0 \ 14439 -o $ac_cv_sizeof_long_long -eq 0 \ 14440 -o $ac_cv_sizeof_unsigned_long_long -eq 0 \ 14441 -o $ac_cv_sizeof_float -eq 0 \ 14442 -o $ac_cv_sizeof_double -eq 0; then 14443 echo '*** I have a problem determining the size of some variable types. Either' 14444 echo '*** you compiler is broken, or your system+compiler combination is not' 14445 echo '*** supportet by the "autoconf" framework we use to generate this' 14446 echo '*** configure script.' 14447 exit 1 14448fi 14449 14450 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 14453$as_echo_n "checking for long double with more range or precision than double... " >&6; } 14454if ${ac_cv_type_long_double_wider+:} false; then : 14455 $as_echo_n "(cached) " >&6 14456else 14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459#include <float.h> 14460 long double const a[] = 14461 { 14462 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 14463 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 14464 }; 14465 long double 14466 f (long double x) 14467 { 14468 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 14469 + (x ? f (x) : 'c')); 14470 } 14471 14472int 14473main () 14474{ 14475static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 14476 + (DBL_MANT_DIG < LDBL_MANT_DIG) 14477 - (LDBL_MAX_EXP < DBL_MAX_EXP) 14478 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 14479 && (int) LDBL_EPSILON == 0 14480 )]; 14481test_array [0] = 0; 14482return test_array [0]; 14483 14484 ; 14485 return 0; 14486} 14487_ACEOF 14488if ac_fn_c_try_compile "$LINENO"; then : 14489 ac_cv_type_long_double_wider=yes 14490else 14491 ac_cv_type_long_double_wider=no 14492fi 14493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14494fi 14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 14496$as_echo "$ac_cv_type_long_double_wider" >&6; } 14497 if test $ac_cv_type_long_double_wider = yes; then 14498 14499$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 14500 14501 fi 14502 14503 ac_cv_c_long_double=$ac_cv_type_long_double_wider 14504 if test $ac_cv_c_long_double = yes; then 14505 14506$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 14507 14508 fi 14509 14510if test "${ac_cv_c_have_long_double}" = "yes" ; then 14511 # The cast to long int works around a bug in the HP C Compiler 14512# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14513# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14514# This bug is HP SR number 8606223364. 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 14516$as_echo_n "checking size of long double... " >&6; } 14517if ${ac_cv_sizeof_long_double+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 14521 14522else 14523 if test "$ac_cv_type_long_double" = yes; then 14524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14526as_fn_error 77 "cannot compute sizeof (long double) 14527See \`config.log' for more details" "$LINENO" 5; } 14528 else 14529 ac_cv_sizeof_long_double=0 14530 fi 14531fi 14532 14533fi 14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 14535$as_echo "$ac_cv_sizeof_long_double" >&6; } 14536 14537 14538 14539cat >>confdefs.h <<_ACEOF 14540#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 14541_ACEOF 14542 14543 14544fi 14545 14546ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14547if test "x$ac_cv_type_uint8_t" = xyes; then : 14548 14549cat >>confdefs.h <<_ACEOF 14550#define HAVE_UINT8_T 1 14551_ACEOF 14552 14553 14554fi 14555ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14556if test "x$ac_cv_type_int8_t" = xyes; then : 14557 14558cat >>confdefs.h <<_ACEOF 14559#define HAVE_INT8_T 1 14560_ACEOF 14561 14562 14563fi 14564ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14565if test "x$ac_cv_type_uint16_t" = xyes; then : 14566 14567cat >>confdefs.h <<_ACEOF 14568#define HAVE_UINT16_T 1 14569_ACEOF 14570 14571 14572fi 14573ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14574if test "x$ac_cv_type_int16_t" = xyes; then : 14575 14576cat >>confdefs.h <<_ACEOF 14577#define HAVE_INT16_T 1 14578_ACEOF 14579 14580 14581fi 14582ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14583if test "x$ac_cv_type_uint32_t" = xyes; then : 14584 14585cat >>confdefs.h <<_ACEOF 14586#define HAVE_UINT32_T 1 14587_ACEOF 14588 14589 14590fi 14591ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14592if test "x$ac_cv_type_int32_t" = xyes; then : 14593 14594cat >>confdefs.h <<_ACEOF 14595#define HAVE_INT32_T 1 14596_ACEOF 14597 14598 14599fi 14600ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14601if test "x$ac_cv_type_uint64_t" = xyes; then : 14602 14603cat >>confdefs.h <<_ACEOF 14604#define HAVE_UINT64_T 1 14605_ACEOF 14606 14607 14608fi 14609ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14610if test "x$ac_cv_type_int64_t" = xyes; then : 14611 14612cat >>confdefs.h <<_ACEOF 14613#define HAVE_INT64_T 1 14614_ACEOF 14615 14616 14617fi 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628if test "${HAVE_INT32_T}" = yes; then 14629 $as_echo "#define A_UINT32_T unsigned int32_t" >>confdefs.h 14630 14631else 14632 if test "${ac_cv_sizeof_unsigned_short}" = "4"; then 14633 $as_echo "#define A_UINT32_T unsigned short" >>confdefs.h 14634 14635 else 14636 if test "${ac_cv_sizeof_unsigned_int}" = "4"; then 14637 $as_echo "#define A_UINT32_T unsigned int" >>confdefs.h 14638 14639 else 14640 if test "${ac_cv_sizeof_unsigned_long}" = "4"; then 14641 $as_echo "#define A_UINT32_T unsigned long" >>confdefs.h 14642 14643 else 14644 as_fn_error $? "CHECK_TYPE_uint32_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5 14645 fi 14646 fi 14647 fi 14648fi 14649 14650 14651 14652if test "${ac_cv_sizeof_short}" = "4"; then 14653 $as_echo "#define A_INT32_T short" >>confdefs.h 14654 14655else 14656 if test "${ac_cv_sizeof_int}" = "4"; then 14657 $as_echo "#define A_INT32_T int" >>confdefs.h 14658 14659 else 14660 if test "${ac_cv_sizeof_long}" = "4"; then 14661 $as_echo "#define A_INT32_T long" >>confdefs.h 14662 14663 else 14664 as_fn_error $? "CHECK_TYPE_int32_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5 14665 fi 14666 fi 14667fi 14668 14669 14670 14671if test "${HAVE_INT64_T}" = yes; then 14672 $as_echo "#define A_UINT64_T unsigned int64_t" >>confdefs.h 14673 14674else 14675 if test "${ac_cv_sizeof_unsigned_int}" = "8"; then 14676 $as_echo "#define A_UINT64_T unsigned int" >>confdefs.h 14677 14678 else 14679 if test "${ac_cv_sizeof_unsigned_long}" = "8"; then 14680 $as_echo "#define A_UINT64_T unsigned long" >>confdefs.h 14681 14682 else 14683 if test "${ac_cv_sizeof_unsigned_long_long}" = "8"; then 14684 $as_echo "#define A_UINT64_T unsigned long long" >>confdefs.h 14685 14686 else 14687 as_fn_error $? "CHECK_TYPE_uint64_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5 14688 fi 14689 fi 14690 fi 14691fi 14692 14693 14694 14695if test "${ac_cv_sizeof_int}" = "8"; then 14696 $as_echo "#define A_INT64_T int" >>confdefs.h 14697 14698else 14699 if test "${ac_cv_sizeof_long}" = "8"; then 14700 $as_echo "#define A_INT64_T long" >>confdefs.h 14701 14702 else 14703 if test "${ac_cv_sizeof_long_long}" = "8"; then 14704 $as_echo "#define A_INT64_T long long" >>confdefs.h 14705 14706 else 14707 as_fn_error $? "CHECK_TYPE_int64_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5 14708 fi 14709 fi 14710fi 14711 14712 14713 14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE854 compliant 80 bit floats" >&5 14715$as_echo_n "checking for IEEE854 compliant 80 bit floats... " >&6; } 14716if ${alex_cv_ieee854_float80+:} false; then : 14717 $as_echo_n "(cached) " >&6 14718else 14719 if test "$cross_compiling" = yes; then : 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't check for IEEE854 compliant 80 bit floats" >&5 14721$as_echo "$as_me: WARNING: can't check for IEEE854 compliant 80 bit floats" >&2;} 14722 14723else 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726 14727int float2long_IEEE_compliance ( void ) 14728{ 14729 struct { 14730 long padding; /* to prevent unaligned access */ 14731 float f; 14732 } s; 14733 s.f = 12582912.; if ( *(long*)(&s.f) != 1262485504l ) return 0; 14734 s.f = 12615679.; if ( *(long*)(&s.f) != 1262518271l ) return 0; 14735 s.f = 13582912.; if ( *(long*)(&s.f) != 1263485504l ) return 0; 14736 s.f = 12550145.; if ( *(long*)(&s.f) != 1262452737l ) return 0; 14737 s.f = 11582912.; if ( *(long*)(&s.f) != 1261485504l ) return 0; 14738 return 1; 14739} 14740 14741int main(void) 14742{ 14743 int retval; 14744 14745 retval = float2long_IEEE_compliance(); 14746 14747 /* no error return -> success */ 14748 return !retval; 14749} 14750 14751_ACEOF 14752if ac_fn_c_try_run "$LINENO"; then : 14753 alex_cv_ieee854_float80=yes 14754else 14755 alex_cv_ieee854_float80=no 14756fi 14757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14758 conftest.$ac_objext conftest.beam conftest.$ac_ext 14759fi 14760 14761fi 14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $alex_cv_ieee854_float80" >&5 14763$as_echo "$alex_cv_ieee854_float80" >&6; } 14764if test "${alex_cv_ieee854_float80}" = "yes" ; then 14765 if test "${ac_cv_c_long_double}" = "yes" ; then 14766 ac_fn_c_check_type "$LINENO" "ieee854_float80_t" "ac_cv_type_ieee854_float80_t" "$ac_includes_default" 14767if test "x$ac_cv_type_ieee854_float80_t" = xyes; then : 14768 14769cat >>confdefs.h <<_ACEOF 14770#define HAVE_IEEE854_FLOAT80_T 1 14771_ACEOF 14772 14773long double 14774fi 14775 14776 14777 14778 14779$as_echo "#define HAVE_IEEE854_FLOAT80 1" >>confdefs.h 14780 14781 fi 14782fi 14783ac_fn_c_check_type "$LINENO" "ieee754_float64_t" "ac_cv_type_ieee754_float64_t" "$ac_includes_default" 14784if test "x$ac_cv_type_ieee754_float64_t" = xyes; then : 14785 14786cat >>confdefs.h <<_ACEOF 14787#define HAVE_IEEE754_FLOAT64_T 1 14788_ACEOF 14789 14790 14791fi 14792ac_fn_c_check_type "$LINENO" "ieee754_float32_t" "ac_cv_type_ieee754_float32_t" "$ac_includes_default" 14793if test "x$ac_cv_type_ieee754_float32_t" = xyes; then : 14794 14795cat >>confdefs.h <<_ACEOF 14796#define HAVE_IEEE754_FLOAT32_T 1 14797_ACEOF 14798 14799 14800fi 14801 14802 14803 14804 14805 14806 14807 14808$as_echo "#define LAME_LIBRARY_BUILD 1" >>confdefs.h 14809 14810 14811 14812if test ${cross_compiling} = "yes"; then 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 14814 ************************************************************************** 14815 * * 14816 * You are cross compiling: * 14817 * - I did not have a change to determine * 14818 * + the size of: * 14819 * - short * 14820 * - unsigned short * 14821 * - int * 14822 * - unsigned int * 14823 * - long * 14824 * - unsigned long * 14825 * - float * 14826 * - double * 14827 * - long double * 14828 * + the endianess of the system * 14829 * - You have to provide appropriate defines for them in config.h, e.g. * 14830 * + define SIZEOF_SHORT to 2 if the size of a short is 2 * 14831 * + define WORDS_BIGENDIAN if your system is a big endian system * 14832 * * 14833 **************************************************************************" >&5 14834$as_echo "$as_me: WARNING: 14835 ************************************************************************** 14836 * * 14837 * You are cross compiling: * 14838 * - I did not have a change to determine * 14839 * + the size of: * 14840 * - short * 14841 * - unsigned short * 14842 * - int * 14843 * - unsigned int * 14844 * - long * 14845 * - unsigned long * 14846 * - float * 14847 * - double * 14848 * - long double * 14849 * + the endianess of the system * 14850 * - You have to provide appropriate defines for them in config.h, e.g. * 14851 * + define SIZEOF_SHORT to 2 if the size of a short is 2 * 14852 * + define WORDS_BIGENDIAN if your system is a big endian system * 14853 * * 14854 **************************************************************************" >&2;} 14855fi 14856 14857ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14858if test "x$ac_cv_type_size_t" = xyes; then : 14859 14860else 14861 14862cat >>confdefs.h <<_ACEOF 14863#define size_t unsigned int 14864_ACEOF 14865 14866fi 14867 14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14869$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14870if ${ac_cv_header_time+:} false; then : 14871 $as_echo_n "(cached) " >&6 14872else 14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14874/* end confdefs.h. */ 14875#include <sys/types.h> 14876#include <sys/time.h> 14877#include <time.h> 14878 14879int 14880main () 14881{ 14882if ((struct tm *) 0) 14883return 0; 14884 ; 14885 return 0; 14886} 14887_ACEOF 14888if ac_fn_c_try_compile "$LINENO"; then : 14889 ac_cv_header_time=yes 14890else 14891 ac_cv_header_time=no 14892fi 14893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14894fi 14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14896$as_echo "$ac_cv_header_time" >&6; } 14897if test $ac_cv_header_time = yes; then 14898 14899$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14900 14901fi 14902 14903 14904# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14905# for constant arguments. Useless! 14906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 14907$as_echo_n "checking for working alloca.h... " >&6; } 14908if ${ac_cv_working_alloca_h+:} false; then : 14909 $as_echo_n "(cached) " >&6 14910else 14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912/* end confdefs.h. */ 14913#include <alloca.h> 14914int 14915main () 14916{ 14917char *p = (char *) alloca (2 * sizeof (int)); 14918 if (p) return 0; 14919 ; 14920 return 0; 14921} 14922_ACEOF 14923if ac_fn_c_try_link "$LINENO"; then : 14924 ac_cv_working_alloca_h=yes 14925else 14926 ac_cv_working_alloca_h=no 14927fi 14928rm -f core conftest.err conftest.$ac_objext \ 14929 conftest$ac_exeext conftest.$ac_ext 14930fi 14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 14932$as_echo "$ac_cv_working_alloca_h" >&6; } 14933if test $ac_cv_working_alloca_h = yes; then 14934 14935$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 14936 14937fi 14938 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 14940$as_echo_n "checking for alloca... " >&6; } 14941if ${ac_cv_func_alloca_works+:} false; then : 14942 $as_echo_n "(cached) " >&6 14943else 14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946#ifdef __GNUC__ 14947# define alloca __builtin_alloca 14948#else 14949# ifdef _MSC_VER 14950# include <malloc.h> 14951# define alloca _alloca 14952# else 14953# ifdef HAVE_ALLOCA_H 14954# include <alloca.h> 14955# else 14956# ifdef _AIX 14957 #pragma alloca 14958# else 14959# ifndef alloca /* predefined by HP cc +Olibcalls */ 14960void *alloca (size_t); 14961# endif 14962# endif 14963# endif 14964# endif 14965#endif 14966 14967int 14968main () 14969{ 14970char *p = (char *) alloca (1); 14971 if (p) return 0; 14972 ; 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_link "$LINENO"; then : 14977 ac_cv_func_alloca_works=yes 14978else 14979 ac_cv_func_alloca_works=no 14980fi 14981rm -f core conftest.err conftest.$ac_objext \ 14982 conftest$ac_exeext conftest.$ac_ext 14983fi 14984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 14985$as_echo "$ac_cv_func_alloca_works" >&6; } 14986 14987if test $ac_cv_func_alloca_works = yes; then 14988 14989$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 14990 14991else 14992 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14993# that cause trouble. Some versions do not even contain alloca or 14994# contain a buggy version. If you still want to use their alloca, 14995# use ar to extract alloca.o from them instead of compiling alloca.c. 14996 14997ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 14998 14999$as_echo "#define C_ALLOCA 1" >>confdefs.h 15000 15001 15002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 15003$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 15004if ${ac_cv_os_cray+:} false; then : 15005 $as_echo_n "(cached) " >&6 15006else 15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008/* end confdefs.h. */ 15009#if defined CRAY && ! defined CRAY2 15010webecray 15011#else 15012wenotbecray 15013#endif 15014 15015_ACEOF 15016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15017 $EGREP "webecray" >/dev/null 2>&1; then : 15018 ac_cv_os_cray=yes 15019else 15020 ac_cv_os_cray=no 15021fi 15022rm -f conftest* 15023 15024fi 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 15026$as_echo "$ac_cv_os_cray" >&6; } 15027if test $ac_cv_os_cray = yes; then 15028 for ac_func in _getb67 GETB67 getb67; do 15029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15031if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15032 15033cat >>confdefs.h <<_ACEOF 15034#define CRAY_STACKSEG_END $ac_func 15035_ACEOF 15036 15037 break 15038fi 15039 15040 done 15041fi 15042 15043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 15044$as_echo_n "checking stack direction for C alloca... " >&6; } 15045if ${ac_cv_c_stack_direction+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 if test "$cross_compiling" = yes; then : 15049 ac_cv_c_stack_direction=0 15050else 15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15052/* end confdefs.h. */ 15053$ac_includes_default 15054int 15055find_stack_direction (int *addr, int depth) 15056{ 15057 int dir, dummy = 0; 15058 if (! addr) 15059 addr = &dummy; 15060 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 15061 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 15062 return dir + dummy; 15063} 15064 15065int 15066main (int argc, char **argv) 15067{ 15068 return find_stack_direction (0, argc + !argv + 20) < 0; 15069} 15070_ACEOF 15071if ac_fn_c_try_run "$LINENO"; then : 15072 ac_cv_c_stack_direction=1 15073else 15074 ac_cv_c_stack_direction=-1 15075fi 15076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15077 conftest.$ac_objext conftest.beam conftest.$ac_ext 15078fi 15079 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 15082$as_echo "$ac_cv_c_stack_direction" >&6; } 15083cat >>confdefs.h <<_ACEOF 15084#define STACK_DIRECTION $ac_cv_c_stack_direction 15085_ACEOF 15086 15087 15088fi 15089 15090for ac_func in gettimeofday strtol 15091do : 15092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15093ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15094if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15095 cat >>confdefs.h <<_ACEOF 15096#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15097_ACEOF 15098 15099fi 15100done 15101 15102 15103if test "X${ac_cv_func_strtol}" != "Xyes"; then 15104 as_fn_error $? "function strtol is mandatory" "$LINENO" 5 15105fi 15106 15107SOCKETFUNCTION=unknown 15108for ac_func in socket 15109do : 15110 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 15111if test "x$ac_cv_func_socket" = xyes; then : 15112 cat >>confdefs.h <<_ACEOF 15113#define HAVE_SOCKET 1 15114_ACEOF 15115 15116fi 15117done 15118 15119if test $ac_cv_func_socket = no; then 15120 # maybe it is in libsocket 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 15122$as_echo_n "checking for socket in -lsocket... " >&6; } 15123if ${ac_cv_lib_socket_socket+:} false; then : 15124 $as_echo_n "(cached) " >&6 15125else 15126 ac_check_lib_save_LIBS=$LIBS 15127LIBS="-lsocket $LIBS" 15128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15129/* end confdefs.h. */ 15130 15131/* Override any GCC internal prototype to avoid an error. 15132 Use char because int might match the return type of a GCC 15133 builtin and then its argument prototype would still apply. */ 15134#ifdef __cplusplus 15135extern "C" 15136#endif 15137char socket (); 15138int 15139main () 15140{ 15141return socket (); 15142 ; 15143 return 0; 15144} 15145_ACEOF 15146if ac_fn_c_try_link "$LINENO"; then : 15147 ac_cv_lib_socket_socket=yes 15148else 15149 ac_cv_lib_socket_socket=no 15150fi 15151rm -f core conftest.err conftest.$ac_objext \ 15152 conftest$ac_exeext conftest.$ac_ext 15153LIBS=$ac_check_lib_save_LIBS 15154fi 15155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 15156$as_echo "$ac_cv_lib_socket_socket" >&6; } 15157if test "x$ac_cv_lib_socket_socket" = xyes; then : 15158 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h 15159 15160 LIBS="$LIBS -lsocket" 15161fi 15162 15163 if test "X${ac_cv_lib_socket_socket}" != "Xyes"; then 15164 SOCKETFUNCTION=NO 15165 else 15166 case ${host_os} in 15167 *solaris*) 15168 LIBS="$LIBS -lnsl" 15169 ;; 15170 esac 15171 fi 15172fi 15173 15174CFLAGS=${CFLAGS} 15175CONFIG_DEFS=${CONFIG_DEFS} 15176NASM= 15177INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)" 15178FRONTEND_LDFLAGS= 15179FRONTEND_CFLAGS= 15180LIB_SOURCES= 15181MAKEDEP="-M" 15182RM_F="rm -f" 15183 15184# Check whether --enable-nasm was given. 15185if test "${enable_nasm+set}" = set; then : 15186 enableval=$enable_nasm; ASM_FOR_ARCH="i386" 15187else 15188 ASM_FOR_ARCH="" 15189fi 15190 15191 15192# Check whether --enable-ieeehack was given. 15193if test "${enable_ieeehack+set}" = set; then : 15194 enableval=$enable_ieeehack; IEEE754_HACK="yes" 15195else 15196 IEEE754_HACK="no" 15197fi 15198 15199case ${IEEE754_HACK} in 15200 yes) 15201 15202$as_echo "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h 15203 15204 ;; 15205 no) 15206 15207$as_echo "#define TAKEHIRO_IEEE754_HACK 0" >>confdefs.h 15208 15209 ;; 15210esac 15211 15212 15213for ac_header in termcap.h 15214do : 15215 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 15216if test "x$ac_cv_header_termcap_h" = xyes; then : 15217 cat >>confdefs.h <<_ACEOF 15218#define HAVE_TERMCAP_H 1 15219_ACEOF 15220 15221fi 15222 15223done 15224 15225for ac_header in ncurses/termcap.h 15226do : 15227 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default" 15228if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then : 15229 cat >>confdefs.h <<_ACEOF 15230#define HAVE_NCURSES_TERMCAP_H 1 15231_ACEOF 15232 15233fi 15234 15235done 15236 15237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5 15238$as_echo_n "checking for initscr in -ltermcap... " >&6; } 15239if ${ac_cv_lib_termcap_initscr+:} false; then : 15240 $as_echo_n "(cached) " >&6 15241else 15242 ac_check_lib_save_LIBS=$LIBS 15243LIBS="-ltermcap $LIBS" 15244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15245/* end confdefs.h. */ 15246 15247/* Override any GCC internal prototype to avoid an error. 15248 Use char because int might match the return type of a GCC 15249 builtin and then its argument prototype would still apply. */ 15250#ifdef __cplusplus 15251extern "C" 15252#endif 15253char initscr (); 15254int 15255main () 15256{ 15257return initscr (); 15258 ; 15259 return 0; 15260} 15261_ACEOF 15262if ac_fn_c_try_link "$LINENO"; then : 15263 ac_cv_lib_termcap_initscr=yes 15264else 15265 ac_cv_lib_termcap_initscr=no 15266fi 15267rm -f core conftest.err conftest.$ac_objext \ 15268 conftest$ac_exeext conftest.$ac_ext 15269LIBS=$ac_check_lib_save_LIBS 15270fi 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5 15272$as_echo "$ac_cv_lib_termcap_initscr" >&6; } 15273if test "x$ac_cv_lib_termcap_initscr" = xyes; then : 15274 HAVE_TERMCAP="termcap" 15275fi 15276 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 15278$as_echo_n "checking for initscr in -lcurses... " >&6; } 15279if ${ac_cv_lib_curses_initscr+:} false; then : 15280 $as_echo_n "(cached) " >&6 15281else 15282 ac_check_lib_save_LIBS=$LIBS 15283LIBS="-lcurses $LIBS" 15284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15285/* end confdefs.h. */ 15286 15287/* Override any GCC internal prototype to avoid an error. 15288 Use char because int might match the return type of a GCC 15289 builtin and then its argument prototype would still apply. */ 15290#ifdef __cplusplus 15291extern "C" 15292#endif 15293char initscr (); 15294int 15295main () 15296{ 15297return initscr (); 15298 ; 15299 return 0; 15300} 15301_ACEOF 15302if ac_fn_c_try_link "$LINENO"; then : 15303 ac_cv_lib_curses_initscr=yes 15304else 15305 ac_cv_lib_curses_initscr=no 15306fi 15307rm -f core conftest.err conftest.$ac_objext \ 15308 conftest$ac_exeext conftest.$ac_ext 15309LIBS=$ac_check_lib_save_LIBS 15310fi 15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 15312$as_echo "$ac_cv_lib_curses_initscr" >&6; } 15313if test "x$ac_cv_lib_curses_initscr" = xyes; then : 15314 HAVE_TERMCAP="curses" 15315fi 15316 15317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 15318$as_echo_n "checking for initscr in -lncurses... " >&6; } 15319if ${ac_cv_lib_ncurses_initscr+:} false; then : 15320 $as_echo_n "(cached) " >&6 15321else 15322 ac_check_lib_save_LIBS=$LIBS 15323LIBS="-lncurses $LIBS" 15324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325/* end confdefs.h. */ 15326 15327/* Override any GCC internal prototype to avoid an error. 15328 Use char because int might match the return type of a GCC 15329 builtin and then its argument prototype would still apply. */ 15330#ifdef __cplusplus 15331extern "C" 15332#endif 15333char initscr (); 15334int 15335main () 15336{ 15337return initscr (); 15338 ; 15339 return 0; 15340} 15341_ACEOF 15342if ac_fn_c_try_link "$LINENO"; then : 15343 ac_cv_lib_ncurses_initscr=yes 15344else 15345 ac_cv_lib_ncurses_initscr=no 15346fi 15347rm -f core conftest.err conftest.$ac_objext \ 15348 conftest$ac_exeext conftest.$ac_ext 15349LIBS=$ac_check_lib_save_LIBS 15350fi 15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 15352$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } 15353if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : 15354 HAVE_TERMCAP="ncurses" 15355fi 15356 15357for ac_header in langinfo.h 15358do : 15359 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 15360if test "x$ac_cv_header_langinfo_h" = xyes; then : 15361 cat >>confdefs.h <<_ACEOF 15362#define HAVE_LANGINFO_H 1 15363_ACEOF 15364 for ac_func in nl_langinfo 15365do : 15366 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 15367if test "x$ac_cv_func_nl_langinfo" = xyes; then : 15368 cat >>confdefs.h <<_ACEOF 15369#define HAVE_NL_LANGINFO 1 15370_ACEOF 15371 15372fi 15373done 15374 15375fi 15376 15377done 15378 15379 15380 15381 if test "X$prefix" = "XNONE"; then 15382 acl_final_prefix="$ac_default_prefix" 15383 else 15384 acl_final_prefix="$prefix" 15385 fi 15386 if test "X$exec_prefix" = "XNONE"; then 15387 acl_final_exec_prefix='${prefix}' 15388 else 15389 acl_final_exec_prefix="$exec_prefix" 15390 fi 15391 acl_save_prefix="$prefix" 15392 prefix="$acl_final_prefix" 15393 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 15394 prefix="$acl_save_prefix" 15395 15396 15397 15398# Check whether --with-gnu-ld was given. 15399if test "${with_gnu_ld+set}" = set; then : 15400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15401else 15402 with_gnu_ld=no 15403fi 15404 15405# Prepare PATH_SEPARATOR. 15406# The user is always right. 15407if test "${PATH_SEPARATOR+set}" != set; then 15408 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15409 # contains only /bin. Note that ksh looks also at the FPATH variable, 15410 # so we have to set that as well for the test. 15411 PATH_SEPARATOR=: 15412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15413 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15414 || PATH_SEPARATOR=';' 15415 } 15416fi 15417 15418if test -n "$LD"; then 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 15420$as_echo_n "checking for ld... " >&6; } 15421elif test "$GCC" = yes; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15423$as_echo_n "checking for ld used by $CC... " >&6; } 15424elif test "$with_gnu_ld" = yes; then 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15426$as_echo_n "checking for GNU ld... " >&6; } 15427else 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15429$as_echo_n "checking for non-GNU ld... " >&6; } 15430fi 15431if test -n "$LD"; then 15432 # Let the user override the test with a path. 15433 : 15434else 15435 if ${acl_cv_path_LD+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 15439 acl_cv_path_LD= # Final result of this test 15440 ac_prog=ld # Program to search in $PATH 15441 if test "$GCC" = yes; then 15442 # Check if gcc -print-prog-name=ld gives a path. 15443 case $host in 15444 *-*-mingw*) 15445 # gcc leaves a trailing carriage return which upsets mingw 15446 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15447 *) 15448 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 15449 esac 15450 case $acl_output in 15451 # Accept absolute paths. 15452 [\\/]* | ?:[\\/]*) 15453 re_direlt='/[^/][^/]*/\.\./' 15454 # Canonicalize the pathname of ld 15455 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 15456 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 15457 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 15458 done 15459 # Got the pathname. No search in PATH is needed. 15460 acl_cv_path_LD="$acl_output" 15461 ac_prog= 15462 ;; 15463 "") 15464 # If it fails, then pretend we aren't using GCC. 15465 ;; 15466 *) 15467 # If it is relative, then search for the first ld in PATH. 15468 with_gnu_ld=unknown 15469 ;; 15470 esac 15471 fi 15472 if test -n "$ac_prog"; then 15473 # Search for $ac_prog in $PATH. 15474 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15475 for ac_dir in $PATH; do 15476 IFS="$acl_save_ifs" 15477 test -z "$ac_dir" && ac_dir=. 15478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15479 acl_cv_path_LD="$ac_dir/$ac_prog" 15480 # Check to see if the program is GNU ld. I'd rather use --version, 15481 # but apparently some variants of GNU ld only accept -v. 15482 # Break only if it was the GNU/non-GNU ld that we prefer. 15483 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 15484 *GNU* | *'with BFD'*) 15485 test "$with_gnu_ld" != no && break 15486 ;; 15487 *) 15488 test "$with_gnu_ld" != yes && break 15489 ;; 15490 esac 15491 fi 15492 done 15493 IFS="$acl_save_ifs" 15494 fi 15495 case $host in 15496 *-*-aix*) 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499#if defined __powerpc64__ || defined _ARCH_PPC64 15500 int ok; 15501 #else 15502 error fail 15503 #endif 15504 15505_ACEOF 15506if ac_fn_c_try_compile "$LINENO"; then : 15507 # The compiler produces 64-bit code. Add option '-b64' so that the 15508 # linker groks 64-bit object files. 15509 case "$acl_cv_path_LD " in 15510 *" -b64 "*) ;; 15511 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 15512 esac 15513 15514fi 15515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15516 ;; 15517 sparc64-*-netbsd*) 15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15519/* end confdefs.h. */ 15520#if defined __sparcv9 || defined __arch64__ 15521 int ok; 15522 #else 15523 error fail 15524 #endif 15525 15526_ACEOF 15527if ac_fn_c_try_compile "$LINENO"; then : 15528 15529else 15530 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 15531 # so that the linker groks 32-bit object files. 15532 case "$acl_cv_path_LD " in 15533 *" -m elf32_sparc "*) ;; 15534 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 15535 esac 15536 15537fi 15538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15539 ;; 15540 esac 15541 15542fi 15543 15544 LD="$acl_cv_path_LD" 15545fi 15546if test -n "$LD"; then 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15548$as_echo "$LD" >&6; } 15549else 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15551$as_echo "no" >&6; } 15552 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15553fi 15554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15555$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15556if ${acl_cv_prog_gnu_ld+:} false; then : 15557 $as_echo_n "(cached) " >&6 15558else 15559 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15560case `$LD -v 2>&1 </dev/null` in 15561*GNU* | *'with BFD'*) 15562 acl_cv_prog_gnu_ld=yes 15563 ;; 15564*) 15565 acl_cv_prog_gnu_ld=no 15566 ;; 15567esac 15568fi 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 15570$as_echo "$acl_cv_prog_gnu_ld" >&6; } 15571with_gnu_ld=$acl_cv_prog_gnu_ld 15572 15573 15574 15575 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 15577$as_echo_n "checking for shared library run path origin... " >&6; } 15578if ${acl_cv_rpath+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 15582 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 15583 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 15584 . ./conftest.sh 15585 rm -f ./conftest.sh 15586 acl_cv_rpath=done 15587 15588fi 15589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 15590$as_echo "$acl_cv_rpath" >&6; } 15591 wl="$acl_cv_wl" 15592 acl_libext="$acl_cv_libext" 15593 acl_shlibext="$acl_cv_shlibext" 15594 acl_libname_spec="$acl_cv_libname_spec" 15595 acl_library_names_spec="$acl_cv_library_names_spec" 15596 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 15597 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 15598 acl_hardcode_direct="$acl_cv_hardcode_direct" 15599 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 15600 # Check whether --enable-rpath was given. 15601if test "${enable_rpath+set}" = set; then : 15602 enableval=$enable_rpath; : 15603else 15604 enable_rpath=yes 15605fi 15606 15607 15608 15609 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 15611$as_echo_n "checking 32-bit host C ABI... " >&6; } 15612if ${gl_cv_host_cpu_c_abi_32bit+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 if test -n "$gl_cv_host_cpu_c_abi"; then 15616 case "$gl_cv_host_cpu_c_abi" in 15617 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 15618 gl_cv_host_cpu_c_abi_32bit=yes ;; 15619 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 15620 gl_cv_host_cpu_c_abi_32bit=no ;; 15621 *) 15622 gl_cv_host_cpu_c_abi_32bit=unknown ;; 15623 esac 15624 else 15625 case "$host_cpu" in 15626 15627 # CPUs that only support a 32-bit ABI. 15628 arc \ 15629 | bfin \ 15630 | cris* \ 15631 | csky \ 15632 | epiphany \ 15633 | ft32 \ 15634 | h8300 \ 15635 | m68k \ 15636 | microblaze | microblazeel \ 15637 | nds32 | nds32le | nds32be \ 15638 | nios2 | nios2eb | nios2el \ 15639 | or1k* \ 15640 | or32 \ 15641 | sh | sh1234 | sh1234elb \ 15642 | tic6x \ 15643 | xtensa* ) 15644 gl_cv_host_cpu_c_abi_32bit=yes 15645 ;; 15646 15647 # CPUs that only support a 64-bit ABI. 15648 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 15649 | mmix ) 15650 gl_cv_host_cpu_c_abi_32bit=no 15651 ;; 15652 15653 i[34567]86 ) 15654 gl_cv_host_cpu_c_abi_32bit=yes 15655 ;; 15656 15657 x86_64 ) 15658 # On x86_64 systems, the C compiler may be generating code in one of 15659 # these ABIs: 15660 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 15661 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 15662 # with native Windows (mingw, MSVC). 15663 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 15664 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15666/* end confdefs.h. */ 15667#if (defined __x86_64__ || defined __amd64__ \ 15668 || defined _M_X64 || defined _M_AMD64) \ 15669 && !(defined __ILP32__ || defined _ILP32) 15670 int ok; 15671 #else 15672 error fail 15673 #endif 15674 15675_ACEOF 15676if ac_fn_c_try_compile "$LINENO"; then : 15677 gl_cv_host_cpu_c_abi_32bit=no 15678else 15679 gl_cv_host_cpu_c_abi_32bit=yes 15680fi 15681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15682 ;; 15683 15684 arm* | aarch64 ) 15685 # Assume arm with EABI. 15686 # On arm64 systems, the C compiler may be generating code in one of 15687 # these ABIs: 15688 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 15689 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 15690 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15692/* end confdefs.h. */ 15693#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 15694 int ok; 15695 #else 15696 error fail 15697 #endif 15698 15699_ACEOF 15700if ac_fn_c_try_compile "$LINENO"; then : 15701 gl_cv_host_cpu_c_abi_32bit=no 15702else 15703 gl_cv_host_cpu_c_abi_32bit=yes 15704fi 15705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15706 ;; 15707 15708 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 15709 # On hppa, the C compiler may be generating 32-bit code or 64-bit 15710 # code. In the latter case, it defines _LP64 and __LP64__. 15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15712/* end confdefs.h. */ 15713#ifdef __LP64__ 15714 int ok; 15715 #else 15716 error fail 15717 #endif 15718 15719_ACEOF 15720if ac_fn_c_try_compile "$LINENO"; then : 15721 gl_cv_host_cpu_c_abi_32bit=no 15722else 15723 gl_cv_host_cpu_c_abi_32bit=yes 15724fi 15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15726 ;; 15727 15728 ia64* ) 15729 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 15730 # 32-bit code. In the latter case, it defines _ILP32. 15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733#ifdef _ILP32 15734 int ok; 15735 #else 15736 error fail 15737 #endif 15738 15739_ACEOF 15740if ac_fn_c_try_compile "$LINENO"; then : 15741 gl_cv_host_cpu_c_abi_32bit=yes 15742else 15743 gl_cv_host_cpu_c_abi_32bit=no 15744fi 15745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15746 ;; 15747 15748 mips* ) 15749 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 15750 # at 32. 15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15752/* end confdefs.h. */ 15753#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 15754 int ok; 15755 #else 15756 error fail 15757 #endif 15758 15759_ACEOF 15760if ac_fn_c_try_compile "$LINENO"; then : 15761 gl_cv_host_cpu_c_abi_32bit=no 15762else 15763 gl_cv_host_cpu_c_abi_32bit=yes 15764fi 15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15766 ;; 15767 15768 powerpc* ) 15769 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 15770 # No need to distinguish them here; the caller may distinguish 15771 # them based on the OS. 15772 # On powerpc64 systems, the C compiler may still be generating 15773 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 15774 # be generating 64-bit code. 15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15776/* end confdefs.h. */ 15777#if defined __powerpc64__ || defined _ARCH_PPC64 15778 int ok; 15779 #else 15780 error fail 15781 #endif 15782 15783_ACEOF 15784if ac_fn_c_try_compile "$LINENO"; then : 15785 gl_cv_host_cpu_c_abi_32bit=no 15786else 15787 gl_cv_host_cpu_c_abi_32bit=yes 15788fi 15789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15790 ;; 15791 15792 rs6000 ) 15793 gl_cv_host_cpu_c_abi_32bit=yes 15794 ;; 15795 15796 riscv32 | riscv64 ) 15797 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 15798 # Size of 'long' and 'void *': 15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15800/* end confdefs.h. */ 15801#if defined __LP64__ 15802 int ok; 15803 #else 15804 error fail 15805 #endif 15806 15807_ACEOF 15808if ac_fn_c_try_compile "$LINENO"; then : 15809 gl_cv_host_cpu_c_abi_32bit=no 15810else 15811 gl_cv_host_cpu_c_abi_32bit=yes 15812fi 15813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15814 ;; 15815 15816 s390* ) 15817 # On s390x, the C compiler may be generating 64-bit (= s390x) code 15818 # or 31-bit (= s390) code. 15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15820/* end confdefs.h. */ 15821#if defined __LP64__ || defined __s390x__ 15822 int ok; 15823 #else 15824 error fail 15825 #endif 15826 15827_ACEOF 15828if ac_fn_c_try_compile "$LINENO"; then : 15829 gl_cv_host_cpu_c_abi_32bit=no 15830else 15831 gl_cv_host_cpu_c_abi_32bit=yes 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15834 ;; 15835 15836 sparc | sparc64 ) 15837 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 15838 # C compiler still generates 32-bit code. 15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15840/* end confdefs.h. */ 15841#if defined __sparcv9 || defined __arch64__ 15842 int ok; 15843 #else 15844 error fail 15845 #endif 15846 15847_ACEOF 15848if ac_fn_c_try_compile "$LINENO"; then : 15849 gl_cv_host_cpu_c_abi_32bit=no 15850else 15851 gl_cv_host_cpu_c_abi_32bit=yes 15852fi 15853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15854 ;; 15855 15856 *) 15857 gl_cv_host_cpu_c_abi_32bit=unknown 15858 ;; 15859 esac 15860 fi 15861 15862fi 15863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 15864$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; } 15865 15866 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 15867 15868 15869 15870 15871 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 15873$as_echo_n "checking for ELF binary format... " >&6; } 15874if ${gl_cv_elf+:} false; then : 15875 $as_echo_n "(cached) " >&6 15876else 15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15878/* end confdefs.h. */ 15879#ifdef __ELF__ 15880 Extensible Linking Format 15881 #endif 15882 15883_ACEOF 15884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15885 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 15886 gl_cv_elf=yes 15887else 15888 gl_cv_elf=no 15889fi 15890rm -f conftest* 15891 15892 15893fi 15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 15895$as_echo "$gl_cv_elf" >&6; } 15896 if test $gl_cv_elf; then 15897 # Extract the ELF class of a file (5th byte) in decimal. 15898 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 15899 if od -A x < /dev/null >/dev/null 2>/dev/null; then 15900 # Use POSIX od. 15901 func_elfclass () 15902 { 15903 od -A n -t d1 -j 4 -N 1 15904 } 15905 else 15906 # Use BSD hexdump. 15907 func_elfclass () 15908 { 15909 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 15910 echo 15911 } 15912 fi 15913 case $HOST_CPU_C_ABI_32BIT in 15914 yes) 15915 # 32-bit ABI. 15916 acl_is_expected_elfclass () 15917 { 15918 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 15919 } 15920 ;; 15921 no) 15922 # 64-bit ABI. 15923 acl_is_expected_elfclass () 15924 { 15925 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 15926 } 15927 ;; 15928 *) 15929 # Unknown. 15930 acl_is_expected_elfclass () 15931 { 15932 : 15933 } 15934 ;; 15935 esac 15936 else 15937 acl_is_expected_elfclass () 15938 { 15939 : 15940 } 15941 fi 15942 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 15944$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; } 15945if ${acl_cv_libdirstems+:} false; then : 15946 $as_echo_n "(cached) " >&6 15947else 15948 acl_libdirstem=lib 15949 acl_libdirstem2= 15950 acl_libdirstem3= 15951 case "$host_os" in 15952 solaris*) 15953 if test $HOST_CPU_C_ABI_32BIT = no; then 15954 acl_libdirstem2=lib/64 15955 case "$host_cpu" in 15956 sparc*) acl_libdirstem3=lib/sparcv9 ;; 15957 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 15958 esac 15959 fi 15960 ;; 15961 *) 15962 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 15963 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 15964 if test $HOST_CPU_C_ABI_32BIT != no; then 15965 # 32-bit or unknown ABI. 15966 if test -d /usr/lib32; then 15967 acl_libdirstem2=lib32 15968 fi 15969 fi 15970 if test $HOST_CPU_C_ABI_32BIT != yes; then 15971 # 64-bit or unknown ABI. 15972 if test -d /usr/lib64; then 15973 acl_libdirstem3=lib64 15974 fi 15975 fi 15976 if test -n "$searchpath"; then 15977 acl_save_IFS="${IFS= }"; IFS=":" 15978 for searchdir in $searchpath; do 15979 if test -d "$searchdir"; then 15980 case "$searchdir" in 15981 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 15982 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 15983 */../ | */.. ) 15984 # Better ignore directories of this form. They are misleading. 15985 ;; 15986 *) searchdir=`cd "$searchdir" && pwd` 15987 case "$searchdir" in 15988 */lib32 ) acl_libdirstem2=lib32 ;; 15989 */lib64 ) acl_libdirstem3=lib64 ;; 15990 esac ;; 15991 esac 15992 fi 15993 done 15994 IFS="$acl_save_IFS" 15995 if test $HOST_CPU_C_ABI_32BIT = yes; then 15996 # 32-bit ABI. 15997 acl_libdirstem3= 15998 fi 15999 if test $HOST_CPU_C_ABI_32BIT = no; then 16000 # 64-bit ABI. 16001 acl_libdirstem2= 16002 fi 16003 fi 16004 ;; 16005 esac 16006 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 16007 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 16008 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 16009 16010fi 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 16012$as_echo "$acl_cv_libdirstems" >&6; } 16013 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 16014 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 16015 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 use_additional=yes 16028 16029 acl_save_prefix="$prefix" 16030 prefix="$acl_final_prefix" 16031 acl_save_exec_prefix="$exec_prefix" 16032 exec_prefix="$acl_final_exec_prefix" 16033 16034 eval additional_includedir=\"$includedir\" 16035 eval additional_libdir=\"$libdir\" 16036 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 16037 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 16038 16039 exec_prefix="$acl_save_exec_prefix" 16040 prefix="$acl_save_prefix" 16041 16042 16043# Check whether --with-libiconv-prefix was given. 16044if test "${with_libiconv_prefix+set}" = set; then : 16045 withval=$with_libiconv_prefix; 16046 if test "X$withval" = "Xno"; then 16047 use_additional=no 16048 else 16049 if test "X$withval" = "X"; then 16050 16051 acl_save_prefix="$prefix" 16052 prefix="$acl_final_prefix" 16053 acl_save_exec_prefix="$exec_prefix" 16054 exec_prefix="$acl_final_exec_prefix" 16055 16056 eval additional_includedir=\"$includedir\" 16057 eval additional_libdir=\"$libdir\" 16058 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 16059 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 16060 16061 exec_prefix="$acl_save_exec_prefix" 16062 prefix="$acl_save_prefix" 16063 16064 else 16065 additional_includedir="$withval/include" 16066 additional_libdir="$withval/$acl_libdirstem" 16067 additional_libdir2="$withval/$acl_libdirstem2" 16068 additional_libdir3="$withval/$acl_libdirstem3" 16069 fi 16070 fi 16071 16072fi 16073 16074 if test "X$additional_libdir2" = "X$additional_libdir"; then 16075 additional_libdir2= 16076 fi 16077 if test "X$additional_libdir3" = "X$additional_libdir"; then 16078 additional_libdir3= 16079 fi 16080 LIBICONV= 16081 LTLIBICONV= 16082 INCICONV= 16083 LIBICONV_PREFIX= 16084 HAVE_LIBICONV= 16085 rpathdirs= 16086 ltrpathdirs= 16087 names_already_handled= 16088 names_next_round='iconv ' 16089 while test -n "$names_next_round"; do 16090 names_this_round="$names_next_round" 16091 names_next_round= 16092 for name in $names_this_round; do 16093 already_handled= 16094 for n in $names_already_handled; do 16095 if test "$n" = "$name"; then 16096 already_handled=yes 16097 break 16098 fi 16099 done 16100 if test -z "$already_handled"; then 16101 names_already_handled="$names_already_handled $name" 16102 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 16103 eval value=\"\$HAVE_LIB$uppername\" 16104 if test -n "$value"; then 16105 if test "$value" = yes; then 16106 eval value=\"\$LIB$uppername\" 16107 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 16108 eval value=\"\$LTLIB$uppername\" 16109 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 16110 else 16111 : 16112 fi 16113 else 16114 found_dir= 16115 found_la= 16116 found_so= 16117 found_a= 16118 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 16119 if test -n "$acl_shlibext"; then 16120 shrext=".$acl_shlibext" # typically: shrext=.so 16121 else 16122 shrext= 16123 fi 16124 if test $use_additional = yes; then 16125 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 16126 if test "X$found_dir" = "X"; then 16127 eval dir=\$$additional_libdir_variable 16128 if test -n "$dir"; then 16129 if test -n "$acl_shlibext"; then 16130 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 16131 found_dir="$dir" 16132 found_so="$dir/$libname$shrext" 16133 else 16134 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16135 ver=`(cd "$dir" && \ 16136 for f in "$libname$shrext".*; do echo "$f"; done \ 16137 | sed -e "s,^$libname$shrext\\\\.,," \ 16138 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16139 | sed 1q ) 2>/dev/null` 16140 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 16141 found_dir="$dir" 16142 found_so="$dir/$libname$shrext.$ver" 16143 fi 16144 else 16145 eval library_names=\"$acl_library_names_spec\" 16146 for f in $library_names; do 16147 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 16148 found_dir="$dir" 16149 found_so="$dir/$f" 16150 break 16151 fi 16152 done 16153 fi 16154 fi 16155 fi 16156 if test "X$found_dir" = "X"; then 16157 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 16158 found_dir="$dir" 16159 found_a="$dir/$libname.$acl_libext" 16160 fi 16161 fi 16162 if test "X$found_dir" != "X"; then 16163 if test -f "$dir/$libname.la"; then 16164 found_la="$dir/$libname.la" 16165 fi 16166 fi 16167 fi 16168 fi 16169 done 16170 fi 16171 if test "X$found_dir" = "X"; then 16172 for x in $LDFLAGS $LTLIBICONV; do 16173 16174 acl_save_prefix="$prefix" 16175 prefix="$acl_final_prefix" 16176 acl_save_exec_prefix="$exec_prefix" 16177 exec_prefix="$acl_final_exec_prefix" 16178 eval x=\"$x\" 16179 exec_prefix="$acl_save_exec_prefix" 16180 prefix="$acl_save_prefix" 16181 16182 case "$x" in 16183 -L*) 16184 dir=`echo "X$x" | sed -e 's/^X-L//'` 16185 if test -n "$acl_shlibext"; then 16186 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 16187 found_dir="$dir" 16188 found_so="$dir/$libname$shrext" 16189 else 16190 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16191 ver=`(cd "$dir" && \ 16192 for f in "$libname$shrext".*; do echo "$f"; done \ 16193 | sed -e "s,^$libname$shrext\\\\.,," \ 16194 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16195 | sed 1q ) 2>/dev/null` 16196 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 16197 found_dir="$dir" 16198 found_so="$dir/$libname$shrext.$ver" 16199 fi 16200 else 16201 eval library_names=\"$acl_library_names_spec\" 16202 for f in $library_names; do 16203 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 16204 found_dir="$dir" 16205 found_so="$dir/$f" 16206 break 16207 fi 16208 done 16209 fi 16210 fi 16211 fi 16212 if test "X$found_dir" = "X"; then 16213 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 16214 found_dir="$dir" 16215 found_a="$dir/$libname.$acl_libext" 16216 fi 16217 fi 16218 if test "X$found_dir" != "X"; then 16219 if test -f "$dir/$libname.la"; then 16220 found_la="$dir/$libname.la" 16221 fi 16222 fi 16223 ;; 16224 esac 16225 if test "X$found_dir" != "X"; then 16226 break 16227 fi 16228 done 16229 fi 16230 if test "X$found_dir" != "X"; then 16231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 16232 if test "X$found_so" != "X"; then 16233 if test "$enable_rpath" = no \ 16234 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 16235 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 16236 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 16237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16238 else 16239 haveit= 16240 for x in $ltrpathdirs; do 16241 if test "X$x" = "X$found_dir"; then 16242 haveit=yes 16243 break 16244 fi 16245 done 16246 if test -z "$haveit"; then 16247 ltrpathdirs="$ltrpathdirs $found_dir" 16248 fi 16249 if test "$acl_hardcode_direct" = yes; then 16250 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16251 else 16252 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 16253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16254 haveit= 16255 for x in $rpathdirs; do 16256 if test "X$x" = "X$found_dir"; then 16257 haveit=yes 16258 break 16259 fi 16260 done 16261 if test -z "$haveit"; then 16262 rpathdirs="$rpathdirs $found_dir" 16263 fi 16264 else 16265 haveit= 16266 for x in $LDFLAGS $LIBICONV; do 16267 16268 acl_save_prefix="$prefix" 16269 prefix="$acl_final_prefix" 16270 acl_save_exec_prefix="$exec_prefix" 16271 exec_prefix="$acl_final_exec_prefix" 16272 eval x=\"$x\" 16273 exec_prefix="$acl_save_exec_prefix" 16274 prefix="$acl_save_prefix" 16275 16276 if test "X$x" = "X-L$found_dir"; then 16277 haveit=yes 16278 break 16279 fi 16280 done 16281 if test -z "$haveit"; then 16282 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 16283 fi 16284 if test "$acl_hardcode_minus_L" != no; then 16285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16286 else 16287 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 16288 fi 16289 fi 16290 fi 16291 fi 16292 else 16293 if test "X$found_a" != "X"; then 16294 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 16295 else 16296 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 16297 fi 16298 fi 16299 additional_includedir= 16300 case "$found_dir" in 16301 */$acl_libdirstem | */$acl_libdirstem/) 16302 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 16303 if test "$name" = 'iconv'; then 16304 LIBICONV_PREFIX="$basedir" 16305 fi 16306 additional_includedir="$basedir/include" 16307 ;; 16308 */$acl_libdirstem2 | */$acl_libdirstem2/) 16309 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 16310 if test "$name" = 'iconv'; then 16311 LIBICONV_PREFIX="$basedir" 16312 fi 16313 additional_includedir="$basedir/include" 16314 ;; 16315 */$acl_libdirstem3 | */$acl_libdirstem3/) 16316 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 16317 if test "$name" = 'iconv'; then 16318 LIBICONV_PREFIX="$basedir" 16319 fi 16320 additional_includedir="$basedir/include" 16321 ;; 16322 esac 16323 if test "X$additional_includedir" != "X"; then 16324 if test "X$additional_includedir" != "X/usr/include"; then 16325 haveit= 16326 if test "X$additional_includedir" = "X/usr/local/include"; then 16327 if test -n "$GCC"; then 16328 case $host_os in 16329 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16330 esac 16331 fi 16332 fi 16333 if test -z "$haveit"; then 16334 for x in $CPPFLAGS $INCICONV; do 16335 16336 acl_save_prefix="$prefix" 16337 prefix="$acl_final_prefix" 16338 acl_save_exec_prefix="$exec_prefix" 16339 exec_prefix="$acl_final_exec_prefix" 16340 eval x=\"$x\" 16341 exec_prefix="$acl_save_exec_prefix" 16342 prefix="$acl_save_prefix" 16343 16344 if test "X$x" = "X-I$additional_includedir"; then 16345 haveit=yes 16346 break 16347 fi 16348 done 16349 if test -z "$haveit"; then 16350 if test -d "$additional_includedir"; then 16351 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 16352 fi 16353 fi 16354 fi 16355 fi 16356 fi 16357 if test -n "$found_la"; then 16358 save_libdir="$libdir" 16359 case "$found_la" in 16360 */* | *\\*) . "$found_la" ;; 16361 *) . "./$found_la" ;; 16362 esac 16363 libdir="$save_libdir" 16364 for dep in $dependency_libs; do 16365 case "$dep" in 16366 -L*) 16367 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 16368 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 16369 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 16370 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 16371 haveit= 16372 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 16373 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 16374 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 16375 if test -n "$GCC"; then 16376 case $host_os in 16377 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16378 esac 16379 fi 16380 fi 16381 if test -z "$haveit"; then 16382 haveit= 16383 for x in $LDFLAGS $LIBICONV; do 16384 16385 acl_save_prefix="$prefix" 16386 prefix="$acl_final_prefix" 16387 acl_save_exec_prefix="$exec_prefix" 16388 exec_prefix="$acl_final_exec_prefix" 16389 eval x=\"$x\" 16390 exec_prefix="$acl_save_exec_prefix" 16391 prefix="$acl_save_prefix" 16392 16393 if test "X$x" = "X-L$dependency_libdir"; then 16394 haveit=yes 16395 break 16396 fi 16397 done 16398 if test -z "$haveit"; then 16399 if test -d "$dependency_libdir"; then 16400 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 16401 fi 16402 fi 16403 haveit= 16404 for x in $LDFLAGS $LTLIBICONV; do 16405 16406 acl_save_prefix="$prefix" 16407 prefix="$acl_final_prefix" 16408 acl_save_exec_prefix="$exec_prefix" 16409 exec_prefix="$acl_final_exec_prefix" 16410 eval x=\"$x\" 16411 exec_prefix="$acl_save_exec_prefix" 16412 prefix="$acl_save_prefix" 16413 16414 if test "X$x" = "X-L$dependency_libdir"; then 16415 haveit=yes 16416 break 16417 fi 16418 done 16419 if test -z "$haveit"; then 16420 if test -d "$dependency_libdir"; then 16421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 16422 fi 16423 fi 16424 fi 16425 fi 16426 ;; 16427 -R*) 16428 dir=`echo "X$dep" | sed -e 's/^X-R//'` 16429 if test "$enable_rpath" != no; then 16430 haveit= 16431 for x in $rpathdirs; do 16432 if test "X$x" = "X$dir"; then 16433 haveit=yes 16434 break 16435 fi 16436 done 16437 if test -z "$haveit"; then 16438 rpathdirs="$rpathdirs $dir" 16439 fi 16440 haveit= 16441 for x in $ltrpathdirs; do 16442 if test "X$x" = "X$dir"; then 16443 haveit=yes 16444 break 16445 fi 16446 done 16447 if test -z "$haveit"; then 16448 ltrpathdirs="$ltrpathdirs $dir" 16449 fi 16450 fi 16451 ;; 16452 -l*) 16453 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 16454 ;; 16455 *.la) 16456 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 16457 ;; 16458 *) 16459 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 16460 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 16461 ;; 16462 esac 16463 done 16464 fi 16465 else 16466 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 16467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 16468 fi 16469 fi 16470 fi 16471 done 16472 done 16473 if test "X$rpathdirs" != "X"; then 16474 if test -n "$acl_hardcode_libdir_separator"; then 16475 alldirs= 16476 for found_dir in $rpathdirs; do 16477 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 16478 done 16479 acl_save_libdir="$libdir" 16480 libdir="$alldirs" 16481 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16482 libdir="$acl_save_libdir" 16483 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16484 else 16485 for found_dir in $rpathdirs; do 16486 acl_save_libdir="$libdir" 16487 libdir="$found_dir" 16488 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16489 libdir="$acl_save_libdir" 16490 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16491 done 16492 fi 16493 fi 16494 if test "X$ltrpathdirs" != "X"; then 16495 for found_dir in $ltrpathdirs; do 16496 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 16497 done 16498 fi 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 am_save_CPPFLAGS="$CPPFLAGS" 16511 16512 for element in $INCICONV; do 16513 haveit= 16514 for x in $CPPFLAGS; do 16515 16516 acl_save_prefix="$prefix" 16517 prefix="$acl_final_prefix" 16518 acl_save_exec_prefix="$exec_prefix" 16519 exec_prefix="$acl_final_exec_prefix" 16520 eval x=\"$x\" 16521 exec_prefix="$acl_save_exec_prefix" 16522 prefix="$acl_save_prefix" 16523 16524 if test "X$x" = "X$element"; then 16525 haveit=yes 16526 break 16527 fi 16528 done 16529 if test -z "$haveit"; then 16530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 16531 fi 16532 done 16533 16534 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 16536$as_echo_n "checking for iconv... " >&6; } 16537if ${am_cv_func_iconv+:} false; then : 16538 $as_echo_n "(cached) " >&6 16539else 16540 16541 am_cv_func_iconv="no, consider installing GNU libiconv" 16542 am_cv_lib_iconv=no 16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545 16546#include <stdlib.h> 16547#include <iconv.h> 16548 16549int 16550main () 16551{ 16552iconv_t cd = iconv_open("",""); 16553 iconv(cd,NULL,NULL,NULL,NULL); 16554 iconv_close(cd); 16555 ; 16556 return 0; 16557} 16558_ACEOF 16559if ac_fn_c_try_link "$LINENO"; then : 16560 am_cv_func_iconv=yes 16561fi 16562rm -f core conftest.err conftest.$ac_objext \ 16563 conftest$ac_exeext conftest.$ac_ext 16564 if test "$am_cv_func_iconv" != yes; then 16565 am_save_LIBS="$LIBS" 16566 LIBS="$LIBS $LIBICONV" 16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16568/* end confdefs.h. */ 16569 16570#include <stdlib.h> 16571#include <iconv.h> 16572 16573int 16574main () 16575{ 16576iconv_t cd = iconv_open("",""); 16577 iconv(cd,NULL,NULL,NULL,NULL); 16578 iconv_close(cd); 16579 ; 16580 return 0; 16581} 16582_ACEOF 16583if ac_fn_c_try_link "$LINENO"; then : 16584 am_cv_lib_iconv=yes 16585 am_cv_func_iconv=yes 16586fi 16587rm -f core conftest.err conftest.$ac_objext \ 16588 conftest$ac_exeext conftest.$ac_ext 16589 LIBS="$am_save_LIBS" 16590 fi 16591 16592fi 16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 16594$as_echo "$am_cv_func_iconv" >&6; } 16595 if test "$am_cv_func_iconv" = yes; then 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 16597$as_echo_n "checking for working iconv... " >&6; } 16598if ${am_cv_func_iconv_works+:} false; then : 16599 $as_echo_n "(cached) " >&6 16600else 16601 16602 am_save_LIBS="$LIBS" 16603 if test $am_cv_lib_iconv = yes; then 16604 LIBS="$LIBS $LIBICONV" 16605 fi 16606 am_cv_func_iconv_works=no 16607 for ac_iconv_const in '' 'const'; do 16608 if test "$cross_compiling" = yes; then : 16609 case "$host_os" in 16610 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 16611 *) am_cv_func_iconv_works="guessing yes" ;; 16612 esac 16613else 16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16615/* end confdefs.h. */ 16616 16617#include <iconv.h> 16618#include <string.h> 16619 16620#ifndef ICONV_CONST 16621# define ICONV_CONST $ac_iconv_const 16622#endif 16623 16624int 16625main () 16626{ 16627int result = 0; 16628 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 16629 returns. */ 16630 { 16631 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 16632 if (cd_utf8_to_88591 != (iconv_t)(-1)) 16633 { 16634 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 16635 char buf[10]; 16636 ICONV_CONST char *inptr = input; 16637 size_t inbytesleft = strlen (input); 16638 char *outptr = buf; 16639 size_t outbytesleft = sizeof (buf); 16640 size_t res = iconv (cd_utf8_to_88591, 16641 &inptr, &inbytesleft, 16642 &outptr, &outbytesleft); 16643 if (res == 0) 16644 result |= 1; 16645 iconv_close (cd_utf8_to_88591); 16646 } 16647 } 16648 /* Test against Solaris 10 bug: Failures are not distinguishable from 16649 successful returns. */ 16650 { 16651 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 16652 if (cd_ascii_to_88591 != (iconv_t)(-1)) 16653 { 16654 static ICONV_CONST char input[] = "\263"; 16655 char buf[10]; 16656 ICONV_CONST char *inptr = input; 16657 size_t inbytesleft = strlen (input); 16658 char *outptr = buf; 16659 size_t outbytesleft = sizeof (buf); 16660 size_t res = iconv (cd_ascii_to_88591, 16661 &inptr, &inbytesleft, 16662 &outptr, &outbytesleft); 16663 if (res == 0) 16664 result |= 2; 16665 iconv_close (cd_ascii_to_88591); 16666 } 16667 } 16668 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 16669 { 16670 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 16671 if (cd_88591_to_utf8 != (iconv_t)(-1)) 16672 { 16673 static ICONV_CONST char input[] = "\304"; 16674 static char buf[2] = { (char)0xDE, (char)0xAD }; 16675 ICONV_CONST char *inptr = input; 16676 size_t inbytesleft = 1; 16677 char *outptr = buf; 16678 size_t outbytesleft = 1; 16679 size_t res = iconv (cd_88591_to_utf8, 16680 &inptr, &inbytesleft, 16681 &outptr, &outbytesleft); 16682 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 16683 result |= 4; 16684 iconv_close (cd_88591_to_utf8); 16685 } 16686 } 16687#if 0 /* This bug could be worked around by the caller. */ 16688 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 16689 { 16690 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 16691 if (cd_88591_to_utf8 != (iconv_t)(-1)) 16692 { 16693 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 16694 char buf[50]; 16695 ICONV_CONST char *inptr = input; 16696 size_t inbytesleft = strlen (input); 16697 char *outptr = buf; 16698 size_t outbytesleft = sizeof (buf); 16699 size_t res = iconv (cd_88591_to_utf8, 16700 &inptr, &inbytesleft, 16701 &outptr, &outbytesleft); 16702 if ((int)res > 0) 16703 result |= 8; 16704 iconv_close (cd_88591_to_utf8); 16705 } 16706 } 16707#endif 16708 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 16709 provided. */ 16710 { 16711 /* Try standardized names. */ 16712 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 16713 /* Try IRIX, OSF/1 names. */ 16714 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 16715 /* Try AIX names. */ 16716 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 16717 /* Try HP-UX names. */ 16718 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 16719 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 16720 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 16721 result |= 16; 16722 if (cd1 != (iconv_t)(-1)) 16723 iconv_close (cd1); 16724 if (cd2 != (iconv_t)(-1)) 16725 iconv_close (cd2); 16726 if (cd3 != (iconv_t)(-1)) 16727 iconv_close (cd3); 16728 if (cd4 != (iconv_t)(-1)) 16729 iconv_close (cd4); 16730 } 16731 return result; 16732 16733 ; 16734 return 0; 16735} 16736_ACEOF 16737if ac_fn_c_try_run "$LINENO"; then : 16738 am_cv_func_iconv_works=yes 16739fi 16740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16741 conftest.$ac_objext conftest.beam conftest.$ac_ext 16742fi 16743 16744 test "$am_cv_func_iconv_works" = no || break 16745 done 16746 LIBS="$am_save_LIBS" 16747 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 16750$as_echo "$am_cv_func_iconv_works" >&6; } 16751 case "$am_cv_func_iconv_works" in 16752 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 16753 *) am_func_iconv=yes ;; 16754 esac 16755 else 16756 am_func_iconv=no am_cv_lib_iconv=no 16757 fi 16758 if test "$am_func_iconv" = yes; then 16759 16760$as_echo "#define HAVE_ICONV 1" >>confdefs.h 16761 16762 fi 16763 if test "$am_cv_lib_iconv" = yes; then 16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 16765$as_echo_n "checking how to link with libiconv... " >&6; } 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 16767$as_echo "$LIBICONV" >&6; } 16768 else 16769 CPPFLAGS="$am_save_CPPFLAGS" 16770 LIBICONV= 16771 LTLIBICONV= 16772 fi 16773 16774 16775 16776 if test "$am_cv_func_iconv" = yes; then 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 16778$as_echo_n "checking for iconv declaration... " >&6; } 16779 if ${am_cv_proto_iconv+:} false; then : 16780 $as_echo_n "(cached) " >&6 16781else 16782 16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16784/* end confdefs.h. */ 16785 16786#include <stdlib.h> 16787#include <iconv.h> 16788extern 16789#ifdef __cplusplus 16790"C" 16791#endif 16792#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 16793size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 16794#else 16795size_t iconv(); 16796#endif 16797 16798int 16799main () 16800{ 16801 16802 ; 16803 return 0; 16804} 16805_ACEOF 16806if ac_fn_c_try_compile "$LINENO"; then : 16807 am_cv_proto_iconv_arg1="" 16808else 16809 am_cv_proto_iconv_arg1="const" 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16812 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 16813fi 16814 16815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 16817 $am_cv_proto_iconv" >&5 16818$as_echo " 16819 $am_cv_proto_iconv" >&6; } 16820 else 16821 am_cv_proto_iconv_arg1="" 16822 fi 16823 16824cat >>confdefs.h <<_ACEOF 16825#define ICONV_CONST $am_cv_proto_iconv_arg1 16826_ACEOF 16827 16828 16829 16830 16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 16832$as_echo_n "checking for cos in -lm... " >&6; } 16833if ${ac_cv_lib_m_cos+:} false; then : 16834 $as_echo_n "(cached) " >&6 16835else 16836 ac_check_lib_save_LIBS=$LIBS 16837LIBS="-lm $LIBS" 16838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16839/* end confdefs.h. */ 16840 16841/* Override any GCC internal prototype to avoid an error. 16842 Use char because int might match the return type of a GCC 16843 builtin and then its argument prototype would still apply. */ 16844#ifdef __cplusplus 16845extern "C" 16846#endif 16847char cos (); 16848int 16849main () 16850{ 16851return cos (); 16852 ; 16853 return 0; 16854} 16855_ACEOF 16856if ac_fn_c_try_link "$LINENO"; then : 16857 ac_cv_lib_m_cos=yes 16858else 16859 ac_cv_lib_m_cos=no 16860fi 16861rm -f core conftest.err conftest.$ac_objext \ 16862 conftest$ac_exeext conftest.$ac_ext 16863LIBS=$ac_check_lib_save_LIBS 16864fi 16865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 16866$as_echo "$ac_cv_lib_m_cos" >&6; } 16867if test "x$ac_cv_lib_m_cos" = xyes; then : 16868 USE_LIBM="-lm" 16869fi 16870 16871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lffm" >&5 16872$as_echo_n "checking for cos in -lffm... " >&6; } 16873if ${ac_cv_lib_ffm_cos+:} false; then : 16874 $as_echo_n "(cached) " >&6 16875else 16876 ac_check_lib_save_LIBS=$LIBS 16877LIBS="-lffm $LIBS" 16878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16879/* end confdefs.h. */ 16880 16881/* Override any GCC internal prototype to avoid an error. 16882 Use char because int might match the return type of a GCC 16883 builtin and then its argument prototype would still apply. */ 16884#ifdef __cplusplus 16885extern "C" 16886#endif 16887char cos (); 16888int 16889main () 16890{ 16891return cos (); 16892 ; 16893 return 0; 16894} 16895_ACEOF 16896if ac_fn_c_try_link "$LINENO"; then : 16897 ac_cv_lib_ffm_cos=yes 16898else 16899 ac_cv_lib_ffm_cos=no 16900fi 16901rm -f core conftest.err conftest.$ac_objext \ 16902 conftest$ac_exeext conftest.$ac_ext 16903LIBS=$ac_check_lib_save_LIBS 16904fi 16905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffm_cos" >&5 16906$as_echo "$ac_cv_lib_ffm_cos" >&6; } 16907if test "x$ac_cv_lib_ffm_cos" = xyes; then : 16908 USE_LIBM="-lffm -lm" 16909fi 16910 16911# Check whether --enable-cpml was given. 16912if test "${enable_cpml+set}" = set; then : 16913 enableval=$enable_cpml; CONFIG_CPML="no" 16914else 16915 CONFIG_CPML="yes" 16916fi 16917 16918if test "${CONFIG_CPML}" = yes; then 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lcpml" >&5 16920$as_echo_n "checking for cos in -lcpml... " >&6; } 16921if ${ac_cv_lib_cpml_cos+:} false; then : 16922 $as_echo_n "(cached) " >&6 16923else 16924 ac_check_lib_save_LIBS=$LIBS 16925LIBS="-lcpml $LIBS" 16926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927/* end confdefs.h. */ 16928 16929/* Override any GCC internal prototype to avoid an error. 16930 Use char because int might match the return type of a GCC 16931 builtin and then its argument prototype would still apply. */ 16932#ifdef __cplusplus 16933extern "C" 16934#endif 16935char cos (); 16936int 16937main () 16938{ 16939return cos (); 16940 ; 16941 return 0; 16942} 16943_ACEOF 16944if ac_fn_c_try_link "$LINENO"; then : 16945 ac_cv_lib_cpml_cos=yes 16946else 16947 ac_cv_lib_cpml_cos=no 16948fi 16949rm -f core conftest.err conftest.$ac_objext \ 16950 conftest$ac_exeext conftest.$ac_ext 16951LIBS=$ac_check_lib_save_LIBS 16952fi 16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpml_cos" >&5 16954$as_echo "$ac_cv_lib_cpml_cos" >&6; } 16955if test "x$ac_cv_lib_cpml_cos" = xyes; then : 16956 USE_LIBM="-lcpml" 16957fi 16958 16959fi 16960CONFIG_MATH_LIB="${USE_LIBM}" 16961 16962 16963 16964# Check whether --with-gtk-prefix was given. 16965if test "${with_gtk_prefix+set}" = set; then : 16966 withval=$with_gtk_prefix; gtk_config_prefix="$withval" 16967else 16968 gtk_config_prefix="" 16969fi 16970 16971 16972# Check whether --with-gtk-exec-prefix was given. 16973if test "${with_gtk_exec_prefix+set}" = set; then : 16974 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" 16975else 16976 gtk_config_exec_prefix="" 16977fi 16978 16979# Check whether --enable-gtktest was given. 16980if test "${enable_gtktest+set}" = set; then : 16981 enableval=$enable_gtktest; 16982else 16983 enable_gtktest=yes 16984fi 16985 16986 16987 for module in . 16988 do 16989 case "$module" in 16990 gthread) 16991 gtk_config_args="$gtk_config_args gthread" 16992 ;; 16993 esac 16994 done 16995 16996 if test x$gtk_config_exec_prefix != x ; then 16997 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 16998 if test x${GTK_CONFIG+set} != xset ; then 16999 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 17000 fi 17001 fi 17002 if test x$gtk_config_prefix != x ; then 17003 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 17004 if test x${GTK_CONFIG+set} != xset ; then 17005 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 17006 fi 17007 fi 17008 17009 # Extract the first word of "gtk-config", so it can be a program name with args. 17010set dummy gtk-config; ac_word=$2 17011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17012$as_echo_n "checking for $ac_word... " >&6; } 17013if ${ac_cv_path_GTK_CONFIG+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 case $GTK_CONFIG in 17017 [\\/]* | ?:[\\/]*) 17018 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 17019 ;; 17020 *) 17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17022for as_dir in $PATH 17023do 17024 IFS=$as_save_IFS 17025 test -z "$as_dir" && as_dir=. 17026 for ac_exec_ext in '' $ac_executable_extensions; do 17027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17028 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17030 break 2 17031 fi 17032done 17033 done 17034IFS=$as_save_IFS 17035 17036 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 17037 ;; 17038esac 17039fi 17040GTK_CONFIG=$ac_cv_path_GTK_CONFIG 17041if test -n "$GTK_CONFIG"; then 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 17043$as_echo "$GTK_CONFIG" >&6; } 17044else 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17046$as_echo "no" >&6; } 17047fi 17048 17049 17050 min_gtk_version=1.2.0 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 17052$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 17053 no_gtk="" 17054 if test "$GTK_CONFIG" = "no" ; then 17055 no_gtk=yes 17056 else 17057 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 17058 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 17059 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 17060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17061 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 17062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17063 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 17064 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17065 if test "x$enable_gtktest" = "xyes" ; then 17066 ac_save_CFLAGS="$CFLAGS" 17067 ac_save_LIBS="$LIBS" 17068 CFLAGS="$CFLAGS $GTK_CFLAGS" 17069 LIBS="$GTK_LIBS $LIBS" 17070 rm -f conf.gtktest 17071 if test "$cross_compiling" = yes; then : 17072 echo $ac_n "cross compiling; assumed OK... $ac_c" 17073else 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075/* end confdefs.h. */ 17076 17077#include <gtk/gtk.h> 17078#include <stdio.h> 17079#include <stdlib.h> 17080 17081int 17082main () 17083{ 17084 int major, minor, micro; 17085 char *tmp_version; 17086 17087 system ("touch conf.gtktest"); 17088 17089 /* HP/UX 9 (%@#!) writes to sscanf strings */ 17090 tmp_version = g_strdup("$min_gtk_version"); 17091 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 17092 printf("%s, bad version string\n", "$min_gtk_version"); 17093 exit(1); 17094 } 17095 17096 if ((gtk_major_version != $gtk_config_major_version) || 17097 (gtk_minor_version != $gtk_config_minor_version) || 17098 (gtk_micro_version != $gtk_config_micro_version)) 17099 { 17100 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 17101 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 17102 gtk_major_version, gtk_minor_version, gtk_micro_version); 17103 printf ("*** was found! If gtk-config was correct, then it is best\n"); 17104 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 17105 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 17106 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 17107 printf("*** required on your system.\n"); 17108 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 17109 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 17110 printf("*** before re-running configure\n"); 17111 } 17112#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 17113 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 17114 (gtk_minor_version != GTK_MINOR_VERSION) || 17115 (gtk_micro_version != GTK_MICRO_VERSION)) 17116 { 17117 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 17118 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 17119 printf("*** library (version %d.%d.%d)\n", 17120 gtk_major_version, gtk_minor_version, gtk_micro_version); 17121 } 17122#endif /* defined (GTK_MAJOR_VERSION) ... */ 17123 else 17124 { 17125 if ((gtk_major_version > major) || 17126 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 17127 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 17128 { 17129 return 0; 17130 } 17131 else 17132 { 17133 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 17134 gtk_major_version, gtk_minor_version, gtk_micro_version); 17135 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 17136 major, minor, micro); 17137 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 17138 printf("***\n"); 17139 printf("*** If you have already installed a sufficiently new version, this error\n"); 17140 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 17141 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 17142 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 17143 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 17144 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 17145 printf("*** so that the correct libraries are found at run-time))\n"); 17146 } 17147 } 17148 return 1; 17149} 17150 17151_ACEOF 17152if ac_fn_c_try_run "$LINENO"; then : 17153 17154else 17155 no_gtk=yes 17156fi 17157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17158 conftest.$ac_objext conftest.beam conftest.$ac_ext 17159fi 17160 17161 CFLAGS="$ac_save_CFLAGS" 17162 LIBS="$ac_save_LIBS" 17163 fi 17164 fi 17165 if test "x$no_gtk" = x ; then 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17167$as_echo "yes" >&6; } 17168 HAVE_GTK="yes" 17169 else 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17171$as_echo "no" >&6; } 17172 if test "$GTK_CONFIG" = "no" ; then 17173 echo "*** The gtk-config script installed by GTK could not be found" 17174 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 17175 echo "*** your path, or set the GTK_CONFIG environment variable to the" 17176 echo "*** full path to gtk-config." 17177 else 17178 if test -f conf.gtktest ; then 17179 : 17180 else 17181 echo "*** Could not run GTK test program, checking why..." 17182 CFLAGS="$CFLAGS $GTK_CFLAGS" 17183 LIBS="$LIBS $GTK_LIBS" 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186 17187#include <gtk/gtk.h> 17188#include <stdio.h> 17189 17190int 17191main () 17192{ 17193 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 17194 ; 17195 return 0; 17196} 17197_ACEOF 17198if ac_fn_c_try_link "$LINENO"; then : 17199 echo "*** The test program compiled, but did not run. This usually means" 17200 echo "*** that the run-time linker is not finding GTK or finding the wrong" 17201 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 17202 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 17203 echo "*** to the installed location Also, make sure you have run ldconfig if that" 17204 echo "*** is required on your system" 17205 echo "***" 17206 echo "*** If you have an old version installed, it is best to remove it, although" 17207 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 17208 echo "***" 17209 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 17210 echo "*** came with the system with the command" 17211 echo "***" 17212 echo "*** rpm --erase --nodeps gtk gtk-devel" 17213else 17214 echo "*** The test program failed to compile or link. See the file config.log for the" 17215 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 17216 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 17217 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 17218fi 17219rm -f core conftest.err conftest.$ac_objext \ 17220 conftest$ac_exeext conftest.$ac_ext 17221 CFLAGS="$ac_save_CFLAGS" 17222 LIBS="$ac_save_LIBS" 17223 fi 17224 fi 17225 GTK_CFLAGS="" 17226 GTK_LIBS="" 17227 HAVE_GTK="no" 17228 fi 17229 17230 17231 rm -f conf.gtktest 17232 17233 17234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of ElectricFence malloc debugging" >&5 17235$as_echo_n "checking use of ElectricFence malloc debugging... " >&6; } 17236# Check whether --enable-efence was given. 17237if test "${enable_efence+set}" = set; then : 17238 enableval=$enable_efence; CONFIG_EFENCE="${enableval}" 17239else 17240 CONFIG_EFENCE="no" 17241fi 17242 17243 17244case "${CONFIG_EFENCE}" in 17245yes) 17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EF_Print in -lefence" >&5 17247$as_echo_n "checking for EF_Print in -lefence... " >&6; } 17248if ${ac_cv_lib_efence_EF_Print+:} false; then : 17249 $as_echo_n "(cached) " >&6 17250else 17251 ac_check_lib_save_LIBS=$LIBS 17252LIBS="-lefence $LIBS" 17253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17254/* end confdefs.h. */ 17255 17256/* Override any GCC internal prototype to avoid an error. 17257 Use char because int might match the return type of a GCC 17258 builtin and then its argument prototype would still apply. */ 17259#ifdef __cplusplus 17260extern "C" 17261#endif 17262char EF_Print (); 17263int 17264main () 17265{ 17266return EF_Print (); 17267 ; 17268 return 0; 17269} 17270_ACEOF 17271if ac_fn_c_try_link "$LINENO"; then : 17272 ac_cv_lib_efence_EF_Print=yes 17273else 17274 ac_cv_lib_efence_EF_Print=no 17275fi 17276rm -f core conftest.err conftest.$ac_objext \ 17277 conftest$ac_exeext conftest.$ac_ext 17278LIBS=$ac_check_lib_save_LIBS 17279fi 17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_EF_Print" >&5 17281$as_echo "$ac_cv_lib_efence_EF_Print" >&6; } 17282if test "x$ac_cv_lib_efence_EF_Print" = xyes; then : 17283 HAVE_EFENCE="-lefence" 17284fi 17285 17286 if test "x${HAVE_EFENCE}" != "x-lefence"; then 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17288$as_echo "yes" >&6; } 17289 else 17290 LDADD="${LDADD} ${HAVE_EFENCE}" 17291 17292$as_echo "#define HAVE_EFENCE 1" >>confdefs.h 17293 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5 17295$as_echo "${CONFIG_EFENCE}" >&6; } 17296 fi 17297 ;; 17298no) 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5 17300$as_echo "${CONFIG_EFENCE}" >&6; } 17301 ;; 17302*) 17303 as_fn_error $? "bad value �${CONFIG_EFENCE}� for efence option" "$LINENO" 5 17304 ;; 17305esac 17306 17307 17308WARNING= 17309 17310# Check whether --with-fileio was given. 17311if test "${with_fileio+set}" = set; then : 17312 withval=$with_fileio; CONFIG_FILEIO="${withval}" 17313else 17314 CONFIG_FILEIO="lame" 17315fi 17316 17317 17318if test "${CONFIG_FILEIO}" = "sndfile" ; then 17319 17320pkg_failed=no 17321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 17322$as_echo_n "checking for SNDFILE... " >&6; } 17323 17324if test -n "$SNDFILE_CFLAGS"; then 17325 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" 17326 elif test -n "$PKG_CONFIG"; then 17327 if test -n "$PKG_CONFIG" && \ 17328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5 17329 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5 17330 ac_status=$? 17331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17332 test $ac_status = 0; }; then 17333 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null` 17334 test "x$?" != "x0" && pkg_failed=yes 17335else 17336 pkg_failed=yes 17337fi 17338 else 17339 pkg_failed=untried 17340fi 17341if test -n "$SNDFILE_LIBS"; then 17342 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" 17343 elif test -n "$PKG_CONFIG"; then 17344 if test -n "$PKG_CONFIG" && \ 17345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5 17346 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5 17347 ac_status=$? 17348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17349 test $ac_status = 0; }; then 17350 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null` 17351 test "x$?" != "x0" && pkg_failed=yes 17352else 17353 pkg_failed=yes 17354fi 17355 else 17356 pkg_failed=untried 17357fi 17358 17359 17360 17361if test $pkg_failed = yes; then 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17363$as_echo "no" >&6; } 17364 17365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17366 _pkg_short_errors_supported=yes 17367else 17368 _pkg_short_errors_supported=no 17369fi 17370 if test $_pkg_short_errors_supported = yes; then 17371 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1` 17372 else 17373 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1` 17374 fi 17375 # Put the nasty error message in config.log where it belongs 17376 echo "$SNDFILE_PKG_ERRORS" >&5 17377 17378 HAVE_SNDFILE="no" 17379elif test $pkg_failed = untried; then 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17381$as_echo "no" >&6; } 17382 HAVE_SNDFILE="no" 17383else 17384 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS 17385 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17387$as_echo "yes" >&6; } 17388 HAVE_SNDFILE="yes" 17389fi 17390fi 17391 17392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of file io" >&5 17393$as_echo_n "checking use of file io... " >&6; } 17394 17395if test "${CONFIG_FILEIO}" = "sndfile" ; then 17396 if test "${HAVE_SNDFILE}" = "yes" -o "x${SNDFILE_LIBS}" != "x" \ 17397 -o "x${SNDFILE_CFLAGS}" != "x"; then 17398 SNDFILE_LIBS=`echo ${SNDFILE_LIBS}` 17399 SNDFILE_CFLAGS=`echo ${SNDFILE_CFLAGS}` 17400 17401 if test -n "${SNDFILE_LIBS}" ; then 17402 FRONTEND_LDFLAGS="${SNDFILE_LIBS} ${FRONTEND_LDFLAGS}" 17403 fi 17404 FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}" 17405 17406 if test -n "${SNDFILE_CFLAGS}" ; then 17407 INCLUDES="${SNDFILE_CFLAGS} ${INCLUDES}" 17408 fi 17409 17410 17411$as_echo "#define LIBSNDFILE 1" >>confdefs.h 17412 17413 else 17414 # default 17415 CONFIG_FILEIO="lame" 17416 WARNING="${WARNING} Could not find any sndfile lib on system." 17417 fi 17418else 17419 CONFIG_FILEIO="lame" 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_FILEIO}" >&5 17422$as_echo "${CONFIG_FILEIO}" >&6; } 17423if test "x${WARNING}" != "x" ; then 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $WARNING" >&5 17425$as_echo "$as_me: WARNING: $WARNING" >&2;} 17426fi 17427 17428 17429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of analyzer hooks" >&5 17430$as_echo_n "checking use of analyzer hooks... " >&6; } 17431# Check whether --enable-analyzer-hooks was given. 17432if test "${enable_analyzer_hooks+set}" = set; then : 17433 enableval=$enable_analyzer_hooks; CONFIG_ANALYZER="${enableval}" 17434else 17435 CONFIG_ANALYZER="yes" 17436fi 17437 17438 17439case "${CONFIG_ANALYZER}" in 17440yes) 17441 ;; 17442no) 17443 17444$as_echo "#define NOANALYSIS 1" >>confdefs.h 17445 17446 ;; 17447*) 17448 as_fn_error $? "bad value �${CONFIG_ANALYZER}� for analyzer-hooks option" "$LINENO" 5 17449 ;; 17450esac 17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_ANALYZER" >&5 17452$as_echo "$CONFIG_ANALYZER" >&6; } 17453 17454 17455 17456pkg_failed=no 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123" >&5 17458$as_echo_n "checking for mpg123... " >&6; } 17459 17460if test -n "$mpg123_CFLAGS"; then 17461 pkg_cv_mpg123_CFLAGS="$mpg123_CFLAGS" 17462 elif test -n "$PKG_CONFIG"; then 17463 if test -n "$PKG_CONFIG" && \ 17464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5 17465 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5 17466 ac_status=$? 17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17468 test $ac_status = 0; }; then 17469 pkg_cv_mpg123_CFLAGS=`$PKG_CONFIG --cflags "libmpg123 >= 1.26.0" 2>/dev/null` 17470 test "x$?" != "x0" && pkg_failed=yes 17471else 17472 pkg_failed=yes 17473fi 17474 else 17475 pkg_failed=untried 17476fi 17477if test -n "$mpg123_LIBS"; then 17478 pkg_cv_mpg123_LIBS="$mpg123_LIBS" 17479 elif test -n "$PKG_CONFIG"; then 17480 if test -n "$PKG_CONFIG" && \ 17481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5 17482 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5 17483 ac_status=$? 17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17485 test $ac_status = 0; }; then 17486 pkg_cv_mpg123_LIBS=`$PKG_CONFIG --libs "libmpg123 >= 1.26.0" 2>/dev/null` 17487 test "x$?" != "x0" && pkg_failed=yes 17488else 17489 pkg_failed=yes 17490fi 17491 else 17492 pkg_failed=untried 17493fi 17494 17495 17496 17497if test $pkg_failed = yes; then 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17499$as_echo "no" >&6; } 17500 17501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17502 _pkg_short_errors_supported=yes 17503else 17504 _pkg_short_errors_supported=no 17505fi 17506 if test $_pkg_short_errors_supported = yes; then 17507 mpg123_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1` 17508 else 17509 mpg123_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1` 17510 fi 17511 # Put the nasty error message in config.log where it belongs 17512 echo "$mpg123_PKG_ERRORS" >&5 17513 17514 HAVE_MPG123="no" 17515elif test $pkg_failed = untried; then 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17517$as_echo "no" >&6; } 17518 HAVE_MPG123="no" 17519else 17520 mpg123_CFLAGS=$pkg_cv_mpg123_CFLAGS 17521 mpg123_LIBS=$pkg_cv_mpg123_LIBS 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17523$as_echo "yes" >&6; } 17524 HAVE_MPG123="yes" 17525fi 17526 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking use of mpg123 decoder" >&5 17528$as_echo_n "checking use of mpg123 decoder... " >&6; } 17529# Check whether --enable-decoder was given. 17530if test "${enable_decoder+set}" = set; then : 17531 enableval=$enable_decoder; CONFIG_DECODER="${enableval}" 17532else 17533 CONFIG_DECODER="yes" 17534fi 17535 17536# Check whether --enable-libmpg123 was given. 17537if test "${enable_libmpg123+set}" = set; then : 17538 enableval=$enable_libmpg123; CONFIG_MPG123="${enableval}" 17539else 17540 CONFIG_MPG123="auto" 17541fi 17542 17543 17544if test "${CONFIG_MPG123}" = "yes" && ! test "${HAVE_MPG123}" = "yes"; then 17545 as_fn_error $? "libmpg123 decoder enforced but not found" "$LINENO" 5 17546fi 17547if test "${CONFIG_MPG123}" = "auto" && test "${HAVE_MPG123}" = "yes"; then 17548 CONFIG_MPG123="yes" 17549fi 17550 17551LIB_WITH_DECODER=false 17552if test "${CONFIG_MPG123}" = "yes" && test "${CONFIG_DECODER}" != "no"; then 17553 CONFIG_DECODER="no" 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled use of external libmpg123 decoder" >&5 17555$as_echo "enabled use of external libmpg123 decoder" >&6; } 17556 17557$as_echo "#define HAVE_MPG123 1" >>confdefs.h 17558 17559 17560$as_echo "#define DECODE_ON_THE_FLY 1" >>confdefs.h 17561 17562 FRONTEND_LDADD="$mpg123_LIBS $FRONTEND_LDADD" 17563 LIBMP3LAME_LDADD="$mpg123_LIBS $LIBMP3LAME_LDADD" 17564 INCLUDES="$mpg123_CFLAGS $INCLUDES" 17565else 17566 if test "${CONFIG_DECODER}" != "no" ; then 17567 LIB_WITH_DECODER=true 17568 CONFIG_DECODER="internal mpglib decoder (Layer 1, 2, 3)" 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DECODER" >&5 17570$as_echo "$CONFIG_DECODER" >&6; } 17571 17572$as_echo "#define HAVE_MPGLIB 1" >>confdefs.h 17573 17574 17575$as_echo "#define DECODE_ON_THE_FLY 1" >>confdefs.h 17576 17577 else 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DECODER" >&5 17579$as_echo "$CONFIG_DECODER" >&6; } 17580 fi 17581fi 17582 if ${LIB_WITH_DECODER}; then 17583 LIB_WITH_DECODER_TRUE= 17584 LIB_WITH_DECODER_FALSE='#' 17585else 17586 LIB_WITH_DECODER_TRUE='#' 17587 LIB_WITH_DECODER_FALSE= 17588fi 17589 17590 17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the lame frontend should be build" >&5 17592$as_echo_n "checking if the lame frontend should be build... " >&6; } 17593# Check whether --enable-frontend was given. 17594if test "${enable_frontend+set}" = set; then : 17595 enableval=$enable_frontend; WITH_FRONTEND="${enableval}" 17596else 17597 WITH_FRONTEND=yes 17598fi 17599 17600if test "x${WITH_FRONTEND}" = "xyes"; then 17601 WITH_FRONTEND=lame${ac_exeext} 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17603$as_echo "yes" >&6; } 17604else 17605 WITH_FRONTEND= 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17607$as_echo "no" >&6; } 17608fi 17609 17610 17611 17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mp3x is requested" >&5 17613$as_echo_n "checking if mp3x is requested... " >&6; } 17614# Check whether --enable-mp3x was given. 17615if test "${enable_mp3x+set}" = set; then : 17616 enableval=$enable_mp3x; WITH_MP3X="${enableval}" 17617else 17618 WITH_MP3X=no 17619fi 17620 17621if test "x${WITH_MP3X}" = "xyes"; then 17622 WITH_MP3X=mp3x${ac_exeext} 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17624$as_echo "yes" >&6; } 17625else 17626 WITH_MP3X= 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17628$as_echo "no" >&6; } 17629fi 17630 17631if test "${HAVE_GTK}" = "no"; then 17632 if test "x${WITH_MP3X}" = "xmp3x"; then 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x" >&5 17634$as_echo "$as_me: WARNING: can't build mp3x" >&2;} 17635 WITH_MP3X= 17636 fi 17637 if test "x${CONFIG_ANALYZER}" != "xyes"; then 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x because of disabled analyzer hooks" >&5 17639$as_echo "$as_me: WARNING: can't build mp3x because of disabled analyzer hooks" >&2;} 17640 WITH_MP3X= 17641 fi 17642fi 17643 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mp3rtp is requested" >&5 17645$as_echo_n "checking if mp3rtp is requested... " >&6; } 17646# Check whether --enable-mp3rtp was given. 17647if test "${enable_mp3rtp+set}" = set; then : 17648 enableval=$enable_mp3rtp; WITH_MP3RTP="${enableval}" 17649else 17650 WITH_MP3RTP=no 17651fi 17652 17653if test "x${WITH_MP3RTP}" = "xyes"; then 17654 if test ${SOCKETFUNCTION} = NO; then 17655 as_fn_error $? "function socket is mandatory for mp3rtp" "$LINENO" 5 17656 fi 17657 WITH_MP3RTP=mp3rtp${ac_exeext} 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17659$as_echo "yes" >&6; } 17660else 17661 WITH_MP3RTP= 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17663$as_echo "no" >&6; } 17664fi 17665 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic linking of the frontends is requested" >&5 17667$as_echo_n "checking if dynamic linking of the frontends is requested... " >&6; } 17668# Check whether --enable-dynamic-frontends was given. 17669if test "${enable_dynamic_frontends+set}" = set; then : 17670 enableval=$enable_dynamic_frontends; FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS}" 17671else 17672 FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS} -static" 17673fi 17674 17675case "x${FRONTEND_LDFLAGS}" in 17676*-static*) 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17678$as_echo "no" >&6; } 17679 ;; 17680*) 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17682$as_echo "yes" >&6; } 17683 ;; 17684esac 17685 17686 17687# 17688# this is from vorbis 17689# 17690case $host in 17691*86-*-linux*) 17692 # glibc < 2.1.3 has a serious FP bug in the math inline header 17693 # that will cripple Vorbis. Look to see if the magic FP stack 17694 # clobber is missing in the mathinline header, thus indicating 17695 # the buggy version 17696 17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17698/* end confdefs.h. */ 17699 17700 #define __LIBC_INTERNAL_MATH_INLINES 1 17701 #define __OPTIMIZE__ 17702 #include <math.h> 17703 17704_ACEOF 17705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17706 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then : 17707 bad=maybe 17708else 17709 bad=no 17710fi 17711rm -f conftest* 17712 17713 17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glibc mathinline bug" >&5 17715$as_echo_n "checking glibc mathinline bug... " >&6; } 17716 if test ${bad} = "maybe" ;then 17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17718/* end confdefs.h. */ 17719 17720 #define __LIBC_INTERNAL_MATH_INLINES 1 17721 #define __OPTIMIZE__ 17722 #include <math.h> 17723 17724_ACEOF 17725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17726 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then : 17727 bad=no 17728else 17729 bad=yes 17730fi 17731rm -f conftest* 17732 17733 fi 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${bad}" >&5 17735$as_echo "${bad}" >&6; } 17736 if test ${bad} = "yes" ;then 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 17738$as_echo "$as_me: WARNING: " >&2;} 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 17740$as_echo "$as_me: WARNING: ********************************************************" >&2;} 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5 17742$as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;} 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5 17744$as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;} 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not only LAME, but all code *" >&5 17746$as_echo "$as_me: WARNING: * all floating point code, not only LAME, but all code *" >&2;} 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&5 17748$as_echo "$as_me: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&2;} 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * strongly urged to correct the problem. *" >&5 17750$as_echo "$as_me: WARNING: * strongly urged to correct the problem. *" >&2;} 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *Note: that upgrading glibc will not fix any previously*" >&5 17752$as_echo "$as_me: WARNING: *Note: that upgrading glibc will not fix any previously*" >&2;} 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * built programs; this is a compile-time bug. *" >&5 17754$as_echo "$as_me: WARNING: * built programs; this is a compile-time bug. *" >&2;} 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of LAME, *" >&5 17756$as_echo "$as_me: WARNING: * To work around the problem for this build of LAME, *" >&2;} 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5 17758$as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;} 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt LAME performace but is necessary for LAME to *" >&5 17760$as_echo "$as_me: WARNING: * hurt LAME performace but is necessary for LAME to *" >&2;} 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&5 17762$as_echo "$as_me: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&2;} 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5 17764$as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;} 17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5 17766$as_echo "$as_me: WARNING: ********************************************************" >&2;} 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 17768$as_echo "$as_me: WARNING: " >&2;} 17769 17770 17771$as_echo "#define __NO_MATH_INLINES 1" >>confdefs.h 17772 17773 fi;; 17774esac 17775 17776 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termcap" >&5 17778$as_echo_n "checking for termcap... " >&6; } 17779if test "x${HAVE_TERMCAP}" != "x"; then 17780 FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}" 17781 17782$as_echo "#define HAVE_TERMCAP 1" >>confdefs.h 17783 17784 TERMCAP_DEFAULT="yes" 17785else 17786 TERMCAP_DEFAULT="no" 17787fi 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TERMCAP_DEFAULT}" >&5 17789$as_echo "${TERMCAP_DEFAULT}" >&6; } 17790 17791 17792WITH_VECTOR=no 17793case $host_cpu in 17794x86_64|amd64) 17795 CPUTYPE="no" 17796 if test $ac_cv_header_xmmintrin_h = yes ; then 17797 WITH_XMM=yes 17798 WITH_VECTOR=yes 17799 fi 17800 17801 17802$as_echo "#define USE_FAST_LOG 1" >>confdefs.h 17803 17804 ;; 17805*86) 17806 CPUTYPE="i386" 17807 if test $ac_cv_header_xmmintrin_h = yes ; then 17808 WITH_XMM=yes 17809 WITH_VECTOR=yes 17810 fi 17811 17812 17813$as_echo "#define USE_FAST_LOG 1" >>confdefs.h 17814 17815 ;; 17816powerpc) 17817 CPUTYPE="no" 17818 17819 # The following should not get enabled on a G5. HOWTO check for a G5? 17820 17821$as_echo "#define USE_FAST_LOG 1" >>confdefs.h 17822 17823 ;; 17824*) 17825 CPUTYPE="no" 17826 ;; 17827esac 17828 17829# which vector code do we support to build on this machine? 17830 if test "x${WITH_XMM}" = "xyes"; then 17831 WITH_XMM_TRUE= 17832 WITH_XMM_FALSE='#' 17833else 17834 WITH_XMM_TRUE='#' 17835 WITH_XMM_FALSE= 17836fi 17837 17838 17839# needs to be defined to link in the internal vector lib 17840 if test "x${WITH_VECTOR}" = "xyes"; then 17841 WITH_VECTOR_TRUE= 17842 WITH_VECTOR_FALSE='#' 17843else 17844 WITH_VECTOR_TRUE='#' 17845 WITH_VECTOR_FALSE= 17846fi 17847 17848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if I have to build the internal vector lib" >&5 17849$as_echo_n "checking if I have to build the internal vector lib... " >&6; } 17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WITH_VECTOR}" >&5 17851$as_echo "${WITH_VECTOR}" >&6; } 17852 17853 17854# Extract the first word of "nasm", so it can be a program name with args. 17855set dummy nasm; ac_word=$2 17856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17857$as_echo_n "checking for $ac_word... " >&6; } 17858if ${ac_cv_path_NASM+:} false; then : 17859 $as_echo_n "(cached) " >&6 17860else 17861 case $NASM in 17862 [\\/]* | ?:[\\/]*) 17863 ac_cv_path_NASM="$NASM" # Let the user override the test with a path. 17864 ;; 17865 *) 17866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17867for as_dir in $PATH 17868do 17869 IFS=$as_save_IFS 17870 test -z "$as_dir" && as_dir=. 17871 for ac_exec_ext in '' $ac_executable_extensions; do 17872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17873 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext" 17874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17875 break 2 17876 fi 17877done 17878 done 17879IFS=$as_save_IFS 17880 17881 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no" 17882 ;; 17883esac 17884fi 17885NASM=$ac_cv_path_NASM 17886if test -n "$NASM"; then 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5 17888$as_echo "$NASM" >&6; } 17889else 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17891$as_echo "no" >&6; } 17892fi 17893 17894 17895case "${NASM}" in 17896no) 17897 ;; 17898*) 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler routines for this processor type" >&5 17900$as_echo_n "checking for assembler routines for this processor type... " >&6; } 17901 for recurse_over in ${ASM_FOR_ARCH} 17902 do 17903 if test "${CPUTYPE}" = "${recurse_over}"; then 17904 include_asm_routines="yes" 17905 fi 17906 17907 case $host_os in 17908 *darwin*) 17909 # currently we have problems because of a wrong 17910 # libtool hack in the darwin case (for nasm code) 17911 include_asm_routines="no" 17912 ;; 17913 esac 17914 done 17915 if test "x${include_asm_routines}" = "xyes"; then 17916 17917$as_echo "#define HAVE_NASM 1" >>confdefs.h 17918 17919 17920$as_echo "#define MMX_choose_table 1" >>confdefs.h 17921 17922 else 17923 include_asm_routines="no" 17924 NASM="no" 17925 fi 17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${include_asm_routines}" >&5 17927$as_echo "${include_asm_routines}" >&6; } 17928 ;; 17929esac 17930 if test "${NASM}" != "no"; then 17931 HAVE_NASM_TRUE= 17932 HAVE_NASM_FALSE='#' 17933else 17934 HAVE_NASM_TRUE='#' 17935 HAVE_NASM_FALSE= 17936fi 17937 17938 17939case $host_os in 17940 *cygwin*|*mingw32*) 17941 CYGWIN=yes 17942 NASM_FORMAT="-f win32 -DWIN32" 17943 ;; 17944 *darwin*) 17945 NASM_FORMAT="-f macho" 17946 ;; 17947 *os2-emx*) 17948 NASM_FORMAT="-f aout -DAOUT" 17949 ;; 17950 *) 17951 CYGWIN=no 17952 NASM_FORMAT="-f elf" 17953 ;; 17954esac 17955 17956# 17957# 'expopt' is used for "additional optimizations", not for optimizations which 17958# are marked as "experimental" in the guide for the compiler. 17959# They are "experimental" here in the LAME project (at least 17960# "--enable-expopt=full"). 17961# 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional optimizations" >&5 17963$as_echo_n "checking for additional optimizations... " >&6; } 17964# Check whether --enable-expopt was given. 17965if test "${enable_expopt+set}" = set; then : 17966 enableval=$enable_expopt; CONFIG_EXPOPT="${enableval}" 17967else 17968 CONFIG_EXPOPT="no" 17969fi 17970 17971 17972if test "x$HAVE_GCC" = "xyes" -o "x$HAVE_CLANG" = "xyes"; then 17973 # gcc defaults. OS specific options go in versious sections below 17974 # from the gcc man pages: "there is no reason to use -pedantic" 17975 if test "x${with_gnu_ld}" = "xyes"; then 17976 CFLAGS="-Wall -pipe ${CFLAGS}" 17977 else 17978 # some vendor ld's don't like '-pipe' 17979 CFLAGS="-Wall ${CFLAGS}" 17980 fi 17981 17982 # GCC version specific generic options 17983 if test "x${HAVE_GCC}" = "xyes"; then 17984 case "${GCC_version}" in 17985 2.96*) 17986 # for buggy version of gcc shipped with RH7.1, back of on some 17987 # optimizations 17988 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \ 17989 -funroll-loops" 17990 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \ 17991 -fsched-interblock -fbranch-count-reg -fforce-addr \ 17992 -fforce-mem" 17993 ;; 17994 3.0*) 17995 # -funroll-loops seems to produce buggy code with gcc 3.0.3 17996 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math" 17997 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \ 17998 -fbranch-count-reg -fforce-addr -fforce-mem" 17999 ;; 18000 3.*|4.0.*|4.1.*) 18001 # -fomit-frame-pointer seems to be buggy on cygwin 18002 case ${host_os} in 18003 *cygwin*) 18004 OMIT_FRAME_POINTER= 18005 ;; 18006 *) 18007 OMIT_FRAME_POINTER=-fomit-frame-pointer 18008 ;; 18009 esac 18010 18011 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math" 18012 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \ 18013 -fbranch-count-reg -fforce-addr -fforce-mem" 18014 ;; 18015 [456789].*|1[0-9].*) 18016 OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math" 18017 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr" 18018 ;; 18019 *) 18020 # default 18021 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math \ 18022 -funroll-loops" 18023 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr" 18024 ;; 18025 esac 18026 18027 # GCC version independend generic options 18028 OPTIMIZATION_NORM="-fschedule-insns2" 18029 fi 18030 18031 18032 # generic CPU specific options 18033 case ${host_cpu} in 18034 sparc) 18035 case "${GCC_version}" in 18036 3.0*) 18037 ;; 18038 [3456789].*|1[0-9].*) 18039 # doesn't work on 3.0.x, but on 3.[12] and 18040 # hopefully on every other release after that too 18041 if test -x /usr/bin/isalist; then 18042 /usr/bin/isalist | grep sparcv8plus \ 18043 >/dev/null 2>&1 && \ 18044 OPTIMIZATION="${OPTIMIZATION} \ 18045 -mcpu=ultrasparc \ 18046 -mtune=ultrasparc" 18047 fi 18048 ;; 18049 esac 18050 ;; 18051 *86) 18052 case "${GCC_version}" in 18053 [3456789].*|1[0-9].*) 18054 OPTIMIZATION="${OPTIMIZATION} \ 18055 -maccumulate-outgoing-args" 18056 ;; 18057 esac 18058 ;; 18059 esac 18060 18061 expopt_msg_result_printed=no 18062 case "${CONFIG_EXPOPT}" in 18063 no) 18064 # if someone supplies own CFLAGS, we don't add our own 18065 if test "x${ac_save_CFLAGS}" != "x"; then 18066 OPTIMIZATION="" 18067 fi 18068 ;; 18069 norm|yes) 18070 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}" 18071 ;; 18072 full) 18073 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM} \ 18074 ${OPTIMIZATION_FULL}" 18075 18076 if test "${HAVE_GCC}" = "yes"; then 18077 # some hardware dependend options 18078 case "${GCC_version}" in 18079 2.9*|3.*|4.0.*|4.1.*) 18080 # "new" GCC, use some "new" CPU specific optimizations 18081 # use -mtune instead of -m486 or -mcpu= etc, since they are 18082 # deprecated by GCC <rbrito> 18083 case ${host_cpu} in 18084 *486) 18085 OPTIMIZATION="${OPTIMIZATION} -mcpu=i486 \ 18086 -mfancy-math-387" 18087 ;; 18088 *586) 18089 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentium \ 18090 -march=pentium -mfancy-math-387" 18091 ;; 18092 *686) 18093 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentiumpro \ 18094 -march=pentiumpro -mfancy-math-387 \ 18095 -malign-double" 18096 ;; 18097 *86) 18098 OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387" 18099 ;; 18100 alpha*) 18101 OPTIMIZATION="${OPTIMIZATION} -mfp-regs" 18102 18103$as_echo "#define FLOAT double" >>confdefs.h 18104 18105 # add "-mcpu=21164a -Wa,-m21164a" to optimize 18106 # for 21164a (ev56) CPU 18107 ;; 18108 *) 18109 OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch" 18110 ;; 18111 esac 18112 ;; 18113 [456789].*|1[0-9].*) 18114 case ${host_cpu} in 18115 *486) 18116 OPTIMIZATION="${OPTIMIZATION} -march=i486" 18117 ;; 18118 *586) 18119 OPTIMIZATION="${OPTIMIZATION} -march=i586 \ 18120 -mtune=native" 18121 ;; 18122 *686) 18123 OPTIMIZATION="${OPTIMIZATION} -march=i686 \ 18124 -mtune=native" 18125 ;; 18126 *86) 18127 OPTIMIZATION="${OPTIMIZATION} -march=native \ 18128 -mtune=native" 18129 ;; 18130 arm*-gnueabi) 18131 if -z "$(echo ${GCC_version} | awk '/4\.0/')" ; then 18132 # Work round buggy softfloat optimization in ARM EABI compilers 18133 # -gnueabi in only gcc-4.1 onwards 18134 OPTIMIZATION="${OPTIMIZATION} -fno-finite-math-only" 18135 fi 18136 ;; 18137 esac 18138 ;; 18139 *) 18140 # no special optimization for other versions 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18142$as_echo "no" >&6; } 18143 expopt_msg_result_printed=yes 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&5 18145$as_echo "$as_me: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&2;} 18146 ;; 18147 esac 18148 fi 18149 ;; 18150 *) 18151 as_fn_error $? "bad value �${CONFIG_EXPOPT}� for expopt option" "$LINENO" 5 18152 ;; 18153 esac 18154 18155 18156 if test "x${HAVE_CLANG}" = "xyes"; then 18157 case "${CLANG_VERSION}" in 18158 3.[89]*|[45].*|1[0-9].*) 18159 OPTIMIZATION="-Ofast" 18160 ;; 18161 *) 18162 OPTIMIZATION="-O3" 18163 ;; 18164 esac 18165 18166 # generic CPU specific options 18167 case ${host_cpu} in 18168 *486) 18169 OPTIMIZATION="${OPTIMIZATION} -march=i486" 18170 ;; 18171 *586) 18172 OPTIMIZATION="${OPTIMIZATION} -march=i586 \ 18173 -mtune=native" 18174 ;; 18175 *686) 18176 OPTIMIZATION="${OPTIMIZATION} -march=i686 \ 18177 -mtune=native" 18178 ;; 18179 *86) 18180 OPTIMIZATION="${OPTIMIZATION} -march=native \ 18181 -mtune=native" 18182 ;; 18183 esac 18184 18185 fi 18186 18187 18188 if test "${expopt_msg_result_printed}" = "no" ; then 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EXPOPT}" >&5 18190$as_echo "${CONFIG_EXPOPT}" >&6; } 18191 fi 18192else 18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18194$as_echo "no" >&6; } 18195fi 18196 18197 18198 18199 18200 18201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug options" >&5 18202$as_echo_n "checking for debug options... " >&6; } 18203# Check whether --enable-debug was given. 18204if test "${enable_debug+set}" = set; then : 18205 enableval=$enable_debug; CONFIG_DEBUG="${enableval}" 18206else 18207 CONFIG_DEBUG="no" 18208fi 18209 18210 18211if test "x$GCC" = "xyes"; then 18212 DEBUG_NORM_OPT="-O -g -Wall" 18213 DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \ 18214 -Wcast-qual -Wchar-subscripts -Wconversion \ 18215 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 18216 -Wredundant-decls -Wshadow -Wstrict-prototypes \ 18217 -Wwrite-strings -Winline \ 18218 -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \ 18219 -Wimplicit-int -fno-builtin" 18220 18221 case "${CONFIG_DEBUG}" in 18222 no) 18223 ;; 18224 norm|yes) 18225 18226$as_echo "#define ABORTFP 1" >>confdefs.h 18227 18228 OPTIMIZATION="${DEBUG_NORM_OPT}" 18229 ;; 18230 anoying) 18231 18232$as_echo "#define ABORTFP 1" >>confdefs.h 18233 18234 OPTIMIZATION="${DEBUG_NORM_OPT} ${DEBUG_ANOYING}" 18235 ;; 18236 alot) 18237 18238$as_echo "#define ABORTFP 1" >>confdefs.h 18239 18240 18241$as_echo "#define DEBUG 1" >>confdefs.h 18242 18243 OPTIMIZATION="${DEBUG_NORM_OPT}" 18244 ;; 18245 *) 18246 as_fn_error $? "bad value �${CONFIG_DEBUG}� for debug option" "$LINENO" 5 18247 esac 18248 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DEBUG}" >&5 18250$as_echo "${CONFIG_DEBUG}" >&6; } 18251else 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18253$as_echo "no" >&6; } 18254fi 18255 18256 18257 18258 18259########################################################################## 18260# LINUX on Digital/Compaq Alpha CPUs 18261########################################################################## 18262case $host in 18263alpha*-*-linux*) 18264 18265################################################################ 18266#### Check if 'ccc' is in our path 18267################################################################ 18268if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then 18269 # Compaq's C Compiler 18270 CC=ccc 18271 18272################################################################ 18273#### set 'OPTIMIZATION = -arch host -tune host' 18274#### to generate/tune instructions for this machine 18275#### 'OPTIMIZATION += -migrate -fast -inline speed -unroll 0' 18276#### tweak to run as fast as possible :) 18277#### 'OPTIMIZATION += -w0' 18278#### set warning and linking flags 18279################################################################ 18280 OPTIMIZATION="-arch host -tune host" 18281 OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION" 18282 OPTIMIZATION="-w0 $OPTIMIZATION" 18283 18284 18285################################################################ 18286#### to debug, uncomment 18287################################################################ 18288 # For Debugging 18289 #OPTIMIZATION="-g3 $OPTIMIZATION" 18290 18291################################################################ 18292#### define __DECALPHA__ (i was getting re-declaration warnings 18293#### in machine.h 18294################################################################ 18295 # Define DEC Alpha 18296 18297$as_echo "#define __DECALPHA__ 1" >>confdefs.h 18298 18299fi # gcc or ccc? 18300;; # alpha 18301 18302 18303########################################################################## 18304# SunOS 18305########################################################################## 18306sparc-*-sunos4*) 18307 if test CC = "cc"; then 18308 OPTIMIZATION="-O -xCC" 18309 MAKEDEP="-xM" 18310 # for gcc, use instead: 18311 # CC="gcc" 18312 # OPTIMIZATION="-O" 18313 # MAKEDEP="-M" 18314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please contact lame@lists.sourceforge.net with the output of the configure run and the file config.cache. Thank you for your cooperation." >&5 18315$as_echo "$as_me: WARNING: Please contact lame@lists.sourceforge.net with the output of the configure run and the file config.cache. Thank you for your cooperation." >&2;} 18316 fi 18317;; #SunOS 18318 18319########################################################################## 18320# SGI 18321########################################################################## 18322*-sgi-irix*) 18323 if test CC = "cc"; then 18324 OPTIMIZATION="-O3 -woff all" 18325 fi 18326;; # SGI 18327 18328########################################################################## 18329# Compaq Alpha running Dec Unix (OSF) 18330########################################################################## 18331alpha*-dec-osf*) 18332 if test CC = "cc"; then 18333 OPTIMIZATION="-fast -O3 -std -g3 -non_shared" 18334 fi 18335;; #OSF 18336esac 18337 18338# todo: include the following tests in the case-list 18339UNAME=`uname` 18340ARCH=`uname -m` 18341 18342########################################################################### 18343# MOSXS (Rhapsody PPC) 18344########################################################################### 18345if test "$UNAME" = "Rhapsody"; then 18346# CC="cc" # should be handled already by autoconf 18347 MAKEDEP="-make" 18348fi 18349 18350########################################################################### 18351# MAC OSX Darwin PPC 18352########################################################################### 18353if test "$UNAME" = "Darwin"; then 18354 MAKEDEP="-make" 18355 CFLAGS="$CFLAGS -fno-common" 18356fi 18357 18358 18359########################################################################## 18360# OS/2 18361########################################################################## 18362# Properly installed EMX runtime & development package is a prerequisite. 18363# tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13 18364# 18365########################################################################## 18366if test "$UNAME" = "OS/2"; then 18367 SHELL=sh 18368 #CC=gcc # should already be handled by configure 18369 18370 # file extension should already be handled by automake (I don't know, 18371 # please give feedback! 18372 #FILE_EXTENSION=".exe" 18373 18374# Uncomment & inspect the GTK lines to use MP3x GTK frame analyzer. 18375# Properly installed XFree86/devlibs & GTK+ is a prerequisite. 18376# The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3: 18377# AC_DEFINE(HAVE_GTK, 1, have GTK) 18378# AC_DEFINE(__ST_MT_ERRNO__, 1) 18379# INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \ 18380# -IC:/XFree86/include $INCLUDES" 18381# FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \ 18382# -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS" 18383# FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS" 18384fi 18385 18386########################################################################### 18387# AmigaOS 18388########################################################################### 18389# Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS 18390# 18391########################################################################### 18392if test "$UNAME" = "AmigaOS" ; then 18393 CC="gcc -noixemul" 18394 OPTIMIZATION="$OPTIMIZATION -m68020-60 -m68881" 18395 MAKEDEP="-MM" 18396 if test "$ARCH" = "WOS"; then 18397 CC="ppc-amigaos-gcc -warpup" 18398 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e" 18399 AR="ppc-amigaos-ar" 18400 RANLIB="ppc-amigaos-ranlib" 18401 fi 18402 if test "$ARCH",PPC; then 18403 CC="ppc-amigaos-gcc" 18404 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e" 18405 AR="ppc-amigaos-ar" 18406 RANLIB="ppc-amigaos-ranlib" 18407 fi 18408fi 18409 18410 18411CFLAGS="${OPTIMIZATION} ${CFLAGS}" 18412LDADD="${LDADD}" 18413FRONTEND_CFLAGS="${INCICONV} ${FRONTEND_CFLAGS}" 18414FRONTEND_LDADD="${FRONTEND_LDADD} ${LTLIBICONV} ${CONFIG_MATH_LIB}" 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446ac_config_files="$ac_config_files Makefile libmp3lame/Makefile libmp3lame/i386/Makefile libmp3lame/vector/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile dshow/Makefile ACM/Makefile ACM/ADbg/Makefile ACM/ddk/Makefile ACM/tinyxml/Makefile lame.spec mac/Makefile macosx/Makefile macosx/English.lproj/Makefile macosx/LAME.xcodeproj/Makefile vc_solution/Makefile" 18447 18448 18449cat >confcache <<\_ACEOF 18450# This file is a shell script that caches the results of configure 18451# tests run on this system so they can be shared between configure 18452# scripts and configure runs, see configure's option --config-cache. 18453# It is not useful on other systems. If it contains results you don't 18454# want to keep, you may remove or edit it. 18455# 18456# config.status only pays attention to the cache file if you give it 18457# the --recheck option to rerun configure. 18458# 18459# `ac_cv_env_foo' variables (set or unset) will be overridden when 18460# loading this file, other *unset* `ac_cv_foo' will be assigned the 18461# following values. 18462 18463_ACEOF 18464 18465# The following way of writing the cache mishandles newlines in values, 18466# but we know of no workaround that is simple, portable, and efficient. 18467# So, we kill variables containing newlines. 18468# Ultrix sh set writes to stderr and can't be redirected directly, 18469# and sets the high bit in the cache file unless we assign to the vars. 18470( 18471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18472 eval ac_val=\$$ac_var 18473 case $ac_val in #( 18474 *${as_nl}*) 18475 case $ac_var in #( 18476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18477$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18478 esac 18479 case $ac_var in #( 18480 _ | IFS | as_nl) ;; #( 18481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18482 *) { eval $ac_var=; unset $ac_var;} ;; 18483 esac ;; 18484 esac 18485 done 18486 18487 (set) 2>&1 | 18488 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18489 *${as_nl}ac_space=\ *) 18490 # `set' does not quote correctly, so add quotes: double-quote 18491 # substitution turns \\\\ into \\, and sed turns \\ into \. 18492 sed -n \ 18493 "s/'/'\\\\''/g; 18494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18495 ;; #( 18496 *) 18497 # `set' quotes correctly as required by POSIX, so do not add quotes. 18498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18499 ;; 18500 esac | 18501 sort 18502) | 18503 sed ' 18504 /^ac_cv_env_/b end 18505 t clear 18506 :clear 18507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18508 t end 18509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18510 :end' >>confcache 18511if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18512 if test -w "$cache_file"; then 18513 if test "x$cache_file" != "x/dev/null"; then 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18515$as_echo "$as_me: updating cache $cache_file" >&6;} 18516 if test ! -f "$cache_file" || test -h "$cache_file"; then 18517 cat confcache >"$cache_file" 18518 else 18519 case $cache_file in #( 18520 */* | ?:*) 18521 mv -f confcache "$cache_file"$$ && 18522 mv -f "$cache_file"$$ "$cache_file" ;; #( 18523 *) 18524 mv -f confcache "$cache_file" ;; 18525 esac 18526 fi 18527 fi 18528 else 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18530$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18531 fi 18532fi 18533rm -f confcache 18534 18535test "x$prefix" = xNONE && prefix=$ac_default_prefix 18536# Let make expand exec_prefix. 18537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18538 18539DEFS=-DHAVE_CONFIG_H 18540 18541ac_libobjs= 18542ac_ltlibobjs= 18543U= 18544for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18545 # 1. Remove the extension, and $U if already installed. 18546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18549 # will be set to the directory where LIBOBJS objects are built. 18550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18551 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18552done 18553LIBOBJS=$ac_libobjs 18554 18555LTLIBOBJS=$ac_ltlibobjs 18556 18557 18558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18559$as_echo_n "checking that generated files are newer than configure... " >&6; } 18560 if test -n "$am_sleep_pid"; then 18561 # Hide warnings about reused PIDs. 18562 wait $am_sleep_pid 2>/dev/null 18563 fi 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18565$as_echo "done" >&6; } 18566 if test -n "$EXEEXT"; then 18567 am__EXEEXT_TRUE= 18568 am__EXEEXT_FALSE='#' 18569else 18570 am__EXEEXT_TRUE='#' 18571 am__EXEEXT_FALSE= 18572fi 18573 18574if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18575 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18576Usually this means the macro was only invoked conditionally." "$LINENO" 5 18577fi 18578if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18579 as_fn_error $? "conditional \"AMDEP\" was never defined. 18580Usually this means the macro was only invoked conditionally." "$LINENO" 5 18581fi 18582if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18583 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18584Usually this means the macro was only invoked conditionally." "$LINENO" 5 18585fi 18586if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18588Usually this means the macro was only invoked conditionally." "$LINENO" 5 18589fi 18590 18591if test -z "${LIB_WITH_DECODER_TRUE}" && test -z "${LIB_WITH_DECODER_FALSE}"; then 18592 as_fn_error $? "conditional \"LIB_WITH_DECODER\" was never defined. 18593Usually this means the macro was only invoked conditionally." "$LINENO" 5 18594fi 18595if test -z "${WITH_XMM_TRUE}" && test -z "${WITH_XMM_FALSE}"; then 18596 as_fn_error $? "conditional \"WITH_XMM\" was never defined. 18597Usually this means the macro was only invoked conditionally." "$LINENO" 5 18598fi 18599if test -z "${WITH_VECTOR_TRUE}" && test -z "${WITH_VECTOR_FALSE}"; then 18600 as_fn_error $? "conditional \"WITH_VECTOR\" was never defined. 18601Usually this means the macro was only invoked conditionally." "$LINENO" 5 18602fi 18603if test -z "${HAVE_NASM_TRUE}" && test -z "${HAVE_NASM_FALSE}"; then 18604 as_fn_error $? "conditional \"HAVE_NASM\" was never defined. 18605Usually this means the macro was only invoked conditionally." "$LINENO" 5 18606fi 18607 18608: "${CONFIG_STATUS=./config.status}" 18609ac_write_fail=0 18610ac_clean_files_save=$ac_clean_files 18611ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18612{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18613$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18614as_write_fail=0 18615cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18616#! $SHELL 18617# Generated by $as_me. 18618# Run this file to recreate the current configuration. 18619# Compiler output produced by configure, useful for debugging 18620# configure, is in config.log if it exists. 18621 18622debug=false 18623ac_cs_recheck=false 18624ac_cs_silent=false 18625 18626SHELL=\${CONFIG_SHELL-$SHELL} 18627export SHELL 18628_ASEOF 18629cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18630## -------------------- ## 18631## M4sh Initialization. ## 18632## -------------------- ## 18633 18634# Be more Bourne compatible 18635DUALCASE=1; export DUALCASE # for MKS sh 18636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18637 emulate sh 18638 NULLCMD=: 18639 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18640 # is contrary to our usage. Disable this feature. 18641 alias -g '${1+"$@"}'='"$@"' 18642 setopt NO_GLOB_SUBST 18643else 18644 case `(set -o) 2>/dev/null` in #( 18645 *posix*) : 18646 set -o posix ;; #( 18647 *) : 18648 ;; 18649esac 18650fi 18651 18652 18653as_nl=' 18654' 18655export as_nl 18656# Printing a long string crashes Solaris 7 /usr/bin/printf. 18657as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18658as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18659as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18660# Prefer a ksh shell builtin over an external printf program on Solaris, 18661# but without wasting forks for bash or zsh. 18662if test -z "$BASH_VERSION$ZSH_VERSION" \ 18663 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18664 as_echo='print -r --' 18665 as_echo_n='print -rn --' 18666elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18667 as_echo='printf %s\n' 18668 as_echo_n='printf %s' 18669else 18670 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18671 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18672 as_echo_n='/usr/ucb/echo -n' 18673 else 18674 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18675 as_echo_n_body='eval 18676 arg=$1; 18677 case $arg in #( 18678 *"$as_nl"*) 18679 expr "X$arg" : "X\\(.*\\)$as_nl"; 18680 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18681 esac; 18682 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18683 ' 18684 export as_echo_n_body 18685 as_echo_n='sh -c $as_echo_n_body as_echo' 18686 fi 18687 export as_echo_body 18688 as_echo='sh -c $as_echo_body as_echo' 18689fi 18690 18691# The user is always right. 18692if test "${PATH_SEPARATOR+set}" != set; then 18693 PATH_SEPARATOR=: 18694 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18695 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18696 PATH_SEPARATOR=';' 18697 } 18698fi 18699 18700 18701# IFS 18702# We need space, tab and new line, in precisely that order. Quoting is 18703# there to prevent editors from complaining about space-tab. 18704# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18705# splitting by setting IFS to empty value.) 18706IFS=" "" $as_nl" 18707 18708# Find who we are. Look in the path if we contain no directory separator. 18709as_myself= 18710case $0 in #(( 18711 *[\\/]* ) as_myself=$0 ;; 18712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18713for as_dir in $PATH 18714do 18715 IFS=$as_save_IFS 18716 test -z "$as_dir" && as_dir=. 18717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18718 done 18719IFS=$as_save_IFS 18720 18721 ;; 18722esac 18723# We did not find ourselves, most probably we were run as `sh COMMAND' 18724# in which case we are not to be found in the path. 18725if test "x$as_myself" = x; then 18726 as_myself=$0 18727fi 18728if test ! -f "$as_myself"; then 18729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18730 exit 1 18731fi 18732 18733# Unset variables that we do not need and which cause bugs (e.g. in 18734# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18735# suppresses any "Segmentation fault" message there. '((' could 18736# trigger a bug in pdksh 5.2.14. 18737for as_var in BASH_ENV ENV MAIL MAILPATH 18738do eval test x\${$as_var+set} = xset \ 18739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18740done 18741PS1='$ ' 18742PS2='> ' 18743PS4='+ ' 18744 18745# NLS nuisances. 18746LC_ALL=C 18747export LC_ALL 18748LANGUAGE=C 18749export LANGUAGE 18750 18751# CDPATH. 18752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18753 18754 18755# as_fn_error STATUS ERROR [LINENO LOG_FD] 18756# ---------------------------------------- 18757# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18758# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18759# script with STATUS, using 1 if that was 0. 18760as_fn_error () 18761{ 18762 as_status=$1; test $as_status -eq 0 && as_status=1 18763 if test "$4"; then 18764 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18766 fi 18767 $as_echo "$as_me: error: $2" >&2 18768 as_fn_exit $as_status 18769} # as_fn_error 18770 18771 18772# as_fn_set_status STATUS 18773# ----------------------- 18774# Set $? to STATUS, without forking. 18775as_fn_set_status () 18776{ 18777 return $1 18778} # as_fn_set_status 18779 18780# as_fn_exit STATUS 18781# ----------------- 18782# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18783as_fn_exit () 18784{ 18785 set +e 18786 as_fn_set_status $1 18787 exit $1 18788} # as_fn_exit 18789 18790# as_fn_unset VAR 18791# --------------- 18792# Portably unset VAR. 18793as_fn_unset () 18794{ 18795 { eval $1=; unset $1;} 18796} 18797as_unset=as_fn_unset 18798# as_fn_append VAR VALUE 18799# ---------------------- 18800# Append the text in VALUE to the end of the definition contained in VAR. Take 18801# advantage of any shell optimizations that allow amortized linear growth over 18802# repeated appends, instead of the typical quadratic growth present in naive 18803# implementations. 18804if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18805 eval 'as_fn_append () 18806 { 18807 eval $1+=\$2 18808 }' 18809else 18810 as_fn_append () 18811 { 18812 eval $1=\$$1\$2 18813 } 18814fi # as_fn_append 18815 18816# as_fn_arith ARG... 18817# ------------------ 18818# Perform arithmetic evaluation on the ARGs, and store the result in the 18819# global $as_val. Take advantage of shells that can avoid forks. The arguments 18820# must be portable across $(()) and expr. 18821if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18822 eval 'as_fn_arith () 18823 { 18824 as_val=$(( $* )) 18825 }' 18826else 18827 as_fn_arith () 18828 { 18829 as_val=`expr "$@" || test $? -eq 1` 18830 } 18831fi # as_fn_arith 18832 18833 18834if expr a : '\(a\)' >/dev/null 2>&1 && 18835 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18836 as_expr=expr 18837else 18838 as_expr=false 18839fi 18840 18841if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18842 as_basename=basename 18843else 18844 as_basename=false 18845fi 18846 18847if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18848 as_dirname=dirname 18849else 18850 as_dirname=false 18851fi 18852 18853as_me=`$as_basename -- "$0" || 18854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18855 X"$0" : 'X\(//\)$' \| \ 18856 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18857$as_echo X/"$0" | 18858 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18859 s//\1/ 18860 q 18861 } 18862 /^X\/\(\/\/\)$/{ 18863 s//\1/ 18864 q 18865 } 18866 /^X\/\(\/\).*/{ 18867 s//\1/ 18868 q 18869 } 18870 s/.*/./; q'` 18871 18872# Avoid depending upon Character Ranges. 18873as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18875as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18876as_cr_digits='0123456789' 18877as_cr_alnum=$as_cr_Letters$as_cr_digits 18878 18879ECHO_C= ECHO_N= ECHO_T= 18880case `echo -n x` in #((((( 18881-n*) 18882 case `echo 'xy\c'` in 18883 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18884 xy) ECHO_C='\c';; 18885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18886 ECHO_T=' ';; 18887 esac;; 18888*) 18889 ECHO_N='-n';; 18890esac 18891 18892rm -f conf$$ conf$$.exe conf$$.file 18893if test -d conf$$.dir; then 18894 rm -f conf$$.dir/conf$$.file 18895else 18896 rm -f conf$$.dir 18897 mkdir conf$$.dir 2>/dev/null 18898fi 18899if (echo >conf$$.file) 2>/dev/null; then 18900 if ln -s conf$$.file conf$$ 2>/dev/null; then 18901 as_ln_s='ln -s' 18902 # ... but there are two gotchas: 18903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18905 # In both cases, we have to default to `cp -pR'. 18906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18907 as_ln_s='cp -pR' 18908 elif ln conf$$.file conf$$ 2>/dev/null; then 18909 as_ln_s=ln 18910 else 18911 as_ln_s='cp -pR' 18912 fi 18913else 18914 as_ln_s='cp -pR' 18915fi 18916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18917rmdir conf$$.dir 2>/dev/null 18918 18919 18920# as_fn_mkdir_p 18921# ------------- 18922# Create "$as_dir" as a directory, including parents if necessary. 18923as_fn_mkdir_p () 18924{ 18925 18926 case $as_dir in #( 18927 -*) as_dir=./$as_dir;; 18928 esac 18929 test -d "$as_dir" || eval $as_mkdir_p || { 18930 as_dirs= 18931 while :; do 18932 case $as_dir in #( 18933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18934 *) as_qdir=$as_dir;; 18935 esac 18936 as_dirs="'$as_qdir' $as_dirs" 18937 as_dir=`$as_dirname -- "$as_dir" || 18938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18939 X"$as_dir" : 'X\(//\)[^/]' \| \ 18940 X"$as_dir" : 'X\(//\)$' \| \ 18941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18942$as_echo X"$as_dir" | 18943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18944 s//\1/ 18945 q 18946 } 18947 /^X\(\/\/\)[^/].*/{ 18948 s//\1/ 18949 q 18950 } 18951 /^X\(\/\/\)$/{ 18952 s//\1/ 18953 q 18954 } 18955 /^X\(\/\).*/{ 18956 s//\1/ 18957 q 18958 } 18959 s/.*/./; q'` 18960 test -d "$as_dir" && break 18961 done 18962 test -z "$as_dirs" || eval "mkdir $as_dirs" 18963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18964 18965 18966} # as_fn_mkdir_p 18967if mkdir -p . 2>/dev/null; then 18968 as_mkdir_p='mkdir -p "$as_dir"' 18969else 18970 test -d ./-p && rmdir ./-p 18971 as_mkdir_p=false 18972fi 18973 18974 18975# as_fn_executable_p FILE 18976# ----------------------- 18977# Test if FILE is an executable regular file. 18978as_fn_executable_p () 18979{ 18980 test -f "$1" && test -x "$1" 18981} # as_fn_executable_p 18982as_test_x='test -x' 18983as_executable_p=as_fn_executable_p 18984 18985# Sed expression to map a string onto a valid CPP name. 18986as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18987 18988# Sed expression to map a string onto a valid variable name. 18989as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18990 18991 18992exec 6>&1 18993## ----------------------------------- ## 18994## Main body of $CONFIG_STATUS script. ## 18995## ----------------------------------- ## 18996_ASEOF 18997test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18998 18999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19000# Save the log message, to keep $0 and so on meaningful, and to 19001# report actual input values of CONFIG_FILES etc. instead of their 19002# values after options handling. 19003ac_log=" 19004This file was extended by lame $as_me 3.100, which was 19005generated by GNU Autoconf 2.69. Invocation command line was 19006 19007 CONFIG_FILES = $CONFIG_FILES 19008 CONFIG_HEADERS = $CONFIG_HEADERS 19009 CONFIG_LINKS = $CONFIG_LINKS 19010 CONFIG_COMMANDS = $CONFIG_COMMANDS 19011 $ $0 $@ 19012 19013on `(hostname || uname -n) 2>/dev/null | sed 1q` 19014" 19015 19016_ACEOF 19017 19018case $ac_config_files in *" 19019"*) set x $ac_config_files; shift; ac_config_files=$*;; 19020esac 19021 19022case $ac_config_headers in *" 19023"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19024esac 19025 19026 19027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19028# Files that config.status was made for. 19029config_files="$ac_config_files" 19030config_headers="$ac_config_headers" 19031config_commands="$ac_config_commands" 19032 19033_ACEOF 19034 19035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19036ac_cs_usage="\ 19037\`$as_me' instantiates files and other configuration actions 19038from templates according to the current configuration. Unless the files 19039and actions are specified as TAGs, all are instantiated by default. 19040 19041Usage: $0 [OPTION]... [TAG]... 19042 19043 -h, --help print this help, then exit 19044 -V, --version print version number and configuration settings, then exit 19045 --config print configuration, then exit 19046 -q, --quiet, --silent 19047 do not print progress messages 19048 -d, --debug don't remove temporary files 19049 --recheck update $as_me by reconfiguring in the same conditions 19050 --file=FILE[:TEMPLATE] 19051 instantiate the configuration file FILE 19052 --header=FILE[:TEMPLATE] 19053 instantiate the configuration header FILE 19054 19055Configuration files: 19056$config_files 19057 19058Configuration headers: 19059$config_headers 19060 19061Configuration commands: 19062$config_commands 19063 19064Report bugs to <lame-dev@lists.sf.net>." 19065 19066_ACEOF 19067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19068ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19069ac_cs_version="\\ 19070lame config.status 3.100 19071configured by $0, generated by GNU Autoconf 2.69, 19072 with options \\"\$ac_cs_config\\" 19073 19074Copyright (C) 2012 Free Software Foundation, Inc. 19075This config.status script is free software; the Free Software Foundation 19076gives unlimited permission to copy, distribute and modify it." 19077 19078ac_pwd='$ac_pwd' 19079srcdir='$srcdir' 19080INSTALL='$INSTALL' 19081MKDIR_P='$MKDIR_P' 19082AWK='$AWK' 19083test -n "\$AWK" || AWK=awk 19084_ACEOF 19085 19086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19087# The default lists apply if the user does not specify any file. 19088ac_need_defaults=: 19089while test $# != 0 19090do 19091 case $1 in 19092 --*=?*) 19093 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19095 ac_shift=: 19096 ;; 19097 --*=) 19098 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19099 ac_optarg= 19100 ac_shift=: 19101 ;; 19102 *) 19103 ac_option=$1 19104 ac_optarg=$2 19105 ac_shift=shift 19106 ;; 19107 esac 19108 19109 case $ac_option in 19110 # Handling of the options. 19111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19112 ac_cs_recheck=: ;; 19113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19114 $as_echo "$ac_cs_version"; exit ;; 19115 --config | --confi | --conf | --con | --co | --c ) 19116 $as_echo "$ac_cs_config"; exit ;; 19117 --debug | --debu | --deb | --de | --d | -d ) 19118 debug=: ;; 19119 --file | --fil | --fi | --f ) 19120 $ac_shift 19121 case $ac_optarg in 19122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19123 '') as_fn_error $? "missing file argument" ;; 19124 esac 19125 as_fn_append CONFIG_FILES " '$ac_optarg'" 19126 ac_need_defaults=false;; 19127 --header | --heade | --head | --hea ) 19128 $ac_shift 19129 case $ac_optarg in 19130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19131 esac 19132 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19133 ac_need_defaults=false;; 19134 --he | --h) 19135 # Conflict between --help and --header 19136 as_fn_error $? "ambiguous option: \`$1' 19137Try \`$0 --help' for more information.";; 19138 --help | --hel | -h ) 19139 $as_echo "$ac_cs_usage"; exit ;; 19140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19141 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19142 ac_cs_silent=: ;; 19143 19144 # This is an error. 19145 -*) as_fn_error $? "unrecognized option: \`$1' 19146Try \`$0 --help' for more information." ;; 19147 19148 *) as_fn_append ac_config_targets " $1" 19149 ac_need_defaults=false ;; 19150 19151 esac 19152 shift 19153done 19154 19155ac_configure_extra_args= 19156 19157if $ac_cs_silent; then 19158 exec 6>/dev/null 19159 ac_configure_extra_args="$ac_configure_extra_args --silent" 19160fi 19161 19162_ACEOF 19163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19164if \$ac_cs_recheck; then 19165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19166 shift 19167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19168 CONFIG_SHELL='$SHELL' 19169 export CONFIG_SHELL 19170 exec "\$@" 19171fi 19172 19173_ACEOF 19174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19175exec 5>>config.log 19176{ 19177 echo 19178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19179## Running $as_me. ## 19180_ASBOX 19181 $as_echo "$ac_log" 19182} >&5 19183 19184_ACEOF 19185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19186# 19187# INIT-COMMANDS 19188# 19189AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19190 19191 19192# The HP-UX ksh and POSIX shell print the target directory to stdout 19193# if CDPATH is set. 19194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19195 19196sed_quote_subst='$sed_quote_subst' 19197double_quote_subst='$double_quote_subst' 19198delay_variable_subst='$delay_variable_subst' 19199macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19200macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19201enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19202enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19203pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19204enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19205shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19206SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19207ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19208PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19209host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19210host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19211host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19212build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19213build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19214build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19215SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19216Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19217GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19218EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19219FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19220LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19221NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19222LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19223max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19224ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19225exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19226lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19227lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19228lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19229lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19230lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19231reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19232reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19233OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19234deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19235file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19236file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19237want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19238DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19239sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19240AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19241AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19242archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19243STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19244RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19245old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19246old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19247old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19248lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19249CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19250CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19251compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19252GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19253lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19254lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19255lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19256lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19257lt_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"`' 19258lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19259nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19260lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19261lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19262objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19263MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19264lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19265lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19266lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19267lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19268lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19269need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19270MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19271DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19272NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19273LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19274OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19275OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19276libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19277shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19278extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19279archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19280enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19281export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19282whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19283compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19284old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19285old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19286archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19287archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19288module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19289module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19290with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19291allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19292no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19293hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19294hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19295hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19296hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19297hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19298hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19299hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19300inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19301link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19302always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19303export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19304exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19305include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19306prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19307postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19308file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19309variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19310need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19311need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19312version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19313runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19314shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19315shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19316libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19317library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19318soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19319install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19320postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19321postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19322finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19323finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19324hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19325sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19326configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19327configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19328hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19329enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19330enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19331enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19332old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19333striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19334 19335LTCC='$LTCC' 19336LTCFLAGS='$LTCFLAGS' 19337compiler='$compiler_DEFAULT' 19338 19339# A function that is used when there is no print builtin or printf. 19340func_fallback_echo () 19341{ 19342 eval 'cat <<_LTECHO_EOF 19343\$1 19344_LTECHO_EOF' 19345} 19346 19347# Quote evaled strings. 19348for var in SHELL \ 19349ECHO \ 19350PATH_SEPARATOR \ 19351SED \ 19352GREP \ 19353EGREP \ 19354FGREP \ 19355LD \ 19356NM \ 19357LN_S \ 19358lt_SP2NL \ 19359lt_NL2SP \ 19360reload_flag \ 19361OBJDUMP \ 19362deplibs_check_method \ 19363file_magic_cmd \ 19364file_magic_glob \ 19365want_nocaseglob \ 19366DLLTOOL \ 19367sharedlib_from_linklib_cmd \ 19368AR \ 19369AR_FLAGS \ 19370archiver_list_spec \ 19371STRIP \ 19372RANLIB \ 19373CC \ 19374CFLAGS \ 19375compiler \ 19376lt_cv_sys_global_symbol_pipe \ 19377lt_cv_sys_global_symbol_to_cdecl \ 19378lt_cv_sys_global_symbol_to_import \ 19379lt_cv_sys_global_symbol_to_c_name_address \ 19380lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19381lt_cv_nm_interface \ 19382nm_file_list_spec \ 19383lt_cv_truncate_bin \ 19384lt_prog_compiler_no_builtin_flag \ 19385lt_prog_compiler_pic \ 19386lt_prog_compiler_wl \ 19387lt_prog_compiler_static \ 19388lt_cv_prog_compiler_c_o \ 19389need_locks \ 19390MANIFEST_TOOL \ 19391DSYMUTIL \ 19392NMEDIT \ 19393LIPO \ 19394OTOOL \ 19395OTOOL64 \ 19396shrext_cmds \ 19397export_dynamic_flag_spec \ 19398whole_archive_flag_spec \ 19399compiler_needs_object \ 19400with_gnu_ld \ 19401allow_undefined_flag \ 19402no_undefined_flag \ 19403hardcode_libdir_flag_spec \ 19404hardcode_libdir_separator \ 19405exclude_expsyms \ 19406include_expsyms \ 19407file_list_spec \ 19408variables_saved_for_relink \ 19409libname_spec \ 19410library_names_spec \ 19411soname_spec \ 19412install_override_mode \ 19413finish_eval \ 19414old_striplib \ 19415striplib; do 19416 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19417 *[\\\\\\\`\\"\\\$]*) 19418 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19419 ;; 19420 *) 19421 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19422 ;; 19423 esac 19424done 19425 19426# Double-quote double-evaled strings. 19427for var in reload_cmds \ 19428old_postinstall_cmds \ 19429old_postuninstall_cmds \ 19430old_archive_cmds \ 19431extract_expsyms_cmds \ 19432old_archive_from_new_cmds \ 19433old_archive_from_expsyms_cmds \ 19434archive_cmds \ 19435archive_expsym_cmds \ 19436module_cmds \ 19437module_expsym_cmds \ 19438export_symbols_cmds \ 19439prelink_cmds \ 19440postlink_cmds \ 19441postinstall_cmds \ 19442postuninstall_cmds \ 19443finish_cmds \ 19444sys_lib_search_path_spec \ 19445configure_time_dlsearch_path \ 19446configure_time_lt_sys_library_path; do 19447 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19448 *[\\\\\\\`\\"\\\$]*) 19449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19450 ;; 19451 *) 19452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19453 ;; 19454 esac 19455done 19456 19457ac_aux_dir='$ac_aux_dir' 19458 19459# See if we are running on zsh, and set the options that allow our 19460# commands through without removal of \ escapes INIT. 19461if test -n "\${ZSH_VERSION+set}"; then 19462 setopt NO_GLOB_SUBST 19463fi 19464 19465 19466 PACKAGE='$PACKAGE' 19467 VERSION='$VERSION' 19468 RM='$RM' 19469 ofile='$ofile' 19470 19471 19472 19473 19474_ACEOF 19475 19476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19477 19478# Handling of arguments. 19479for ac_config_target in $ac_config_targets 19480do 19481 case $ac_config_target in 19482 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19483 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19484 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19485 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19486 "libmp3lame/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/Makefile" ;; 19487 "libmp3lame/i386/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/i386/Makefile" ;; 19488 "libmp3lame/vector/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/vector/Makefile" ;; 19489 "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;; 19490 "mpglib/Makefile") CONFIG_FILES="$CONFIG_FILES mpglib/Makefile" ;; 19491 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19492 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 19493 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 19494 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19495 "Dll/Makefile") CONFIG_FILES="$CONFIG_FILES Dll/Makefile" ;; 19496 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 19497 "dshow/Makefile") CONFIG_FILES="$CONFIG_FILES dshow/Makefile" ;; 19498 "ACM/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/Makefile" ;; 19499 "ACM/ADbg/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ADbg/Makefile" ;; 19500 "ACM/ddk/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ddk/Makefile" ;; 19501 "ACM/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/tinyxml/Makefile" ;; 19502 "lame.spec") CONFIG_FILES="$CONFIG_FILES lame.spec" ;; 19503 "mac/Makefile") CONFIG_FILES="$CONFIG_FILES mac/Makefile" ;; 19504 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;; 19505 "macosx/English.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/English.lproj/Makefile" ;; 19506 "macosx/LAME.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/LAME.xcodeproj/Makefile" ;; 19507 "vc_solution/Makefile") CONFIG_FILES="$CONFIG_FILES vc_solution/Makefile" ;; 19508 19509 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19510 esac 19511done 19512 19513 19514# If the user did not use the arguments to specify the items to instantiate, 19515# then the envvar interface is used. Set only those that are not. 19516# We use the long form for the default assignment because of an extremely 19517# bizarre bug on SunOS 4.1.3. 19518if $ac_need_defaults; then 19519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19522fi 19523 19524# Have a temporary directory for convenience. Make it in the build tree 19525# simply because there is no reason against having it here, and in addition, 19526# creating and moving files from /tmp can sometimes cause problems. 19527# Hook for its removal unless debugging. 19528# Note that there is a small window in which the directory will not be cleaned: 19529# after its creation but before its name has been assigned to `$tmp'. 19530$debug || 19531{ 19532 tmp= ac_tmp= 19533 trap 'exit_status=$? 19534 : "${ac_tmp:=$tmp}" 19535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19536' 0 19537 trap 'as_fn_exit 1' 1 2 13 15 19538} 19539# Create a (secure) tmp directory for tmp files. 19540 19541{ 19542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19543 test -d "$tmp" 19544} || 19545{ 19546 tmp=./conf$$-$RANDOM 19547 (umask 077 && mkdir "$tmp") 19548} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19549ac_tmp=$tmp 19550 19551# Set up the scripts for CONFIG_FILES section. 19552# No need to generate them if there are no CONFIG_FILES. 19553# This happens for instance with `./config.status config.h'. 19554if test -n "$CONFIG_FILES"; then 19555 19556 19557ac_cr=`echo X | tr X '\015'` 19558# On cygwin, bash can eat \r inside `` if the user requested igncr. 19559# But we know of no other shell where ac_cr would be empty at this 19560# point, so we can use a bashism as a fallback. 19561if test "x$ac_cr" = x; then 19562 eval ac_cr=\$\'\\r\' 19563fi 19564ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19565if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19566 ac_cs_awk_cr='\\r' 19567else 19568 ac_cs_awk_cr=$ac_cr 19569fi 19570 19571echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19572_ACEOF 19573 19574 19575{ 19576 echo "cat >conf$$subs.awk <<_ACEOF" && 19577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19578 echo "_ACEOF" 19579} >conf$$subs.sh || 19580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19581ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19582ac_delim='%!_!# ' 19583for ac_last_try in false false false false false :; do 19584 . ./conf$$subs.sh || 19585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19586 19587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19588 if test $ac_delim_n = $ac_delim_num; then 19589 break 19590 elif $ac_last_try; then 19591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19592 else 19593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19594 fi 19595done 19596rm -f conf$$subs.sh 19597 19598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19599cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19600_ACEOF 19601sed -n ' 19602h 19603s/^/S["/; s/!.*/"]=/ 19604p 19605g 19606s/^[^!]*!// 19607:repl 19608t repl 19609s/'"$ac_delim"'$// 19610t delim 19611:nl 19612h 19613s/\(.\{148\}\)..*/\1/ 19614t more1 19615s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19616p 19617n 19618b repl 19619:more1 19620s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19621p 19622g 19623s/.\{148\}// 19624t nl 19625:delim 19626h 19627s/\(.\{148\}\)..*/\1/ 19628t more2 19629s/["\\]/\\&/g; s/^/"/; s/$/"/ 19630p 19631b 19632:more2 19633s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19634p 19635g 19636s/.\{148\}// 19637t delim 19638' <conf$$subs.awk | sed ' 19639/^[^""]/{ 19640 N 19641 s/\n// 19642} 19643' >>$CONFIG_STATUS || ac_write_fail=1 19644rm -f conf$$subs.awk 19645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19646_ACAWK 19647cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19648 for (key in S) S_is_set[key] = 1 19649 FS = "" 19650 19651} 19652{ 19653 line = $ 0 19654 nfields = split(line, field, "@") 19655 substed = 0 19656 len = length(field[1]) 19657 for (i = 2; i < nfields; i++) { 19658 key = field[i] 19659 keylen = length(key) 19660 if (S_is_set[key]) { 19661 value = S[key] 19662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19663 len += length(value) + length(field[++i]) 19664 substed = 1 19665 } else 19666 len += 1 + keylen 19667 } 19668 19669 print line 19670} 19671 19672_ACAWK 19673_ACEOF 19674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19675if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19677else 19678 cat 19679fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19681_ACEOF 19682 19683# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19684# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19685# trailing colons and then remove the whole line if VPATH becomes empty 19686# (actually we leave an empty line to preserve line numbers). 19687if test "x$srcdir" = x.; then 19688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19689h 19690s/// 19691s/^/:/ 19692s/[ ]*$/:/ 19693s/:\$(srcdir):/:/g 19694s/:\${srcdir}:/:/g 19695s/:@srcdir@:/:/g 19696s/^:*// 19697s/:*$// 19698x 19699s/\(=[ ]*\).*/\1/ 19700G 19701s/\n// 19702s/^[^=]*=[ ]*$// 19703}' 19704fi 19705 19706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19707fi # test -n "$CONFIG_FILES" 19708 19709# Set up the scripts for CONFIG_HEADERS section. 19710# No need to generate them if there are no CONFIG_HEADERS. 19711# This happens for instance with `./config.status Makefile'. 19712if test -n "$CONFIG_HEADERS"; then 19713cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19714BEGIN { 19715_ACEOF 19716 19717# Transform confdefs.h into an awk script `defines.awk', embedded as 19718# here-document in config.status, that substitutes the proper values into 19719# config.h.in to produce config.h. 19720 19721# Create a delimiter string that does not exist in confdefs.h, to ease 19722# handling of long lines. 19723ac_delim='%!_!# ' 19724for ac_last_try in false false :; do 19725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19726 if test -z "$ac_tt"; then 19727 break 19728 elif $ac_last_try; then 19729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19730 else 19731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19732 fi 19733done 19734 19735# For the awk script, D is an array of macro values keyed by name, 19736# likewise P contains macro parameters if any. Preserve backslash 19737# newline sequences. 19738 19739ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19740sed -n ' 19741s/.\{148\}/&'"$ac_delim"'/g 19742t rset 19743:rset 19744s/^[ ]*#[ ]*define[ ][ ]*/ / 19745t def 19746d 19747:def 19748s/\\$// 19749t bsnl 19750s/["\\]/\\&/g 19751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19752D["\1"]=" \3"/p 19753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19754d 19755:bsnl 19756s/["\\]/\\&/g 19757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19758D["\1"]=" \3\\\\\\n"\\/p 19759t cont 19760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19761t cont 19762d 19763:cont 19764n 19765s/.\{148\}/&'"$ac_delim"'/g 19766t clear 19767:clear 19768s/\\$// 19769t bsnlc 19770s/["\\]/\\&/g; s/^/"/; s/$/"/p 19771d 19772:bsnlc 19773s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19774b cont 19775' <confdefs.h | sed ' 19776s/'"$ac_delim"'/"\\\ 19777"/g' >>$CONFIG_STATUS || ac_write_fail=1 19778 19779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19780 for (key in D) D_is_set[key] = 1 19781 FS = "" 19782} 19783/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19784 line = \$ 0 19785 split(line, arg, " ") 19786 if (arg[1] == "#") { 19787 defundef = arg[2] 19788 mac1 = arg[3] 19789 } else { 19790 defundef = substr(arg[1], 2) 19791 mac1 = arg[2] 19792 } 19793 split(mac1, mac2, "(") #) 19794 macro = mac2[1] 19795 prefix = substr(line, 1, index(line, defundef) - 1) 19796 if (D_is_set[macro]) { 19797 # Preserve the white space surrounding the "#". 19798 print prefix "define", macro P[macro] D[macro] 19799 next 19800 } else { 19801 # Replace #undef with comments. This is necessary, for example, 19802 # in the case of _POSIX_SOURCE, which is predefined and required 19803 # on some systems where configure will not decide to define it. 19804 if (defundef == "undef") { 19805 print "/*", prefix defundef, macro, "*/" 19806 next 19807 } 19808 } 19809} 19810{ print } 19811_ACAWK 19812_ACEOF 19813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19815fi # test -n "$CONFIG_HEADERS" 19816 19817 19818eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19819shift 19820for ac_tag 19821do 19822 case $ac_tag in 19823 :[FHLC]) ac_mode=$ac_tag; continue;; 19824 esac 19825 case $ac_mode$ac_tag in 19826 :[FHL]*:*);; 19827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19828 :[FH]-) ac_tag=-:-;; 19829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19830 esac 19831 ac_save_IFS=$IFS 19832 IFS=: 19833 set x $ac_tag 19834 IFS=$ac_save_IFS 19835 shift 19836 ac_file=$1 19837 shift 19838 19839 case $ac_mode in 19840 :L) ac_source=$1;; 19841 :[FH]) 19842 ac_file_inputs= 19843 for ac_f 19844 do 19845 case $ac_f in 19846 -) ac_f="$ac_tmp/stdin";; 19847 *) # Look for the file first in the build tree, then in the source tree 19848 # (if the path is not absolute). The absolute path cannot be DOS-style, 19849 # because $ac_f cannot contain `:'. 19850 test -f "$ac_f" || 19851 case $ac_f in 19852 [\\/$]*) false;; 19853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19854 esac || 19855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19856 esac 19857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19858 as_fn_append ac_file_inputs " '$ac_f'" 19859 done 19860 19861 # Let's still pretend it is `configure' which instantiates (i.e., don't 19862 # use $as_me), people would be surprised to read: 19863 # /* config.h. Generated by config.status. */ 19864 configure_input='Generated from '` 19865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19866 `' by configure.' 19867 if test x"$ac_file" != x-; then 19868 configure_input="$ac_file. $configure_input" 19869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19870$as_echo "$as_me: creating $ac_file" >&6;} 19871 fi 19872 # Neutralize special characters interpreted by sed in replacement strings. 19873 case $configure_input in #( 19874 *\&* | *\|* | *\\* ) 19875 ac_sed_conf_input=`$as_echo "$configure_input" | 19876 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19877 *) ac_sed_conf_input=$configure_input;; 19878 esac 19879 19880 case $ac_tag in 19881 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19883 esac 19884 ;; 19885 esac 19886 19887 ac_dir=`$as_dirname -- "$ac_file" || 19888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19889 X"$ac_file" : 'X\(//\)[^/]' \| \ 19890 X"$ac_file" : 'X\(//\)$' \| \ 19891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19892$as_echo X"$ac_file" | 19893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19894 s//\1/ 19895 q 19896 } 19897 /^X\(\/\/\)[^/].*/{ 19898 s//\1/ 19899 q 19900 } 19901 /^X\(\/\/\)$/{ 19902 s//\1/ 19903 q 19904 } 19905 /^X\(\/\).*/{ 19906 s//\1/ 19907 q 19908 } 19909 s/.*/./; q'` 19910 as_dir="$ac_dir"; as_fn_mkdir_p 19911 ac_builddir=. 19912 19913case "$ac_dir" in 19914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19915*) 19916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19917 # A ".." for each directory in $ac_dir_suffix. 19918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19919 case $ac_top_builddir_sub in 19920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19922 esac ;; 19923esac 19924ac_abs_top_builddir=$ac_pwd 19925ac_abs_builddir=$ac_pwd$ac_dir_suffix 19926# for backward compatibility: 19927ac_top_builddir=$ac_top_build_prefix 19928 19929case $srcdir in 19930 .) # We are building in place. 19931 ac_srcdir=. 19932 ac_top_srcdir=$ac_top_builddir_sub 19933 ac_abs_top_srcdir=$ac_pwd ;; 19934 [\\/]* | ?:[\\/]* ) # Absolute name. 19935 ac_srcdir=$srcdir$ac_dir_suffix; 19936 ac_top_srcdir=$srcdir 19937 ac_abs_top_srcdir=$srcdir ;; 19938 *) # Relative name. 19939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19940 ac_top_srcdir=$ac_top_build_prefix$srcdir 19941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19942esac 19943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19944 19945 19946 case $ac_mode in 19947 :F) 19948 # 19949 # CONFIG_FILE 19950 # 19951 19952 case $INSTALL in 19953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19955 esac 19956 ac_MKDIR_P=$MKDIR_P 19957 case $MKDIR_P in 19958 [\\/$]* | ?:[\\/]* ) ;; 19959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19960 esac 19961_ACEOF 19962 19963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19964# If the template does not know about datarootdir, expand it. 19965# FIXME: This hack should be removed a few years after 2.60. 19966ac_datarootdir_hack=; ac_datarootdir_seen= 19967ac_sed_dataroot=' 19968/datarootdir/ { 19969 p 19970 q 19971} 19972/@datadir@/p 19973/@docdir@/p 19974/@infodir@/p 19975/@localedir@/p 19976/@mandir@/p' 19977case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19978*datarootdir*) ac_datarootdir_seen=yes;; 19979*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19981$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19982_ACEOF 19983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19984 ac_datarootdir_hack=' 19985 s&@datadir@&$datadir&g 19986 s&@docdir@&$docdir&g 19987 s&@infodir@&$infodir&g 19988 s&@localedir@&$localedir&g 19989 s&@mandir@&$mandir&g 19990 s&\\\${datarootdir}&$datarootdir&g' ;; 19991esac 19992_ACEOF 19993 19994# Neutralize VPATH when `$srcdir' = `.'. 19995# Shell code in configure.ac might set extrasub. 19996# FIXME: do we really want to maintain this feature? 19997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19998ac_sed_extra="$ac_vpsub 19999$extrasub 20000_ACEOF 20001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20002:t 20003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20004s|@configure_input@|$ac_sed_conf_input|;t t 20005s&@top_builddir@&$ac_top_builddir_sub&;t t 20006s&@top_build_prefix@&$ac_top_build_prefix&;t t 20007s&@srcdir@&$ac_srcdir&;t t 20008s&@abs_srcdir@&$ac_abs_srcdir&;t t 20009s&@top_srcdir@&$ac_top_srcdir&;t t 20010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20011s&@builddir@&$ac_builddir&;t t 20012s&@abs_builddir@&$ac_abs_builddir&;t t 20013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20014s&@INSTALL@&$ac_INSTALL&;t t 20015s&@MKDIR_P@&$ac_MKDIR_P&;t t 20016$ac_datarootdir_hack 20017" 20018eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20019 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20020 20021test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20022 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20024 "$ac_tmp/out"`; test -z "$ac_out"; } && 20025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20026which seems to be undefined. Please make sure it is defined" >&5 20027$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20028which seems to be undefined. Please make sure it is defined" >&2;} 20029 20030 rm -f "$ac_tmp/stdin" 20031 case $ac_file in 20032 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20033 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20034 esac \ 20035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20036 ;; 20037 :H) 20038 # 20039 # CONFIG_HEADER 20040 # 20041 if test x"$ac_file" != x-; then 20042 { 20043 $as_echo "/* $configure_input */" \ 20044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20045 } >"$ac_tmp/config.h" \ 20046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20047 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20048 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20049$as_echo "$as_me: $ac_file is unchanged" >&6;} 20050 else 20051 rm -f "$ac_file" 20052 mv "$ac_tmp/config.h" "$ac_file" \ 20053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20054 fi 20055 else 20056 $as_echo "/* $configure_input */" \ 20057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20058 || as_fn_error $? "could not create -" "$LINENO" 5 20059 fi 20060# Compute "$ac_file"'s index in $config_headers. 20061_am_arg="$ac_file" 20062_am_stamp_count=1 20063for _am_header in $config_headers :; do 20064 case $_am_header in 20065 $_am_arg | $_am_arg:* ) 20066 break ;; 20067 * ) 20068 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20069 esac 20070done 20071echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20072$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20073 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20074 X"$_am_arg" : 'X\(//\)$' \| \ 20075 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20076$as_echo X"$_am_arg" | 20077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20078 s//\1/ 20079 q 20080 } 20081 /^X\(\/\/\)[^/].*/{ 20082 s//\1/ 20083 q 20084 } 20085 /^X\(\/\/\)$/{ 20086 s//\1/ 20087 q 20088 } 20089 /^X\(\/\).*/{ 20090 s//\1/ 20091 q 20092 } 20093 s/.*/./; q'`/stamp-h$_am_stamp_count 20094 ;; 20095 20096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20097$as_echo "$as_me: executing $ac_file commands" >&6;} 20098 ;; 20099 esac 20100 20101 20102 case $ac_file$ac_mode in 20103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20104 # Older Autoconf quotes --file arguments for eval, but not when files 20105 # are listed without --file. Let's play safe and only enable the eval 20106 # if we detect the quoting. 20107 # TODO: see whether this extra hack can be removed once we start 20108 # requiring Autoconf 2.70 or later. 20109 case $CONFIG_FILES in #( 20110 *\'*) : 20111 eval set x "$CONFIG_FILES" ;; #( 20112 *) : 20113 set x $CONFIG_FILES ;; #( 20114 *) : 20115 ;; 20116esac 20117 shift 20118 # Used to flag and report bootstrapping failures. 20119 am_rc=0 20120 for am_mf 20121 do 20122 # Strip MF so we end up with the name of the file. 20123 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20124 # Check whether this is an Automake generated Makefile which includes 20125 # dependency-tracking related rules and includes. 20126 # Grep'ing the whole file directly is not great: AIX grep has a line 20127 # limit of 2048, but all sed's we know have understand at least 4000. 20128 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20129 || continue 20130 am_dirpart=`$as_dirname -- "$am_mf" || 20131$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20132 X"$am_mf" : 'X\(//\)[^/]' \| \ 20133 X"$am_mf" : 'X\(//\)$' \| \ 20134 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20135$as_echo X"$am_mf" | 20136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20137 s//\1/ 20138 q 20139 } 20140 /^X\(\/\/\)[^/].*/{ 20141 s//\1/ 20142 q 20143 } 20144 /^X\(\/\/\)$/{ 20145 s//\1/ 20146 q 20147 } 20148 /^X\(\/\).*/{ 20149 s//\1/ 20150 q 20151 } 20152 s/.*/./; q'` 20153 am_filepart=`$as_basename -- "$am_mf" || 20154$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20155 X"$am_mf" : 'X\(//\)$' \| \ 20156 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20157$as_echo X/"$am_mf" | 20158 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20159 s//\1/ 20160 q 20161 } 20162 /^X\/\(\/\/\)$/{ 20163 s//\1/ 20164 q 20165 } 20166 /^X\/\(\/\).*/{ 20167 s//\1/ 20168 q 20169 } 20170 s/.*/./; q'` 20171 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20172 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20173 | $MAKE -f - am--depfiles" >&5 20174 (cd "$am_dirpart" \ 20175 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20176 | $MAKE -f - am--depfiles) >&5 2>&5 20177 ac_status=$? 20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20179 (exit $ac_status); } || am_rc=$? 20180 done 20181 if test $am_rc -ne 0; then 20182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20184as_fn_error $? "Something went wrong bootstrapping makefile fragments 20185 for automatic dependency tracking. If GNU make was not used, consider 20186 re-running the configure script with MAKE=\"gmake\" (or whatever is 20187 necessary). You can also try re-running configure with the 20188 '--disable-dependency-tracking' option to at least be able to build 20189 the package (albeit without support for automatic dependency tracking). 20190See \`config.log' for more details" "$LINENO" 5; } 20191 fi 20192 { am_dirpart=; unset am_dirpart;} 20193 { am_filepart=; unset am_filepart;} 20194 { am_mf=; unset am_mf;} 20195 { am_rc=; unset am_rc;} 20196 rm -f conftest-deps.mk 20197} 20198 ;; 20199 "libtool":C) 20200 20201 # See if we are running on zsh, and set the options that allow our 20202 # commands through without removal of \ escapes. 20203 if test -n "${ZSH_VERSION+set}"; then 20204 setopt NO_GLOB_SUBST 20205 fi 20206 20207 cfgfile=${ofile}T 20208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20209 $RM "$cfgfile" 20210 20211 cat <<_LT_EOF >> "$cfgfile" 20212#! $SHELL 20213# Generated automatically by $as_me ($PACKAGE) $VERSION 20214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20215# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20216 20217# Provide generalized library-building support services. 20218# Written by Gordon Matzigkeit, 1996 20219 20220# Copyright (C) 2014 Free Software Foundation, Inc. 20221# This is free software; see the source for copying conditions. There is NO 20222# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20223 20224# GNU Libtool is free software; you can redistribute it and/or modify 20225# it under the terms of the GNU General Public License as published by 20226# the Free Software Foundation; either version 2 of of the License, or 20227# (at your option) any later version. 20228# 20229# As a special exception to the GNU General Public License, if you 20230# distribute this file as part of a program or library that is built 20231# using GNU Libtool, you may include this file under the same 20232# distribution terms that you use for the rest of that program. 20233# 20234# GNU Libtool is distributed in the hope that it will be useful, but 20235# WITHOUT ANY WARRANTY; without even the implied warranty of 20236# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20237# GNU General Public License for more details. 20238# 20239# You should have received a copy of the GNU General Public License 20240# along with this program. If not, see <http://www.gnu.org/licenses/>. 20241 20242 20243# The names of the tagged configurations supported by this script. 20244available_tags='' 20245 20246# Configured defaults for sys_lib_dlsearch_path munging. 20247: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20248 20249# ### BEGIN LIBTOOL CONFIG 20250 20251# Which release of libtool.m4 was used? 20252macro_version=$macro_version 20253macro_revision=$macro_revision 20254 20255# Whether or not to build shared libraries. 20256build_libtool_libs=$enable_shared 20257 20258# Whether or not to build static libraries. 20259build_old_libs=$enable_static 20260 20261# What type of objects to build. 20262pic_mode=$pic_mode 20263 20264# Whether or not to optimize for fast installation. 20265fast_install=$enable_fast_install 20266 20267# Shared archive member basename,for filename based shared library versioning on AIX. 20268shared_archive_member_spec=$shared_archive_member_spec 20269 20270# Shell to use when invoking shell scripts. 20271SHELL=$lt_SHELL 20272 20273# An echo program that protects backslashes. 20274ECHO=$lt_ECHO 20275 20276# The PATH separator for the build system. 20277PATH_SEPARATOR=$lt_PATH_SEPARATOR 20278 20279# The host system. 20280host_alias=$host_alias 20281host=$host 20282host_os=$host_os 20283 20284# The build system. 20285build_alias=$build_alias 20286build=$build 20287build_os=$build_os 20288 20289# A sed program that does not truncate output. 20290SED=$lt_SED 20291 20292# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20293Xsed="\$SED -e 1s/^X//" 20294 20295# A grep program that handles long lines. 20296GREP=$lt_GREP 20297 20298# An ERE matcher. 20299EGREP=$lt_EGREP 20300 20301# A literal string matcher. 20302FGREP=$lt_FGREP 20303 20304# A BSD- or MS-compatible name lister. 20305NM=$lt_NM 20306 20307# Whether we need soft or hard links. 20308LN_S=$lt_LN_S 20309 20310# What is the maximum length of a command? 20311max_cmd_len=$max_cmd_len 20312 20313# Object file suffix (normally "o"). 20314objext=$ac_objext 20315 20316# Executable file suffix (normally ""). 20317exeext=$exeext 20318 20319# whether the shell understands "unset". 20320lt_unset=$lt_unset 20321 20322# turn spaces into newlines. 20323SP2NL=$lt_lt_SP2NL 20324 20325# turn newlines into spaces. 20326NL2SP=$lt_lt_NL2SP 20327 20328# convert \$build file names to \$host format. 20329to_host_file_cmd=$lt_cv_to_host_file_cmd 20330 20331# convert \$build files to toolchain format. 20332to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20333 20334# An object symbol dumper. 20335OBJDUMP=$lt_OBJDUMP 20336 20337# Method to check whether dependent libraries are shared objects. 20338deplibs_check_method=$lt_deplibs_check_method 20339 20340# Command to use when deplibs_check_method = "file_magic". 20341file_magic_cmd=$lt_file_magic_cmd 20342 20343# How to find potential files when deplibs_check_method = "file_magic". 20344file_magic_glob=$lt_file_magic_glob 20345 20346# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20347want_nocaseglob=$lt_want_nocaseglob 20348 20349# DLL creation program. 20350DLLTOOL=$lt_DLLTOOL 20351 20352# Command to associate shared and link libraries. 20353sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20354 20355# The archiver. 20356AR=$lt_AR 20357 20358# Flags to create an archive. 20359AR_FLAGS=$lt_AR_FLAGS 20360 20361# How to feed a file listing to the archiver. 20362archiver_list_spec=$lt_archiver_list_spec 20363 20364# A symbol stripping program. 20365STRIP=$lt_STRIP 20366 20367# Commands used to install an old-style archive. 20368RANLIB=$lt_RANLIB 20369old_postinstall_cmds=$lt_old_postinstall_cmds 20370old_postuninstall_cmds=$lt_old_postuninstall_cmds 20371 20372# Whether to use a lock for old archive extraction. 20373lock_old_archive_extraction=$lock_old_archive_extraction 20374 20375# A C compiler. 20376LTCC=$lt_CC 20377 20378# LTCC compiler flags. 20379LTCFLAGS=$lt_CFLAGS 20380 20381# Take the output of nm and produce a listing of raw symbols and C names. 20382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20383 20384# Transform the output of nm in a proper C declaration. 20385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20386 20387# Transform the output of nm into a list of symbols to manually relocate. 20388global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20389 20390# Transform the output of nm in a C name address pair. 20391global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20392 20393# Transform the output of nm in a C name address pair when lib prefix is needed. 20394global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20395 20396# The name lister interface. 20397nm_interface=$lt_lt_cv_nm_interface 20398 20399# Specify filename containing input files for \$NM. 20400nm_file_list_spec=$lt_nm_file_list_spec 20401 20402# The root where to search for dependent libraries,and where our libraries should be installed. 20403lt_sysroot=$lt_sysroot 20404 20405# Command to truncate a binary pipe. 20406lt_truncate_bin=$lt_lt_cv_truncate_bin 20407 20408# The name of the directory that contains temporary libtool files. 20409objdir=$objdir 20410 20411# Used to examine libraries when file_magic_cmd begins with "file". 20412MAGIC_CMD=$MAGIC_CMD 20413 20414# Must we lock files when doing compilation? 20415need_locks=$lt_need_locks 20416 20417# Manifest tool. 20418MANIFEST_TOOL=$lt_MANIFEST_TOOL 20419 20420# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20421DSYMUTIL=$lt_DSYMUTIL 20422 20423# Tool to change global to local symbols on Mac OS X. 20424NMEDIT=$lt_NMEDIT 20425 20426# Tool to manipulate fat objects and archives on Mac OS X. 20427LIPO=$lt_LIPO 20428 20429# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20430OTOOL=$lt_OTOOL 20431 20432# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20433OTOOL64=$lt_OTOOL64 20434 20435# Old archive suffix (normally "a"). 20436libext=$libext 20437 20438# Shared library suffix (normally ".so"). 20439shrext_cmds=$lt_shrext_cmds 20440 20441# The commands to extract the exported symbol list from a shared archive. 20442extract_expsyms_cmds=$lt_extract_expsyms_cmds 20443 20444# Variables whose values should be saved in libtool wrapper scripts and 20445# restored at link time. 20446variables_saved_for_relink=$lt_variables_saved_for_relink 20447 20448# Do we need the "lib" prefix for modules? 20449need_lib_prefix=$need_lib_prefix 20450 20451# Do we need a version for libraries? 20452need_version=$need_version 20453 20454# Library versioning type. 20455version_type=$version_type 20456 20457# Shared library runtime path variable. 20458runpath_var=$runpath_var 20459 20460# Shared library path variable. 20461shlibpath_var=$shlibpath_var 20462 20463# Is shlibpath searched before the hard-coded library search path? 20464shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20465 20466# Format of library name prefix. 20467libname_spec=$lt_libname_spec 20468 20469# List of archive names. First name is the real one, the rest are links. 20470# The last name is the one that the linker finds with -lNAME 20471library_names_spec=$lt_library_names_spec 20472 20473# The coded name of the library, if different from the real name. 20474soname_spec=$lt_soname_spec 20475 20476# Permission mode override for installation of shared libraries. 20477install_override_mode=$lt_install_override_mode 20478 20479# Command to use after installation of a shared archive. 20480postinstall_cmds=$lt_postinstall_cmds 20481 20482# Command to use after uninstallation of a shared archive. 20483postuninstall_cmds=$lt_postuninstall_cmds 20484 20485# Commands used to finish a libtool library installation in a directory. 20486finish_cmds=$lt_finish_cmds 20487 20488# As "finish_cmds", except a single script fragment to be evaled but 20489# not shown. 20490finish_eval=$lt_finish_eval 20491 20492# Whether we should hardcode library paths into libraries. 20493hardcode_into_libs=$hardcode_into_libs 20494 20495# Compile-time system search path for libraries. 20496sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20497 20498# Detected run-time system search path for libraries. 20499sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20500 20501# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20502configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20503 20504# Whether dlopen is supported. 20505dlopen_support=$enable_dlopen 20506 20507# Whether dlopen of programs is supported. 20508dlopen_self=$enable_dlopen_self 20509 20510# Whether dlopen of statically linked programs is supported. 20511dlopen_self_static=$enable_dlopen_self_static 20512 20513# Commands to strip libraries. 20514old_striplib=$lt_old_striplib 20515striplib=$lt_striplib 20516 20517 20518# The linker used to build libraries. 20519LD=$lt_LD 20520 20521# How to create reloadable object files. 20522reload_flag=$lt_reload_flag 20523reload_cmds=$lt_reload_cmds 20524 20525# Commands used to build an old-style archive. 20526old_archive_cmds=$lt_old_archive_cmds 20527 20528# A language specific compiler. 20529CC=$lt_compiler 20530 20531# Is the compiler the GNU compiler? 20532with_gcc=$GCC 20533 20534# Compiler flag to turn off builtin functions. 20535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20536 20537# Additional compiler flags for building library objects. 20538pic_flag=$lt_lt_prog_compiler_pic 20539 20540# How to pass a linker flag through the compiler. 20541wl=$lt_lt_prog_compiler_wl 20542 20543# Compiler flag to prevent dynamic linking. 20544link_static_flag=$lt_lt_prog_compiler_static 20545 20546# Does compiler simultaneously support -c and -o options? 20547compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20548 20549# Whether or not to add -lc for building shared libraries. 20550build_libtool_need_lc=$archive_cmds_need_lc 20551 20552# Whether or not to disallow shared libs when runtime libs are static. 20553allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20554 20555# Compiler flag to allow reflexive dlopens. 20556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20557 20558# Compiler flag to generate shared objects directly from archives. 20559whole_archive_flag_spec=$lt_whole_archive_flag_spec 20560 20561# Whether the compiler copes with passing no objects directly. 20562compiler_needs_object=$lt_compiler_needs_object 20563 20564# Create an old-style archive from a shared archive. 20565old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20566 20567# Create a temporary old-style archive to link instead of a shared archive. 20568old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20569 20570# Commands used to build a shared archive. 20571archive_cmds=$lt_archive_cmds 20572archive_expsym_cmds=$lt_archive_expsym_cmds 20573 20574# Commands used to build a loadable module if different from building 20575# a shared archive. 20576module_cmds=$lt_module_cmds 20577module_expsym_cmds=$lt_module_expsym_cmds 20578 20579# Whether we are building with GNU ld or not. 20580with_gnu_ld=$lt_with_gnu_ld 20581 20582# Flag that allows shared libraries with undefined symbols to be built. 20583allow_undefined_flag=$lt_allow_undefined_flag 20584 20585# Flag that enforces no undefined symbols. 20586no_undefined_flag=$lt_no_undefined_flag 20587 20588# Flag to hardcode \$libdir into a binary during linking. 20589# This must work even if \$libdir does not exist 20590hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20591 20592# Whether we need a single "-rpath" flag with a separated argument. 20593hardcode_libdir_separator=$lt_hardcode_libdir_separator 20594 20595# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20596# DIR into the resulting binary. 20597hardcode_direct=$hardcode_direct 20598 20599# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20600# DIR into the resulting binary and the resulting library dependency is 20601# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20602# library is relocated. 20603hardcode_direct_absolute=$hardcode_direct_absolute 20604 20605# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20606# into the resulting binary. 20607hardcode_minus_L=$hardcode_minus_L 20608 20609# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20610# into the resulting binary. 20611hardcode_shlibpath_var=$hardcode_shlibpath_var 20612 20613# Set to "yes" if building a shared library automatically hardcodes DIR 20614# into the library and all subsequent libraries and executables linked 20615# against it. 20616hardcode_automatic=$hardcode_automatic 20617 20618# Set to yes if linker adds runtime paths of dependent libraries 20619# to runtime path list. 20620inherit_rpath=$inherit_rpath 20621 20622# Whether libtool must link a program against all its dependency libraries. 20623link_all_deplibs=$link_all_deplibs 20624 20625# Set to "yes" if exported symbols are required. 20626always_export_symbols=$always_export_symbols 20627 20628# The commands to list exported symbols. 20629export_symbols_cmds=$lt_export_symbols_cmds 20630 20631# Symbols that should not be listed in the preloaded symbols. 20632exclude_expsyms=$lt_exclude_expsyms 20633 20634# Symbols that must always be exported. 20635include_expsyms=$lt_include_expsyms 20636 20637# Commands necessary for linking programs (against libraries) with templates. 20638prelink_cmds=$lt_prelink_cmds 20639 20640# Commands necessary for finishing linking programs. 20641postlink_cmds=$lt_postlink_cmds 20642 20643# Specify filename containing input files. 20644file_list_spec=$lt_file_list_spec 20645 20646# How to hardcode a shared library path into an executable. 20647hardcode_action=$hardcode_action 20648 20649# ### END LIBTOOL CONFIG 20650 20651_LT_EOF 20652 20653 cat <<'_LT_EOF' >> "$cfgfile" 20654 20655# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20656 20657# func_munge_path_list VARIABLE PATH 20658# ----------------------------------- 20659# VARIABLE is name of variable containing _space_ separated list of 20660# directories to be munged by the contents of PATH, which is string 20661# having a format: 20662# "DIR[:DIR]:" 20663# string "DIR[ DIR]" will be prepended to VARIABLE 20664# ":DIR[:DIR]" 20665# string "DIR[ DIR]" will be appended to VARIABLE 20666# "DIRP[:DIRP]::[DIRA:]DIRA" 20667# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20668# "DIRA[ DIRA]" will be appended to VARIABLE 20669# "DIR[:DIR]" 20670# VARIABLE will be replaced by "DIR[ DIR]" 20671func_munge_path_list () 20672{ 20673 case x$2 in 20674 x) 20675 ;; 20676 *:) 20677 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20678 ;; 20679 x:*) 20680 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20681 ;; 20682 *::*) 20683 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20684 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20685 ;; 20686 *) 20687 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20688 ;; 20689 esac 20690} 20691 20692 20693# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20694func_cc_basename () 20695{ 20696 for cc_temp in $*""; do 20697 case $cc_temp in 20698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20700 \-*) ;; 20701 *) break;; 20702 esac 20703 done 20704 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20705} 20706 20707 20708# ### END FUNCTIONS SHARED WITH CONFIGURE 20709 20710_LT_EOF 20711 20712 case $host_os in 20713 aix3*) 20714 cat <<\_LT_EOF >> "$cfgfile" 20715# AIX sometimes has problems with the GCC collect2 program. For some 20716# reason, if we set the COLLECT_NAMES environment variable, the problems 20717# vanish in a puff of smoke. 20718if test set != "${COLLECT_NAMES+set}"; then 20719 COLLECT_NAMES= 20720 export COLLECT_NAMES 20721fi 20722_LT_EOF 20723 ;; 20724 esac 20725 20726 20727ltmain=$ac_aux_dir/ltmain.sh 20728 20729 20730 # We use sed instead of cat because bash on DJGPP gets confused if 20731 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20732 # text mode, it properly converts lines to CR/LF. This bash problem 20733 # is reportedly fixed, but why not run on old versions too? 20734 sed '$q' "$ltmain" >> "$cfgfile" \ 20735 || (rm -f "$cfgfile"; exit 1) 20736 20737 mv -f "$cfgfile" "$ofile" || 20738 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20739 chmod +x "$ofile" 20740 20741 ;; 20742 20743 esac 20744done # for ac_tag 20745 20746 20747as_fn_exit 0 20748_ACEOF 20749ac_clean_files=$ac_clean_files_save 20750 20751test $ac_write_fail = 0 || 20752 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20753 20754 20755# configure is writing to config.log, and then calls config.status. 20756# config.status does its own redirection, appending to config.log. 20757# Unfortunately, on DOS this fails, as config.log is still kept open 20758# by configure, so config.status won't be able to write to it; its 20759# output is simply discarded. So we exec the FD to /dev/null, 20760# effectively closing config.log, so it can be properly (re)opened and 20761# appended to by config.status. When coming back to configure, we 20762# need to make the FD available again. 20763if test "$no_create" != yes; then 20764 ac_cs_success=: 20765 ac_config_status_args= 20766 test "$silent" = yes && 20767 ac_config_status_args="$ac_config_status_args --quiet" 20768 exec 5>/dev/null 20769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20770 exec 5>>config.log 20771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20772 # would make configure fail if this is the last instruction. 20773 $ac_cs_success || as_fn_exit 1 20774fi 20775if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20777$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20778fi 20779 20780