1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libdvdread 6.1.1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libdvdread' 589PACKAGE_TARNAME='libdvdread' 590PACKAGE_VERSION='6.1.1' 591PACKAGE_STRING='libdvdread 6.1.1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/dvd_reader.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637DVDREAD_VERSION_MICRO 638DVDREAD_VERSION_MINOR 639DVDREAD_VERSION_MAJOR 640APIDOC_FALSE 641APIDOC_TRUE 642DOXYGEN 643CSS_REQUIRES 644CSS_LIBS 645CSS_CFLAGS 646PKG_CONFIG_LIBDIR 647PKG_CONFIG_PATH 648PKG_CONFIG 649DVDREAD_LTVERSION 650CPP 651LT_SYS_LIBRARY_PATH 652OTOOL64 653OTOOL 654LIPO 655NMEDIT 656DSYMUTIL 657MANIFEST_TOOL 658RANLIB 659ac_ct_AR 660AR 661DLLTOOL 662OBJDUMP 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688LIBTOOL 689MAINT 690MAINTAINER_MODE_FALSE 691MAINTAINER_MODE_TRUE 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719host_os 720host_vendor 721host_cpu 722host 723build_os 724build_vendor 725build_cpu 726build 727target_alias 728host_alias 729build_alias 730LIBS 731ECHO_T 732ECHO_N 733ECHO_C 734DEFS 735mandir 736localedir 737libdir 738psdir 739pdfdir 740dvidir 741htmldir 742infodir 743docdir 744oldincludedir 745includedir 746runstatedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL 766am__quote' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_maintainer_mode 772enable_shared 773enable_static 774with_pic 775enable_fast_install 776with_aix_soname 777enable_dependency_tracking 778with_gnu_ld 779with_sysroot 780enable_libtool_lock 781enable_largefile 782with_libdvdcss 783enable_dlfcn 784enable_apidoc 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794LT_SYS_LIBRARY_PATH 795CPP 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799CSS_CFLAGS 800CSS_LIBS' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839runstatedir='${localstatedir}/run' 840includedir='${prefix}/include' 841oldincludedir='/usr/include' 842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 843infodir='${datarootdir}/info' 844htmldir='${docdir}' 845dvidir='${docdir}' 846pdfdir='${docdir}' 847psdir='${docdir}' 848libdir='${exec_prefix}/lib' 849localedir='${datarootdir}/locale' 850mandir='${datarootdir}/man' 851 852ac_prev= 853ac_dashdash= 854for ac_option 855do 856 # If the previous option needs an argument, assign it. 857 if test -n "$ac_prev"; then 858 eval $ac_prev=\$ac_option 859 ac_prev= 860 continue 861 fi 862 863 case $ac_option in 864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 865 *=) ac_optarg= ;; 866 *) ac_optarg=yes ;; 867 esac 868 869 # Accept the important Cygnus configure options, so we can diagnose typos. 870 871 case $ac_dashdash$ac_option in 872 --) 873 ac_dashdash=yes ;; 874 875 -bindir | --bindir | --bindi | --bind | --bin | --bi) 876 ac_prev=bindir ;; 877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 878 bindir=$ac_optarg ;; 879 880 -build | --build | --buil | --bui | --bu) 881 ac_prev=build_alias ;; 882 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 883 build_alias=$ac_optarg ;; 884 885 -cache-file | --cache-file | --cache-fil | --cache-fi \ 886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 887 ac_prev=cache_file ;; 888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 890 cache_file=$ac_optarg ;; 891 892 --config-cache | -C) 893 cache_file=config.cache ;; 894 895 -datadir | --datadir | --datadi | --datad) 896 ac_prev=datadir ;; 897 -datadir=* | --datadir=* | --datadi=* | --datad=*) 898 datadir=$ac_optarg ;; 899 900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 901 | --dataroo | --dataro | --datar) 902 ac_prev=datarootdir ;; 903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 905 datarootdir=$ac_optarg ;; 906 907 -disable-* | --disable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: $ac_useropt" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: $ac_useropt" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1093 | --runstate | --runstat | --runsta | --runst | --runs \ 1094 | --run | --ru | --r) 1095 ac_prev=runstatedir ;; 1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1098 | --run=* | --ru=* | --r=*) 1099 runstatedir=$ac_optarg ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1197Try \`$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir runstatedir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: `$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294$as_echo X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures libdvdread 6.1.1 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libdvdread] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of libdvdread 6.1.1:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-silent-rules less verbose build output (undo: "make V=1") 1431 --disable-silent-rules verbose build output (undo: "make V=0") 1432 --disable-maintainer-mode 1433 disable make rules and dependencies not useful (and 1434 sometimes confusing) to the casual installer 1435 --enable-shared[=PKGS] build shared libraries [default=yes] 1436 --enable-static[=PKGS] build static libraries [default=yes] 1437 --enable-fast-install[=PKGS] 1438 optimize for fast installation [default=yes] 1439 --enable-dependency-tracking 1440 do not reject slow dependency extractors 1441 --disable-dependency-tracking 1442 speeds up one-time build 1443 --disable-libtool-lock avoid locking (might break parallel builds) 1444 --disable-largefile omit support for large files 1445 --enable-dlfcn use builtin dlfcn for mingw (default is auto) 1446 --disable-apidoc Disable building (with Doxygen) and intalling API 1447 documentation [default=auto@:@> 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-aix-soname=aix|svr4|both 1455 shared library versioning (aka "SONAME") variant to 1456 provide on AIX, [default=aix]. 1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1458 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1459 compiler's sysroot if not specified). 1460 --with-libdvdcss Link directly against libdvdcss [default=no] 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 LT_SYS_LIBRARY_PATH 1471 User-defined run-time library search path. 1472 CPP C preprocessor 1473 PKG_CONFIG path to pkg-config utility 1474 PKG_CONFIG_PATH 1475 directories to add to pkg-config's search path 1476 PKG_CONFIG_LIBDIR 1477 path overriding pkg-config's built-in search path 1478 CSS_CFLAGS C compiler flags for CSS, overriding pkg-config 1479 CSS_LIBS linker flags for CSS, overriding pkg-config 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to the package provider. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547libdvdread configure 6.1.1 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 test -x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists and can be compiled using the include files in 1648# INCLUDES, setting the cache variable VAR accordingly. 1649ac_fn_c_check_header_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653$as_echo_n "checking for $2... " >&6; } 1654if eval \${$3+:} false; then : 1655 $as_echo_n "(cached) " >&6 1656else 1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659$4 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_compile "$LINENO"; then : 1663 eval "$3=yes" 1664else 1665 eval "$3=no" 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1668fi 1669eval ac_res=\$$3 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671$as_echo "$ac_res" >&6; } 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 1674} # ac_fn_c_check_header_compile 1675 1676# ac_fn_c_try_cpp LINENO 1677# ---------------------- 1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_cpp () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 if { { ac_try="$ac_cpp conftest.$ac_ext" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } > conftest.i && { 1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 }; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_cpp 1712 1713# ac_fn_c_try_run LINENO 1714# ---------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1716# that executables *can* be run. 1717ac_fn_c_try_run () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>&5 1728 ac_status=$? 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1731 { { case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_try") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; }; }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: program exited with status $ac_status" >&5 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=$ac_status 1748fi 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_run 1754 1755# ac_fn_c_check_func LINENO FUNC VAR 1756# ---------------------------------- 1757# Tests whether FUNC exists, setting the cache variable VAR accordingly 1758ac_fn_c_check_func () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1770#define $2 innocuous_$2 1771 1772/* System header to define __stub macros and hopefully few prototypes, 1773 which can conflict with char $2 (); below. 1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1775 <limits.h> exists even on freestanding compilers. */ 1776 1777#ifdef __STDC__ 1778# include <limits.h> 1779#else 1780# include <assert.h> 1781#endif 1782 1783#undef $2 1784 1785/* Override any GCC internal prototype to avoid an error. 1786 Use char because int might match the return type of a GCC 1787 builtin and then its argument prototype would still apply. */ 1788#ifdef __cplusplus 1789extern "C" 1790#endif 1791char $2 (); 1792/* The GNU C library defines this for functions which it implements 1793 to always fail with ENOSYS. Some functions are actually named 1794 something starting with __ and the normal name is an alias. */ 1795#if defined __stub_$2 || defined __stub___$2 1796choke me 1797#endif 1798 1799int 1800main () 1801{ 1802return $2 (); 1803 ; 1804 return 0; 1805} 1806_ACEOF 1807if ac_fn_c_try_link "$LINENO"; then : 1808 eval "$3=yes" 1809else 1810 eval "$3=no" 1811fi 1812rm -f core conftest.err conftest.$ac_objext \ 1813 conftest$ac_exeext conftest.$ac_ext 1814fi 1815eval ac_res=\$$3 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1817$as_echo "$ac_res" >&6; } 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 1820} # ac_fn_c_check_func 1821 1822# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1823# ------------------------------------------------------- 1824# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1825# the include files in INCLUDES and setting the cache variable VAR 1826# accordingly. 1827ac_fn_c_check_header_mongrel () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 if eval \${$3+:} false; then : 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval \${$3+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839else 1840 # Is the header compilable? 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1842$as_echo_n "checking $2 usability... " >&6; } 1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845$4 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_compile "$LINENO"; then : 1849 ac_header_compiler=yes 1850else 1851 ac_header_compiler=no 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1855$as_echo "$ac_header_compiler" >&6; } 1856 1857# Is the header present? 1858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1859$as_echo_n "checking $2 presence... " >&6; } 1860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862#include <$2> 1863_ACEOF 1864if ac_fn_c_try_cpp "$LINENO"; then : 1865 ac_header_preproc=yes 1866else 1867 ac_header_preproc=no 1868fi 1869rm -f conftest.err conftest.i conftest.$ac_ext 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1871$as_echo "$ac_header_preproc" >&6; } 1872 1873# So? What about this header? 1874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1875 yes:no: ) 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1877$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1880 ;; 1881 no:yes:* ) 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1883$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1885$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1887$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1889$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1891$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1892 ;; 1893esac 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 eval "$3=\$ac_header_compiler" 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904fi 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_mongrel 1908 1909# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1910# --------------------------------------------- 1911# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1912# accordingly. 1913ac_fn_c_check_decl () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 as_decl_name=`echo $2|sed 's/ *(.*//'` 1917 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1919$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929#ifndef $as_decl_name 1930#ifdef __cplusplus 1931 (void) $as_decl_use; 1932#else 1933 (void) $as_decl_name; 1934#endif 1935#endif 1936 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 eval "$3=yes" 1943else 1944 eval "$3=no" 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_decl 1954cat >config.log <<_ACEOF 1955This file contains any messages produced by compilers while 1956running configure, to aid debugging if configure makes a mistake. 1957 1958It was created by libdvdread $as_me 6.1.1, which was 1959generated by GNU Autoconf 2.69. Invocation command line was 1960 1961 $ $0 $@ 1962 1963_ACEOF 1964exec 5>>config.log 1965{ 1966cat <<_ASUNAME 1967## --------- ## 1968## Platform. ## 1969## --------- ## 1970 1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1972uname -m = `(uname -m) 2>/dev/null || echo unknown` 1973uname -r = `(uname -r) 2>/dev/null || echo unknown` 1974uname -s = `(uname -s) 2>/dev/null || echo unknown` 1975uname -v = `(uname -v) 2>/dev/null || echo unknown` 1976 1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1979 1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1987 1988_ASUNAME 1989 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 $as_echo "PATH: $as_dir" 1996 done 1997IFS=$as_save_IFS 1998 1999} >&5 2000 2001cat >&5 <<_ACEOF 2002 2003 2004## ----------- ## 2005## Core tests. ## 2006## ----------- ## 2007 2008_ACEOF 2009 2010 2011# Keep a trace of the command line. 2012# Strip out --no-create and --no-recursion so they do not pile up. 2013# Strip out --silent because we don't want to record it for future runs. 2014# Also quote any args containing shell meta-characters. 2015# Make two passes to allow for proper duplicate-argument suppression. 2016ac_configure_args= 2017ac_configure_args0= 2018ac_configure_args1= 2019ac_must_keep_next=false 2020for ac_pass in 1 2 2021do 2022 for ac_arg 2023 do 2024 case $ac_arg in 2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2027 | -silent | --silent | --silen | --sile | --sil) 2028 continue ;; 2029 *\'*) 2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2031 esac 2032 case $ac_pass in 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2034 2) 2035 as_fn_append ac_configure_args1 " '$ac_arg'" 2036 if test $ac_must_keep_next = true; then 2037 ac_must_keep_next=false # Got value, back to normal. 2038 else 2039 case $ac_arg in 2040 *=* | --config-cache | -C | -disable-* | --disable-* \ 2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2043 | -with-* | --with-* | -without-* | --without-* | --x) 2044 case "$ac_configure_args0 " in 2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2046 esac 2047 ;; 2048 -* ) ac_must_keep_next=true ;; 2049 esac 2050 fi 2051 as_fn_append ac_configure_args " '$ac_arg'" 2052 ;; 2053 esac 2054 done 2055done 2056{ ac_configure_args0=; unset ac_configure_args0;} 2057{ ac_configure_args1=; unset ac_configure_args1;} 2058 2059# When interrupted or exit'd, cleanup temporary files, and complete 2060# config.log. We remove comments because anyway the quotes in there 2061# would cause problems or look ugly. 2062# WARNING: Use '\'' to represent an apostrophe within the trap. 2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2064trap 'exit_status=$? 2065 # Save into config.log some information that might help in debugging. 2066 { 2067 echo 2068 2069 $as_echo "## ---------------- ## 2070## Cache variables. ## 2071## ---------------- ##" 2072 echo 2073 # The following way of writing the cache mishandles newlines in values, 2074( 2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in #( 2078 *${as_nl}*) 2079 case $ac_var in #( 2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2082 esac 2083 case $ac_var in #( 2084 _ | IFS | as_nl) ;; #( 2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2086 *) { eval $ac_var=; unset $ac_var;} ;; 2087 esac ;; 2088 esac 2089 done 2090 (set) 2>&1 | 2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2092 *${as_nl}ac_space=\ *) 2093 sed -n \ 2094 "s/'\''/'\''\\\\'\'''\''/g; 2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2096 ;; #( 2097 *) 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2099 ;; 2100 esac | 2101 sort 2102) 2103 echo 2104 2105 $as_echo "## ----------------- ## 2106## Output variables. ## 2107## ----------------- ##" 2108 echo 2109 for ac_var in $ac_subst_vars 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 2119 if test -n "$ac_subst_files"; then 2120 $as_echo "## ------------------- ## 2121## File substitutions. ## 2122## ------------------- ##" 2123 echo 2124 for ac_var in $ac_subst_files 2125 do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in 2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2129 esac 2130 $as_echo "$ac_var='\''$ac_val'\''" 2131 done | sort 2132 echo 2133 fi 2134 2135 if test -s confdefs.h; then 2136 $as_echo "## ----------- ## 2137## confdefs.h. ## 2138## ----------- ##" 2139 echo 2140 cat confdefs.h 2141 echo 2142 fi 2143 test "$ac_signal" != 0 && 2144 $as_echo "$as_me: caught signal $ac_signal" 2145 $as_echo "$as_me: exit $exit_status" 2146 } >&5 2147 rm -f core *.core core.conftest.* && 2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2149 exit $exit_status 2150' 0 2151for ac_signal in 1 2 13 15; do 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2153done 2154ac_signal=0 2155 2156# confdefs.h avoids OS command line length limits that DEFS can exceed. 2157rm -f -r conftest* confdefs.h 2158 2159$as_echo "/* confdefs.h */" > confdefs.h 2160 2161# Predefined preprocessor variables. 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_NAME "$PACKAGE_NAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_VERSION "$PACKAGE_VERSION" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_STRING "$PACKAGE_STRING" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_URL "$PACKAGE_URL" 2185_ACEOF 2186 2187 2188# Let the site file select an alternate cache file if it wants to. 2189# Prefer an explicitly selected file to automatically selected ones. 2190ac_site_file1=NONE 2191ac_site_file2=NONE 2192if test -n "$CONFIG_SITE"; then 2193 # We do not want a PATH search for config.site. 2194 case $CONFIG_SITE in #(( 2195 -*) ac_site_file1=./$CONFIG_SITE;; 2196 */*) ac_site_file1=$CONFIG_SITE;; 2197 *) ac_site_file1=./$CONFIG_SITE;; 2198 esac 2199elif test "x$prefix" != xNONE; then 2200 ac_site_file1=$prefix/share/config.site 2201 ac_site_file2=$prefix/etc/config.site 2202else 2203 ac_site_file1=$ac_default_prefix/share/config.site 2204 ac_site_file2=$ac_default_prefix/etc/config.site 2205fi 2206for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2207do 2208 test "x$ac_site_file" = xNONE && continue 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2211$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2212 sed 's/^/| /' "$ac_site_file" >&5 2213 . "$ac_site_file" \ 2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216as_fn_error $? "failed to load site script $ac_site_file 2217See \`config.log' for more details" "$LINENO" 5; } 2218 fi 2219done 2220 2221if test -r "$cache_file"; then 2222 # Some versions of bash will fail to source /dev/null (special files 2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2226$as_echo "$as_me: loading cache $cache_file" >&6;} 2227 case $cache_file in 2228 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2229 *) . "./$cache_file";; 2230 esac 2231 fi 2232else 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2234$as_echo "$as_me: creating cache $cache_file" >&6;} 2235 >$cache_file 2236fi 2237 2238as_fn_append ac_header_list " sys/param.h" 2239as_fn_append ac_header_list " limits.h" 2240as_fn_append ac_header_list " dlfcn.h" 2241# Check that the precious variables saved in the cache have kept the same 2242# value. 2243ac_cache_corrupted=false 2244for ac_var in $ac_precious_vars; do 2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2246 eval ac_new_set=\$ac_env_${ac_var}_set 2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2248 eval ac_new_val=\$ac_env_${ac_var}_value 2249 case $ac_old_set,$ac_new_set in 2250 set,) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,set) 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2257 ac_cache_corrupted=: ;; 2258 ,);; 2259 *) 2260 if test "x$ac_old_val" != "x$ac_new_val"; then 2261 # differences in whitespace do not lead to failure. 2262 ac_old_val_w=`echo x $ac_old_val` 2263 ac_new_val_w=`echo x $ac_new_val` 2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2267 ac_cache_corrupted=: 2268 else 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2271 eval $ac_var=\$ac_old_val 2272 fi 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2274$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2276$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2277 fi;; 2278 esac 2279 # Pass precious variables to config.status. 2280 if test "$ac_new_set" = set; then 2281 case $ac_new_val in 2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2283 *) ac_arg=$ac_var=$ac_new_val ;; 2284 esac 2285 case " $ac_configure_args " in 2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2288 esac 2289 fi 2290done 2291if $ac_cache_corrupted; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2297fi 2298## -------------------- ## 2299## Main body of script. ## 2300## -------------------- ## 2301 2302ac_ext=c 2303ac_cpp='$CPP $CPPFLAGS' 2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2306ac_compiler_gnu=$ac_cv_c_compiler_gnu 2307 2308 2309 2310 2311 2312 2313ac_aux_dir= 2314for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2315 if test -f "$ac_dir/install-sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install-sh -c" 2318 break 2319 elif test -f "$ac_dir/install.sh"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/install.sh -c" 2322 break 2323 elif test -f "$ac_dir/shtool"; then 2324 ac_aux_dir=$ac_dir 2325 ac_install_sh="$ac_aux_dir/shtool install -c" 2326 break 2327 fi 2328done 2329if test -z "$ac_aux_dir"; then 2330 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2331fi 2332 2333# These three variables are undocumented and unsupported, 2334# and are intended to be withdrawn in a future Autoconf release. 2335# They can cause serious problems if a builder's source tree is in a directory 2336# whose full name contains unusual characters. 2337ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2338ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2339ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2340 2341 2342# Make sure we can run config.sub. 2343$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2344 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2345 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2347$as_echo_n "checking build system type... " >&6; } 2348if ${ac_cv_build+:} false; then : 2349 $as_echo_n "(cached) " >&6 2350else 2351 ac_build_alias=$build_alias 2352test "x$ac_build_alias" = x && 2353 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2354test "x$ac_build_alias" = x && 2355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2356ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2358 2359fi 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2361$as_echo "$ac_cv_build" >&6; } 2362case $ac_cv_build in 2363*-*-*) ;; 2364*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2365esac 2366build=$ac_cv_build 2367ac_save_IFS=$IFS; IFS='-' 2368set x $ac_cv_build 2369shift 2370build_cpu=$1 2371build_vendor=$2 2372shift; shift 2373# Remember, the first character of IFS is used to create $*, 2374# except with old shells: 2375build_os=$* 2376IFS=$ac_save_IFS 2377case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2378 2379 2380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2381$as_echo_n "checking host system type... " >&6; } 2382if ${ac_cv_host+:} false; then : 2383 $as_echo_n "(cached) " >&6 2384else 2385 if test "x$host_alias" = x; then 2386 ac_cv_host=$ac_cv_build 2387else 2388 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2390fi 2391 2392fi 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2394$as_echo "$ac_cv_host" >&6; } 2395case $ac_cv_host in 2396*-*-*) ;; 2397*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2398esac 2399host=$ac_cv_host 2400ac_save_IFS=$IFS; IFS='-' 2401set x $ac_cv_host 2402shift 2403host_cpu=$1 2404host_vendor=$2 2405shift; shift 2406# Remember, the first character of IFS is used to create $*, 2407# except with old shells: 2408host_os=$* 2409IFS=$ac_save_IFS 2410case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2411 2412 2413 2414am__api_version='1.16' 2415 2416# Find a good install program. We prefer a C program (faster), 2417# so one script is as good as another. But avoid the broken or 2418# incompatible versions: 2419# SysV /etc/install, /usr/sbin/install 2420# SunOS /usr/etc/install 2421# IRIX /sbin/install 2422# AIX /bin/install 2423# AmigaOS /C/install, which installs bootblocks on floppy discs 2424# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2425# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2426# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2427# OS/2's system install, which has a completely different semantic 2428# ./install, which can be erroneously created by make from ./install.sh. 2429# Reject install programs that cannot install multiple files. 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2431$as_echo_n "checking for a BSD-compatible install... " >&6; } 2432if test -z "$INSTALL"; then 2433if ${ac_cv_path_install+:} false; then : 2434 $as_echo_n "(cached) " >&6 2435else 2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 # Account for people who put trailing slashes in PATH elements. 2442case $as_dir/ in #(( 2443 ./ | .// | /[cC]/* | \ 2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2445 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2446 /usr/ucb/* ) ;; 2447 *) 2448 # OSF1 and SCO ODT 3.0 have their own names for install. 2449 # Don't use installbsd from OSF since it installs stuff as root 2450 # by default. 2451 for ac_prog in ginstall scoinst install; do 2452 for ac_exec_ext in '' $ac_executable_extensions; do 2453 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2454 if test $ac_prog = install && 2455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2456 # AIX install. It has an incompatible calling convention. 2457 : 2458 elif test $ac_prog = install && 2459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2460 # program-specific install script used by HP pwplus--don't use. 2461 : 2462 else 2463 rm -rf conftest.one conftest.two conftest.dir 2464 echo one > conftest.one 2465 echo two > conftest.two 2466 mkdir conftest.dir 2467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2468 test -s conftest.one && test -s conftest.two && 2469 test -s conftest.dir/conftest.one && 2470 test -s conftest.dir/conftest.two 2471 then 2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2473 break 3 2474 fi 2475 fi 2476 fi 2477 done 2478 done 2479 ;; 2480esac 2481 2482 done 2483IFS=$as_save_IFS 2484 2485rm -rf conftest.one conftest.two conftest.dir 2486 2487fi 2488 if test "${ac_cv_path_install+set}" = set; then 2489 INSTALL=$ac_cv_path_install 2490 else 2491 # As a last resort, use the slow shell script. Don't cache a 2492 # value for INSTALL within a source directory, because that will 2493 # break other packages using the cache if that directory is 2494 # removed, or if the value is a relative name. 2495 INSTALL=$ac_install_sh 2496 fi 2497fi 2498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2499$as_echo "$INSTALL" >&6; } 2500 2501# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2502# It thinks the first close brace ends the variable substitution. 2503test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2504 2505test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2506 2507test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2508 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2510$as_echo_n "checking whether build environment is sane... " >&6; } 2511# Reject unsafe characters in $srcdir or the absolute working directory 2512# name. Accept space and tab only in the latter. 2513am_lf=' 2514' 2515case `pwd` in 2516 *[\\\"\#\$\&\'\`$am_lf]*) 2517 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2518esac 2519case $srcdir in 2520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2521 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2522esac 2523 2524# Do 'set' in a subshell so we don't clobber the current shell's 2525# arguments. Must try -L first in case configure is actually a 2526# symlink; some systems play weird games with the mod time of symlinks 2527# (eg FreeBSD returns the mod time of the symlink's containing 2528# directory). 2529if ( 2530 am_has_slept=no 2531 for am_try in 1 2; do 2532 echo "timestamp, slept: $am_has_slept" > conftest.file 2533 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2534 if test "$*" = "X"; then 2535 # -L didn't work. 2536 set X `ls -t "$srcdir/configure" conftest.file` 2537 fi 2538 if test "$*" != "X $srcdir/configure conftest.file" \ 2539 && test "$*" != "X conftest.file $srcdir/configure"; then 2540 2541 # If neither matched, then we have a broken ls. This can happen 2542 # if, for instance, CONFIG_SHELL is bash and it inherits a 2543 # broken ls alias from the environment. This has actually 2544 # happened. Such a system could not be considered "sane". 2545 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2546 alias in your environment" "$LINENO" 5 2547 fi 2548 if test "$2" = conftest.file || test $am_try -eq 2; then 2549 break 2550 fi 2551 # Just in case. 2552 sleep 1 2553 am_has_slept=yes 2554 done 2555 test "$2" = conftest.file 2556 ) 2557then 2558 # Ok. 2559 : 2560else 2561 as_fn_error $? "newly created file is older than distributed files! 2562Check your system clock" "$LINENO" 5 2563fi 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2565$as_echo "yes" >&6; } 2566# If we didn't sleep, we still need to ensure time stamps of config.status and 2567# generated files are strictly newer. 2568am_sleep_pid= 2569if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2570 ( sleep 1 ) & 2571 am_sleep_pid=$! 2572fi 2573 2574rm -f conftest.file 2575 2576test "$program_prefix" != NONE && 2577 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2578# Use a double $ so make ignores it. 2579test "$program_suffix" != NONE && 2580 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2581# Double any \ or $. 2582# By default was `s,x,x', remove it if useless. 2583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2585 2586# Expand $ac_aux_dir to an absolute path. 2587am_aux_dir=`cd "$ac_aux_dir" && pwd` 2588 2589if test x"${MISSING+set}" != xset; then 2590 case $am_aux_dir in 2591 *\ * | *\ *) 2592 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2593 *) 2594 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2595 esac 2596fi 2597# Use eval to expand $SHELL 2598if eval "$MISSING --is-lightweight"; then 2599 am_missing_run="$MISSING " 2600else 2601 am_missing_run= 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2603$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2604fi 2605 2606if test x"${install_sh+set}" != xset; then 2607 case $am_aux_dir in 2608 *\ * | *\ *) 2609 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2610 *) 2611 install_sh="\${SHELL} $am_aux_dir/install-sh" 2612 esac 2613fi 2614 2615# Installed binaries are usually stripped using 'strip' when the user 2616# run "make install-strip". However 'strip' might not be the right 2617# tool to use in cross-compilation environments, therefore Automake 2618# will honor the 'STRIP' environment variable to overrule this program. 2619if test "$cross_compiling" != no; then 2620 if test -n "$ac_tool_prefix"; then 2621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2622set dummy ${ac_tool_prefix}strip; ac_word=$2 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if ${ac_cv_prog_STRIP+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$STRIP"; then 2629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2638 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643 done 2644IFS=$as_save_IFS 2645 2646fi 2647fi 2648STRIP=$ac_cv_prog_STRIP 2649if test -n "$STRIP"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2651$as_echo "$STRIP" >&6; } 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654$as_echo "no" >&6; } 2655fi 2656 2657 2658fi 2659if test -z "$ac_cv_prog_STRIP"; then 2660 ac_ct_STRIP=$STRIP 2661 # Extract the first word of "strip", so it can be a program name with args. 2662set dummy strip; ac_word=$2 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664$as_echo_n "checking for $ac_word... " >&6; } 2665if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$ac_ct_STRIP"; then 2669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_ac_ct_STRIP="strip" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2689if test -n "$ac_ct_STRIP"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2691$as_echo "$ac_ct_STRIP" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 if test "x$ac_ct_STRIP" = x; then 2698 STRIP=":" 2699 else 2700 case $cross_compiling:$ac_tool_warned in 2701yes:) 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2704ac_tool_warned=yes ;; 2705esac 2706 STRIP=$ac_ct_STRIP 2707 fi 2708else 2709 STRIP="$ac_cv_prog_STRIP" 2710fi 2711 2712fi 2713INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2714 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2716$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2717if test -z "$MKDIR_P"; then 2718 if ${ac_cv_path_mkdir+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_prog in mkdir gmkdir; do 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2729 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2730 'mkdir (GNU coreutils) '* | \ 2731 'mkdir (coreutils) '* | \ 2732 'mkdir (fileutils) '4.1*) 2733 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2734 break 3;; 2735 esac 2736 done 2737 done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742 2743 test -d ./--version && rmdir ./--version 2744 if test "${ac_cv_path_mkdir+set}" = set; then 2745 MKDIR_P="$ac_cv_path_mkdir -p" 2746 else 2747 # As a last resort, use the slow shell script. Don't cache a 2748 # value for MKDIR_P within a source directory, because that will 2749 # break other packages using the cache if that directory is 2750 # removed, or if the value is a relative name. 2751 MKDIR_P="$ac_install_sh -d" 2752 fi 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2755$as_echo "$MKDIR_P" >&6; } 2756 2757for ac_prog in gawk mawk nawk awk 2758do 2759 # Extract the first word of "$ac_prog", so it can be a program name with args. 2760set dummy $ac_prog; ac_word=$2 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762$as_echo_n "checking for $ac_word... " >&6; } 2763if ${ac_cv_prog_AWK+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test -n "$AWK"; then 2767 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2776 ac_cv_prog_AWK="$ac_prog" 2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781 done 2782IFS=$as_save_IFS 2783 2784fi 2785fi 2786AWK=$ac_cv_prog_AWK 2787if test -n "$AWK"; then 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2789$as_echo "$AWK" >&6; } 2790else 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792$as_echo "no" >&6; } 2793fi 2794 2795 2796 test -n "$AWK" && break 2797done 2798 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2800$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2801set x ${MAKE-make} 2802ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2803if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 cat >conftest.make <<\_ACEOF 2807SHELL = /bin/sh 2808all: 2809 @echo '@@@%%%=$(MAKE)=@@@%%%' 2810_ACEOF 2811# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2812case `${MAKE-make} -f conftest.make 2>/dev/null` in 2813 *@@@%%%=?*=@@@%%%*) 2814 eval ac_cv_prog_make_${ac_make}_set=yes;; 2815 *) 2816 eval ac_cv_prog_make_${ac_make}_set=no;; 2817esac 2818rm -f conftest.make 2819fi 2820if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2822$as_echo "yes" >&6; } 2823 SET_MAKE= 2824else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826$as_echo "no" >&6; } 2827 SET_MAKE="MAKE=${MAKE-make}" 2828fi 2829 2830rm -rf .tst 2>/dev/null 2831mkdir .tst 2>/dev/null 2832if test -d .tst; then 2833 am__leading_dot=. 2834else 2835 am__leading_dot=_ 2836fi 2837rmdir .tst 2>/dev/null 2838 2839# Check whether --enable-silent-rules was given. 2840if test "${enable_silent_rules+set}" = set; then : 2841 enableval=$enable_silent_rules; 2842fi 2843 2844case $enable_silent_rules in # ((( 2845 yes) AM_DEFAULT_VERBOSITY=0;; 2846 no) AM_DEFAULT_VERBOSITY=1;; 2847 *) AM_DEFAULT_VERBOSITY=1;; 2848esac 2849am_make=${MAKE-make} 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2851$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2852if ${am_cv_make_support_nested_variables+:} false; then : 2853 $as_echo_n "(cached) " >&6 2854else 2855 if $as_echo 'TRUE=$(BAR$(V)) 2856BAR0=false 2857BAR1=true 2858V=1 2859am__doit: 2860 @$(TRUE) 2861.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2862 am_cv_make_support_nested_variables=yes 2863else 2864 am_cv_make_support_nested_variables=no 2865fi 2866fi 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2868$as_echo "$am_cv_make_support_nested_variables" >&6; } 2869if test $am_cv_make_support_nested_variables = yes; then 2870 AM_V='$(V)' 2871 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2872else 2873 AM_V=$AM_DEFAULT_VERBOSITY 2874 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2875fi 2876AM_BACKSLASH='\' 2877 2878if test "`cd $srcdir && pwd`" != "`pwd`"; then 2879 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2880 # is not polluted with repeated "-I." 2881 am__isrc=' -I$(srcdir)' 2882 # test to see if srcdir already configured 2883 if test -f $srcdir/config.status; then 2884 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2885 fi 2886fi 2887 2888# test whether we have cygpath 2889if test -z "$CYGPATH_W"; then 2890 if (cygpath --version) >/dev/null 2>/dev/null; then 2891 CYGPATH_W='cygpath -w' 2892 else 2893 CYGPATH_W=echo 2894 fi 2895fi 2896 2897 2898# Define the identity of the package. 2899 PACKAGE='libdvdread' 2900 VERSION='6.1.1' 2901 2902 2903cat >>confdefs.h <<_ACEOF 2904#define PACKAGE "$PACKAGE" 2905_ACEOF 2906 2907 2908cat >>confdefs.h <<_ACEOF 2909#define VERSION "$VERSION" 2910_ACEOF 2911 2912# Some tools Automake needs. 2913 2914ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2915 2916 2917AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2918 2919 2920AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2921 2922 2923AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2924 2925 2926MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2927 2928# For better backward compatibility. To be removed once Automake 1.9.x 2929# dies out for good. For more background, see: 2930# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2931# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2932mkdir_p='$(MKDIR_P)' 2933 2934# We need awk for the "check" target (and possibly the TAP driver). The 2935# system "awk" is bad on some platforms. 2936# Always define AMTAR for backward compatibility. Yes, it's still used 2937# in the wild :-( We should find a proper way to deprecate it ... 2938AMTAR='$${TAR-tar}' 2939 2940 2941# We'll loop over all known methods to create a tar archive until one works. 2942_am_tools='gnutar pax cpio none' 2943 2944am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2945 2946 2947 2948 2949 2950 2951# POSIX will say in a future version that running "rm -f" with no argument 2952# is OK; and we want to be able to make that assumption in our Makefile 2953# recipes. So use an aggressive probe to check that the usage we want is 2954# actually supported "in the wild" to an acceptable degree. 2955# See automake bug#10828. 2956# To make any issue more visible, cause the running configure to be aborted 2957# by default if the 'rm' program in use doesn't match our expectations; the 2958# user can still override this though. 2959if rm -f && rm -fr && rm -rf; then : OK; else 2960 cat >&2 <<'END' 2961Oops! 2962 2963Your 'rm' program seems unable to run without file operands specified 2964on the command line, even when the '-f' option is present. This is contrary 2965to the behaviour of most rm programs out there, and not conforming with 2966the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2967 2968Please tell bug-automake@gnu.org about your system, including the value 2969of your $PATH and any error possibly output before this message. This 2970can help us improve future automake versions. 2971 2972END 2973 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2974 echo 'Configuration will proceed anyway, since you have set the' >&2 2975 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2976 echo >&2 2977 else 2978 cat >&2 <<'END' 2979Aborting the configuration process, to ensure you take notice of the issue. 2980 2981You can download and install GNU coreutils to get an 'rm' implementation 2982that behaves properly: <https://www.gnu.org/software/coreutils/>. 2983 2984If you want to complete the configuration process using your problematic 2985'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2986to "yes", and re-run configure. 2987 2988END 2989 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2990 fi 2991fi 2992 2993 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2995$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2996 # Check whether --enable-maintainer-mode was given. 2997if test "${enable_maintainer_mode+set}" = set; then : 2998 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2999else 3000 USE_MAINTAINER_MODE=yes 3001fi 3002 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3004$as_echo "$USE_MAINTAINER_MODE" >&6; } 3005 if test $USE_MAINTAINER_MODE = yes; then 3006 MAINTAINER_MODE_TRUE= 3007 MAINTAINER_MODE_FALSE='#' 3008else 3009 MAINTAINER_MODE_TRUE='#' 3010 MAINTAINER_MODE_FALSE= 3011fi 3012 3013 MAINT=$MAINTAINER_MODE_TRUE 3014 3015 3016# Check whether --enable-silent-rules was given. 3017if test "${enable_silent_rules+set}" = set; then : 3018 enableval=$enable_silent_rules; 3019fi 3020 3021case $enable_silent_rules in # ((( 3022 yes) AM_DEFAULT_VERBOSITY=0;; 3023 no) AM_DEFAULT_VERBOSITY=1;; 3024 *) AM_DEFAULT_VERBOSITY=0;; 3025esac 3026am_make=${MAKE-make} 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3028$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3029if ${am_cv_make_support_nested_variables+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 if $as_echo 'TRUE=$(BAR$(V)) 3033BAR0=false 3034BAR1=true 3035V=1 3036am__doit: 3037 @$(TRUE) 3038.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3039 am_cv_make_support_nested_variables=yes 3040else 3041 am_cv_make_support_nested_variables=no 3042fi 3043fi 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3045$as_echo "$am_cv_make_support_nested_variables" >&6; } 3046if test $am_cv_make_support_nested_variables = yes; then 3047 AM_V='$(V)' 3048 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3049else 3050 AM_V=$AM_DEFAULT_VERBOSITY 3051 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3052fi 3053AM_BACKSLASH='\' 3054 3055 3056case `pwd` in 3057 *\ * | *\ *) 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3059$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3060esac 3061 3062 3063 3064macro_version='2.4.6' 3065macro_revision='2.4.6' 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079ltmain=$ac_aux_dir/ltmain.sh 3080 3081# Backslashify metacharacters that are still active within 3082# double-quoted strings. 3083sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3084 3085# Same as above, but do not quote variable references. 3086double_quote_subst='s/\(["`\\]\)/\\\1/g' 3087 3088# Sed substitution to delay expansion of an escaped shell variable in a 3089# double_quote_subst'ed string. 3090delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3091 3092# Sed substitution to delay expansion of an escaped single quote. 3093delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3094 3095# Sed substitution to avoid accidental globbing in evaled expressions 3096no_glob_subst='s/\*/\\\*/g' 3097 3098ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3099ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3100ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3101 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3103$as_echo_n "checking how to print strings... " >&6; } 3104# Test print first, because it will be a builtin if present. 3105if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3106 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3107 ECHO='print -r --' 3108elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3109 ECHO='printf %s\n' 3110else 3111 # Use this function as a fallback that always works. 3112 func_fallback_echo () 3113 { 3114 eval 'cat <<_LTECHO_EOF 3115$1 3116_LTECHO_EOF' 3117 } 3118 ECHO='func_fallback_echo' 3119fi 3120 3121# func_echo_all arg... 3122# Invoke $ECHO with all args, space-separated. 3123func_echo_all () 3124{ 3125 $ECHO "" 3126} 3127 3128case $ECHO in 3129 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3130$as_echo "printf" >&6; } ;; 3131 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3132$as_echo "print -r" >&6; } ;; 3133 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3134$as_echo "cat" >&6; } ;; 3135esac 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150DEPDIR="${am__leading_dot}deps" 3151 3152ac_config_commands="$ac_config_commands depfiles" 3153 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3155$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3156cat > confinc.mk << 'END' 3157am__doit: 3158 @echo this is the am__doit target >confinc.out 3159.PHONY: am__doit 3160END 3161am__include="#" 3162am__quote= 3163# BSD make does it like this. 3164echo '.include "confinc.mk" # ignored' > confmf.BSD 3165# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3166echo 'include confinc.mk # ignored' > confmf.GNU 3167_am_result=no 3168for s in GNU BSD; do 3169 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3170 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } 3174 case $?:`cat confinc.out 2>/dev/null` in #( 3175 '0:this is the am__doit target') : 3176 case $s in #( 3177 BSD) : 3178 am__include='.include' am__quote='"' ;; #( 3179 *) : 3180 am__include='include' am__quote='' ;; 3181esac ;; #( 3182 *) : 3183 ;; 3184esac 3185 if test "$am__include" != "#"; then 3186 _am_result="yes ($s style)" 3187 break 3188 fi 3189done 3190rm -f confinc.* confmf.* 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3192$as_echo "${_am_result}" >&6; } 3193 3194# Check whether --enable-dependency-tracking was given. 3195if test "${enable_dependency_tracking+set}" = set; then : 3196 enableval=$enable_dependency_tracking; 3197fi 3198 3199if test "x$enable_dependency_tracking" != xno; then 3200 am_depcomp="$ac_aux_dir/depcomp" 3201 AMDEPBACKSLASH='\' 3202 am__nodep='_no' 3203fi 3204 if test "x$enable_dependency_tracking" != xno; then 3205 AMDEP_TRUE= 3206 AMDEP_FALSE='#' 3207else 3208 AMDEP_TRUE='#' 3209 AMDEP_FALSE= 3210fi 3211 3212 3213ac_ext=c 3214ac_cpp='$CPP $CPPFLAGS' 3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3217ac_compiler_gnu=$ac_cv_c_compiler_gnu 3218if test -n "$ac_tool_prefix"; then 3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3220set dummy ${ac_tool_prefix}gcc; ac_word=$2 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222$as_echo_n "checking for $ac_word... " >&6; } 3223if ${ac_cv_prog_CC+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -n "$CC"; then 3227 ac_cv_prog_CC="$CC" # Let the user override the test. 3228else 3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3236 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240done 3241 done 3242IFS=$as_save_IFS 3243 3244fi 3245fi 3246CC=$ac_cv_prog_CC 3247if test -n "$CC"; then 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3249$as_echo "$CC" >&6; } 3250else 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252$as_echo "no" >&6; } 3253fi 3254 3255 3256fi 3257if test -z "$ac_cv_prog_CC"; then 3258 ac_ct_CC=$CC 3259 # Extract the first word of "gcc", so it can be a program name with args. 3260set dummy gcc; ac_word=$2 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3262$as_echo_n "checking for $ac_word... " >&6; } 3263if ${ac_cv_prog_ac_ct_CC+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 if test -n "$ac_ct_CC"; then 3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3268else 3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3270for as_dir in $PATH 3271do 3272 IFS=$as_save_IFS 3273 test -z "$as_dir" && as_dir=. 3274 for ac_exec_ext in '' $ac_executable_extensions; do 3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3276 ac_cv_prog_ac_ct_CC="gcc" 3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3278 break 2 3279 fi 3280done 3281 done 3282IFS=$as_save_IFS 3283 3284fi 3285fi 3286ac_ct_CC=$ac_cv_prog_ac_ct_CC 3287if test -n "$ac_ct_CC"; then 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3289$as_echo "$ac_ct_CC" >&6; } 3290else 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292$as_echo "no" >&6; } 3293fi 3294 3295 if test "x$ac_ct_CC" = x; then 3296 CC="" 3297 else 3298 case $cross_compiling:$ac_tool_warned in 3299yes:) 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3302ac_tool_warned=yes ;; 3303esac 3304 CC=$ac_ct_CC 3305 fi 3306else 3307 CC="$ac_cv_prog_CC" 3308fi 3309 3310if test -z "$CC"; then 3311 if test -n "$ac_tool_prefix"; then 3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3313set dummy ${ac_tool_prefix}cc; ac_word=$2 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315$as_echo_n "checking for $ac_word... " >&6; } 3316if ${ac_cv_prog_CC+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 if test -n "$CC"; then 3320 ac_cv_prog_CC="$CC" # Let the user override the test. 3321else 3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3323for as_dir in $PATH 3324do 3325 IFS=$as_save_IFS 3326 test -z "$as_dir" && as_dir=. 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3329 ac_cv_prog_CC="${ac_tool_prefix}cc" 3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337fi 3338fi 3339CC=$ac_cv_prog_CC 3340if test -n "$CC"; then 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3342$as_echo "$CC" >&6; } 3343else 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345$as_echo "no" >&6; } 3346fi 3347 3348 3349 fi 3350fi 3351if test -z "$CC"; then 3352 # Extract the first word of "cc", so it can be a program name with args. 3353set dummy cc; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if ${ac_cv_prog_CC+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$CC"; then 3360 ac_cv_prog_CC="$CC" # Let the user override the test. 3361else 3362 ac_prog_rejected=no 3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3371 ac_prog_rejected=yes 3372 continue 3373 fi 3374 ac_cv_prog_CC="cc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382if test $ac_prog_rejected = yes; then 3383 # We found a bogon in the path, so make sure we never use it. 3384 set dummy $ac_cv_prog_CC 3385 shift 3386 if test $# != 0; then 3387 # We chose a different compiler from the bogus one. 3388 # However, it has the same basename, so the bogon will be chosen 3389 # first if we set CC to just the basename; use the full file name. 3390 shift 3391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3392 fi 3393fi 3394fi 3395fi 3396CC=$ac_cv_prog_CC 3397if test -n "$CC"; then 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3399$as_echo "$CC" >&6; } 3400else 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3402$as_echo "no" >&6; } 3403fi 3404 3405 3406fi 3407if test -z "$CC"; then 3408 if test -n "$ac_tool_prefix"; then 3409 for ac_prog in cl.exe 3410 do 3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414$as_echo_n "checking for $ac_word... " >&6; } 3415if ${ac_cv_prog_CC+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 if test -n "$CC"; then 3419 ac_cv_prog_CC="$CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 test -z "$as_dir" && as_dir=. 3426 for ac_exec_ext in '' $ac_executable_extensions; do 3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3430 break 2 3431 fi 3432done 3433 done 3434IFS=$as_save_IFS 3435 3436fi 3437fi 3438CC=$ac_cv_prog_CC 3439if test -n "$CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3441$as_echo "$CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 3448 test -n "$CC" && break 3449 done 3450fi 3451if test -z "$CC"; then 3452 ac_ct_CC=$CC 3453 for ac_prog in cl.exe 3454do 3455 # Extract the first word of "$ac_prog", so it can be a program name with args. 3456set dummy $ac_prog; ac_word=$2 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458$as_echo_n "checking for $ac_word... " >&6; } 3459if ${ac_cv_prog_ac_ct_CC+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 if test -n "$ac_ct_CC"; then 3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3464else 3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH 3467do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3472 ac_cv_prog_ac_ct_CC="$ac_prog" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480fi 3481fi 3482ac_ct_CC=$ac_cv_prog_ac_ct_CC 3483if test -n "$ac_ct_CC"; then 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3485$as_echo "$ac_ct_CC" >&6; } 3486else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488$as_echo "no" >&6; } 3489fi 3490 3491 3492 test -n "$ac_ct_CC" && break 3493done 3494 3495 if test "x$ac_ct_CC" = x; then 3496 CC="" 3497 else 3498 case $cross_compiling:$ac_tool_warned in 3499yes:) 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3502ac_tool_warned=yes ;; 3503esac 3504 CC=$ac_ct_CC 3505 fi 3506fi 3507 3508fi 3509 3510 3511test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error $? "no acceptable C compiler found in \$PATH 3514See \`config.log' for more details" "$LINENO" 5; } 3515 3516# Provide some information about the compiler. 3517$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3518set X $ac_compile 3519ac_compiler=$2 3520for ac_option in --version -v -V -qversion; do 3521 { { ac_try="$ac_compiler $ac_option >&5" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3527$as_echo "$ac_try_echo"; } >&5 3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3529 ac_status=$? 3530 if test -s conftest.err; then 3531 sed '10a\ 3532... rest of stderr output deleted ... 3533 10q' conftest.err >conftest.er1 3534 cat conftest.er1 >&5 3535 fi 3536 rm -f conftest.er1 conftest.err 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; } 3539done 3540 3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552ac_clean_files_save=$ac_clean_files 3553ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3554# Try to create an executable without -o first, disregard a.out. 3555# It will help us diagnose broken compilers, and finding out an intuition 3556# of exeext. 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3558$as_echo_n "checking whether the C compiler works... " >&6; } 3559ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3560 3561# The possible output files: 3562ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3563 3564ac_rmfiles= 3565for ac_file in $ac_files 3566do 3567 case $ac_file in 3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3570 esac 3571done 3572rm -f $ac_rmfiles 3573 3574if { { ac_try="$ac_link_default" 3575case "(($ac_try" in 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577 *) ac_try_echo=$ac_try;; 3578esac 3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580$as_echo "$ac_try_echo"; } >&5 3581 (eval "$ac_link_default") 2>&5 3582 ac_status=$? 3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584 test $ac_status = 0; }; then : 3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3587# in a Makefile. We should not override ac_cv_exeext if it was cached, 3588# so that the user can short-circuit this test for compilers unknown to 3589# Autoconf. 3590for ac_file in $ac_files '' 3591do 3592 test -f "$ac_file" || continue 3593 case $ac_file in 3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3595 ;; 3596 [ab].out ) 3597 # We found the default executable, but exeext='' is most 3598 # certainly right. 3599 break;; 3600 *.* ) 3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3602 then :; else 3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3604 fi 3605 # We set ac_cv_exeext here because the later test for it is not 3606 # safe: cross compilers may not add the suffix if given an `-o' 3607 # argument, so we may need to know it at that point already. 3608 # Even if this section looks crufty: it has the advantage of 3609 # actually working. 3610 break;; 3611 * ) 3612 break;; 3613 esac 3614done 3615test "$ac_cv_exeext" = no && ac_cv_exeext= 3616 3617else 3618 ac_file='' 3619fi 3620if test -z "$ac_file"; then : 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622$as_echo "no" >&6; } 3623$as_echo "$as_me: failed program was:" >&5 3624sed 's/^/| /' conftest.$ac_ext >&5 3625 3626{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3628as_fn_error 77 "C compiler cannot create executables 3629See \`config.log' for more details" "$LINENO" 5; } 3630else 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3632$as_echo "yes" >&6; } 3633fi 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3635$as_echo_n "checking for C compiler default output file name... " >&6; } 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3637$as_echo "$ac_file" >&6; } 3638ac_exeext=$ac_cv_exeext 3639 3640rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3641ac_clean_files=$ac_clean_files_save 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3643$as_echo_n "checking for suffix of executables... " >&6; } 3644if { { ac_try="$ac_link" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650$as_echo "$ac_try_echo"; } >&5 3651 (eval "$ac_link") 2>&5 3652 ac_status=$? 3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3654 test $ac_status = 0; }; then : 3655 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3656# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3657# work properly (i.e., refer to `conftest.exe'), while it won't with 3658# `rm'. 3659for ac_file in conftest.exe conftest conftest.*; do 3660 test -f "$ac_file" || continue 3661 case $ac_file in 3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3664 break;; 3665 * ) break;; 3666 esac 3667done 3668else 3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3671as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3672See \`config.log' for more details" "$LINENO" 5; } 3673fi 3674rm -f conftest conftest$ac_cv_exeext 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3676$as_echo "$ac_cv_exeext" >&6; } 3677 3678rm -f conftest.$ac_ext 3679EXEEXT=$ac_cv_exeext 3680ac_exeext=$EXEEXT 3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683#include <stdio.h> 3684int 3685main () 3686{ 3687FILE *f = fopen ("conftest.out", "w"); 3688 return ferror (f) || fclose (f) != 0; 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694ac_clean_files="$ac_clean_files conftest.out" 3695# Check that the compiler produces executables we can run. If not, either 3696# the compiler is broken, or we cross compile. 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3698$as_echo_n "checking whether we are cross compiling... " >&6; } 3699if test "$cross_compiling" != yes; then 3700 { { ac_try="$ac_link" 3701case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704esac 3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3706$as_echo "$ac_try_echo"; } >&5 3707 (eval "$ac_link") 2>&5 3708 ac_status=$? 3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3710 test $ac_status = 0; } 3711 if { ac_try='./conftest$ac_cv_exeext' 3712 { { case "(($ac_try" in 3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714 *) ac_try_echo=$ac_try;; 3715esac 3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3717$as_echo "$ac_try_echo"; } >&5 3718 (eval "$ac_try") 2>&5 3719 ac_status=$? 3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3721 test $ac_status = 0; }; }; then 3722 cross_compiling=no 3723 else 3724 if test "$cross_compiling" = maybe; then 3725 cross_compiling=yes 3726 else 3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3729as_fn_error $? "cannot run C compiled programs. 3730If you meant to cross compile, use \`--host'. 3731See \`config.log' for more details" "$LINENO" 5; } 3732 fi 3733 fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3736$as_echo "$cross_compiling" >&6; } 3737 3738rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3739ac_clean_files=$ac_clean_files_save 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3741$as_echo_n "checking for suffix of object files... " >&6; } 3742if ${ac_cv_objext+:} false; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3746/* end confdefs.h. */ 3747 3748int 3749main () 3750{ 3751 3752 ; 3753 return 0; 3754} 3755_ACEOF 3756rm -f conftest.o conftest.obj 3757if { { ac_try="$ac_compile" 3758case "(($ac_try" in 3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3760 *) ac_try_echo=$ac_try;; 3761esac 3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3763$as_echo "$ac_try_echo"; } >&5 3764 (eval "$ac_compile") 2>&5 3765 ac_status=$? 3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3767 test $ac_status = 0; }; then : 3768 for ac_file in conftest.o conftest.obj conftest.*; do 3769 test -f "$ac_file" || continue; 3770 case $ac_file in 3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3773 break;; 3774 esac 3775done 3776else 3777 $as_echo "$as_me: failed program was:" >&5 3778sed 's/^/| /' conftest.$ac_ext >&5 3779 3780{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3782as_fn_error $? "cannot compute suffix of object files: cannot compile 3783See \`config.log' for more details" "$LINENO" 5; } 3784fi 3785rm -f conftest.$ac_cv_objext conftest.$ac_ext 3786fi 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3788$as_echo "$ac_cv_objext" >&6; } 3789OBJEXT=$ac_cv_objext 3790ac_objext=$OBJEXT 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3793if ${ac_cv_c_compiler_gnu+:} false; then : 3794 $as_echo_n "(cached) " >&6 3795else 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797/* end confdefs.h. */ 3798 3799int 3800main () 3801{ 3802#ifndef __GNUC__ 3803 choke me 3804#endif 3805 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810if ac_fn_c_try_compile "$LINENO"; then : 3811 ac_compiler_gnu=yes 3812else 3813 ac_compiler_gnu=no 3814fi 3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3816ac_cv_c_compiler_gnu=$ac_compiler_gnu 3817 3818fi 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3820$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3821if test $ac_compiler_gnu = yes; then 3822 GCC=yes 3823else 3824 GCC= 3825fi 3826ac_test_CFLAGS=${CFLAGS+set} 3827ac_save_CFLAGS=$CFLAGS 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3829$as_echo_n "checking whether $CC accepts -g... " >&6; } 3830if ${ac_cv_prog_cc_g+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 ac_save_c_werror_flag=$ac_c_werror_flag 3834 ac_c_werror_flag=yes 3835 ac_cv_prog_cc_g=no 3836 CFLAGS="-g" 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840int 3841main () 3842{ 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848if ac_fn_c_try_compile "$LINENO"; then : 3849 ac_cv_prog_cc_g=yes 3850else 3851 CFLAGS="" 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854 3855int 3856main () 3857{ 3858 3859 ; 3860 return 0; 3861} 3862_ACEOF 3863if ac_fn_c_try_compile "$LINENO"; then : 3864 3865else 3866 ac_c_werror_flag=$ac_save_c_werror_flag 3867 CFLAGS="-g" 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_prog_cc_g=yes 3881fi 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3883fi 3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3885fi 3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3887 ac_c_werror_flag=$ac_save_c_werror_flag 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3890$as_echo "$ac_cv_prog_cc_g" >&6; } 3891if test "$ac_test_CFLAGS" = set; then 3892 CFLAGS=$ac_save_CFLAGS 3893elif test $ac_cv_prog_cc_g = yes; then 3894 if test "$GCC" = yes; then 3895 CFLAGS="-g -O2" 3896 else 3897 CFLAGS="-g" 3898 fi 3899else 3900 if test "$GCC" = yes; then 3901 CFLAGS="-O2" 3902 else 3903 CFLAGS= 3904 fi 3905fi 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3907$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3908if ${ac_cv_prog_cc_c89+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 ac_cv_prog_cc_c89=no 3912ac_save_CC=$CC 3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915#include <stdarg.h> 3916#include <stdio.h> 3917struct stat; 3918/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3919struct buf { int x; }; 3920FILE * (*rcsopen) (struct buf *, struct stat *, int); 3921static char *e (p, i) 3922 char **p; 3923 int i; 3924{ 3925 return p[i]; 3926} 3927static char *f (char * (*g) (char **, int), char **p, ...) 3928{ 3929 char *s; 3930 va_list v; 3931 va_start (v,p); 3932 s = g (p, va_arg (v,int)); 3933 va_end (v); 3934 return s; 3935} 3936 3937/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3938 function prototypes and stuff, but not '\xHH' hex character constants. 3939 These don't provoke an error unfortunately, instead are silently treated 3940 as 'x'. The following induces an error, until -std is added to get 3941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3942 array size at least. It's necessary to write '\x00'==0 to get something 3943 that's true only with -std. */ 3944int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3945 3946/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3947 inside strings and character constants. */ 3948#define FOO(x) 'x' 3949int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3950 3951int test (int i, double x); 3952struct s1 {int (*f) (int a);}; 3953struct s2 {int (*f) (double a);}; 3954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3955int argc; 3956char **argv; 3957int 3958main () 3959{ 3960return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3967do 3968 CC="$ac_save_CC $ac_arg" 3969 if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_cv_prog_cc_c89=$ac_arg 3971fi 3972rm -f core conftest.err conftest.$ac_objext 3973 test "x$ac_cv_prog_cc_c89" != "xno" && break 3974done 3975rm -f conftest.$ac_ext 3976CC=$ac_save_CC 3977 3978fi 3979# AC_CACHE_VAL 3980case "x$ac_cv_prog_cc_c89" in 3981 x) 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3983$as_echo "none needed" >&6; } ;; 3984 xno) 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3986$as_echo "unsupported" >&6; } ;; 3987 *) 3988 CC="$CC $ac_cv_prog_cc_c89" 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3990$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3991esac 3992if test "x$ac_cv_prog_cc_c89" != xno; then : 3993 3994fi 3995 3996ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001 4002ac_ext=c 4003ac_cpp='$CPP $CPPFLAGS' 4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4008$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4009if ${am_cv_prog_cc_c_o+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main () 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023 # Make sure it works both with $CC and with simple cc. 4024 # Following AC_PROG_CC_C_O, we do the test twice because some 4025 # compilers refuse to overwrite an existing .o file with -o, 4026 # though they will create one. 4027 am_cv_prog_cc_c_o=yes 4028 for am_i in 1 2; do 4029 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4030 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4031 ac_status=$? 4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4033 (exit $ac_status); } \ 4034 && test -f conftest2.$ac_objext; then 4035 : OK 4036 else 4037 am_cv_prog_cc_c_o=no 4038 break 4039 fi 4040 done 4041 rm -f core conftest* 4042 unset am_i 4043fi 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4045$as_echo "$am_cv_prog_cc_c_o" >&6; } 4046if test "$am_cv_prog_cc_c_o" != yes; then 4047 # Losing compiler, so override with the script. 4048 # FIXME: It is wrong to rewrite CC. 4049 # But if we don't then we get into trouble of one sort or another. 4050 # A longer-term fix would be to have automake use am__CC in this case, 4051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4052 CC="$am_aux_dir/compile $CC" 4053fi 4054ac_ext=c 4055ac_cpp='$CPP $CPPFLAGS' 4056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4058ac_compiler_gnu=$ac_cv_c_compiler_gnu 4059 4060 4061depcc="$CC" am_compiler_list= 4062 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4064$as_echo_n "checking dependency style of $depcc... " >&6; } 4065if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4069 # We make a subdir and do the tests there. Otherwise we can end up 4070 # making bogus files that we don't know about and never remove. For 4071 # instance it was reported that on HP-UX the gcc test will end up 4072 # making a dummy file named 'D' -- because '-MD' means "put the output 4073 # in D". 4074 rm -rf conftest.dir 4075 mkdir conftest.dir 4076 # Copy depcomp to subdir because otherwise we won't find it if we're 4077 # using a relative directory. 4078 cp "$am_depcomp" conftest.dir 4079 cd conftest.dir 4080 # We will build objects and dependencies in a subdirectory because 4081 # it helps to detect inapplicable dependency modes. For instance 4082 # both Tru64's cc and ICC support -MD to output dependencies as a 4083 # side effect of compilation, but ICC will put the dependencies in 4084 # the current directory while Tru64 will put them in the object 4085 # directory. 4086 mkdir sub 4087 4088 am_cv_CC_dependencies_compiler_type=none 4089 if test "$am_compiler_list" = ""; then 4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4091 fi 4092 am__universal=false 4093 case " $depcc " in #( 4094 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4095 esac 4096 4097 for depmode in $am_compiler_list; do 4098 # Setup a source with many dependencies, because some compilers 4099 # like to wrap large dependency lists on column 80 (with \), and 4100 # we should not choose a depcomp mode which is confused by this. 4101 # 4102 # We need to recreate these files for each test, as the compiler may 4103 # overwrite some of them when testing with obscure command lines. 4104 # This happens at least with the AIX C compiler. 4105 : > sub/conftest.c 4106 for i in 1 2 3 4 5 6; do 4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4108 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4109 # Solaris 10 /bin/sh. 4110 echo '/* dummy */' > sub/conftst$i.h 4111 done 4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4113 4114 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4115 # mode. It turns out that the SunPro C++ compiler does not properly 4116 # handle '-M -o', and we need to detect this. Also, some Intel 4117 # versions had trouble with output in subdirs. 4118 am__obj=sub/conftest.${OBJEXT-o} 4119 am__minus_obj="-o $am__obj" 4120 case $depmode in 4121 gcc) 4122 # This depmode causes a compiler race in universal mode. 4123 test "$am__universal" = false || continue 4124 ;; 4125 nosideeffect) 4126 # After this tag, mechanisms are not by side-effect, so they'll 4127 # only be used when explicitly requested. 4128 if test "x$enable_dependency_tracking" = xyes; then 4129 continue 4130 else 4131 break 4132 fi 4133 ;; 4134 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4135 # This compiler won't grok '-c -o', but also, the minuso test has 4136 # not run yet. These depmodes are late enough in the game, and 4137 # so weak that their functioning should not be impacted. 4138 am__obj=conftest.${OBJEXT-o} 4139 am__minus_obj= 4140 ;; 4141 none) break ;; 4142 esac 4143 if depmode=$depmode \ 4144 source=sub/conftest.c object=$am__obj \ 4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4147 >/dev/null 2>conftest.err && 4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4152 # icc doesn't choke on unknown options, it will just issue warnings 4153 # or remarks (even with -Werror). So we grep stderr for any message 4154 # that says an option was ignored or not supported. 4155 # When given -MP, icc 7.0 and 7.1 complain thusly: 4156 # icc: Command line warning: ignoring option '-M'; no argument required 4157 # The diagnosis changed in icc 8.0: 4158 # icc: Command line remark: option '-MP' not supported 4159 if (grep 'ignoring option' conftest.err || 4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4161 am_cv_CC_dependencies_compiler_type=$depmode 4162 break 4163 fi 4164 fi 4165 done 4166 4167 cd .. 4168 rm -rf conftest.dir 4169else 4170 am_cv_CC_dependencies_compiler_type=none 4171fi 4172 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4175$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4176CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4177 4178 if 4179 test "x$enable_dependency_tracking" != xno \ 4180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4181 am__fastdepCC_TRUE= 4182 am__fastdepCC_FALSE='#' 4183else 4184 am__fastdepCC_TRUE='#' 4185 am__fastdepCC_FALSE= 4186fi 4187 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4190$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4191if ${ac_cv_path_SED+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4195 for ac_i in 1 2 3 4 5 6 7; do 4196 ac_script="$ac_script$as_nl$ac_script" 4197 done 4198 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4199 { ac_script=; unset ac_script;} 4200 if test -z "$SED"; then 4201 ac_path_SED_found=false 4202 # Loop through the user's path and test for each of PROGNAME-LIST 4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4204for as_dir in $PATH 4205do 4206 IFS=$as_save_IFS 4207 test -z "$as_dir" && as_dir=. 4208 for ac_prog in sed gsed; do 4209 for ac_exec_ext in '' $ac_executable_extensions; do 4210 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4211 as_fn_executable_p "$ac_path_SED" || continue 4212# Check for GNU ac_path_SED and select it if it is found. 4213 # Check for GNU $ac_path_SED 4214case `"$ac_path_SED" --version 2>&1` in 4215*GNU*) 4216 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4217*) 4218 ac_count=0 4219 $as_echo_n 0123456789 >"conftest.in" 4220 while : 4221 do 4222 cat "conftest.in" "conftest.in" >"conftest.tmp" 4223 mv "conftest.tmp" "conftest.in" 4224 cp "conftest.in" "conftest.nl" 4225 $as_echo '' >> "conftest.nl" 4226 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4228 as_fn_arith $ac_count + 1 && ac_count=$as_val 4229 if test $ac_count -gt ${ac_path_SED_max-0}; then 4230 # Best one so far, save it but keep looking for a better one 4231 ac_cv_path_SED="$ac_path_SED" 4232 ac_path_SED_max=$ac_count 4233 fi 4234 # 10*(2^10) chars as input seems more than enough 4235 test $ac_count -gt 10 && break 4236 done 4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4238esac 4239 4240 $ac_path_SED_found && break 3 4241 done 4242 done 4243 done 4244IFS=$as_save_IFS 4245 if test -z "$ac_cv_path_SED"; then 4246 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4247 fi 4248else 4249 ac_cv_path_SED=$SED 4250fi 4251 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4254$as_echo "$ac_cv_path_SED" >&6; } 4255 SED="$ac_cv_path_SED" 4256 rm -f conftest.sed 4257 4258test -z "$SED" && SED=sed 4259Xsed="$SED -e 1s/^X//" 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4272$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4273if ${ac_cv_path_GREP+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 if test -z "$GREP"; then 4277 ac_path_GREP_found=false 4278 # Loop through the user's path and test for each of PROGNAME-LIST 4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4281do 4282 IFS=$as_save_IFS 4283 test -z "$as_dir" && as_dir=. 4284 for ac_prog in grep ggrep; do 4285 for ac_exec_ext in '' $ac_executable_extensions; do 4286 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4287 as_fn_executable_p "$ac_path_GREP" || continue 4288# Check for GNU ac_path_GREP and select it if it is found. 4289 # Check for GNU $ac_path_GREP 4290case `"$ac_path_GREP" --version 2>&1` in 4291*GNU*) 4292 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4293*) 4294 ac_count=0 4295 $as_echo_n 0123456789 >"conftest.in" 4296 while : 4297 do 4298 cat "conftest.in" "conftest.in" >"conftest.tmp" 4299 mv "conftest.tmp" "conftest.in" 4300 cp "conftest.in" "conftest.nl" 4301 $as_echo 'GREP' >> "conftest.nl" 4302 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4304 as_fn_arith $ac_count + 1 && ac_count=$as_val 4305 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4306 # Best one so far, save it but keep looking for a better one 4307 ac_cv_path_GREP="$ac_path_GREP" 4308 ac_path_GREP_max=$ac_count 4309 fi 4310 # 10*(2^10) chars as input seems more than enough 4311 test $ac_count -gt 10 && break 4312 done 4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4314esac 4315 4316 $ac_path_GREP_found && break 3 4317 done 4318 done 4319 done 4320IFS=$as_save_IFS 4321 if test -z "$ac_cv_path_GREP"; then 4322 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4323 fi 4324else 4325 ac_cv_path_GREP=$GREP 4326fi 4327 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4330$as_echo "$ac_cv_path_GREP" >&6; } 4331 GREP="$ac_cv_path_GREP" 4332 4333 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4335$as_echo_n "checking for egrep... " >&6; } 4336if ${ac_cv_path_EGREP+:} false; then : 4337 $as_echo_n "(cached) " >&6 4338else 4339 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4340 then ac_cv_path_EGREP="$GREP -E" 4341 else 4342 if test -z "$EGREP"; then 4343 ac_path_EGREP_found=false 4344 # Loop through the user's path and test for each of PROGNAME-LIST 4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4347do 4348 IFS=$as_save_IFS 4349 test -z "$as_dir" && as_dir=. 4350 for ac_prog in egrep; do 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4353 as_fn_executable_p "$ac_path_EGREP" || continue 4354# Check for GNU ac_path_EGREP and select it if it is found. 4355 # Check for GNU $ac_path_EGREP 4356case `"$ac_path_EGREP" --version 2>&1` in 4357*GNU*) 4358 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4359*) 4360 ac_count=0 4361 $as_echo_n 0123456789 >"conftest.in" 4362 while : 4363 do 4364 cat "conftest.in" "conftest.in" >"conftest.tmp" 4365 mv "conftest.tmp" "conftest.in" 4366 cp "conftest.in" "conftest.nl" 4367 $as_echo 'EGREP' >> "conftest.nl" 4368 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4370 as_fn_arith $ac_count + 1 && ac_count=$as_val 4371 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4372 # Best one so far, save it but keep looking for a better one 4373 ac_cv_path_EGREP="$ac_path_EGREP" 4374 ac_path_EGREP_max=$ac_count 4375 fi 4376 # 10*(2^10) chars as input seems more than enough 4377 test $ac_count -gt 10 && break 4378 done 4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4380esac 4381 4382 $ac_path_EGREP_found && break 3 4383 done 4384 done 4385 done 4386IFS=$as_save_IFS 4387 if test -z "$ac_cv_path_EGREP"; then 4388 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4389 fi 4390else 4391 ac_cv_path_EGREP=$EGREP 4392fi 4393 4394 fi 4395fi 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4397$as_echo "$ac_cv_path_EGREP" >&6; } 4398 EGREP="$ac_cv_path_EGREP" 4399 4400 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4402$as_echo_n "checking for fgrep... " >&6; } 4403if ${ac_cv_path_FGREP+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4407 then ac_cv_path_FGREP="$GREP -F" 4408 else 4409 if test -z "$FGREP"; then 4410 ac_path_FGREP_found=false 4411 # Loop through the user's path and test for each of PROGNAME-LIST 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in fgrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4420 as_fn_executable_p "$ac_path_FGREP" || continue 4421# Check for GNU ac_path_FGREP and select it if it is found. 4422 # Check for GNU $ac_path_FGREP 4423case `"$ac_path_FGREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4426*) 4427 ac_count=0 4428 $as_echo_n 0123456789 >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 $as_echo 'FGREP' >> "conftest.nl" 4435 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 as_fn_arith $ac_count + 1 && ac_count=$as_val 4438 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_FGREP="$ac_path_FGREP" 4441 ac_path_FGREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 $ac_path_FGREP_found && break 3 4450 done 4451 done 4452 done 4453IFS=$as_save_IFS 4454 if test -z "$ac_cv_path_FGREP"; then 4455 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4456 fi 4457else 4458 ac_cv_path_FGREP=$FGREP 4459fi 4460 4461 fi 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4464$as_echo "$ac_cv_path_FGREP" >&6; } 4465 FGREP="$ac_cv_path_FGREP" 4466 4467 4468test -z "$GREP" && GREP=grep 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488# Check whether --with-gnu-ld was given. 4489if test "${with_gnu_ld+set}" = set; then : 4490 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4491else 4492 with_gnu_ld=no 4493fi 4494 4495ac_prog=ld 4496if test yes = "$GCC"; then 4497 # Check if gcc -print-prog-name=ld gives a path. 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4499$as_echo_n "checking for ld used by $CC... " >&6; } 4500 case $host in 4501 *-*-mingw*) 4502 # gcc leaves a trailing carriage return, which upsets mingw 4503 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4504 *) 4505 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4506 esac 4507 case $ac_prog in 4508 # Accept absolute paths. 4509 [\\/]* | ?:[\\/]*) 4510 re_direlt='/[^/][^/]*/\.\./' 4511 # Canonicalize the pathname of ld 4512 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4513 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4514 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4515 done 4516 test -z "$LD" && LD=$ac_prog 4517 ;; 4518 "") 4519 # If it fails, then pretend we aren't using GCC. 4520 ac_prog=ld 4521 ;; 4522 *) 4523 # If it is relative, then search for the first ld in PATH. 4524 with_gnu_ld=unknown 4525 ;; 4526 esac 4527elif test yes = "$with_gnu_ld"; then 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4529$as_echo_n "checking for GNU ld... " >&6; } 4530else 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4532$as_echo_n "checking for non-GNU ld... " >&6; } 4533fi 4534if ${lt_cv_path_LD+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if test -z "$LD"; then 4538 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4539 for ac_dir in $PATH; do 4540 IFS=$lt_save_ifs 4541 test -z "$ac_dir" && ac_dir=. 4542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4543 lt_cv_path_LD=$ac_dir/$ac_prog 4544 # Check to see if the program is GNU ld. I'd rather use --version, 4545 # but apparently some variants of GNU ld only accept -v. 4546 # Break only if it was the GNU/non-GNU ld that we prefer. 4547 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4548 *GNU* | *'with BFD'*) 4549 test no != "$with_gnu_ld" && break 4550 ;; 4551 *) 4552 test yes != "$with_gnu_ld" && break 4553 ;; 4554 esac 4555 fi 4556 done 4557 IFS=$lt_save_ifs 4558else 4559 lt_cv_path_LD=$LD # Let the user override the test with a path. 4560fi 4561fi 4562 4563LD=$lt_cv_path_LD 4564if test -n "$LD"; then 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4566$as_echo "$LD" >&6; } 4567else 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4569$as_echo "no" >&6; } 4570fi 4571test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4573$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4574if ${lt_cv_prog_gnu_ld+:} false; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4578case `$LD -v 2>&1 </dev/null` in 4579*GNU* | *'with BFD'*) 4580 lt_cv_prog_gnu_ld=yes 4581 ;; 4582*) 4583 lt_cv_prog_gnu_ld=no 4584 ;; 4585esac 4586fi 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4588$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4589with_gnu_ld=$lt_cv_prog_gnu_ld 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4600$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4601if ${lt_cv_path_NM+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if test -n "$NM"; then 4605 # Let the user override the test. 4606 lt_cv_path_NM=$NM 4607else 4608 lt_nm_to_check=${ac_tool_prefix}nm 4609 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4610 lt_nm_to_check="$lt_nm_to_check nm" 4611 fi 4612 for lt_tmp_nm in $lt_nm_to_check; do 4613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4614 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4615 IFS=$lt_save_ifs 4616 test -z "$ac_dir" && ac_dir=. 4617 tmp_nm=$ac_dir/$lt_tmp_nm 4618 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4619 # Check to see if the nm accepts a BSD-compat flag. 4620 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4621 # nm: unknown option "B" ignored 4622 # Tru64's nm complains that /dev/null is an invalid object file 4623 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4624 case $build_os in 4625 mingw*) lt_bad_file=conftest.nm/nofile ;; 4626 *) lt_bad_file=/dev/null ;; 4627 esac 4628 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4629 *$lt_bad_file* | *'Invalid file or object type'*) 4630 lt_cv_path_NM="$tmp_nm -B" 4631 break 2 4632 ;; 4633 *) 4634 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4635 */dev/null*) 4636 lt_cv_path_NM="$tmp_nm -p" 4637 break 2 4638 ;; 4639 *) 4640 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4641 continue # so that we can try to find one that supports BSD flags 4642 ;; 4643 esac 4644 ;; 4645 esac 4646 fi 4647 done 4648 IFS=$lt_save_ifs 4649 done 4650 : ${lt_cv_path_NM=no} 4651fi 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4654$as_echo "$lt_cv_path_NM" >&6; } 4655if test no != "$lt_cv_path_NM"; then 4656 NM=$lt_cv_path_NM 4657else 4658 # Didn't find any BSD compatible name lister, look for dumpbin. 4659 if test -n "$DUMPBIN"; then : 4660 # Let the user override the test. 4661 else 4662 if test -n "$ac_tool_prefix"; then 4663 for ac_prog in dumpbin "link -dump" 4664 do 4665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4666set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4668$as_echo_n "checking for $ac_word... " >&6; } 4669if ${ac_cv_prog_DUMPBIN+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test -n "$DUMPBIN"; then 4673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4674else 4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676for as_dir in $PATH 4677do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4682 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4684 break 2 4685 fi 4686done 4687 done 4688IFS=$as_save_IFS 4689 4690fi 4691fi 4692DUMPBIN=$ac_cv_prog_DUMPBIN 4693if test -n "$DUMPBIN"; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4695$as_echo "$DUMPBIN" >&6; } 4696else 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698$as_echo "no" >&6; } 4699fi 4700 4701 4702 test -n "$DUMPBIN" && break 4703 done 4704fi 4705if test -z "$DUMPBIN"; then 4706 ac_ct_DUMPBIN=$DUMPBIN 4707 for ac_prog in dumpbin "link -dump" 4708do 4709 # Extract the first word of "$ac_prog", so it can be a program name with args. 4710set dummy $ac_prog; ac_word=$2 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4712$as_echo_n "checking for $ac_word... " >&6; } 4713if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 if test -n "$ac_ct_DUMPBIN"; then 4717 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4718else 4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4720for as_dir in $PATH 4721do 4722 IFS=$as_save_IFS 4723 test -z "$as_dir" && as_dir=. 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4726 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4728 break 2 4729 fi 4730done 4731 done 4732IFS=$as_save_IFS 4733 4734fi 4735fi 4736ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4737if test -n "$ac_ct_DUMPBIN"; then 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4739$as_echo "$ac_ct_DUMPBIN" >&6; } 4740else 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4742$as_echo "no" >&6; } 4743fi 4744 4745 4746 test -n "$ac_ct_DUMPBIN" && break 4747done 4748 4749 if test "x$ac_ct_DUMPBIN" = x; then 4750 DUMPBIN=":" 4751 else 4752 case $cross_compiling:$ac_tool_warned in 4753yes:) 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4756ac_tool_warned=yes ;; 4757esac 4758 DUMPBIN=$ac_ct_DUMPBIN 4759 fi 4760fi 4761 4762 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4763 *COFF*) 4764 DUMPBIN="$DUMPBIN -symbols -headers" 4765 ;; 4766 *) 4767 DUMPBIN=: 4768 ;; 4769 esac 4770 fi 4771 4772 if test : != "$DUMPBIN"; then 4773 NM=$DUMPBIN 4774 fi 4775fi 4776test -z "$NM" && NM=nm 4777 4778 4779 4780 4781 4782 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4784$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4785if ${lt_cv_nm_interface+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 lt_cv_nm_interface="BSD nm" 4789 echo "int some_variable = 0;" > conftest.$ac_ext 4790 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4791 (eval "$ac_compile" 2>conftest.err) 4792 cat conftest.err >&5 4793 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4795 cat conftest.err >&5 4796 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4797 cat conftest.out >&5 4798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4799 lt_cv_nm_interface="MS dumpbin" 4800 fi 4801 rm -f conftest* 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4804$as_echo "$lt_cv_nm_interface" >&6; } 4805 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4807$as_echo_n "checking whether ln -s works... " >&6; } 4808LN_S=$as_ln_s 4809if test "$LN_S" = "ln -s"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4811$as_echo "yes" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4814$as_echo "no, using $LN_S" >&6; } 4815fi 4816 4817# find the maximum length of command line arguments 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4819$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4820if ${lt_cv_sys_max_cmd_len+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 i=0 4824 teststring=ABCD 4825 4826 case $build_os in 4827 msdosdjgpp*) 4828 # On DJGPP, this test can blow up pretty badly due to problems in libc 4829 # (any single argument exceeding 2000 bytes causes a buffer overrun 4830 # during glob expansion). Even if it were fixed, the result of this 4831 # check would be larger than it should be. 4832 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4833 ;; 4834 4835 gnu*) 4836 # Under GNU Hurd, this test is not required because there is 4837 # no limit to the length of command line arguments. 4838 # Libtool will interpret -1 as no limit whatsoever 4839 lt_cv_sys_max_cmd_len=-1; 4840 ;; 4841 4842 cygwin* | mingw* | cegcc*) 4843 # On Win9x/ME, this test blows up -- it succeeds, but takes 4844 # about 5 minutes as the teststring grows exponentially. 4845 # Worse, since 9x/ME are not pre-emptively multitasking, 4846 # you end up with a "frozen" computer, even though with patience 4847 # the test eventually succeeds (with a max line length of 256k). 4848 # Instead, let's just punt: use the minimum linelength reported by 4849 # all of the supported platforms: 8192 (on NT/2K/XP). 4850 lt_cv_sys_max_cmd_len=8192; 4851 ;; 4852 4853 mint*) 4854 # On MiNT this can take a long time and run out of memory. 4855 lt_cv_sys_max_cmd_len=8192; 4856 ;; 4857 4858 amigaos*) 4859 # On AmigaOS with pdksh, this test takes hours, literally. 4860 # So we just punt and use a minimum line length of 8192. 4861 lt_cv_sys_max_cmd_len=8192; 4862 ;; 4863 4864 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4865 # This has been around since 386BSD, at least. Likely further. 4866 if test -x /sbin/sysctl; then 4867 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4868 elif test -x /usr/sbin/sysctl; then 4869 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4870 else 4871 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4872 fi 4873 # And add a safety zone 4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4876 ;; 4877 4878 interix*) 4879 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4880 lt_cv_sys_max_cmd_len=196608 4881 ;; 4882 4883 os2*) 4884 # The test takes a long time on OS/2. 4885 lt_cv_sys_max_cmd_len=8192 4886 ;; 4887 4888 osf*) 4889 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4890 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4891 # nice to cause kernel panics so lets avoid the loop below. 4892 # First set a reasonable default. 4893 lt_cv_sys_max_cmd_len=16384 4894 # 4895 if test -x /sbin/sysconfig; then 4896 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4897 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4898 esac 4899 fi 4900 ;; 4901 sco3.2v5*) 4902 lt_cv_sys_max_cmd_len=102400 4903 ;; 4904 sysv5* | sco5v6* | sysv4.2uw2*) 4905 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4906 if test -n "$kargmax"; then 4907 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4908 else 4909 lt_cv_sys_max_cmd_len=32768 4910 fi 4911 ;; 4912 *) 4913 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4914 if test -n "$lt_cv_sys_max_cmd_len" && \ 4915 test undefined != "$lt_cv_sys_max_cmd_len"; then 4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4918 else 4919 # Make teststring a little bigger before we do anything with it. 4920 # a 1K string should be a reasonable start. 4921 for i in 1 2 3 4 5 6 7 8; do 4922 teststring=$teststring$teststring 4923 done 4924 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4925 # If test is not a shell built-in, we'll probably end up computing a 4926 # maximum length that is only half of the actual maximum length, but 4927 # we can't tell. 4928 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4929 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4930 test 17 != "$i" # 1/2 MB should be enough 4931 do 4932 i=`expr $i + 1` 4933 teststring=$teststring$teststring 4934 done 4935 # Only check the string length outside the loop. 4936 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4937 teststring= 4938 # Add a significant safety factor because C++ compilers can tack on 4939 # massive amounts of additional arguments before passing them to the 4940 # linker. It appears as though 1/2 is a usable value. 4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4942 fi 4943 ;; 4944 esac 4945 4946fi 4947 4948if test -n "$lt_cv_sys_max_cmd_len"; then 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4950$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4951else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4953$as_echo "none" >&6; } 4954fi 4955max_cmd_len=$lt_cv_sys_max_cmd_len 4956 4957 4958 4959 4960 4961 4962: ${CP="cp -f"} 4963: ${MV="mv -f"} 4964: ${RM="rm -f"} 4965 4966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4967 lt_unset=unset 4968else 4969 lt_unset=false 4970fi 4971 4972 4973 4974 4975 4976# test EBCDIC or ASCII 4977case `echo X|tr X '\101'` in 4978 A) # ASCII based system 4979 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4980 lt_SP2NL='tr \040 \012' 4981 lt_NL2SP='tr \015\012 \040\040' 4982 ;; 4983 *) # EBCDIC based system 4984 lt_SP2NL='tr \100 \n' 4985 lt_NL2SP='tr \r\n \100\100' 4986 ;; 4987esac 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4998$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4999if ${lt_cv_to_host_file_cmd+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 case $host in 5003 *-*-mingw* ) 5004 case $build in 5005 *-*-mingw* ) # actually msys 5006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5007 ;; 5008 *-*-cygwin* ) 5009 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5010 ;; 5011 * ) # otherwise, assume *nix 5012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5013 ;; 5014 esac 5015 ;; 5016 *-*-cygwin* ) 5017 case $build in 5018 *-*-mingw* ) # actually msys 5019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5020 ;; 5021 *-*-cygwin* ) 5022 lt_cv_to_host_file_cmd=func_convert_file_noop 5023 ;; 5024 * ) # otherwise, assume *nix 5025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5026 ;; 5027 esac 5028 ;; 5029 * ) # unhandled hosts (and "normal" native builds) 5030 lt_cv_to_host_file_cmd=func_convert_file_noop 5031 ;; 5032esac 5033 5034fi 5035 5036to_host_file_cmd=$lt_cv_to_host_file_cmd 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5038$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5039 5040 5041 5042 5043 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5045$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5046if ${lt_cv_to_tool_file_cmd+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 #assume ordinary cross tools, or native build. 5050lt_cv_to_tool_file_cmd=func_convert_file_noop 5051case $host in 5052 *-*-mingw* ) 5053 case $build in 5054 *-*-mingw* ) # actually msys 5055 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5056 ;; 5057 esac 5058 ;; 5059esac 5060 5061fi 5062 5063to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5065$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5066 5067 5068 5069 5070 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5072$as_echo_n "checking for $LD option to reload object files... " >&6; } 5073if ${lt_cv_ld_reload_flag+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 lt_cv_ld_reload_flag='-r' 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5079$as_echo "$lt_cv_ld_reload_flag" >&6; } 5080reload_flag=$lt_cv_ld_reload_flag 5081case $reload_flag in 5082"" | " "*) ;; 5083*) reload_flag=" $reload_flag" ;; 5084esac 5085reload_cmds='$LD$reload_flag -o $output$reload_objs' 5086case $host_os in 5087 cygwin* | mingw* | pw32* | cegcc*) 5088 if test yes != "$GCC"; then 5089 reload_cmds=false 5090 fi 5091 ;; 5092 darwin*) 5093 if test yes = "$GCC"; then 5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5095 else 5096 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5097 fi 5098 ;; 5099esac 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109if test -n "$ac_tool_prefix"; then 5110 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5111set dummy ${ac_tool_prefix}objdump; ac_word=$2 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5113$as_echo_n "checking for $ac_word... " >&6; } 5114if ${ac_cv_prog_OBJDUMP+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 if test -n "$OBJDUMP"; then 5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5119else 5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_exec_ext in '' $ac_executable_extensions; do 5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5129 break 2 5130 fi 5131done 5132 done 5133IFS=$as_save_IFS 5134 5135fi 5136fi 5137OBJDUMP=$ac_cv_prog_OBJDUMP 5138if test -n "$OBJDUMP"; then 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5140$as_echo "$OBJDUMP" >&6; } 5141else 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5143$as_echo "no" >&6; } 5144fi 5145 5146 5147fi 5148if test -z "$ac_cv_prog_OBJDUMP"; then 5149 ac_ct_OBJDUMP=$OBJDUMP 5150 # Extract the first word of "objdump", so it can be a program name with args. 5151set dummy objdump; ac_word=$2 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5153$as_echo_n "checking for $ac_word... " >&6; } 5154if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -n "$ac_ct_OBJDUMP"; then 5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5159else 5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5167 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5169 break 2 5170 fi 5171done 5172 done 5173IFS=$as_save_IFS 5174 5175fi 5176fi 5177ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5178if test -n "$ac_ct_OBJDUMP"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5180$as_echo "$ac_ct_OBJDUMP" >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5183$as_echo "no" >&6; } 5184fi 5185 5186 if test "x$ac_ct_OBJDUMP" = x; then 5187 OBJDUMP="false" 5188 else 5189 case $cross_compiling:$ac_tool_warned in 5190yes:) 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5193ac_tool_warned=yes ;; 5194esac 5195 OBJDUMP=$ac_ct_OBJDUMP 5196 fi 5197else 5198 OBJDUMP="$ac_cv_prog_OBJDUMP" 5199fi 5200 5201test -z "$OBJDUMP" && OBJDUMP=objdump 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5212$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5213if ${lt_cv_deplibs_check_method+:} false; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 lt_cv_file_magic_cmd='$MAGIC_CMD' 5217lt_cv_file_magic_test_file= 5218lt_cv_deplibs_check_method='unknown' 5219# Need to set the preceding variable on all platforms that support 5220# interlibrary dependencies. 5221# 'none' -- dependencies not supported. 5222# 'unknown' -- same as none, but documents that we really don't know. 5223# 'pass_all' -- all dependencies passed with no checks. 5224# 'test_compile' -- check by making test program. 5225# 'file_magic [[regex]]' -- check by looking for files in library path 5226# that responds to the $file_magic_cmd with a given extended regex. 5227# If you have 'file' or equivalent on your system and you're not sure 5228# whether 'pass_all' will *always* work, you probably want this one. 5229 5230case $host_os in 5231aix[4-9]*) 5232 lt_cv_deplibs_check_method=pass_all 5233 ;; 5234 5235beos*) 5236 lt_cv_deplibs_check_method=pass_all 5237 ;; 5238 5239bsdi[45]*) 5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5241 lt_cv_file_magic_cmd='/usr/bin/file -L' 5242 lt_cv_file_magic_test_file=/shlib/libc.so 5243 ;; 5244 5245cygwin*) 5246 # func_win32_libid is a shell function defined in ltmain.sh 5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5248 lt_cv_file_magic_cmd='func_win32_libid' 5249 ;; 5250 5251mingw* | pw32*) 5252 # Base MSYS/MinGW do not provide the 'file' command needed by 5253 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5254 # unless we find 'file', for example because we are cross-compiling. 5255 if ( file / ) >/dev/null 2>&1; then 5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5257 lt_cv_file_magic_cmd='func_win32_libid' 5258 else 5259 # Keep this pattern in sync with the one in func_win32_libid. 5260 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5261 lt_cv_file_magic_cmd='$OBJDUMP -f' 5262 fi 5263 ;; 5264 5265cegcc*) 5266 # use the weaker test based on 'objdump'. See mingw*. 5267 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5268 lt_cv_file_magic_cmd='$OBJDUMP -f' 5269 ;; 5270 5271darwin* | rhapsody*) 5272 lt_cv_deplibs_check_method=pass_all 5273 ;; 5274 5275freebsd* | dragonfly*) 5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5277 case $host_cpu in 5278 i*86 ) 5279 # Not sure whether the presence of OpenBSD here was a mistake. 5280 # Let's accept both of them until this is cleared up. 5281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5282 lt_cv_file_magic_cmd=/usr/bin/file 5283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5284 ;; 5285 esac 5286 else 5287 lt_cv_deplibs_check_method=pass_all 5288 fi 5289 ;; 5290 5291haiku*) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 5295hpux10.20* | hpux11*) 5296 lt_cv_file_magic_cmd=/usr/bin/file 5297 case $host_cpu in 5298 ia64*) 5299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5300 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5301 ;; 5302 hppa*64*) 5303 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]' 5304 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5305 ;; 5306 *) 5307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5308 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5309 ;; 5310 esac 5311 ;; 5312 5313interix[3-9]*) 5314 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5316 ;; 5317 5318irix5* | irix6* | nonstopux*) 5319 case $LD in 5320 *-32|*"-32 ") libmagic=32-bit;; 5321 *-n32|*"-n32 ") libmagic=N32;; 5322 *-64|*"-64 ") libmagic=64-bit;; 5323 *) libmagic=never-match;; 5324 esac 5325 lt_cv_deplibs_check_method=pass_all 5326 ;; 5327 5328# This must be glibc/ELF. 5329linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332 5333netbsd* | netbsdelf*-gnu) 5334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5336 else 5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5338 fi 5339 ;; 5340 5341newos6*) 5342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5343 lt_cv_file_magic_cmd=/usr/bin/file 5344 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5345 ;; 5346 5347*nto* | *qnx*) 5348 lt_cv_deplibs_check_method=pass_all 5349 ;; 5350 5351openbsd* | bitrig*) 5352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5354 else 5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5356 fi 5357 ;; 5358 5359osf3* | osf4* | osf5*) 5360 lt_cv_deplibs_check_method=pass_all 5361 ;; 5362 5363rdos*) 5364 lt_cv_deplibs_check_method=pass_all 5365 ;; 5366 5367solaris*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5372 lt_cv_deplibs_check_method=pass_all 5373 ;; 5374 5375sysv4 | sysv4.3*) 5376 case $host_vendor in 5377 motorola) 5378 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]' 5379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5380 ;; 5381 ncr) 5382 lt_cv_deplibs_check_method=pass_all 5383 ;; 5384 sequent) 5385 lt_cv_file_magic_cmd='/bin/file' 5386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5387 ;; 5388 sni) 5389 lt_cv_file_magic_cmd='/bin/file' 5390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5391 lt_cv_file_magic_test_file=/lib/libc.so 5392 ;; 5393 siemens) 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396 pc) 5397 lt_cv_deplibs_check_method=pass_all 5398 ;; 5399 esac 5400 ;; 5401 5402tpf*) 5403 lt_cv_deplibs_check_method=pass_all 5404 ;; 5405os2*) 5406 lt_cv_deplibs_check_method=pass_all 5407 ;; 5408esac 5409 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5412$as_echo "$lt_cv_deplibs_check_method" >&6; } 5413 5414file_magic_glob= 5415want_nocaseglob=no 5416if test "$build" = "$host"; then 5417 case $host_os in 5418 mingw* | pw32*) 5419 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5420 want_nocaseglob=yes 5421 else 5422 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5423 fi 5424 ;; 5425 esac 5426fi 5427 5428file_magic_cmd=$lt_cv_file_magic_cmd 5429deplibs_check_method=$lt_cv_deplibs_check_method 5430test -z "$deplibs_check_method" && deplibs_check_method=unknown 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453if test -n "$ac_tool_prefix"; then 5454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5455set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if ${ac_cv_prog_DLLTOOL+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$DLLTOOL"; then 5462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481DLLTOOL=$ac_cv_prog_DLLTOOL 5482if test -n "$DLLTOOL"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5484$as_echo "$DLLTOOL" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 5491fi 5492if test -z "$ac_cv_prog_DLLTOOL"; then 5493 ac_ct_DLLTOOL=$DLLTOOL 5494 # Extract the first word of "dlltool", so it can be a program name with args. 5495set dummy dlltool; ac_word=$2 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5497$as_echo_n "checking for $ac_word... " >&6; } 5498if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5499 $as_echo_n "(cached) " >&6 5500else 5501 if test -n "$ac_ct_DLLTOOL"; then 5502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5503else 5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5505for as_dir in $PATH 5506do 5507 IFS=$as_save_IFS 5508 test -z "$as_dir" && as_dir=. 5509 for ac_exec_ext in '' $ac_executable_extensions; do 5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5511 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5513 break 2 5514 fi 5515done 5516 done 5517IFS=$as_save_IFS 5518 5519fi 5520fi 5521ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5522if test -n "$ac_ct_DLLTOOL"; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5524$as_echo "$ac_ct_DLLTOOL" >&6; } 5525else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5527$as_echo "no" >&6; } 5528fi 5529 5530 if test "x$ac_ct_DLLTOOL" = x; then 5531 DLLTOOL="false" 5532 else 5533 case $cross_compiling:$ac_tool_warned in 5534yes:) 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5537ac_tool_warned=yes ;; 5538esac 5539 DLLTOOL=$ac_ct_DLLTOOL 5540 fi 5541else 5542 DLLTOOL="$ac_cv_prog_DLLTOOL" 5543fi 5544 5545test -z "$DLLTOOL" && DLLTOOL=dlltool 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5557$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5558if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 lt_cv_sharedlib_from_linklib_cmd='unknown' 5562 5563case $host_os in 5564cygwin* | mingw* | pw32* | cegcc*) 5565 # two different shell functions defined in ltmain.sh; 5566 # decide which one to use based on capabilities of $DLLTOOL 5567 case `$DLLTOOL --help 2>&1` in 5568 *--identify-strict*) 5569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5570 ;; 5571 *) 5572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5573 ;; 5574 esac 5575 ;; 5576*) 5577 # fallback: assume linklib IS sharedlib 5578 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5579 ;; 5580esac 5581 5582fi 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5584$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5585sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5586test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5587 5588 5589 5590 5591 5592 5593 5594 5595if test -n "$ac_tool_prefix"; then 5596 for ac_prog in ar 5597 do 5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5599set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601$as_echo_n "checking for $ac_word... " >&6; } 5602if ${ac_cv_prog_AR+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 if test -n "$AR"; then 5606 ac_cv_prog_AR="$AR" # Let the user override the test. 5607else 5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609for as_dir in $PATH 5610do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625AR=$ac_cv_prog_AR 5626if test -n "$AR"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5628$as_echo "$AR" >&6; } 5629else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631$as_echo "no" >&6; } 5632fi 5633 5634 5635 test -n "$AR" && break 5636 done 5637fi 5638if test -z "$AR"; then 5639 ac_ct_AR=$AR 5640 for ac_prog in ar 5641do 5642 # Extract the first word of "$ac_prog", so it can be a program name with args. 5643set dummy $ac_prog; ac_word=$2 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5645$as_echo_n "checking for $ac_word... " >&6; } 5646if ${ac_cv_prog_ac_ct_AR+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 if test -n "$ac_ct_AR"; then 5650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5651else 5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5653for as_dir in $PATH 5654do 5655 IFS=$as_save_IFS 5656 test -z "$as_dir" && as_dir=. 5657 for ac_exec_ext in '' $ac_executable_extensions; do 5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5659 ac_cv_prog_ac_ct_AR="$ac_prog" 5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5661 break 2 5662 fi 5663done 5664 done 5665IFS=$as_save_IFS 5666 5667fi 5668fi 5669ac_ct_AR=$ac_cv_prog_ac_ct_AR 5670if test -n "$ac_ct_AR"; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5672$as_echo "$ac_ct_AR" >&6; } 5673else 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5675$as_echo "no" >&6; } 5676fi 5677 5678 5679 test -n "$ac_ct_AR" && break 5680done 5681 5682 if test "x$ac_ct_AR" = x; then 5683 AR="false" 5684 else 5685 case $cross_compiling:$ac_tool_warned in 5686yes:) 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5689ac_tool_warned=yes ;; 5690esac 5691 AR=$ac_ct_AR 5692 fi 5693fi 5694 5695: ${AR=ar} 5696: ${AR_FLAGS=cr} 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5709$as_echo_n "checking for archiver @FILE support... " >&6; } 5710if ${lt_cv_ar_at_file+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712else 5713 lt_cv_ar_at_file=no 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716 5717int 5718main () 5719{ 5720 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725if ac_fn_c_try_compile "$LINENO"; then : 5726 echo conftest.$ac_objext > conftest.lst 5727 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5729 (eval $lt_ar_try) 2>&5 5730 ac_status=$? 5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5732 test $ac_status = 0; } 5733 if test 0 -eq "$ac_status"; then 5734 # Ensure the archiver fails upon bogus file names. 5735 rm -f conftest.$ac_objext libconftest.a 5736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5737 (eval $lt_ar_try) 2>&5 5738 ac_status=$? 5739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5740 test $ac_status = 0; } 5741 if test 0 -ne "$ac_status"; then 5742 lt_cv_ar_at_file=@ 5743 fi 5744 fi 5745 rm -f conftest.* libconftest.a 5746 5747fi 5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5749 5750fi 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5752$as_echo "$lt_cv_ar_at_file" >&6; } 5753 5754if test no = "$lt_cv_ar_at_file"; then 5755 archiver_list_spec= 5756else 5757 archiver_list_spec=$lt_cv_ar_at_file 5758fi 5759 5760 5761 5762 5763 5764 5765 5766if test -n "$ac_tool_prefix"; then 5767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5768set dummy ${ac_tool_prefix}strip; ac_word=$2 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770$as_echo_n "checking for $ac_word... " >&6; } 5771if ${ac_cv_prog_STRIP+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 if test -n "$STRIP"; then 5775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5776else 5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5778for as_dir in $PATH 5779do 5780 IFS=$as_save_IFS 5781 test -z "$as_dir" && as_dir=. 5782 for ac_exec_ext in '' $ac_executable_extensions; do 5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5784 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5786 break 2 5787 fi 5788done 5789 done 5790IFS=$as_save_IFS 5791 5792fi 5793fi 5794STRIP=$ac_cv_prog_STRIP 5795if test -n "$STRIP"; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5797$as_echo "$STRIP" >&6; } 5798else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801fi 5802 5803 5804fi 5805if test -z "$ac_cv_prog_STRIP"; then 5806 ac_ct_STRIP=$STRIP 5807 # Extract the first word of "strip", so it can be a program name with args. 5808set dummy strip; ac_word=$2 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5810$as_echo_n "checking for $ac_word... " >&6; } 5811if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 if test -n "$ac_ct_STRIP"; then 5815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5816else 5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818for as_dir in $PATH 5819do 5820 IFS=$as_save_IFS 5821 test -z "$as_dir" && as_dir=. 5822 for ac_exec_ext in '' $ac_executable_extensions; do 5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5824 ac_cv_prog_ac_ct_STRIP="strip" 5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 break 2 5827 fi 5828done 5829 done 5830IFS=$as_save_IFS 5831 5832fi 5833fi 5834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5835if test -n "$ac_ct_STRIP"; then 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5837$as_echo "$ac_ct_STRIP" >&6; } 5838else 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5840$as_echo "no" >&6; } 5841fi 5842 5843 if test "x$ac_ct_STRIP" = x; then 5844 STRIP=":" 5845 else 5846 case $cross_compiling:$ac_tool_warned in 5847yes:) 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5850ac_tool_warned=yes ;; 5851esac 5852 STRIP=$ac_ct_STRIP 5853 fi 5854else 5855 STRIP="$ac_cv_prog_STRIP" 5856fi 5857 5858test -z "$STRIP" && STRIP=: 5859 5860 5861 5862 5863 5864 5865if test -n "$ac_tool_prefix"; then 5866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5867set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5869$as_echo_n "checking for $ac_word... " >&6; } 5870if ${ac_cv_prog_RANLIB+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 if test -n "$RANLIB"; then 5874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888 done 5889IFS=$as_save_IFS 5890 5891fi 5892fi 5893RANLIB=$ac_cv_prog_RANLIB 5894if test -n "$RANLIB"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5896$as_echo "$RANLIB" >&6; } 5897else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899$as_echo "no" >&6; } 5900fi 5901 5902 5903fi 5904if test -z "$ac_cv_prog_RANLIB"; then 5905 ac_ct_RANLIB=$RANLIB 5906 # Extract the first word of "ranlib", so it can be a program name with args. 5907set dummy ranlib; ac_word=$2 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5909$as_echo_n "checking for $ac_word... " >&6; } 5910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 if test -n "$ac_ct_RANLIB"; then 5914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5915else 5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5917for as_dir in $PATH 5918do 5919 IFS=$as_save_IFS 5920 test -z "$as_dir" && as_dir=. 5921 for ac_exec_ext in '' $ac_executable_extensions; do 5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5923 ac_cv_prog_ac_ct_RANLIB="ranlib" 5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5925 break 2 5926 fi 5927done 5928 done 5929IFS=$as_save_IFS 5930 5931fi 5932fi 5933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5934if test -n "$ac_ct_RANLIB"; then 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5936$as_echo "$ac_ct_RANLIB" >&6; } 5937else 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5939$as_echo "no" >&6; } 5940fi 5941 5942 if test "x$ac_ct_RANLIB" = x; then 5943 RANLIB=":" 5944 else 5945 case $cross_compiling:$ac_tool_warned in 5946yes:) 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5949ac_tool_warned=yes ;; 5950esac 5951 RANLIB=$ac_ct_RANLIB 5952 fi 5953else 5954 RANLIB="$ac_cv_prog_RANLIB" 5955fi 5956 5957test -z "$RANLIB" && RANLIB=: 5958 5959 5960 5961 5962 5963 5964# Determine commands to create old-style static archives. 5965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5966old_postinstall_cmds='chmod 644 $oldlib' 5967old_postuninstall_cmds= 5968 5969if test -n "$RANLIB"; then 5970 case $host_os in 5971 bitrig* | openbsd*) 5972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5973 ;; 5974 *) 5975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5976 ;; 5977 esac 5978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5979fi 5980 5981case $host_os in 5982 darwin*) 5983 lock_old_archive_extraction=yes ;; 5984 *) 5985 lock_old_archive_extraction=no ;; 5986esac 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026# If no C compiler was specified, use CC. 6027LTCC=${LTCC-"$CC"} 6028 6029# If no C compiler flags were specified, use CFLAGS. 6030LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6031 6032# Allow CC to be a program name with arguments. 6033compiler=$CC 6034 6035 6036# Check for command to grab the raw symbol name followed by C symbol from nm. 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6039if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 6043# These are sane defaults that work on at least a few old systems. 6044# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6045 6046# Character class describing NM global symbol codes. 6047symcode='[BCDEGRST]' 6048 6049# Regexp to match symbols that can be accessed directly from C. 6050sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6051 6052# Define system-specific variables. 6053case $host_os in 6054aix*) 6055 symcode='[BCDT]' 6056 ;; 6057cygwin* | mingw* | pw32* | cegcc*) 6058 symcode='[ABCDGISTW]' 6059 ;; 6060hpux*) 6061 if test ia64 = "$host_cpu"; then 6062 symcode='[ABCDEGRST]' 6063 fi 6064 ;; 6065irix* | nonstopux*) 6066 symcode='[BCDEGRST]' 6067 ;; 6068osf*) 6069 symcode='[BCDEGQRST]' 6070 ;; 6071solaris*) 6072 symcode='[BDRT]' 6073 ;; 6074sco3.2v5*) 6075 symcode='[DT]' 6076 ;; 6077sysv4.2uw2*) 6078 symcode='[DT]' 6079 ;; 6080sysv5* | sco5v6* | unixware* | OpenUNIX*) 6081 symcode='[ABDT]' 6082 ;; 6083sysv4) 6084 symcode='[DFNSTU]' 6085 ;; 6086esac 6087 6088# If we're using GNU nm, then use its standard symbol codes. 6089case `$NM -V 2>&1` in 6090*GNU* | *'with BFD'*) 6091 symcode='[ABCDGIRSTW]' ;; 6092esac 6093 6094if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6095 # Gets list of data symbols to import. 6096 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6097 # Adjust the below global symbol transforms to fixup imported variables. 6098 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6099 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6100 lt_c_name_lib_hook="\ 6101 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6102 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6103else 6104 # Disable hooks by default. 6105 lt_cv_sys_global_symbol_to_import= 6106 lt_cdecl_hook= 6107 lt_c_name_hook= 6108 lt_c_name_lib_hook= 6109fi 6110 6111# Transform an extracted symbol line into a proper C declaration. 6112# Some systems (esp. on ia64) link data and code symbols differently, 6113# so use this general approach. 6114lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6115$lt_cdecl_hook\ 6116" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6117" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6118 6119# Transform an extracted symbol line into symbol name and symbol address 6120lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6121$lt_c_name_hook\ 6122" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6123" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6124 6125# Transform an extracted symbol line into symbol name with lib prefix and 6126# symbol address. 6127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6128$lt_c_name_lib_hook\ 6129" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6130" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6131" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6132 6133# Handle CRLF in mingw tool chain 6134opt_cr= 6135case $build_os in 6136mingw*) 6137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6138 ;; 6139esac 6140 6141# Try without a prefix underscore, then with it. 6142for ac_symprfx in "" "_"; do 6143 6144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6145 symxfrm="\\1 $ac_symprfx\\2 \\2" 6146 6147 # Write the raw and C identifiers. 6148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6149 # Fake it for dumpbin and say T for any non-static function, 6150 # D for any global variable and I for any imported variable. 6151 # Also find C++ and __fastcall symbols from MSVC++, 6152 # which start with @ or ?. 6153 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6154" {last_section=section; section=\$ 3};"\ 6155" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6156" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6157" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6158" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6159" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6160" \$ 0!~/External *\|/{next};"\ 6161" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6162" {if(hide[section]) next};"\ 6163" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6164" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6165" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6166" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6167" ' prfx=^$ac_symprfx" 6168 else 6169 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6170 fi 6171 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6172 6173 # Check to see that the pipe works correctly. 6174 pipe_works=no 6175 6176 rm -f conftest* 6177 cat > conftest.$ac_ext <<_LT_EOF 6178#ifdef __cplusplus 6179extern "C" { 6180#endif 6181char nm_test_var; 6182void nm_test_func(void); 6183void nm_test_func(void){} 6184#ifdef __cplusplus 6185} 6186#endif 6187int main(){nm_test_var='a';nm_test_func();return(0);} 6188_LT_EOF 6189 6190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6191 (eval $ac_compile) 2>&5 6192 ac_status=$? 6193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6194 test $ac_status = 0; }; then 6195 # Now try to grab the symbols. 6196 nlist=conftest.nm 6197 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6198 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6199 # Try sorting and uniquifying the output. 6200 if sort "$nlist" | uniq > "$nlist"T; then 6201 mv -f "$nlist"T "$nlist" 6202 else 6203 rm -f "$nlist"T 6204 fi 6205 6206 # Make sure that we snagged all the symbols we need. 6207 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6208 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6209 cat <<_LT_EOF > conftest.$ac_ext 6210/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6211#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6212/* DATA imports from DLLs on WIN32 can't be const, because runtime 6213 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6214# define LT_DLSYM_CONST 6215#elif defined __osf__ 6216/* This system does not cope well with relocations in const data. */ 6217# define LT_DLSYM_CONST 6218#else 6219# define LT_DLSYM_CONST const 6220#endif 6221 6222#ifdef __cplusplus 6223extern "C" { 6224#endif 6225 6226_LT_EOF 6227 # Now generate the symbol file. 6228 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6229 6230 cat <<_LT_EOF >> conftest.$ac_ext 6231 6232/* The mapping between symbol names and symbols. */ 6233LT_DLSYM_CONST struct { 6234 const char *name; 6235 void *address; 6236} 6237lt__PROGRAM__LTX_preloaded_symbols[] = 6238{ 6239 { "@PROGRAM@", (void *) 0 }, 6240_LT_EOF 6241 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6242 cat <<\_LT_EOF >> conftest.$ac_ext 6243 {0, (void *) 0} 6244}; 6245 6246/* This works around a problem in FreeBSD linker */ 6247#ifdef FREEBSD_WORKAROUND 6248static const void *lt_preloaded_setup() { 6249 return lt__PROGRAM__LTX_preloaded_symbols; 6250} 6251#endif 6252 6253#ifdef __cplusplus 6254} 6255#endif 6256_LT_EOF 6257 # Now try linking the two files. 6258 mv conftest.$ac_objext conftstm.$ac_objext 6259 lt_globsym_save_LIBS=$LIBS 6260 lt_globsym_save_CFLAGS=$CFLAGS 6261 LIBS=conftstm.$ac_objext 6262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6264 (eval $ac_link) 2>&5 6265 ac_status=$? 6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6267 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6268 pipe_works=yes 6269 fi 6270 LIBS=$lt_globsym_save_LIBS 6271 CFLAGS=$lt_globsym_save_CFLAGS 6272 else 6273 echo "cannot find nm_test_func in $nlist" >&5 6274 fi 6275 else 6276 echo "cannot find nm_test_var in $nlist" >&5 6277 fi 6278 else 6279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6280 fi 6281 else 6282 echo "$progname: failed program was:" >&5 6283 cat conftest.$ac_ext >&5 6284 fi 6285 rm -rf conftest* conftst* 6286 6287 # Do not use the global_symbol_pipe unless it works. 6288 if test yes = "$pipe_works"; then 6289 break 6290 else 6291 lt_cv_sys_global_symbol_pipe= 6292 fi 6293done 6294 6295fi 6296 6297if test -z "$lt_cv_sys_global_symbol_pipe"; then 6298 lt_cv_sys_global_symbol_to_cdecl= 6299fi 6300if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6302$as_echo "failed" >&6; } 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6305$as_echo "ok" >&6; } 6306fi 6307 6308# Response file support. 6309if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6310 nm_file_list_spec='@' 6311elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6312 nm_file_list_spec='@' 6313fi 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6352$as_echo_n "checking for sysroot... " >&6; } 6353 6354# Check whether --with-sysroot was given. 6355if test "${with_sysroot+set}" = set; then : 6356 withval=$with_sysroot; 6357else 6358 with_sysroot=no 6359fi 6360 6361 6362lt_sysroot= 6363case $with_sysroot in #( 6364 yes) 6365 if test yes = "$GCC"; then 6366 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6367 fi 6368 ;; #( 6369 /*) 6370 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6371 ;; #( 6372 no|'') 6373 ;; #( 6374 *) 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6376$as_echo "$with_sysroot" >&6; } 6377 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6378 ;; 6379esac 6380 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6382$as_echo "${lt_sysroot:-no}" >&6; } 6383 6384 6385 6386 6387 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6389$as_echo_n "checking for a working dd... " >&6; } 6390if ${ac_cv_path_lt_DD+:} false; then : 6391 $as_echo_n "(cached) " >&6 6392else 6393 printf 0123456789abcdef0123456789abcdef >conftest.i 6394cat conftest.i conftest.i >conftest2.i 6395: ${lt_DD:=$DD} 6396if test -z "$lt_DD"; then 6397 ac_path_lt_DD_found=false 6398 # Loop through the user's path and test for each of PROGNAME-LIST 6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400for as_dir in $PATH 6401do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_prog in dd; do 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6407 as_fn_executable_p "$ac_path_lt_DD" || continue 6408if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6409 cmp -s conftest.i conftest.out \ 6410 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6411fi 6412 $ac_path_lt_DD_found && break 3 6413 done 6414 done 6415 done 6416IFS=$as_save_IFS 6417 if test -z "$ac_cv_path_lt_DD"; then 6418 : 6419 fi 6420else 6421 ac_cv_path_lt_DD=$lt_DD 6422fi 6423 6424rm -f conftest.i conftest2.i conftest.out 6425fi 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6427$as_echo "$ac_cv_path_lt_DD" >&6; } 6428 6429 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6431$as_echo_n "checking how to truncate binary pipes... " >&6; } 6432if ${lt_cv_truncate_bin+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 printf 0123456789abcdef0123456789abcdef >conftest.i 6436cat conftest.i conftest.i >conftest2.i 6437lt_cv_truncate_bin= 6438if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6439 cmp -s conftest.i conftest.out \ 6440 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6441fi 6442rm -f conftest.i conftest2.i conftest.out 6443test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6446$as_echo "$lt_cv_truncate_bin" >&6; } 6447 6448 6449 6450 6451 6452 6453 6454# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6455func_cc_basename () 6456{ 6457 for cc_temp in $*""; do 6458 case $cc_temp in 6459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6461 \-*) ;; 6462 *) break;; 6463 esac 6464 done 6465 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6466} 6467 6468# Check whether --enable-libtool-lock was given. 6469if test "${enable_libtool_lock+set}" = set; then : 6470 enableval=$enable_libtool_lock; 6471fi 6472 6473test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6474 6475# Some flags need to be propagated to the compiler or linker for good 6476# libtool support. 6477case $host in 6478ia64-*-hpux*) 6479 # Find out what ABI is being produced by ac_compile, and set mode 6480 # options accordingly. 6481 echo 'int i;' > conftest.$ac_ext 6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6483 (eval $ac_compile) 2>&5 6484 ac_status=$? 6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6486 test $ac_status = 0; }; then 6487 case `/usr/bin/file conftest.$ac_objext` in 6488 *ELF-32*) 6489 HPUX_IA64_MODE=32 6490 ;; 6491 *ELF-64*) 6492 HPUX_IA64_MODE=64 6493 ;; 6494 esac 6495 fi 6496 rm -rf conftest* 6497 ;; 6498*-*-irix6*) 6499 # Find out what ABI is being produced by ac_compile, and set linker 6500 # options accordingly. 6501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6503 (eval $ac_compile) 2>&5 6504 ac_status=$? 6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6506 test $ac_status = 0; }; then 6507 if test yes = "$lt_cv_prog_gnu_ld"; then 6508 case `/usr/bin/file conftest.$ac_objext` in 6509 *32-bit*) 6510 LD="${LD-ld} -melf32bsmip" 6511 ;; 6512 *N32*) 6513 LD="${LD-ld} -melf32bmipn32" 6514 ;; 6515 *64-bit*) 6516 LD="${LD-ld} -melf64bmip" 6517 ;; 6518 esac 6519 else 6520 case `/usr/bin/file conftest.$ac_objext` in 6521 *32-bit*) 6522 LD="${LD-ld} -32" 6523 ;; 6524 *N32*) 6525 LD="${LD-ld} -n32" 6526 ;; 6527 *64-bit*) 6528 LD="${LD-ld} -64" 6529 ;; 6530 esac 6531 fi 6532 fi 6533 rm -rf conftest* 6534 ;; 6535 6536mips64*-*linux*) 6537 # Find out what ABI is being produced by ac_compile, and set linker 6538 # options accordingly. 6539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6541 (eval $ac_compile) 2>&5 6542 ac_status=$? 6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6544 test $ac_status = 0; }; then 6545 emul=elf 6546 case `/usr/bin/file conftest.$ac_objext` in 6547 *32-bit*) 6548 emul="${emul}32" 6549 ;; 6550 *64-bit*) 6551 emul="${emul}64" 6552 ;; 6553 esac 6554 case `/usr/bin/file conftest.$ac_objext` in 6555 *MSB*) 6556 emul="${emul}btsmip" 6557 ;; 6558 *LSB*) 6559 emul="${emul}ltsmip" 6560 ;; 6561 esac 6562 case `/usr/bin/file conftest.$ac_objext` in 6563 *N32*) 6564 emul="${emul}n32" 6565 ;; 6566 esac 6567 LD="${LD-ld} -m $emul" 6568 fi 6569 rm -rf conftest* 6570 ;; 6571 6572x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6573s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6574 # Find out what ABI is being produced by ac_compile, and set linker 6575 # options accordingly. Note that the listed cases only cover the 6576 # situations where additional linker options are needed (such as when 6577 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6578 # vice versa); the common cases where no linker options are needed do 6579 # not appear in the list. 6580 echo 'int i;' > conftest.$ac_ext 6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6582 (eval $ac_compile) 2>&5 6583 ac_status=$? 6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6585 test $ac_status = 0; }; then 6586 case `/usr/bin/file conftest.o` in 6587 *32-bit*) 6588 case $host in 6589 x86_64-*kfreebsd*-gnu) 6590 LD="${LD-ld} -m elf_i386_fbsd" 6591 ;; 6592 x86_64-*linux*) 6593 case `/usr/bin/file conftest.o` in 6594 *x86-64*) 6595 LD="${LD-ld} -m elf32_x86_64" 6596 ;; 6597 *) 6598 LD="${LD-ld} -m elf_i386" 6599 ;; 6600 esac 6601 ;; 6602 powerpc64le-*linux*) 6603 LD="${LD-ld} -m elf32lppclinux" 6604 ;; 6605 powerpc64-*linux*) 6606 LD="${LD-ld} -m elf32ppclinux" 6607 ;; 6608 s390x-*linux*) 6609 LD="${LD-ld} -m elf_s390" 6610 ;; 6611 sparc64-*linux*) 6612 LD="${LD-ld} -m elf32_sparc" 6613 ;; 6614 esac 6615 ;; 6616 *64-bit*) 6617 case $host in 6618 x86_64-*kfreebsd*-gnu) 6619 LD="${LD-ld} -m elf_x86_64_fbsd" 6620 ;; 6621 x86_64-*linux*) 6622 LD="${LD-ld} -m elf_x86_64" 6623 ;; 6624 powerpcle-*linux*) 6625 LD="${LD-ld} -m elf64lppc" 6626 ;; 6627 powerpc-*linux*) 6628 LD="${LD-ld} -m elf64ppc" 6629 ;; 6630 s390*-*linux*|s390*-*tpf*) 6631 LD="${LD-ld} -m elf64_s390" 6632 ;; 6633 sparc*-*linux*) 6634 LD="${LD-ld} -m elf64_sparc" 6635 ;; 6636 esac 6637 ;; 6638 esac 6639 fi 6640 rm -rf conftest* 6641 ;; 6642 6643*-*-sco3.2v5*) 6644 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6645 SAVE_CFLAGS=$CFLAGS 6646 CFLAGS="$CFLAGS -belf" 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6648$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6649if ${lt_cv_cc_needs_belf+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 ac_ext=c 6653ac_cpp='$CPP $CPPFLAGS' 6654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6656ac_compiler_gnu=$ac_cv_c_compiler_gnu 6657 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660 6661int 6662main () 6663{ 6664 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669if ac_fn_c_try_link "$LINENO"; then : 6670 lt_cv_cc_needs_belf=yes 6671else 6672 lt_cv_cc_needs_belf=no 6673fi 6674rm -f core conftest.err conftest.$ac_objext \ 6675 conftest$ac_exeext conftest.$ac_ext 6676 ac_ext=c 6677ac_cpp='$CPP $CPPFLAGS' 6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6680ac_compiler_gnu=$ac_cv_c_compiler_gnu 6681 6682fi 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6684$as_echo "$lt_cv_cc_needs_belf" >&6; } 6685 if test yes != "$lt_cv_cc_needs_belf"; then 6686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6687 CFLAGS=$SAVE_CFLAGS 6688 fi 6689 ;; 6690*-*solaris*) 6691 # Find out what ABI is being produced by ac_compile, and set linker 6692 # options accordingly. 6693 echo 'int i;' > conftest.$ac_ext 6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6695 (eval $ac_compile) 2>&5 6696 ac_status=$? 6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6698 test $ac_status = 0; }; then 6699 case `/usr/bin/file conftest.o` in 6700 *64-bit*) 6701 case $lt_cv_prog_gnu_ld in 6702 yes*) 6703 case $host in 6704 i?86-*-solaris*|x86_64-*-solaris*) 6705 LD="${LD-ld} -m elf_x86_64" 6706 ;; 6707 sparc*-*-solaris*) 6708 LD="${LD-ld} -m elf64_sparc" 6709 ;; 6710 esac 6711 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6712 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6713 LD=${LD-ld}_sol2 6714 fi 6715 ;; 6716 *) 6717 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6718 LD="${LD-ld} -64" 6719 fi 6720 ;; 6721 esac 6722 ;; 6723 esac 6724 fi 6725 rm -rf conftest* 6726 ;; 6727esac 6728 6729need_locks=$enable_libtool_lock 6730 6731if test -n "$ac_tool_prefix"; then 6732 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6733set dummy ${ac_tool_prefix}mt; ac_word=$2 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735$as_echo_n "checking for $ac_word... " >&6; } 6736if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$MANIFEST_TOOL"; then 6740 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6741else 6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH 6744do 6745 IFS=$as_save_IFS 6746 test -z "$as_dir" && as_dir=. 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6749 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6751 break 2 6752 fi 6753done 6754 done 6755IFS=$as_save_IFS 6756 6757fi 6758fi 6759MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6760if test -n "$MANIFEST_TOOL"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6762$as_echo "$MANIFEST_TOOL" >&6; } 6763else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765$as_echo "no" >&6; } 6766fi 6767 6768 6769fi 6770if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6771 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6772 # Extract the first word of "mt", so it can be a program name with args. 6773set dummy mt; ac_word=$2 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6775$as_echo_n "checking for $ac_word... " >&6; } 6776if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 if test -n "$ac_ct_MANIFEST_TOOL"; then 6780 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6781else 6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783for as_dir in $PATH 6784do 6785 IFS=$as_save_IFS 6786 test -z "$as_dir" && as_dir=. 6787 for ac_exec_ext in '' $ac_executable_extensions; do 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6789 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6791 break 2 6792 fi 6793done 6794 done 6795IFS=$as_save_IFS 6796 6797fi 6798fi 6799ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6800if test -n "$ac_ct_MANIFEST_TOOL"; then 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6802$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6803else 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6805$as_echo "no" >&6; } 6806fi 6807 6808 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6809 MANIFEST_TOOL=":" 6810 else 6811 case $cross_compiling:$ac_tool_warned in 6812yes:) 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6815ac_tool_warned=yes ;; 6816esac 6817 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6818 fi 6819else 6820 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6821fi 6822 6823test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6825$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6826if ${lt_cv_path_mainfest_tool+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 lt_cv_path_mainfest_tool=no 6830 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6831 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6832 cat conftest.err >&5 6833 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6834 lt_cv_path_mainfest_tool=yes 6835 fi 6836 rm -f conftest* 6837fi 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6839$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6840if test yes != "$lt_cv_path_mainfest_tool"; then 6841 MANIFEST_TOOL=: 6842fi 6843 6844 6845 6846 6847 6848 6849 case $host_os in 6850 rhapsody* | darwin*) 6851 if test -n "$ac_tool_prefix"; then 6852 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6853set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6855$as_echo_n "checking for $ac_word... " >&6; } 6856if ${ac_cv_prog_DSYMUTIL+:} false; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 if test -n "$DSYMUTIL"; then 6860 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6869 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879DSYMUTIL=$ac_cv_prog_DSYMUTIL 6880if test -n "$DSYMUTIL"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6882$as_echo "$DSYMUTIL" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885$as_echo "no" >&6; } 6886fi 6887 6888 6889fi 6890if test -z "$ac_cv_prog_DSYMUTIL"; then 6891 ac_ct_DSYMUTIL=$DSYMUTIL 6892 # Extract the first word of "dsymutil", so it can be a program name with args. 6893set dummy dsymutil; ac_word=$2 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895$as_echo_n "checking for $ac_word... " >&6; } 6896if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if test -n "$ac_ct_DSYMUTIL"; then 6900 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6901else 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6909 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913done 6914 done 6915IFS=$as_save_IFS 6916 6917fi 6918fi 6919ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6920if test -n "$ac_ct_DSYMUTIL"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6922$as_echo "$ac_ct_DSYMUTIL" >&6; } 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926fi 6927 6928 if test "x$ac_ct_DSYMUTIL" = x; then 6929 DSYMUTIL=":" 6930 else 6931 case $cross_compiling:$ac_tool_warned in 6932yes:) 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6935ac_tool_warned=yes ;; 6936esac 6937 DSYMUTIL=$ac_ct_DSYMUTIL 6938 fi 6939else 6940 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6941fi 6942 6943 if test -n "$ac_tool_prefix"; then 6944 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6945set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if ${ac_cv_prog_NMEDIT+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 if test -n "$NMEDIT"; then 6952 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6953else 6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955for as_dir in $PATH 6956do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969fi 6970fi 6971NMEDIT=$ac_cv_prog_NMEDIT 6972if test -n "$NMEDIT"; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6974$as_echo "$NMEDIT" >&6; } 6975else 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977$as_echo "no" >&6; } 6978fi 6979 6980 6981fi 6982if test -z "$ac_cv_prog_NMEDIT"; then 6983 ac_ct_NMEDIT=$NMEDIT 6984 # Extract the first word of "nmedit", so it can be a program name with args. 6985set dummy nmedit; ac_word=$2 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6987$as_echo_n "checking for $ac_word... " >&6; } 6988if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$ac_ct_NMEDIT"; then 6992 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6993else 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_exec_ext in '' $ac_executable_extensions; do 7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7001 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7003 break 2 7004 fi 7005done 7006 done 7007IFS=$as_save_IFS 7008 7009fi 7010fi 7011ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7012if test -n "$ac_ct_NMEDIT"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7014$as_echo "$ac_ct_NMEDIT" >&6; } 7015else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7017$as_echo "no" >&6; } 7018fi 7019 7020 if test "x$ac_ct_NMEDIT" = x; then 7021 NMEDIT=":" 7022 else 7023 case $cross_compiling:$ac_tool_warned in 7024yes:) 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7027ac_tool_warned=yes ;; 7028esac 7029 NMEDIT=$ac_ct_NMEDIT 7030 fi 7031else 7032 NMEDIT="$ac_cv_prog_NMEDIT" 7033fi 7034 7035 if test -n "$ac_tool_prefix"; then 7036 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7037set dummy ${ac_tool_prefix}lipo; ac_word=$2 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039$as_echo_n "checking for $ac_word... " >&6; } 7040if ${ac_cv_prog_LIPO+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 if test -n "$LIPO"; then 7044 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7045else 7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7047for as_dir in $PATH 7048do 7049 IFS=$as_save_IFS 7050 test -z "$as_dir" && as_dir=. 7051 for ac_exec_ext in '' $ac_executable_extensions; do 7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7053 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7055 break 2 7056 fi 7057done 7058 done 7059IFS=$as_save_IFS 7060 7061fi 7062fi 7063LIPO=$ac_cv_prog_LIPO 7064if test -n "$LIPO"; then 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7066$as_echo "$LIPO" >&6; } 7067else 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7069$as_echo "no" >&6; } 7070fi 7071 7072 7073fi 7074if test -z "$ac_cv_prog_LIPO"; then 7075 ac_ct_LIPO=$LIPO 7076 # Extract the first word of "lipo", so it can be a program name with args. 7077set dummy lipo; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$ac_ct_LIPO"; then 7084 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_prog_ac_ct_LIPO="lipo" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7104if test -n "$ac_ct_LIPO"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7106$as_echo "$ac_ct_LIPO" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 if test "x$ac_ct_LIPO" = x; then 7113 LIPO=":" 7114 else 7115 case $cross_compiling:$ac_tool_warned in 7116yes:) 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7119ac_tool_warned=yes ;; 7120esac 7121 LIPO=$ac_ct_LIPO 7122 fi 7123else 7124 LIPO="$ac_cv_prog_LIPO" 7125fi 7126 7127 if test -n "$ac_tool_prefix"; then 7128 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7129set dummy ${ac_tool_prefix}otool; ac_word=$2 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7131$as_echo_n "checking for $ac_word... " >&6; } 7132if ${ac_cv_prog_OTOOL+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 if test -n "$OTOOL"; then 7136 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7145 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149done 7150 done 7151IFS=$as_save_IFS 7152 7153fi 7154fi 7155OTOOL=$ac_cv_prog_OTOOL 7156if test -n "$OTOOL"; then 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7158$as_echo "$OTOOL" >&6; } 7159else 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163 7164 7165fi 7166if test -z "$ac_cv_prog_OTOOL"; then 7167 ac_ct_OTOOL=$OTOOL 7168 # Extract the first word of "otool", so it can be a program name with args. 7169set dummy otool; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$ac_ct_OTOOL"; then 7176 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_ac_ct_OTOOL="otool" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193fi 7194fi 7195ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7196if test -n "$ac_ct_OTOOL"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7198$as_echo "$ac_ct_OTOOL" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201$as_echo "no" >&6; } 7202fi 7203 7204 if test "x$ac_ct_OTOOL" = x; then 7205 OTOOL=":" 7206 else 7207 case $cross_compiling:$ac_tool_warned in 7208yes:) 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7211ac_tool_warned=yes ;; 7212esac 7213 OTOOL=$ac_ct_OTOOL 7214 fi 7215else 7216 OTOOL="$ac_cv_prog_OTOOL" 7217fi 7218 7219 if test -n "$ac_tool_prefix"; then 7220 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7221set dummy ${ac_tool_prefix}otool64; ac_word=$2 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7223$as_echo_n "checking for $ac_word... " >&6; } 7224if ${ac_cv_prog_OTOOL64+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 if test -n "$OTOOL64"; then 7228 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7229else 7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7231for as_dir in $PATH 7232do 7233 IFS=$as_save_IFS 7234 test -z "$as_dir" && as_dir=. 7235 for ac_exec_ext in '' $ac_executable_extensions; do 7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7237 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7239 break 2 7240 fi 7241done 7242 done 7243IFS=$as_save_IFS 7244 7245fi 7246fi 7247OTOOL64=$ac_cv_prog_OTOOL64 7248if test -n "$OTOOL64"; then 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7250$as_echo "$OTOOL64" >&6; } 7251else 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7253$as_echo "no" >&6; } 7254fi 7255 7256 7257fi 7258if test -z "$ac_cv_prog_OTOOL64"; then 7259 ac_ct_OTOOL64=$OTOOL64 7260 # Extract the first word of "otool64", so it can be a program name with args. 7261set dummy otool64; ac_word=$2 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7263$as_echo_n "checking for $ac_word... " >&6; } 7264if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 if test -n "$ac_ct_OTOOL64"; then 7268 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7269else 7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271for as_dir in $PATH 7272do 7273 IFS=$as_save_IFS 7274 test -z "$as_dir" && as_dir=. 7275 for ac_exec_ext in '' $ac_executable_extensions; do 7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7277 ac_cv_prog_ac_ct_OTOOL64="otool64" 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7279 break 2 7280 fi 7281done 7282 done 7283IFS=$as_save_IFS 7284 7285fi 7286fi 7287ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7288if test -n "$ac_ct_OTOOL64"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7290$as_echo "$ac_ct_OTOOL64" >&6; } 7291else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293$as_echo "no" >&6; } 7294fi 7295 7296 if test "x$ac_ct_OTOOL64" = x; then 7297 OTOOL64=":" 7298 else 7299 case $cross_compiling:$ac_tool_warned in 7300yes:) 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7303ac_tool_warned=yes ;; 7304esac 7305 OTOOL64=$ac_ct_OTOOL64 7306 fi 7307else 7308 OTOOL64="$ac_cv_prog_OTOOL64" 7309fi 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7338$as_echo_n "checking for -single_module linker flag... " >&6; } 7339if ${lt_cv_apple_cc_single_mod+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 lt_cv_apple_cc_single_mod=no 7343 if test -z "$LT_MULTI_MODULE"; then 7344 # By default we will add the -single_module flag. You can override 7345 # by either setting the environment variable LT_MULTI_MODULE 7346 # non-empty at configure time, or by adding -multi_module to the 7347 # link flags. 7348 rm -rf libconftest.dylib* 7349 echo "int foo(void){return 1;}" > conftest.c 7350 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7351-dynamiclib -Wl,-single_module conftest.c" >&5 7352 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7353 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7354 _lt_result=$? 7355 # If there is a non-empty error log, and "single_module" 7356 # appears in it, assume the flag caused a linker warning 7357 if test -s conftest.err && $GREP single_module conftest.err; then 7358 cat conftest.err >&5 7359 # Otherwise, if the output was created with a 0 exit code from 7360 # the compiler, it worked. 7361 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7362 lt_cv_apple_cc_single_mod=yes 7363 else 7364 cat conftest.err >&5 7365 fi 7366 rm -rf libconftest.dylib* 7367 rm -f conftest.* 7368 fi 7369fi 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7371$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7372 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7374$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7375if ${lt_cv_ld_exported_symbols_list+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 lt_cv_ld_exported_symbols_list=no 7379 save_LDFLAGS=$LDFLAGS 7380 echo "_main" > conftest.sym 7381 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384 7385int 7386main () 7387{ 7388 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO"; then : 7394 lt_cv_ld_exported_symbols_list=yes 7395else 7396 lt_cv_ld_exported_symbols_list=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext \ 7399 conftest$ac_exeext conftest.$ac_ext 7400 LDFLAGS=$save_LDFLAGS 7401 7402fi 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7404$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7405 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7407$as_echo_n "checking for -force_load linker flag... " >&6; } 7408if ${lt_cv_ld_force_load+:} false; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 lt_cv_ld_force_load=no 7412 cat > conftest.c << _LT_EOF 7413int forced_loaded() { return 2;} 7414_LT_EOF 7415 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7416 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7417 echo "$AR cr libconftest.a conftest.o" >&5 7418 $AR cr libconftest.a conftest.o 2>&5 7419 echo "$RANLIB libconftest.a" >&5 7420 $RANLIB libconftest.a 2>&5 7421 cat > conftest.c << _LT_EOF 7422int main() { return 0;} 7423_LT_EOF 7424 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7425 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7426 _lt_result=$? 7427 if test -s conftest.err && $GREP force_load conftest.err; then 7428 cat conftest.err >&5 7429 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7430 lt_cv_ld_force_load=yes 7431 else 7432 cat conftest.err >&5 7433 fi 7434 rm -f conftest.err libconftest.a conftest conftest.c 7435 rm -rf conftest.dSYM 7436 7437fi 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7439$as_echo "$lt_cv_ld_force_load" >&6; } 7440 case $host_os in 7441 rhapsody* | darwin1.[012]) 7442 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7443 darwin1.*) 7444 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7445 darwin*) # darwin 5.x on 7446 # if running on 10.5 or later, the deployment target defaults 7447 # to the OS version, if on x86, and 10.4, the deployment 7448 # target defaults to 10.4. Don't you love it? 7449 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7450 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7451 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7452 10.[012][,.]*) 7453 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7454 10.*) 7455 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7456 esac 7457 ;; 7458 esac 7459 if test yes = "$lt_cv_apple_cc_single_mod"; then 7460 _lt_dar_single_mod='$single_module' 7461 fi 7462 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7463 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7464 else 7465 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7466 fi 7467 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7468 _lt_dsymutil='~$DSYMUTIL $lib || :' 7469 else 7470 _lt_dsymutil= 7471 fi 7472 ;; 7473 esac 7474 7475# func_munge_path_list VARIABLE PATH 7476# ----------------------------------- 7477# VARIABLE is name of variable containing _space_ separated list of 7478# directories to be munged by the contents of PATH, which is string 7479# having a format: 7480# "DIR[:DIR]:" 7481# string "DIR[ DIR]" will be prepended to VARIABLE 7482# ":DIR[:DIR]" 7483# string "DIR[ DIR]" will be appended to VARIABLE 7484# "DIRP[:DIRP]::[DIRA:]DIRA" 7485# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7486# "DIRA[ DIRA]" will be appended to VARIABLE 7487# "DIR[:DIR]" 7488# VARIABLE will be replaced by "DIR[ DIR]" 7489func_munge_path_list () 7490{ 7491 case x$2 in 7492 x) 7493 ;; 7494 *:) 7495 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7496 ;; 7497 x:*) 7498 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7499 ;; 7500 *::*) 7501 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7502 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7503 ;; 7504 *) 7505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7506 ;; 7507 esac 7508} 7509 7510ac_ext=c 7511ac_cpp='$CPP $CPPFLAGS' 7512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7514ac_compiler_gnu=$ac_cv_c_compiler_gnu 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7516$as_echo_n "checking how to run the C preprocessor... " >&6; } 7517# On Suns, sometimes $CPP names a directory. 7518if test -n "$CPP" && test -d "$CPP"; then 7519 CPP= 7520fi 7521if test -z "$CPP"; then 7522 if ${ac_cv_prog_CPP+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524else 7525 # Double quotes because CPP needs to be expanded 7526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7527 do 7528 ac_preproc_ok=false 7529for ac_c_preproc_warn_flag in '' yes 7530do 7531 # Use a header file that comes with gcc, so configuring glibc 7532 # with a fresh cross-compiler works. 7533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7534 # <limits.h> exists even on freestanding compilers. 7535 # On the NeXT, cc -E runs the code through the compiler's parser, 7536 # not just through cpp. "Syntax error" is here to catch this case. 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539#ifdef __STDC__ 7540# include <limits.h> 7541#else 7542# include <assert.h> 7543#endif 7544 Syntax error 7545_ACEOF 7546if ac_fn_c_try_cpp "$LINENO"; then : 7547 7548else 7549 # Broken: fails on valid input. 7550continue 7551fi 7552rm -f conftest.err conftest.i conftest.$ac_ext 7553 7554 # OK, works on sane cases. Now check whether nonexistent headers 7555 # can be detected and how. 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558#include <ac_nonexistent.h> 7559_ACEOF 7560if ac_fn_c_try_cpp "$LINENO"; then : 7561 # Broken: success on invalid input. 7562continue 7563else 7564 # Passes both tests. 7565ac_preproc_ok=: 7566break 7567fi 7568rm -f conftest.err conftest.i conftest.$ac_ext 7569 7570done 7571# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7572rm -f conftest.i conftest.err conftest.$ac_ext 7573if $ac_preproc_ok; then : 7574 break 7575fi 7576 7577 done 7578 ac_cv_prog_CPP=$CPP 7579 7580fi 7581 CPP=$ac_cv_prog_CPP 7582else 7583 ac_cv_prog_CPP=$CPP 7584fi 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7586$as_echo "$CPP" >&6; } 7587ac_preproc_ok=false 7588for ac_c_preproc_warn_flag in '' yes 7589do 7590 # Use a header file that comes with gcc, so configuring glibc 7591 # with a fresh cross-compiler works. 7592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7593 # <limits.h> exists even on freestanding compilers. 7594 # On the NeXT, cc -E runs the code through the compiler's parser, 7595 # not just through cpp. "Syntax error" is here to catch this case. 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598#ifdef __STDC__ 7599# include <limits.h> 7600#else 7601# include <assert.h> 7602#endif 7603 Syntax error 7604_ACEOF 7605if ac_fn_c_try_cpp "$LINENO"; then : 7606 7607else 7608 # Broken: fails on valid input. 7609continue 7610fi 7611rm -f conftest.err conftest.i conftest.$ac_ext 7612 7613 # OK, works on sane cases. Now check whether nonexistent headers 7614 # can be detected and how. 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617#include <ac_nonexistent.h> 7618_ACEOF 7619if ac_fn_c_try_cpp "$LINENO"; then : 7620 # Broken: success on invalid input. 7621continue 7622else 7623 # Passes both tests. 7624ac_preproc_ok=: 7625break 7626fi 7627rm -f conftest.err conftest.i conftest.$ac_ext 7628 7629done 7630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7631rm -f conftest.i conftest.err conftest.$ac_ext 7632if $ac_preproc_ok; then : 7633 7634else 7635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7637as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7638See \`config.log' for more details" "$LINENO" 5; } 7639fi 7640 7641ac_ext=c 7642ac_cpp='$CPP $CPPFLAGS' 7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7645ac_compiler_gnu=$ac_cv_c_compiler_gnu 7646 7647 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7649$as_echo_n "checking for ANSI C header files... " >&6; } 7650if ${ac_cv_header_stdc+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655#include <stdlib.h> 7656#include <stdarg.h> 7657#include <string.h> 7658#include <float.h> 7659 7660int 7661main () 7662{ 7663 7664 ; 7665 return 0; 7666} 7667_ACEOF 7668if ac_fn_c_try_compile "$LINENO"; then : 7669 ac_cv_header_stdc=yes 7670else 7671 ac_cv_header_stdc=no 7672fi 7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7674 7675if test $ac_cv_header_stdc = yes; then 7676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679#include <string.h> 7680 7681_ACEOF 7682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7683 $EGREP "memchr" >/dev/null 2>&1; then : 7684 7685else 7686 ac_cv_header_stdc=no 7687fi 7688rm -f conftest* 7689 7690fi 7691 7692if test $ac_cv_header_stdc = yes; then 7693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696#include <stdlib.h> 7697 7698_ACEOF 7699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7700 $EGREP "free" >/dev/null 2>&1; then : 7701 7702else 7703 ac_cv_header_stdc=no 7704fi 7705rm -f conftest* 7706 7707fi 7708 7709if test $ac_cv_header_stdc = yes; then 7710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7711 if test "$cross_compiling" = yes; then : 7712 : 7713else 7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7715/* end confdefs.h. */ 7716#include <ctype.h> 7717#include <stdlib.h> 7718#if ((' ' & 0x0FF) == 0x020) 7719# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7720# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7721#else 7722# define ISLOWER(c) \ 7723 (('a' <= (c) && (c) <= 'i') \ 7724 || ('j' <= (c) && (c) <= 'r') \ 7725 || ('s' <= (c) && (c) <= 'z')) 7726# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7727#endif 7728 7729#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7730int 7731main () 7732{ 7733 int i; 7734 for (i = 0; i < 256; i++) 7735 if (XOR (islower (i), ISLOWER (i)) 7736 || toupper (i) != TOUPPER (i)) 7737 return 2; 7738 return 0; 7739} 7740_ACEOF 7741if ac_fn_c_try_run "$LINENO"; then : 7742 7743else 7744 ac_cv_header_stdc=no 7745fi 7746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7747 conftest.$ac_objext conftest.beam conftest.$ac_ext 7748fi 7749 7750fi 7751fi 7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7753$as_echo "$ac_cv_header_stdc" >&6; } 7754if test $ac_cv_header_stdc = yes; then 7755 7756$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7757 7758fi 7759 7760# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7761for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7762 inttypes.h stdint.h unistd.h 7763do : 7764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7765ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7766" 7767if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7768 cat >>confdefs.h <<_ACEOF 7769#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7770_ACEOF 7771 7772fi 7773 7774done 7775 7776 7777for ac_header in dlfcn.h 7778do : 7779 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7780" 7781if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7782 cat >>confdefs.h <<_ACEOF 7783#define HAVE_DLFCN_H 1 7784_ACEOF 7785 7786fi 7787 7788done 7789 7790 7791 7792 7793 7794# Set options 7795 7796 7797 7798 enable_dlopen=no 7799 7800 7801 enable_win32_dll=no 7802 7803 7804 # Check whether --enable-shared was given. 7805if test "${enable_shared+set}" = set; then : 7806 enableval=$enable_shared; p=${PACKAGE-default} 7807 case $enableval in 7808 yes) enable_shared=yes ;; 7809 no) enable_shared=no ;; 7810 *) 7811 enable_shared=no 7812 # Look at the argument we got. We use all the common list separators. 7813 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7814 for pkg in $enableval; do 7815 IFS=$lt_save_ifs 7816 if test "X$pkg" = "X$p"; then 7817 enable_shared=yes 7818 fi 7819 done 7820 IFS=$lt_save_ifs 7821 ;; 7822 esac 7823else 7824 enable_shared=yes 7825fi 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 # Check whether --enable-static was given. 7836if test "${enable_static+set}" = set; then : 7837 enableval=$enable_static; p=${PACKAGE-default} 7838 case $enableval in 7839 yes) enable_static=yes ;; 7840 no) enable_static=no ;; 7841 *) 7842 enable_static=no 7843 # Look at the argument we got. We use all the common list separators. 7844 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7845 for pkg in $enableval; do 7846 IFS=$lt_save_ifs 7847 if test "X$pkg" = "X$p"; then 7848 enable_static=yes 7849 fi 7850 done 7851 IFS=$lt_save_ifs 7852 ;; 7853 esac 7854else 7855 enable_static=yes 7856fi 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867# Check whether --with-pic was given. 7868if test "${with_pic+set}" = set; then : 7869 withval=$with_pic; lt_p=${PACKAGE-default} 7870 case $withval in 7871 yes|no) pic_mode=$withval ;; 7872 *) 7873 pic_mode=default 7874 # Look at the argument we got. We use all the common list separators. 7875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7876 for lt_pkg in $withval; do 7877 IFS=$lt_save_ifs 7878 if test "X$lt_pkg" = "X$lt_p"; then 7879 pic_mode=yes 7880 fi 7881 done 7882 IFS=$lt_save_ifs 7883 ;; 7884 esac 7885else 7886 pic_mode=default 7887fi 7888 7889 7890 7891 7892 7893 7894 7895 7896 # Check whether --enable-fast-install was given. 7897if test "${enable_fast_install+set}" = set; then : 7898 enableval=$enable_fast_install; p=${PACKAGE-default} 7899 case $enableval in 7900 yes) enable_fast_install=yes ;; 7901 no) enable_fast_install=no ;; 7902 *) 7903 enable_fast_install=no 7904 # Look at the argument we got. We use all the common list separators. 7905 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7906 for pkg in $enableval; do 7907 IFS=$lt_save_ifs 7908 if test "X$pkg" = "X$p"; then 7909 enable_fast_install=yes 7910 fi 7911 done 7912 IFS=$lt_save_ifs 7913 ;; 7914 esac 7915else 7916 enable_fast_install=yes 7917fi 7918 7919 7920 7921 7922 7923 7924 7925 7926 shared_archive_member_spec= 7927case $host,$enable_shared in 7928power*-*-aix[5-9]*,yes) 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7930$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7931 7932# Check whether --with-aix-soname was given. 7933if test "${with_aix_soname+set}" = set; then : 7934 withval=$with_aix_soname; case $withval in 7935 aix|svr4|both) 7936 ;; 7937 *) 7938 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7939 ;; 7940 esac 7941 lt_cv_with_aix_soname=$with_aix_soname 7942else 7943 if ${lt_cv_with_aix_soname+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 lt_cv_with_aix_soname=aix 7947fi 7948 7949 with_aix_soname=$lt_cv_with_aix_soname 7950fi 7951 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7953$as_echo "$with_aix_soname" >&6; } 7954 if test aix != "$with_aix_soname"; then 7955 # For the AIX way of multilib, we name the shared archive member 7956 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7957 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7958 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7959 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7960 if test 64 = "${OBJECT_MODE-32}"; then 7961 shared_archive_member_spec=shr_64 7962 else 7963 shared_archive_member_spec=shr 7964 fi 7965 fi 7966 ;; 7967*) 7968 with_aix_soname=aix 7969 ;; 7970esac 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981# This can be used to rebuild libtool when needed 7982LIBTOOL_DEPS=$ltmain 7983 7984# Always use our own libtool. 7985LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016test -z "$LN_S" && LN_S="ln -s" 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031if test -n "${ZSH_VERSION+set}"; then 8032 setopt NO_GLOB_SUBST 8033fi 8034 8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8036$as_echo_n "checking for objdir... " >&6; } 8037if ${lt_cv_objdir+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 rm -f .libs 2>/dev/null 8041mkdir .libs 2>/dev/null 8042if test -d .libs; then 8043 lt_cv_objdir=.libs 8044else 8045 # MS-DOS does not allow filenames that begin with a dot. 8046 lt_cv_objdir=_libs 8047fi 8048rmdir .libs 2>/dev/null 8049fi 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8051$as_echo "$lt_cv_objdir" >&6; } 8052objdir=$lt_cv_objdir 8053 8054 8055 8056 8057 8058cat >>confdefs.h <<_ACEOF 8059#define LT_OBJDIR "$lt_cv_objdir/" 8060_ACEOF 8061 8062 8063 8064 8065case $host_os in 8066aix3*) 8067 # AIX sometimes has problems with the GCC collect2 program. For some 8068 # reason, if we set the COLLECT_NAMES environment variable, the problems 8069 # vanish in a puff of smoke. 8070 if test set != "${COLLECT_NAMES+set}"; then 8071 COLLECT_NAMES= 8072 export COLLECT_NAMES 8073 fi 8074 ;; 8075esac 8076 8077# Global variables: 8078ofile=libtool 8079can_build_shared=yes 8080 8081# All known linkers require a '.a' archive for static linking (except MSVC, 8082# which needs '.lib'). 8083libext=a 8084 8085with_gnu_ld=$lt_cv_prog_gnu_ld 8086 8087old_CC=$CC 8088old_CFLAGS=$CFLAGS 8089 8090# Set sane defaults for various variables 8091test -z "$CC" && CC=cc 8092test -z "$LTCC" && LTCC=$CC 8093test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8094test -z "$LD" && LD=ld 8095test -z "$ac_objext" && ac_objext=o 8096 8097func_cc_basename $compiler 8098cc_basename=$func_cc_basename_result 8099 8100 8101# Only perform the check for file, if the check method requires it 8102test -z "$MAGIC_CMD" && MAGIC_CMD=file 8103case $deplibs_check_method in 8104file_magic*) 8105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8107$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8108if ${lt_cv_path_MAGIC_CMD+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 case $MAGIC_CMD in 8112[\\/*] | ?:[\\/]*) 8113 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8114 ;; 8115*) 8116 lt_save_MAGIC_CMD=$MAGIC_CMD 8117 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8119 for ac_dir in $ac_dummy; do 8120 IFS=$lt_save_ifs 8121 test -z "$ac_dir" && ac_dir=. 8122 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8123 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8124 if test -n "$file_magic_test_file"; then 8125 case $deplibs_check_method in 8126 "file_magic "*) 8127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8128 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8130 $EGREP "$file_magic_regex" > /dev/null; then 8131 : 8132 else 8133 cat <<_LT_EOF 1>&2 8134 8135*** Warning: the command libtool uses to detect shared libraries, 8136*** $file_magic_cmd, produces output that libtool cannot recognize. 8137*** The result is that libtool may fail to recognize shared libraries 8138*** as such. This will affect the creation of libtool libraries that 8139*** depend on shared libraries, but programs linked with such libtool 8140*** libraries will work regardless of this problem. Nevertheless, you 8141*** may want to report the problem to your system manager and/or to 8142*** bug-libtool@gnu.org 8143 8144_LT_EOF 8145 fi ;; 8146 esac 8147 fi 8148 break 8149 fi 8150 done 8151 IFS=$lt_save_ifs 8152 MAGIC_CMD=$lt_save_MAGIC_CMD 8153 ;; 8154esac 8155fi 8156 8157MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8158if test -n "$MAGIC_CMD"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8160$as_echo "$MAGIC_CMD" >&6; } 8161else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163$as_echo "no" >&6; } 8164fi 8165 8166 8167 8168 8169 8170if test -z "$lt_cv_path_MAGIC_CMD"; then 8171 if test -n "$ac_tool_prefix"; then 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8173$as_echo_n "checking for file... " >&6; } 8174if ${lt_cv_path_MAGIC_CMD+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 case $MAGIC_CMD in 8178[\\/*] | ?:[\\/]*) 8179 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8180 ;; 8181*) 8182 lt_save_MAGIC_CMD=$MAGIC_CMD 8183 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8185 for ac_dir in $ac_dummy; do 8186 IFS=$lt_save_ifs 8187 test -z "$ac_dir" && ac_dir=. 8188 if test -f "$ac_dir/file"; then 8189 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8190 if test -n "$file_magic_test_file"; then 8191 case $deplibs_check_method in 8192 "file_magic "*) 8193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8194 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8196 $EGREP "$file_magic_regex" > /dev/null; then 8197 : 8198 else 8199 cat <<_LT_EOF 1>&2 8200 8201*** Warning: the command libtool uses to detect shared libraries, 8202*** $file_magic_cmd, produces output that libtool cannot recognize. 8203*** The result is that libtool may fail to recognize shared libraries 8204*** as such. This will affect the creation of libtool libraries that 8205*** depend on shared libraries, but programs linked with such libtool 8206*** libraries will work regardless of this problem. Nevertheless, you 8207*** may want to report the problem to your system manager and/or to 8208*** bug-libtool@gnu.org 8209 8210_LT_EOF 8211 fi ;; 8212 esac 8213 fi 8214 break 8215 fi 8216 done 8217 IFS=$lt_save_ifs 8218 MAGIC_CMD=$lt_save_MAGIC_CMD 8219 ;; 8220esac 8221fi 8222 8223MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8224if test -n "$MAGIC_CMD"; then 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8226$as_echo "$MAGIC_CMD" >&6; } 8227else 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8229$as_echo "no" >&6; } 8230fi 8231 8232 8233 else 8234 MAGIC_CMD=: 8235 fi 8236fi 8237 8238 fi 8239 ;; 8240esac 8241 8242# Use C for the default configuration in the libtool script 8243 8244lt_save_CC=$CC 8245ac_ext=c 8246ac_cpp='$CPP $CPPFLAGS' 8247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8249ac_compiler_gnu=$ac_cv_c_compiler_gnu 8250 8251 8252# Source file extension for C test sources. 8253ac_ext=c 8254 8255# Object file extension for compiled C test sources. 8256objext=o 8257objext=$objext 8258 8259# Code to be used in simple compile tests 8260lt_simple_compile_test_code="int some_variable = 0;" 8261 8262# Code to be used in simple link tests 8263lt_simple_link_test_code='int main(){return(0);}' 8264 8265 8266 8267 8268 8269 8270 8271# If no C compiler was specified, use CC. 8272LTCC=${LTCC-"$CC"} 8273 8274# If no C compiler flags were specified, use CFLAGS. 8275LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8276 8277# Allow CC to be a program name with arguments. 8278compiler=$CC 8279 8280# Save the default compiler, since it gets overwritten when the other 8281# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8282compiler_DEFAULT=$CC 8283 8284# save warnings/boilerplate of simple test code 8285ac_outfile=conftest.$ac_objext 8286echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8288_lt_compiler_boilerplate=`cat conftest.err` 8289$RM conftest* 8290 8291ac_outfile=conftest.$ac_objext 8292echo "$lt_simple_link_test_code" >conftest.$ac_ext 8293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8294_lt_linker_boilerplate=`cat conftest.err` 8295$RM -r conftest* 8296 8297 8298## CAVEAT EMPTOR: 8299## There is no encapsulation within the following macros, do not change 8300## the running order or otherwise move them around unless you know exactly 8301## what you are doing... 8302if test -n "$compiler"; then 8303 8304lt_prog_compiler_no_builtin_flag= 8305 8306if test yes = "$GCC"; then 8307 case $cc_basename in 8308 nvcc*) 8309 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8310 *) 8311 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8312 esac 8313 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8315$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8316if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 lt_cv_prog_compiler_rtti_exceptions=no 8320 ac_outfile=conftest.$ac_objext 8321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8322 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8323 # Insert the option either (1) after the last *FLAGS variable, or 8324 # (2) before a word containing "conftest.", or (3) at the end. 8325 # Note that $ac_compile itself does not contain backslashes and begins 8326 # with a dollar sign (not a hyphen), so the echo should work correctly. 8327 # The option is referenced via a variable to avoid confusing sed. 8328 lt_compile=`echo "$ac_compile" | $SED \ 8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8331 -e 's:$: $lt_compiler_flag:'` 8332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8333 (eval "$lt_compile" 2>conftest.err) 8334 ac_status=$? 8335 cat conftest.err >&5 8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8337 if (exit $ac_status) && test -s "$ac_outfile"; then 8338 # The compiler can only warn and ignore the option if not recognized 8339 # So say no if there are warnings other than the usual output. 8340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8343 lt_cv_prog_compiler_rtti_exceptions=yes 8344 fi 8345 fi 8346 $RM conftest* 8347 8348fi 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8350$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8351 8352if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8353 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8354else 8355 : 8356fi 8357 8358fi 8359 8360 8361 8362 8363 8364 8365 lt_prog_compiler_wl= 8366lt_prog_compiler_pic= 8367lt_prog_compiler_static= 8368 8369 8370 if test yes = "$GCC"; then 8371 lt_prog_compiler_wl='-Wl,' 8372 lt_prog_compiler_static='-static' 8373 8374 case $host_os in 8375 aix*) 8376 # All AIX code is PIC. 8377 if test ia64 = "$host_cpu"; then 8378 # AIX 5 now supports IA64 processor 8379 lt_prog_compiler_static='-Bstatic' 8380 fi 8381 lt_prog_compiler_pic='-fPIC' 8382 ;; 8383 8384 amigaos*) 8385 case $host_cpu in 8386 powerpc) 8387 # see comment about AmigaOS4 .so support 8388 lt_prog_compiler_pic='-fPIC' 8389 ;; 8390 m68k) 8391 # FIXME: we need at least 68020 code to build shared libraries, but 8392 # adding the '-m68020' flag to GCC prevents building anything better, 8393 # like '-m68040'. 8394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8395 ;; 8396 esac 8397 ;; 8398 8399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8400 # PIC is the default for these OSes. 8401 ;; 8402 8403 mingw* | cygwin* | pw32* | os2* | cegcc*) 8404 # This hack is so that the source file can tell whether it is being 8405 # built for inclusion in a dll (and should export symbols for example). 8406 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8407 # (--disable-auto-import) libraries 8408 lt_prog_compiler_pic='-DDLL_EXPORT' 8409 case $host_os in 8410 os2*) 8411 lt_prog_compiler_static='$wl-static' 8412 ;; 8413 esac 8414 ;; 8415 8416 darwin* | rhapsody*) 8417 # PIC is the default on this platform 8418 # Common symbols not allowed in MH_DYLIB files 8419 lt_prog_compiler_pic='-fno-common' 8420 ;; 8421 8422 haiku*) 8423 # PIC is the default for Haiku. 8424 # The "-static" flag exists, but is broken. 8425 lt_prog_compiler_static= 8426 ;; 8427 8428 hpux*) 8429 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8430 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8431 # sets the default TLS model and affects inlining. 8432 case $host_cpu in 8433 hppa*64*) 8434 # +Z the default 8435 ;; 8436 *) 8437 lt_prog_compiler_pic='-fPIC' 8438 ;; 8439 esac 8440 ;; 8441 8442 interix[3-9]*) 8443 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8444 # Instead, we relocate shared libraries at runtime. 8445 ;; 8446 8447 msdosdjgpp*) 8448 # Just because we use GCC doesn't mean we suddenly get shared libraries 8449 # on systems that don't support them. 8450 lt_prog_compiler_can_build_shared=no 8451 enable_shared=no 8452 ;; 8453 8454 *nto* | *qnx*) 8455 # QNX uses GNU C++, but need to define -shared option too, otherwise 8456 # it will coredump. 8457 lt_prog_compiler_pic='-fPIC -shared' 8458 ;; 8459 8460 sysv4*MP*) 8461 if test -d /usr/nec; then 8462 lt_prog_compiler_pic=-Kconform_pic 8463 fi 8464 ;; 8465 8466 *) 8467 lt_prog_compiler_pic='-fPIC' 8468 ;; 8469 esac 8470 8471 case $cc_basename in 8472 nvcc*) # Cuda Compiler Driver 2.2 8473 lt_prog_compiler_wl='-Xlinker ' 8474 if test -n "$lt_prog_compiler_pic"; then 8475 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8476 fi 8477 ;; 8478 esac 8479 else 8480 # PORTME Check for flag to pass linker flags through the system compiler. 8481 case $host_os in 8482 aix*) 8483 lt_prog_compiler_wl='-Wl,' 8484 if test ia64 = "$host_cpu"; then 8485 # AIX 5 now supports IA64 processor 8486 lt_prog_compiler_static='-Bstatic' 8487 else 8488 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8489 fi 8490 ;; 8491 8492 darwin* | rhapsody*) 8493 # PIC is the default on this platform 8494 # Common symbols not allowed in MH_DYLIB files 8495 lt_prog_compiler_pic='-fno-common' 8496 case $cc_basename in 8497 nagfor*) 8498 # NAG Fortran compiler 8499 lt_prog_compiler_wl='-Wl,-Wl,,' 8500 lt_prog_compiler_pic='-PIC' 8501 lt_prog_compiler_static='-Bstatic' 8502 ;; 8503 esac 8504 ;; 8505 8506 mingw* | cygwin* | pw32* | os2* | cegcc*) 8507 # This hack is so that the source file can tell whether it is being 8508 # built for inclusion in a dll (and should export symbols for example). 8509 lt_prog_compiler_pic='-DDLL_EXPORT' 8510 case $host_os in 8511 os2*) 8512 lt_prog_compiler_static='$wl-static' 8513 ;; 8514 esac 8515 ;; 8516 8517 hpux9* | hpux10* | hpux11*) 8518 lt_prog_compiler_wl='-Wl,' 8519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8520 # not for PA HP-UX. 8521 case $host_cpu in 8522 hppa*64*|ia64*) 8523 # +Z the default 8524 ;; 8525 *) 8526 lt_prog_compiler_pic='+Z' 8527 ;; 8528 esac 8529 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8530 lt_prog_compiler_static='$wl-a ${wl}archive' 8531 ;; 8532 8533 irix5* | irix6* | nonstopux*) 8534 lt_prog_compiler_wl='-Wl,' 8535 # PIC (with -KPIC) is the default. 8536 lt_prog_compiler_static='-non_shared' 8537 ;; 8538 8539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8540 case $cc_basename in 8541 # old Intel for x86_64, which still supported -KPIC. 8542 ecc*) 8543 lt_prog_compiler_wl='-Wl,' 8544 lt_prog_compiler_pic='-KPIC' 8545 lt_prog_compiler_static='-static' 8546 ;; 8547 # flang / f18. f95 an alias for gfortran or flang on Debian 8548 flang* | f18* | f95*) 8549 lt_prog_compiler_wl='-Wl,' 8550 lt_prog_compiler_pic='-fPIC' 8551 lt_prog_compiler_static='-static' 8552 ;; 8553 # icc used to be incompatible with GCC. 8554 # ICC 10 doesn't accept -KPIC any more. 8555 icc* | ifort*) 8556 lt_prog_compiler_wl='-Wl,' 8557 lt_prog_compiler_pic='-fPIC' 8558 lt_prog_compiler_static='-static' 8559 ;; 8560 # Lahey Fortran 8.1. 8561 lf95*) 8562 lt_prog_compiler_wl='-Wl,' 8563 lt_prog_compiler_pic='--shared' 8564 lt_prog_compiler_static='--static' 8565 ;; 8566 nagfor*) 8567 # NAG Fortran compiler 8568 lt_prog_compiler_wl='-Wl,-Wl,,' 8569 lt_prog_compiler_pic='-PIC' 8570 lt_prog_compiler_static='-Bstatic' 8571 ;; 8572 tcc*) 8573 # Fabrice Bellard et al's Tiny C Compiler 8574 lt_prog_compiler_wl='-Wl,' 8575 lt_prog_compiler_pic='-fPIC' 8576 lt_prog_compiler_static='-static' 8577 ;; 8578 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8579 # Portland Group compilers (*not* the Pentium gcc compiler, 8580 # which looks to be a dead project) 8581 lt_prog_compiler_wl='-Wl,' 8582 lt_prog_compiler_pic='-fpic' 8583 lt_prog_compiler_static='-Bstatic' 8584 ;; 8585 ccc*) 8586 lt_prog_compiler_wl='-Wl,' 8587 # All Alpha code is PIC. 8588 lt_prog_compiler_static='-non_shared' 8589 ;; 8590 xl* | bgxl* | bgf* | mpixl*) 8591 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_pic='-qpic' 8594 lt_prog_compiler_static='-qstaticlink' 8595 ;; 8596 *) 8597 case `$CC -V 2>&1 | sed 5q` in 8598 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8599 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8600 lt_prog_compiler_pic='-KPIC' 8601 lt_prog_compiler_static='-Bstatic' 8602 lt_prog_compiler_wl='' 8603 ;; 8604 *Sun\ F* | *Sun*Fortran*) 8605 lt_prog_compiler_pic='-KPIC' 8606 lt_prog_compiler_static='-Bstatic' 8607 lt_prog_compiler_wl='-Qoption ld ' 8608 ;; 8609 *Sun\ C*) 8610 # Sun C 5.9 8611 lt_prog_compiler_pic='-KPIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 lt_prog_compiler_wl='-Wl,' 8614 ;; 8615 *Intel*\ [CF]*Compiler*) 8616 lt_prog_compiler_wl='-Wl,' 8617 lt_prog_compiler_pic='-fPIC' 8618 lt_prog_compiler_static='-static' 8619 ;; 8620 *Portland\ Group*) 8621 lt_prog_compiler_wl='-Wl,' 8622 lt_prog_compiler_pic='-fpic' 8623 lt_prog_compiler_static='-Bstatic' 8624 ;; 8625 esac 8626 ;; 8627 esac 8628 ;; 8629 8630 newsos6) 8631 lt_prog_compiler_pic='-KPIC' 8632 lt_prog_compiler_static='-Bstatic' 8633 ;; 8634 8635 *nto* | *qnx*) 8636 # QNX uses GNU C++, but need to define -shared option too, otherwise 8637 # it will coredump. 8638 lt_prog_compiler_pic='-fPIC -shared' 8639 ;; 8640 8641 osf3* | osf4* | osf5*) 8642 lt_prog_compiler_wl='-Wl,' 8643 # All OSF/1 code is PIC. 8644 lt_prog_compiler_static='-non_shared' 8645 ;; 8646 8647 rdos*) 8648 lt_prog_compiler_static='-non_shared' 8649 ;; 8650 8651 solaris*) 8652 lt_prog_compiler_pic='-KPIC' 8653 lt_prog_compiler_static='-Bstatic' 8654 case $cc_basename in 8655 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8656 lt_prog_compiler_wl='-Qoption ld ';; 8657 *) 8658 lt_prog_compiler_wl='-Wl,';; 8659 esac 8660 ;; 8661 8662 sunos4*) 8663 lt_prog_compiler_wl='-Qoption ld ' 8664 lt_prog_compiler_pic='-PIC' 8665 lt_prog_compiler_static='-Bstatic' 8666 ;; 8667 8668 sysv4 | sysv4.2uw2* | sysv4.3*) 8669 lt_prog_compiler_wl='-Wl,' 8670 lt_prog_compiler_pic='-KPIC' 8671 lt_prog_compiler_static='-Bstatic' 8672 ;; 8673 8674 sysv4*MP*) 8675 if test -d /usr/nec; then 8676 lt_prog_compiler_pic='-Kconform_pic' 8677 lt_prog_compiler_static='-Bstatic' 8678 fi 8679 ;; 8680 8681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8682 lt_prog_compiler_wl='-Wl,' 8683 lt_prog_compiler_pic='-KPIC' 8684 lt_prog_compiler_static='-Bstatic' 8685 ;; 8686 8687 unicos*) 8688 lt_prog_compiler_wl='-Wl,' 8689 lt_prog_compiler_can_build_shared=no 8690 ;; 8691 8692 uts4*) 8693 lt_prog_compiler_pic='-pic' 8694 lt_prog_compiler_static='-Bstatic' 8695 ;; 8696 8697 *) 8698 lt_prog_compiler_can_build_shared=no 8699 ;; 8700 esac 8701 fi 8702 8703case $host_os in 8704 # For platforms that do not support PIC, -DPIC is meaningless: 8705 *djgpp*) 8706 lt_prog_compiler_pic= 8707 ;; 8708 *) 8709 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8710 ;; 8711esac 8712 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8714$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8715if ${lt_cv_prog_compiler_pic+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8721$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8722lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8723 8724# 8725# Check to make sure the PIC flag actually works. 8726# 8727if test -n "$lt_prog_compiler_pic"; then 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8729$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8730if ${lt_cv_prog_compiler_pic_works+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 lt_cv_prog_compiler_pic_works=no 8734 ac_outfile=conftest.$ac_objext 8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8736 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8737 # Insert the option either (1) after the last *FLAGS variable, or 8738 # (2) before a word containing "conftest.", or (3) at the end. 8739 # Note that $ac_compile itself does not contain backslashes and begins 8740 # with a dollar sign (not a hyphen), so the echo should work correctly. 8741 # The option is referenced via a variable to avoid confusing sed. 8742 lt_compile=`echo "$ac_compile" | $SED \ 8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8745 -e 's:$: $lt_compiler_flag:'` 8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8747 (eval "$lt_compile" 2>conftest.err) 8748 ac_status=$? 8749 cat conftest.err >&5 8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8751 if (exit $ac_status) && test -s "$ac_outfile"; then 8752 # The compiler can only warn and ignore the option if not recognized 8753 # So say no if there are warnings other than the usual output. 8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8757 lt_cv_prog_compiler_pic_works=yes 8758 fi 8759 fi 8760 $RM conftest* 8761 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8764$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8765 8766if test yes = "$lt_cv_prog_compiler_pic_works"; then 8767 case $lt_prog_compiler_pic in 8768 "" | " "*) ;; 8769 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8770 esac 8771else 8772 lt_prog_compiler_pic= 8773 lt_prog_compiler_can_build_shared=no 8774fi 8775 8776fi 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788# 8789# Check to make sure the static flag actually works. 8790# 8791wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8793$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8794if ${lt_cv_prog_compiler_static_works+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 lt_cv_prog_compiler_static_works=no 8798 save_LDFLAGS=$LDFLAGS 8799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8800 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8802 # The linker can only warn and ignore the option if not recognized 8803 # So say no if there are warnings 8804 if test -s conftest.err; then 8805 # Append any errors to the config.log. 8806 cat conftest.err 1>&5 8807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8809 if diff conftest.exp conftest.er2 >/dev/null; then 8810 lt_cv_prog_compiler_static_works=yes 8811 fi 8812 else 8813 lt_cv_prog_compiler_static_works=yes 8814 fi 8815 fi 8816 $RM -r conftest* 8817 LDFLAGS=$save_LDFLAGS 8818 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8821$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8822 8823if test yes = "$lt_cv_prog_compiler_static_works"; then 8824 : 8825else 8826 lt_prog_compiler_static= 8827fi 8828 8829 8830 8831 8832 8833 8834 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8836$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8837if ${lt_cv_prog_compiler_c_o+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 lt_cv_prog_compiler_c_o=no 8841 $RM -r conftest 2>/dev/null 8842 mkdir conftest 8843 cd conftest 8844 mkdir out 8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8846 8847 lt_compiler_flag="-o out/conftest2.$ac_objext" 8848 # Insert the option either (1) after the last *FLAGS variable, or 8849 # (2) before a word containing "conftest.", or (3) at the end. 8850 # Note that $ac_compile itself does not contain backslashes and begins 8851 # with a dollar sign (not a hyphen), so the echo should work correctly. 8852 lt_compile=`echo "$ac_compile" | $SED \ 8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8855 -e 's:$: $lt_compiler_flag:'` 8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8857 (eval "$lt_compile" 2>out/conftest.err) 8858 ac_status=$? 8859 cat out/conftest.err >&5 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8862 then 8863 # The compiler can only warn and ignore the option if not recognized 8864 # So say no if there are warnings 8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8868 lt_cv_prog_compiler_c_o=yes 8869 fi 8870 fi 8871 chmod u+w . 2>&5 8872 $RM conftest* 8873 # SGI C++ compiler will create directory out/ii_files/ for 8874 # template instantiation 8875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8876 $RM out/* && rmdir out 8877 cd .. 8878 $RM -r conftest 8879 $RM conftest* 8880 8881fi 8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8883$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8884 8885 8886 8887 8888 8889 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8891$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8892if ${lt_cv_prog_compiler_c_o+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 lt_cv_prog_compiler_c_o=no 8896 $RM -r conftest 2>/dev/null 8897 mkdir conftest 8898 cd conftest 8899 mkdir out 8900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8901 8902 lt_compiler_flag="-o out/conftest2.$ac_objext" 8903 # Insert the option either (1) after the last *FLAGS variable, or 8904 # (2) before a word containing "conftest.", or (3) at the end. 8905 # Note that $ac_compile itself does not contain backslashes and begins 8906 # with a dollar sign (not a hyphen), so the echo should work correctly. 8907 lt_compile=`echo "$ac_compile" | $SED \ 8908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8910 -e 's:$: $lt_compiler_flag:'` 8911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8912 (eval "$lt_compile" 2>out/conftest.err) 8913 ac_status=$? 8914 cat out/conftest.err >&5 8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8916 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8917 then 8918 # The compiler can only warn and ignore the option if not recognized 8919 # So say no if there are warnings 8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8923 lt_cv_prog_compiler_c_o=yes 8924 fi 8925 fi 8926 chmod u+w . 2>&5 8927 $RM conftest* 8928 # SGI C++ compiler will create directory out/ii_files/ for 8929 # template instantiation 8930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8931 $RM out/* && rmdir out 8932 cd .. 8933 $RM -r conftest 8934 $RM conftest* 8935 8936fi 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8938$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8939 8940 8941 8942 8943hard_links=nottested 8944if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8945 # do not overwrite the value of need_locks provided by the user 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8947$as_echo_n "checking if we can lock with hard links... " >&6; } 8948 hard_links=yes 8949 $RM conftest* 8950 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8951 touch conftest.a 8952 ln conftest.a conftest.b 2>&5 || hard_links=no 8953 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8955$as_echo "$hard_links" >&6; } 8956 if test no = "$hard_links"; then 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8958$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8959 need_locks=warn 8960 fi 8961else 8962 need_locks=no 8963fi 8964 8965 8966 8967 8968 8969 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8971$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8972 8973 runpath_var= 8974 allow_undefined_flag= 8975 always_export_symbols=no 8976 archive_cmds= 8977 archive_expsym_cmds= 8978 compiler_needs_object=no 8979 enable_shared_with_static_runtimes=no 8980 export_dynamic_flag_spec= 8981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8982 hardcode_automatic=no 8983 hardcode_direct=no 8984 hardcode_direct_absolute=no 8985 hardcode_libdir_flag_spec= 8986 hardcode_libdir_separator= 8987 hardcode_minus_L=no 8988 hardcode_shlibpath_var=unsupported 8989 inherit_rpath=no 8990 link_all_deplibs=unknown 8991 module_cmds= 8992 module_expsym_cmds= 8993 old_archive_from_new_cmds= 8994 old_archive_from_expsyms_cmds= 8995 thread_safe_flag_spec= 8996 whole_archive_flag_spec= 8997 # include_expsyms should be a list of space-separated symbols to be *always* 8998 # included in the symbol list 8999 include_expsyms= 9000 # exclude_expsyms can be an extended regexp of symbols to exclude 9001 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9002 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9003 # as well as any symbol that contains 'd'. 9004 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9005 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9006 # platforms (ab)use it in PIC code, but their linkers get confused if 9007 # the symbol is explicitly referenced. Since portable code cannot 9008 # rely on this symbol name, it's probably fine to never include it in 9009 # preloaded symbol tables. 9010 # Exclude shared library initialization/finalization symbols. 9011 extract_expsyms_cmds= 9012 9013 case $host_os in 9014 cygwin* | mingw* | pw32* | cegcc*) 9015 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9016 # When not using gcc, we currently assume that we are using 9017 # Microsoft Visual C++. 9018 if test yes != "$GCC"; then 9019 with_gnu_ld=no 9020 fi 9021 ;; 9022 interix*) 9023 # we just hope/assume this is gcc and not c89 (= MSVC++) 9024 with_gnu_ld=yes 9025 ;; 9026 openbsd* | bitrig*) 9027 with_gnu_ld=no 9028 ;; 9029 linux* | k*bsd*-gnu | gnu*) 9030 link_all_deplibs=no 9031 ;; 9032 esac 9033 9034 ld_shlibs=yes 9035 9036 # On some targets, GNU ld is compatible enough with the native linker 9037 # that we're better off using the native interface for both. 9038 lt_use_gnu_ld_interface=no 9039 if test yes = "$with_gnu_ld"; then 9040 case $host_os in 9041 aix*) 9042 # The AIX port of GNU ld has always aspired to compatibility 9043 # with the native linker. However, as the warning in the GNU ld 9044 # block says, versions before 2.19.5* couldn't really create working 9045 # shared libraries, regardless of the interface used. 9046 case `$LD -v 2>&1` in 9047 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9048 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9049 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9050 *) 9051 lt_use_gnu_ld_interface=yes 9052 ;; 9053 esac 9054 ;; 9055 *) 9056 lt_use_gnu_ld_interface=yes 9057 ;; 9058 esac 9059 fi 9060 9061 if test yes = "$lt_use_gnu_ld_interface"; then 9062 # If archive_cmds runs LD, not CC, wlarc should be empty 9063 wlarc='$wl' 9064 9065 # Set some defaults for GNU ld with shared library support. These 9066 # are reset later if shared libraries are not supported. Putting them 9067 # here allows them to be overridden if necessary. 9068 runpath_var=LD_RUN_PATH 9069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9070 export_dynamic_flag_spec='$wl--export-dynamic' 9071 # ancient GNU ld didn't support --whole-archive et. al. 9072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9073 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9074 else 9075 whole_archive_flag_spec= 9076 fi 9077 supports_anon_versioning=no 9078 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9079 *GNU\ gold*) supports_anon_versioning=yes ;; 9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9083 *\ 2.11.*) ;; # other 2.11 versions 9084 *) supports_anon_versioning=yes ;; 9085 esac 9086 9087 # See if GNU ld supports shared libraries. 9088 case $host_os in 9089 aix[3-9]*) 9090 # On AIX/PPC, the GNU linker is very broken 9091 if test ia64 != "$host_cpu"; then 9092 ld_shlibs=no 9093 cat <<_LT_EOF 1>&2 9094 9095*** Warning: the GNU linker, at least up to release 2.19, is reported 9096*** to be unable to reliably create shared libraries on AIX. 9097*** Therefore, libtool is disabling shared libraries support. If you 9098*** really care for shared libraries, you may want to install binutils 9099*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9100*** You will then need to restart the configuration process. 9101 9102_LT_EOF 9103 fi 9104 ;; 9105 9106 amigaos*) 9107 case $host_cpu in 9108 powerpc) 9109 # see comment about AmigaOS4 .so support 9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9111 archive_expsym_cmds='' 9112 ;; 9113 m68k) 9114 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)' 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 hardcode_minus_L=yes 9117 ;; 9118 esac 9119 ;; 9120 9121 beos*) 9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9123 allow_undefined_flag=unsupported 9124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9125 # support --undefined. This deserves some investigation. FIXME 9126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 cygwin* | mingw* | pw32* | cegcc*) 9133 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9134 # as there is no search path for DLLs. 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 export_dynamic_flag_spec='$wl--export-all-symbols' 9137 allow_undefined_flag=unsupported 9138 always_export_symbols=no 9139 enable_shared_with_static_runtimes=yes 9140 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' 9141 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9142 9143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9145 # If the export-symbols file already is a .def file, use it as 9146 # is; otherwise, prepend EXPORTS... 9147 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9148 cp $export_symbols $output_objdir/$soname.def; 9149 else 9150 echo EXPORTS > $output_objdir/$soname.def; 9151 cat $export_symbols >> $output_objdir/$soname.def; 9152 fi~ 9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9154 else 9155 ld_shlibs=no 9156 fi 9157 ;; 9158 9159 haiku*) 9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9161 link_all_deplibs=yes 9162 ;; 9163 9164 os2*) 9165 hardcode_libdir_flag_spec='-L$libdir' 9166 hardcode_minus_L=yes 9167 allow_undefined_flag=unsupported 9168 shrext_cmds=.dll 9169 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9172 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9175 emximp -o $lib $output_objdir/$libname.def' 9176 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9179 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9180 prefix_cmds="$SED"~ 9181 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9182 prefix_cmds="$prefix_cmds -e 1d"; 9183 fi~ 9184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9187 emximp -o $lib $output_objdir/$libname.def' 9188 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9189 enable_shared_with_static_runtimes=yes 9190 ;; 9191 9192 interix[3-9]*) 9193 hardcode_direct=no 9194 hardcode_shlibpath_var=no 9195 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9196 export_dynamic_flag_spec='$wl-E' 9197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9198 # Instead, shared libraries are loaded at an image base (0x10000000 by 9199 # default) and relocated if they conflict, which is a slow very memory 9200 # consuming and fragmenting process. To avoid this, we pick a random, 9201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9202 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9204 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' 9205 ;; 9206 9207 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9208 tmp_diet=no 9209 if test linux-dietlibc = "$host_os"; then 9210 case $cc_basename in 9211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9212 esac 9213 fi 9214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9215 && test no = "$tmp_diet" 9216 then 9217 tmp_addflag=' $pic_flag' 9218 tmp_sharedflag='-shared' 9219 case $cc_basename,$host_cpu in 9220 pgcc*) # Portland Group C compiler 9221 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' 9222 tmp_addflag=' $pic_flag' 9223 ;; 9224 pgf77* | pgf90* | pgf95* | pgfortran*) 9225 # Portland Group f77 and f90 compilers 9226 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' 9227 tmp_addflag=' $pic_flag -Mnomain' ;; 9228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9229 tmp_addflag=' -i_dynamic' ;; 9230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9231 tmp_addflag=' -i_dynamic -nofor_main' ;; 9232 ifc* | ifort*) # Intel Fortran compiler 9233 tmp_addflag=' -nofor_main' ;; 9234 lf95*) # Lahey Fortran 8.1 9235 whole_archive_flag_spec= 9236 tmp_sharedflag='--shared' ;; 9237 nagfor*) # NAGFOR 5.3 9238 tmp_sharedflag='-Wl,-shared' ;; 9239 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9240 tmp_sharedflag='-qmkshrobj' 9241 tmp_addflag= ;; 9242 nvcc*) # Cuda Compiler Driver 2.2 9243 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' 9244 compiler_needs_object=yes 9245 ;; 9246 esac 9247 case `$CC -V 2>&1 | sed 5q` in 9248 *Sun\ C*) # Sun C 5.9 9249 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' 9250 compiler_needs_object=yes 9251 tmp_sharedflag='-G' ;; 9252 *Sun\ F*) # Sun Fortran 8.3 9253 tmp_sharedflag='-G' ;; 9254 esac 9255 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9256 9257 if test yes = "$supports_anon_versioning"; then 9258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9260 echo "local: *; };" >> $output_objdir/$libname.ver~ 9261 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9262 fi 9263 9264 case $cc_basename in 9265 tcc*) 9266 export_dynamic_flag_spec='-rdynamic' 9267 ;; 9268 xlf* | bgf* | bgxlf* | mpixlf*) 9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9272 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9273 if test yes = "$supports_anon_versioning"; then 9274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9276 echo "local: *; };" >> $output_objdir/$libname.ver~ 9277 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9278 fi 9279 ;; 9280 esac 9281 else 9282 ld_shlibs=no 9283 fi 9284 ;; 9285 9286 netbsd* | netbsdelf*-gnu) 9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9288 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9289 wlarc= 9290 else 9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9293 fi 9294 ;; 9295 9296 solaris*) 9297 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9298 ld_shlibs=no 9299 cat <<_LT_EOF 1>&2 9300 9301*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9302*** create shared libraries on Solaris systems. Therefore, libtool 9303*** is disabling shared libraries support. We urge you to upgrade GNU 9304*** binutils to release 2.9.1 or newer. Another option is to modify 9305*** your PATH or compiler configuration so that the native linker is 9306*** used, and then restart. 9307 9308_LT_EOF 9309 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9311 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9312 else 9313 ld_shlibs=no 9314 fi 9315 ;; 9316 9317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9318 case `$LD -v 2>&1` in 9319 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9320 ld_shlibs=no 9321 cat <<_LT_EOF 1>&2 9322 9323*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9324*** reliably create shared libraries on SCO systems. Therefore, libtool 9325*** is disabling shared libraries support. We urge you to upgrade GNU 9326*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9327*** your PATH or compiler configuration so that the native linker is 9328*** used, and then restart. 9329 9330_LT_EOF 9331 ;; 9332 *) 9333 # For security reasons, it is highly recommended that you always 9334 # use absolute paths for naming shared libraries, and exclude the 9335 # DT_RUNPATH tag from executables and libraries. But doing so 9336 # requires that you compile everything twice, which is a pain. 9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9341 else 9342 ld_shlibs=no 9343 fi 9344 ;; 9345 esac 9346 ;; 9347 9348 sunos4*) 9349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9350 wlarc= 9351 hardcode_direct=yes 9352 hardcode_shlibpath_var=no 9353 ;; 9354 9355 *) 9356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9359 else 9360 ld_shlibs=no 9361 fi 9362 ;; 9363 esac 9364 9365 if test no = "$ld_shlibs"; then 9366 runpath_var= 9367 hardcode_libdir_flag_spec= 9368 export_dynamic_flag_spec= 9369 whole_archive_flag_spec= 9370 fi 9371 else 9372 # PORTME fill in a description of your system's linker (not GNU ld) 9373 case $host_os in 9374 aix3*) 9375 allow_undefined_flag=unsupported 9376 always_export_symbols=yes 9377 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' 9378 # Note: this linker hardcodes the directories in LIBPATH if there 9379 # are no directories specified by -L. 9380 hardcode_minus_L=yes 9381 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9382 # Neither direct hardcoding nor static linking is supported with a 9383 # broken collect2. 9384 hardcode_direct=unsupported 9385 fi 9386 ;; 9387 9388 aix[4-9]*) 9389 if test ia64 = "$host_cpu"; then 9390 # On IA64, the linker does run time linking by default, so we don't 9391 # have to do anything special. 9392 aix_use_runtimelinking=no 9393 exp_sym_flag='-Bexport' 9394 no_entry_flag= 9395 else 9396 # If we're using GNU nm, then we don't want the "-C" option. 9397 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9398 # Without the "-l" option, or with the "-B" option, AIX nm treats 9399 # weak defined symbols like other global defined symbols, whereas 9400 # GNU nm marks them as "W". 9401 # While the 'weak' keyword is ignored in the Export File, we need 9402 # it in the Import File for the 'aix-soname' feature, so we have 9403 # to replace the "-B" option with "-P" for AIX nm. 9404 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9405 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' 9406 else 9407 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' 9408 fi 9409 aix_use_runtimelinking=no 9410 9411 # Test if we are trying to use run time linking or normal 9412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9413 # have runtime linking enabled, and use it for executables. 9414 # For shared libraries, we enable/disable runtime linking 9415 # depending on the kind of the shared library created - 9416 # when "with_aix_soname,aix_use_runtimelinking" is: 9417 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9418 # "aix,yes" lib.so shared, rtl:yes, for executables 9419 # lib.a static archive 9420 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9421 # lib.a(lib.so.V) shared, rtl:no, for executables 9422 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9423 # lib.a(lib.so.V) shared, rtl:no 9424 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9425 # lib.a static archive 9426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9427 for ld_flag in $LDFLAGS; do 9428 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9429 aix_use_runtimelinking=yes 9430 break 9431 fi 9432 done 9433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9434 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9435 # so we don't have lib.a shared libs to link our executables. 9436 # We have to force runtime linking in this case. 9437 aix_use_runtimelinking=yes 9438 LDFLAGS="$LDFLAGS -Wl,-brtl" 9439 fi 9440 ;; 9441 esac 9442 9443 exp_sym_flag='-bexport' 9444 no_entry_flag='-bnoentry' 9445 fi 9446 9447 # When large executables or shared objects are built, AIX ld can 9448 # have problems creating the table of contents. If linking a library 9449 # or program results in "error TOC overflow" add -mminimal-toc to 9450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9452 9453 archive_cmds='' 9454 hardcode_direct=yes 9455 hardcode_direct_absolute=yes 9456 hardcode_libdir_separator=':' 9457 link_all_deplibs=yes 9458 file_list_spec='$wl-f,' 9459 case $with_aix_soname,$aix_use_runtimelinking in 9460 aix,*) ;; # traditional, no import file 9461 svr4,* | *,yes) # use import file 9462 # The Import File defines what to hardcode. 9463 hardcode_direct=no 9464 hardcode_direct_absolute=no 9465 ;; 9466 esac 9467 9468 if test yes = "$GCC"; then 9469 case $host_os in aix4.[012]|aix4.[012].*) 9470 # We only want to do this on AIX 4.2 and lower, the check 9471 # below for broken collect2 doesn't work under 4.3+ 9472 collect2name=`$CC -print-prog-name=collect2` 9473 if test -f "$collect2name" && 9474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9475 then 9476 # We have reworked collect2 9477 : 9478 else 9479 # We have old collect2 9480 hardcode_direct=unsupported 9481 # It fails to find uninstalled libraries when the uninstalled 9482 # path is not listed in the libpath. Setting hardcode_minus_L 9483 # to unsupported forces relinking 9484 hardcode_minus_L=yes 9485 hardcode_libdir_flag_spec='-L$libdir' 9486 hardcode_libdir_separator= 9487 fi 9488 ;; 9489 esac 9490 shared_flag='-shared' 9491 if test yes = "$aix_use_runtimelinking"; then 9492 shared_flag="$shared_flag "'$wl-G' 9493 fi 9494 # Need to ensure runtime linking is disabled for the traditional 9495 # shared library, or the linker may eventually find shared libraries 9496 # /with/ Import File - we do not want to mix them. 9497 shared_flag_aix='-shared' 9498 shared_flag_svr4='-shared $wl-G' 9499 else 9500 # not using gcc 9501 if test ia64 = "$host_cpu"; then 9502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9503 # chokes on -Wl,-G. The following line is correct: 9504 shared_flag='-G' 9505 else 9506 if test yes = "$aix_use_runtimelinking"; then 9507 shared_flag='$wl-G' 9508 else 9509 shared_flag='$wl-bM:SRE' 9510 fi 9511 shared_flag_aix='$wl-bM:SRE' 9512 shared_flag_svr4='$wl-G' 9513 fi 9514 fi 9515 9516 export_dynamic_flag_spec='$wl-bexpall' 9517 # It seems that -bexpall does not export symbols beginning with 9518 # underscore (_), so it is better to generate a list of symbols to export. 9519 always_export_symbols=yes 9520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9521 # Warning - without using the other runtime loading flags (-brtl), 9522 # -berok will link without error, but may produce a broken library. 9523 allow_undefined_flag='-berok' 9524 # Determine the default libpath from the value encoded in an 9525 # empty executable. 9526 if test set = "${lt_cv_aix_libpath+set}"; then 9527 aix_libpath=$lt_cv_aix_libpath 9528else 9529 if ${lt_cv_aix_libpath_+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534 9535int 9536main () 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO"; then : 9544 9545 lt_aix_libpath_sed=' 9546 /Import File Strings/,/^$/ { 9547 /^0/ { 9548 s/^0 *\([^ ]*\) *$/\1/ 9549 p 9550 } 9551 }' 9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9553 # Check for a 64-bit object if we didn't find anything. 9554 if test -z "$lt_cv_aix_libpath_"; then 9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9556 fi 9557fi 9558rm -f core conftest.err conftest.$ac_objext \ 9559 conftest$ac_exeext conftest.$ac_ext 9560 if test -z "$lt_cv_aix_libpath_"; then 9561 lt_cv_aix_libpath_=/usr/lib:/lib 9562 fi 9563 9564fi 9565 9566 aix_libpath=$lt_cv_aix_libpath_ 9567fi 9568 9569 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9570 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 9571 else 9572 if test ia64 = "$host_cpu"; then 9573 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9574 allow_undefined_flag="-z nodefs" 9575 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" 9576 else 9577 # Determine the default libpath from the value encoded in an 9578 # empty executable. 9579 if test set = "${lt_cv_aix_libpath+set}"; then 9580 aix_libpath=$lt_cv_aix_libpath 9581else 9582 if ${lt_cv_aix_libpath_+:} false; then : 9583 $as_echo_n "(cached) " >&6 9584else 9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586/* end confdefs.h. */ 9587 9588int 9589main () 9590{ 9591 9592 ; 9593 return 0; 9594} 9595_ACEOF 9596if ac_fn_c_try_link "$LINENO"; then : 9597 9598 lt_aix_libpath_sed=' 9599 /Import File Strings/,/^$/ { 9600 /^0/ { 9601 s/^0 *\([^ ]*\) *$/\1/ 9602 p 9603 } 9604 }' 9605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9606 # Check for a 64-bit object if we didn't find anything. 9607 if test -z "$lt_cv_aix_libpath_"; then 9608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9609 fi 9610fi 9611rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613 if test -z "$lt_cv_aix_libpath_"; then 9614 lt_cv_aix_libpath_=/usr/lib:/lib 9615 fi 9616 9617fi 9618 9619 aix_libpath=$lt_cv_aix_libpath_ 9620fi 9621 9622 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9623 # Warning - without using the other run time loading flags, 9624 # -berok will link without error, but may produce a broken library. 9625 no_undefined_flag=' $wl-bernotok' 9626 allow_undefined_flag=' $wl-berok' 9627 if test yes = "$with_gnu_ld"; then 9628 # We only use this code for GNU lds that support --whole-archive. 9629 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9630 else 9631 # Exported symbols can be pulled into shared objects from archives 9632 whole_archive_flag_spec='$convenience' 9633 fi 9634 archive_cmds_need_lc=yes 9635 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9636 # -brtl affects multiple linker settings, -berok does not and is overridden later 9637 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9638 if test svr4 != "$with_aix_soname"; then 9639 # This is similar to how AIX traditionally builds its shared libraries. 9640 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' 9641 fi 9642 if test aix != "$with_aix_soname"; then 9643 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' 9644 else 9645 # used by -dlpreopen to get the symbols 9646 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9647 fi 9648 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9649 fi 9650 fi 9651 ;; 9652 9653 amigaos*) 9654 case $host_cpu in 9655 powerpc) 9656 # see comment about AmigaOS4 .so support 9657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9658 archive_expsym_cmds='' 9659 ;; 9660 m68k) 9661 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)' 9662 hardcode_libdir_flag_spec='-L$libdir' 9663 hardcode_minus_L=yes 9664 ;; 9665 esac 9666 ;; 9667 9668 bsdi[45]*) 9669 export_dynamic_flag_spec=-rdynamic 9670 ;; 9671 9672 cygwin* | mingw* | pw32* | cegcc*) 9673 # When not using gcc, we currently assume that we are using 9674 # Microsoft Visual C++. 9675 # hardcode_libdir_flag_spec is actually meaningless, as there is 9676 # no search path for DLLs. 9677 case $cc_basename in 9678 cl*) 9679 # Native MSVC 9680 hardcode_libdir_flag_spec=' ' 9681 allow_undefined_flag=unsupported 9682 always_export_symbols=yes 9683 file_list_spec='@' 9684 # Tell ltmain to make .lib files, not .a files. 9685 libext=lib 9686 # Tell ltmain to make .dll files, not .so files. 9687 shrext_cmds=.dll 9688 # FIXME: Setting linknames here is a bad hack. 9689 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9690 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9691 cp "$export_symbols" "$output_objdir/$soname.def"; 9692 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9693 else 9694 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9695 fi~ 9696 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9697 linknames=' 9698 # The linker will not automatically build a static lib if we build a DLL. 9699 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9700 enable_shared_with_static_runtimes=yes 9701 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9703 # Don't use ranlib 9704 old_postinstall_cmds='chmod 644 $oldlib' 9705 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9706 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9707 case $lt_outputfile in 9708 *.exe|*.EXE) ;; 9709 *) 9710 lt_outputfile=$lt_outputfile.exe 9711 lt_tool_outputfile=$lt_tool_outputfile.exe 9712 ;; 9713 esac~ 9714 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9715 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9716 $RM "$lt_outputfile.manifest"; 9717 fi' 9718 ;; 9719 *) 9720 # Assume MSVC wrapper 9721 hardcode_libdir_flag_spec=' ' 9722 allow_undefined_flag=unsupported 9723 # Tell ltmain to make .lib files, not .a files. 9724 libext=lib 9725 # Tell ltmain to make .dll files, not .so files. 9726 shrext_cmds=.dll 9727 # FIXME: Setting linknames here is a bad hack. 9728 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9729 # The linker will automatically build a .lib file if we build a DLL. 9730 old_archive_from_new_cmds='true' 9731 # FIXME: Should let the user specify the lib program. 9732 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9733 enable_shared_with_static_runtimes=yes 9734 ;; 9735 esac 9736 ;; 9737 9738 darwin* | rhapsody*) 9739 9740 9741 archive_cmds_need_lc=no 9742 hardcode_direct=no 9743 hardcode_automatic=yes 9744 hardcode_shlibpath_var=unsupported 9745 if test yes = "$lt_cv_ld_force_load"; then 9746 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\"`' 9747 9748 else 9749 whole_archive_flag_spec='' 9750 fi 9751 link_all_deplibs=yes 9752 allow_undefined_flag=$_lt_dar_allow_undefined 9753 case $cc_basename in 9754 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9755 *) _lt_dar_can_shared=$GCC ;; 9756 esac 9757 if test yes = "$_lt_dar_can_shared"; then 9758 output_verbose_link_cmd=func_echo_all 9759 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9760 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9761 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" 9762 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" 9763 9764 else 9765 ld_shlibs=no 9766 fi 9767 9768 ;; 9769 9770 dgux*) 9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9772 hardcode_libdir_flag_spec='-L$libdir' 9773 hardcode_shlibpath_var=no 9774 ;; 9775 9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9777 # support. Future versions do this automatically, but an explicit c++rt0.o 9778 # does not break anything, and helps significantly (at the cost of a little 9779 # extra space). 9780 freebsd2.2*) 9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9782 hardcode_libdir_flag_spec='-R$libdir' 9783 hardcode_direct=yes 9784 hardcode_shlibpath_var=no 9785 ;; 9786 9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9788 freebsd2.*) 9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9790 hardcode_direct=yes 9791 hardcode_minus_L=yes 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9796 freebsd* | dragonfly*) 9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9798 hardcode_libdir_flag_spec='-R$libdir' 9799 hardcode_direct=yes 9800 hardcode_shlibpath_var=no 9801 ;; 9802 9803 hpux9*) 9804 if test yes = "$GCC"; then 9805 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' 9806 else 9807 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' 9808 fi 9809 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9810 hardcode_libdir_separator=: 9811 hardcode_direct=yes 9812 9813 # hardcode_minus_L: Not really in the search PATH, 9814 # but as the default location of the library. 9815 hardcode_minus_L=yes 9816 export_dynamic_flag_spec='$wl-E' 9817 ;; 9818 9819 hpux10*) 9820 if test yes,no = "$GCC,$with_gnu_ld"; then 9821 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9822 else 9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9824 fi 9825 if test no = "$with_gnu_ld"; then 9826 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9827 hardcode_libdir_separator=: 9828 hardcode_direct=yes 9829 hardcode_direct_absolute=yes 9830 export_dynamic_flag_spec='$wl-E' 9831 # hardcode_minus_L: Not really in the search PATH, 9832 # but as the default location of the library. 9833 hardcode_minus_L=yes 9834 fi 9835 ;; 9836 9837 hpux11*) 9838 if test yes,no = "$GCC,$with_gnu_ld"; then 9839 case $host_cpu in 9840 hppa*64*) 9841 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9842 ;; 9843 ia64*) 9844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9845 ;; 9846 *) 9847 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9848 ;; 9849 esac 9850 else 9851 case $host_cpu in 9852 hppa*64*) 9853 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9854 ;; 9855 ia64*) 9856 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9857 ;; 9858 *) 9859 9860 # Older versions of the 11.00 compiler do not understand -b yet 9861 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9863$as_echo_n "checking if $CC understands -b... " >&6; } 9864if ${lt_cv_prog_compiler__b+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 lt_cv_prog_compiler__b=no 9868 save_LDFLAGS=$LDFLAGS 9869 LDFLAGS="$LDFLAGS -b" 9870 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9872 # The linker can only warn and ignore the option if not recognized 9873 # So say no if there are warnings 9874 if test -s conftest.err; then 9875 # Append any errors to the config.log. 9876 cat conftest.err 1>&5 9877 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9879 if diff conftest.exp conftest.er2 >/dev/null; then 9880 lt_cv_prog_compiler__b=yes 9881 fi 9882 else 9883 lt_cv_prog_compiler__b=yes 9884 fi 9885 fi 9886 $RM -r conftest* 9887 LDFLAGS=$save_LDFLAGS 9888 9889fi 9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9891$as_echo "$lt_cv_prog_compiler__b" >&6; } 9892 9893if test yes = "$lt_cv_prog_compiler__b"; then 9894 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9895else 9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9897fi 9898 9899 ;; 9900 esac 9901 fi 9902 if test no = "$with_gnu_ld"; then 9903 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9904 hardcode_libdir_separator=: 9905 9906 case $host_cpu in 9907 hppa*64*|ia64*) 9908 hardcode_direct=no 9909 hardcode_shlibpath_var=no 9910 ;; 9911 *) 9912 hardcode_direct=yes 9913 hardcode_direct_absolute=yes 9914 export_dynamic_flag_spec='$wl-E' 9915 9916 # hardcode_minus_L: Not really in the search PATH, 9917 # but as the default location of the library. 9918 hardcode_minus_L=yes 9919 ;; 9920 esac 9921 fi 9922 ;; 9923 9924 irix5* | irix6* | nonstopux*) 9925 if test yes = "$GCC"; then 9926 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' 9927 # Try to use the -exported_symbol ld option, if it does not 9928 # work, assume that -exports_file does not work either and 9929 # implicitly export all symbols. 9930 # This should be the same for all languages, so no per-tag cache variable. 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9932$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9933if ${lt_cv_irix_exported_symbol+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 save_LDFLAGS=$LDFLAGS 9937 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940int foo (void) { return 0; } 9941_ACEOF 9942if ac_fn_c_try_link "$LINENO"; then : 9943 lt_cv_irix_exported_symbol=yes 9944else 9945 lt_cv_irix_exported_symbol=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext \ 9948 conftest$ac_exeext conftest.$ac_ext 9949 LDFLAGS=$save_LDFLAGS 9950fi 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9952$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9953 if test yes = "$lt_cv_irix_exported_symbol"; then 9954 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' 9955 fi 9956 link_all_deplibs=no 9957 else 9958 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' 9959 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' 9960 fi 9961 archive_cmds_need_lc='no' 9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9963 hardcode_libdir_separator=: 9964 inherit_rpath=yes 9965 link_all_deplibs=yes 9966 ;; 9967 9968 linux*) 9969 case $cc_basename in 9970 tcc*) 9971 # Fabrice Bellard et al's Tiny C Compiler 9972 ld_shlibs=yes 9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9974 ;; 9975 esac 9976 ;; 9977 9978 netbsd* | netbsdelf*-gnu) 9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9981 else 9982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9983 fi 9984 hardcode_libdir_flag_spec='-R$libdir' 9985 hardcode_direct=yes 9986 hardcode_shlibpath_var=no 9987 ;; 9988 9989 newsos6) 9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9991 hardcode_direct=yes 9992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9993 hardcode_libdir_separator=: 9994 hardcode_shlibpath_var=no 9995 ;; 9996 9997 *nto* | *qnx*) 9998 ;; 9999 10000 openbsd* | bitrig*) 10001 if test -f /usr/libexec/ld.so; then 10002 hardcode_direct=yes 10003 hardcode_shlibpath_var=no 10004 hardcode_direct_absolute=yes 10005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10008 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10009 export_dynamic_flag_spec='$wl-E' 10010 else 10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10013 fi 10014 else 10015 ld_shlibs=no 10016 fi 10017 ;; 10018 10019 os2*) 10020 hardcode_libdir_flag_spec='-L$libdir' 10021 hardcode_minus_L=yes 10022 allow_undefined_flag=unsupported 10023 shrext_cmds=.dll 10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10027 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10030 emximp -o $lib $output_objdir/$libname.def' 10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10034 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10035 prefix_cmds="$SED"~ 10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10037 prefix_cmds="$prefix_cmds -e 1d"; 10038 fi~ 10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10042 emximp -o $lib $output_objdir/$libname.def' 10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10044 enable_shared_with_static_runtimes=yes 10045 ;; 10046 10047 osf3*) 10048 if test yes = "$GCC"; then 10049 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10050 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' 10051 else 10052 allow_undefined_flag=' -expect_unresolved \*' 10053 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' 10054 fi 10055 archive_cmds_need_lc='no' 10056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10057 hardcode_libdir_separator=: 10058 ;; 10059 10060 osf4* | osf5*) # as osf3* with the addition of -msym flag 10061 if test yes = "$GCC"; then 10062 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10063 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' 10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10065 else 10066 allow_undefined_flag=' -expect_unresolved \*' 10067 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' 10068 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~ 10069 $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' 10070 10071 # Both c and cxx compiler support -rpath directly 10072 hardcode_libdir_flag_spec='-rpath $libdir' 10073 fi 10074 archive_cmds_need_lc='no' 10075 hardcode_libdir_separator=: 10076 ;; 10077 10078 solaris*) 10079 no_undefined_flag=' -z defs' 10080 if test yes = "$GCC"; then 10081 wlarc='$wl' 10082 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10084 $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' 10085 else 10086 case `$CC -V 2>&1` in 10087 *"Compilers 5.0"*) 10088 wlarc='' 10089 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10091 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10092 ;; 10093 *) 10094 wlarc='$wl' 10095 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10097 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10098 ;; 10099 esac 10100 fi 10101 hardcode_libdir_flag_spec='-R$libdir' 10102 hardcode_shlibpath_var=no 10103 case $host_os in 10104 solaris2.[0-5] | solaris2.[0-5].*) ;; 10105 *) 10106 # The compiler driver will combine and reorder linker options, 10107 # but understands '-z linker_flag'. GCC discards it without '$wl', 10108 # but is careful enough not to reorder. 10109 # Supported since Solaris 2.6 (maybe 2.5.1?) 10110 if test yes = "$GCC"; then 10111 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10112 else 10113 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10114 fi 10115 ;; 10116 esac 10117 link_all_deplibs=yes 10118 ;; 10119 10120 sunos4*) 10121 if test sequent = "$host_vendor"; then 10122 # Use $CC to link under sequent, because it throws in some extra .o 10123 # files that make .init and .fini sections work. 10124 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10125 else 10126 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10127 fi 10128 hardcode_libdir_flag_spec='-L$libdir' 10129 hardcode_direct=yes 10130 hardcode_minus_L=yes 10131 hardcode_shlibpath_var=no 10132 ;; 10133 10134 sysv4) 10135 case $host_vendor in 10136 sni) 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10138 hardcode_direct=yes # is this really true??? 10139 ;; 10140 siemens) 10141 ## LD is ld it makes a PLAMLIB 10142 ## CC just makes a GrossModule. 10143 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10144 reload_cmds='$CC -r -o $output$reload_objs' 10145 hardcode_direct=no 10146 ;; 10147 motorola) 10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10149 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10150 ;; 10151 esac 10152 runpath_var='LD_RUN_PATH' 10153 hardcode_shlibpath_var=no 10154 ;; 10155 10156 sysv4.3*) 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10158 hardcode_shlibpath_var=no 10159 export_dynamic_flag_spec='-Bexport' 10160 ;; 10161 10162 sysv4*MP*) 10163 if test -d /usr/nec; then 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10165 hardcode_shlibpath_var=no 10166 runpath_var=LD_RUN_PATH 10167 hardcode_runpath_var=yes 10168 ld_shlibs=yes 10169 fi 10170 ;; 10171 10172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10173 no_undefined_flag='$wl-z,text' 10174 archive_cmds_need_lc=no 10175 hardcode_shlibpath_var=no 10176 runpath_var='LD_RUN_PATH' 10177 10178 if test yes = "$GCC"; then 10179 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10180 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10181 else 10182 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10183 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 fi 10185 ;; 10186 10187 sysv5* | sco3.2v5* | sco5v6*) 10188 # Note: We CANNOT use -z defs as we might desire, because we do not 10189 # link with -lc, and that would cause any symbols used from libc to 10190 # always be unresolved, which means just about no library would 10191 # ever link correctly. If we're not using GNU ld we use -z text 10192 # though, which does catch some bad symbols but isn't as heavy-handed 10193 # as -z defs. 10194 no_undefined_flag='$wl-z,text' 10195 allow_undefined_flag='$wl-z,nodefs' 10196 archive_cmds_need_lc=no 10197 hardcode_shlibpath_var=no 10198 hardcode_libdir_flag_spec='$wl-R,$libdir' 10199 hardcode_libdir_separator=':' 10200 link_all_deplibs=yes 10201 export_dynamic_flag_spec='$wl-Bexport' 10202 runpath_var='LD_RUN_PATH' 10203 10204 if test yes = "$GCC"; then 10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10207 else 10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10210 fi 10211 ;; 10212 10213 uts4*) 10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10215 hardcode_libdir_flag_spec='-L$libdir' 10216 hardcode_shlibpath_var=no 10217 ;; 10218 10219 *) 10220 ld_shlibs=no 10221 ;; 10222 esac 10223 10224 if test sni = "$host_vendor"; then 10225 case $host in 10226 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10227 export_dynamic_flag_spec='$wl-Blargedynsym' 10228 ;; 10229 esac 10230 fi 10231 fi 10232 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10234$as_echo "$ld_shlibs" >&6; } 10235test no = "$ld_shlibs" && can_build_shared=no 10236 10237with_gnu_ld=$with_gnu_ld 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253# 10254# Do we need to explicitly link libc? 10255# 10256case "x$archive_cmds_need_lc" in 10257x|xyes) 10258 # Assume -lc should be added 10259 archive_cmds_need_lc=yes 10260 10261 if test yes,yes = "$GCC,$enable_shared"; then 10262 case $archive_cmds in 10263 *'~'*) 10264 # FIXME: we may have to deal with multi-command sequences. 10265 ;; 10266 '$CC '*) 10267 # Test whether the compiler implicitly links with -lc since on some 10268 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10269 # to ld, don't add -lc before -lgcc. 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10271$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10272if ${lt_cv_archive_cmds_need_lc+:} false; then : 10273 $as_echo_n "(cached) " >&6 10274else 10275 $RM conftest* 10276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10277 10278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10279 (eval $ac_compile) 2>&5 10280 ac_status=$? 10281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10282 test $ac_status = 0; } 2>conftest.err; then 10283 soname=conftest 10284 lib=conftest 10285 libobjs=conftest.$ac_objext 10286 deplibs= 10287 wl=$lt_prog_compiler_wl 10288 pic_flag=$lt_prog_compiler_pic 10289 compiler_flags=-v 10290 linker_flags=-v 10291 verstring= 10292 output_objdir=. 10293 libname=conftest 10294 lt_save_allow_undefined_flag=$allow_undefined_flag 10295 allow_undefined_flag= 10296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10298 ac_status=$? 10299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10300 test $ac_status = 0; } 10301 then 10302 lt_cv_archive_cmds_need_lc=no 10303 else 10304 lt_cv_archive_cmds_need_lc=yes 10305 fi 10306 allow_undefined_flag=$lt_save_allow_undefined_flag 10307 else 10308 cat conftest.err 1>&5 10309 fi 10310 $RM conftest* 10311 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10314$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10315 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10316 ;; 10317 esac 10318 fi 10319 ;; 10320esac 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10474$as_echo_n "checking dynamic linker characteristics... " >&6; } 10475 10476if test yes = "$GCC"; then 10477 case $host_os in 10478 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10479 *) lt_awk_arg='/^libraries:/' ;; 10480 esac 10481 case $host_os in 10482 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10483 *) lt_sed_strip_eq='s|=/|/|g' ;; 10484 esac 10485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10486 case $lt_search_path_spec in 10487 *\;*) 10488 # if the path contains ";" then we assume it to be the separator 10489 # otherwise default to the standard path separator (i.e. ":") - it is 10490 # assumed that no part of a normal pathname contains ";" but that should 10491 # okay in the real world where ";" in dirpaths is itself problematic. 10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10493 ;; 10494 *) 10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10496 ;; 10497 esac 10498 # Ok, now we have the path, separated by spaces, we can step through it 10499 # and add multilib dir if necessary... 10500 lt_tmp_lt_search_path_spec= 10501 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10502 # ...but if some path component already ends with the multilib dir we assume 10503 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10504 case "$lt_multi_os_dir; $lt_search_path_spec " in 10505 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10506 lt_multi_os_dir= 10507 ;; 10508 esac 10509 for lt_sys_path in $lt_search_path_spec; do 10510 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10512 elif test -n "$lt_multi_os_dir"; then 10513 test -d "$lt_sys_path" && \ 10514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10515 fi 10516 done 10517 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10518BEGIN {RS = " "; FS = "/|\n";} { 10519 lt_foo = ""; 10520 lt_count = 0; 10521 for (lt_i = NF; lt_i > 0; lt_i--) { 10522 if ($lt_i != "" && $lt_i != ".") { 10523 if ($lt_i == "..") { 10524 lt_count++; 10525 } else { 10526 if (lt_count == 0) { 10527 lt_foo = "/" $lt_i lt_foo; 10528 } else { 10529 lt_count--; 10530 } 10531 } 10532 } 10533 } 10534 if (lt_foo != "") { lt_freq[lt_foo]++; } 10535 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10536}'` 10537 # AWK program above erroneously prepends '/' to C:/dos/paths 10538 # for these hosts. 10539 case $host_os in 10540 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10541 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10542 esac 10543 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10544else 10545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10546fi 10547library_names_spec= 10548libname_spec='lib$name' 10549soname_spec= 10550shrext_cmds=.so 10551postinstall_cmds= 10552postuninstall_cmds= 10553finish_cmds= 10554finish_eval= 10555shlibpath_var= 10556shlibpath_overrides_runpath=unknown 10557version_type=none 10558dynamic_linker="$host_os ld.so" 10559sys_lib_dlsearch_path_spec="/lib /usr/lib" 10560need_lib_prefix=unknown 10561hardcode_into_libs=no 10562 10563# when you set need_version to no, make sure it does not cause -set_version 10564# flags to be left without arguments 10565need_version=unknown 10566 10567 10568 10569case $host_os in 10570aix3*) 10571 version_type=linux # correct to gnu/linux during the next big refactor 10572 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10573 shlibpath_var=LIBPATH 10574 10575 # AIX 3 has no versioning support, so we append a major version to the name. 10576 soname_spec='$libname$release$shared_ext$major' 10577 ;; 10578 10579aix[4-9]*) 10580 version_type=linux # correct to gnu/linux during the next big refactor 10581 need_lib_prefix=no 10582 need_version=no 10583 hardcode_into_libs=yes 10584 if test ia64 = "$host_cpu"; then 10585 # AIX 5 supports IA64 10586 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10587 shlibpath_var=LD_LIBRARY_PATH 10588 else 10589 # With GCC up to 2.95.x, collect2 would create an import file 10590 # for dependence libraries. The import file would start with 10591 # the line '#! .'. This would cause the generated library to 10592 # depend on '.', always an invalid library. This was fixed in 10593 # development snapshots of GCC prior to 3.0. 10594 case $host_os in 10595 aix4 | aix4.[01] | aix4.[01].*) 10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10597 echo ' yes ' 10598 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10599 : 10600 else 10601 can_build_shared=no 10602 fi 10603 ;; 10604 esac 10605 # Using Import Files as archive members, it is possible to support 10606 # filename-based versioning of shared library archives on AIX. While 10607 # this would work for both with and without runtime linking, it will 10608 # prevent static linking of such archives. So we do filename-based 10609 # shared library versioning with .so extension only, which is used 10610 # when both runtime linking and shared linking is enabled. 10611 # Unfortunately, runtime linking may impact performance, so we do 10612 # not want this to be the default eventually. Also, we use the 10613 # versioned .so libs for executables only if there is the -brtl 10614 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10615 # To allow for filename-based versioning support, we need to create 10616 # libNAME.so.V as an archive file, containing: 10617 # *) an Import File, referring to the versioned filename of the 10618 # archive as well as the shared archive member, telling the 10619 # bitwidth (32 or 64) of that shared object, and providing the 10620 # list of exported symbols of that shared object, eventually 10621 # decorated with the 'weak' keyword 10622 # *) the shared object with the F_LOADONLY flag set, to really avoid 10623 # it being seen by the linker. 10624 # At run time we better use the real file rather than another symlink, 10625 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10626 10627 case $with_aix_soname,$aix_use_runtimelinking in 10628 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10629 # soname into executable. Probably we can add versioning support to 10630 # collect2, so additional links can be useful in future. 10631 aix,yes) # traditional libtool 10632 dynamic_linker='AIX unversionable lib.so' 10633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10634 # instead of lib<name>.a to let people know that these are not 10635 # typical AIX shared libraries. 10636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10637 ;; 10638 aix,no) # traditional AIX only 10639 dynamic_linker='AIX lib.a(lib.so.V)' 10640 # We preserve .a as extension for shared libraries through AIX4.2 10641 # and later when we are not doing run time linking. 10642 library_names_spec='$libname$release.a $libname.a' 10643 soname_spec='$libname$release$shared_ext$major' 10644 ;; 10645 svr4,*) # full svr4 only 10646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10648 # We do not specify a path in Import Files, so LIBPATH fires. 10649 shlibpath_overrides_runpath=yes 10650 ;; 10651 *,yes) # both, prefer svr4 10652 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10653 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10654 # unpreferred sharedlib libNAME.a needs extra handling 10655 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"' 10656 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"' 10657 # We do not specify a path in Import Files, so LIBPATH fires. 10658 shlibpath_overrides_runpath=yes 10659 ;; 10660 *,no) # both, prefer aix 10661 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10662 library_names_spec='$libname$release.a $libname.a' 10663 soname_spec='$libname$release$shared_ext$major' 10664 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10665 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)' 10666 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"' 10667 ;; 10668 esac 10669 shlibpath_var=LIBPATH 10670 fi 10671 ;; 10672 10673amigaos*) 10674 case $host_cpu in 10675 powerpc) 10676 # Since July 2007 AmigaOS4 officially supports .so libraries. 10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10679 ;; 10680 m68k) 10681 library_names_spec='$libname.ixlibrary $libname.a' 10682 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10683 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' 10684 ;; 10685 esac 10686 ;; 10687 10688beos*) 10689 library_names_spec='$libname$shared_ext' 10690 dynamic_linker="$host_os ld.so" 10691 shlibpath_var=LIBRARY_PATH 10692 ;; 10693 10694bsdi[45]*) 10695 version_type=linux # correct to gnu/linux during the next big refactor 10696 need_version=no 10697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10698 soname_spec='$libname$release$shared_ext$major' 10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10703 # the default ld.so.conf also contains /usr/contrib/lib and 10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10705 # libtool to hard-code these into programs 10706 ;; 10707 10708cygwin* | mingw* | pw32* | cegcc*) 10709 version_type=windows 10710 shrext_cmds=.dll 10711 need_version=no 10712 need_lib_prefix=no 10713 10714 case $GCC,$cc_basename in 10715 yes,*) 10716 # gcc 10717 library_names_spec='$libname.dll.a' 10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10719 postinstall_cmds='base_file=`basename \$file`~ 10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10721 dldir=$destdir/`dirname \$dlpath`~ 10722 test -d \$dldir || mkdir -p \$dldir~ 10723 $install_prog $dir/$dlname \$dldir/$dlname~ 10724 chmod a+x \$dldir/$dlname~ 10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10727 fi' 10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10729 dlpath=$dir/\$dldll~ 10730 $RM \$dlpath' 10731 shlibpath_overrides_runpath=yes 10732 10733 case $host_os in 10734 cygwin*) 10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10736 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10737 10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10739 ;; 10740 mingw* | cegcc*) 10741 # MinGW DLLs use traditional 'lib' prefix 10742 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10743 ;; 10744 pw32*) 10745 # pw32 DLLs use 'pw' prefix rather than 'lib' 10746 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10747 ;; 10748 esac 10749 dynamic_linker='Win32 ld.exe' 10750 ;; 10751 10752 *,cl*) 10753 # Native MSVC 10754 libname_spec='$name' 10755 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10756 library_names_spec='$libname.dll.lib' 10757 10758 case $build_os in 10759 mingw*) 10760 sys_lib_search_path_spec= 10761 lt_save_ifs=$IFS 10762 IFS=';' 10763 for lt_path in $LIB 10764 do 10765 IFS=$lt_save_ifs 10766 # Let DOS variable expansion print the short 8.3 style file name. 10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10769 done 10770 IFS=$lt_save_ifs 10771 # Convert to MSYS style. 10772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10773 ;; 10774 cygwin*) 10775 # Convert to unix form, then to dos form, then back to unix form 10776 # but this time dos style (no spaces!) so that the unix form looks 10777 # like /cygdrive/c/PROGRA~1:/cygdr... 10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10781 ;; 10782 *) 10783 sys_lib_search_path_spec=$LIB 10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10785 # It is most probably a Windows format PATH. 10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10787 else 10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10789 fi 10790 # FIXME: find the short name or the path components, as spaces are 10791 # common. (e.g. "Program Files" -> "PROGRA~1") 10792 ;; 10793 esac 10794 10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10796 postinstall_cmds='base_file=`basename \$file`~ 10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10798 dldir=$destdir/`dirname \$dlpath`~ 10799 test -d \$dldir || mkdir -p \$dldir~ 10800 $install_prog $dir/$dlname \$dldir/$dlname' 10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10802 dlpath=$dir/\$dldll~ 10803 $RM \$dlpath' 10804 shlibpath_overrides_runpath=yes 10805 dynamic_linker='Win32 link.exe' 10806 ;; 10807 10808 *) 10809 # Assume MSVC wrapper 10810 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10811 dynamic_linker='Win32 ld.exe' 10812 ;; 10813 esac 10814 # FIXME: first we should search . and the directory the executable is in 10815 shlibpath_var=PATH 10816 ;; 10817 10818darwin* | rhapsody*) 10819 dynamic_linker="$host_os dyld" 10820 version_type=darwin 10821 need_lib_prefix=no 10822 need_version=no 10823 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10824 soname_spec='$libname$release$major$shared_ext' 10825 shlibpath_overrides_runpath=yes 10826 shlibpath_var=DYLD_LIBRARY_PATH 10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10828 10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10831 ;; 10832 10833dgux*) 10834 version_type=linux # correct to gnu/linux during the next big refactor 10835 need_lib_prefix=no 10836 need_version=no 10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10838 soname_spec='$libname$release$shared_ext$major' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 ;; 10841 10842freebsd* | dragonfly*) 10843 # DragonFly does not have aout. When/if they implement a new 10844 # versioning mechanism, adjust this. 10845 if test -x /usr/bin/objformat; then 10846 objformat=`/usr/bin/objformat` 10847 else 10848 case $host_os in 10849 freebsd[23].*) objformat=aout ;; 10850 *) objformat=elf ;; 10851 esac 10852 fi 10853 version_type=freebsd-$objformat 10854 case $version_type in 10855 freebsd-elf*) 10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10857 soname_spec='$libname$release$shared_ext$major' 10858 need_version=no 10859 need_lib_prefix=no 10860 ;; 10861 freebsd-*) 10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10863 need_version=yes 10864 ;; 10865 esac 10866 shlibpath_var=LD_LIBRARY_PATH 10867 case $host_os in 10868 freebsd2.*) 10869 shlibpath_overrides_runpath=yes 10870 ;; 10871 freebsd3.[01]* | freebsdelf3.[01]*) 10872 shlibpath_overrides_runpath=yes 10873 hardcode_into_libs=yes 10874 ;; 10875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10877 shlibpath_overrides_runpath=no 10878 hardcode_into_libs=yes 10879 ;; 10880 *) # from 4.6 on, and DragonFly 10881 shlibpath_overrides_runpath=yes 10882 hardcode_into_libs=yes 10883 ;; 10884 esac 10885 ;; 10886 10887haiku*) 10888 version_type=linux # correct to gnu/linux during the next big refactor 10889 need_lib_prefix=no 10890 need_version=no 10891 dynamic_linker="$host_os runtime_loader" 10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10893 soname_spec='$libname$release$shared_ext$major' 10894 shlibpath_var=LIBRARY_PATH 10895 shlibpath_overrides_runpath=no 10896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10897 hardcode_into_libs=yes 10898 ;; 10899 10900hpux9* | hpux10* | hpux11*) 10901 # Give a soname corresponding to the major version so that dld.sl refuses to 10902 # link against other versions. 10903 version_type=sunos 10904 need_lib_prefix=no 10905 need_version=no 10906 case $host_cpu in 10907 ia64*) 10908 shrext_cmds='.so' 10909 hardcode_into_libs=yes 10910 dynamic_linker="$host_os dld.so" 10911 shlibpath_var=LD_LIBRARY_PATH 10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10914 soname_spec='$libname$release$shared_ext$major' 10915 if test 32 = "$HPUX_IA64_MODE"; then 10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10917 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10918 else 10919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10920 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10921 fi 10922 ;; 10923 hppa*64*) 10924 shrext_cmds='.sl' 10925 hardcode_into_libs=yes 10926 dynamic_linker="$host_os dld.sl" 10927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10930 soname_spec='$libname$release$shared_ext$major' 10931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10933 ;; 10934 *) 10935 shrext_cmds='.sl' 10936 dynamic_linker="$host_os dld.sl" 10937 shlibpath_var=SHLIB_PATH 10938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10940 soname_spec='$libname$release$shared_ext$major' 10941 ;; 10942 esac 10943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10944 postinstall_cmds='chmod 555 $lib' 10945 # or fails outright, so override atomically: 10946 install_override_mode=555 10947 ;; 10948 10949interix[3-9]*) 10950 version_type=linux # correct to gnu/linux during the next big refactor 10951 need_lib_prefix=no 10952 need_version=no 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10954 soname_spec='$libname$release$shared_ext$major' 10955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10956 shlibpath_var=LD_LIBRARY_PATH 10957 shlibpath_overrides_runpath=no 10958 hardcode_into_libs=yes 10959 ;; 10960 10961irix5* | irix6* | nonstopux*) 10962 case $host_os in 10963 nonstopux*) version_type=nonstopux ;; 10964 *) 10965 if test yes = "$lt_cv_prog_gnu_ld"; then 10966 version_type=linux # correct to gnu/linux during the next big refactor 10967 else 10968 version_type=irix 10969 fi ;; 10970 esac 10971 need_lib_prefix=no 10972 need_version=no 10973 soname_spec='$libname$release$shared_ext$major' 10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10975 case $host_os in 10976 irix5* | nonstopux*) 10977 libsuff= shlibsuff= 10978 ;; 10979 *) 10980 case $LD in # libtool.m4 will add one of these switches to LD 10981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10982 libsuff= shlibsuff= libmagic=32-bit;; 10983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10984 libsuff=32 shlibsuff=N32 libmagic=N32;; 10985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10986 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10987 *) libsuff= shlibsuff= libmagic=never-match;; 10988 esac 10989 ;; 10990 esac 10991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10992 shlibpath_overrides_runpath=no 10993 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10994 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10995 hardcode_into_libs=yes 10996 ;; 10997 10998# No shared lib support for Linux oldld, aout, or coff. 10999linux*oldld* | linux*aout* | linux*coff*) 11000 dynamic_linker=no 11001 ;; 11002 11003linux*android*) 11004 version_type=none # Android doesn't support versioned libraries. 11005 need_lib_prefix=no 11006 need_version=no 11007 library_names_spec='$libname$release$shared_ext' 11008 soname_spec='$libname$release$shared_ext' 11009 finish_cmds= 11010 shlibpath_var=LD_LIBRARY_PATH 11011 shlibpath_overrides_runpath=yes 11012 11013 # This implies no fast_install, which is unacceptable. 11014 # Some rework will be needed to allow for fast_install 11015 # before this can be enabled. 11016 hardcode_into_libs=yes 11017 11018 dynamic_linker='Android linker' 11019 # Don't embed -rpath directories since the linker doesn't support them. 11020 hardcode_libdir_flag_spec='-L$libdir' 11021 ;; 11022 11023# This must be glibc/ELF. 11024linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11025 version_type=linux # correct to gnu/linux during the next big refactor 11026 need_lib_prefix=no 11027 need_version=no 11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11029 soname_spec='$libname$release$shared_ext$major' 11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11031 shlibpath_var=LD_LIBRARY_PATH 11032 shlibpath_overrides_runpath=no 11033 11034 # Some binutils ld are patched to set DT_RUNPATH 11035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11036 $as_echo_n "(cached) " >&6 11037else 11038 lt_cv_shlibpath_overrides_runpath=no 11039 save_LDFLAGS=$LDFLAGS 11040 save_libdir=$libdir 11041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11044/* end confdefs.h. */ 11045 11046int 11047main () 11048{ 11049 11050 ; 11051 return 0; 11052} 11053_ACEOF 11054if ac_fn_c_try_link "$LINENO"; then : 11055 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11056 lt_cv_shlibpath_overrides_runpath=yes 11057fi 11058fi 11059rm -f core conftest.err conftest.$ac_objext \ 11060 conftest$ac_exeext conftest.$ac_ext 11061 LDFLAGS=$save_LDFLAGS 11062 libdir=$save_libdir 11063 11064fi 11065 11066 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11067 11068 # This implies no fast_install, which is unacceptable. 11069 # Some rework will be needed to allow for fast_install 11070 # before this can be enabled. 11071 hardcode_into_libs=yes 11072 11073 # Ideally, we could use ldconfig to report *all* directores which are 11074 # searched for libraries, however this is still not possible. Aside from not 11075 # being certain /sbin/ldconfig is available, command 11076 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11077 # even though it is searched at run-time. Try to do the best guess by 11078 # appending ld.so.conf contents (and includes) to the search path. 11079 if test -f /etc/ld.so.conf; then 11080 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' ' '` 11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11082 fi 11083 11084 # We used to test for /lib/ld.so.1 and disable shared libraries on 11085 # powerpc, because MkLinux only supported shared libraries with the 11086 # GNU dynamic linker. Since this was broken with cross compilers, 11087 # most powerpc-linux boxes support dynamic linking these days and 11088 # people can always --disable-shared, the test was removed, and we 11089 # assume the GNU/Linux dynamic linker is in use. 11090 dynamic_linker='GNU/Linux ld.so' 11091 ;; 11092 11093netbsdelf*-gnu) 11094 version_type=linux 11095 need_lib_prefix=no 11096 need_version=no 11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11098 soname_spec='${libname}${release}${shared_ext}$major' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 shlibpath_overrides_runpath=no 11101 hardcode_into_libs=yes 11102 dynamic_linker='NetBSD ld.elf_so' 11103 ;; 11104 11105netbsd*) 11106 version_type=sunos 11107 need_lib_prefix=no 11108 need_version=no 11109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11112 dynamic_linker='NetBSD (a.out) ld.so' 11113 else 11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11115 soname_spec='$libname$release$shared_ext$major' 11116 dynamic_linker='NetBSD ld.elf_so' 11117 fi 11118 shlibpath_var=LD_LIBRARY_PATH 11119 shlibpath_overrides_runpath=yes 11120 hardcode_into_libs=yes 11121 ;; 11122 11123newsos6) 11124 version_type=linux # correct to gnu/linux during the next big refactor 11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11126 shlibpath_var=LD_LIBRARY_PATH 11127 shlibpath_overrides_runpath=yes 11128 ;; 11129 11130*nto* | *qnx*) 11131 version_type=qnx 11132 need_lib_prefix=no 11133 need_version=no 11134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11135 soname_spec='$libname$release$shared_ext$major' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 shlibpath_overrides_runpath=no 11138 hardcode_into_libs=yes 11139 dynamic_linker='ldqnx.so' 11140 ;; 11141 11142openbsd* | bitrig*) 11143 version_type=sunos 11144 sys_lib_dlsearch_path_spec=/usr/lib 11145 need_lib_prefix=no 11146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11147 need_version=no 11148 else 11149 need_version=yes 11150 fi 11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11153 shlibpath_var=LD_LIBRARY_PATH 11154 shlibpath_overrides_runpath=yes 11155 ;; 11156 11157os2*) 11158 libname_spec='$name' 11159 version_type=windows 11160 shrext_cmds=.dll 11161 need_version=no 11162 need_lib_prefix=no 11163 # OS/2 can only load a DLL with a base name of 8 characters or less. 11164 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11165 v=$($ECHO $release$versuffix | tr -d .-); 11166 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11167 $ECHO $n$v`$shared_ext' 11168 library_names_spec='${libname}_dll.$libext' 11169 dynamic_linker='OS/2 ld.exe' 11170 shlibpath_var=BEGINLIBPATH 11171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11173 postinstall_cmds='base_file=`basename \$file`~ 11174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11175 dldir=$destdir/`dirname \$dlpath`~ 11176 test -d \$dldir || mkdir -p \$dldir~ 11177 $install_prog $dir/$dlname \$dldir/$dlname~ 11178 chmod a+x \$dldir/$dlname~ 11179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11181 fi' 11182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11183 dlpath=$dir/\$dldll~ 11184 $RM \$dlpath' 11185 ;; 11186 11187osf3* | osf4* | osf5*) 11188 version_type=osf 11189 need_lib_prefix=no 11190 need_version=no 11191 soname_spec='$libname$release$shared_ext$major' 11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11193 shlibpath_var=LD_LIBRARY_PATH 11194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11196 ;; 11197 11198rdos*) 11199 dynamic_linker=no 11200 ;; 11201 11202solaris*) 11203 version_type=linux # correct to gnu/linux during the next big refactor 11204 need_lib_prefix=no 11205 need_version=no 11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11207 soname_spec='$libname$release$shared_ext$major' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=yes 11210 hardcode_into_libs=yes 11211 # ldd complains unless libraries are executable 11212 postinstall_cmds='chmod +x $lib' 11213 ;; 11214 11215sunos4*) 11216 version_type=sunos 11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=yes 11221 if test yes = "$with_gnu_ld"; then 11222 need_lib_prefix=no 11223 fi 11224 need_version=yes 11225 ;; 11226 11227sysv4 | sysv4.3*) 11228 version_type=linux # correct to gnu/linux during the next big refactor 11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11230 soname_spec='$libname$release$shared_ext$major' 11231 shlibpath_var=LD_LIBRARY_PATH 11232 case $host_vendor in 11233 sni) 11234 shlibpath_overrides_runpath=no 11235 need_lib_prefix=no 11236 runpath_var=LD_RUN_PATH 11237 ;; 11238 siemens) 11239 need_lib_prefix=no 11240 ;; 11241 motorola) 11242 need_lib_prefix=no 11243 need_version=no 11244 shlibpath_overrides_runpath=no 11245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11246 ;; 11247 esac 11248 ;; 11249 11250sysv4*MP*) 11251 if test -d /usr/nec; then 11252 version_type=linux # correct to gnu/linux during the next big refactor 11253 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11254 soname_spec='$libname$shared_ext.$major' 11255 shlibpath_var=LD_LIBRARY_PATH 11256 fi 11257 ;; 11258 11259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11260 version_type=sco 11261 need_lib_prefix=no 11262 need_version=no 11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11264 soname_spec='$libname$release$shared_ext$major' 11265 shlibpath_var=LD_LIBRARY_PATH 11266 shlibpath_overrides_runpath=yes 11267 hardcode_into_libs=yes 11268 if test yes = "$with_gnu_ld"; then 11269 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11270 else 11271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11272 case $host_os in 11273 sco3.2v5*) 11274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11275 ;; 11276 esac 11277 fi 11278 sys_lib_dlsearch_path_spec='/usr/lib' 11279 ;; 11280 11281tpf*) 11282 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 need_lib_prefix=no 11285 need_version=no 11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 shlibpath_overrides_runpath=no 11289 hardcode_into_libs=yes 11290 ;; 11291 11292uts4*) 11293 version_type=linux # correct to gnu/linux during the next big refactor 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 soname_spec='$libname$release$shared_ext$major' 11296 shlibpath_var=LD_LIBRARY_PATH 11297 ;; 11298 11299*) 11300 dynamic_linker=no 11301 ;; 11302esac 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11304$as_echo "$dynamic_linker" >&6; } 11305test no = "$dynamic_linker" && can_build_shared=no 11306 11307variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11308if test yes = "$GCC"; then 11309 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11310fi 11311 11312if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11313 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11314fi 11315 11316if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11317 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11318fi 11319 11320# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11321configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11322 11323# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11324func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11325 11326# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11327configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11426$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11427hardcode_action= 11428if test -n "$hardcode_libdir_flag_spec" || 11429 test -n "$runpath_var" || 11430 test yes = "$hardcode_automatic"; then 11431 11432 # We can hardcode non-existent directories. 11433 if test no != "$hardcode_direct" && 11434 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11435 # have to relink, otherwise we might link with an installed library 11436 # when we should be linking with a yet-to-be-installed one 11437 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11438 test no != "$hardcode_minus_L"; then 11439 # Linking always hardcodes the temporary library directory. 11440 hardcode_action=relink 11441 else 11442 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11443 hardcode_action=immediate 11444 fi 11445else 11446 # We cannot hardcode anything, or else we can only hardcode existing 11447 # directories. 11448 hardcode_action=unsupported 11449fi 11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11451$as_echo "$hardcode_action" >&6; } 11452 11453if test relink = "$hardcode_action" || 11454 test yes = "$inherit_rpath"; then 11455 # Fast installation is not supported 11456 enable_fast_install=no 11457elif test yes = "$shlibpath_overrides_runpath" || 11458 test no = "$enable_shared"; then 11459 # Fast installation is not necessary 11460 enable_fast_install=needless 11461fi 11462 11463 11464 11465 11466 11467 11468 if test yes != "$enable_dlopen"; then 11469 enable_dlopen=unknown 11470 enable_dlopen_self=unknown 11471 enable_dlopen_self_static=unknown 11472else 11473 lt_cv_dlopen=no 11474 lt_cv_dlopen_libs= 11475 11476 case $host_os in 11477 beos*) 11478 lt_cv_dlopen=load_add_on 11479 lt_cv_dlopen_libs= 11480 lt_cv_dlopen_self=yes 11481 ;; 11482 11483 mingw* | pw32* | cegcc*) 11484 lt_cv_dlopen=LoadLibrary 11485 lt_cv_dlopen_libs= 11486 ;; 11487 11488 cygwin*) 11489 lt_cv_dlopen=dlopen 11490 lt_cv_dlopen_libs= 11491 ;; 11492 11493 darwin*) 11494 # if libdl is installed we need to link against it 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11496$as_echo_n "checking for dlopen in -ldl... " >&6; } 11497if ${ac_cv_lib_dl_dlopen+:} false; then : 11498 $as_echo_n "(cached) " >&6 11499else 11500 ac_check_lib_save_LIBS=$LIBS 11501LIBS="-ldl $LIBS" 11502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11503/* end confdefs.h. */ 11504 11505/* Override any GCC internal prototype to avoid an error. 11506 Use char because int might match the return type of a GCC 11507 builtin and then its argument prototype would still apply. */ 11508#ifdef __cplusplus 11509extern "C" 11510#endif 11511char dlopen (); 11512int 11513main () 11514{ 11515return dlopen (); 11516 ; 11517 return 0; 11518} 11519_ACEOF 11520if ac_fn_c_try_link "$LINENO"; then : 11521 ac_cv_lib_dl_dlopen=yes 11522else 11523 ac_cv_lib_dl_dlopen=no 11524fi 11525rm -f core conftest.err conftest.$ac_objext \ 11526 conftest$ac_exeext conftest.$ac_ext 11527LIBS=$ac_check_lib_save_LIBS 11528fi 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11530$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11531if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11532 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11533else 11534 11535 lt_cv_dlopen=dyld 11536 lt_cv_dlopen_libs= 11537 lt_cv_dlopen_self=yes 11538 11539fi 11540 11541 ;; 11542 11543 tpf*) 11544 # Don't try to run any link tests for TPF. We know it's impossible 11545 # because TPF is a cross-compiler, and we know how we open DSOs. 11546 lt_cv_dlopen=dlopen 11547 lt_cv_dlopen_libs= 11548 lt_cv_dlopen_self=no 11549 ;; 11550 11551 *) 11552 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11553if test "x$ac_cv_func_shl_load" = xyes; then : 11554 lt_cv_dlopen=shl_load 11555else 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11557$as_echo_n "checking for shl_load in -ldld... " >&6; } 11558if ${ac_cv_lib_dld_shl_load+:} false; then : 11559 $as_echo_n "(cached) " >&6 11560else 11561 ac_check_lib_save_LIBS=$LIBS 11562LIBS="-ldld $LIBS" 11563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11564/* end confdefs.h. */ 11565 11566/* Override any GCC internal prototype to avoid an error. 11567 Use char because int might match the return type of a GCC 11568 builtin and then its argument prototype would still apply. */ 11569#ifdef __cplusplus 11570extern "C" 11571#endif 11572char shl_load (); 11573int 11574main () 11575{ 11576return shl_load (); 11577 ; 11578 return 0; 11579} 11580_ACEOF 11581if ac_fn_c_try_link "$LINENO"; then : 11582 ac_cv_lib_dld_shl_load=yes 11583else 11584 ac_cv_lib_dld_shl_load=no 11585fi 11586rm -f core conftest.err conftest.$ac_objext \ 11587 conftest$ac_exeext conftest.$ac_ext 11588LIBS=$ac_check_lib_save_LIBS 11589fi 11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11591$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11592if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11593 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11594else 11595 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11596if test "x$ac_cv_func_dlopen" = xyes; then : 11597 lt_cv_dlopen=dlopen 11598else 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11600$as_echo_n "checking for dlopen in -ldl... " >&6; } 11601if ${ac_cv_lib_dl_dlopen+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 ac_check_lib_save_LIBS=$LIBS 11605LIBS="-ldl $LIBS" 11606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11607/* end confdefs.h. */ 11608 11609/* Override any GCC internal prototype to avoid an error. 11610 Use char because int might match the return type of a GCC 11611 builtin and then its argument prototype would still apply. */ 11612#ifdef __cplusplus 11613extern "C" 11614#endif 11615char dlopen (); 11616int 11617main () 11618{ 11619return dlopen (); 11620 ; 11621 return 0; 11622} 11623_ACEOF 11624if ac_fn_c_try_link "$LINENO"; then : 11625 ac_cv_lib_dl_dlopen=yes 11626else 11627 ac_cv_lib_dl_dlopen=no 11628fi 11629rm -f core conftest.err conftest.$ac_objext \ 11630 conftest$ac_exeext conftest.$ac_ext 11631LIBS=$ac_check_lib_save_LIBS 11632fi 11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11634$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11635if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11636 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11637else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11639$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11640if ${ac_cv_lib_svld_dlopen+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 ac_check_lib_save_LIBS=$LIBS 11644LIBS="-lsvld $LIBS" 11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647 11648/* Override any GCC internal prototype to avoid an error. 11649 Use char because int might match the return type of a GCC 11650 builtin and then its argument prototype would still apply. */ 11651#ifdef __cplusplus 11652extern "C" 11653#endif 11654char dlopen (); 11655int 11656main () 11657{ 11658return dlopen (); 11659 ; 11660 return 0; 11661} 11662_ACEOF 11663if ac_fn_c_try_link "$LINENO"; then : 11664 ac_cv_lib_svld_dlopen=yes 11665else 11666 ac_cv_lib_svld_dlopen=no 11667fi 11668rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670LIBS=$ac_check_lib_save_LIBS 11671fi 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11673$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11674if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11675 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11676else 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11678$as_echo_n "checking for dld_link in -ldld... " >&6; } 11679if ${ac_cv_lib_dld_dld_link+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681else 11682 ac_check_lib_save_LIBS=$LIBS 11683LIBS="-ldld $LIBS" 11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686 11687/* Override any GCC internal prototype to avoid an error. 11688 Use char because int might match the return type of a GCC 11689 builtin and then its argument prototype would still apply. */ 11690#ifdef __cplusplus 11691extern "C" 11692#endif 11693char dld_link (); 11694int 11695main () 11696{ 11697return dld_link (); 11698 ; 11699 return 0; 11700} 11701_ACEOF 11702if ac_fn_c_try_link "$LINENO"; then : 11703 ac_cv_lib_dld_dld_link=yes 11704else 11705 ac_cv_lib_dld_dld_link=no 11706fi 11707rm -f core conftest.err conftest.$ac_objext \ 11708 conftest$ac_exeext conftest.$ac_ext 11709LIBS=$ac_check_lib_save_LIBS 11710fi 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11712$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11713if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11714 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11715fi 11716 11717 11718fi 11719 11720 11721fi 11722 11723 11724fi 11725 11726 11727fi 11728 11729 11730fi 11731 11732 ;; 11733 esac 11734 11735 if test no = "$lt_cv_dlopen"; then 11736 enable_dlopen=no 11737 else 11738 enable_dlopen=yes 11739 fi 11740 11741 case $lt_cv_dlopen in 11742 dlopen) 11743 save_CPPFLAGS=$CPPFLAGS 11744 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11745 11746 save_LDFLAGS=$LDFLAGS 11747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11748 11749 save_LIBS=$LIBS 11750 LIBS="$lt_cv_dlopen_libs $LIBS" 11751 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11753$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11754if ${lt_cv_dlopen_self+:} false; then : 11755 $as_echo_n "(cached) " >&6 11756else 11757 if test yes = "$cross_compiling"; then : 11758 lt_cv_dlopen_self=cross 11759else 11760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11761 lt_status=$lt_dlunknown 11762 cat > conftest.$ac_ext <<_LT_EOF 11763#line $LINENO "configure" 11764#include "confdefs.h" 11765 11766#if HAVE_DLFCN_H 11767#include <dlfcn.h> 11768#endif 11769 11770#include <stdio.h> 11771 11772#ifdef RTLD_GLOBAL 11773# define LT_DLGLOBAL RTLD_GLOBAL 11774#else 11775# ifdef DL_GLOBAL 11776# define LT_DLGLOBAL DL_GLOBAL 11777# else 11778# define LT_DLGLOBAL 0 11779# endif 11780#endif 11781 11782/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11783 find out it does not work in some platform. */ 11784#ifndef LT_DLLAZY_OR_NOW 11785# ifdef RTLD_LAZY 11786# define LT_DLLAZY_OR_NOW RTLD_LAZY 11787# else 11788# ifdef DL_LAZY 11789# define LT_DLLAZY_OR_NOW DL_LAZY 11790# else 11791# ifdef RTLD_NOW 11792# define LT_DLLAZY_OR_NOW RTLD_NOW 11793# else 11794# ifdef DL_NOW 11795# define LT_DLLAZY_OR_NOW DL_NOW 11796# else 11797# define LT_DLLAZY_OR_NOW 0 11798# endif 11799# endif 11800# endif 11801# endif 11802#endif 11803 11804/* When -fvisibility=hidden is used, assume the code has been annotated 11805 correspondingly for the symbols needed. */ 11806#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11807int fnord () __attribute__((visibility("default"))); 11808#endif 11809 11810int fnord () { return 42; } 11811int main () 11812{ 11813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11814 int status = $lt_dlunknown; 11815 11816 if (self) 11817 { 11818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11819 else 11820 { 11821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11822 else puts (dlerror ()); 11823 } 11824 /* dlclose (self); */ 11825 } 11826 else 11827 puts (dlerror ()); 11828 11829 return status; 11830} 11831_LT_EOF 11832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11833 (eval $ac_link) 2>&5 11834 ac_status=$? 11835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11836 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11837 (./conftest; exit; ) >&5 2>/dev/null 11838 lt_status=$? 11839 case x$lt_status in 11840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11843 esac 11844 else : 11845 # compilation failed 11846 lt_cv_dlopen_self=no 11847 fi 11848fi 11849rm -fr conftest* 11850 11851 11852fi 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11854$as_echo "$lt_cv_dlopen_self" >&6; } 11855 11856 if test yes = "$lt_cv_dlopen_self"; then 11857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11859$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11860if ${lt_cv_dlopen_self_static+:} false; then : 11861 $as_echo_n "(cached) " >&6 11862else 11863 if test yes = "$cross_compiling"; then : 11864 lt_cv_dlopen_self_static=cross 11865else 11866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11867 lt_status=$lt_dlunknown 11868 cat > conftest.$ac_ext <<_LT_EOF 11869#line $LINENO "configure" 11870#include "confdefs.h" 11871 11872#if HAVE_DLFCN_H 11873#include <dlfcn.h> 11874#endif 11875 11876#include <stdio.h> 11877 11878#ifdef RTLD_GLOBAL 11879# define LT_DLGLOBAL RTLD_GLOBAL 11880#else 11881# ifdef DL_GLOBAL 11882# define LT_DLGLOBAL DL_GLOBAL 11883# else 11884# define LT_DLGLOBAL 0 11885# endif 11886#endif 11887 11888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11889 find out it does not work in some platform. */ 11890#ifndef LT_DLLAZY_OR_NOW 11891# ifdef RTLD_LAZY 11892# define LT_DLLAZY_OR_NOW RTLD_LAZY 11893# else 11894# ifdef DL_LAZY 11895# define LT_DLLAZY_OR_NOW DL_LAZY 11896# else 11897# ifdef RTLD_NOW 11898# define LT_DLLAZY_OR_NOW RTLD_NOW 11899# else 11900# ifdef DL_NOW 11901# define LT_DLLAZY_OR_NOW DL_NOW 11902# else 11903# define LT_DLLAZY_OR_NOW 0 11904# endif 11905# endif 11906# endif 11907# endif 11908#endif 11909 11910/* When -fvisibility=hidden is used, assume the code has been annotated 11911 correspondingly for the symbols needed. */ 11912#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11913int fnord () __attribute__((visibility("default"))); 11914#endif 11915 11916int fnord () { return 42; } 11917int main () 11918{ 11919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11920 int status = $lt_dlunknown; 11921 11922 if (self) 11923 { 11924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11925 else 11926 { 11927 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11928 else puts (dlerror ()); 11929 } 11930 /* dlclose (self); */ 11931 } 11932 else 11933 puts (dlerror ()); 11934 11935 return status; 11936} 11937_LT_EOF 11938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11939 (eval $ac_link) 2>&5 11940 ac_status=$? 11941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11942 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11943 (./conftest; exit; ) >&5 2>/dev/null 11944 lt_status=$? 11945 case x$lt_status in 11946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11948 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11949 esac 11950 else : 11951 # compilation failed 11952 lt_cv_dlopen_self_static=no 11953 fi 11954fi 11955rm -fr conftest* 11956 11957 11958fi 11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11960$as_echo "$lt_cv_dlopen_self_static" >&6; } 11961 fi 11962 11963 CPPFLAGS=$save_CPPFLAGS 11964 LDFLAGS=$save_LDFLAGS 11965 LIBS=$save_LIBS 11966 ;; 11967 esac 11968 11969 case $lt_cv_dlopen_self in 11970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11971 *) enable_dlopen_self=unknown ;; 11972 esac 11973 11974 case $lt_cv_dlopen_self_static in 11975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11976 *) enable_dlopen_self_static=unknown ;; 11977 esac 11978fi 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996striplib= 11997old_striplib= 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11999$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12000if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12001 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12002 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12004$as_echo "yes" >&6; } 12005else 12006# FIXME - insert some real tests, host_os isn't really good enough 12007 case $host_os in 12008 darwin*) 12009 if test -n "$STRIP"; then 12010 striplib="$STRIP -x" 12011 old_striplib="$STRIP -S" 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12013$as_echo "yes" >&6; } 12014 else 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12016$as_echo "no" >&6; } 12017 fi 12018 ;; 12019 *) 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12021$as_echo "no" >&6; } 12022 ;; 12023 esac 12024fi 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 # Report what library types will actually be built 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12039$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12041$as_echo "$can_build_shared" >&6; } 12042 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12044$as_echo_n "checking whether to build shared libraries... " >&6; } 12045 test no = "$can_build_shared" && enable_shared=no 12046 12047 # On AIX, shared libraries and static libraries use the same namespace, and 12048 # are all built from PIC. 12049 case $host_os in 12050 aix3*) 12051 test yes = "$enable_shared" && enable_static=no 12052 if test -n "$RANLIB"; then 12053 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12054 postinstall_cmds='$RANLIB $lib' 12055 fi 12056 ;; 12057 12058 aix[4-9]*) 12059 if test ia64 != "$host_cpu"; then 12060 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12061 yes,aix,yes) ;; # shared object as lib.so file only 12062 yes,svr4,*) ;; # shared object as lib.so archive member only 12063 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12064 esac 12065 fi 12066 ;; 12067 esac 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12069$as_echo "$enable_shared" >&6; } 12070 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12072$as_echo_n "checking whether to build static libraries... " >&6; } 12073 # Make sure either enable_shared or enable_static is yes. 12074 test yes = "$enable_shared" || enable_static=yes 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12076$as_echo "$enable_static" >&6; } 12077 12078 12079 12080 12081fi 12082ac_ext=c 12083ac_cpp='$CPP $CPPFLAGS' 12084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12086ac_compiler_gnu=$ac_cv_c_compiler_gnu 12087 12088CC=$lt_save_CC 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 ac_config_commands="$ac_config_commands libtool" 12105 12106 12107 12108 12109# Only expand once: 12110 12111 12112 12113ac_config_headers="$ac_config_headers config.h" 12114 12115 12116 12117 12118DVDREAD_LT_CURRENT=8 12119DVDREAD_LT_AGE=0 12120DVDREAD_LT_REVISION=0 12121 12122DVDREAD_LTVERSION=$DVDREAD_LT_CURRENT:$DVDREAD_LT_REVISION:$DVDREAD_LT_AGE 12123 12124 12125ac_ext=c 12126ac_cpp='$CPP $CPPFLAGS' 12127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12129ac_compiler_gnu=$ac_cv_c_compiler_gnu 12130if test -n "$ac_tool_prefix"; then 12131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12132set dummy ${ac_tool_prefix}gcc; ac_word=$2 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12134$as_echo_n "checking for $ac_word... " >&6; } 12135if ${ac_cv_prog_CC+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 if test -n "$CC"; then 12139 ac_cv_prog_CC="$CC" # Let the user override the test. 12140else 12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12142for as_dir in $PATH 12143do 12144 IFS=$as_save_IFS 12145 test -z "$as_dir" && as_dir=. 12146 for ac_exec_ext in '' $ac_executable_extensions; do 12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12148 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12150 break 2 12151 fi 12152done 12153 done 12154IFS=$as_save_IFS 12155 12156fi 12157fi 12158CC=$ac_cv_prog_CC 12159if test -n "$CC"; then 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12161$as_echo "$CC" >&6; } 12162else 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12164$as_echo "no" >&6; } 12165fi 12166 12167 12168fi 12169if test -z "$ac_cv_prog_CC"; then 12170 ac_ct_CC=$CC 12171 # Extract the first word of "gcc", so it can be a program name with args. 12172set dummy gcc; ac_word=$2 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12174$as_echo_n "checking for $ac_word... " >&6; } 12175if ${ac_cv_prog_ac_ct_CC+:} false; then : 12176 $as_echo_n "(cached) " >&6 12177else 12178 if test -n "$ac_ct_CC"; then 12179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12180else 12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182for as_dir in $PATH 12183do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12188 ac_cv_prog_ac_ct_CC="gcc" 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192done 12193 done 12194IFS=$as_save_IFS 12195 12196fi 12197fi 12198ac_ct_CC=$ac_cv_prog_ac_ct_CC 12199if test -n "$ac_ct_CC"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12201$as_echo "$ac_ct_CC" >&6; } 12202else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204$as_echo "no" >&6; } 12205fi 12206 12207 if test "x$ac_ct_CC" = x; then 12208 CC="" 12209 else 12210 case $cross_compiling:$ac_tool_warned in 12211yes:) 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12214ac_tool_warned=yes ;; 12215esac 12216 CC=$ac_ct_CC 12217 fi 12218else 12219 CC="$ac_cv_prog_CC" 12220fi 12221 12222if test -z "$CC"; then 12223 if test -n "$ac_tool_prefix"; then 12224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12225set dummy ${ac_tool_prefix}cc; ac_word=$2 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12227$as_echo_n "checking for $ac_word... " >&6; } 12228if ${ac_cv_prog_CC+:} false; then : 12229 $as_echo_n "(cached) " >&6 12230else 12231 if test -n "$CC"; then 12232 ac_cv_prog_CC="$CC" # Let the user override the test. 12233else 12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12235for as_dir in $PATH 12236do 12237 IFS=$as_save_IFS 12238 test -z "$as_dir" && as_dir=. 12239 for ac_exec_ext in '' $ac_executable_extensions; do 12240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12241 ac_cv_prog_CC="${ac_tool_prefix}cc" 12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12243 break 2 12244 fi 12245done 12246 done 12247IFS=$as_save_IFS 12248 12249fi 12250fi 12251CC=$ac_cv_prog_CC 12252if test -n "$CC"; then 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12254$as_echo "$CC" >&6; } 12255else 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12257$as_echo "no" >&6; } 12258fi 12259 12260 12261 fi 12262fi 12263if test -z "$CC"; then 12264 # Extract the first word of "cc", so it can be a program name with args. 12265set dummy cc; ac_word=$2 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12267$as_echo_n "checking for $ac_word... " >&6; } 12268if ${ac_cv_prog_CC+:} false; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 if test -n "$CC"; then 12272 ac_cv_prog_CC="$CC" # Let the user override the test. 12273else 12274 ac_prog_rejected=no 12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12276for as_dir in $PATH 12277do 12278 IFS=$as_save_IFS 12279 test -z "$as_dir" && as_dir=. 12280 for ac_exec_ext in '' $ac_executable_extensions; do 12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12282 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12283 ac_prog_rejected=yes 12284 continue 12285 fi 12286 ac_cv_prog_CC="cc" 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12288 break 2 12289 fi 12290done 12291 done 12292IFS=$as_save_IFS 12293 12294if test $ac_prog_rejected = yes; then 12295 # We found a bogon in the path, so make sure we never use it. 12296 set dummy $ac_cv_prog_CC 12297 shift 12298 if test $# != 0; then 12299 # We chose a different compiler from the bogus one. 12300 # However, it has the same basename, so the bogon will be chosen 12301 # first if we set CC to just the basename; use the full file name. 12302 shift 12303 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12304 fi 12305fi 12306fi 12307fi 12308CC=$ac_cv_prog_CC 12309if test -n "$CC"; then 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12311$as_echo "$CC" >&6; } 12312else 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12314$as_echo "no" >&6; } 12315fi 12316 12317 12318fi 12319if test -z "$CC"; then 12320 if test -n "$ac_tool_prefix"; then 12321 for ac_prog in cl.exe 12322 do 12323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12324set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326$as_echo_n "checking for $ac_word... " >&6; } 12327if ${ac_cv_prog_CC+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329else 12330 if test -n "$CC"; then 12331 ac_cv_prog_CC="$CC" # Let the user override the test. 12332else 12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12334for as_dir in $PATH 12335do 12336 IFS=$as_save_IFS 12337 test -z "$as_dir" && as_dir=. 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12342 break 2 12343 fi 12344done 12345 done 12346IFS=$as_save_IFS 12347 12348fi 12349fi 12350CC=$ac_cv_prog_CC 12351if test -n "$CC"; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12353$as_echo "$CC" >&6; } 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356$as_echo "no" >&6; } 12357fi 12358 12359 12360 test -n "$CC" && break 12361 done 12362fi 12363if test -z "$CC"; then 12364 ac_ct_CC=$CC 12365 for ac_prog in cl.exe 12366do 12367 # Extract the first word of "$ac_prog", so it can be a program name with args. 12368set dummy $ac_prog; ac_word=$2 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12370$as_echo_n "checking for $ac_word... " >&6; } 12371if ${ac_cv_prog_ac_ct_CC+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 if test -n "$ac_ct_CC"; then 12375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12376else 12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12378for as_dir in $PATH 12379do 12380 IFS=$as_save_IFS 12381 test -z "$as_dir" && as_dir=. 12382 for ac_exec_ext in '' $ac_executable_extensions; do 12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12384 ac_cv_prog_ac_ct_CC="$ac_prog" 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12386 break 2 12387 fi 12388done 12389 done 12390IFS=$as_save_IFS 12391 12392fi 12393fi 12394ac_ct_CC=$ac_cv_prog_ac_ct_CC 12395if test -n "$ac_ct_CC"; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12397$as_echo "$ac_ct_CC" >&6; } 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401fi 12402 12403 12404 test -n "$ac_ct_CC" && break 12405done 12406 12407 if test "x$ac_ct_CC" = x; then 12408 CC="" 12409 else 12410 case $cross_compiling:$ac_tool_warned in 12411yes:) 12412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12414ac_tool_warned=yes ;; 12415esac 12416 CC=$ac_ct_CC 12417 fi 12418fi 12419 12420fi 12421 12422 12423test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12425as_fn_error $? "no acceptable C compiler found in \$PATH 12426See \`config.log' for more details" "$LINENO" 5; } 12427 12428# Provide some information about the compiler. 12429$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12430set X $ac_compile 12431ac_compiler=$2 12432for ac_option in --version -v -V -qversion; do 12433 { { ac_try="$ac_compiler $ac_option >&5" 12434case "(($ac_try" in 12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12436 *) ac_try_echo=$ac_try;; 12437esac 12438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12439$as_echo "$ac_try_echo"; } >&5 12440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12441 ac_status=$? 12442 if test -s conftest.err; then 12443 sed '10a\ 12444... rest of stderr output deleted ... 12445 10q' conftest.err >conftest.er1 12446 cat conftest.er1 >&5 12447 fi 12448 rm -f conftest.er1 conftest.err 12449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12450 test $ac_status = 0; } 12451done 12452 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12455if ${ac_cv_c_compiler_gnu+:} false; then : 12456 $as_echo_n "(cached) " >&6 12457else 12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12459/* end confdefs.h. */ 12460 12461int 12462main () 12463{ 12464#ifndef __GNUC__ 12465 choke me 12466#endif 12467 12468 ; 12469 return 0; 12470} 12471_ACEOF 12472if ac_fn_c_try_compile "$LINENO"; then : 12473 ac_compiler_gnu=yes 12474else 12475 ac_compiler_gnu=no 12476fi 12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12478ac_cv_c_compiler_gnu=$ac_compiler_gnu 12479 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12482$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12483if test $ac_compiler_gnu = yes; then 12484 GCC=yes 12485else 12486 GCC= 12487fi 12488ac_test_CFLAGS=${CFLAGS+set} 12489ac_save_CFLAGS=$CFLAGS 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12491$as_echo_n "checking whether $CC accepts -g... " >&6; } 12492if ${ac_cv_prog_cc_g+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 ac_save_c_werror_flag=$ac_c_werror_flag 12496 ac_c_werror_flag=yes 12497 ac_cv_prog_cc_g=no 12498 CFLAGS="-g" 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502int 12503main () 12504{ 12505 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_compile "$LINENO"; then : 12511 ac_cv_prog_cc_g=yes 12512else 12513 CFLAGS="" 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517int 12518main () 12519{ 12520 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525if ac_fn_c_try_compile "$LINENO"; then : 12526 12527else 12528 ac_c_werror_flag=$ac_save_c_werror_flag 12529 CFLAGS="-g" 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533int 12534main () 12535{ 12536 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_c_try_compile "$LINENO"; then : 12542 ac_cv_prog_cc_g=yes 12543fi 12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12545fi 12546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12547fi 12548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12549 ac_c_werror_flag=$ac_save_c_werror_flag 12550fi 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12552$as_echo "$ac_cv_prog_cc_g" >&6; } 12553if test "$ac_test_CFLAGS" = set; then 12554 CFLAGS=$ac_save_CFLAGS 12555elif test $ac_cv_prog_cc_g = yes; then 12556 if test "$GCC" = yes; then 12557 CFLAGS="-g -O2" 12558 else 12559 CFLAGS="-g" 12560 fi 12561else 12562 if test "$GCC" = yes; then 12563 CFLAGS="-O2" 12564 else 12565 CFLAGS= 12566 fi 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12570if ${ac_cv_prog_cc_c89+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 ac_cv_prog_cc_c89=no 12574ac_save_CC=$CC 12575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577#include <stdarg.h> 12578#include <stdio.h> 12579struct stat; 12580/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12581struct buf { int x; }; 12582FILE * (*rcsopen) (struct buf *, struct stat *, int); 12583static char *e (p, i) 12584 char **p; 12585 int i; 12586{ 12587 return p[i]; 12588} 12589static char *f (char * (*g) (char **, int), char **p, ...) 12590{ 12591 char *s; 12592 va_list v; 12593 va_start (v,p); 12594 s = g (p, va_arg (v,int)); 12595 va_end (v); 12596 return s; 12597} 12598 12599/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12600 function prototypes and stuff, but not '\xHH' hex character constants. 12601 These don't provoke an error unfortunately, instead are silently treated 12602 as 'x'. The following induces an error, until -std is added to get 12603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12604 array size at least. It's necessary to write '\x00'==0 to get something 12605 that's true only with -std. */ 12606int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12607 12608/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12609 inside strings and character constants. */ 12610#define FOO(x) 'x' 12611int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12612 12613int test (int i, double x); 12614struct s1 {int (*f) (int a);}; 12615struct s2 {int (*f) (double a);}; 12616int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12617int argc; 12618char **argv; 12619int 12620main () 12621{ 12622return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12623 ; 12624 return 0; 12625} 12626_ACEOF 12627for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12629do 12630 CC="$ac_save_CC $ac_arg" 12631 if ac_fn_c_try_compile "$LINENO"; then : 12632 ac_cv_prog_cc_c89=$ac_arg 12633fi 12634rm -f core conftest.err conftest.$ac_objext 12635 test "x$ac_cv_prog_cc_c89" != "xno" && break 12636done 12637rm -f conftest.$ac_ext 12638CC=$ac_save_CC 12639 12640fi 12641# AC_CACHE_VAL 12642case "x$ac_cv_prog_cc_c89" in 12643 x) 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12645$as_echo "none needed" >&6; } ;; 12646 xno) 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12648$as_echo "unsupported" >&6; } ;; 12649 *) 12650 CC="$CC $ac_cv_prog_cc_c89" 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12652$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12653esac 12654if test "x$ac_cv_prog_cc_c89" != xno; then : 12655 12656fi 12657 12658ac_ext=c 12659ac_cpp='$CPP $CPPFLAGS' 12660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12662ac_compiler_gnu=$ac_cv_c_compiler_gnu 12663 12664ac_ext=c 12665ac_cpp='$CPP $CPPFLAGS' 12666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12668ac_compiler_gnu=$ac_cv_c_compiler_gnu 12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12670$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12671if ${am_cv_prog_cc_c_o+:} false; then : 12672 $as_echo_n "(cached) " >&6 12673else 12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12675/* end confdefs.h. */ 12676 12677int 12678main () 12679{ 12680 12681 ; 12682 return 0; 12683} 12684_ACEOF 12685 # Make sure it works both with $CC and with simple cc. 12686 # Following AC_PROG_CC_C_O, we do the test twice because some 12687 # compilers refuse to overwrite an existing .o file with -o, 12688 # though they will create one. 12689 am_cv_prog_cc_c_o=yes 12690 for am_i in 1 2; do 12691 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12692 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12693 ac_status=$? 12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 (exit $ac_status); } \ 12696 && test -f conftest2.$ac_objext; then 12697 : OK 12698 else 12699 am_cv_prog_cc_c_o=no 12700 break 12701 fi 12702 done 12703 rm -f core conftest* 12704 unset am_i 12705fi 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12707$as_echo "$am_cv_prog_cc_c_o" >&6; } 12708if test "$am_cv_prog_cc_c_o" != yes; then 12709 # Losing compiler, so override with the script. 12710 # FIXME: It is wrong to rewrite CC. 12711 # But if we don't then we get into trouble of one sort or another. 12712 # A longer-term fix would be to have automake use am__CC in this case, 12713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12714 CC="$am_aux_dir/compile $CC" 12715fi 12716ac_ext=c 12717ac_cpp='$CPP $CPPFLAGS' 12718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12720ac_compiler_gnu=$ac_cv_c_compiler_gnu 12721 12722 12723depcc="$CC" am_compiler_list= 12724 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12726$as_echo_n "checking dependency style of $depcc... " >&6; } 12727if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12728 $as_echo_n "(cached) " >&6 12729else 12730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12731 # We make a subdir and do the tests there. Otherwise we can end up 12732 # making bogus files that we don't know about and never remove. For 12733 # instance it was reported that on HP-UX the gcc test will end up 12734 # making a dummy file named 'D' -- because '-MD' means "put the output 12735 # in D". 12736 rm -rf conftest.dir 12737 mkdir conftest.dir 12738 # Copy depcomp to subdir because otherwise we won't find it if we're 12739 # using a relative directory. 12740 cp "$am_depcomp" conftest.dir 12741 cd conftest.dir 12742 # We will build objects and dependencies in a subdirectory because 12743 # it helps to detect inapplicable dependency modes. For instance 12744 # both Tru64's cc and ICC support -MD to output dependencies as a 12745 # side effect of compilation, but ICC will put the dependencies in 12746 # the current directory while Tru64 will put them in the object 12747 # directory. 12748 mkdir sub 12749 12750 am_cv_CC_dependencies_compiler_type=none 12751 if test "$am_compiler_list" = ""; then 12752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12753 fi 12754 am__universal=false 12755 case " $depcc " in #( 12756 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12757 esac 12758 12759 for depmode in $am_compiler_list; do 12760 # Setup a source with many dependencies, because some compilers 12761 # like to wrap large dependency lists on column 80 (with \), and 12762 # we should not choose a depcomp mode which is confused by this. 12763 # 12764 # We need to recreate these files for each test, as the compiler may 12765 # overwrite some of them when testing with obscure command lines. 12766 # This happens at least with the AIX C compiler. 12767 : > sub/conftest.c 12768 for i in 1 2 3 4 5 6; do 12769 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12770 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12771 # Solaris 10 /bin/sh. 12772 echo '/* dummy */' > sub/conftst$i.h 12773 done 12774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12775 12776 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12777 # mode. It turns out that the SunPro C++ compiler does not properly 12778 # handle '-M -o', and we need to detect this. Also, some Intel 12779 # versions had trouble with output in subdirs. 12780 am__obj=sub/conftest.${OBJEXT-o} 12781 am__minus_obj="-o $am__obj" 12782 case $depmode in 12783 gcc) 12784 # This depmode causes a compiler race in universal mode. 12785 test "$am__universal" = false || continue 12786 ;; 12787 nosideeffect) 12788 # After this tag, mechanisms are not by side-effect, so they'll 12789 # only be used when explicitly requested. 12790 if test "x$enable_dependency_tracking" = xyes; then 12791 continue 12792 else 12793 break 12794 fi 12795 ;; 12796 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12797 # This compiler won't grok '-c -o', but also, the minuso test has 12798 # not run yet. These depmodes are late enough in the game, and 12799 # so weak that their functioning should not be impacted. 12800 am__obj=conftest.${OBJEXT-o} 12801 am__minus_obj= 12802 ;; 12803 none) break ;; 12804 esac 12805 if depmode=$depmode \ 12806 source=sub/conftest.c object=$am__obj \ 12807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12809 >/dev/null 2>conftest.err && 12810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12814 # icc doesn't choke on unknown options, it will just issue warnings 12815 # or remarks (even with -Werror). So we grep stderr for any message 12816 # that says an option was ignored or not supported. 12817 # When given -MP, icc 7.0 and 7.1 complain thusly: 12818 # icc: Command line warning: ignoring option '-M'; no argument required 12819 # The diagnosis changed in icc 8.0: 12820 # icc: Command line remark: option '-MP' not supported 12821 if (grep 'ignoring option' conftest.err || 12822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12823 am_cv_CC_dependencies_compiler_type=$depmode 12824 break 12825 fi 12826 fi 12827 done 12828 12829 cd .. 12830 rm -rf conftest.dir 12831else 12832 am_cv_CC_dependencies_compiler_type=none 12833fi 12834 12835fi 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12837$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12838CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12839 12840 if 12841 test "x$enable_dependency_tracking" != xno \ 12842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12843 am__fastdepCC_TRUE= 12844 am__fastdepCC_FALSE='#' 12845else 12846 am__fastdepCC_TRUE='#' 12847 am__fastdepCC_FALSE= 12848fi 12849 12850 12851 12852 12853 12854 12855 for ac_header in $ac_header_list 12856do : 12857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12858ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12859" 12860if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12861 cat >>confdefs.h <<_ACEOF 12862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12863_ACEOF 12864 12865fi 12866 12867done 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877# Check whether --enable-largefile was given. 12878if test "${enable_largefile+set}" = set; then : 12879 enableval=$enable_largefile; 12880fi 12881 12882if test "$enable_largefile" != no; then 12883 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12885$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12886if ${ac_cv_sys_largefile_CC+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 ac_cv_sys_largefile_CC=no 12890 if test "$GCC" != yes; then 12891 ac_save_CC=$CC 12892 while :; do 12893 # IRIX 6.2 and later do not support large files by default, 12894 # so use the C compiler's -n32 option if that helps. 12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12896/* end confdefs.h. */ 12897#include <sys/types.h> 12898 /* Check that off_t can represent 2**63 - 1 correctly. 12899 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12900 since some C++ compilers masquerading as C compilers 12901 incorrectly reject 9223372036854775807. */ 12902#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12904 && LARGE_OFF_T % 2147483647 == 1) 12905 ? 1 : -1]; 12906int 12907main () 12908{ 12909 12910 ; 12911 return 0; 12912} 12913_ACEOF 12914 if ac_fn_c_try_compile "$LINENO"; then : 12915 break 12916fi 12917rm -f core conftest.err conftest.$ac_objext 12918 CC="$CC -n32" 12919 if ac_fn_c_try_compile "$LINENO"; then : 12920 ac_cv_sys_largefile_CC=' -n32'; break 12921fi 12922rm -f core conftest.err conftest.$ac_objext 12923 break 12924 done 12925 CC=$ac_save_CC 12926 rm -f conftest.$ac_ext 12927 fi 12928fi 12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12930$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12931 if test "$ac_cv_sys_largefile_CC" != no; then 12932 CC=$CC$ac_cv_sys_largefile_CC 12933 fi 12934 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12936$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12937if ${ac_cv_sys_file_offset_bits+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 while :; do 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943#include <sys/types.h> 12944 /* Check that off_t can represent 2**63 - 1 correctly. 12945 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12946 since some C++ compilers masquerading as C compilers 12947 incorrectly reject 9223372036854775807. */ 12948#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12950 && LARGE_OFF_T % 2147483647 == 1) 12951 ? 1 : -1]; 12952int 12953main () 12954{ 12955 12956 ; 12957 return 0; 12958} 12959_ACEOF 12960if ac_fn_c_try_compile "$LINENO"; then : 12961 ac_cv_sys_file_offset_bits=no; break 12962fi 12963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12965/* end confdefs.h. */ 12966#define _FILE_OFFSET_BITS 64 12967#include <sys/types.h> 12968 /* Check that off_t can represent 2**63 - 1 correctly. 12969 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12970 since some C++ compilers masquerading as C compilers 12971 incorrectly reject 9223372036854775807. */ 12972#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12974 && LARGE_OFF_T % 2147483647 == 1) 12975 ? 1 : -1]; 12976int 12977main () 12978{ 12979 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_compile "$LINENO"; then : 12985 ac_cv_sys_file_offset_bits=64; break 12986fi 12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12988 ac_cv_sys_file_offset_bits=unknown 12989 break 12990done 12991fi 12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12993$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12994case $ac_cv_sys_file_offset_bits in #( 12995 no | unknown) ;; 12996 *) 12997cat >>confdefs.h <<_ACEOF 12998#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12999_ACEOF 13000;; 13001esac 13002rm -rf conftest* 13003 if test $ac_cv_sys_file_offset_bits = unknown; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13005$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13006if ${ac_cv_sys_large_files+:} false; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 while :; do 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012#include <sys/types.h> 13013 /* Check that off_t can represent 2**63 - 1 correctly. 13014 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13015 since some C++ compilers masquerading as C compilers 13016 incorrectly reject 9223372036854775807. */ 13017#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13019 && LARGE_OFF_T % 2147483647 == 1) 13020 ? 1 : -1]; 13021int 13022main () 13023{ 13024 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029if ac_fn_c_try_compile "$LINENO"; then : 13030 ac_cv_sys_large_files=no; break 13031fi 13032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035#define _LARGE_FILES 1 13036#include <sys/types.h> 13037 /* Check that off_t can represent 2**63 - 1 correctly. 13038 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13039 since some C++ compilers masquerading as C compilers 13040 incorrectly reject 9223372036854775807. */ 13041#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13043 && LARGE_OFF_T % 2147483647 == 1) 13044 ? 1 : -1]; 13045int 13046main () 13047{ 13048 13049 ; 13050 return 0; 13051} 13052_ACEOF 13053if ac_fn_c_try_compile "$LINENO"; then : 13054 ac_cv_sys_large_files=1; break 13055fi 13056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13057 ac_cv_sys_large_files=unknown 13058 break 13059done 13060fi 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13062$as_echo "$ac_cv_sys_large_files" >&6; } 13063case $ac_cv_sys_large_files in #( 13064 no | unknown) ;; 13065 *) 13066cat >>confdefs.h <<_ACEOF 13067#define _LARGE_FILES $ac_cv_sys_large_files 13068_ACEOF 13069;; 13070esac 13071rm -rf conftest* 13072 fi 13073 13074 13075fi 13076 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13078$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13079if ${ac_cv_c_bigendian+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 ac_cv_c_bigendian=unknown 13083 # See if we're dealing with a universal compiler. 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086#ifndef __APPLE_CC__ 13087 not a universal capable compiler 13088 #endif 13089 typedef int dummy; 13090 13091_ACEOF 13092if ac_fn_c_try_compile "$LINENO"; then : 13093 13094 # Check for potential -arch flags. It is not universal unless 13095 # there are at least two -arch flags with different values. 13096 ac_arch= 13097 ac_prev= 13098 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13099 if test -n "$ac_prev"; then 13100 case $ac_word in 13101 i?86 | x86_64 | ppc | ppc64) 13102 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13103 ac_arch=$ac_word 13104 else 13105 ac_cv_c_bigendian=universal 13106 break 13107 fi 13108 ;; 13109 esac 13110 ac_prev= 13111 elif test "x$ac_word" = "x-arch"; then 13112 ac_prev=arch 13113 fi 13114 done 13115fi 13116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13117 if test $ac_cv_c_bigendian = unknown; then 13118 # See if sys/param.h defines the BYTE_ORDER macro. 13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121#include <sys/types.h> 13122 #include <sys/param.h> 13123 13124int 13125main () 13126{ 13127#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13128 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13129 && LITTLE_ENDIAN) 13130 bogus endian macros 13131 #endif 13132 13133 ; 13134 return 0; 13135} 13136_ACEOF 13137if ac_fn_c_try_compile "$LINENO"; then : 13138 # It does; now see whether it defined to BIG_ENDIAN or not. 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141#include <sys/types.h> 13142 #include <sys/param.h> 13143 13144int 13145main () 13146{ 13147#if BYTE_ORDER != BIG_ENDIAN 13148 not big endian 13149 #endif 13150 13151 ; 13152 return 0; 13153} 13154_ACEOF 13155if ac_fn_c_try_compile "$LINENO"; then : 13156 ac_cv_c_bigendian=yes 13157else 13158 ac_cv_c_bigendian=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13161fi 13162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13163 fi 13164 if test $ac_cv_c_bigendian = unknown; then 13165 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13167/* end confdefs.h. */ 13168#include <limits.h> 13169 13170int 13171main () 13172{ 13173#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13174 bogus endian macros 13175 #endif 13176 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO"; then : 13182 # It does; now see whether it defined to _BIG_ENDIAN or not. 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185#include <limits.h> 13186 13187int 13188main () 13189{ 13190#ifndef _BIG_ENDIAN 13191 not big endian 13192 #endif 13193 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198if ac_fn_c_try_compile "$LINENO"; then : 13199 ac_cv_c_bigendian=yes 13200else 13201 ac_cv_c_bigendian=no 13202fi 13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13204fi 13205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13206 fi 13207 if test $ac_cv_c_bigendian = unknown; then 13208 # Compile a test program. 13209 if test "$cross_compiling" = yes; then : 13210 # Try to guess by grepping values from an object file. 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213short int ascii_mm[] = 13214 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13215 short int ascii_ii[] = 13216 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13217 int use_ascii (int i) { 13218 return ascii_mm[i] + ascii_ii[i]; 13219 } 13220 short int ebcdic_ii[] = 13221 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13222 short int ebcdic_mm[] = 13223 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13224 int use_ebcdic (int i) { 13225 return ebcdic_mm[i] + ebcdic_ii[i]; 13226 } 13227 extern int foo; 13228 13229int 13230main () 13231{ 13232return use_ascii (foo) == use_ebcdic (foo); 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_c_try_compile "$LINENO"; then : 13238 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13239 ac_cv_c_bigendian=yes 13240 fi 13241 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13242 if test "$ac_cv_c_bigendian" = unknown; then 13243 ac_cv_c_bigendian=no 13244 else 13245 # finding both strings is unlikely to happen, but who knows? 13246 ac_cv_c_bigendian=unknown 13247 fi 13248 fi 13249fi 13250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13251else 13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13253/* end confdefs.h. */ 13254$ac_includes_default 13255int 13256main () 13257{ 13258 13259 /* Are we little or big endian? From Harbison&Steele. */ 13260 union 13261 { 13262 long int l; 13263 char c[sizeof (long int)]; 13264 } u; 13265 u.l = 1; 13266 return u.c[sizeof (long int) - 1] == 1; 13267 13268 ; 13269 return 0; 13270} 13271_ACEOF 13272if ac_fn_c_try_run "$LINENO"; then : 13273 ac_cv_c_bigendian=no 13274else 13275 ac_cv_c_bigendian=yes 13276fi 13277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13278 conftest.$ac_objext conftest.beam conftest.$ac_ext 13279fi 13280 13281 fi 13282fi 13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13284$as_echo "$ac_cv_c_bigendian" >&6; } 13285 case $ac_cv_c_bigendian in #( 13286 yes) 13287 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13288;; #( 13289 no) 13290 ;; #( 13291 universal) 13292 13293$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13294 13295 ;; #( 13296 *) 13297 as_fn_error $? "unknown endianness 13298 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13299 esac 13300 13301 13302case $host in #( 13303 *mingw32* | *cygwin*) : 13304 for ac_func in gettimeofday 13305do : 13306 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 13307if test "x$ac_cv_func_gettimeofday" = xyes; then : 13308 cat >>confdefs.h <<_ACEOF 13309#define HAVE_GETTIMEOFDAY 1 13310_ACEOF 13311 13312fi 13313done 13314 ;; #( 13315 *) : 13316 ;; 13317esac 13318 13319case $host in #( 13320 *-os2-*) : 13321 LDFLAGS="-no-undefined -Zbin-files $LDFLAGS" ;; #( 13322 *) : 13323 ;; 13324esac 13325 13326case $host in #( 13327 *-linux-*) : 13328 for ac_func in getmntent_r 13329do : 13330 ac_fn_c_check_func "$LINENO" "getmntent_r" "ac_cv_func_getmntent_r" 13331if test "x$ac_cv_func_getmntent_r" = xyes; then : 13332 cat >>confdefs.h <<_ACEOF 13333#define HAVE_GETMNTENT_R 1 13334_ACEOF 13335 13336fi 13337done 13338 ;; #( 13339 *) : 13340 ;; 13341esac 13342 13343 13344# Check whether --with-libdvdcss was given. 13345if test "${with_libdvdcss+set}" = set; then : 13346 withval=$with_libdvdcss; 13347fi 13348 13349 13350# Check whether --enable-dlfcn was given. 13351if test "${enable_dlfcn+set}" = set; then : 13352 enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval 13353else 13354 use_builtin_dlfcn=no 13355fi 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13366 if test -n "$ac_tool_prefix"; then 13367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13370$as_echo_n "checking for $ac_word... " >&6; } 13371if ${ac_cv_path_PKG_CONFIG+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 case $PKG_CONFIG in 13375 [\\/]* | ?:[\\/]*) 13376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13377 ;; 13378 *) 13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13380for as_dir in $PATH 13381do 13382 IFS=$as_save_IFS 13383 test -z "$as_dir" && as_dir=. 13384 for ac_exec_ext in '' $ac_executable_extensions; do 13385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13388 break 2 13389 fi 13390done 13391 done 13392IFS=$as_save_IFS 13393 13394 ;; 13395esac 13396fi 13397PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13398if test -n "$PKG_CONFIG"; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13400$as_echo "$PKG_CONFIG" >&6; } 13401else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13403$as_echo "no" >&6; } 13404fi 13405 13406 13407fi 13408if test -z "$ac_cv_path_PKG_CONFIG"; then 13409 ac_pt_PKG_CONFIG=$PKG_CONFIG 13410 # Extract the first word of "pkg-config", so it can be a program name with args. 13411set dummy pkg-config; ac_word=$2 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13413$as_echo_n "checking for $ac_word... " >&6; } 13414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 case $ac_pt_PKG_CONFIG in 13418 [\\/]* | ?:[\\/]*) 13419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13420 ;; 13421 *) 13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13423for as_dir in $PATH 13424do 13425 IFS=$as_save_IFS 13426 test -z "$as_dir" && as_dir=. 13427 for ac_exec_ext in '' $ac_executable_extensions; do 13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13431 break 2 13432 fi 13433done 13434 done 13435IFS=$as_save_IFS 13436 13437 ;; 13438esac 13439fi 13440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13441if test -n "$ac_pt_PKG_CONFIG"; then 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13443$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13444else 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13446$as_echo "no" >&6; } 13447fi 13448 13449 if test "x$ac_pt_PKG_CONFIG" = x; then 13450 PKG_CONFIG="" 13451 else 13452 case $cross_compiling:$ac_tool_warned in 13453yes:) 13454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13456ac_tool_warned=yes ;; 13457esac 13458 PKG_CONFIG=$ac_pt_PKG_CONFIG 13459 fi 13460else 13461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13462fi 13463 13464fi 13465if test -n "$PKG_CONFIG"; then 13466 _pkg_min_version=0.9.0 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13468$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13469 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13471$as_echo "yes" >&6; } 13472 else 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13474$as_echo "no" >&6; } 13475 PKG_CONFIG="" 13476 fi 13477fi 13478if test x"$with_libdvdcss" = "xyes"; then : 13479 13480 CSS_REQUIRES="libdvdcss >= 1.2" 13481 13482pkg_failed=no 13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CSS" >&5 13484$as_echo_n "checking for CSS... " >&6; } 13485 13486if test -n "$CSS_CFLAGS"; then 13487 pkg_cv_CSS_CFLAGS="$CSS_CFLAGS" 13488 elif test -n "$PKG_CONFIG"; then 13489 if test -n "$PKG_CONFIG" && \ 13490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CSS_REQUIRES\""; } >&5 13491 ($PKG_CONFIG --exists --print-errors "$CSS_REQUIRES") 2>&5 13492 ac_status=$? 13493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13494 test $ac_status = 0; }; then 13495 pkg_cv_CSS_CFLAGS=`$PKG_CONFIG --cflags "$CSS_REQUIRES" 2>/dev/null` 13496 test "x$?" != "x0" && pkg_failed=yes 13497else 13498 pkg_failed=yes 13499fi 13500 else 13501 pkg_failed=untried 13502fi 13503if test -n "$CSS_LIBS"; then 13504 pkg_cv_CSS_LIBS="$CSS_LIBS" 13505 elif test -n "$PKG_CONFIG"; then 13506 if test -n "$PKG_CONFIG" && \ 13507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CSS_REQUIRES\""; } >&5 13508 ($PKG_CONFIG --exists --print-errors "$CSS_REQUIRES") 2>&5 13509 ac_status=$? 13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13511 test $ac_status = 0; }; then 13512 pkg_cv_CSS_LIBS=`$PKG_CONFIG --libs "$CSS_REQUIRES" 2>/dev/null` 13513 test "x$?" != "x0" && pkg_failed=yes 13514else 13515 pkg_failed=yes 13516fi 13517 else 13518 pkg_failed=untried 13519fi 13520 13521 13522 13523if test $pkg_failed = yes; then 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13525$as_echo "no" >&6; } 13526 13527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13528 _pkg_short_errors_supported=yes 13529else 13530 _pkg_short_errors_supported=no 13531fi 13532 if test $_pkg_short_errors_supported = yes; then 13533 CSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$CSS_REQUIRES" 2>&1` 13534 else 13535 CSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$CSS_REQUIRES" 2>&1` 13536 fi 13537 # Put the nasty error message in config.log where it belongs 13538 echo "$CSS_PKG_ERRORS" >&5 13539 13540 as_fn_error $? "Package requirements ($CSS_REQUIRES) were not met: 13541 13542$CSS_PKG_ERRORS 13543 13544Consider adjusting the PKG_CONFIG_PATH environment variable if you 13545installed software in a non-standard prefix. 13546 13547Alternatively, you may set the environment variables CSS_CFLAGS 13548and CSS_LIBS to avoid the need to call pkg-config. 13549See the pkg-config man page for more details." "$LINENO" 5 13550elif test $pkg_failed = untried; then 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13552$as_echo "no" >&6; } 13553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13555as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13556is in your PATH or set the PKG_CONFIG environment variable to the full 13557path to pkg-config. 13558 13559Alternatively, you may set the environment variables CSS_CFLAGS 13560and CSS_LIBS to avoid the need to call pkg-config. 13561See the pkg-config man page for more details. 13562 13563To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13564See \`config.log' for more details" "$LINENO" 5; } 13565else 13566 CSS_CFLAGS=$pkg_cv_CSS_CFLAGS 13567 CSS_LIBS=$pkg_cv_CSS_LIBS 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13569$as_echo "yes" >&6; } 13570 13571fi 13572 for ac_header in dvdcss/dvdcss.h 13573do : 13574 ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default" 13575if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then : 13576 cat >>confdefs.h <<_ACEOF 13577#define HAVE_DVDCSS_DVDCSS_H 1 13578_ACEOF 13579 13580else 13581 as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5 13582fi 13583 13584done 13585 13586 13587else 13588 13589 case $host in #( 13590 *mingw32*) : 13591 ;; #( 13592 *) : 13593 use_builtin_dlfcn=no ;; 13594esac 13595 13596 if test $use_builtin_dlfcn = "yes"; then : 13597 13598 13599$as_echo "#define USING_BUILTIN_DLFCN 1" >>confdefs.h 13600 13601 13602else 13603 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13605$as_echo_n "checking for library containing dlopen... " >&6; } 13606if ${ac_cv_search_dlopen+:} false; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 ac_func_search_save_LIBS=$LIBS 13610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13611/* end confdefs.h. */ 13612 13613/* Override any GCC internal prototype to avoid an error. 13614 Use char because int might match the return type of a GCC 13615 builtin and then its argument prototype would still apply. */ 13616#ifdef __cplusplus 13617extern "C" 13618#endif 13619char dlopen (); 13620int 13621main () 13622{ 13623return dlopen (); 13624 ; 13625 return 0; 13626} 13627_ACEOF 13628for ac_lib in '' dl; do 13629 if test -z "$ac_lib"; then 13630 ac_res="none required" 13631 else 13632 ac_res=-l$ac_lib 13633 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13634 fi 13635 if ac_fn_c_try_link "$LINENO"; then : 13636 ac_cv_search_dlopen=$ac_res 13637fi 13638rm -f core conftest.err conftest.$ac_objext \ 13639 conftest$ac_exeext 13640 if ${ac_cv_search_dlopen+:} false; then : 13641 break 13642fi 13643done 13644if ${ac_cv_search_dlopen+:} false; then : 13645 13646else 13647 ac_cv_search_dlopen=no 13648fi 13649rm conftest.$ac_ext 13650LIBS=$ac_func_search_save_LIBS 13651fi 13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 13653$as_echo "$ac_cv_search_dlopen" >&6; } 13654ac_res=$ac_cv_search_dlopen 13655if test "$ac_res" != no; then : 13656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13657 13658fi 13659 13660 13661fi 13662 13663fi 13664 13665 13666 13667 for flag in -Wall -Wsign-compare -Wextra; do 13668 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 13670$as_echo_n "checking if $CC supports $flag flag... " >&6; } 13671if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 13675 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13676 $as_echo_n "(cached) " >&6 13677else 13678 ac_save_CFLAGS="$CFLAGS" 13679 CFLAGS="$CFLAGS $flag" 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682int main() { return 0; } 13683_ACEOF 13684if ac_fn_c_try_link "$LINENO"; then : 13685 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 13686else 13687 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 13688fi 13689rm -f core conftest.err conftest.$ac_objext \ 13690 conftest$ac_exeext conftest.$ac_ext 13691 CFLAGS="$ac_save_CFLAGS" 13692 13693fi 13694 13695 13696 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13697 13698fi 13699 13700fi 13701eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13703$as_echo "$ac_res" >&6; } 13704 13705 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13706 CFLAGS="$CFLAGS $flag"; 13707fi 13708 13709 done 13710 13711 13712 13713# Check whether --enable-apidoc was given. 13714if test "${enable_apidoc+set}" = set; then : 13715 enableval=$enable_apidoc; 13716fi 13717 13718 13719# Extract the first word of "doxygen", so it can be a program name with args. 13720set dummy doxygen; ac_word=$2 13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13722$as_echo_n "checking for $ac_word... " >&6; } 13723if ${ac_cv_path_DOXYGEN+:} false; then : 13724 $as_echo_n "(cached) " >&6 13725else 13726 case $DOXYGEN in 13727 [\\/]* | ?:[\\/]*) 13728 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13729 ;; 13730 *) 13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13732for as_dir in $PATH 13733do 13734 IFS=$as_save_IFS 13735 test -z "$as_dir" && as_dir=. 13736 for ac_exec_ext in '' $ac_executable_extensions; do 13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13738 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13740 break 2 13741 fi 13742done 13743 done 13744IFS=$as_save_IFS 13745 13746 ;; 13747esac 13748fi 13749DOXYGEN=$ac_cv_path_DOXYGEN 13750if test -n "$DOXYGEN"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13752$as_echo "$DOXYGEN" >&6; } 13753else 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13755$as_echo "no" >&6; } 13756fi 13757 13758 13759 13760if test "x$DOXYGEN" = "x"; then : 13761 13762 if test "x$enable_apidoc" = "xyes"; then : 13763 13764 as_fn_error $? "You need Doxygen to build API documentation" "$LINENO" 5 13765 13766fi 13767 13768fi 13769 if test "x$DOXYGEN" != "x" && test "x$enable_apidoc" = "xyes"; then 13770 APIDOC_TRUE= 13771 APIDOC_FALSE='#' 13772else 13773 APIDOC_TRUE='#' 13774 APIDOC_FALSE= 13775fi 13776 13777 13778if test "x$ac_cv_c_compiler_gnu" = "xyes"; then : 13779 13780 13781$as_echo "#define UNUSED __attribute__((unused))" >>confdefs.h 13782 13783 13784else 13785 13786 13787$as_echo "#define UNUSED /**/" >>confdefs.h 13788 13789 13790fi 13791 13792ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 13793if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 13794 ac_have_decl=1 13795else 13796 ac_have_decl=0 13797fi 13798 13799cat >>confdefs.h <<_ACEOF 13800#define HAVE_DECL_STRERROR_R $ac_have_decl 13801_ACEOF 13802 13803for ac_func in strerror_r 13804do : 13805 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 13806if test "x$ac_cv_func_strerror_r" = xyes; then : 13807 cat >>confdefs.h <<_ACEOF 13808#define HAVE_STRERROR_R 1 13809_ACEOF 13810 13811fi 13812done 13813 13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 13815$as_echo_n "checking whether strerror_r returns char *... " >&6; } 13816if ${ac_cv_func_strerror_r_char_p+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 13820 ac_cv_func_strerror_r_char_p=no 13821 if test $ac_cv_have_decl_strerror_r = yes; then 13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13823/* end confdefs.h. */ 13824$ac_includes_default 13825int 13826main () 13827{ 13828 13829 char buf[100]; 13830 char x = *strerror_r (0, buf, sizeof buf); 13831 char *p = strerror_r (0, buf, sizeof buf); 13832 return !p || x; 13833 13834 ; 13835 return 0; 13836} 13837_ACEOF 13838if ac_fn_c_try_compile "$LINENO"; then : 13839 ac_cv_func_strerror_r_char_p=yes 13840fi 13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13842 else 13843 # strerror_r is not declared. Choose between 13844 # systems that have relatively inaccessible declarations for the 13845 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 13846 # former has a strerror_r that returns char*, while the latter 13847 # has a strerror_r that returns `int'. 13848 # This test should segfault on the DEC system. 13849 if test "$cross_compiling" = yes; then : 13850 : 13851else 13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13853/* end confdefs.h. */ 13854$ac_includes_default 13855 extern char *strerror_r (); 13856int 13857main () 13858{ 13859char buf[100]; 13860 char x = *strerror_r (0, buf, sizeof buf); 13861 return ! isalpha (x); 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866if ac_fn_c_try_run "$LINENO"; then : 13867 ac_cv_func_strerror_r_char_p=yes 13868fi 13869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13870 conftest.$ac_objext conftest.beam conftest.$ac_ext 13871fi 13872 13873 fi 13874 13875fi 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 13877$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 13878if test $ac_cv_func_strerror_r_char_p = yes; then 13879 13880$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 13881 13882fi 13883 13884if test "x$ac_cv_func_strerror_r" = "xyes"; then : 13885 13886else 13887 for ac_func in strerror_s 13888do : 13889 ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s" 13890if test "x$ac_cv_func_strerror_s" = xyes; then : 13891 cat >>confdefs.h <<_ACEOF 13892#define HAVE_STRERROR_S 1 13893_ACEOF 13894 13895fi 13896done 13897 13898fi 13899 13900DVDREAD_VERSION_MAJOR=6 13901DVDREAD_VERSION_MINOR=1 13902DVDREAD_VERSION_MICRO=1 13903 13904 13905 13906 13907ac_config_files="$ac_config_files Makefile doc/doxygen.cfg misc/dvdread.pc src/dvdread/version.h" 13908 13909cat >confcache <<\_ACEOF 13910# This file is a shell script that caches the results of configure 13911# tests run on this system so they can be shared between configure 13912# scripts and configure runs, see configure's option --config-cache. 13913# It is not useful on other systems. If it contains results you don't 13914# want to keep, you may remove or edit it. 13915# 13916# config.status only pays attention to the cache file if you give it 13917# the --recheck option to rerun configure. 13918# 13919# `ac_cv_env_foo' variables (set or unset) will be overridden when 13920# loading this file, other *unset* `ac_cv_foo' will be assigned the 13921# following values. 13922 13923_ACEOF 13924 13925# The following way of writing the cache mishandles newlines in values, 13926# but we know of no workaround that is simple, portable, and efficient. 13927# So, we kill variables containing newlines. 13928# Ultrix sh set writes to stderr and can't be redirected directly, 13929# and sets the high bit in the cache file unless we assign to the vars. 13930( 13931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13932 eval ac_val=\$$ac_var 13933 case $ac_val in #( 13934 *${as_nl}*) 13935 case $ac_var in #( 13936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13938 esac 13939 case $ac_var in #( 13940 _ | IFS | as_nl) ;; #( 13941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13942 *) { eval $ac_var=; unset $ac_var;} ;; 13943 esac ;; 13944 esac 13945 done 13946 13947 (set) 2>&1 | 13948 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13949 *${as_nl}ac_space=\ *) 13950 # `set' does not quote correctly, so add quotes: double-quote 13951 # substitution turns \\\\ into \\, and sed turns \\ into \. 13952 sed -n \ 13953 "s/'/'\\\\''/g; 13954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13955 ;; #( 13956 *) 13957 # `set' quotes correctly as required by POSIX, so do not add quotes. 13958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13959 ;; 13960 esac | 13961 sort 13962) | 13963 sed ' 13964 /^ac_cv_env_/b end 13965 t clear 13966 :clear 13967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13968 t end 13969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13970 :end' >>confcache 13971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13972 if test -w "$cache_file"; then 13973 if test "x$cache_file" != "x/dev/null"; then 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13975$as_echo "$as_me: updating cache $cache_file" >&6;} 13976 if test ! -f "$cache_file" || test -h "$cache_file"; then 13977 cat confcache >"$cache_file" 13978 else 13979 case $cache_file in #( 13980 */* | ?:*) 13981 mv -f confcache "$cache_file"$$ && 13982 mv -f "$cache_file"$$ "$cache_file" ;; #( 13983 *) 13984 mv -f confcache "$cache_file" ;; 13985 esac 13986 fi 13987 fi 13988 else 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13990$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13991 fi 13992fi 13993rm -f confcache 13994 13995test "x$prefix" = xNONE && prefix=$ac_default_prefix 13996# Let make expand exec_prefix. 13997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13998 13999DEFS=-DHAVE_CONFIG_H 14000 14001ac_libobjs= 14002ac_ltlibobjs= 14003U= 14004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14005 # 1. Remove the extension, and $U if already installed. 14006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14009 # will be set to the directory where LIBOBJS objects are built. 14010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14012done 14013LIBOBJS=$ac_libobjs 14014 14015LTLIBOBJS=$ac_ltlibobjs 14016 14017 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14019$as_echo_n "checking that generated files are newer than configure... " >&6; } 14020 if test -n "$am_sleep_pid"; then 14021 # Hide warnings about reused PIDs. 14022 wait $am_sleep_pid 2>/dev/null 14023 fi 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14025$as_echo "done" >&6; } 14026 if test -n "$EXEEXT"; then 14027 am__EXEEXT_TRUE= 14028 am__EXEEXT_FALSE='#' 14029else 14030 am__EXEEXT_TRUE='#' 14031 am__EXEEXT_FALSE= 14032fi 14033 14034if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14035 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14036Usually this means the macro was only invoked conditionally." "$LINENO" 5 14037fi 14038if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14039 as_fn_error $? "conditional \"AMDEP\" was never defined. 14040Usually this means the macro was only invoked conditionally." "$LINENO" 5 14041fi 14042if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14043 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14044Usually this means the macro was only invoked conditionally." "$LINENO" 5 14045fi 14046if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14047 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14048Usually this means the macro was only invoked conditionally." "$LINENO" 5 14049fi 14050 14051if test -z "${APIDOC_TRUE}" && test -z "${APIDOC_FALSE}"; then 14052 as_fn_error $? "conditional \"APIDOC\" was never defined. 14053Usually this means the macro was only invoked conditionally." "$LINENO" 5 14054fi 14055 14056: "${CONFIG_STATUS=./config.status}" 14057ac_write_fail=0 14058ac_clean_files_save=$ac_clean_files 14059ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14061$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14062as_write_fail=0 14063cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14064#! $SHELL 14065# Generated by $as_me. 14066# Run this file to recreate the current configuration. 14067# Compiler output produced by configure, useful for debugging 14068# configure, is in config.log if it exists. 14069 14070debug=false 14071ac_cs_recheck=false 14072ac_cs_silent=false 14073 14074SHELL=\${CONFIG_SHELL-$SHELL} 14075export SHELL 14076_ASEOF 14077cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14078## -------------------- ## 14079## M4sh Initialization. ## 14080## -------------------- ## 14081 14082# Be more Bourne compatible 14083DUALCASE=1; export DUALCASE # for MKS sh 14084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14085 emulate sh 14086 NULLCMD=: 14087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14088 # is contrary to our usage. Disable this feature. 14089 alias -g '${1+"$@"}'='"$@"' 14090 setopt NO_GLOB_SUBST 14091else 14092 case `(set -o) 2>/dev/null` in #( 14093 *posix*) : 14094 set -o posix ;; #( 14095 *) : 14096 ;; 14097esac 14098fi 14099 14100 14101as_nl=' 14102' 14103export as_nl 14104# Printing a long string crashes Solaris 7 /usr/bin/printf. 14105as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14108# Prefer a ksh shell builtin over an external printf program on Solaris, 14109# but without wasting forks for bash or zsh. 14110if test -z "$BASH_VERSION$ZSH_VERSION" \ 14111 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14112 as_echo='print -r --' 14113 as_echo_n='print -rn --' 14114elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14115 as_echo='printf %s\n' 14116 as_echo_n='printf %s' 14117else 14118 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14119 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14120 as_echo_n='/usr/ucb/echo -n' 14121 else 14122 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14123 as_echo_n_body='eval 14124 arg=$1; 14125 case $arg in #( 14126 *"$as_nl"*) 14127 expr "X$arg" : "X\\(.*\\)$as_nl"; 14128 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14129 esac; 14130 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14131 ' 14132 export as_echo_n_body 14133 as_echo_n='sh -c $as_echo_n_body as_echo' 14134 fi 14135 export as_echo_body 14136 as_echo='sh -c $as_echo_body as_echo' 14137fi 14138 14139# The user is always right. 14140if test "${PATH_SEPARATOR+set}" != set; then 14141 PATH_SEPARATOR=: 14142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14144 PATH_SEPARATOR=';' 14145 } 14146fi 14147 14148 14149# IFS 14150# We need space, tab and new line, in precisely that order. Quoting is 14151# there to prevent editors from complaining about space-tab. 14152# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14153# splitting by setting IFS to empty value.) 14154IFS=" "" $as_nl" 14155 14156# Find who we are. Look in the path if we contain no directory separator. 14157as_myself= 14158case $0 in #(( 14159 *[\\/]* ) as_myself=$0 ;; 14160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14161for as_dir in $PATH 14162do 14163 IFS=$as_save_IFS 14164 test -z "$as_dir" && as_dir=. 14165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14166 done 14167IFS=$as_save_IFS 14168 14169 ;; 14170esac 14171# We did not find ourselves, most probably we were run as `sh COMMAND' 14172# in which case we are not to be found in the path. 14173if test "x$as_myself" = x; then 14174 as_myself=$0 14175fi 14176if test ! -f "$as_myself"; then 14177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14178 exit 1 14179fi 14180 14181# Unset variables that we do not need and which cause bugs (e.g. in 14182# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14183# suppresses any "Segmentation fault" message there. '((' could 14184# trigger a bug in pdksh 5.2.14. 14185for as_var in BASH_ENV ENV MAIL MAILPATH 14186do eval test x\${$as_var+set} = xset \ 14187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14188done 14189PS1='$ ' 14190PS2='> ' 14191PS4='+ ' 14192 14193# NLS nuisances. 14194LC_ALL=C 14195export LC_ALL 14196LANGUAGE=C 14197export LANGUAGE 14198 14199# CDPATH. 14200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14201 14202 14203# as_fn_error STATUS ERROR [LINENO LOG_FD] 14204# ---------------------------------------- 14205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14207# script with STATUS, using 1 if that was 0. 14208as_fn_error () 14209{ 14210 as_status=$1; test $as_status -eq 0 && as_status=1 14211 if test "$4"; then 14212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14214 fi 14215 $as_echo "$as_me: error: $2" >&2 14216 as_fn_exit $as_status 14217} # as_fn_error 14218 14219 14220# as_fn_set_status STATUS 14221# ----------------------- 14222# Set $? to STATUS, without forking. 14223as_fn_set_status () 14224{ 14225 return $1 14226} # as_fn_set_status 14227 14228# as_fn_exit STATUS 14229# ----------------- 14230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14231as_fn_exit () 14232{ 14233 set +e 14234 as_fn_set_status $1 14235 exit $1 14236} # as_fn_exit 14237 14238# as_fn_unset VAR 14239# --------------- 14240# Portably unset VAR. 14241as_fn_unset () 14242{ 14243 { eval $1=; unset $1;} 14244} 14245as_unset=as_fn_unset 14246# as_fn_append VAR VALUE 14247# ---------------------- 14248# Append the text in VALUE to the end of the definition contained in VAR. Take 14249# advantage of any shell optimizations that allow amortized linear growth over 14250# repeated appends, instead of the typical quadratic growth present in naive 14251# implementations. 14252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14253 eval 'as_fn_append () 14254 { 14255 eval $1+=\$2 14256 }' 14257else 14258 as_fn_append () 14259 { 14260 eval $1=\$$1\$2 14261 } 14262fi # as_fn_append 14263 14264# as_fn_arith ARG... 14265# ------------------ 14266# Perform arithmetic evaluation on the ARGs, and store the result in the 14267# global $as_val. Take advantage of shells that can avoid forks. The arguments 14268# must be portable across $(()) and expr. 14269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14270 eval 'as_fn_arith () 14271 { 14272 as_val=$(( $* )) 14273 }' 14274else 14275 as_fn_arith () 14276 { 14277 as_val=`expr "$@" || test $? -eq 1` 14278 } 14279fi # as_fn_arith 14280 14281 14282if expr a : '\(a\)' >/dev/null 2>&1 && 14283 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14284 as_expr=expr 14285else 14286 as_expr=false 14287fi 14288 14289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14290 as_basename=basename 14291else 14292 as_basename=false 14293fi 14294 14295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14296 as_dirname=dirname 14297else 14298 as_dirname=false 14299fi 14300 14301as_me=`$as_basename -- "$0" || 14302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14303 X"$0" : 'X\(//\)$' \| \ 14304 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14305$as_echo X/"$0" | 14306 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14307 s//\1/ 14308 q 14309 } 14310 /^X\/\(\/\/\)$/{ 14311 s//\1/ 14312 q 14313 } 14314 /^X\/\(\/\).*/{ 14315 s//\1/ 14316 q 14317 } 14318 s/.*/./; q'` 14319 14320# Avoid depending upon Character Ranges. 14321as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14323as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14324as_cr_digits='0123456789' 14325as_cr_alnum=$as_cr_Letters$as_cr_digits 14326 14327ECHO_C= ECHO_N= ECHO_T= 14328case `echo -n x` in #((((( 14329-n*) 14330 case `echo 'xy\c'` in 14331 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14332 xy) ECHO_C='\c';; 14333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14334 ECHO_T=' ';; 14335 esac;; 14336*) 14337 ECHO_N='-n';; 14338esac 14339 14340rm -f conf$$ conf$$.exe conf$$.file 14341if test -d conf$$.dir; then 14342 rm -f conf$$.dir/conf$$.file 14343else 14344 rm -f conf$$.dir 14345 mkdir conf$$.dir 2>/dev/null 14346fi 14347if (echo >conf$$.file) 2>/dev/null; then 14348 if ln -s conf$$.file conf$$ 2>/dev/null; then 14349 as_ln_s='ln -s' 14350 # ... but there are two gotchas: 14351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14353 # In both cases, we have to default to `cp -pR'. 14354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14355 as_ln_s='cp -pR' 14356 elif ln conf$$.file conf$$ 2>/dev/null; then 14357 as_ln_s=ln 14358 else 14359 as_ln_s='cp -pR' 14360 fi 14361else 14362 as_ln_s='cp -pR' 14363fi 14364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14365rmdir conf$$.dir 2>/dev/null 14366 14367 14368# as_fn_mkdir_p 14369# ------------- 14370# Create "$as_dir" as a directory, including parents if necessary. 14371as_fn_mkdir_p () 14372{ 14373 14374 case $as_dir in #( 14375 -*) as_dir=./$as_dir;; 14376 esac 14377 test -d "$as_dir" || eval $as_mkdir_p || { 14378 as_dirs= 14379 while :; do 14380 case $as_dir in #( 14381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14382 *) as_qdir=$as_dir;; 14383 esac 14384 as_dirs="'$as_qdir' $as_dirs" 14385 as_dir=`$as_dirname -- "$as_dir" || 14386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14387 X"$as_dir" : 'X\(//\)[^/]' \| \ 14388 X"$as_dir" : 'X\(//\)$' \| \ 14389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14390$as_echo X"$as_dir" | 14391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14392 s//\1/ 14393 q 14394 } 14395 /^X\(\/\/\)[^/].*/{ 14396 s//\1/ 14397 q 14398 } 14399 /^X\(\/\/\)$/{ 14400 s//\1/ 14401 q 14402 } 14403 /^X\(\/\).*/{ 14404 s//\1/ 14405 q 14406 } 14407 s/.*/./; q'` 14408 test -d "$as_dir" && break 14409 done 14410 test -z "$as_dirs" || eval "mkdir $as_dirs" 14411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14412 14413 14414} # as_fn_mkdir_p 14415if mkdir -p . 2>/dev/null; then 14416 as_mkdir_p='mkdir -p "$as_dir"' 14417else 14418 test -d ./-p && rmdir ./-p 14419 as_mkdir_p=false 14420fi 14421 14422 14423# as_fn_executable_p FILE 14424# ----------------------- 14425# Test if FILE is an executable regular file. 14426as_fn_executable_p () 14427{ 14428 test -f "$1" && test -x "$1" 14429} # as_fn_executable_p 14430as_test_x='test -x' 14431as_executable_p=as_fn_executable_p 14432 14433# Sed expression to map a string onto a valid CPP name. 14434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14435 14436# Sed expression to map a string onto a valid variable name. 14437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14438 14439 14440exec 6>&1 14441## ----------------------------------- ## 14442## Main body of $CONFIG_STATUS script. ## 14443## ----------------------------------- ## 14444_ASEOF 14445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14446 14447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14448# Save the log message, to keep $0 and so on meaningful, and to 14449# report actual input values of CONFIG_FILES etc. instead of their 14450# values after options handling. 14451ac_log=" 14452This file was extended by libdvdread $as_me 6.1.1, which was 14453generated by GNU Autoconf 2.69. Invocation command line was 14454 14455 CONFIG_FILES = $CONFIG_FILES 14456 CONFIG_HEADERS = $CONFIG_HEADERS 14457 CONFIG_LINKS = $CONFIG_LINKS 14458 CONFIG_COMMANDS = $CONFIG_COMMANDS 14459 $ $0 $@ 14460 14461on `(hostname || uname -n) 2>/dev/null | sed 1q` 14462" 14463 14464_ACEOF 14465 14466case $ac_config_files in *" 14467"*) set x $ac_config_files; shift; ac_config_files=$*;; 14468esac 14469 14470case $ac_config_headers in *" 14471"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14472esac 14473 14474 14475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14476# Files that config.status was made for. 14477config_files="$ac_config_files" 14478config_headers="$ac_config_headers" 14479config_commands="$ac_config_commands" 14480 14481_ACEOF 14482 14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14484ac_cs_usage="\ 14485\`$as_me' instantiates files and other configuration actions 14486from templates according to the current configuration. Unless the files 14487and actions are specified as TAGs, all are instantiated by default. 14488 14489Usage: $0 [OPTION]... [TAG]... 14490 14491 -h, --help print this help, then exit 14492 -V, --version print version number and configuration settings, then exit 14493 --config print configuration, then exit 14494 -q, --quiet, --silent 14495 do not print progress messages 14496 -d, --debug don't remove temporary files 14497 --recheck update $as_me by reconfiguring in the same conditions 14498 --file=FILE[:TEMPLATE] 14499 instantiate the configuration file FILE 14500 --header=FILE[:TEMPLATE] 14501 instantiate the configuration header FILE 14502 14503Configuration files: 14504$config_files 14505 14506Configuration headers: 14507$config_headers 14508 14509Configuration commands: 14510$config_commands 14511 14512Report bugs to the package provider." 14513 14514_ACEOF 14515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14516ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14517ac_cs_version="\\ 14518libdvdread config.status 6.1.1 14519configured by $0, generated by GNU Autoconf 2.69, 14520 with options \\"\$ac_cs_config\\" 14521 14522Copyright (C) 2012 Free Software Foundation, Inc. 14523This config.status script is free software; the Free Software Foundation 14524gives unlimited permission to copy, distribute and modify it." 14525 14526ac_pwd='$ac_pwd' 14527srcdir='$srcdir' 14528INSTALL='$INSTALL' 14529MKDIR_P='$MKDIR_P' 14530AWK='$AWK' 14531test -n "\$AWK" || AWK=awk 14532_ACEOF 14533 14534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14535# The default lists apply if the user does not specify any file. 14536ac_need_defaults=: 14537while test $# != 0 14538do 14539 case $1 in 14540 --*=?*) 14541 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14543 ac_shift=: 14544 ;; 14545 --*=) 14546 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14547 ac_optarg= 14548 ac_shift=: 14549 ;; 14550 *) 14551 ac_option=$1 14552 ac_optarg=$2 14553 ac_shift=shift 14554 ;; 14555 esac 14556 14557 case $ac_option in 14558 # Handling of the options. 14559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14560 ac_cs_recheck=: ;; 14561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14562 $as_echo "$ac_cs_version"; exit ;; 14563 --config | --confi | --conf | --con | --co | --c ) 14564 $as_echo "$ac_cs_config"; exit ;; 14565 --debug | --debu | --deb | --de | --d | -d ) 14566 debug=: ;; 14567 --file | --fil | --fi | --f ) 14568 $ac_shift 14569 case $ac_optarg in 14570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14571 '') as_fn_error $? "missing file argument" ;; 14572 esac 14573 as_fn_append CONFIG_FILES " '$ac_optarg'" 14574 ac_need_defaults=false;; 14575 --header | --heade | --head | --hea ) 14576 $ac_shift 14577 case $ac_optarg in 14578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14579 esac 14580 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14581 ac_need_defaults=false;; 14582 --he | --h) 14583 # Conflict between --help and --header 14584 as_fn_error $? "ambiguous option: \`$1' 14585Try \`$0 --help' for more information.";; 14586 --help | --hel | -h ) 14587 $as_echo "$ac_cs_usage"; exit ;; 14588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14589 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14590 ac_cs_silent=: ;; 14591 14592 # This is an error. 14593 -*) as_fn_error $? "unrecognized option: \`$1' 14594Try \`$0 --help' for more information." ;; 14595 14596 *) as_fn_append ac_config_targets " $1" 14597 ac_need_defaults=false ;; 14598 14599 esac 14600 shift 14601done 14602 14603ac_configure_extra_args= 14604 14605if $ac_cs_silent; then 14606 exec 6>/dev/null 14607 ac_configure_extra_args="$ac_configure_extra_args --silent" 14608fi 14609 14610_ACEOF 14611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14612if \$ac_cs_recheck; then 14613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14614 shift 14615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14616 CONFIG_SHELL='$SHELL' 14617 export CONFIG_SHELL 14618 exec "\$@" 14619fi 14620 14621_ACEOF 14622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14623exec 5>>config.log 14624{ 14625 echo 14626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14627## Running $as_me. ## 14628_ASBOX 14629 $as_echo "$ac_log" 14630} >&5 14631 14632_ACEOF 14633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14634# 14635# INIT-COMMANDS 14636# 14637AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14638 14639 14640# The HP-UX ksh and POSIX shell print the target directory to stdout 14641# if CDPATH is set. 14642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14643 14644sed_quote_subst='$sed_quote_subst' 14645double_quote_subst='$double_quote_subst' 14646delay_variable_subst='$delay_variable_subst' 14647macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14648macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14649enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14650enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14651pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14652enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14653shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14654SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14655ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14656PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14657host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14658host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14659host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14660build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14661build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14662build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14663SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14664Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14665GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14666EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14667FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14668LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14669NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14670LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14671max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14672ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14673exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14674lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14675lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14676lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14677lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14678lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14679reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14680reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14681OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14682deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14683file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14684file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14685want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14686DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14687sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14688AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14689AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14690archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14691STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14692RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14693old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14694old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14695old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14696lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14697CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14698CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14699compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14700GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14701lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14702lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14703lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14704lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14705lt_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"`' 14706lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14707nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14708lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14709lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14710objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14711MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14712lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14713lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14714lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14715lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14716lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14717need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14718MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14719DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14720NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14721LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14722OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14723OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14724libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14725shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14726extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14727archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14728enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14729export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14730whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14731compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14732old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14733old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14734archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14735archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14736module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14737module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14738with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14739allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14740no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14741hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14742hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14743hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14744hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14745hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14746hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14747hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14748inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14749link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14750always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14751export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14752exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14753include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14754prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14755postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14756file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14757variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14758need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14759need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14760version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14761runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14762shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14763shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14764libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14765library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14766soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14767install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14768postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14769postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14770finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14771finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14772hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14773sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14774configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14775configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14776hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14777enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14778enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14779enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14780old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14781striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14782 14783LTCC='$LTCC' 14784LTCFLAGS='$LTCFLAGS' 14785compiler='$compiler_DEFAULT' 14786 14787# A function that is used when there is no print builtin or printf. 14788func_fallback_echo () 14789{ 14790 eval 'cat <<_LTECHO_EOF 14791\$1 14792_LTECHO_EOF' 14793} 14794 14795# Quote evaled strings. 14796for var in SHELL \ 14797ECHO \ 14798PATH_SEPARATOR \ 14799SED \ 14800GREP \ 14801EGREP \ 14802FGREP \ 14803LD \ 14804NM \ 14805LN_S \ 14806lt_SP2NL \ 14807lt_NL2SP \ 14808reload_flag \ 14809OBJDUMP \ 14810deplibs_check_method \ 14811file_magic_cmd \ 14812file_magic_glob \ 14813want_nocaseglob \ 14814DLLTOOL \ 14815sharedlib_from_linklib_cmd \ 14816AR \ 14817AR_FLAGS \ 14818archiver_list_spec \ 14819STRIP \ 14820RANLIB \ 14821CC \ 14822CFLAGS \ 14823compiler \ 14824lt_cv_sys_global_symbol_pipe \ 14825lt_cv_sys_global_symbol_to_cdecl \ 14826lt_cv_sys_global_symbol_to_import \ 14827lt_cv_sys_global_symbol_to_c_name_address \ 14828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14829lt_cv_nm_interface \ 14830nm_file_list_spec \ 14831lt_cv_truncate_bin \ 14832lt_prog_compiler_no_builtin_flag \ 14833lt_prog_compiler_pic \ 14834lt_prog_compiler_wl \ 14835lt_prog_compiler_static \ 14836lt_cv_prog_compiler_c_o \ 14837need_locks \ 14838MANIFEST_TOOL \ 14839DSYMUTIL \ 14840NMEDIT \ 14841LIPO \ 14842OTOOL \ 14843OTOOL64 \ 14844shrext_cmds \ 14845export_dynamic_flag_spec \ 14846whole_archive_flag_spec \ 14847compiler_needs_object \ 14848with_gnu_ld \ 14849allow_undefined_flag \ 14850no_undefined_flag \ 14851hardcode_libdir_flag_spec \ 14852hardcode_libdir_separator \ 14853exclude_expsyms \ 14854include_expsyms \ 14855file_list_spec \ 14856variables_saved_for_relink \ 14857libname_spec \ 14858library_names_spec \ 14859soname_spec \ 14860install_override_mode \ 14861finish_eval \ 14862old_striplib \ 14863striplib; do 14864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14865 *[\\\\\\\`\\"\\\$]*) 14866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14867 ;; 14868 *) 14869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14870 ;; 14871 esac 14872done 14873 14874# Double-quote double-evaled strings. 14875for var in reload_cmds \ 14876old_postinstall_cmds \ 14877old_postuninstall_cmds \ 14878old_archive_cmds \ 14879extract_expsyms_cmds \ 14880old_archive_from_new_cmds \ 14881old_archive_from_expsyms_cmds \ 14882archive_cmds \ 14883archive_expsym_cmds \ 14884module_cmds \ 14885module_expsym_cmds \ 14886export_symbols_cmds \ 14887prelink_cmds \ 14888postlink_cmds \ 14889postinstall_cmds \ 14890postuninstall_cmds \ 14891finish_cmds \ 14892sys_lib_search_path_spec \ 14893configure_time_dlsearch_path \ 14894configure_time_lt_sys_library_path; do 14895 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14896 *[\\\\\\\`\\"\\\$]*) 14897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14898 ;; 14899 *) 14900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14901 ;; 14902 esac 14903done 14904 14905ac_aux_dir='$ac_aux_dir' 14906 14907# See if we are running on zsh, and set the options that allow our 14908# commands through without removal of \ escapes INIT. 14909if test -n "\${ZSH_VERSION+set}"; then 14910 setopt NO_GLOB_SUBST 14911fi 14912 14913 14914 PACKAGE='$PACKAGE' 14915 VERSION='$VERSION' 14916 RM='$RM' 14917 ofile='$ofile' 14918 14919 14920 14921 14922_ACEOF 14923 14924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14925 14926# Handling of arguments. 14927for ac_config_target in $ac_config_targets 14928do 14929 case $ac_config_target in 14930 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14934 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;; 14935 "misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;; 14936 "src/dvdread/version.h") CONFIG_FILES="$CONFIG_FILES src/dvdread/version.h" ;; 14937 14938 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14939 esac 14940done 14941 14942 14943# If the user did not use the arguments to specify the items to instantiate, 14944# then the envvar interface is used. Set only those that are not. 14945# We use the long form for the default assignment because of an extremely 14946# bizarre bug on SunOS 4.1.3. 14947if $ac_need_defaults; then 14948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14951fi 14952 14953# Have a temporary directory for convenience. Make it in the build tree 14954# simply because there is no reason against having it here, and in addition, 14955# creating and moving files from /tmp can sometimes cause problems. 14956# Hook for its removal unless debugging. 14957# Note that there is a small window in which the directory will not be cleaned: 14958# after its creation but before its name has been assigned to `$tmp'. 14959$debug || 14960{ 14961 tmp= ac_tmp= 14962 trap 'exit_status=$? 14963 : "${ac_tmp:=$tmp}" 14964 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14965' 0 14966 trap 'as_fn_exit 1' 1 2 13 15 14967} 14968# Create a (secure) tmp directory for tmp files. 14969 14970{ 14971 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14972 test -d "$tmp" 14973} || 14974{ 14975 tmp=./conf$$-$RANDOM 14976 (umask 077 && mkdir "$tmp") 14977} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14978ac_tmp=$tmp 14979 14980# Set up the scripts for CONFIG_FILES section. 14981# No need to generate them if there are no CONFIG_FILES. 14982# This happens for instance with `./config.status config.h'. 14983if test -n "$CONFIG_FILES"; then 14984 14985 14986ac_cr=`echo X | tr X '\015'` 14987# On cygwin, bash can eat \r inside `` if the user requested igncr. 14988# But we know of no other shell where ac_cr would be empty at this 14989# point, so we can use a bashism as a fallback. 14990if test "x$ac_cr" = x; then 14991 eval ac_cr=\$\'\\r\' 14992fi 14993ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14994if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14995 ac_cs_awk_cr='\\r' 14996else 14997 ac_cs_awk_cr=$ac_cr 14998fi 14999 15000echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15001_ACEOF 15002 15003 15004{ 15005 echo "cat >conf$$subs.awk <<_ACEOF" && 15006 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15007 echo "_ACEOF" 15008} >conf$$subs.sh || 15009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15010ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15011ac_delim='%!_!# ' 15012for ac_last_try in false false false false false :; do 15013 . ./conf$$subs.sh || 15014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15015 15016 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15017 if test $ac_delim_n = $ac_delim_num; then 15018 break 15019 elif $ac_last_try; then 15020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15021 else 15022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15023 fi 15024done 15025rm -f conf$$subs.sh 15026 15027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15028cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15029_ACEOF 15030sed -n ' 15031h 15032s/^/S["/; s/!.*/"]=/ 15033p 15034g 15035s/^[^!]*!// 15036:repl 15037t repl 15038s/'"$ac_delim"'$// 15039t delim 15040:nl 15041h 15042s/\(.\{148\}\)..*/\1/ 15043t more1 15044s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15045p 15046n 15047b repl 15048:more1 15049s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15050p 15051g 15052s/.\{148\}// 15053t nl 15054:delim 15055h 15056s/\(.\{148\}\)..*/\1/ 15057t more2 15058s/["\\]/\\&/g; s/^/"/; s/$/"/ 15059p 15060b 15061:more2 15062s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15063p 15064g 15065s/.\{148\}// 15066t delim 15067' <conf$$subs.awk | sed ' 15068/^[^""]/{ 15069 N 15070 s/\n// 15071} 15072' >>$CONFIG_STATUS || ac_write_fail=1 15073rm -f conf$$subs.awk 15074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15075_ACAWK 15076cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15077 for (key in S) S_is_set[key] = 1 15078 FS = "" 15079 15080} 15081{ 15082 line = $ 0 15083 nfields = split(line, field, "@") 15084 substed = 0 15085 len = length(field[1]) 15086 for (i = 2; i < nfields; i++) { 15087 key = field[i] 15088 keylen = length(key) 15089 if (S_is_set[key]) { 15090 value = S[key] 15091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15092 len += length(value) + length(field[++i]) 15093 substed = 1 15094 } else 15095 len += 1 + keylen 15096 } 15097 15098 print line 15099} 15100 15101_ACAWK 15102_ACEOF 15103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15104if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15105 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15106else 15107 cat 15108fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15109 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15110_ACEOF 15111 15112# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15113# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15114# trailing colons and then remove the whole line if VPATH becomes empty 15115# (actually we leave an empty line to preserve line numbers). 15116if test "x$srcdir" = x.; then 15117 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15118h 15119s/// 15120s/^/:/ 15121s/[ ]*$/:/ 15122s/:\$(srcdir):/:/g 15123s/:\${srcdir}:/:/g 15124s/:@srcdir@:/:/g 15125s/^:*// 15126s/:*$// 15127x 15128s/\(=[ ]*\).*/\1/ 15129G 15130s/\n// 15131s/^[^=]*=[ ]*$// 15132}' 15133fi 15134 15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15136fi # test -n "$CONFIG_FILES" 15137 15138# Set up the scripts for CONFIG_HEADERS section. 15139# No need to generate them if there are no CONFIG_HEADERS. 15140# This happens for instance with `./config.status Makefile'. 15141if test -n "$CONFIG_HEADERS"; then 15142cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15143BEGIN { 15144_ACEOF 15145 15146# Transform confdefs.h into an awk script `defines.awk', embedded as 15147# here-document in config.status, that substitutes the proper values into 15148# config.h.in to produce config.h. 15149 15150# Create a delimiter string that does not exist in confdefs.h, to ease 15151# handling of long lines. 15152ac_delim='%!_!# ' 15153for ac_last_try in false false :; do 15154 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15155 if test -z "$ac_tt"; then 15156 break 15157 elif $ac_last_try; then 15158 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15159 else 15160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15161 fi 15162done 15163 15164# For the awk script, D is an array of macro values keyed by name, 15165# likewise P contains macro parameters if any. Preserve backslash 15166# newline sequences. 15167 15168ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15169sed -n ' 15170s/.\{148\}/&'"$ac_delim"'/g 15171t rset 15172:rset 15173s/^[ ]*#[ ]*define[ ][ ]*/ / 15174t def 15175d 15176:def 15177s/\\$// 15178t bsnl 15179s/["\\]/\\&/g 15180s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15181D["\1"]=" \3"/p 15182s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15183d 15184:bsnl 15185s/["\\]/\\&/g 15186s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15187D["\1"]=" \3\\\\\\n"\\/p 15188t cont 15189s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15190t cont 15191d 15192:cont 15193n 15194s/.\{148\}/&'"$ac_delim"'/g 15195t clear 15196:clear 15197s/\\$// 15198t bsnlc 15199s/["\\]/\\&/g; s/^/"/; s/$/"/p 15200d 15201:bsnlc 15202s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15203b cont 15204' <confdefs.h | sed ' 15205s/'"$ac_delim"'/"\\\ 15206"/g' >>$CONFIG_STATUS || ac_write_fail=1 15207 15208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15209 for (key in D) D_is_set[key] = 1 15210 FS = "" 15211} 15212/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15213 line = \$ 0 15214 split(line, arg, " ") 15215 if (arg[1] == "#") { 15216 defundef = arg[2] 15217 mac1 = arg[3] 15218 } else { 15219 defundef = substr(arg[1], 2) 15220 mac1 = arg[2] 15221 } 15222 split(mac1, mac2, "(") #) 15223 macro = mac2[1] 15224 prefix = substr(line, 1, index(line, defundef) - 1) 15225 if (D_is_set[macro]) { 15226 # Preserve the white space surrounding the "#". 15227 print prefix "define", macro P[macro] D[macro] 15228 next 15229 } else { 15230 # Replace #undef with comments. This is necessary, for example, 15231 # in the case of _POSIX_SOURCE, which is predefined and required 15232 # on some systems where configure will not decide to define it. 15233 if (defundef == "undef") { 15234 print "/*", prefix defundef, macro, "*/" 15235 next 15236 } 15237 } 15238} 15239{ print } 15240_ACAWK 15241_ACEOF 15242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15243 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15244fi # test -n "$CONFIG_HEADERS" 15245 15246 15247eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15248shift 15249for ac_tag 15250do 15251 case $ac_tag in 15252 :[FHLC]) ac_mode=$ac_tag; continue;; 15253 esac 15254 case $ac_mode$ac_tag in 15255 :[FHL]*:*);; 15256 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15257 :[FH]-) ac_tag=-:-;; 15258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15259 esac 15260 ac_save_IFS=$IFS 15261 IFS=: 15262 set x $ac_tag 15263 IFS=$ac_save_IFS 15264 shift 15265 ac_file=$1 15266 shift 15267 15268 case $ac_mode in 15269 :L) ac_source=$1;; 15270 :[FH]) 15271 ac_file_inputs= 15272 for ac_f 15273 do 15274 case $ac_f in 15275 -) ac_f="$ac_tmp/stdin";; 15276 *) # Look for the file first in the build tree, then in the source tree 15277 # (if the path is not absolute). The absolute path cannot be DOS-style, 15278 # because $ac_f cannot contain `:'. 15279 test -f "$ac_f" || 15280 case $ac_f in 15281 [\\/$]*) false;; 15282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15283 esac || 15284 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15285 esac 15286 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15287 as_fn_append ac_file_inputs " '$ac_f'" 15288 done 15289 15290 # Let's still pretend it is `configure' which instantiates (i.e., don't 15291 # use $as_me), people would be surprised to read: 15292 # /* config.h. Generated by config.status. */ 15293 configure_input='Generated from '` 15294 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15295 `' by configure.' 15296 if test x"$ac_file" != x-; then 15297 configure_input="$ac_file. $configure_input" 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15299$as_echo "$as_me: creating $ac_file" >&6;} 15300 fi 15301 # Neutralize special characters interpreted by sed in replacement strings. 15302 case $configure_input in #( 15303 *\&* | *\|* | *\\* ) 15304 ac_sed_conf_input=`$as_echo "$configure_input" | 15305 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15306 *) ac_sed_conf_input=$configure_input;; 15307 esac 15308 15309 case $ac_tag in 15310 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15312 esac 15313 ;; 15314 esac 15315 15316 ac_dir=`$as_dirname -- "$ac_file" || 15317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15318 X"$ac_file" : 'X\(//\)[^/]' \| \ 15319 X"$ac_file" : 'X\(//\)$' \| \ 15320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15321$as_echo X"$ac_file" | 15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15323 s//\1/ 15324 q 15325 } 15326 /^X\(\/\/\)[^/].*/{ 15327 s//\1/ 15328 q 15329 } 15330 /^X\(\/\/\)$/{ 15331 s//\1/ 15332 q 15333 } 15334 /^X\(\/\).*/{ 15335 s//\1/ 15336 q 15337 } 15338 s/.*/./; q'` 15339 as_dir="$ac_dir"; as_fn_mkdir_p 15340 ac_builddir=. 15341 15342case "$ac_dir" in 15343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15344*) 15345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15346 # A ".." for each directory in $ac_dir_suffix. 15347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15348 case $ac_top_builddir_sub in 15349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15351 esac ;; 15352esac 15353ac_abs_top_builddir=$ac_pwd 15354ac_abs_builddir=$ac_pwd$ac_dir_suffix 15355# for backward compatibility: 15356ac_top_builddir=$ac_top_build_prefix 15357 15358case $srcdir in 15359 .) # We are building in place. 15360 ac_srcdir=. 15361 ac_top_srcdir=$ac_top_builddir_sub 15362 ac_abs_top_srcdir=$ac_pwd ;; 15363 [\\/]* | ?:[\\/]* ) # Absolute name. 15364 ac_srcdir=$srcdir$ac_dir_suffix; 15365 ac_top_srcdir=$srcdir 15366 ac_abs_top_srcdir=$srcdir ;; 15367 *) # Relative name. 15368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15369 ac_top_srcdir=$ac_top_build_prefix$srcdir 15370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15371esac 15372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15373 15374 15375 case $ac_mode in 15376 :F) 15377 # 15378 # CONFIG_FILE 15379 # 15380 15381 case $INSTALL in 15382 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15383 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15384 esac 15385 ac_MKDIR_P=$MKDIR_P 15386 case $MKDIR_P in 15387 [\\/$]* | ?:[\\/]* ) ;; 15388 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15389 esac 15390_ACEOF 15391 15392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15393# If the template does not know about datarootdir, expand it. 15394# FIXME: This hack should be removed a few years after 2.60. 15395ac_datarootdir_hack=; ac_datarootdir_seen= 15396ac_sed_dataroot=' 15397/datarootdir/ { 15398 p 15399 q 15400} 15401/@datadir@/p 15402/@docdir@/p 15403/@infodir@/p 15404/@localedir@/p 15405/@mandir@/p' 15406case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15407*datarootdir*) ac_datarootdir_seen=yes;; 15408*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15410$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15411_ACEOF 15412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15413 ac_datarootdir_hack=' 15414 s&@datadir@&$datadir&g 15415 s&@docdir@&$docdir&g 15416 s&@infodir@&$infodir&g 15417 s&@localedir@&$localedir&g 15418 s&@mandir@&$mandir&g 15419 s&\\\${datarootdir}&$datarootdir&g' ;; 15420esac 15421_ACEOF 15422 15423# Neutralize VPATH when `$srcdir' = `.'. 15424# Shell code in configure.ac might set extrasub. 15425# FIXME: do we really want to maintain this feature? 15426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15427ac_sed_extra="$ac_vpsub 15428$extrasub 15429_ACEOF 15430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15431:t 15432/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15433s|@configure_input@|$ac_sed_conf_input|;t t 15434s&@top_builddir@&$ac_top_builddir_sub&;t t 15435s&@top_build_prefix@&$ac_top_build_prefix&;t t 15436s&@srcdir@&$ac_srcdir&;t t 15437s&@abs_srcdir@&$ac_abs_srcdir&;t t 15438s&@top_srcdir@&$ac_top_srcdir&;t t 15439s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15440s&@builddir@&$ac_builddir&;t t 15441s&@abs_builddir@&$ac_abs_builddir&;t t 15442s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15443s&@INSTALL@&$ac_INSTALL&;t t 15444s&@MKDIR_P@&$ac_MKDIR_P&;t t 15445$ac_datarootdir_hack 15446" 15447eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15448 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15449 15450test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15451 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15452 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15453 "$ac_tmp/out"`; test -z "$ac_out"; } && 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15455which seems to be undefined. Please make sure it is defined" >&5 15456$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15457which seems to be undefined. Please make sure it is defined" >&2;} 15458 15459 rm -f "$ac_tmp/stdin" 15460 case $ac_file in 15461 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15462 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15463 esac \ 15464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15465 ;; 15466 :H) 15467 # 15468 # CONFIG_HEADER 15469 # 15470 if test x"$ac_file" != x-; then 15471 { 15472 $as_echo "/* $configure_input */" \ 15473 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15474 } >"$ac_tmp/config.h" \ 15475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15476 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15477 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15478$as_echo "$as_me: $ac_file is unchanged" >&6;} 15479 else 15480 rm -f "$ac_file" 15481 mv "$ac_tmp/config.h" "$ac_file" \ 15482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15483 fi 15484 else 15485 $as_echo "/* $configure_input */" \ 15486 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15487 || as_fn_error $? "could not create -" "$LINENO" 5 15488 fi 15489# Compute "$ac_file"'s index in $config_headers. 15490_am_arg="$ac_file" 15491_am_stamp_count=1 15492for _am_header in $config_headers :; do 15493 case $_am_header in 15494 $_am_arg | $_am_arg:* ) 15495 break ;; 15496 * ) 15497 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15498 esac 15499done 15500echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15501$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15502 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15503 X"$_am_arg" : 'X\(//\)$' \| \ 15504 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15505$as_echo X"$_am_arg" | 15506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15507 s//\1/ 15508 q 15509 } 15510 /^X\(\/\/\)[^/].*/{ 15511 s//\1/ 15512 q 15513 } 15514 /^X\(\/\/\)$/{ 15515 s//\1/ 15516 q 15517 } 15518 /^X\(\/\).*/{ 15519 s//\1/ 15520 q 15521 } 15522 s/.*/./; q'`/stamp-h$_am_stamp_count 15523 ;; 15524 15525 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15526$as_echo "$as_me: executing $ac_file commands" >&6;} 15527 ;; 15528 esac 15529 15530 15531 case $ac_file$ac_mode in 15532 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15533 # Older Autoconf quotes --file arguments for eval, but not when files 15534 # are listed without --file. Let's play safe and only enable the eval 15535 # if we detect the quoting. 15536 # TODO: see whether this extra hack can be removed once we start 15537 # requiring Autoconf 2.70 or later. 15538 case $CONFIG_FILES in #( 15539 *\'*) : 15540 eval set x "$CONFIG_FILES" ;; #( 15541 *) : 15542 set x $CONFIG_FILES ;; #( 15543 *) : 15544 ;; 15545esac 15546 shift 15547 # Used to flag and report bootstrapping failures. 15548 am_rc=0 15549 for am_mf 15550 do 15551 # Strip MF so we end up with the name of the file. 15552 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15553 # Check whether this is an Automake generated Makefile which includes 15554 # dependency-tracking related rules and includes. 15555 # Grep'ing the whole file directly is not great: AIX grep has a line 15556 # limit of 2048, but all sed's we know have understand at least 4000. 15557 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15558 || continue 15559 am_dirpart=`$as_dirname -- "$am_mf" || 15560$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15561 X"$am_mf" : 'X\(//\)[^/]' \| \ 15562 X"$am_mf" : 'X\(//\)$' \| \ 15563 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15564$as_echo X"$am_mf" | 15565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15566 s//\1/ 15567 q 15568 } 15569 /^X\(\/\/\)[^/].*/{ 15570 s//\1/ 15571 q 15572 } 15573 /^X\(\/\/\)$/{ 15574 s//\1/ 15575 q 15576 } 15577 /^X\(\/\).*/{ 15578 s//\1/ 15579 q 15580 } 15581 s/.*/./; q'` 15582 am_filepart=`$as_basename -- "$am_mf" || 15583$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15584 X"$am_mf" : 'X\(//\)$' \| \ 15585 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15586$as_echo X/"$am_mf" | 15587 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15588 s//\1/ 15589 q 15590 } 15591 /^X\/\(\/\/\)$/{ 15592 s//\1/ 15593 q 15594 } 15595 /^X\/\(\/\).*/{ 15596 s//\1/ 15597 q 15598 } 15599 s/.*/./; q'` 15600 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15601 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15602 | $MAKE -f - am--depfiles" >&5 15603 (cd "$am_dirpart" \ 15604 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15605 | $MAKE -f - am--depfiles) >&5 2>&5 15606 ac_status=$? 15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15608 (exit $ac_status); } || am_rc=$? 15609 done 15610 if test $am_rc -ne 0; then 15611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15613as_fn_error $? "Something went wrong bootstrapping makefile fragments 15614 for automatic dependency tracking. Try re-running configure with the 15615 '--disable-dependency-tracking' option to at least be able to build 15616 the package (albeit without support for automatic dependency tracking). 15617See \`config.log' for more details" "$LINENO" 5; } 15618 fi 15619 { am_dirpart=; unset am_dirpart;} 15620 { am_filepart=; unset am_filepart;} 15621 { am_mf=; unset am_mf;} 15622 { am_rc=; unset am_rc;} 15623 rm -f conftest-deps.mk 15624} 15625 ;; 15626 "libtool":C) 15627 15628 # See if we are running on zsh, and set the options that allow our 15629 # commands through without removal of \ escapes. 15630 if test -n "${ZSH_VERSION+set}"; then 15631 setopt NO_GLOB_SUBST 15632 fi 15633 15634 cfgfile=${ofile}T 15635 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15636 $RM "$cfgfile" 15637 15638 cat <<_LT_EOF >> "$cfgfile" 15639#! $SHELL 15640# Generated automatically by $as_me ($PACKAGE) $VERSION 15641# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15642 15643# Provide generalized library-building support services. 15644# Written by Gordon Matzigkeit, 1996 15645 15646# Copyright (C) 2014 Free Software Foundation, Inc. 15647# This is free software; see the source for copying conditions. There is NO 15648# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15649 15650# GNU Libtool is free software; you can redistribute it and/or modify 15651# it under the terms of the GNU General Public License as published by 15652# the Free Software Foundation; either version 2 of of the License, or 15653# (at your option) any later version. 15654# 15655# As a special exception to the GNU General Public License, if you 15656# distribute this file as part of a program or library that is built 15657# using GNU Libtool, you may include this file under the same 15658# distribution terms that you use for the rest of that program. 15659# 15660# GNU Libtool is distributed in the hope that it will be useful, but 15661# WITHOUT ANY WARRANTY; without even the implied warranty of 15662# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15663# GNU General Public License for more details. 15664# 15665# You should have received a copy of the GNU General Public License 15666# along with this program. If not, see <http://www.gnu.org/licenses/>. 15667 15668 15669# The names of the tagged configurations supported by this script. 15670available_tags='' 15671 15672# Configured defaults for sys_lib_dlsearch_path munging. 15673: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15674 15675# ### BEGIN LIBTOOL CONFIG 15676 15677# Which release of libtool.m4 was used? 15678macro_version=$macro_version 15679macro_revision=$macro_revision 15680 15681# Whether or not to build shared libraries. 15682build_libtool_libs=$enable_shared 15683 15684# Whether or not to build static libraries. 15685build_old_libs=$enable_static 15686 15687# What type of objects to build. 15688pic_mode=$pic_mode 15689 15690# Whether or not to optimize for fast installation. 15691fast_install=$enable_fast_install 15692 15693# Shared archive member basename,for filename based shared library versioning on AIX. 15694shared_archive_member_spec=$shared_archive_member_spec 15695 15696# Shell to use when invoking shell scripts. 15697SHELL=$lt_SHELL 15698 15699# An echo program that protects backslashes. 15700ECHO=$lt_ECHO 15701 15702# The PATH separator for the build system. 15703PATH_SEPARATOR=$lt_PATH_SEPARATOR 15704 15705# The host system. 15706host_alias=$host_alias 15707host=$host 15708host_os=$host_os 15709 15710# The build system. 15711build_alias=$build_alias 15712build=$build 15713build_os=$build_os 15714 15715# A sed program that does not truncate output. 15716SED=$lt_SED 15717 15718# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15719Xsed="\$SED -e 1s/^X//" 15720 15721# A grep program that handles long lines. 15722GREP=$lt_GREP 15723 15724# An ERE matcher. 15725EGREP=$lt_EGREP 15726 15727# A literal string matcher. 15728FGREP=$lt_FGREP 15729 15730# A BSD- or MS-compatible name lister. 15731NM=$lt_NM 15732 15733# Whether we need soft or hard links. 15734LN_S=$lt_LN_S 15735 15736# What is the maximum length of a command? 15737max_cmd_len=$max_cmd_len 15738 15739# Object file suffix (normally "o"). 15740objext=$ac_objext 15741 15742# Executable file suffix (normally ""). 15743exeext=$exeext 15744 15745# whether the shell understands "unset". 15746lt_unset=$lt_unset 15747 15748# turn spaces into newlines. 15749SP2NL=$lt_lt_SP2NL 15750 15751# turn newlines into spaces. 15752NL2SP=$lt_lt_NL2SP 15753 15754# convert \$build file names to \$host format. 15755to_host_file_cmd=$lt_cv_to_host_file_cmd 15756 15757# convert \$build files to toolchain format. 15758to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15759 15760# An object symbol dumper. 15761OBJDUMP=$lt_OBJDUMP 15762 15763# Method to check whether dependent libraries are shared objects. 15764deplibs_check_method=$lt_deplibs_check_method 15765 15766# Command to use when deplibs_check_method = "file_magic". 15767file_magic_cmd=$lt_file_magic_cmd 15768 15769# How to find potential files when deplibs_check_method = "file_magic". 15770file_magic_glob=$lt_file_magic_glob 15771 15772# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15773want_nocaseglob=$lt_want_nocaseglob 15774 15775# DLL creation program. 15776DLLTOOL=$lt_DLLTOOL 15777 15778# Command to associate shared and link libraries. 15779sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15780 15781# The archiver. 15782AR=$lt_AR 15783 15784# Flags to create an archive. 15785AR_FLAGS=$lt_AR_FLAGS 15786 15787# How to feed a file listing to the archiver. 15788archiver_list_spec=$lt_archiver_list_spec 15789 15790# A symbol stripping program. 15791STRIP=$lt_STRIP 15792 15793# Commands used to install an old-style archive. 15794RANLIB=$lt_RANLIB 15795old_postinstall_cmds=$lt_old_postinstall_cmds 15796old_postuninstall_cmds=$lt_old_postuninstall_cmds 15797 15798# Whether to use a lock for old archive extraction. 15799lock_old_archive_extraction=$lock_old_archive_extraction 15800 15801# A C compiler. 15802LTCC=$lt_CC 15803 15804# LTCC compiler flags. 15805LTCFLAGS=$lt_CFLAGS 15806 15807# Take the output of nm and produce a listing of raw symbols and C names. 15808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15809 15810# Transform the output of nm in a proper C declaration. 15811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15812 15813# Transform the output of nm into a list of symbols to manually relocate. 15814global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15815 15816# Transform the output of nm in a C name address pair. 15817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15818 15819# Transform the output of nm in a C name address pair when lib prefix is needed. 15820global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15821 15822# The name lister interface. 15823nm_interface=$lt_lt_cv_nm_interface 15824 15825# Specify filename containing input files for \$NM. 15826nm_file_list_spec=$lt_nm_file_list_spec 15827 15828# The root where to search for dependent libraries,and where our libraries should be installed. 15829lt_sysroot=$lt_sysroot 15830 15831# Command to truncate a binary pipe. 15832lt_truncate_bin=$lt_lt_cv_truncate_bin 15833 15834# The name of the directory that contains temporary libtool files. 15835objdir=$objdir 15836 15837# Used to examine libraries when file_magic_cmd begins with "file". 15838MAGIC_CMD=$MAGIC_CMD 15839 15840# Must we lock files when doing compilation? 15841need_locks=$lt_need_locks 15842 15843# Manifest tool. 15844MANIFEST_TOOL=$lt_MANIFEST_TOOL 15845 15846# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15847DSYMUTIL=$lt_DSYMUTIL 15848 15849# Tool to change global to local symbols on Mac OS X. 15850NMEDIT=$lt_NMEDIT 15851 15852# Tool to manipulate fat objects and archives on Mac OS X. 15853LIPO=$lt_LIPO 15854 15855# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15856OTOOL=$lt_OTOOL 15857 15858# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15859OTOOL64=$lt_OTOOL64 15860 15861# Old archive suffix (normally "a"). 15862libext=$libext 15863 15864# Shared library suffix (normally ".so"). 15865shrext_cmds=$lt_shrext_cmds 15866 15867# The commands to extract the exported symbol list from a shared archive. 15868extract_expsyms_cmds=$lt_extract_expsyms_cmds 15869 15870# Variables whose values should be saved in libtool wrapper scripts and 15871# restored at link time. 15872variables_saved_for_relink=$lt_variables_saved_for_relink 15873 15874# Do we need the "lib" prefix for modules? 15875need_lib_prefix=$need_lib_prefix 15876 15877# Do we need a version for libraries? 15878need_version=$need_version 15879 15880# Library versioning type. 15881version_type=$version_type 15882 15883# Shared library runtime path variable. 15884runpath_var=$runpath_var 15885 15886# Shared library path variable. 15887shlibpath_var=$shlibpath_var 15888 15889# Is shlibpath searched before the hard-coded library search path? 15890shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15891 15892# Format of library name prefix. 15893libname_spec=$lt_libname_spec 15894 15895# List of archive names. First name is the real one, the rest are links. 15896# The last name is the one that the linker finds with -lNAME 15897library_names_spec=$lt_library_names_spec 15898 15899# The coded name of the library, if different from the real name. 15900soname_spec=$lt_soname_spec 15901 15902# Permission mode override for installation of shared libraries. 15903install_override_mode=$lt_install_override_mode 15904 15905# Command to use after installation of a shared archive. 15906postinstall_cmds=$lt_postinstall_cmds 15907 15908# Command to use after uninstallation of a shared archive. 15909postuninstall_cmds=$lt_postuninstall_cmds 15910 15911# Commands used to finish a libtool library installation in a directory. 15912finish_cmds=$lt_finish_cmds 15913 15914# As "finish_cmds", except a single script fragment to be evaled but 15915# not shown. 15916finish_eval=$lt_finish_eval 15917 15918# Whether we should hardcode library paths into libraries. 15919hardcode_into_libs=$hardcode_into_libs 15920 15921# Compile-time system search path for libraries. 15922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15923 15924# Detected run-time system search path for libraries. 15925sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15926 15927# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15928configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15929 15930# Whether dlopen is supported. 15931dlopen_support=$enable_dlopen 15932 15933# Whether dlopen of programs is supported. 15934dlopen_self=$enable_dlopen_self 15935 15936# Whether dlopen of statically linked programs is supported. 15937dlopen_self_static=$enable_dlopen_self_static 15938 15939# Commands to strip libraries. 15940old_striplib=$lt_old_striplib 15941striplib=$lt_striplib 15942 15943 15944# The linker used to build libraries. 15945LD=$lt_LD 15946 15947# How to create reloadable object files. 15948reload_flag=$lt_reload_flag 15949reload_cmds=$lt_reload_cmds 15950 15951# Commands used to build an old-style archive. 15952old_archive_cmds=$lt_old_archive_cmds 15953 15954# A language specific compiler. 15955CC=$lt_compiler 15956 15957# Is the compiler the GNU compiler? 15958with_gcc=$GCC 15959 15960# Compiler flag to turn off builtin functions. 15961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15962 15963# Additional compiler flags for building library objects. 15964pic_flag=$lt_lt_prog_compiler_pic 15965 15966# How to pass a linker flag through the compiler. 15967wl=$lt_lt_prog_compiler_wl 15968 15969# Compiler flag to prevent dynamic linking. 15970link_static_flag=$lt_lt_prog_compiler_static 15971 15972# Does compiler simultaneously support -c and -o options? 15973compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15974 15975# Whether or not to add -lc for building shared libraries. 15976build_libtool_need_lc=$archive_cmds_need_lc 15977 15978# Whether or not to disallow shared libs when runtime libs are static. 15979allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15980 15981# Compiler flag to allow reflexive dlopens. 15982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15983 15984# Compiler flag to generate shared objects directly from archives. 15985whole_archive_flag_spec=$lt_whole_archive_flag_spec 15986 15987# Whether the compiler copes with passing no objects directly. 15988compiler_needs_object=$lt_compiler_needs_object 15989 15990# Create an old-style archive from a shared archive. 15991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15992 15993# Create a temporary old-style archive to link instead of a shared archive. 15994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15995 15996# Commands used to build a shared archive. 15997archive_cmds=$lt_archive_cmds 15998archive_expsym_cmds=$lt_archive_expsym_cmds 15999 16000# Commands used to build a loadable module if different from building 16001# a shared archive. 16002module_cmds=$lt_module_cmds 16003module_expsym_cmds=$lt_module_expsym_cmds 16004 16005# Whether we are building with GNU ld or not. 16006with_gnu_ld=$lt_with_gnu_ld 16007 16008# Flag that allows shared libraries with undefined symbols to be built. 16009allow_undefined_flag=$lt_allow_undefined_flag 16010 16011# Flag that enforces no undefined symbols. 16012no_undefined_flag=$lt_no_undefined_flag 16013 16014# Flag to hardcode \$libdir into a binary during linking. 16015# This must work even if \$libdir does not exist 16016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16017 16018# Whether we need a single "-rpath" flag with a separated argument. 16019hardcode_libdir_separator=$lt_hardcode_libdir_separator 16020 16021# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16022# DIR into the resulting binary. 16023hardcode_direct=$hardcode_direct 16024 16025# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16026# DIR into the resulting binary and the resulting library dependency is 16027# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16028# library is relocated. 16029hardcode_direct_absolute=$hardcode_direct_absolute 16030 16031# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16032# into the resulting binary. 16033hardcode_minus_L=$hardcode_minus_L 16034 16035# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16036# into the resulting binary. 16037hardcode_shlibpath_var=$hardcode_shlibpath_var 16038 16039# Set to "yes" if building a shared library automatically hardcodes DIR 16040# into the library and all subsequent libraries and executables linked 16041# against it. 16042hardcode_automatic=$hardcode_automatic 16043 16044# Set to yes if linker adds runtime paths of dependent libraries 16045# to runtime path list. 16046inherit_rpath=$inherit_rpath 16047 16048# Whether libtool must link a program against all its dependency libraries. 16049link_all_deplibs=$link_all_deplibs 16050 16051# Set to "yes" if exported symbols are required. 16052always_export_symbols=$always_export_symbols 16053 16054# The commands to list exported symbols. 16055export_symbols_cmds=$lt_export_symbols_cmds 16056 16057# Symbols that should not be listed in the preloaded symbols. 16058exclude_expsyms=$lt_exclude_expsyms 16059 16060# Symbols that must always be exported. 16061include_expsyms=$lt_include_expsyms 16062 16063# Commands necessary for linking programs (against libraries) with templates. 16064prelink_cmds=$lt_prelink_cmds 16065 16066# Commands necessary for finishing linking programs. 16067postlink_cmds=$lt_postlink_cmds 16068 16069# Specify filename containing input files. 16070file_list_spec=$lt_file_list_spec 16071 16072# How to hardcode a shared library path into an executable. 16073hardcode_action=$hardcode_action 16074 16075# ### END LIBTOOL CONFIG 16076 16077_LT_EOF 16078 16079 cat <<'_LT_EOF' >> "$cfgfile" 16080 16081# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16082 16083# func_munge_path_list VARIABLE PATH 16084# ----------------------------------- 16085# VARIABLE is name of variable containing _space_ separated list of 16086# directories to be munged by the contents of PATH, which is string 16087# having a format: 16088# "DIR[:DIR]:" 16089# string "DIR[ DIR]" will be prepended to VARIABLE 16090# ":DIR[:DIR]" 16091# string "DIR[ DIR]" will be appended to VARIABLE 16092# "DIRP[:DIRP]::[DIRA:]DIRA" 16093# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16094# "DIRA[ DIRA]" will be appended to VARIABLE 16095# "DIR[:DIR]" 16096# VARIABLE will be replaced by "DIR[ DIR]" 16097func_munge_path_list () 16098{ 16099 case x$2 in 16100 x) 16101 ;; 16102 *:) 16103 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16104 ;; 16105 x:*) 16106 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16107 ;; 16108 *::*) 16109 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16110 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16111 ;; 16112 *) 16113 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16114 ;; 16115 esac 16116} 16117 16118 16119# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16120func_cc_basename () 16121{ 16122 for cc_temp in $*""; do 16123 case $cc_temp in 16124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16126 \-*) ;; 16127 *) break;; 16128 esac 16129 done 16130 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16131} 16132 16133 16134# ### END FUNCTIONS SHARED WITH CONFIGURE 16135 16136_LT_EOF 16137 16138 case $host_os in 16139 aix3*) 16140 cat <<\_LT_EOF >> "$cfgfile" 16141# AIX sometimes has problems with the GCC collect2 program. For some 16142# reason, if we set the COLLECT_NAMES environment variable, the problems 16143# vanish in a puff of smoke. 16144if test set != "${COLLECT_NAMES+set}"; then 16145 COLLECT_NAMES= 16146 export COLLECT_NAMES 16147fi 16148_LT_EOF 16149 ;; 16150 esac 16151 16152 16153ltmain=$ac_aux_dir/ltmain.sh 16154 16155 16156 # We use sed instead of cat because bash on DJGPP gets confused if 16157 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16158 # text mode, it properly converts lines to CR/LF. This bash problem 16159 # is reportedly fixed, but why not run on old versions too? 16160 sed '$q' "$ltmain" >> "$cfgfile" \ 16161 || (rm -f "$cfgfile"; exit 1) 16162 16163 mv -f "$cfgfile" "$ofile" || 16164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16165 chmod +x "$ofile" 16166 16167 ;; 16168 16169 esac 16170done # for ac_tag 16171 16172 16173as_fn_exit 0 16174_ACEOF 16175ac_clean_files=$ac_clean_files_save 16176 16177test $ac_write_fail = 0 || 16178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16179 16180 16181# configure is writing to config.log, and then calls config.status. 16182# config.status does its own redirection, appending to config.log. 16183# Unfortunately, on DOS this fails, as config.log is still kept open 16184# by configure, so config.status won't be able to write to it; its 16185# output is simply discarded. So we exec the FD to /dev/null, 16186# effectively closing config.log, so it can be properly (re)opened and 16187# appended to by config.status. When coming back to configure, we 16188# need to make the FD available again. 16189if test "$no_create" != yes; then 16190 ac_cs_success=: 16191 ac_config_status_args= 16192 test "$silent" = yes && 16193 ac_config_status_args="$ac_config_status_args --quiet" 16194 exec 5>/dev/null 16195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16196 exec 5>>config.log 16197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16198 # would make configure fail if this is the last instruction. 16199 $ac_cs_success || as_fn_exit 1 16200fi 16201if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16203$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16204fi 16205 16206