1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libcanberra 0.30. 4# 5# Report bugs to <mzyvopnaoreen (at) 0pointer (dot) de>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and mzyvopnaoreen (at) 278$0: 0pointer (dot) de about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libcanberra' 592PACKAGE_TARNAME='libcanberra' 593PACKAGE_VERSION='0.30' 594PACKAGE_STRING='libcanberra 0.30' 595PACKAGE_BUGREPORT='mzyvopnaoreen (at) 0pointer (dot) de' 596PACKAGE_URL='http://0pointer.de/lennart/projects/libcanberra/' 597 598ac_unique_file="src/common.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639GTK_DOC_USE_REBASE_FALSE 640GTK_DOC_USE_REBASE_TRUE 641GTK_DOC_USE_LIBTOOL_FALSE 642GTK_DOC_USE_LIBTOOL_TRUE 643GTK_DOC_BUILD_PDF_FALSE 644GTK_DOC_BUILD_PDF_TRUE 645GTK_DOC_BUILD_HTML_FALSE 646GTK_DOC_BUILD_HTML_TRUE 647ENABLE_GTK_DOC_FALSE 648ENABLE_GTK_DOC_TRUE 649GTKDOC_DEPS_LIBS 650GTKDOC_DEPS_CFLAGS 651HTML_DIR 652GTKDOC_MKPDF 653GTKDOC_REBASE 654GTKDOC_CHECK 655CA_MINOR 656CA_MAJOR 657BUILTIN_NULL_FALSE 658BUILTIN_NULL_TRUE 659BUILTIN_GSTREAMER_FALSE 660BUILTIN_GSTREAMER_TRUE 661BUILTIN_OSS_FALSE 662BUILTIN_OSS_TRUE 663BUILTIN_ALSA_FALSE 664BUILTIN_ALSA_TRUE 665BUILTIN_PULSE_FALSE 666BUILTIN_PULSE_TRUE 667BUILTIN_DSO_FALSE 668BUILTIN_DSO_TRUE 669HAVE_NULL_FALSE 670HAVE_NULL_TRUE 671HAVE_GSTREAMER_FALSE 672HAVE_GSTREAMER_TRUE 673HAVE_OSS_FALSE 674HAVE_OSS_TRUE 675HAVE_ALSA_FALSE 676HAVE_ALSA_TRUE 677HAVE_PULSE_FALSE 678HAVE_PULSE_TRUE 679BUILTIN_NULL 680BUILTIN_GSTREAMER 681BUILTIN_OSS 682BUILTIN_ALSA 683BUILTIN_PULSE 684BUILTIN_DSO 685HAVE_NULL 686HAVE_GSTREAMER 687HAVE_OSS 688HAVE_ALSA 689HAVE_PULSE 690HAVE_DSO 691VORBIS_LIBS 692VORBIS_CFLAGS 693USE_LYNX_FALSE 694USE_LYNX_TRUE 695have_lynx 696HAVE_SYSTEMD_FALSE 697HAVE_SYSTEMD_TRUE 698systemdsystemunitdir 699HAVE_CACHE_FALSE 700HAVE_CACHE_TRUE 701HAVE_CACHE 702HAVE_TDB_FALSE 703HAVE_TDB_TRUE 704HAVE_TDB 705TDB_LIBS 706TDB_CFLAGS 707HAVE_GTK_ANY_FALSE 708HAVE_GTK_ANY_TRUE 709HAVE_GTK3_FALSE 710HAVE_GTK3_TRUE 711HAVE_GTK3 712GTK3_MODULES_DIR 713GTK3_LIBS 714GTK3_CFLAGS 715HAVE_GTK_FALSE 716HAVE_GTK_TRUE 717HAVE_GTK 718GTK_MODULES_DIR 719GTK_LIBS 720GTK_CFLAGS 721GCONF_SCHEMAS_INSTALL_FALSE 722GCONF_SCHEMAS_INSTALL_TRUE 723GSTREAMER_LIBS 724GSTREAMER_CFLAGS 725GST_LIBS 726GST_CFLAGS 727HAVE_UDEV_FALSE 728HAVE_UDEV_TRUE 729UDEV_LIBS 730UDEV_CFLAGS 731PULSE_LIBS 732PULSE_CFLAGS 733ALSA_LIBS 734ALSA_CFLAGS 735PKG_CONFIG_LIBDIR 736PKG_CONFIG_PATH 737PKG_CONFIG 738PTHREAD_CFLAGS 739PTHREAD_LIBS 740PTHREAD_CC 741acx_pthread_config 742USE_VERSION_SCRIPT_FALSE 743USE_VERSION_SCRIPT_TRUE 744OS_IS_WIN32_FALSE 745OS_IS_WIN32_TRUE 746LIBLTDL 747CXXCPP 748OTOOL64 749OTOOL 750LIPO 751NMEDIT 752DSYMUTIL 753MANIFEST_TOOL 754RANLIB 755NM 756ac_ct_DUMPBIN 757DUMPBIN 758LD 759FGREP 760SED 761LIBTOOL 762OBJDUMP 763DLLTOOL 764AS 765GCLDFLAGS 766WARNINGFLAGS 767am__fastdepCXX_FALSE 768am__fastdepCXX_TRUE 769CXXDEPMODE 770ac_ct_CXX 771CXXFLAGS 772CXX 773EGREP 774GREP 775CPP 776am__fastdepCC_FALSE 777am__fastdepCC_TRUE 778CCDEPMODE 779am__nodep 780AMDEPBACKSLASH 781AMDEP_FALSE 782AMDEP_TRUE 783am__quote 784am__include 785DEPDIR 786OBJEXT 787EXEEXT 788ac_ct_CC 789CPPFLAGS 790LDFLAGS 791CFLAGS 792CC 793ac_ct_AR 794AR 795LN_S 796host_os 797host_vendor 798host_cpu 799host 800build_os 801build_vendor 802build_cpu 803build 804LIBCANBERRA_GTK_VERSION_INFO 805LIBCANBERRA_VERSION_INFO 806AM_BACKSLASH 807AM_DEFAULT_VERBOSITY 808AM_DEFAULT_V 809AM_V 810am__untar 811am__tar 812AMTAR 813am__leading_dot 814SET_MAKE 815AWK 816mkdir_p 817MKDIR_P 818INSTALL_STRIP_PROGRAM 819STRIP 820install_sh 821MAKEINFO 822AUTOHEADER 823AUTOMAKE 824AUTOCONF 825ACLOCAL 826VERSION 827PACKAGE 828CYGPATH_W 829am__isrc 830INSTALL_DATA 831INSTALL_SCRIPT 832INSTALL_PROGRAM 833target_alias 834host_alias 835build_alias 836LIBS 837ECHO_T 838ECHO_N 839ECHO_C 840DEFS 841mandir 842localedir 843libdir 844psdir 845pdfdir 846dvidir 847htmldir 848infodir 849docdir 850oldincludedir 851includedir 852localstatedir 853sharedstatedir 854sysconfdir 855datadir 856datarootdir 857libexecdir 858sbindir 859bindir 860program_transform_name 861prefix 862exec_prefix 863PACKAGE_URL 864PACKAGE_BUGREPORT 865PACKAGE_STRING 866PACKAGE_VERSION 867PACKAGE_TARNAME 868PACKAGE_NAME 869PATH_SEPARATOR 870SHELL' 871ac_subst_files='' 872ac_user_opts=' 873enable_option_checking 874enable_silent_rules 875enable_dependency_tracking 876enable_static 877enable_shared 878with_pic 879enable_fast_install 880with_gnu_ld 881with_sysroot 882enable_libtool_lock 883enable_largefile 884enable_alsa 885enable_oss 886enable_pulse 887enable_udev 888enable_gstreamer 889enable_null 890enable_gtk 891enable_gtk3 892enable_tdb 893with_systemdsystemunitdir 894enable_lynx 895with_builtin 896with_html_dir 897enable_gtk_doc 898enable_gtk_doc_html 899enable_gtk_doc_pdf 900' 901 ac_precious_vars='build_alias 902host_alias 903target_alias 904CC 905CFLAGS 906LDFLAGS 907LIBS 908CPPFLAGS 909CPP 910CXX 911CXXFLAGS 912CCC 913CXXCPP 914PKG_CONFIG 915PKG_CONFIG_PATH 916PKG_CONFIG_LIBDIR 917ALSA_CFLAGS 918ALSA_LIBS 919PULSE_CFLAGS 920PULSE_LIBS 921UDEV_CFLAGS 922UDEV_LIBS 923GST_CFLAGS 924GST_LIBS 925GTK_CFLAGS 926GTK_LIBS 927GTK3_CFLAGS 928GTK3_LIBS 929TDB_CFLAGS 930TDB_LIBS 931VORBIS_CFLAGS 932VORBIS_LIBS 933GTKDOC_DEPS_CFLAGS 934GTKDOC_DEPS_LIBS' 935 936 937# Initialize some variables set by options. 938ac_init_help= 939ac_init_version=false 940ac_unrecognized_opts= 941ac_unrecognized_sep= 942# The variables have the same names as the options, with 943# dashes changed to underlines. 944cache_file=/dev/null 945exec_prefix=NONE 946no_create= 947no_recursion= 948prefix=NONE 949program_prefix=NONE 950program_suffix=NONE 951program_transform_name=s,x,x, 952silent= 953site= 954srcdir= 955verbose= 956x_includes=NONE 957x_libraries=NONE 958 959# Installation directory options. 960# These are left unexpanded so users can "make install exec_prefix=/foo" 961# and all the variables that are supposed to be based on exec_prefix 962# by default will actually change. 963# Use braces instead of parens because sh, perl, etc. also accept them. 964# (The list follows the same order as the GNU Coding Standards.) 965bindir='${exec_prefix}/bin' 966sbindir='${exec_prefix}/sbin' 967libexecdir='${exec_prefix}/libexec' 968datarootdir='${prefix}/share' 969datadir='${datarootdir}' 970sysconfdir='${prefix}/etc' 971sharedstatedir='${prefix}/com' 972localstatedir='${prefix}/var' 973includedir='${prefix}/include' 974oldincludedir='/usr/include' 975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 976infodir='${datarootdir}/info' 977htmldir='${docdir}' 978dvidir='${docdir}' 979pdfdir='${docdir}' 980psdir='${docdir}' 981libdir='${exec_prefix}/lib' 982localedir='${datarootdir}/locale' 983mandir='${datarootdir}/man' 984 985ac_prev= 986ac_dashdash= 987for ac_option 988do 989 # If the previous option needs an argument, assign it. 990 if test -n "$ac_prev"; then 991 eval $ac_prev=\$ac_option 992 ac_prev= 993 continue 994 fi 995 996 case $ac_option in 997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 998 *=) ac_optarg= ;; 999 *) ac_optarg=yes ;; 1000 esac 1001 1002 # Accept the important Cygnus configure options, so we can diagnose typos. 1003 1004 case $ac_dashdash$ac_option in 1005 --) 1006 ac_dashdash=yes ;; 1007 1008 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1009 ac_prev=bindir ;; 1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1011 bindir=$ac_optarg ;; 1012 1013 -build | --build | --buil | --bui | --bu) 1014 ac_prev=build_alias ;; 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1016 build_alias=$ac_optarg ;; 1017 1018 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1020 ac_prev=cache_file ;; 1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1023 cache_file=$ac_optarg ;; 1024 1025 --config-cache | -C) 1026 cache_file=config.cache ;; 1027 1028 -datadir | --datadir | --datadi | --datad) 1029 ac_prev=datadir ;; 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1031 datadir=$ac_optarg ;; 1032 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1034 | --dataroo | --dataro | --datar) 1035 ac_prev=datarootdir ;; 1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1038 datarootdir=$ac_optarg ;; 1039 1040 -disable-* | --disable-*) 1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1044 as_fn_error $? "invalid feature name: $ac_useropt" 1045 ac_useropt_orig=$ac_useropt 1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1047 case $ac_user_opts in 1048 *" 1049"enable_$ac_useropt" 1050"*) ;; 1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1052 ac_unrecognized_sep=', ';; 1053 esac 1054 eval enable_$ac_useropt=no ;; 1055 1056 -docdir | --docdir | --docdi | --doc | --do) 1057 ac_prev=docdir ;; 1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1059 docdir=$ac_optarg ;; 1060 1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1062 ac_prev=dvidir ;; 1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1064 dvidir=$ac_optarg ;; 1065 1066 -enable-* | --enable-*) 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 as_fn_error $? "invalid feature name: $ac_useropt" 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1226 ac_prev=sbindir ;; 1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1228 | --sbi=* | --sb=*) 1229 sbindir=$ac_optarg ;; 1230 1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1233 | --sharedst | --shareds | --shared | --share | --shar \ 1234 | --sha | --sh) 1235 ac_prev=sharedstatedir ;; 1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1239 | --sha=* | --sh=*) 1240 sharedstatedir=$ac_optarg ;; 1241 1242 -site | --site | --sit) 1243 ac_prev=site ;; 1244 -site=* | --site=* | --sit=*) 1245 site=$ac_optarg ;; 1246 1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1248 ac_prev=srcdir ;; 1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1250 srcdir=$ac_optarg ;; 1251 1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1253 | --syscon | --sysco | --sysc | --sys | --sy) 1254 ac_prev=sysconfdir ;; 1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1257 sysconfdir=$ac_optarg ;; 1258 1259 -target | --target | --targe | --targ | --tar | --ta | --t) 1260 ac_prev=target_alias ;; 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1262 target_alias=$ac_optarg ;; 1263 1264 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1265 verbose=yes ;; 1266 1267 -version | --version | --versio | --versi | --vers | -V) 1268 ac_init_version=: ;; 1269 1270 -with-* | --with-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error $? "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=\$ac_optarg ;; 1285 1286 -without-* | --without-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 as_fn_error $? "invalid package name: $ac_useropt" 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=no ;; 1301 1302 --x) 1303 # Obsolete; use --with-x. 1304 with_x=yes ;; 1305 1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1307 | --x-incl | --x-inc | --x-in | --x-i) 1308 ac_prev=x_includes ;; 1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1311 x_includes=$ac_optarg ;; 1312 1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1315 ac_prev=x_libraries ;; 1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1318 x_libraries=$ac_optarg ;; 1319 1320 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1321Try \`$0 --help' for more information" 1322 ;; 1323 1324 *=*) 1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1326 # Reject names that are not valid shell variable names. 1327 case $ac_envvar in #( 1328 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1330 esac 1331 eval $ac_envvar=\$ac_optarg 1332 export $ac_envvar ;; 1333 1334 *) 1335 # FIXME: should be removed in autoconf 3.0. 1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1340 ;; 1341 1342 esac 1343done 1344 1345if test -n "$ac_prev"; then 1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1347 as_fn_error $? "missing argument to $ac_option" 1348fi 1349 1350if test -n "$ac_unrecognized_opts"; then 1351 case $enable_option_checking in 1352 no) ;; 1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1355 esac 1356fi 1357 1358# Check all directory arguments for consistency. 1359for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1360 datadir sysconfdir sharedstatedir localstatedir includedir \ 1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1362 libdir localedir mandir 1363do 1364 eval ac_val=\$$ac_var 1365 # Remove trailing slashes. 1366 case $ac_val in 1367 */ ) 1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1369 eval $ac_var=\$ac_val;; 1370 esac 1371 # Be sure to have absolute directory names. 1372 case $ac_val in 1373 [\\/$]* | ?:[\\/]* ) continue;; 1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1375 esac 1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1377done 1378 1379# There might be people who depend on the old broken behavior: `$host' 1380# used to hold the argument of --host etc. 1381# FIXME: To remove some day. 1382build=$build_alias 1383host=$host_alias 1384target=$target_alias 1385 1386# FIXME: To remove some day. 1387if test "x$host_alias" != x; then 1388 if test "x$build_alias" = x; then 1389 cross_compiling=maybe 1390 elif test "x$build_alias" != "x$host_alias"; then 1391 cross_compiling=yes 1392 fi 1393fi 1394 1395ac_tool_prefix= 1396test -n "$host_alias" && ac_tool_prefix=$host_alias- 1397 1398test "$silent" = yes && exec 6>/dev/null 1399 1400 1401ac_pwd=`pwd` && test -n "$ac_pwd" && 1402ac_ls_di=`ls -di .` && 1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1404 as_fn_error $? "working directory cannot be determined" 1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1406 as_fn_error $? "pwd does not report name of working directory" 1407 1408 1409# Find the source files, if location was not specified. 1410if test -z "$srcdir"; then 1411 ac_srcdir_defaulted=yes 1412 # Try the directory containing this script, then the parent directory. 1413 ac_confdir=`$as_dirname -- "$as_myself" || 1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1415 X"$as_myself" : 'X\(//\)[^/]' \| \ 1416 X"$as_myself" : 'X\(//\)$' \| \ 1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1418$as_echo X"$as_myself" | 1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1420 s//\1/ 1421 q 1422 } 1423 /^X\(\/\/\)[^/].*/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\).*/{ 1432 s//\1/ 1433 q 1434 } 1435 s/.*/./; q'` 1436 srcdir=$ac_confdir 1437 if test ! -r "$srcdir/$ac_unique_file"; then 1438 srcdir=.. 1439 fi 1440else 1441 ac_srcdir_defaulted=no 1442fi 1443if test ! -r "$srcdir/$ac_unique_file"; then 1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1446fi 1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1448ac_abs_confdir=`( 1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1450 pwd)` 1451# When building in place, set srcdir=. 1452if test "$ac_abs_confdir" = "$ac_pwd"; then 1453 srcdir=. 1454fi 1455# Remove unnecessary trailing slashes from srcdir. 1456# Double slashes in file names in object file debugging info 1457# mess up M-x gdb in Emacs. 1458case $srcdir in 1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1460esac 1461for ac_var in $ac_precious_vars; do 1462 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1463 eval ac_env_${ac_var}_value=\$${ac_var} 1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1465 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1466done 1467 1468# 1469# Report the --help message. 1470# 1471if test "$ac_init_help" = "long"; then 1472 # Omit some internal or obsolete options to make the list less imposing. 1473 # This message is too long to be a string in the A/UX 3.1 sh. 1474 cat <<_ACEOF 1475\`configure' configures libcanberra 0.30 to adapt to many kinds of systems. 1476 1477Usage: $0 [OPTION]... [VAR=VALUE]... 1478 1479To assign environment variables (e.g., CC, CFLAGS...), specify them as 1480VAR=VALUE. See below for descriptions of some of the useful variables. 1481 1482Defaults for the options are specified in brackets. 1483 1484Configuration: 1485 -h, --help display this help and exit 1486 --help=short display options specific to this package 1487 --help=recursive display the short help of all the included packages 1488 -V, --version display version information and exit 1489 -q, --quiet, --silent do not print \`checking ...' messages 1490 --cache-file=FILE cache test results in FILE [disabled] 1491 -C, --config-cache alias for \`--cache-file=config.cache' 1492 -n, --no-create do not create output files 1493 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1494 1495Installation directories: 1496 --prefix=PREFIX install architecture-independent files in PREFIX 1497 [$ac_default_prefix] 1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1499 [PREFIX] 1500 1501By default, \`make install' will install all the files in 1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1503an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1504for instance \`--prefix=\$HOME'. 1505 1506For better control, use the options below. 1507 1508Fine tuning of the installation directories: 1509 --bindir=DIR user executables [EPREFIX/bin] 1510 --sbindir=DIR system admin executables [EPREFIX/sbin] 1511 --libexecdir=DIR program executables [EPREFIX/libexec] 1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1515 --libdir=DIR object code libraries [EPREFIX/lib] 1516 --includedir=DIR C header files [PREFIX/include] 1517 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1520 --infodir=DIR info documentation [DATAROOTDIR/info] 1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1522 --mandir=DIR man documentation [DATAROOTDIR/man] 1523 --docdir=DIR documentation root [DATAROOTDIR/doc/libcanberra] 1524 --htmldir=DIR html documentation [DOCDIR] 1525 --dvidir=DIR dvi documentation [DOCDIR] 1526 --pdfdir=DIR pdf documentation [DOCDIR] 1527 --psdir=DIR ps documentation [DOCDIR] 1528_ACEOF 1529 1530 cat <<\_ACEOF 1531 1532Program names: 1533 --program-prefix=PREFIX prepend PREFIX to installed program names 1534 --program-suffix=SUFFIX append SUFFIX to installed program names 1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1536 1537System types: 1538 --build=BUILD configure for building on BUILD [guessed] 1539 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1540_ACEOF 1541fi 1542 1543if test -n "$ac_init_help"; then 1544 case $ac_init_help in 1545 short | recursive ) echo "Configuration of libcanberra 0.30:";; 1546 esac 1547 cat <<\_ACEOF 1548 1549Optional Features: 1550 --disable-option-checking ignore unrecognized --enable/--with options 1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1553 --enable-silent-rules less verbose build output (undo: "make V=1") 1554 --disable-silent-rules verbose build output (undo: "make V=0") 1555 --enable-dependency-tracking 1556 do not reject slow dependency extractors 1557 --disable-dependency-tracking 1558 speeds up one-time build 1559 --enable-static[=PKGS] build static libraries [default=no] 1560 --enable-shared[=PKGS] build shared libraries [default=yes] 1561 --enable-fast-install[=PKGS] 1562 optimize for fast installation [default=yes] 1563 --disable-libtool-lock avoid locking (might break parallel builds) 1564 --disable-largefile omit support for large files 1565 --disable-alsa Disable optional ALSA support 1566 --disable-oss Disable optional OSS support 1567 --disable-pulse Disable optional PulseAudio support 1568 --disable-udev Disable optional udev support 1569 --disable-gstreamer Disable optional GStreamer support 1570 --disable-null Disable optional null output 1571 --disable-gtk Disable optional GTK+ support 1572 --disable-gtk3 Disable optional GTK+ 3 support 1573 --disable-tdb Disable optional tdb support 1574 --disable-lynx Turn off lynx usage for documentation generation 1575 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1576 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1577 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1578 1579Optional Packages: 1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1582 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1583 both] 1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1585 --with-sysroot=DIR Search for dependent libraries within DIR 1586 (or the compiler's sysroot if not specified). 1587 --with-systemdsystemunitdir=DIR 1588 Directory for systemd service files 1589 --with-builtin Choose builtin driver 1590 --with-html-dir=PATH path to installed docs 1591 1592Some influential environment variables: 1593 CC C compiler command 1594 CFLAGS C compiler flags 1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1596 nonstandard directory <lib dir> 1597 LIBS libraries to pass to the linker, e.g. -l<library> 1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1599 you have headers in a nonstandard directory <include dir> 1600 CPP C preprocessor 1601 CXX C++ compiler command 1602 CXXFLAGS C++ compiler flags 1603 CXXCPP C++ preprocessor 1604 PKG_CONFIG path to pkg-config utility 1605 PKG_CONFIG_PATH 1606 directories to add to pkg-config's search path 1607 PKG_CONFIG_LIBDIR 1608 path overriding pkg-config's built-in search path 1609 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 1610 ALSA_LIBS linker flags for ALSA, overriding pkg-config 1611 PULSE_CFLAGS 1612 C compiler flags for PULSE, overriding pkg-config 1613 PULSE_LIBS linker flags for PULSE, overriding pkg-config 1614 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 1615 UDEV_LIBS linker flags for UDEV, overriding pkg-config 1616 GST_CFLAGS C compiler flags for GST, overriding pkg-config 1617 GST_LIBS linker flags for GST, overriding pkg-config 1618 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1619 GTK_LIBS linker flags for GTK, overriding pkg-config 1620 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config 1621 GTK3_LIBS linker flags for GTK3, overriding pkg-config 1622 TDB_CFLAGS C compiler flags for TDB, overriding pkg-config 1623 TDB_LIBS linker flags for TDB, overriding pkg-config 1624 VORBIS_CFLAGS 1625 C compiler flags for VORBIS, overriding pkg-config 1626 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config 1627 GTKDOC_DEPS_CFLAGS 1628 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1629 GTKDOC_DEPS_LIBS 1630 linker flags for GTKDOC_DEPS, overriding pkg-config 1631 1632Use these variables to override the choices made by `configure' or to help 1633it to find libraries and programs with nonstandard names/locations. 1634 1635Report bugs to <mzyvopnaoreen (at) 0pointer (dot) de>. 1636libcanberra home page: <http://0pointer.de/lennart/projects/libcanberra/>. 1637_ACEOF 1638ac_status=$? 1639fi 1640 1641if test "$ac_init_help" = "recursive"; then 1642 # If there are subdirs, report their specific --help. 1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1644 test -d "$ac_dir" || 1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1646 continue 1647 ac_builddir=. 1648 1649case "$ac_dir" in 1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651*) 1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1653 # A ".." for each directory in $ac_dir_suffix. 1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1655 case $ac_top_builddir_sub in 1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1658 esac ;; 1659esac 1660ac_abs_top_builddir=$ac_pwd 1661ac_abs_builddir=$ac_pwd$ac_dir_suffix 1662# for backward compatibility: 1663ac_top_builddir=$ac_top_build_prefix 1664 1665case $srcdir in 1666 .) # We are building in place. 1667 ac_srcdir=. 1668 ac_top_srcdir=$ac_top_builddir_sub 1669 ac_abs_top_srcdir=$ac_pwd ;; 1670 [\\/]* | ?:[\\/]* ) # Absolute name. 1671 ac_srcdir=$srcdir$ac_dir_suffix; 1672 ac_top_srcdir=$srcdir 1673 ac_abs_top_srcdir=$srcdir ;; 1674 *) # Relative name. 1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1676 ac_top_srcdir=$ac_top_build_prefix$srcdir 1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1678esac 1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1680 1681 cd "$ac_dir" || { ac_status=$?; continue; } 1682 # Check for guested configure. 1683 if test -f "$ac_srcdir/configure.gnu"; then 1684 echo && 1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1686 elif test -f "$ac_srcdir/configure"; then 1687 echo && 1688 $SHELL "$ac_srcdir/configure" --help=recursive 1689 else 1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1691 fi || ac_status=$? 1692 cd "$ac_pwd" || { ac_status=$?; break; } 1693 done 1694fi 1695 1696test -n "$ac_init_help" && exit $ac_status 1697if $ac_init_version; then 1698 cat <<\_ACEOF 1699libcanberra configure 0.30 1700generated by GNU Autoconf 2.69 1701 1702Copyright (C) 2012 Free Software Foundation, Inc. 1703This configure script is free software; the Free Software Foundation 1704gives unlimited permission to copy, distribute and modify it. 1705_ACEOF 1706 exit 1707fi 1708 1709## ------------------------ ## 1710## Autoconf initialization. ## 1711## ------------------------ ## 1712 1713# ac_fn_c_try_compile LINENO 1714# -------------------------- 1715# Try to compile conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_compile () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 rm -f conftest.$ac_objext 1720 if { { ac_try="$ac_compile" 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_compile") 2>conftest.err 1728 ac_status=$? 1729 if test -s conftest.err; then 1730 grep -v '^ *+' conftest.err >conftest.er1 1731 cat conftest.er1 >&5 1732 mv -f conftest.er1 conftest.err 1733 fi 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { 1736 test -z "$ac_c_werror_flag" || 1737 test ! -s conftest.err 1738 } && test -s conftest.$ac_objext; then : 1739 ac_retval=0 1740else 1741 $as_echo "$as_me: failed program was:" >&5 1742sed 's/^/| /' conftest.$ac_ext >&5 1743 1744 ac_retval=1 1745fi 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_compile 1750 1751# ac_fn_c_try_cpp LINENO 1752# ---------------------- 1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1754ac_fn_c_try_cpp () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_cpp conftest.$ac_ext" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } > conftest.i && { 1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_cpp 1787 1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1789# ------------------------------------------------------- 1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1791# the include files in INCLUDES and setting the cache variable VAR 1792# accordingly. 1793ac_fn_c_check_header_mongrel () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if eval \${$3+:} false; then : 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1798$as_echo_n "checking for $2... " >&6; } 1799if eval \${$3+:} false; then : 1800 $as_echo_n "(cached) " >&6 1801fi 1802eval ac_res=\$$3 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804$as_echo "$ac_res" >&6; } 1805else 1806 # Is the header compilable? 1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1808$as_echo_n "checking $2 usability... " >&6; } 1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812#include <$2> 1813_ACEOF 1814if ac_fn_c_try_compile "$LINENO"; then : 1815 ac_header_compiler=yes 1816else 1817 ac_header_compiler=no 1818fi 1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1821$as_echo "$ac_header_compiler" >&6; } 1822 1823# Is the header present? 1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1825$as_echo_n "checking $2 presence... " >&6; } 1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1827/* end confdefs.h. */ 1828#include <$2> 1829_ACEOF 1830if ac_fn_c_try_cpp "$LINENO"; then : 1831 ac_header_preproc=yes 1832else 1833 ac_header_preproc=no 1834fi 1835rm -f conftest.err conftest.i conftest.$ac_ext 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1837$as_echo "$ac_header_preproc" >&6; } 1838 1839# So? What about this header? 1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1841 yes:no: ) 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1846 ;; 1847 no:yes:* ) 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1858( $as_echo "## --------------------------------------------------- ## 1859## Report this to mzyvopnaoreen (at) 0pointer (dot) de ## 1860## --------------------------------------------------- ##" 1861 ) | sed "s/^/$as_me: WARNING: /" >&2 1862 ;; 1863esac 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865$as_echo_n "checking for $2... " >&6; } 1866if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868else 1869 eval "$3=\$ac_header_compiler" 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_header_mongrel 1878 1879# ac_fn_c_try_run LINENO 1880# ---------------------- 1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1882# that executables *can* be run. 1883ac_fn_c_try_run () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_link" 1887case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892$as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_link") 2>&5 1894 ac_status=$? 1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1897 { { case "(($ac_try" in 1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1899 *) ac_try_echo=$ac_try;; 1900esac 1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1902$as_echo "$ac_try_echo"; } >&5 1903 (eval "$ac_try") 2>&5 1904 ac_status=$? 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; }; }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: program exited with status $ac_status" >&5 1910 $as_echo "$as_me: failed program was:" >&5 1911sed 's/^/| /' conftest.$ac_ext >&5 1912 1913 ac_retval=$ac_status 1914fi 1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 as_fn_set_status $ac_retval 1918 1919} # ac_fn_c_try_run 1920 1921# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1922# ------------------------------------------------------- 1923# Tests whether HEADER exists and can be compiled using the include files in 1924# INCLUDES, setting the cache variable VAR accordingly. 1925ac_fn_c_check_header_compile () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935$4 1936#include <$2> 1937_ACEOF 1938if ac_fn_c_try_compile "$LINENO"; then : 1939 eval "$3=yes" 1940else 1941 eval "$3=no" 1942fi 1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944fi 1945eval ac_res=\$$3 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1947$as_echo "$ac_res" >&6; } 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 1950} # ac_fn_c_check_header_compile 1951 1952# ac_fn_cxx_try_compile LINENO 1953# ---------------------------- 1954# Try to compile conftest.$ac_ext, and return whether this succeeded. 1955ac_fn_cxx_try_compile () 1956{ 1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 rm -f conftest.$ac_objext 1959 if { { ac_try="$ac_compile" 1960case "(($ac_try" in 1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1962 *) ac_try_echo=$ac_try;; 1963esac 1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1965$as_echo "$ac_try_echo"; } >&5 1966 (eval "$ac_compile") 2>conftest.err 1967 ac_status=$? 1968 if test -s conftest.err; then 1969 grep -v '^ *+' conftest.err >conftest.er1 1970 cat conftest.er1 >&5 1971 mv -f conftest.er1 conftest.err 1972 fi 1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1974 test $ac_status = 0; } && { 1975 test -z "$ac_cxx_werror_flag" || 1976 test ! -s conftest.err 1977 } && test -s conftest.$ac_objext; then : 1978 ac_retval=0 1979else 1980 $as_echo "$as_me: failed program was:" >&5 1981sed 's/^/| /' conftest.$ac_ext >&5 1982 1983 ac_retval=1 1984fi 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 as_fn_set_status $ac_retval 1987 1988} # ac_fn_cxx_try_compile 1989 1990# ac_fn_c_try_link LINENO 1991# ----------------------- 1992# Try to link conftest.$ac_ext, and return whether this succeeded. 1993ac_fn_c_try_link () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 rm -f conftest.$ac_objext conftest$ac_exeext 1997 if { { ac_try="$ac_link" 1998case "(($ac_try" in 1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2000 *) ac_try_echo=$ac_try;; 2001esac 2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2003$as_echo "$ac_try_echo"; } >&5 2004 (eval "$ac_link") 2>conftest.err 2005 ac_status=$? 2006 if test -s conftest.err; then 2007 grep -v '^ *+' conftest.err >conftest.er1 2008 cat conftest.er1 >&5 2009 mv -f conftest.er1 conftest.err 2010 fi 2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2012 test $ac_status = 0; } && { 2013 test -z "$ac_c_werror_flag" || 2014 test ! -s conftest.err 2015 } && test -s conftest$ac_exeext && { 2016 test "$cross_compiling" = yes || 2017 test -x conftest$ac_exeext 2018 }; then : 2019 ac_retval=0 2020else 2021 $as_echo "$as_me: failed program was:" >&5 2022sed 's/^/| /' conftest.$ac_ext >&5 2023 2024 ac_retval=1 2025fi 2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2028 # interfere with the next link command; also delete a directory that is 2029 # left behind by Apple's compiler. We do this before executing the actions. 2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 as_fn_set_status $ac_retval 2033 2034} # ac_fn_c_try_link 2035 2036# ac_fn_c_check_func LINENO FUNC VAR 2037# ---------------------------------- 2038# Tests whether FUNC exists, setting the cache variable VAR accordingly 2039ac_fn_c_check_func () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2051#define $2 innocuous_$2 2052 2053/* System header to define __stub macros and hopefully few prototypes, 2054 which can conflict with char $2 (); below. 2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2056 <limits.h> exists even on freestanding compilers. */ 2057 2058#ifdef __STDC__ 2059# include <limits.h> 2060#else 2061# include <assert.h> 2062#endif 2063 2064#undef $2 2065 2066/* Override any GCC internal prototype to avoid an error. 2067 Use char because int might match the return type of a GCC 2068 builtin and then its argument prototype would still apply. */ 2069#ifdef __cplusplus 2070extern "C" 2071#endif 2072char $2 (); 2073/* The GNU C library defines this for functions which it implements 2074 to always fail with ENOSYS. Some functions are actually named 2075 something starting with __ and the normal name is an alias. */ 2076#if defined __stub_$2 || defined __stub___$2 2077choke me 2078#endif 2079 2080int 2081main () 2082{ 2083return $2 (); 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_link "$LINENO"; then : 2089 eval "$3=yes" 2090else 2091 eval "$3=no" 2092fi 2093rm -f core conftest.err conftest.$ac_objext \ 2094 conftest$ac_exeext conftest.$ac_ext 2095fi 2096eval ac_res=\$$3 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2098$as_echo "$ac_res" >&6; } 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 2101} # ac_fn_c_check_func 2102 2103# ac_fn_cxx_try_cpp LINENO 2104# ------------------------ 2105# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2106ac_fn_cxx_try_cpp () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 if { { ac_try="$ac_cpp conftest.$ac_ext" 2110case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115$as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2117 ac_status=$? 2118 if test -s conftest.err; then 2119 grep -v '^ *+' conftest.err >conftest.er1 2120 cat conftest.er1 >&5 2121 mv -f conftest.er1 conftest.err 2122 fi 2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2124 test $ac_status = 0; } > conftest.i && { 2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2126 test ! -s conftest.err 2127 }; then : 2128 ac_retval=0 2129else 2130 $as_echo "$as_me: failed program was:" >&5 2131sed 's/^/| /' conftest.$ac_ext >&5 2132 2133 ac_retval=1 2134fi 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 as_fn_set_status $ac_retval 2137 2138} # ac_fn_cxx_try_cpp 2139 2140# ac_fn_cxx_try_link LINENO 2141# ------------------------- 2142# Try to link conftest.$ac_ext, and return whether this succeeded. 2143ac_fn_cxx_try_link () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 rm -f conftest.$ac_objext conftest$ac_exeext 2147 if { { ac_try="$ac_link" 2148case "(($ac_try" in 2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2150 *) ac_try_echo=$ac_try;; 2151esac 2152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2153$as_echo "$ac_try_echo"; } >&5 2154 (eval "$ac_link") 2>conftest.err 2155 ac_status=$? 2156 if test -s conftest.err; then 2157 grep -v '^ *+' conftest.err >conftest.er1 2158 cat conftest.er1 >&5 2159 mv -f conftest.er1 conftest.err 2160 fi 2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2162 test $ac_status = 0; } && { 2163 test -z "$ac_cxx_werror_flag" || 2164 test ! -s conftest.err 2165 } && test -s conftest$ac_exeext && { 2166 test "$cross_compiling" = yes || 2167 test -x conftest$ac_exeext 2168 }; then : 2169 ac_retval=0 2170else 2171 $as_echo "$as_me: failed program was:" >&5 2172sed 's/^/| /' conftest.$ac_ext >&5 2173 2174 ac_retval=1 2175fi 2176 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2177 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2178 # interfere with the next link command; also delete a directory that is 2179 # left behind by Apple's compiler. We do this before executing the actions. 2180 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 as_fn_set_status $ac_retval 2183 2184} # ac_fn_cxx_try_link 2185 2186# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2187# ------------------------------------------- 2188# Tests whether TYPE exists after having included INCLUDES, setting cache 2189# variable VAR accordingly. 2190ac_fn_c_check_type () 2191{ 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2194$as_echo_n "checking for $2... " >&6; } 2195if eval \${$3+:} false; then : 2196 $as_echo_n "(cached) " >&6 2197else 2198 eval "$3=no" 2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2200/* end confdefs.h. */ 2201$4 2202int 2203main () 2204{ 2205if (sizeof ($2)) 2206 return 0; 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211if ac_fn_c_try_compile "$LINENO"; then : 2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2213/* end confdefs.h. */ 2214$4 2215int 2216main () 2217{ 2218if (sizeof (($2))) 2219 return 0; 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224if ac_fn_c_try_compile "$LINENO"; then : 2225 2226else 2227 eval "$3=yes" 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230fi 2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2232fi 2233eval ac_res=\$$3 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2235$as_echo "$ac_res" >&6; } 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 2238} # ac_fn_c_check_type 2239cat >config.log <<_ACEOF 2240This file contains any messages produced by compilers while 2241running configure, to aid debugging if configure makes a mistake. 2242 2243It was created by libcanberra $as_me 0.30, which was 2244generated by GNU Autoconf 2.69. Invocation command line was 2245 2246 $ $0 $@ 2247 2248_ACEOF 2249exec 5>>config.log 2250{ 2251cat <<_ASUNAME 2252## --------- ## 2253## Platform. ## 2254## --------- ## 2255 2256hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2257uname -m = `(uname -m) 2>/dev/null || echo unknown` 2258uname -r = `(uname -r) 2>/dev/null || echo unknown` 2259uname -s = `(uname -s) 2>/dev/null || echo unknown` 2260uname -v = `(uname -v) 2>/dev/null || echo unknown` 2261 2262/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2263/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2264 2265/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2266/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2267/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2268/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2269/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2270/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2271/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2272 2273_ASUNAME 2274 2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2276for as_dir in $PATH 2277do 2278 IFS=$as_save_IFS 2279 test -z "$as_dir" && as_dir=. 2280 $as_echo "PATH: $as_dir" 2281 done 2282IFS=$as_save_IFS 2283 2284} >&5 2285 2286cat >&5 <<_ACEOF 2287 2288 2289## ----------- ## 2290## Core tests. ## 2291## ----------- ## 2292 2293_ACEOF 2294 2295 2296# Keep a trace of the command line. 2297# Strip out --no-create and --no-recursion so they do not pile up. 2298# Strip out --silent because we don't want to record it for future runs. 2299# Also quote any args containing shell meta-characters. 2300# Make two passes to allow for proper duplicate-argument suppression. 2301ac_configure_args= 2302ac_configure_args0= 2303ac_configure_args1= 2304ac_must_keep_next=false 2305for ac_pass in 1 2 2306do 2307 for ac_arg 2308 do 2309 case $ac_arg in 2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2312 | -silent | --silent | --silen | --sile | --sil) 2313 continue ;; 2314 *\'*) 2315 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2316 esac 2317 case $ac_pass in 2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2319 2) 2320 as_fn_append ac_configure_args1 " '$ac_arg'" 2321 if test $ac_must_keep_next = true; then 2322 ac_must_keep_next=false # Got value, back to normal. 2323 else 2324 case $ac_arg in 2325 *=* | --config-cache | -C | -disable-* | --disable-* \ 2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2328 | -with-* | --with-* | -without-* | --without-* | --x) 2329 case "$ac_configure_args0 " in 2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2331 esac 2332 ;; 2333 -* ) ac_must_keep_next=true ;; 2334 esac 2335 fi 2336 as_fn_append ac_configure_args " '$ac_arg'" 2337 ;; 2338 esac 2339 done 2340done 2341{ ac_configure_args0=; unset ac_configure_args0;} 2342{ ac_configure_args1=; unset ac_configure_args1;} 2343 2344# When interrupted or exit'd, cleanup temporary files, and complete 2345# config.log. We remove comments because anyway the quotes in there 2346# would cause problems or look ugly. 2347# WARNING: Use '\'' to represent an apostrophe within the trap. 2348# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2349trap 'exit_status=$? 2350 # Save into config.log some information that might help in debugging. 2351 { 2352 echo 2353 2354 $as_echo "## ---------------- ## 2355## Cache variables. ## 2356## ---------------- ##" 2357 echo 2358 # The following way of writing the cache mishandles newlines in values, 2359( 2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2361 eval ac_val=\$$ac_var 2362 case $ac_val in #( 2363 *${as_nl}*) 2364 case $ac_var in #( 2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2366$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2367 esac 2368 case $ac_var in #( 2369 _ | IFS | as_nl) ;; #( 2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2371 *) { eval $ac_var=; unset $ac_var;} ;; 2372 esac ;; 2373 esac 2374 done 2375 (set) 2>&1 | 2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2377 *${as_nl}ac_space=\ *) 2378 sed -n \ 2379 "s/'\''/'\''\\\\'\'''\''/g; 2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2381 ;; #( 2382 *) 2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2384 ;; 2385 esac | 2386 sort 2387) 2388 echo 2389 2390 $as_echo "## ----------------- ## 2391## Output variables. ## 2392## ----------------- ##" 2393 echo 2394 for ac_var in $ac_subst_vars 2395 do 2396 eval ac_val=\$$ac_var 2397 case $ac_val in 2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2399 esac 2400 $as_echo "$ac_var='\''$ac_val'\''" 2401 done | sort 2402 echo 2403 2404 if test -n "$ac_subst_files"; then 2405 $as_echo "## ------------------- ## 2406## File substitutions. ## 2407## ------------------- ##" 2408 echo 2409 for ac_var in $ac_subst_files 2410 do 2411 eval ac_val=\$$ac_var 2412 case $ac_val in 2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2414 esac 2415 $as_echo "$ac_var='\''$ac_val'\''" 2416 done | sort 2417 echo 2418 fi 2419 2420 if test -s confdefs.h; then 2421 $as_echo "## ----------- ## 2422## confdefs.h. ## 2423## ----------- ##" 2424 echo 2425 cat confdefs.h 2426 echo 2427 fi 2428 test "$ac_signal" != 0 && 2429 $as_echo "$as_me: caught signal $ac_signal" 2430 $as_echo "$as_me: exit $exit_status" 2431 } >&5 2432 rm -f core *.core core.conftest.* && 2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2434 exit $exit_status 2435' 0 2436for ac_signal in 1 2 13 15; do 2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2438done 2439ac_signal=0 2440 2441# confdefs.h avoids OS command line length limits that DEFS can exceed. 2442rm -f -r conftest* confdefs.h 2443 2444$as_echo "/* confdefs.h */" > confdefs.h 2445 2446# Predefined preprocessor variables. 2447 2448cat >>confdefs.h <<_ACEOF 2449#define PACKAGE_NAME "$PACKAGE_NAME" 2450_ACEOF 2451 2452cat >>confdefs.h <<_ACEOF 2453#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2454_ACEOF 2455 2456cat >>confdefs.h <<_ACEOF 2457#define PACKAGE_VERSION "$PACKAGE_VERSION" 2458_ACEOF 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_STRING "$PACKAGE_STRING" 2462_ACEOF 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_URL "$PACKAGE_URL" 2470_ACEOF 2471 2472 2473# Let the site file select an alternate cache file if it wants to. 2474# Prefer an explicitly selected file to automatically selected ones. 2475ac_site_file1=NONE 2476ac_site_file2=NONE 2477if test -n "$CONFIG_SITE"; then 2478 # We do not want a PATH search for config.site. 2479 case $CONFIG_SITE in #(( 2480 -*) ac_site_file1=./$CONFIG_SITE;; 2481 */*) ac_site_file1=$CONFIG_SITE;; 2482 *) ac_site_file1=./$CONFIG_SITE;; 2483 esac 2484elif test "x$prefix" != xNONE; then 2485 ac_site_file1=$prefix/share/config.site 2486 ac_site_file2=$prefix/etc/config.site 2487else 2488 ac_site_file1=$ac_default_prefix/share/config.site 2489 ac_site_file2=$ac_default_prefix/etc/config.site 2490fi 2491for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2492do 2493 test "x$ac_site_file" = xNONE && continue 2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2496$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2497 sed 's/^/| /' "$ac_site_file" >&5 2498 . "$ac_site_file" \ 2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2501as_fn_error $? "failed to load site script $ac_site_file 2502See \`config.log' for more details" "$LINENO" 5; } 2503 fi 2504done 2505 2506if test -r "$cache_file"; then 2507 # Some versions of bash will fail to source /dev/null (special files 2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2511$as_echo "$as_me: loading cache $cache_file" >&6;} 2512 case $cache_file in 2513 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2514 *) . "./$cache_file";; 2515 esac 2516 fi 2517else 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2519$as_echo "$as_me: creating cache $cache_file" >&6;} 2520 >$cache_file 2521fi 2522 2523# Check that the precious variables saved in the cache have kept the same 2524# value. 2525ac_cache_corrupted=false 2526for ac_var in $ac_precious_vars; do 2527 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2528 eval ac_new_set=\$ac_env_${ac_var}_set 2529 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2530 eval ac_new_val=\$ac_env_${ac_var}_value 2531 case $ac_old_set,$ac_new_set in 2532 set,) 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2534$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2535 ac_cache_corrupted=: ;; 2536 ,set) 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2538$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2539 ac_cache_corrupted=: ;; 2540 ,);; 2541 *) 2542 if test "x$ac_old_val" != "x$ac_new_val"; then 2543 # differences in whitespace do not lead to failure. 2544 ac_old_val_w=`echo x $ac_old_val` 2545 ac_new_val_w=`echo x $ac_new_val` 2546 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2548$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2549 ac_cache_corrupted=: 2550 else 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2552$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2553 eval $ac_var=\$ac_old_val 2554 fi 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2556$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2558$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2559 fi;; 2560 esac 2561 # Pass precious variables to config.status. 2562 if test "$ac_new_set" = set; then 2563 case $ac_new_val in 2564 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2565 *) ac_arg=$ac_var=$ac_new_val ;; 2566 esac 2567 case " $ac_configure_args " in 2568 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2569 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2570 esac 2571 fi 2572done 2573if $ac_cache_corrupted; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2577$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2578 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2579fi 2580## -------------------- ## 2581## Main body of script. ## 2582## -------------------- ## 2583 2584ac_ext=c 2585ac_cpp='$CPP $CPPFLAGS' 2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2588ac_compiler_gnu=$ac_cv_c_compiler_gnu 2589 2590 2591 2592 2593ac_config_headers="$ac_config_headers config.h" 2594 2595 2596ac_aux_dir= 2597for ac_dir in build-aux "$srcdir"/build-aux; do 2598 if test -f "$ac_dir/install-sh"; then 2599 ac_aux_dir=$ac_dir 2600 ac_install_sh="$ac_aux_dir/install-sh -c" 2601 break 2602 elif test -f "$ac_dir/install.sh"; then 2603 ac_aux_dir=$ac_dir 2604 ac_install_sh="$ac_aux_dir/install.sh -c" 2605 break 2606 elif test -f "$ac_dir/shtool"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/shtool install -c" 2609 break 2610 fi 2611done 2612if test -z "$ac_aux_dir"; then 2613 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2614fi 2615 2616# These three variables are undocumented and unsupported, 2617# and are intended to be withdrawn in a future Autoconf release. 2618# They can cause serious problems if a builder's source tree is in a directory 2619# whose full name contains unusual characters. 2620ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2621ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2622ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2623 2624 2625 2626am__api_version='1.12' 2627 2628# Find a good install program. We prefer a C program (faster), 2629# so one script is as good as another. But avoid the broken or 2630# incompatible versions: 2631# SysV /etc/install, /usr/sbin/install 2632# SunOS /usr/etc/install 2633# IRIX /sbin/install 2634# AIX /bin/install 2635# AmigaOS /C/install, which installs bootblocks on floppy discs 2636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2637# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2639# OS/2's system install, which has a completely different semantic 2640# ./install, which can be erroneously created by make from ./install.sh. 2641# Reject install programs that cannot install multiple files. 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2643$as_echo_n "checking for a BSD-compatible install... " >&6; } 2644if test -z "$INSTALL"; then 2645if ${ac_cv_path_install+:} false; then : 2646 $as_echo_n "(cached) " >&6 2647else 2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 # Account for people who put trailing slashes in PATH elements. 2654case $as_dir/ in #(( 2655 ./ | .// | /[cC]/* | \ 2656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2658 /usr/ucb/* ) ;; 2659 *) 2660 # OSF1 and SCO ODT 3.0 have their own names for install. 2661 # Don't use installbsd from OSF since it installs stuff as root 2662 # by default. 2663 for ac_prog in ginstall scoinst install; do 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2666 if test $ac_prog = install && 2667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2668 # AIX install. It has an incompatible calling convention. 2669 : 2670 elif test $ac_prog = install && 2671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2672 # program-specific install script used by HP pwplus--don't use. 2673 : 2674 else 2675 rm -rf conftest.one conftest.two conftest.dir 2676 echo one > conftest.one 2677 echo two > conftest.two 2678 mkdir conftest.dir 2679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2680 test -s conftest.one && test -s conftest.two && 2681 test -s conftest.dir/conftest.one && 2682 test -s conftest.dir/conftest.two 2683 then 2684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2685 break 3 2686 fi 2687 fi 2688 fi 2689 done 2690 done 2691 ;; 2692esac 2693 2694 done 2695IFS=$as_save_IFS 2696 2697rm -rf conftest.one conftest.two conftest.dir 2698 2699fi 2700 if test "${ac_cv_path_install+set}" = set; then 2701 INSTALL=$ac_cv_path_install 2702 else 2703 # As a last resort, use the slow shell script. Don't cache a 2704 # value for INSTALL within a source directory, because that will 2705 # break other packages using the cache if that directory is 2706 # removed, or if the value is a relative name. 2707 INSTALL=$ac_install_sh 2708 fi 2709fi 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2711$as_echo "$INSTALL" >&6; } 2712 2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2714# It thinks the first close brace ends the variable substitution. 2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2716 2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2718 2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2720 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2722$as_echo_n "checking whether build environment is sane... " >&6; } 2723# Reject unsafe characters in $srcdir or the absolute working directory 2724# name. Accept space and tab only in the latter. 2725am_lf=' 2726' 2727case `pwd` in 2728 *[\\\"\#\$\&\'\`$am_lf]*) 2729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2730esac 2731case $srcdir in 2732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2734esac 2735 2736# Do 'set' in a subshell so we don't clobber the current shell's 2737# arguments. Must try -L first in case configure is actually a 2738# symlink; some systems play weird games with the mod time of symlinks 2739# (eg FreeBSD returns the mod time of the symlink's containing 2740# directory). 2741if ( 2742 am_has_slept=no 2743 for am_try in 1 2; do 2744 echo "timestamp, slept: $am_has_slept" > conftest.file 2745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2746 if test "$*" = "X"; then 2747 # -L didn't work. 2748 set X `ls -t "$srcdir/configure" conftest.file` 2749 fi 2750 if test "$*" != "X $srcdir/configure conftest.file" \ 2751 && test "$*" != "X conftest.file $srcdir/configure"; then 2752 2753 # If neither matched, then we have a broken ls. This can happen 2754 # if, for instance, CONFIG_SHELL is bash and it inherits a 2755 # broken ls alias from the environment. This has actually 2756 # happened. Such a system could not be considered "sane". 2757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2758 alias in your environment" "$LINENO" 5 2759 fi 2760 if test "$2" = conftest.file || test $am_try -eq 2; then 2761 break 2762 fi 2763 # Just in case. 2764 sleep 1 2765 am_has_slept=yes 2766 done 2767 test "$2" = conftest.file 2768 ) 2769then 2770 # Ok. 2771 : 2772else 2773 as_fn_error $? "newly created file is older than distributed files! 2774Check your system clock" "$LINENO" 5 2775fi 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2777$as_echo "yes" >&6; } 2778# If we didn't sleep, we still need to ensure time stamps of config.status and 2779# generated files are strictly newer. 2780am_sleep_pid= 2781if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2782 ( sleep 1 ) & 2783 am_sleep_pid=$! 2784fi 2785 2786rm -f conftest.file 2787 2788test "$program_prefix" != NONE && 2789 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2790# Use a double $ so make ignores it. 2791test "$program_suffix" != NONE && 2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2793# Double any \ or $. 2794# By default was `s,x,x', remove it if useless. 2795ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2796program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2797 2798# expand $ac_aux_dir to an absolute path 2799am_aux_dir=`cd $ac_aux_dir && pwd` 2800 2801if test x"${MISSING+set}" != xset; then 2802 case $am_aux_dir in 2803 *\ * | *\ *) 2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2805 *) 2806 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2807 esac 2808fi 2809# Use eval to expand $SHELL 2810if eval "$MISSING --run true"; then 2811 am_missing_run="$MISSING --run " 2812else 2813 am_missing_run= 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2815$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2816fi 2817 2818if test x"${install_sh}" != xset; then 2819 case $am_aux_dir in 2820 *\ * | *\ *) 2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2822 *) 2823 install_sh="\${SHELL} $am_aux_dir/install-sh" 2824 esac 2825fi 2826 2827# Installed binaries are usually stripped using 'strip' when the user 2828# run "make install-strip". However 'strip' might not be the right 2829# tool to use in cross-compilation environments, therefore Automake 2830# will honor the 'STRIP' environment variable to overrule this program. 2831if test "$cross_compiling" != no; then 2832 if test -n "$ac_tool_prefix"; then 2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2834set dummy ${ac_tool_prefix}strip; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if ${ac_cv_prog_STRIP+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$STRIP"; then 2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2842else 2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852 break 2 2853 fi 2854done 2855 done 2856IFS=$as_save_IFS 2857 2858fi 2859fi 2860STRIP=$ac_cv_prog_STRIP 2861if test -n "$STRIP"; then 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2863$as_echo "$STRIP" >&6; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866$as_echo "no" >&6; } 2867fi 2868 2869 2870fi 2871if test -z "$ac_cv_prog_STRIP"; then 2872 ac_ct_STRIP=$STRIP 2873 # Extract the first word of "strip", so it can be a program name with args. 2874set dummy strip; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$ac_ct_STRIP"; then 2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_ac_ct_STRIP="strip" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2901if test -n "$ac_ct_STRIP"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2903$as_echo "$ac_ct_STRIP" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 if test "x$ac_ct_STRIP" = x; then 2910 STRIP=":" 2911 else 2912 case $cross_compiling:$ac_tool_warned in 2913yes:) 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916ac_tool_warned=yes ;; 2917esac 2918 STRIP=$ac_ct_STRIP 2919 fi 2920else 2921 STRIP="$ac_cv_prog_STRIP" 2922fi 2923 2924fi 2925INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2926 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2928$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2929if test -z "$MKDIR_P"; then 2930 if ${ac_cv_path_mkdir+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_prog in mkdir gmkdir; do 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2942 'mkdir (GNU coreutils) '* | \ 2943 'mkdir (coreutils) '* | \ 2944 'mkdir (fileutils) '4.1*) 2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2946 break 3;; 2947 esac 2948 done 2949 done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954 2955 test -d ./--version && rmdir ./--version 2956 if test "${ac_cv_path_mkdir+set}" = set; then 2957 MKDIR_P="$ac_cv_path_mkdir -p" 2958 else 2959 # As a last resort, use the slow shell script. Don't cache a 2960 # value for MKDIR_P within a source directory, because that will 2961 # break other packages using the cache if that directory is 2962 # removed, or if the value is a relative name. 2963 MKDIR_P="$ac_install_sh -d" 2964 fi 2965fi 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2967$as_echo "$MKDIR_P" >&6; } 2968 2969for ac_prog in gawk mawk nawk awk 2970do 2971 # Extract the first word of "$ac_prog", so it can be a program name with args. 2972set dummy $ac_prog; ac_word=$2 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if ${ac_cv_prog_AWK+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$AWK"; then 2979 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2988 ac_cv_prog_AWK="$ac_prog" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998AWK=$ac_cv_prog_AWK 2999if test -n "$AWK"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3001$as_echo "$AWK" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 3008 test -n "$AWK" && break 3009done 3010 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3012$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3013set x ${MAKE-make} 3014ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3015if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 cat >conftest.make <<\_ACEOF 3019SHELL = /bin/sh 3020all: 3021 @echo '@@@%%%=$(MAKE)=@@@%%%' 3022_ACEOF 3023# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3024case `${MAKE-make} -f conftest.make 2>/dev/null` in 3025 *@@@%%%=?*=@@@%%%*) 3026 eval ac_cv_prog_make_${ac_make}_set=yes;; 3027 *) 3028 eval ac_cv_prog_make_${ac_make}_set=no;; 3029esac 3030rm -f conftest.make 3031fi 3032if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3034$as_echo "yes" >&6; } 3035 SET_MAKE= 3036else 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3038$as_echo "no" >&6; } 3039 SET_MAKE="MAKE=${MAKE-make}" 3040fi 3041 3042rm -rf .tst 2>/dev/null 3043mkdir .tst 2>/dev/null 3044if test -d .tst; then 3045 am__leading_dot=. 3046else 3047 am__leading_dot=_ 3048fi 3049rmdir .tst 2>/dev/null 3050 3051# Check whether --enable-silent-rules was given. 3052if test "${enable_silent_rules+set}" = set; then : 3053 enableval=$enable_silent_rules; 3054fi 3055 3056case $enable_silent_rules in # ((( 3057 yes) AM_DEFAULT_VERBOSITY=0;; 3058 no) AM_DEFAULT_VERBOSITY=1;; 3059 *) AM_DEFAULT_VERBOSITY=1;; 3060esac 3061am_make=${MAKE-make} 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3063$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3064if ${am_cv_make_support_nested_variables+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if $as_echo 'TRUE=$(BAR$(V)) 3068BAR0=false 3069BAR1=true 3070V=1 3071am__doit: 3072 @$(TRUE) 3073.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3074 am_cv_make_support_nested_variables=yes 3075else 3076 am_cv_make_support_nested_variables=no 3077fi 3078fi 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3080$as_echo "$am_cv_make_support_nested_variables" >&6; } 3081if test $am_cv_make_support_nested_variables = yes; then 3082 AM_V='$(V)' 3083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3084else 3085 AM_V=$AM_DEFAULT_VERBOSITY 3086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3087fi 3088AM_BACKSLASH='\' 3089 3090if test "`cd $srcdir && pwd`" != "`pwd`"; then 3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3092 # is not polluted with repeated "-I." 3093 am__isrc=' -I$(srcdir)' 3094 # test to see if srcdir already configured 3095 if test -f $srcdir/config.status; then 3096 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3097 fi 3098fi 3099 3100# test whether we have cygpath 3101if test -z "$CYGPATH_W"; then 3102 if (cygpath --version) >/dev/null 2>/dev/null; then 3103 CYGPATH_W='cygpath -w' 3104 else 3105 CYGPATH_W=echo 3106 fi 3107fi 3108 3109 3110# Define the identity of the package. 3111 PACKAGE='libcanberra' 3112 VERSION='0.30' 3113 3114 3115cat >>confdefs.h <<_ACEOF 3116#define PACKAGE "$PACKAGE" 3117_ACEOF 3118 3119 3120cat >>confdefs.h <<_ACEOF 3121#define VERSION "$VERSION" 3122_ACEOF 3123 3124# Some tools Automake needs. 3125 3126ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3127 3128 3129AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3130 3131 3132AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3133 3134 3135AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3136 3137 3138MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3139 3140# For better backward compatibility. To be removed once Automake 1.9.x 3141# dies out for good. For more background, see: 3142# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3143# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3144mkdir_p='$(MKDIR_P)' 3145 3146# We need awk for the "check" target. The system "awk" is bad on 3147# some platforms. 3148# Always define AMTAR for backward compatibility. Yes, it's still used 3149# in the wild :-( We should find a proper way to deprecate it ... 3150AMTAR='$${TAR-tar}' 3151 3152 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3154$as_echo_n "checking how to create a pax tar archive... " >&6; } 3155# Loop over all known methods to create a tar archive until one works. 3156_am_tools='gnutar pax cpio none' 3157_am_tools=${am_cv_prog_tar_pax-$_am_tools} 3158# Do not fold the above two line into one, because Tru64 sh and 3159# Solaris sh will not grok spaces in the rhs of '-'. 3160for _am_tool in $_am_tools 3161do 3162 case $_am_tool in 3163 gnutar) 3164 for _am_tar in tar gnutar gtar; 3165 do 3166 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3167 ($_am_tar --version) >&5 2>&5 3168 ac_status=$? 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } && break 3171 done 3172 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3173 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3174 am__untar="$_am_tar -xf -" 3175 ;; 3176 plaintar) 3177 # Must skip GNU tar: if it does not support --format= it doesn't create 3178 # ustar tarball either. 3179 (tar --version) >/dev/null 2>&1 && continue 3180 am__tar='tar chf - "$$tardir"' 3181 am__tar_='tar chf - "$tardir"' 3182 am__untar='tar xf -' 3183 ;; 3184 pax) 3185 am__tar='pax -L -x pax -w "$$tardir"' 3186 am__tar_='pax -L -x pax -w "$tardir"' 3187 am__untar='pax -r' 3188 ;; 3189 cpio) 3190 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3191 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3192 am__untar='cpio -i -H pax -d' 3193 ;; 3194 none) 3195 am__tar=false 3196 am__tar_=false 3197 am__untar=false 3198 ;; 3199 esac 3200 3201 # If the value was cached, stop now. We just wanted to have am__tar 3202 # and am__untar set. 3203 test -n "${am_cv_prog_tar_pax}" && break 3204 3205 # tar/untar a dummy directory, and stop if the command works 3206 rm -rf conftest.dir 3207 mkdir conftest.dir 3208 echo GrepMe > conftest.dir/file 3209 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3210 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3211 ac_status=$? 3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 (exit $ac_status); } 3214 rm -rf conftest.dir 3215 if test -s conftest.tar; then 3216 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3217 ($am__untar <conftest.tar) >&5 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } 3221 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3222 fi 3223done 3224rm -rf conftest.dir 3225 3226if ${am_cv_prog_tar_pax+:} false; then : 3227 $as_echo_n "(cached) " >&6 3228else 3229 am_cv_prog_tar_pax=$_am_tool 3230fi 3231 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3233$as_echo "$am_cv_prog_tar_pax" >&6; } 3234 3235 3236 3237 3238 3239# Check whether --enable-silent-rules was given. 3240if test "${enable_silent_rules+set}" = set; then : 3241 enableval=$enable_silent_rules; 3242fi 3243 3244case $enable_silent_rules in # ((( 3245 yes) AM_DEFAULT_VERBOSITY=0;; 3246 no) AM_DEFAULT_VERBOSITY=1;; 3247 *) AM_DEFAULT_VERBOSITY=0;; 3248esac 3249am_make=${MAKE-make} 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3251$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3252if ${am_cv_make_support_nested_variables+:} false; then : 3253 $as_echo_n "(cached) " >&6 3254else 3255 if $as_echo 'TRUE=$(BAR$(V)) 3256BAR0=false 3257BAR1=true 3258V=1 3259am__doit: 3260 @$(TRUE) 3261.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3262 am_cv_make_support_nested_variables=yes 3263else 3264 am_cv_make_support_nested_variables=no 3265fi 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3268$as_echo "$am_cv_make_support_nested_variables" >&6; } 3269if test $am_cv_make_support_nested_variables = yes; then 3270 AM_V='$(V)' 3271 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3272else 3273 AM_V=$AM_DEFAULT_VERBOSITY 3274 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3275fi 3276AM_BACKSLASH='\' 3277 3278 3279LIBCANBERRA_VERSION_INFO=2:5:2 3280 3281LIBCANBERRA_GTK_VERSION_INFO=1:9:1 3282 3283 3284# Make sure we can run config.sub. 3285$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3286 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3287 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3289$as_echo_n "checking build system type... " >&6; } 3290if ${ac_cv_build+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 ac_build_alias=$build_alias 3294test "x$ac_build_alias" = x && 3295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3296test "x$ac_build_alias" = x && 3297 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3298ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3299 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3300 3301fi 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3303$as_echo "$ac_cv_build" >&6; } 3304case $ac_cv_build in 3305*-*-*) ;; 3306*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3307esac 3308build=$ac_cv_build 3309ac_save_IFS=$IFS; IFS='-' 3310set x $ac_cv_build 3311shift 3312build_cpu=$1 3313build_vendor=$2 3314shift; shift 3315# Remember, the first character of IFS is used to create $*, 3316# except with old shells: 3317build_os=$* 3318IFS=$ac_save_IFS 3319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3320 3321 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3323$as_echo_n "checking host system type... " >&6; } 3324if ${ac_cv_host+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 if test "x$host_alias" = x; then 3328 ac_cv_host=$ac_cv_build 3329else 3330 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3331 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3332fi 3333 3334fi 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3336$as_echo "$ac_cv_host" >&6; } 3337case $ac_cv_host in 3338*-*-*) ;; 3339*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3340esac 3341host=$ac_cv_host 3342ac_save_IFS=$IFS; IFS='-' 3343set x $ac_cv_host 3344shift 3345host_cpu=$1 3346host_vendor=$2 3347shift; shift 3348# Remember, the first character of IFS is used to create $*, 3349# except with old shells: 3350host_os=$* 3351IFS=$ac_save_IFS 3352case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3353 3354 3355 3356cat >>confdefs.h <<_ACEOF 3357#define CANONICAL_HOST "$host" 3358_ACEOF 3359 3360 3361if type -p stow > /dev/null && test -d /usr/local/stow ; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 3363$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} 3364 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" 3365fi 3366 3367#### Checks for programs. #### 3368 3369 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3371$as_echo_n "checking whether ln -s works... " >&6; } 3372LN_S=$as_ln_s 3373if test "$LN_S" = "ln -s"; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3375$as_echo "yes" >&6; } 3376else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3378$as_echo "no, using $LN_S" >&6; } 3379fi 3380 3381DEPDIR="${am__leading_dot}deps" 3382 3383ac_config_commands="$ac_config_commands depfiles" 3384 3385 3386am_make=${MAKE-make} 3387cat > confinc << 'END' 3388am__doit: 3389 @echo this is the am__doit target 3390.PHONY: am__doit 3391END 3392# If we don't find an include directive, just comment out the code. 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3394$as_echo_n "checking for style of include used by $am_make... " >&6; } 3395am__include="#" 3396am__quote= 3397_am_result=none 3398# First try GNU make style include. 3399echo "include confinc" > confmf 3400# Ignore all kinds of additional output from 'make'. 3401case `$am_make -s -f confmf 2> /dev/null` in #( 3402*the\ am__doit\ target*) 3403 am__include=include 3404 am__quote= 3405 _am_result=GNU 3406 ;; 3407esac 3408# Now try BSD make style include. 3409if test "$am__include" = "#"; then 3410 echo '.include "confinc"' > confmf 3411 case `$am_make -s -f confmf 2> /dev/null` in #( 3412 *the\ am__doit\ target*) 3413 am__include=.include 3414 am__quote="\"" 3415 _am_result=BSD 3416 ;; 3417 esac 3418fi 3419 3420 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3422$as_echo "$_am_result" >&6; } 3423rm -f confinc confmf 3424 3425# Check whether --enable-dependency-tracking was given. 3426if test "${enable_dependency_tracking+set}" = set; then : 3427 enableval=$enable_dependency_tracking; 3428fi 3429 3430if test "x$enable_dependency_tracking" != xno; then 3431 am_depcomp="$ac_aux_dir/depcomp" 3432 AMDEPBACKSLASH='\' 3433 am__nodep='_no' 3434fi 3435 if test "x$enable_dependency_tracking" != xno; then 3436 AMDEP_TRUE= 3437 AMDEP_FALSE='#' 3438else 3439 AMDEP_TRUE='#' 3440 AMDEP_FALSE= 3441fi 3442 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449if test -n "$ac_tool_prefix"; then 3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3451set dummy ${ac_tool_prefix}gcc; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if ${ac_cv_prog_CC+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$CC"; then 3458 ac_cv_prog_CC="$CC" # Let the user override the test. 3459else 3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3461for as_dir in $PATH 3462do 3463 IFS=$as_save_IFS 3464 test -z "$as_dir" && as_dir=. 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3467 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi 3476fi 3477CC=$ac_cv_prog_CC 3478if test -n "$CC"; then 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3480$as_echo "$CC" >&6; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484fi 3485 3486 3487fi 3488if test -z "$ac_cv_prog_CC"; then 3489 ac_ct_CC=$CC 3490 # Extract the first word of "gcc", so it can be a program name with args. 3491set dummy gcc; ac_word=$2 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3493$as_echo_n "checking for $ac_word... " >&6; } 3494if ${ac_cv_prog_ac_ct_CC+:} false; then : 3495 $as_echo_n "(cached) " >&6 3496else 3497 if test -n "$ac_ct_CC"; then 3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_ac_ct_CC="gcc" 3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi 3516fi 3517ac_ct_CC=$ac_cv_prog_ac_ct_CC 3518if test -n "$ac_ct_CC"; then 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3520$as_echo "$ac_ct_CC" >&6; } 3521else 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523$as_echo "no" >&6; } 3524fi 3525 3526 if test "x$ac_ct_CC" = x; then 3527 CC="" 3528 else 3529 case $cross_compiling:$ac_tool_warned in 3530yes:) 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3533ac_tool_warned=yes ;; 3534esac 3535 CC=$ac_ct_CC 3536 fi 3537else 3538 CC="$ac_cv_prog_CC" 3539fi 3540 3541if test -z "$CC"; then 3542 if test -n "$ac_tool_prefix"; then 3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3544set dummy ${ac_tool_prefix}cc; ac_word=$2 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546$as_echo_n "checking for $ac_word... " >&6; } 3547if ${ac_cv_prog_CC+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 if test -n "$CC"; then 3551 ac_cv_prog_CC="$CC" # Let the user override the test. 3552else 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3560 ac_cv_prog_CC="${ac_tool_prefix}cc" 3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565 done 3566IFS=$as_save_IFS 3567 3568fi 3569fi 3570CC=$ac_cv_prog_CC 3571if test -n "$CC"; then 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573$as_echo "$CC" >&6; } 3574else 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576$as_echo "no" >&6; } 3577fi 3578 3579 3580 fi 3581fi 3582if test -z "$CC"; then 3583 # Extract the first word of "cc", so it can be a program name with args. 3584set dummy cc; ac_word=$2 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3586$as_echo_n "checking for $ac_word... " >&6; } 3587if ${ac_cv_prog_CC+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 if test -n "$CC"; then 3591 ac_cv_prog_CC="$CC" # Let the user override the test. 3592else 3593 ac_prog_rejected=no 3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_exec_ext in '' $ac_executable_extensions; do 3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3602 ac_prog_rejected=yes 3603 continue 3604 fi 3605 ac_cv_prog_CC="cc" 3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609done 3610 done 3611IFS=$as_save_IFS 3612 3613if test $ac_prog_rejected = yes; then 3614 # We found a bogon in the path, so make sure we never use it. 3615 set dummy $ac_cv_prog_CC 3616 shift 3617 if test $# != 0; then 3618 # We chose a different compiler from the bogus one. 3619 # However, it has the same basename, so the bogon will be chosen 3620 # first if we set CC to just the basename; use the full file name. 3621 shift 3622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3623 fi 3624fi 3625fi 3626fi 3627CC=$ac_cv_prog_CC 3628if test -n "$CC"; then 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3630$as_echo "$CC" >&6; } 3631else 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633$as_echo "no" >&6; } 3634fi 3635 3636 3637fi 3638if test -z "$CC"; then 3639 if test -n "$ac_tool_prefix"; then 3640 for ac_prog in cl.exe 3641 do 3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3643set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3645$as_echo_n "checking for $ac_word... " >&6; } 3646if ${ac_cv_prog_CC+:} false; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 if test -n "$CC"; then 3650 ac_cv_prog_CC="$CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 test -z "$as_dir" && as_dir=. 3657 for ac_exec_ext in '' $ac_executable_extensions; do 3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664 done 3665IFS=$as_save_IFS 3666 3667fi 3668fi 3669CC=$ac_cv_prog_CC 3670if test -n "$CC"; then 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3672$as_echo "$CC" >&6; } 3673else 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3675$as_echo "no" >&6; } 3676fi 3677 3678 3679 test -n "$CC" && break 3680 done 3681fi 3682if test -z "$CC"; then 3683 ac_ct_CC=$CC 3684 for ac_prog in cl.exe 3685do 3686 # Extract the first word of "$ac_prog", so it can be a program name with args. 3687set dummy $ac_prog; ac_word=$2 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3689$as_echo_n "checking for $ac_word... " >&6; } 3690if ${ac_cv_prog_ac_ct_CC+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 if test -n "$ac_ct_CC"; then 3694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3695else 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_exec_ext in '' $ac_executable_extensions; do 3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3703 ac_cv_prog_ac_ct_CC="$ac_prog" 3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707done 3708 done 3709IFS=$as_save_IFS 3710 3711fi 3712fi 3713ac_ct_CC=$ac_cv_prog_ac_ct_CC 3714if test -n "$ac_ct_CC"; then 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3716$as_echo "$ac_ct_CC" >&6; } 3717else 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719$as_echo "no" >&6; } 3720fi 3721 3722 3723 test -n "$ac_ct_CC" && break 3724done 3725 3726 if test "x$ac_ct_CC" = x; then 3727 CC="" 3728 else 3729 case $cross_compiling:$ac_tool_warned in 3730yes:) 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3733ac_tool_warned=yes ;; 3734esac 3735 CC=$ac_ct_CC 3736 fi 3737fi 3738 3739fi 3740 3741 3742test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3744as_fn_error $? "no acceptable C compiler found in \$PATH 3745See \`config.log' for more details" "$LINENO" 5; } 3746 3747# Provide some information about the compiler. 3748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3749set X $ac_compile 3750ac_compiler=$2 3751for ac_option in --version -v -V -qversion; do 3752 { { ac_try="$ac_compiler $ac_option >&5" 3753case "(($ac_try" in 3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *) ac_try_echo=$ac_try;; 3756esac 3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3758$as_echo "$ac_try_echo"; } >&5 3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3760 ac_status=$? 3761 if test -s conftest.err; then 3762 sed '10a\ 3763... rest of stderr output deleted ... 3764 10q' conftest.err >conftest.er1 3765 cat conftest.er1 >&5 3766 fi 3767 rm -f conftest.er1 conftest.err 3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3769 test $ac_status = 0; } 3770done 3771 3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774 3775int 3776main () 3777{ 3778 3779 ; 3780 return 0; 3781} 3782_ACEOF 3783ac_clean_files_save=$ac_clean_files 3784ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3785# Try to create an executable without -o first, disregard a.out. 3786# It will help us diagnose broken compilers, and finding out an intuition 3787# of exeext. 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3789$as_echo_n "checking whether the C compiler works... " >&6; } 3790ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3791 3792# The possible output files: 3793ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3794 3795ac_rmfiles= 3796for ac_file in $ac_files 3797do 3798 case $ac_file in 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3801 esac 3802done 3803rm -f $ac_rmfiles 3804 3805if { { ac_try="$ac_link_default" 3806case "(($ac_try" in 3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3808 *) ac_try_echo=$ac_try;; 3809esac 3810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3811$as_echo "$ac_try_echo"; } >&5 3812 (eval "$ac_link_default") 2>&5 3813 ac_status=$? 3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3815 test $ac_status = 0; }; then : 3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3817# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3818# in a Makefile. We should not override ac_cv_exeext if it was cached, 3819# so that the user can short-circuit this test for compilers unknown to 3820# Autoconf. 3821for ac_file in $ac_files '' 3822do 3823 test -f "$ac_file" || continue 3824 case $ac_file in 3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3826 ;; 3827 [ab].out ) 3828 # We found the default executable, but exeext='' is most 3829 # certainly right. 3830 break;; 3831 *.* ) 3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3833 then :; else 3834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3835 fi 3836 # We set ac_cv_exeext here because the later test for it is not 3837 # safe: cross compilers may not add the suffix if given an `-o' 3838 # argument, so we may need to know it at that point already. 3839 # Even if this section looks crufty: it has the advantage of 3840 # actually working. 3841 break;; 3842 * ) 3843 break;; 3844 esac 3845done 3846test "$ac_cv_exeext" = no && ac_cv_exeext= 3847 3848else 3849 ac_file='' 3850fi 3851if test -z "$ac_file"; then : 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3853$as_echo "no" >&6; } 3854$as_echo "$as_me: failed program was:" >&5 3855sed 's/^/| /' conftest.$ac_ext >&5 3856 3857{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3859as_fn_error 77 "C compiler cannot create executables 3860See \`config.log' for more details" "$LINENO" 5; } 3861else 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3863$as_echo "yes" >&6; } 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3866$as_echo_n "checking for C compiler default output file name... " >&6; } 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3868$as_echo "$ac_file" >&6; } 3869ac_exeext=$ac_cv_exeext 3870 3871rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3872ac_clean_files=$ac_clean_files_save 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3874$as_echo_n "checking for suffix of executables... " >&6; } 3875if { { ac_try="$ac_link" 3876case "(($ac_try" in 3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3878 *) ac_try_echo=$ac_try;; 3879esac 3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3881$as_echo "$ac_try_echo"; } >&5 3882 (eval "$ac_link") 2>&5 3883 ac_status=$? 3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3885 test $ac_status = 0; }; then : 3886 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3888# work properly (i.e., refer to `conftest.exe'), while it won't with 3889# `rm'. 3890for ac_file in conftest.exe conftest conftest.*; do 3891 test -f "$ac_file" || continue 3892 case $ac_file in 3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3895 break;; 3896 * ) break;; 3897 esac 3898done 3899else 3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3902as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3903See \`config.log' for more details" "$LINENO" 5; } 3904fi 3905rm -f conftest conftest$ac_cv_exeext 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3907$as_echo "$ac_cv_exeext" >&6; } 3908 3909rm -f conftest.$ac_ext 3910EXEEXT=$ac_cv_exeext 3911ac_exeext=$EXEEXT 3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914#include <stdio.h> 3915int 3916main () 3917{ 3918FILE *f = fopen ("conftest.out", "w"); 3919 return ferror (f) || fclose (f) != 0; 3920 3921 ; 3922 return 0; 3923} 3924_ACEOF 3925ac_clean_files="$ac_clean_files conftest.out" 3926# Check that the compiler produces executables we can run. If not, either 3927# the compiler is broken, or we cross compile. 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3929$as_echo_n "checking whether we are cross compiling... " >&6; } 3930if test "$cross_compiling" != yes; then 3931 { { ac_try="$ac_link" 3932case "(($ac_try" in 3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3934 *) ac_try_echo=$ac_try;; 3935esac 3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3937$as_echo "$ac_try_echo"; } >&5 3938 (eval "$ac_link") 2>&5 3939 ac_status=$? 3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3941 test $ac_status = 0; } 3942 if { ac_try='./conftest$ac_cv_exeext' 3943 { { case "(($ac_try" in 3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3945 *) ac_try_echo=$ac_try;; 3946esac 3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3948$as_echo "$ac_try_echo"; } >&5 3949 (eval "$ac_try") 2>&5 3950 ac_status=$? 3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3952 test $ac_status = 0; }; }; then 3953 cross_compiling=no 3954 else 3955 if test "$cross_compiling" = maybe; then 3956 cross_compiling=yes 3957 else 3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3960as_fn_error $? "cannot run C compiled programs. 3961If you meant to cross compile, use \`--host'. 3962See \`config.log' for more details" "$LINENO" 5; } 3963 fi 3964 fi 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3967$as_echo "$cross_compiling" >&6; } 3968 3969rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3970ac_clean_files=$ac_clean_files_save 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3972$as_echo_n "checking for suffix of object files... " >&6; } 3973if ${ac_cv_objext+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979int 3980main () 3981{ 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987rm -f conftest.o conftest.obj 3988if { { ac_try="$ac_compile" 3989case "(($ac_try" in 3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3991 *) ac_try_echo=$ac_try;; 3992esac 3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3994$as_echo "$ac_try_echo"; } >&5 3995 (eval "$ac_compile") 2>&5 3996 ac_status=$? 3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; }; then : 3999 for ac_file in conftest.o conftest.obj conftest.*; do 4000 test -f "$ac_file" || continue; 4001 case $ac_file in 4002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4003 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4004 break;; 4005 esac 4006done 4007else 4008 $as_echo "$as_me: failed program was:" >&5 4009sed 's/^/| /' conftest.$ac_ext >&5 4010 4011{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4013as_fn_error $? "cannot compute suffix of object files: cannot compile 4014See \`config.log' for more details" "$LINENO" 5; } 4015fi 4016rm -f conftest.$ac_cv_objext conftest.$ac_ext 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4019$as_echo "$ac_cv_objext" >&6; } 4020OBJEXT=$ac_cv_objext 4021ac_objext=$OBJEXT 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4023$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4024if ${ac_cv_c_compiler_gnu+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029 4030int 4031main () 4032{ 4033#ifndef __GNUC__ 4034 choke me 4035#endif 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041if ac_fn_c_try_compile "$LINENO"; then : 4042 ac_compiler_gnu=yes 4043else 4044 ac_compiler_gnu=no 4045fi 4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4047ac_cv_c_compiler_gnu=$ac_compiler_gnu 4048 4049fi 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4051$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4052if test $ac_compiler_gnu = yes; then 4053 GCC=yes 4054else 4055 GCC= 4056fi 4057ac_test_CFLAGS=${CFLAGS+set} 4058ac_save_CFLAGS=$CFLAGS 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4060$as_echo_n "checking whether $CC accepts -g... " >&6; } 4061if ${ac_cv_prog_cc_g+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 ac_save_c_werror_flag=$ac_c_werror_flag 4065 ac_c_werror_flag=yes 4066 ac_cv_prog_cc_g=no 4067 CFLAGS="-g" 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070 4071int 4072main () 4073{ 4074 4075 ; 4076 return 0; 4077} 4078_ACEOF 4079if ac_fn_c_try_compile "$LINENO"; then : 4080 ac_cv_prog_cc_g=yes 4081else 4082 CFLAGS="" 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085 4086int 4087main () 4088{ 4089 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094if ac_fn_c_try_compile "$LINENO"; then : 4095 4096else 4097 ac_c_werror_flag=$ac_save_c_werror_flag 4098 CFLAGS="-g" 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101 4102int 4103main () 4104{ 4105 4106 ; 4107 return 0; 4108} 4109_ACEOF 4110if ac_fn_c_try_compile "$LINENO"; then : 4111 ac_cv_prog_cc_g=yes 4112fi 4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4114fi 4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4116fi 4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4118 ac_c_werror_flag=$ac_save_c_werror_flag 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4121$as_echo "$ac_cv_prog_cc_g" >&6; } 4122if test "$ac_test_CFLAGS" = set; then 4123 CFLAGS=$ac_save_CFLAGS 4124elif test $ac_cv_prog_cc_g = yes; then 4125 if test "$GCC" = yes; then 4126 CFLAGS="-g -O2" 4127 else 4128 CFLAGS="-g" 4129 fi 4130else 4131 if test "$GCC" = yes; then 4132 CFLAGS="-O2" 4133 else 4134 CFLAGS= 4135 fi 4136fi 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4138$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4139if ${ac_cv_prog_cc_c89+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141else 4142 ac_cv_prog_cc_c89=no 4143ac_save_CC=$CC 4144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146#include <stdarg.h> 4147#include <stdio.h> 4148struct stat; 4149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4150struct buf { int x; }; 4151FILE * (*rcsopen) (struct buf *, struct stat *, int); 4152static char *e (p, i) 4153 char **p; 4154 int i; 4155{ 4156 return p[i]; 4157} 4158static char *f (char * (*g) (char **, int), char **p, ...) 4159{ 4160 char *s; 4161 va_list v; 4162 va_start (v,p); 4163 s = g (p, va_arg (v,int)); 4164 va_end (v); 4165 return s; 4166} 4167 4168/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4169 function prototypes and stuff, but not '\xHH' hex character constants. 4170 These don't provoke an error unfortunately, instead are silently treated 4171 as 'x'. The following induces an error, until -std is added to get 4172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4173 array size at least. It's necessary to write '\x00'==0 to get something 4174 that's true only with -std. */ 4175int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4176 4177/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4178 inside strings and character constants. */ 4179#define FOO(x) 'x' 4180int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4181 4182int test (int i, double x); 4183struct s1 {int (*f) (int a);}; 4184struct s2 {int (*f) (double a);}; 4185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4186int argc; 4187char **argv; 4188int 4189main () 4190{ 4191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4198do 4199 CC="$ac_save_CC $ac_arg" 4200 if ac_fn_c_try_compile "$LINENO"; then : 4201 ac_cv_prog_cc_c89=$ac_arg 4202fi 4203rm -f core conftest.err conftest.$ac_objext 4204 test "x$ac_cv_prog_cc_c89" != "xno" && break 4205done 4206rm -f conftest.$ac_ext 4207CC=$ac_save_CC 4208 4209fi 4210# AC_CACHE_VAL 4211case "x$ac_cv_prog_cc_c89" in 4212 x) 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4214$as_echo "none needed" >&6; } ;; 4215 xno) 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4217$as_echo "unsupported" >&6; } ;; 4218 *) 4219 CC="$CC $ac_cv_prog_cc_c89" 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4221$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4222esac 4223if test "x$ac_cv_prog_cc_c89" != xno; then : 4224 4225fi 4226 4227ac_ext=c 4228ac_cpp='$CPP $CPPFLAGS' 4229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4231ac_compiler_gnu=$ac_cv_c_compiler_gnu 4232 4233depcc="$CC" am_compiler_list= 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4236$as_echo_n "checking dependency style of $depcc... " >&6; } 4237if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4241 # We make a subdir and do the tests there. Otherwise we can end up 4242 # making bogus files that we don't know about and never remove. For 4243 # instance it was reported that on HP-UX the gcc test will end up 4244 # making a dummy file named 'D' -- because '-MD' means "put the output 4245 # in D". 4246 rm -rf conftest.dir 4247 mkdir conftest.dir 4248 # Copy depcomp to subdir because otherwise we won't find it if we're 4249 # using a relative directory. 4250 cp "$am_depcomp" conftest.dir 4251 cd conftest.dir 4252 # We will build objects and dependencies in a subdirectory because 4253 # it helps to detect inapplicable dependency modes. For instance 4254 # both Tru64's cc and ICC support -MD to output dependencies as a 4255 # side effect of compilation, but ICC will put the dependencies in 4256 # the current directory while Tru64 will put them in the object 4257 # directory. 4258 mkdir sub 4259 4260 am_cv_CC_dependencies_compiler_type=none 4261 if test "$am_compiler_list" = ""; then 4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4263 fi 4264 am__universal=false 4265 case " $depcc " in #( 4266 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4267 esac 4268 4269 for depmode in $am_compiler_list; do 4270 # Setup a source with many dependencies, because some compilers 4271 # like to wrap large dependency lists on column 80 (with \), and 4272 # we should not choose a depcomp mode which is confused by this. 4273 # 4274 # We need to recreate these files for each test, as the compiler may 4275 # overwrite some of them when testing with obscure command lines. 4276 # This happens at least with the AIX C compiler. 4277 : > sub/conftest.c 4278 for i in 1 2 3 4 5 6; do 4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4281 # Solaris 10 /bin/sh. 4282 echo '/* dummy */' > sub/conftst$i.h 4283 done 4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4285 4286 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4287 # mode. It turns out that the SunPro C++ compiler does not properly 4288 # handle '-M -o', and we need to detect this. Also, some Intel 4289 # versions had trouble with output in subdirs. 4290 am__obj=sub/conftest.${OBJEXT-o} 4291 am__minus_obj="-o $am__obj" 4292 case $depmode in 4293 gcc) 4294 # This depmode causes a compiler race in universal mode. 4295 test "$am__universal" = false || continue 4296 ;; 4297 nosideeffect) 4298 # After this tag, mechanisms are not by side-effect, so they'll 4299 # only be used when explicitly requested. 4300 if test "x$enable_dependency_tracking" = xyes; then 4301 continue 4302 else 4303 break 4304 fi 4305 ;; 4306 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4307 # This compiler won't grok '-c -o', but also, the minuso test has 4308 # not run yet. These depmodes are late enough in the game, and 4309 # so weak that their functioning should not be impacted. 4310 am__obj=conftest.${OBJEXT-o} 4311 am__minus_obj= 4312 ;; 4313 none) break ;; 4314 esac 4315 if depmode=$depmode \ 4316 source=sub/conftest.c object=$am__obj \ 4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4319 >/dev/null 2>conftest.err && 4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4324 # icc doesn't choke on unknown options, it will just issue warnings 4325 # or remarks (even with -Werror). So we grep stderr for any message 4326 # that says an option was ignored or not supported. 4327 # When given -MP, icc 7.0 and 7.1 complain thusly: 4328 # icc: Command line warning: ignoring option '-M'; no argument required 4329 # The diagnosis changed in icc 8.0: 4330 # icc: Command line remark: option '-MP' not supported 4331 if (grep 'ignoring option' conftest.err || 4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4333 am_cv_CC_dependencies_compiler_type=$depmode 4334 break 4335 fi 4336 fi 4337 done 4338 4339 cd .. 4340 rm -rf conftest.dir 4341else 4342 am_cv_CC_dependencies_compiler_type=none 4343fi 4344 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4349 4350 if 4351 test "x$enable_dependency_tracking" != xno \ 4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4353 am__fastdepCC_TRUE= 4354 am__fastdepCC_FALSE='#' 4355else 4356 am__fastdepCC_TRUE='#' 4357 am__fastdepCC_FALSE= 4358fi 4359 4360 4361 4362if test -n "$ac_tool_prefix"; then 4363 for ac_prog in ar lib "link -lib" 4364 do 4365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4366set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4368$as_echo_n "checking for $ac_word... " >&6; } 4369if ${ac_cv_prog_AR+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -n "$AR"; then 4373 ac_cv_prog_AR="$AR" # Let the user override the test. 4374else 4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376for as_dir in $PATH 4377do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4382 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4384 break 2 4385 fi 4386done 4387 done 4388IFS=$as_save_IFS 4389 4390fi 4391fi 4392AR=$ac_cv_prog_AR 4393if test -n "$AR"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4395$as_echo "$AR" >&6; } 4396else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398$as_echo "no" >&6; } 4399fi 4400 4401 4402 test -n "$AR" && break 4403 done 4404fi 4405if test -z "$AR"; then 4406 ac_ct_AR=$AR 4407 for ac_prog in ar lib "link -lib" 4408do 4409 # Extract the first word of "$ac_prog", so it can be a program name with args. 4410set dummy $ac_prog; ac_word=$2 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4412$as_echo_n "checking for $ac_word... " >&6; } 4413if ${ac_cv_prog_ac_ct_AR+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -n "$ac_ct_AR"; then 4417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4418else 4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4426 ac_cv_prog_ac_ct_AR="$ac_prog" 4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4428 break 2 4429 fi 4430done 4431 done 4432IFS=$as_save_IFS 4433 4434fi 4435fi 4436ac_ct_AR=$ac_cv_prog_ac_ct_AR 4437if test -n "$ac_ct_AR"; then 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4439$as_echo "$ac_ct_AR" >&6; } 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4442$as_echo "no" >&6; } 4443fi 4444 4445 4446 test -n "$ac_ct_AR" && break 4447done 4448 4449 if test "x$ac_ct_AR" = x; then 4450 AR="false" 4451 else 4452 case $cross_compiling:$ac_tool_warned in 4453yes:) 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4456ac_tool_warned=yes ;; 4457esac 4458 AR=$ac_ct_AR 4459 fi 4460fi 4461 4462: ${AR=ar} 4463 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4465$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4466if ${am_cv_ar_interface+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 am_cv_ar_interface=ar 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472int some_variable = 0; 4473_ACEOF 4474if ac_fn_c_try_compile "$LINENO"; then : 4475 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4477 (eval $am_ar_try) 2>&5 4478 ac_status=$? 4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4480 test $ac_status = 0; } 4481 if test "$ac_status" -eq 0; then 4482 am_cv_ar_interface=ar 4483 else 4484 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4486 (eval $am_ar_try) 2>&5 4487 ac_status=$? 4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4489 test $ac_status = 0; } 4490 if test "$ac_status" -eq 0; then 4491 am_cv_ar_interface=lib 4492 else 4493 am_cv_ar_interface=unknown 4494 fi 4495 fi 4496 rm -f conftest.lib libconftest.a 4497 4498fi 4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4500 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4503$as_echo "$am_cv_ar_interface" >&6; } 4504 4505case $am_cv_ar_interface in 4506ar) 4507 ;; 4508lib) 4509 # Microsoft lib, so override with the ar-lib wrapper script. 4510 # FIXME: It is wrong to rewrite AR. 4511 # But if we don't then we get into trouble of one sort or another. 4512 # A longer-term fix would be to have automake use am__AR in this case, 4513 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4514 # similar. 4515 AR="$am_aux_dir/ar-lib $AR" 4516 ;; 4517unknown) 4518 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4519 ;; 4520esac 4521 4522 4523# CC 4524 4525ac_ext=c 4526ac_cpp='$CPP $CPPFLAGS' 4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4529ac_compiler_gnu=$ac_cv_c_compiler_gnu 4530if test -n "$ac_tool_prefix"; then 4531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4532set dummy ${ac_tool_prefix}gcc; ac_word=$2 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4534$as_echo_n "checking for $ac_word... " >&6; } 4535if ${ac_cv_prog_CC+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 if test -n "$CC"; then 4539 ac_cv_prog_CC="$CC" # Let the user override the test. 4540else 4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4542for as_dir in $PATH 4543do 4544 IFS=$as_save_IFS 4545 test -z "$as_dir" && as_dir=. 4546 for ac_exec_ext in '' $ac_executable_extensions; do 4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4548 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4550 break 2 4551 fi 4552done 4553 done 4554IFS=$as_save_IFS 4555 4556fi 4557fi 4558CC=$ac_cv_prog_CC 4559if test -n "$CC"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4561$as_echo "$CC" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566 4567 4568fi 4569if test -z "$ac_cv_prog_CC"; then 4570 ac_ct_CC=$CC 4571 # Extract the first word of "gcc", so it can be a program name with args. 4572set dummy gcc; ac_word=$2 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4574$as_echo_n "checking for $ac_word... " >&6; } 4575if ${ac_cv_prog_ac_ct_CC+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 if test -n "$ac_ct_CC"; then 4579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4580else 4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH 4583do 4584 IFS=$as_save_IFS 4585 test -z "$as_dir" && as_dir=. 4586 for ac_exec_ext in '' $ac_executable_extensions; do 4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4588 ac_cv_prog_ac_ct_CC="gcc" 4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4590 break 2 4591 fi 4592done 4593 done 4594IFS=$as_save_IFS 4595 4596fi 4597fi 4598ac_ct_CC=$ac_cv_prog_ac_ct_CC 4599if test -n "$ac_ct_CC"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4601$as_echo "$ac_ct_CC" >&6; } 4602else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604$as_echo "no" >&6; } 4605fi 4606 4607 if test "x$ac_ct_CC" = x; then 4608 CC="" 4609 else 4610 case $cross_compiling:$ac_tool_warned in 4611yes:) 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4614ac_tool_warned=yes ;; 4615esac 4616 CC=$ac_ct_CC 4617 fi 4618else 4619 CC="$ac_cv_prog_CC" 4620fi 4621 4622if test -z "$CC"; then 4623 if test -n "$ac_tool_prefix"; then 4624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4625set dummy ${ac_tool_prefix}cc; ac_word=$2 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4627$as_echo_n "checking for $ac_word... " >&6; } 4628if ${ac_cv_prog_CC+:} false; then : 4629 $as_echo_n "(cached) " >&6 4630else 4631 if test -n "$CC"; then 4632 ac_cv_prog_CC="$CC" # Let the user override the test. 4633else 4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4641 ac_cv_prog_CC="${ac_tool_prefix}cc" 4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646 done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651CC=$ac_cv_prog_CC 4652if test -n "$CC"; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4654$as_echo "$CC" >&6; } 4655else 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657$as_echo "no" >&6; } 4658fi 4659 4660 4661 fi 4662fi 4663if test -z "$CC"; then 4664 # Extract the first word of "cc", so it can be a program name with args. 4665set dummy cc; ac_word=$2 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4667$as_echo_n "checking for $ac_word... " >&6; } 4668if ${ac_cv_prog_CC+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 if test -n "$CC"; then 4672 ac_cv_prog_CC="$CC" # Let the user override the test. 4673else 4674 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4683 ac_prog_rejected=yes 4684 continue 4685 fi 4686 ac_cv_prog_CC="cc" 4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4688 break 2 4689 fi 4690done 4691 done 4692IFS=$as_save_IFS 4693 4694if test $ac_prog_rejected = yes; then 4695 # We found a bogon in the path, so make sure we never use it. 4696 set dummy $ac_cv_prog_CC 4697 shift 4698 if test $# != 0; then 4699 # We chose a different compiler from the bogus one. 4700 # However, it has the same basename, so the bogon will be chosen 4701 # first if we set CC to just the basename; use the full file name. 4702 shift 4703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4704 fi 4705fi 4706fi 4707fi 4708CC=$ac_cv_prog_CC 4709if test -n "$CC"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4711$as_echo "$CC" >&6; } 4712else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716 4717 4718fi 4719if test -z "$CC"; then 4720 if test -n "$ac_tool_prefix"; then 4721 for ac_prog in cl.exe 4722 do 4723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4724set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726$as_echo_n "checking for $ac_word... " >&6; } 4727if ${ac_cv_prog_CC+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 if test -n "$CC"; then 4731 ac_cv_prog_CC="$CC" # Let the user override the test. 4732else 4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744done 4745 done 4746IFS=$as_save_IFS 4747 4748fi 4749fi 4750CC=$ac_cv_prog_CC 4751if test -n "$CC"; then 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4753$as_echo "$CC" >&6; } 4754else 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4756$as_echo "no" >&6; } 4757fi 4758 4759 4760 test -n "$CC" && break 4761 done 4762fi 4763if test -z "$CC"; then 4764 ac_ct_CC=$CC 4765 for ac_prog in cl.exe 4766do 4767 # Extract the first word of "$ac_prog", so it can be a program name with args. 4768set dummy $ac_prog; ac_word=$2 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4770$as_echo_n "checking for $ac_word... " >&6; } 4771if ${ac_cv_prog_ac_ct_CC+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 if test -n "$ac_ct_CC"; then 4775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4776else 4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4778for as_dir in $PATH 4779do 4780 IFS=$as_save_IFS 4781 test -z "$as_dir" && as_dir=. 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4784 ac_cv_prog_ac_ct_CC="$ac_prog" 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789 done 4790IFS=$as_save_IFS 4791 4792fi 4793fi 4794ac_ct_CC=$ac_cv_prog_ac_ct_CC 4795if test -n "$ac_ct_CC"; then 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4797$as_echo "$ac_ct_CC" >&6; } 4798else 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4800$as_echo "no" >&6; } 4801fi 4802 4803 4804 test -n "$ac_ct_CC" && break 4805done 4806 4807 if test "x$ac_ct_CC" = x; then 4808 CC="" 4809 else 4810 case $cross_compiling:$ac_tool_warned in 4811yes:) 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4814ac_tool_warned=yes ;; 4815esac 4816 CC=$ac_ct_CC 4817 fi 4818fi 4819 4820fi 4821 4822 4823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4825as_fn_error $? "no acceptable C compiler found in \$PATH 4826See \`config.log' for more details" "$LINENO" 5; } 4827 4828# Provide some information about the compiler. 4829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4830set X $ac_compile 4831ac_compiler=$2 4832for ac_option in --version -v -V -qversion; do 4833 { { ac_try="$ac_compiler $ac_option >&5" 4834case "(($ac_try" in 4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4836 *) ac_try_echo=$ac_try;; 4837esac 4838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4839$as_echo "$ac_try_echo"; } >&5 4840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4841 ac_status=$? 4842 if test -s conftest.err; then 4843 sed '10a\ 4844... rest of stderr output deleted ... 4845 10q' conftest.err >conftest.er1 4846 cat conftest.er1 >&5 4847 fi 4848 rm -f conftest.er1 conftest.err 4849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4850 test $ac_status = 0; } 4851done 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4855if ${ac_cv_c_compiler_gnu+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860 4861int 4862main () 4863{ 4864#ifndef __GNUC__ 4865 choke me 4866#endif 4867 4868 ; 4869 return 0; 4870} 4871_ACEOF 4872if ac_fn_c_try_compile "$LINENO"; then : 4873 ac_compiler_gnu=yes 4874else 4875 ac_compiler_gnu=no 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4878ac_cv_c_compiler_gnu=$ac_compiler_gnu 4879 4880fi 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4882$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4883if test $ac_compiler_gnu = yes; then 4884 GCC=yes 4885else 4886 GCC= 4887fi 4888ac_test_CFLAGS=${CFLAGS+set} 4889ac_save_CFLAGS=$CFLAGS 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4891$as_echo_n "checking whether $CC accepts -g... " >&6; } 4892if ${ac_cv_prog_cc_g+:} false; then : 4893 $as_echo_n "(cached) " >&6 4894else 4895 ac_save_c_werror_flag=$ac_c_werror_flag 4896 ac_c_werror_flag=yes 4897 ac_cv_prog_cc_g=no 4898 CFLAGS="-g" 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901 4902int 4903main () 4904{ 4905 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910if ac_fn_c_try_compile "$LINENO"; then : 4911 ac_cv_prog_cc_g=yes 4912else 4913 CFLAGS="" 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915/* end confdefs.h. */ 4916 4917int 4918main () 4919{ 4920 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 4927else 4928 ac_c_werror_flag=$ac_save_c_werror_flag 4929 CFLAGS="-g" 4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931/* end confdefs.h. */ 4932 4933int 4934main () 4935{ 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941if ac_fn_c_try_compile "$LINENO"; then : 4942 ac_cv_prog_cc_g=yes 4943fi 4944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4945fi 4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4947fi 4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4949 ac_c_werror_flag=$ac_save_c_werror_flag 4950fi 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4952$as_echo "$ac_cv_prog_cc_g" >&6; } 4953if test "$ac_test_CFLAGS" = set; then 4954 CFLAGS=$ac_save_CFLAGS 4955elif test $ac_cv_prog_cc_g = yes; then 4956 if test "$GCC" = yes; then 4957 CFLAGS="-g -O2" 4958 else 4959 CFLAGS="-g" 4960 fi 4961else 4962 if test "$GCC" = yes; then 4963 CFLAGS="-O2" 4964 else 4965 CFLAGS= 4966 fi 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4970if ${ac_cv_prog_cc_c89+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 ac_cv_prog_cc_c89=no 4974ac_save_CC=$CC 4975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977#include <stdarg.h> 4978#include <stdio.h> 4979struct stat; 4980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4981struct buf { int x; }; 4982FILE * (*rcsopen) (struct buf *, struct stat *, int); 4983static char *e (p, i) 4984 char **p; 4985 int i; 4986{ 4987 return p[i]; 4988} 4989static char *f (char * (*g) (char **, int), char **p, ...) 4990{ 4991 char *s; 4992 va_list v; 4993 va_start (v,p); 4994 s = g (p, va_arg (v,int)); 4995 va_end (v); 4996 return s; 4997} 4998 4999/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5000 function prototypes and stuff, but not '\xHH' hex character constants. 5001 These don't provoke an error unfortunately, instead are silently treated 5002 as 'x'. The following induces an error, until -std is added to get 5003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5004 array size at least. It's necessary to write '\x00'==0 to get something 5005 that's true only with -std. */ 5006int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5007 5008/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5009 inside strings and character constants. */ 5010#define FOO(x) 'x' 5011int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5012 5013int test (int i, double x); 5014struct s1 {int (*f) (int a);}; 5015struct s2 {int (*f) (double a);}; 5016int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5017int argc; 5018char **argv; 5019int 5020main () 5021{ 5022return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5023 ; 5024 return 0; 5025} 5026_ACEOF 5027for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5029do 5030 CC="$ac_save_CC $ac_arg" 5031 if ac_fn_c_try_compile "$LINENO"; then : 5032 ac_cv_prog_cc_c89=$ac_arg 5033fi 5034rm -f core conftest.err conftest.$ac_objext 5035 test "x$ac_cv_prog_cc_c89" != "xno" && break 5036done 5037rm -f conftest.$ac_ext 5038CC=$ac_save_CC 5039 5040fi 5041# AC_CACHE_VAL 5042case "x$ac_cv_prog_cc_c89" in 5043 x) 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5045$as_echo "none needed" >&6; } ;; 5046 xno) 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5048$as_echo "unsupported" >&6; } ;; 5049 *) 5050 CC="$CC $ac_cv_prog_cc_c89" 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5053esac 5054if test "x$ac_cv_prog_cc_c89" != xno; then : 5055 5056fi 5057 5058ac_ext=c 5059ac_cpp='$CPP $CPPFLAGS' 5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5062ac_compiler_gnu=$ac_cv_c_compiler_gnu 5063 5064depcc="$CC" am_compiler_list= 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5067$as_echo_n "checking dependency style of $depcc... " >&6; } 5068if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5072 # We make a subdir and do the tests there. Otherwise we can end up 5073 # making bogus files that we don't know about and never remove. For 5074 # instance it was reported that on HP-UX the gcc test will end up 5075 # making a dummy file named 'D' -- because '-MD' means "put the output 5076 # in D". 5077 rm -rf conftest.dir 5078 mkdir conftest.dir 5079 # Copy depcomp to subdir because otherwise we won't find it if we're 5080 # using a relative directory. 5081 cp "$am_depcomp" conftest.dir 5082 cd conftest.dir 5083 # We will build objects and dependencies in a subdirectory because 5084 # it helps to detect inapplicable dependency modes. For instance 5085 # both Tru64's cc and ICC support -MD to output dependencies as a 5086 # side effect of compilation, but ICC will put the dependencies in 5087 # the current directory while Tru64 will put them in the object 5088 # directory. 5089 mkdir sub 5090 5091 am_cv_CC_dependencies_compiler_type=none 5092 if test "$am_compiler_list" = ""; then 5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5094 fi 5095 am__universal=false 5096 case " $depcc " in #( 5097 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5098 esac 5099 5100 for depmode in $am_compiler_list; do 5101 # Setup a source with many dependencies, because some compilers 5102 # like to wrap large dependency lists on column 80 (with \), and 5103 # we should not choose a depcomp mode which is confused by this. 5104 # 5105 # We need to recreate these files for each test, as the compiler may 5106 # overwrite some of them when testing with obscure command lines. 5107 # This happens at least with the AIX C compiler. 5108 : > sub/conftest.c 5109 for i in 1 2 3 4 5 6; do 5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5112 # Solaris 10 /bin/sh. 5113 echo '/* dummy */' > sub/conftst$i.h 5114 done 5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5116 5117 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5118 # mode. It turns out that the SunPro C++ compiler does not properly 5119 # handle '-M -o', and we need to detect this. Also, some Intel 5120 # versions had trouble with output in subdirs. 5121 am__obj=sub/conftest.${OBJEXT-o} 5122 am__minus_obj="-o $am__obj" 5123 case $depmode in 5124 gcc) 5125 # This depmode causes a compiler race in universal mode. 5126 test "$am__universal" = false || continue 5127 ;; 5128 nosideeffect) 5129 # After this tag, mechanisms are not by side-effect, so they'll 5130 # only be used when explicitly requested. 5131 if test "x$enable_dependency_tracking" = xyes; then 5132 continue 5133 else 5134 break 5135 fi 5136 ;; 5137 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5138 # This compiler won't grok '-c -o', but also, the minuso test has 5139 # not run yet. These depmodes are late enough in the game, and 5140 # so weak that their functioning should not be impacted. 5141 am__obj=conftest.${OBJEXT-o} 5142 am__minus_obj= 5143 ;; 5144 none) break ;; 5145 esac 5146 if depmode=$depmode \ 5147 source=sub/conftest.c object=$am__obj \ 5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5150 >/dev/null 2>conftest.err && 5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5155 # icc doesn't choke on unknown options, it will just issue warnings 5156 # or remarks (even with -Werror). So we grep stderr for any message 5157 # that says an option was ignored or not supported. 5158 # When given -MP, icc 7.0 and 7.1 complain thusly: 5159 # icc: Command line warning: ignoring option '-M'; no argument required 5160 # The diagnosis changed in icc 8.0: 5161 # icc: Command line remark: option '-MP' not supported 5162 if (grep 'ignoring option' conftest.err || 5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5164 am_cv_CC_dependencies_compiler_type=$depmode 5165 break 5166 fi 5167 fi 5168 done 5169 5170 cd .. 5171 rm -rf conftest.dir 5172else 5173 am_cv_CC_dependencies_compiler_type=none 5174fi 5175 5176fi 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5178$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5179CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5180 5181 if 5182 test "x$enable_dependency_tracking" != xno \ 5183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5184 am__fastdepCC_TRUE= 5185 am__fastdepCC_FALSE='#' 5186else 5187 am__fastdepCC_TRUE='#' 5188 am__fastdepCC_FALSE= 5189fi 5190 5191 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5193$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5194if ${ac_cv_prog_cc_c99+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 ac_cv_prog_cc_c99=no 5198ac_save_CC=$CC 5199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201#include <stdarg.h> 5202#include <stdbool.h> 5203#include <stdlib.h> 5204#include <wchar.h> 5205#include <stdio.h> 5206 5207// Check varargs macros. These examples are taken from C99 6.10.3.5. 5208#define debug(...) fprintf (stderr, __VA_ARGS__) 5209#define showlist(...) puts (#__VA_ARGS__) 5210#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5211static void 5212test_varargs_macros (void) 5213{ 5214 int x = 1234; 5215 int y = 5678; 5216 debug ("Flag"); 5217 debug ("X = %d\n", x); 5218 showlist (The first, second, and third items.); 5219 report (x>y, "x is %d but y is %d", x, y); 5220} 5221 5222// Check long long types. 5223#define BIG64 18446744073709551615ull 5224#define BIG32 4294967295ul 5225#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5226#if !BIG_OK 5227 your preprocessor is broken; 5228#endif 5229#if BIG_OK 5230#else 5231 your preprocessor is broken; 5232#endif 5233static long long int bignum = -9223372036854775807LL; 5234static unsigned long long int ubignum = BIG64; 5235 5236struct incomplete_array 5237{ 5238 int datasize; 5239 double data[]; 5240}; 5241 5242struct named_init { 5243 int number; 5244 const wchar_t *name; 5245 double average; 5246}; 5247 5248typedef const char *ccp; 5249 5250static inline int 5251test_restrict (ccp restrict text) 5252{ 5253 // See if C++-style comments work. 5254 // Iterate through items via the restricted pointer. 5255 // Also check for declarations in for loops. 5256 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5257 continue; 5258 return 0; 5259} 5260 5261// Check varargs and va_copy. 5262static void 5263test_varargs (const char *format, ...) 5264{ 5265 va_list args; 5266 va_start (args, format); 5267 va_list args_copy; 5268 va_copy (args_copy, args); 5269 5270 const char *str; 5271 int number; 5272 float fnumber; 5273 5274 while (*format) 5275 { 5276 switch (*format++) 5277 { 5278 case 's': // string 5279 str = va_arg (args_copy, const char *); 5280 break; 5281 case 'd': // int 5282 number = va_arg (args_copy, int); 5283 break; 5284 case 'f': // float 5285 fnumber = va_arg (args_copy, double); 5286 break; 5287 default: 5288 break; 5289 } 5290 } 5291 va_end (args_copy); 5292 va_end (args); 5293} 5294 5295int 5296main () 5297{ 5298 5299 // Check bool. 5300 _Bool success = false; 5301 5302 // Check restrict. 5303 if (test_restrict ("String literal") == 0) 5304 success = true; 5305 char *restrict newvar = "Another string"; 5306 5307 // Check varargs. 5308 test_varargs ("s, d' f .", "string", 65, 34.234); 5309 test_varargs_macros (); 5310 5311 // Check flexible array members. 5312 struct incomplete_array *ia = 5313 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5314 ia->datasize = 10; 5315 for (int i = 0; i < ia->datasize; ++i) 5316 ia->data[i] = i * 1.234; 5317 5318 // Check named initializers. 5319 struct named_init ni = { 5320 .number = 34, 5321 .name = L"Test wide string", 5322 .average = 543.34343, 5323 }; 5324 5325 ni.number = 58; 5326 5327 int dynamic_array[ni.number]; 5328 dynamic_array[ni.number - 1] = 543; 5329 5330 // work around unused variable warnings 5331 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5332 || dynamic_array[ni.number - 1] != 543); 5333 5334 ; 5335 return 0; 5336} 5337_ACEOF 5338for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5339do 5340 CC="$ac_save_CC $ac_arg" 5341 if ac_fn_c_try_compile "$LINENO"; then : 5342 ac_cv_prog_cc_c99=$ac_arg 5343fi 5344rm -f core conftest.err conftest.$ac_objext 5345 test "x$ac_cv_prog_cc_c99" != "xno" && break 5346done 5347rm -f conftest.$ac_ext 5348CC=$ac_save_CC 5349 5350fi 5351# AC_CACHE_VAL 5352case "x$ac_cv_prog_cc_c99" in 5353 x) 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5355$as_echo "none needed" >&6; } ;; 5356 xno) 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5358$as_echo "unsupported" >&6; } ;; 5359 *) 5360 CC="$CC $ac_cv_prog_cc_c99" 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5362$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5363esac 5364if test "x$ac_cv_prog_cc_c99" != xno; then : 5365 5366fi 5367 5368 5369if test "x$CC" != xcc; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5371$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5372else 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5374$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5375fi 5376set dummy $CC; ac_cc=`$as_echo "$2" | 5377 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5378if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5382/* end confdefs.h. */ 5383 5384int 5385main () 5386{ 5387 5388 ; 5389 return 0; 5390} 5391_ACEOF 5392# Make sure it works both with $CC and with simple cc. 5393# We do the test twice because some compilers refuse to overwrite an 5394# existing .o file with -o, though they will create one. 5395ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5396rm -f conftest2.* 5397if { { case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5402$as_echo "$ac_try_echo"; } >&5 5403 (eval "$ac_try") 2>&5 5404 ac_status=$? 5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5406 test $ac_status = 0; } && 5407 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5409 *) ac_try_echo=$ac_try;; 5410esac 5411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5412$as_echo "$ac_try_echo"; } >&5 5413 (eval "$ac_try") 2>&5 5414 ac_status=$? 5415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5416 test $ac_status = 0; }; 5417then 5418 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5419 if test "x$CC" != xcc; then 5420 # Test first that cc exists at all. 5421 if { ac_try='cc -c conftest.$ac_ext >&5' 5422 { { case "(($ac_try" in 5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5424 *) ac_try_echo=$ac_try;; 5425esac 5426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5427$as_echo "$ac_try_echo"; } >&5 5428 (eval "$ac_try") 2>&5 5429 ac_status=$? 5430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5431 test $ac_status = 0; }; }; then 5432 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5433 rm -f conftest2.* 5434 if { { case "(($ac_try" in 5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5436 *) ac_try_echo=$ac_try;; 5437esac 5438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5439$as_echo "$ac_try_echo"; } >&5 5440 (eval "$ac_try") 2>&5 5441 ac_status=$? 5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5443 test $ac_status = 0; } && 5444 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5446 *) ac_try_echo=$ac_try;; 5447esac 5448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5449$as_echo "$ac_try_echo"; } >&5 5450 (eval "$ac_try") 2>&5 5451 ac_status=$? 5452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5453 test $ac_status = 0; }; 5454 then 5455 # cc works too. 5456 : 5457 else 5458 # cc exists but doesn't like -o. 5459 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5460 fi 5461 fi 5462 fi 5463else 5464 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5465fi 5466rm -f core conftest* 5467 5468fi 5469if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5471$as_echo "yes" >&6; } 5472else 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474$as_echo "no" >&6; } 5475 5476$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5477 5478fi 5479 5480# FIXME: we rely on the cache variable name because 5481# there is no other way. 5482set dummy $CC 5483am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5484eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5485if test "$am_t" != yes; then 5486 # Losing compiler, so override with the script. 5487 # FIXME: It is wrong to rewrite CC. 5488 # But if we don't then we get into trouble of one sort or another. 5489 # A longer-term fix would be to have automake use am__CC in this case, 5490 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5491 CC="$am_aux_dir/compile $CC" 5492fi 5493 5494 5495ac_ext=c 5496ac_cpp='$CPP $CPPFLAGS' 5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5499ac_compiler_gnu=$ac_cv_c_compiler_gnu 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5501$as_echo_n "checking how to run the C preprocessor... " >&6; } 5502# On Suns, sometimes $CPP names a directory. 5503if test -n "$CPP" && test -d "$CPP"; then 5504 CPP= 5505fi 5506if test -z "$CPP"; then 5507 if ${ac_cv_prog_CPP+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 # Double quotes because CPP needs to be expanded 5511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5512 do 5513 ac_preproc_ok=false 5514for ac_c_preproc_warn_flag in '' yes 5515do 5516 # Use a header file that comes with gcc, so configuring glibc 5517 # with a fresh cross-compiler works. 5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5519 # <limits.h> exists even on freestanding compilers. 5520 # On the NeXT, cc -E runs the code through the compiler's parser, 5521 # not just through cpp. "Syntax error" is here to catch this case. 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524#ifdef __STDC__ 5525# include <limits.h> 5526#else 5527# include <assert.h> 5528#endif 5529 Syntax error 5530_ACEOF 5531if ac_fn_c_try_cpp "$LINENO"; then : 5532 5533else 5534 # Broken: fails on valid input. 5535continue 5536fi 5537rm -f conftest.err conftest.i conftest.$ac_ext 5538 5539 # OK, works on sane cases. Now check whether nonexistent headers 5540 # can be detected and how. 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <ac_nonexistent.h> 5544_ACEOF 5545if ac_fn_c_try_cpp "$LINENO"; then : 5546 # Broken: success on invalid input. 5547continue 5548else 5549 # Passes both tests. 5550ac_preproc_ok=: 5551break 5552fi 5553rm -f conftest.err conftest.i conftest.$ac_ext 5554 5555done 5556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5557rm -f conftest.i conftest.err conftest.$ac_ext 5558if $ac_preproc_ok; then : 5559 break 5560fi 5561 5562 done 5563 ac_cv_prog_CPP=$CPP 5564 5565fi 5566 CPP=$ac_cv_prog_CPP 5567else 5568 ac_cv_prog_CPP=$CPP 5569fi 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5571$as_echo "$CPP" >&6; } 5572ac_preproc_ok=false 5573for ac_c_preproc_warn_flag in '' yes 5574do 5575 # Use a header file that comes with gcc, so configuring glibc 5576 # with a fresh cross-compiler works. 5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5578 # <limits.h> exists even on freestanding compilers. 5579 # On the NeXT, cc -E runs the code through the compiler's parser, 5580 # not just through cpp. "Syntax error" is here to catch this case. 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582/* end confdefs.h. */ 5583#ifdef __STDC__ 5584# include <limits.h> 5585#else 5586# include <assert.h> 5587#endif 5588 Syntax error 5589_ACEOF 5590if ac_fn_c_try_cpp "$LINENO"; then : 5591 5592else 5593 # Broken: fails on valid input. 5594continue 5595fi 5596rm -f conftest.err conftest.i conftest.$ac_ext 5597 5598 # OK, works on sane cases. Now check whether nonexistent headers 5599 # can be detected and how. 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601/* end confdefs.h. */ 5602#include <ac_nonexistent.h> 5603_ACEOF 5604if ac_fn_c_try_cpp "$LINENO"; then : 5605 # Broken: success on invalid input. 5606continue 5607else 5608 # Passes both tests. 5609ac_preproc_ok=: 5610break 5611fi 5612rm -f conftest.err conftest.i conftest.$ac_ext 5613 5614done 5615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5616rm -f conftest.i conftest.err conftest.$ac_ext 5617if $ac_preproc_ok; then : 5618 5619else 5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5622as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5623See \`config.log' for more details" "$LINENO" 5; } 5624fi 5625 5626ac_ext=c 5627ac_cpp='$CPP $CPPFLAGS' 5628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5630ac_compiler_gnu=$ac_cv_c_compiler_gnu 5631 5632 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5634$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5635if ${ac_cv_path_GREP+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -z "$GREP"; then 5639 ac_path_GREP_found=false 5640 # Loop through the user's path and test for each of PROGNAME-LIST 5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_prog in grep ggrep; do 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5649 as_fn_executable_p "$ac_path_GREP" || continue 5650# Check for GNU ac_path_GREP and select it if it is found. 5651 # Check for GNU $ac_path_GREP 5652case `"$ac_path_GREP" --version 2>&1` in 5653*GNU*) 5654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5655*) 5656 ac_count=0 5657 $as_echo_n 0123456789 >"conftest.in" 5658 while : 5659 do 5660 cat "conftest.in" "conftest.in" >"conftest.tmp" 5661 mv "conftest.tmp" "conftest.in" 5662 cp "conftest.in" "conftest.nl" 5663 $as_echo 'GREP' >> "conftest.nl" 5664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5666 as_fn_arith $ac_count + 1 && ac_count=$as_val 5667 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5668 # Best one so far, save it but keep looking for a better one 5669 ac_cv_path_GREP="$ac_path_GREP" 5670 ac_path_GREP_max=$ac_count 5671 fi 5672 # 10*(2^10) chars as input seems more than enough 5673 test $ac_count -gt 10 && break 5674 done 5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5676esac 5677 5678 $ac_path_GREP_found && break 3 5679 done 5680 done 5681 done 5682IFS=$as_save_IFS 5683 if test -z "$ac_cv_path_GREP"; then 5684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5685 fi 5686else 5687 ac_cv_path_GREP=$GREP 5688fi 5689 5690fi 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5692$as_echo "$ac_cv_path_GREP" >&6; } 5693 GREP="$ac_cv_path_GREP" 5694 5695 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5697$as_echo_n "checking for egrep... " >&6; } 5698if ${ac_cv_path_EGREP+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5702 then ac_cv_path_EGREP="$GREP -E" 5703 else 5704 if test -z "$EGREP"; then 5705 ac_path_EGREP_found=false 5706 # Loop through the user's path and test for each of PROGNAME-LIST 5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5709do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_prog in egrep; do 5713 for ac_exec_ext in '' $ac_executable_extensions; do 5714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5715 as_fn_executable_p "$ac_path_EGREP" || continue 5716# Check for GNU ac_path_EGREP and select it if it is found. 5717 # Check for GNU $ac_path_EGREP 5718case `"$ac_path_EGREP" --version 2>&1` in 5719*GNU*) 5720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5721*) 5722 ac_count=0 5723 $as_echo_n 0123456789 >"conftest.in" 5724 while : 5725 do 5726 cat "conftest.in" "conftest.in" >"conftest.tmp" 5727 mv "conftest.tmp" "conftest.in" 5728 cp "conftest.in" "conftest.nl" 5729 $as_echo 'EGREP' >> "conftest.nl" 5730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5732 as_fn_arith $ac_count + 1 && ac_count=$as_val 5733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5734 # Best one so far, save it but keep looking for a better one 5735 ac_cv_path_EGREP="$ac_path_EGREP" 5736 ac_path_EGREP_max=$ac_count 5737 fi 5738 # 10*(2^10) chars as input seems more than enough 5739 test $ac_count -gt 10 && break 5740 done 5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5742esac 5743 5744 $ac_path_EGREP_found && break 3 5745 done 5746 done 5747 done 5748IFS=$as_save_IFS 5749 if test -z "$ac_cv_path_EGREP"; then 5750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5751 fi 5752else 5753 ac_cv_path_EGREP=$EGREP 5754fi 5755 5756 fi 5757fi 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5759$as_echo "$ac_cv_path_EGREP" >&6; } 5760 EGREP="$ac_cv_path_EGREP" 5761 5762 5763if test $ac_cv_c_compiler_gnu = yes; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5765$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5766if ${ac_cv_prog_gcc_traditional+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 ac_pattern="Autoconf.*'x'" 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771/* end confdefs.h. */ 5772#include <sgtty.h> 5773Autoconf TIOCGETP 5774_ACEOF 5775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5776 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5777 ac_cv_prog_gcc_traditional=yes 5778else 5779 ac_cv_prog_gcc_traditional=no 5780fi 5781rm -f conftest* 5782 5783 5784 if test $ac_cv_prog_gcc_traditional = no; then 5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5786/* end confdefs.h. */ 5787#include <termio.h> 5788Autoconf TCGETA 5789_ACEOF 5790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5791 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5792 ac_cv_prog_gcc_traditional=yes 5793fi 5794rm -f conftest* 5795 5796 fi 5797fi 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5799$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5800 if test $ac_cv_prog_gcc_traditional = yes; then 5801 CC="$CC -traditional" 5802 fi 5803fi 5804 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5806$as_echo_n "checking for ANSI C header files... " >&6; } 5807if ${ac_cv_header_stdc+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811/* end confdefs.h. */ 5812#include <stdlib.h> 5813#include <stdarg.h> 5814#include <string.h> 5815#include <float.h> 5816 5817int 5818main () 5819{ 5820 5821 ; 5822 return 0; 5823} 5824_ACEOF 5825if ac_fn_c_try_compile "$LINENO"; then : 5826 ac_cv_header_stdc=yes 5827else 5828 ac_cv_header_stdc=no 5829fi 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5831 5832if test $ac_cv_header_stdc = yes; then 5833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836#include <string.h> 5837 5838_ACEOF 5839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5840 $EGREP "memchr" >/dev/null 2>&1; then : 5841 5842else 5843 ac_cv_header_stdc=no 5844fi 5845rm -f conftest* 5846 5847fi 5848 5849if test $ac_cv_header_stdc = yes; then 5850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853#include <stdlib.h> 5854 5855_ACEOF 5856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5857 $EGREP "free" >/dev/null 2>&1; then : 5858 5859else 5860 ac_cv_header_stdc=no 5861fi 5862rm -f conftest* 5863 5864fi 5865 5866if test $ac_cv_header_stdc = yes; then 5867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5868 if test "$cross_compiling" = yes; then : 5869 : 5870else 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873#include <ctype.h> 5874#include <stdlib.h> 5875#if ((' ' & 0x0FF) == 0x020) 5876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5878#else 5879# define ISLOWER(c) \ 5880 (('a' <= (c) && (c) <= 'i') \ 5881 || ('j' <= (c) && (c) <= 'r') \ 5882 || ('s' <= (c) && (c) <= 'z')) 5883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5884#endif 5885 5886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5887int 5888main () 5889{ 5890 int i; 5891 for (i = 0; i < 256; i++) 5892 if (XOR (islower (i), ISLOWER (i)) 5893 || toupper (i) != TOUPPER (i)) 5894 return 2; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_run "$LINENO"; then : 5899 5900else 5901 ac_cv_header_stdc=no 5902fi 5903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5904 conftest.$ac_objext conftest.beam conftest.$ac_ext 5905fi 5906 5907fi 5908fi 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5910$as_echo "$ac_cv_header_stdc" >&6; } 5911if test $ac_cv_header_stdc = yes; then 5912 5913$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5914 5915fi 5916 5917# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5918for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5919 inttypes.h stdint.h unistd.h 5920do : 5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5922ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5923" 5924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5925 cat >>confdefs.h <<_ACEOF 5926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5927_ACEOF 5928 5929fi 5930 5931done 5932 5933 5934 5935 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5936if test "x$ac_cv_header_minix_config_h" = xyes; then : 5937 MINIX=yes 5938else 5939 MINIX= 5940fi 5941 5942 5943 if test "$MINIX" = yes; then 5944 5945$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5946 5947 5948$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5949 5950 5951$as_echo "#define _MINIX 1" >>confdefs.h 5952 5953 fi 5954 5955 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5957$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5958if ${ac_cv_safe_to_define___extensions__+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963 5964# define __EXTENSIONS__ 1 5965 $ac_includes_default 5966int 5967main () 5968{ 5969 5970 ; 5971 return 0; 5972} 5973_ACEOF 5974if ac_fn_c_try_compile "$LINENO"; then : 5975 ac_cv_safe_to_define___extensions__=yes 5976else 5977 ac_cv_safe_to_define___extensions__=no 5978fi 5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5982$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5983 test $ac_cv_safe_to_define___extensions__ = yes && 5984 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5985 5986 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5987 5988 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5989 5990 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5991 5992 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5993 5994 5995 5996# C++ 5997 5998ac_ext=cpp 5999ac_cpp='$CXXCPP $CPPFLAGS' 6000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6003if test -z "$CXX"; then 6004 if test -n "$CCC"; then 6005 CXX=$CCC 6006 else 6007 if test -n "$ac_tool_prefix"; then 6008 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6009 do 6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6011set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if ${ac_cv_prog_CXX+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$CXX"; then 6018 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6027 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037CXX=$ac_cv_prog_CXX 6038if test -n "$CXX"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6040$as_echo "$CXX" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047 test -n "$CXX" && break 6048 done 6049fi 6050if test -z "$CXX"; then 6051 ac_ct_CXX=$CXX 6052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6053do 6054 # Extract the first word of "$ac_prog", so it can be a program name with args. 6055set dummy $ac_prog; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$ac_ct_CXX"; then 6062 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_ac_ct_CXX="$ac_prog" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6082if test -n "$ac_ct_CXX"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6084$as_echo "$ac_ct_CXX" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091 test -n "$ac_ct_CXX" && break 6092done 6093 6094 if test "x$ac_ct_CXX" = x; then 6095 CXX="g++" 6096 else 6097 case $cross_compiling:$ac_tool_warned in 6098yes:) 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6101ac_tool_warned=yes ;; 6102esac 6103 CXX=$ac_ct_CXX 6104 fi 6105fi 6106 6107 fi 6108fi 6109# Provide some information about the compiler. 6110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6111set X $ac_compile 6112ac_compiler=$2 6113for ac_option in --version -v -V -qversion; do 6114 { { ac_try="$ac_compiler $ac_option >&5" 6115case "(($ac_try" in 6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6117 *) ac_try_echo=$ac_try;; 6118esac 6119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6120$as_echo "$ac_try_echo"; } >&5 6121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6122 ac_status=$? 6123 if test -s conftest.err; then 6124 sed '10a\ 6125... rest of stderr output deleted ... 6126 10q' conftest.err >conftest.er1 6127 cat conftest.er1 >&5 6128 fi 6129 rm -f conftest.er1 conftest.err 6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6131 test $ac_status = 0; } 6132done 6133 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6135$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6136if ${ac_cv_cxx_compiler_gnu+:} false; then : 6137 $as_echo_n "(cached) " >&6 6138else 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141 6142int 6143main () 6144{ 6145#ifndef __GNUC__ 6146 choke me 6147#endif 6148 6149 ; 6150 return 0; 6151} 6152_ACEOF 6153if ac_fn_cxx_try_compile "$LINENO"; then : 6154 ac_compiler_gnu=yes 6155else 6156 ac_compiler_gnu=no 6157fi 6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6159ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6160 6161fi 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6163$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6164if test $ac_compiler_gnu = yes; then 6165 GXX=yes 6166else 6167 GXX= 6168fi 6169ac_test_CXXFLAGS=${CXXFLAGS+set} 6170ac_save_CXXFLAGS=$CXXFLAGS 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6172$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6173if ${ac_cv_prog_cxx_g+:} false; then : 6174 $as_echo_n "(cached) " >&6 6175else 6176 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6177 ac_cxx_werror_flag=yes 6178 ac_cv_prog_cxx_g=no 6179 CXXFLAGS="-g" 6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182 6183int 6184main () 6185{ 6186 6187 ; 6188 return 0; 6189} 6190_ACEOF 6191if ac_fn_cxx_try_compile "$LINENO"; then : 6192 ac_cv_prog_cxx_g=yes 6193else 6194 CXXFLAGS="" 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197 6198int 6199main () 6200{ 6201 6202 ; 6203 return 0; 6204} 6205_ACEOF 6206if ac_fn_cxx_try_compile "$LINENO"; then : 6207 6208else 6209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6210 CXXFLAGS="-g" 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213 6214int 6215main () 6216{ 6217 6218 ; 6219 return 0; 6220} 6221_ACEOF 6222if ac_fn_cxx_try_compile "$LINENO"; then : 6223 ac_cv_prog_cxx_g=yes 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228fi 6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6231fi 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6233$as_echo "$ac_cv_prog_cxx_g" >&6; } 6234if test "$ac_test_CXXFLAGS" = set; then 6235 CXXFLAGS=$ac_save_CXXFLAGS 6236elif test $ac_cv_prog_cxx_g = yes; then 6237 if test "$GXX" = yes; then 6238 CXXFLAGS="-g -O2" 6239 else 6240 CXXFLAGS="-g" 6241 fi 6242else 6243 if test "$GXX" = yes; then 6244 CXXFLAGS="-O2" 6245 else 6246 CXXFLAGS= 6247 fi 6248fi 6249ac_ext=c 6250ac_cpp='$CPP $CPPFLAGS' 6251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6253ac_compiler_gnu=$ac_cv_c_compiler_gnu 6254 6255depcc="$CXX" am_compiler_list= 6256 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6258$as_echo_n "checking dependency style of $depcc... " >&6; } 6259if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261else 6262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6263 # We make a subdir and do the tests there. Otherwise we can end up 6264 # making bogus files that we don't know about and never remove. For 6265 # instance it was reported that on HP-UX the gcc test will end up 6266 # making a dummy file named 'D' -- because '-MD' means "put the output 6267 # in D". 6268 rm -rf conftest.dir 6269 mkdir conftest.dir 6270 # Copy depcomp to subdir because otherwise we won't find it if we're 6271 # using a relative directory. 6272 cp "$am_depcomp" conftest.dir 6273 cd conftest.dir 6274 # We will build objects and dependencies in a subdirectory because 6275 # it helps to detect inapplicable dependency modes. For instance 6276 # both Tru64's cc and ICC support -MD to output dependencies as a 6277 # side effect of compilation, but ICC will put the dependencies in 6278 # the current directory while Tru64 will put them in the object 6279 # directory. 6280 mkdir sub 6281 6282 am_cv_CXX_dependencies_compiler_type=none 6283 if test "$am_compiler_list" = ""; then 6284 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6285 fi 6286 am__universal=false 6287 case " $depcc " in #( 6288 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6289 esac 6290 6291 for depmode in $am_compiler_list; do 6292 # Setup a source with many dependencies, because some compilers 6293 # like to wrap large dependency lists on column 80 (with \), and 6294 # we should not choose a depcomp mode which is confused by this. 6295 # 6296 # We need to recreate these files for each test, as the compiler may 6297 # overwrite some of them when testing with obscure command lines. 6298 # This happens at least with the AIX C compiler. 6299 : > sub/conftest.c 6300 for i in 1 2 3 4 5 6; do 6301 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6302 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6303 # Solaris 10 /bin/sh. 6304 echo '/* dummy */' > sub/conftst$i.h 6305 done 6306 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6307 6308 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6309 # mode. It turns out that the SunPro C++ compiler does not properly 6310 # handle '-M -o', and we need to detect this. Also, some Intel 6311 # versions had trouble with output in subdirs. 6312 am__obj=sub/conftest.${OBJEXT-o} 6313 am__minus_obj="-o $am__obj" 6314 case $depmode in 6315 gcc) 6316 # This depmode causes a compiler race in universal mode. 6317 test "$am__universal" = false || continue 6318 ;; 6319 nosideeffect) 6320 # After this tag, mechanisms are not by side-effect, so they'll 6321 # only be used when explicitly requested. 6322 if test "x$enable_dependency_tracking" = xyes; then 6323 continue 6324 else 6325 break 6326 fi 6327 ;; 6328 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6329 # This compiler won't grok '-c -o', but also, the minuso test has 6330 # not run yet. These depmodes are late enough in the game, and 6331 # so weak that their functioning should not be impacted. 6332 am__obj=conftest.${OBJEXT-o} 6333 am__minus_obj= 6334 ;; 6335 none) break ;; 6336 esac 6337 if depmode=$depmode \ 6338 source=sub/conftest.c object=$am__obj \ 6339 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6340 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6341 >/dev/null 2>conftest.err && 6342 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6343 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6344 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6345 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6346 # icc doesn't choke on unknown options, it will just issue warnings 6347 # or remarks (even with -Werror). So we grep stderr for any message 6348 # that says an option was ignored or not supported. 6349 # When given -MP, icc 7.0 and 7.1 complain thusly: 6350 # icc: Command line warning: ignoring option '-M'; no argument required 6351 # The diagnosis changed in icc 8.0: 6352 # icc: Command line remark: option '-MP' not supported 6353 if (grep 'ignoring option' conftest.err || 6354 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6355 am_cv_CXX_dependencies_compiler_type=$depmode 6356 break 6357 fi 6358 fi 6359 done 6360 6361 cd .. 6362 rm -rf conftest.dir 6363else 6364 am_cv_CXX_dependencies_compiler_type=none 6365fi 6366 6367fi 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6369$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6370CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6371 6372 if 6373 test "x$enable_dependency_tracking" != xno \ 6374 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6375 am__fastdepCXX_TRUE= 6376 am__fastdepCXX_FALSE='#' 6377else 6378 am__fastdepCXX_TRUE='#' 6379 am__fastdepCXX_FALSE= 6380fi 6381 6382 6383 6384 6385 for flag in \ 6386 -pipe \ 6387 -Wall \ 6388 -W \ 6389 -Wextra \ 6390 -Winline \ 6391 -Wvla \ 6392 -Wundef \ 6393 -Wformat=2 \ 6394 -Wlogical-op \ 6395 -Wsign-compare \ 6396 -Wformat-security \ 6397 \ 6398 -Wformat-nonliteral \ 6399 -Wold-style-definition \ 6400 -Wpointer-arith \ 6401 -Winit-self \ 6402 -Wdeclaration-after-statement \ 6403 -Wfloat-equal \ 6404 -Wmissing-prototypes \ 6405 -Wstrict-prototypes \ 6406 -Wredundant-decls \ 6407 -Wmissing-declarations \ 6408 -Wmissing-noreturn \ 6409 -Wshadow \ 6410 -Wendif-labels \ 6411 -Wcast-align \ 6412 -Wstrict-aliasing=2 \ 6413 -Wwrite-strings \ 6414 -Wno-long-long \ 6415 -Wno-overlength-strings \ 6416 -Wno-unused-parameter \ 6417 -Wno-missing-field-initializers \ 6418 -Wno-unused-result \ 6419 -Wunsafe-loop-optimizations \ 6420 -Wpacked \ 6421 -Werror=overflow \ 6422 -Wp,-D_FORTIFY_SOURCE=2 \ 6423 -ffast-math \ 6424 -fno-common \ 6425 -fdiagnostics-show-option \ 6426 -fno-strict-aliasing \ 6427 -ffunction-sections \ 6428 -fdata-sections; do 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 6431$as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } 6432if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 eval "cc_save_CFLAGS='${CFLAGS}'" 6436 eval "CFLAGS='$flag'" 6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6438/* end confdefs.h. */ 6439int a = 0; int main(void) { return a; } 6440_ACEOF 6441if ac_fn_c_try_compile "$LINENO"; then : 6442 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" 6443else 6444 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" 6445fi 6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6447 eval "CFLAGS='$cc_save_CFLAGS'" 6448fi 6449eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6451$as_echo "$ac_res" >&6; } 6452 6453 if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then : 6454 eval "with_cflags='${with_cflags} $flag'" 6455fi 6456 6457 done 6458 6459WARNINGFLAGS=$with_cflags 6460 6461 6462 6463 for flag in \ 6464 -Wl,--as-needed \ 6465 -Wl,--gc-sections; do 6466 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5 6468$as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; } 6469if { as_var=`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 eval "cc_save_LDFLAGS='${LDFLAGS}'" 6473 eval "LDFLAGS='$flag'" 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476int a = 0; int main(void) { return a; } 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO"; then : 6479 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'" 6480else 6481 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'" 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484 eval "LDFLAGS='$cc_save_LDFLAGS'" 6485fi 6486eval ac_res=\$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6488$as_echo "$ac_res" >&6; } 6489 6490 if eval test x$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes; then : 6491 eval "with_ldflags='${with_ldflags} $flag'" 6492fi 6493 6494 done 6495 6496GCLDFLAGS=$with_ldflags 6497 6498 6499#### libtool stuff #### 6500 6501case `pwd` in 6502 *\ * | *\ *) 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6504$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6505esac 6506 6507 6508 6509macro_version='2.4.2' 6510macro_revision='1.3337' 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524ltmain="$ac_aux_dir/ltmain.sh" 6525 6526# Backslashify metacharacters that are still active within 6527# double-quoted strings. 6528sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6529 6530# Same as above, but do not quote variable references. 6531double_quote_subst='s/\(["`\\]\)/\\\1/g' 6532 6533# Sed substitution to delay expansion of an escaped shell variable in a 6534# double_quote_subst'ed string. 6535delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6536 6537# Sed substitution to delay expansion of an escaped single quote. 6538delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6539 6540# Sed substitution to avoid accidental globbing in evaled expressions 6541no_glob_subst='s/\*/\\\*/g' 6542 6543ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6544ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6545ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6546 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6548$as_echo_n "checking how to print strings... " >&6; } 6549# Test print first, because it will be a builtin if present. 6550if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6551 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6552 ECHO='print -r --' 6553elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6554 ECHO='printf %s\n' 6555else 6556 # Use this function as a fallback that always works. 6557 func_fallback_echo () 6558 { 6559 eval 'cat <<_LTECHO_EOF 6560$1 6561_LTECHO_EOF' 6562 } 6563 ECHO='func_fallback_echo' 6564fi 6565 6566# func_echo_all arg... 6567# Invoke $ECHO with all args, space-separated. 6568func_echo_all () 6569{ 6570 $ECHO "" 6571} 6572 6573case "$ECHO" in 6574 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6575$as_echo "printf" >&6; } ;; 6576 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6577$as_echo "print -r" >&6; } ;; 6578 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6579$as_echo "cat" >&6; } ;; 6580esac 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6596$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6597if ${ac_cv_path_SED+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6601 for ac_i in 1 2 3 4 5 6 7; do 6602 ac_script="$ac_script$as_nl$ac_script" 6603 done 6604 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6605 { ac_script=; unset ac_script;} 6606 if test -z "$SED"; then 6607 ac_path_SED_found=false 6608 # Loop through the user's path and test for each of PROGNAME-LIST 6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6610for as_dir in $PATH 6611do 6612 IFS=$as_save_IFS 6613 test -z "$as_dir" && as_dir=. 6614 for ac_prog in sed gsed; do 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6617 as_fn_executable_p "$ac_path_SED" || continue 6618# Check for GNU ac_path_SED and select it if it is found. 6619 # Check for GNU $ac_path_SED 6620case `"$ac_path_SED" --version 2>&1` in 6621*GNU*) 6622 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6623*) 6624 ac_count=0 6625 $as_echo_n 0123456789 >"conftest.in" 6626 while : 6627 do 6628 cat "conftest.in" "conftest.in" >"conftest.tmp" 6629 mv "conftest.tmp" "conftest.in" 6630 cp "conftest.in" "conftest.nl" 6631 $as_echo '' >> "conftest.nl" 6632 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6634 as_fn_arith $ac_count + 1 && ac_count=$as_val 6635 if test $ac_count -gt ${ac_path_SED_max-0}; then 6636 # Best one so far, save it but keep looking for a better one 6637 ac_cv_path_SED="$ac_path_SED" 6638 ac_path_SED_max=$ac_count 6639 fi 6640 # 10*(2^10) chars as input seems more than enough 6641 test $ac_count -gt 10 && break 6642 done 6643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6644esac 6645 6646 $ac_path_SED_found && break 3 6647 done 6648 done 6649 done 6650IFS=$as_save_IFS 6651 if test -z "$ac_cv_path_SED"; then 6652 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6653 fi 6654else 6655 ac_cv_path_SED=$SED 6656fi 6657 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6660$as_echo "$ac_cv_path_SED" >&6; } 6661 SED="$ac_cv_path_SED" 6662 rm -f conftest.sed 6663 6664test -z "$SED" && SED=sed 6665Xsed="$SED -e 1s/^X//" 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6678$as_echo_n "checking for fgrep... " >&6; } 6679if ${ac_cv_path_FGREP+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6683 then ac_cv_path_FGREP="$GREP -F" 6684 else 6685 if test -z "$FGREP"; then 6686 ac_path_FGREP_found=false 6687 # Loop through the user's path and test for each of PROGNAME-LIST 6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_prog in fgrep; do 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6696 as_fn_executable_p "$ac_path_FGREP" || continue 6697# Check for GNU ac_path_FGREP and select it if it is found. 6698 # Check for GNU $ac_path_FGREP 6699case `"$ac_path_FGREP" --version 2>&1` in 6700*GNU*) 6701 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6702*) 6703 ac_count=0 6704 $as_echo_n 0123456789 >"conftest.in" 6705 while : 6706 do 6707 cat "conftest.in" "conftest.in" >"conftest.tmp" 6708 mv "conftest.tmp" "conftest.in" 6709 cp "conftest.in" "conftest.nl" 6710 $as_echo 'FGREP' >> "conftest.nl" 6711 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6713 as_fn_arith $ac_count + 1 && ac_count=$as_val 6714 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6715 # Best one so far, save it but keep looking for a better one 6716 ac_cv_path_FGREP="$ac_path_FGREP" 6717 ac_path_FGREP_max=$ac_count 6718 fi 6719 # 10*(2^10) chars as input seems more than enough 6720 test $ac_count -gt 10 && break 6721 done 6722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6723esac 6724 6725 $ac_path_FGREP_found && break 3 6726 done 6727 done 6728 done 6729IFS=$as_save_IFS 6730 if test -z "$ac_cv_path_FGREP"; then 6731 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6732 fi 6733else 6734 ac_cv_path_FGREP=$FGREP 6735fi 6736 6737 fi 6738fi 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6740$as_echo "$ac_cv_path_FGREP" >&6; } 6741 FGREP="$ac_cv_path_FGREP" 6742 6743 6744test -z "$GREP" && GREP=grep 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764# Check whether --with-gnu-ld was given. 6765if test "${with_gnu_ld+set}" = set; then : 6766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6767else 6768 with_gnu_ld=no 6769fi 6770 6771ac_prog=ld 6772if test "$GCC" = yes; then 6773 # Check if gcc -print-prog-name=ld gives a path. 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6775$as_echo_n "checking for ld used by $CC... " >&6; } 6776 case $host in 6777 *-*-mingw*) 6778 # gcc leaves a trailing carriage return which upsets mingw 6779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6780 *) 6781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6782 esac 6783 case $ac_prog in 6784 # Accept absolute paths. 6785 [\\/]* | ?:[\\/]*) 6786 re_direlt='/[^/][^/]*/\.\./' 6787 # Canonicalize the pathname of ld 6788 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6789 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6790 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6791 done 6792 test -z "$LD" && LD="$ac_prog" 6793 ;; 6794 "") 6795 # If it fails, then pretend we aren't using GCC. 6796 ac_prog=ld 6797 ;; 6798 *) 6799 # If it is relative, then search for the first ld in PATH. 6800 with_gnu_ld=unknown 6801 ;; 6802 esac 6803elif test "$with_gnu_ld" = yes; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6805$as_echo_n "checking for GNU ld... " >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6808$as_echo_n "checking for non-GNU ld... " >&6; } 6809fi 6810if ${lt_cv_path_LD+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 if test -z "$LD"; then 6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6815 for ac_dir in $PATH; do 6816 IFS="$lt_save_ifs" 6817 test -z "$ac_dir" && ac_dir=. 6818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6819 lt_cv_path_LD="$ac_dir/$ac_prog" 6820 # Check to see if the program is GNU ld. I'd rather use --version, 6821 # but apparently some variants of GNU ld only accept -v. 6822 # Break only if it was the GNU/non-GNU ld that we prefer. 6823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6824 *GNU* | *'with BFD'*) 6825 test "$with_gnu_ld" != no && break 6826 ;; 6827 *) 6828 test "$with_gnu_ld" != yes && break 6829 ;; 6830 esac 6831 fi 6832 done 6833 IFS="$lt_save_ifs" 6834else 6835 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6836fi 6837fi 6838 6839LD="$lt_cv_path_LD" 6840if test -n "$LD"; then 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6842$as_echo "$LD" >&6; } 6843else 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6845$as_echo "no" >&6; } 6846fi 6847test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6849$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6850if ${lt_cv_prog_gnu_ld+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6854case `$LD -v 2>&1 </dev/null` in 6855*GNU* | *'with BFD'*) 6856 lt_cv_prog_gnu_ld=yes 6857 ;; 6858*) 6859 lt_cv_prog_gnu_ld=no 6860 ;; 6861esac 6862fi 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6864$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6865with_gnu_ld=$lt_cv_prog_gnu_ld 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6876$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6877if ${lt_cv_path_NM+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$NM"; then 6881 # Let the user override the test. 6882 lt_cv_path_NM="$NM" 6883else 6884 lt_nm_to_check="${ac_tool_prefix}nm" 6885 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6886 lt_nm_to_check="$lt_nm_to_check nm" 6887 fi 6888 for lt_tmp_nm in $lt_nm_to_check; do 6889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6890 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6891 IFS="$lt_save_ifs" 6892 test -z "$ac_dir" && ac_dir=. 6893 tmp_nm="$ac_dir/$lt_tmp_nm" 6894 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6895 # Check to see if the nm accepts a BSD-compat flag. 6896 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6897 # nm: unknown option "B" ignored 6898 # Tru64's nm complains that /dev/null is an invalid object file 6899 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6900 */dev/null* | *'Invalid file or object type'*) 6901 lt_cv_path_NM="$tmp_nm -B" 6902 break 6903 ;; 6904 *) 6905 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6906 */dev/null*) 6907 lt_cv_path_NM="$tmp_nm -p" 6908 break 6909 ;; 6910 *) 6911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6912 continue # so that we can try to find one that supports BSD flags 6913 ;; 6914 esac 6915 ;; 6916 esac 6917 fi 6918 done 6919 IFS="$lt_save_ifs" 6920 done 6921 : ${lt_cv_path_NM=no} 6922fi 6923fi 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6925$as_echo "$lt_cv_path_NM" >&6; } 6926if test "$lt_cv_path_NM" != "no"; then 6927 NM="$lt_cv_path_NM" 6928else 6929 # Didn't find any BSD compatible name lister, look for dumpbin. 6930 if test -n "$DUMPBIN"; then : 6931 # Let the user override the test. 6932 else 6933 if test -n "$ac_tool_prefix"; then 6934 for ac_prog in dumpbin "link -dump" 6935 do 6936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6937set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if ${ac_cv_prog_DUMPBIN+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$DUMPBIN"; then 6944 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963DUMPBIN=$ac_cv_prog_DUMPBIN 6964if test -n "$DUMPBIN"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6966$as_echo "$DUMPBIN" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 6973 test -n "$DUMPBIN" && break 6974 done 6975fi 6976if test -z "$DUMPBIN"; then 6977 ac_ct_DUMPBIN=$DUMPBIN 6978 for ac_prog in dumpbin "link -dump" 6979do 6980 # Extract the first word of "$ac_prog", so it can be a program name with args. 6981set dummy $ac_prog; ac_word=$2 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983$as_echo_n "checking for $ac_word... " >&6; } 6984if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 if test -n "$ac_ct_DUMPBIN"; then 6988 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6989else 6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991for as_dir in $PATH 6992do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001done 7002 done 7003IFS=$as_save_IFS 7004 7005fi 7006fi 7007ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7008if test -n "$ac_ct_DUMPBIN"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7010$as_echo "$ac_ct_DUMPBIN" >&6; } 7011else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013$as_echo "no" >&6; } 7014fi 7015 7016 7017 test -n "$ac_ct_DUMPBIN" && break 7018done 7019 7020 if test "x$ac_ct_DUMPBIN" = x; then 7021 DUMPBIN=":" 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 DUMPBIN=$ac_ct_DUMPBIN 7030 fi 7031fi 7032 7033 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7034 *COFF*) 7035 DUMPBIN="$DUMPBIN -symbols" 7036 ;; 7037 *) 7038 DUMPBIN=: 7039 ;; 7040 esac 7041 fi 7042 7043 if test "$DUMPBIN" != ":"; then 7044 NM="$DUMPBIN" 7045 fi 7046fi 7047test -z "$NM" && NM=nm 7048 7049 7050 7051 7052 7053 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7055$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7056if ${lt_cv_nm_interface+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 lt_cv_nm_interface="BSD nm" 7060 echo "int some_variable = 0;" > conftest.$ac_ext 7061 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7062 (eval "$ac_compile" 2>conftest.err) 7063 cat conftest.err >&5 7064 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7065 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7066 cat conftest.err >&5 7067 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7068 cat conftest.out >&5 7069 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7070 lt_cv_nm_interface="MS dumpbin" 7071 fi 7072 rm -f conftest* 7073fi 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7075$as_echo "$lt_cv_nm_interface" >&6; } 7076 7077# find the maximum length of command line arguments 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7079$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7080if ${lt_cv_sys_max_cmd_len+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 i=0 7084 teststring="ABCD" 7085 7086 case $build_os in 7087 msdosdjgpp*) 7088 # On DJGPP, this test can blow up pretty badly due to problems in libc 7089 # (any single argument exceeding 2000 bytes causes a buffer overrun 7090 # during glob expansion). Even if it were fixed, the result of this 7091 # check would be larger than it should be. 7092 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7093 ;; 7094 7095 gnu*) 7096 # Under GNU Hurd, this test is not required because there is 7097 # no limit to the length of command line arguments. 7098 # Libtool will interpret -1 as no limit whatsoever 7099 lt_cv_sys_max_cmd_len=-1; 7100 ;; 7101 7102 cygwin* | mingw* | cegcc*) 7103 # On Win9x/ME, this test blows up -- it succeeds, but takes 7104 # about 5 minutes as the teststring grows exponentially. 7105 # Worse, since 9x/ME are not pre-emptively multitasking, 7106 # you end up with a "frozen" computer, even though with patience 7107 # the test eventually succeeds (with a max line length of 256k). 7108 # Instead, let's just punt: use the minimum linelength reported by 7109 # all of the supported platforms: 8192 (on NT/2K/XP). 7110 lt_cv_sys_max_cmd_len=8192; 7111 ;; 7112 7113 mint*) 7114 # On MiNT this can take a long time and run out of memory. 7115 lt_cv_sys_max_cmd_len=8192; 7116 ;; 7117 7118 amigaos*) 7119 # On AmigaOS with pdksh, this test takes hours, literally. 7120 # So we just punt and use a minimum line length of 8192. 7121 lt_cv_sys_max_cmd_len=8192; 7122 ;; 7123 7124 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7125 # This has been around since 386BSD, at least. Likely further. 7126 if test -x /sbin/sysctl; then 7127 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7128 elif test -x /usr/sbin/sysctl; then 7129 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7130 else 7131 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7132 fi 7133 # And add a safety zone 7134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7136 ;; 7137 7138 interix*) 7139 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7140 lt_cv_sys_max_cmd_len=196608 7141 ;; 7142 7143 os2*) 7144 # The test takes a long time on OS/2. 7145 lt_cv_sys_max_cmd_len=8192 7146 ;; 7147 7148 osf*) 7149 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7150 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7151 # nice to cause kernel panics so lets avoid the loop below. 7152 # First set a reasonable default. 7153 lt_cv_sys_max_cmd_len=16384 7154 # 7155 if test -x /sbin/sysconfig; then 7156 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7157 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7158 esac 7159 fi 7160 ;; 7161 sco3.2v5*) 7162 lt_cv_sys_max_cmd_len=102400 7163 ;; 7164 sysv5* | sco5v6* | sysv4.2uw2*) 7165 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7166 if test -n "$kargmax"; then 7167 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7168 else 7169 lt_cv_sys_max_cmd_len=32768 7170 fi 7171 ;; 7172 *) 7173 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7174 if test -n "$lt_cv_sys_max_cmd_len"; then 7175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7177 else 7178 # Make teststring a little bigger before we do anything with it. 7179 # a 1K string should be a reasonable start. 7180 for i in 1 2 3 4 5 6 7 8 ; do 7181 teststring=$teststring$teststring 7182 done 7183 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7184 # If test is not a shell built-in, we'll probably end up computing a 7185 # maximum length that is only half of the actual maximum length, but 7186 # we can't tell. 7187 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7188 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7189 test $i != 17 # 1/2 MB should be enough 7190 do 7191 i=`expr $i + 1` 7192 teststring=$teststring$teststring 7193 done 7194 # Only check the string length outside the loop. 7195 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7196 teststring= 7197 # Add a significant safety factor because C++ compilers can tack on 7198 # massive amounts of additional arguments before passing them to the 7199 # linker. It appears as though 1/2 is a usable value. 7200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7201 fi 7202 ;; 7203 esac 7204 7205fi 7206 7207if test -n $lt_cv_sys_max_cmd_len ; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7209$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7212$as_echo "none" >&6; } 7213fi 7214max_cmd_len=$lt_cv_sys_max_cmd_len 7215 7216 7217 7218 7219 7220 7221: ${CP="cp -f"} 7222: ${MV="mv -f"} 7223: ${RM="rm -f"} 7224 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7226$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7227# Try some XSI features 7228xsi_shell=no 7229( _lt_dummy="a/b/c" 7230 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7231 = c,a/b,b/c, \ 7232 && eval 'test $(( 1 + 1 )) -eq 2 \ 7233 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7234 && xsi_shell=yes 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7236$as_echo "$xsi_shell" >&6; } 7237 7238 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7240$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7241lt_shell_append=no 7242( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7243 >/dev/null 2>&1 \ 7244 && lt_shell_append=yes 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7246$as_echo "$lt_shell_append" >&6; } 7247 7248 7249if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7250 lt_unset=unset 7251else 7252 lt_unset=false 7253fi 7254 7255 7256 7257 7258 7259# test EBCDIC or ASCII 7260case `echo X|tr X '\101'` in 7261 A) # ASCII based system 7262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7263 lt_SP2NL='tr \040 \012' 7264 lt_NL2SP='tr \015\012 \040\040' 7265 ;; 7266 *) # EBCDIC based system 7267 lt_SP2NL='tr \100 \n' 7268 lt_NL2SP='tr \r\n \100\100' 7269 ;; 7270esac 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7281$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7282if ${lt_cv_to_host_file_cmd+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 case $host in 7286 *-*-mingw* ) 7287 case $build in 7288 *-*-mingw* ) # actually msys 7289 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7290 ;; 7291 *-*-cygwin* ) 7292 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7293 ;; 7294 * ) # otherwise, assume *nix 7295 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7296 ;; 7297 esac 7298 ;; 7299 *-*-cygwin* ) 7300 case $build in 7301 *-*-mingw* ) # actually msys 7302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7303 ;; 7304 *-*-cygwin* ) 7305 lt_cv_to_host_file_cmd=func_convert_file_noop 7306 ;; 7307 * ) # otherwise, assume *nix 7308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7309 ;; 7310 esac 7311 ;; 7312 * ) # unhandled hosts (and "normal" native builds) 7313 lt_cv_to_host_file_cmd=func_convert_file_noop 7314 ;; 7315esac 7316 7317fi 7318 7319to_host_file_cmd=$lt_cv_to_host_file_cmd 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7321$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7322 7323 7324 7325 7326 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7328$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7329if ${lt_cv_to_tool_file_cmd+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 #assume ordinary cross tools, or native build. 7333lt_cv_to_tool_file_cmd=func_convert_file_noop 7334case $host in 7335 *-*-mingw* ) 7336 case $build in 7337 *-*-mingw* ) # actually msys 7338 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7339 ;; 7340 esac 7341 ;; 7342esac 7343 7344fi 7345 7346to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7348$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7349 7350 7351 7352 7353 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7355$as_echo_n "checking for $LD option to reload object files... " >&6; } 7356if ${lt_cv_ld_reload_flag+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 lt_cv_ld_reload_flag='-r' 7360fi 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7362$as_echo "$lt_cv_ld_reload_flag" >&6; } 7363reload_flag=$lt_cv_ld_reload_flag 7364case $reload_flag in 7365"" | " "*) ;; 7366*) reload_flag=" $reload_flag" ;; 7367esac 7368reload_cmds='$LD$reload_flag -o $output$reload_objs' 7369case $host_os in 7370 cygwin* | mingw* | pw32* | cegcc*) 7371 if test "$GCC" != yes; then 7372 reload_cmds=false 7373 fi 7374 ;; 7375 darwin*) 7376 if test "$GCC" = yes; then 7377 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7378 else 7379 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7380 fi 7381 ;; 7382esac 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392if test -n "$ac_tool_prefix"; then 7393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7394set dummy ${ac_tool_prefix}objdump; ac_word=$2 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7396$as_echo_n "checking for $ac_word... " >&6; } 7397if ${ac_cv_prog_OBJDUMP+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399else 7400 if test -n "$OBJDUMP"; then 7401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7402else 7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404for as_dir in $PATH 7405do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414done 7415 done 7416IFS=$as_save_IFS 7417 7418fi 7419fi 7420OBJDUMP=$ac_cv_prog_OBJDUMP 7421if test -n "$OBJDUMP"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7423$as_echo "$OBJDUMP" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; } 7427fi 7428 7429 7430fi 7431if test -z "$ac_cv_prog_OBJDUMP"; then 7432 ac_ct_OBJDUMP=$OBJDUMP 7433 # Extract the first word of "objdump", so it can be a program name with args. 7434set dummy objdump; ac_word=$2 7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436$as_echo_n "checking for $ac_word... " >&6; } 7437if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 if test -n "$ac_ct_OBJDUMP"; then 7441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 test -z "$as_dir" && as_dir=. 7448 for ac_exec_ext in '' $ac_executable_extensions; do 7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7450 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7452 break 2 7453 fi 7454done 7455 done 7456IFS=$as_save_IFS 7457 7458fi 7459fi 7460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7461if test -n "$ac_ct_OBJDUMP"; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7463$as_echo "$ac_ct_OBJDUMP" >&6; } 7464else 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7466$as_echo "no" >&6; } 7467fi 7468 7469 if test "x$ac_ct_OBJDUMP" = x; then 7470 OBJDUMP="false" 7471 else 7472 case $cross_compiling:$ac_tool_warned in 7473yes:) 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7476ac_tool_warned=yes ;; 7477esac 7478 OBJDUMP=$ac_ct_OBJDUMP 7479 fi 7480else 7481 OBJDUMP="$ac_cv_prog_OBJDUMP" 7482fi 7483 7484test -z "$OBJDUMP" && OBJDUMP=objdump 7485 7486 7487 7488 7489 7490 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7492$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7493if ${lt_cv_deplibs_check_method+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 lt_cv_file_magic_cmd='$MAGIC_CMD' 7497lt_cv_file_magic_test_file= 7498lt_cv_deplibs_check_method='unknown' 7499# Need to set the preceding variable on all platforms that support 7500# interlibrary dependencies. 7501# 'none' -- dependencies not supported. 7502# `unknown' -- same as none, but documents that we really don't know. 7503# 'pass_all' -- all dependencies passed with no checks. 7504# 'test_compile' -- check by making test program. 7505# 'file_magic [[regex]]' -- check by looking for files in library path 7506# which responds to the $file_magic_cmd with a given extended regex. 7507# If you have `file' or equivalent on your system and you're not sure 7508# whether `pass_all' will *always* work, you probably want this one. 7509 7510case $host_os in 7511aix[4-9]*) 7512 lt_cv_deplibs_check_method=pass_all 7513 ;; 7514 7515beos*) 7516 lt_cv_deplibs_check_method=pass_all 7517 ;; 7518 7519bsdi[45]*) 7520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7521 lt_cv_file_magic_cmd='/usr/bin/file -L' 7522 lt_cv_file_magic_test_file=/shlib/libc.so 7523 ;; 7524 7525cygwin*) 7526 # func_win32_libid is a shell function defined in ltmain.sh 7527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7528 lt_cv_file_magic_cmd='func_win32_libid' 7529 ;; 7530 7531mingw* | pw32*) 7532 # Base MSYS/MinGW do not provide the 'file' command needed by 7533 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7534 # unless we find 'file', for example because we are cross-compiling. 7535 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7536 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7538 lt_cv_file_magic_cmd='func_win32_libid' 7539 else 7540 # Keep this pattern in sync with the one in func_win32_libid. 7541 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7542 lt_cv_file_magic_cmd='$OBJDUMP -f' 7543 fi 7544 ;; 7545 7546cegcc*) 7547 # use the weaker test based on 'objdump'. See mingw*. 7548 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7549 lt_cv_file_magic_cmd='$OBJDUMP -f' 7550 ;; 7551 7552darwin* | rhapsody*) 7553 lt_cv_deplibs_check_method=pass_all 7554 ;; 7555 7556freebsd* | dragonfly*) 7557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7558 case $host_cpu in 7559 i*86 ) 7560 # Not sure whether the presence of OpenBSD here was a mistake. 7561 # Let's accept both of them until this is cleared up. 7562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7563 lt_cv_file_magic_cmd=/usr/bin/file 7564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7565 ;; 7566 esac 7567 else 7568 lt_cv_deplibs_check_method=pass_all 7569 fi 7570 ;; 7571 7572gnu*) 7573 lt_cv_deplibs_check_method=pass_all 7574 ;; 7575 7576haiku*) 7577 lt_cv_deplibs_check_method=pass_all 7578 ;; 7579 7580hpux10.20* | hpux11*) 7581 lt_cv_file_magic_cmd=/usr/bin/file 7582 case $host_cpu in 7583 ia64*) 7584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7585 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7586 ;; 7587 hppa*64*) 7588 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]' 7589 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7590 ;; 7591 *) 7592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7593 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7594 ;; 7595 esac 7596 ;; 7597 7598interix[3-9]*) 7599 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7601 ;; 7602 7603irix5* | irix6* | nonstopux*) 7604 case $LD in 7605 *-32|*"-32 ") libmagic=32-bit;; 7606 *-n32|*"-n32 ") libmagic=N32;; 7607 *-64|*"-64 ") libmagic=64-bit;; 7608 *) libmagic=never-match;; 7609 esac 7610 lt_cv_deplibs_check_method=pass_all 7611 ;; 7612 7613# This must be glibc/ELF. 7614linux* | k*bsd*-gnu | kopensolaris*-gnu) 7615 lt_cv_deplibs_check_method=pass_all 7616 ;; 7617 7618netbsd*) 7619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7621 else 7622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7623 fi 7624 ;; 7625 7626newos6*) 7627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7628 lt_cv_file_magic_cmd=/usr/bin/file 7629 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7630 ;; 7631 7632*nto* | *qnx*) 7633 lt_cv_deplibs_check_method=pass_all 7634 ;; 7635 7636openbsd*) 7637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7639 else 7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7641 fi 7642 ;; 7643 7644osf3* | osf4* | osf5*) 7645 lt_cv_deplibs_check_method=pass_all 7646 ;; 7647 7648rdos*) 7649 lt_cv_deplibs_check_method=pass_all 7650 ;; 7651 7652solaris*) 7653 lt_cv_deplibs_check_method=pass_all 7654 ;; 7655 7656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7657 lt_cv_deplibs_check_method=pass_all 7658 ;; 7659 7660sysv4 | sysv4.3*) 7661 case $host_vendor in 7662 motorola) 7663 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]' 7664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7665 ;; 7666 ncr) 7667 lt_cv_deplibs_check_method=pass_all 7668 ;; 7669 sequent) 7670 lt_cv_file_magic_cmd='/bin/file' 7671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7672 ;; 7673 sni) 7674 lt_cv_file_magic_cmd='/bin/file' 7675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7676 lt_cv_file_magic_test_file=/lib/libc.so 7677 ;; 7678 siemens) 7679 lt_cv_deplibs_check_method=pass_all 7680 ;; 7681 pc) 7682 lt_cv_deplibs_check_method=pass_all 7683 ;; 7684 esac 7685 ;; 7686 7687tpf*) 7688 lt_cv_deplibs_check_method=pass_all 7689 ;; 7690esac 7691 7692fi 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7694$as_echo "$lt_cv_deplibs_check_method" >&6; } 7695 7696file_magic_glob= 7697want_nocaseglob=no 7698if test "$build" = "$host"; then 7699 case $host_os in 7700 mingw* | pw32*) 7701 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7702 want_nocaseglob=yes 7703 else 7704 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7705 fi 7706 ;; 7707 esac 7708fi 7709 7710file_magic_cmd=$lt_cv_file_magic_cmd 7711deplibs_check_method=$lt_cv_deplibs_check_method 7712test -z "$deplibs_check_method" && deplibs_check_method=unknown 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735if test -n "$ac_tool_prefix"; then 7736 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7737set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7739$as_echo_n "checking for $ac_word... " >&6; } 7740if ${ac_cv_prog_DLLTOOL+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 if test -n "$DLLTOOL"; then 7744 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7745else 7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7747for as_dir in $PATH 7748do 7749 IFS=$as_save_IFS 7750 test -z "$as_dir" && as_dir=. 7751 for ac_exec_ext in '' $ac_executable_extensions; do 7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7753 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7755 break 2 7756 fi 7757done 7758 done 7759IFS=$as_save_IFS 7760 7761fi 7762fi 7763DLLTOOL=$ac_cv_prog_DLLTOOL 7764if test -n "$DLLTOOL"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7766$as_echo "$DLLTOOL" >&6; } 7767else 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769$as_echo "no" >&6; } 7770fi 7771 7772 7773fi 7774if test -z "$ac_cv_prog_DLLTOOL"; then 7775 ac_ct_DLLTOOL=$DLLTOOL 7776 # Extract the first word of "dlltool", so it can be a program name with args. 7777set dummy dlltool; ac_word=$2 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779$as_echo_n "checking for $ac_word... " >&6; } 7780if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 if test -n "$ac_ct_DLLTOOL"; then 7784 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7785else 7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7787for as_dir in $PATH 7788do 7789 IFS=$as_save_IFS 7790 test -z "$as_dir" && as_dir=. 7791 for ac_exec_ext in '' $ac_executable_extensions; do 7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7793 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7795 break 2 7796 fi 7797done 7798 done 7799IFS=$as_save_IFS 7800 7801fi 7802fi 7803ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7804if test -n "$ac_ct_DLLTOOL"; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7806$as_echo "$ac_ct_DLLTOOL" >&6; } 7807else 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809$as_echo "no" >&6; } 7810fi 7811 7812 if test "x$ac_ct_DLLTOOL" = x; then 7813 DLLTOOL="false" 7814 else 7815 case $cross_compiling:$ac_tool_warned in 7816yes:) 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7819ac_tool_warned=yes ;; 7820esac 7821 DLLTOOL=$ac_ct_DLLTOOL 7822 fi 7823else 7824 DLLTOOL="$ac_cv_prog_DLLTOOL" 7825fi 7826 7827test -z "$DLLTOOL" && DLLTOOL=dlltool 7828 7829 7830 7831 7832 7833 7834 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7836$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7837if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 lt_cv_sharedlib_from_linklib_cmd='unknown' 7841 7842case $host_os in 7843cygwin* | mingw* | pw32* | cegcc*) 7844 # two different shell functions defined in ltmain.sh 7845 # decide which to use based on capabilities of $DLLTOOL 7846 case `$DLLTOOL --help 2>&1` in 7847 *--identify-strict*) 7848 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7849 ;; 7850 *) 7851 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7852 ;; 7853 esac 7854 ;; 7855*) 7856 # fallback: assume linklib IS sharedlib 7857 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7858 ;; 7859esac 7860 7861fi 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7863$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7864sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7865test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7866 7867 7868 7869 7870 7871 7872 7873if test -n "$ac_tool_prefix"; then 7874 for ac_prog in ar 7875 do 7876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7877set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7879$as_echo_n "checking for $ac_word... " >&6; } 7880if ${ac_cv_prog_AR+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 if test -n "$AR"; then 7884 ac_cv_prog_AR="$AR" # Let the user override the test. 7885else 7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887for as_dir in $PATH 7888do 7889 IFS=$as_save_IFS 7890 test -z "$as_dir" && as_dir=. 7891 for ac_exec_ext in '' $ac_executable_extensions; do 7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7893 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7895 break 2 7896 fi 7897done 7898 done 7899IFS=$as_save_IFS 7900 7901fi 7902fi 7903AR=$ac_cv_prog_AR 7904if test -n "$AR"; then 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7906$as_echo "$AR" >&6; } 7907else 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7909$as_echo "no" >&6; } 7910fi 7911 7912 7913 test -n "$AR" && break 7914 done 7915fi 7916if test -z "$AR"; then 7917 ac_ct_AR=$AR 7918 for ac_prog in ar 7919do 7920 # Extract the first word of "$ac_prog", so it can be a program name with args. 7921set dummy $ac_prog; ac_word=$2 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7923$as_echo_n "checking for $ac_word... " >&6; } 7924if ${ac_cv_prog_ac_ct_AR+:} false; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 if test -n "$ac_ct_AR"; then 7928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7929else 7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7931for as_dir in $PATH 7932do 7933 IFS=$as_save_IFS 7934 test -z "$as_dir" && as_dir=. 7935 for ac_exec_ext in '' $ac_executable_extensions; do 7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7937 ac_cv_prog_ac_ct_AR="$ac_prog" 7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7939 break 2 7940 fi 7941done 7942 done 7943IFS=$as_save_IFS 7944 7945fi 7946fi 7947ac_ct_AR=$ac_cv_prog_ac_ct_AR 7948if test -n "$ac_ct_AR"; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7950$as_echo "$ac_ct_AR" >&6; } 7951else 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7953$as_echo "no" >&6; } 7954fi 7955 7956 7957 test -n "$ac_ct_AR" && break 7958done 7959 7960 if test "x$ac_ct_AR" = x; then 7961 AR="false" 7962 else 7963 case $cross_compiling:$ac_tool_warned in 7964yes:) 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7967ac_tool_warned=yes ;; 7968esac 7969 AR=$ac_ct_AR 7970 fi 7971fi 7972 7973: ${AR=ar} 7974: ${AR_FLAGS=cru} 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7987$as_echo_n "checking for archiver @FILE support... " >&6; } 7988if ${lt_cv_ar_at_file+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990else 7991 lt_cv_ar_at_file=no 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994 7995int 7996main () 7997{ 7998 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_compile "$LINENO"; then : 8004 echo conftest.$ac_objext > conftest.lst 8005 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8007 (eval $lt_ar_try) 2>&5 8008 ac_status=$? 8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8010 test $ac_status = 0; } 8011 if test "$ac_status" -eq 0; then 8012 # Ensure the archiver fails upon bogus file names. 8013 rm -f conftest.$ac_objext libconftest.a 8014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8015 (eval $lt_ar_try) 2>&5 8016 ac_status=$? 8017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8018 test $ac_status = 0; } 8019 if test "$ac_status" -ne 0; then 8020 lt_cv_ar_at_file=@ 8021 fi 8022 fi 8023 rm -f conftest.* libconftest.a 8024 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8027 8028fi 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8030$as_echo "$lt_cv_ar_at_file" >&6; } 8031 8032if test "x$lt_cv_ar_at_file" = xno; then 8033 archiver_list_spec= 8034else 8035 archiver_list_spec=$lt_cv_ar_at_file 8036fi 8037 8038 8039 8040 8041 8042 8043 8044if test -n "$ac_tool_prefix"; then 8045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8046set dummy ${ac_tool_prefix}strip; ac_word=$2 8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8048$as_echo_n "checking for $ac_word... " >&6; } 8049if ${ac_cv_prog_STRIP+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 if test -n "$STRIP"; then 8053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8054else 8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8056for as_dir in $PATH 8057do 8058 IFS=$as_save_IFS 8059 test -z "$as_dir" && as_dir=. 8060 for ac_exec_ext in '' $ac_executable_extensions; do 8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8062 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8064 break 2 8065 fi 8066done 8067 done 8068IFS=$as_save_IFS 8069 8070fi 8071fi 8072STRIP=$ac_cv_prog_STRIP 8073if test -n "$STRIP"; then 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8075$as_echo "$STRIP" >&6; } 8076else 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8078$as_echo "no" >&6; } 8079fi 8080 8081 8082fi 8083if test -z "$ac_cv_prog_STRIP"; then 8084 ac_ct_STRIP=$STRIP 8085 # Extract the first word of "strip", so it can be a program name with args. 8086set dummy strip; ac_word=$2 8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8088$as_echo_n "checking for $ac_word... " >&6; } 8089if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 if test -n "$ac_ct_STRIP"; then 8093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8094else 8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8096for as_dir in $PATH 8097do 8098 IFS=$as_save_IFS 8099 test -z "$as_dir" && as_dir=. 8100 for ac_exec_ext in '' $ac_executable_extensions; do 8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8102 ac_cv_prog_ac_ct_STRIP="strip" 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8104 break 2 8105 fi 8106done 8107 done 8108IFS=$as_save_IFS 8109 8110fi 8111fi 8112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8113if test -n "$ac_ct_STRIP"; then 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8115$as_echo "$ac_ct_STRIP" >&6; } 8116else 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8118$as_echo "no" >&6; } 8119fi 8120 8121 if test "x$ac_ct_STRIP" = x; then 8122 STRIP=":" 8123 else 8124 case $cross_compiling:$ac_tool_warned in 8125yes:) 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8128ac_tool_warned=yes ;; 8129esac 8130 STRIP=$ac_ct_STRIP 8131 fi 8132else 8133 STRIP="$ac_cv_prog_STRIP" 8134fi 8135 8136test -z "$STRIP" && STRIP=: 8137 8138 8139 8140 8141 8142 8143if test -n "$ac_tool_prefix"; then 8144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8145set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8147$as_echo_n "checking for $ac_word... " >&6; } 8148if ${ac_cv_prog_RANLIB+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 if test -n "$RANLIB"; then 8152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8153else 8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8155for as_dir in $PATH 8156do 8157 IFS=$as_save_IFS 8158 test -z "$as_dir" && as_dir=. 8159 for ac_exec_ext in '' $ac_executable_extensions; do 8160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8163 break 2 8164 fi 8165done 8166 done 8167IFS=$as_save_IFS 8168 8169fi 8170fi 8171RANLIB=$ac_cv_prog_RANLIB 8172if test -n "$RANLIB"; then 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8174$as_echo "$RANLIB" >&6; } 8175else 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8177$as_echo "no" >&6; } 8178fi 8179 8180 8181fi 8182if test -z "$ac_cv_prog_RANLIB"; then 8183 ac_ct_RANLIB=$RANLIB 8184 # Extract the first word of "ranlib", so it can be a program name with args. 8185set dummy ranlib; ac_word=$2 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8187$as_echo_n "checking for $ac_word... " >&6; } 8188if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 if test -n "$ac_ct_RANLIB"; then 8192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8193else 8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195for as_dir in $PATH 8196do 8197 IFS=$as_save_IFS 8198 test -z "$as_dir" && as_dir=. 8199 for ac_exec_ext in '' $ac_executable_extensions; do 8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8201 ac_cv_prog_ac_ct_RANLIB="ranlib" 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8203 break 2 8204 fi 8205done 8206 done 8207IFS=$as_save_IFS 8208 8209fi 8210fi 8211ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8212if test -n "$ac_ct_RANLIB"; then 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8214$as_echo "$ac_ct_RANLIB" >&6; } 8215else 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8217$as_echo "no" >&6; } 8218fi 8219 8220 if test "x$ac_ct_RANLIB" = x; then 8221 RANLIB=":" 8222 else 8223 case $cross_compiling:$ac_tool_warned in 8224yes:) 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8227ac_tool_warned=yes ;; 8228esac 8229 RANLIB=$ac_ct_RANLIB 8230 fi 8231else 8232 RANLIB="$ac_cv_prog_RANLIB" 8233fi 8234 8235test -z "$RANLIB" && RANLIB=: 8236 8237 8238 8239 8240 8241 8242# Determine commands to create old-style static archives. 8243old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8244old_postinstall_cmds='chmod 644 $oldlib' 8245old_postuninstall_cmds= 8246 8247if test -n "$RANLIB"; then 8248 case $host_os in 8249 openbsd*) 8250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8251 ;; 8252 *) 8253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8254 ;; 8255 esac 8256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8257fi 8258 8259case $host_os in 8260 darwin*) 8261 lock_old_archive_extraction=yes ;; 8262 *) 8263 lock_old_archive_extraction=no ;; 8264esac 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304# If no C compiler was specified, use CC. 8305LTCC=${LTCC-"$CC"} 8306 8307# If no C compiler flags were specified, use CFLAGS. 8308LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8309 8310# Allow CC to be a program name with arguments. 8311compiler=$CC 8312 8313 8314# Check for command to grab the raw symbol name followed by C symbol from nm. 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8316$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8317if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 8321# These are sane defaults that work on at least a few old systems. 8322# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8323 8324# Character class describing NM global symbol codes. 8325symcode='[BCDEGRST]' 8326 8327# Regexp to match symbols that can be accessed directly from C. 8328sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8329 8330# Define system-specific variables. 8331case $host_os in 8332aix*) 8333 symcode='[BCDT]' 8334 ;; 8335cygwin* | mingw* | pw32* | cegcc*) 8336 symcode='[ABCDGISTW]' 8337 ;; 8338hpux*) 8339 if test "$host_cpu" = ia64; then 8340 symcode='[ABCDEGRST]' 8341 fi 8342 ;; 8343irix* | nonstopux*) 8344 symcode='[BCDEGRST]' 8345 ;; 8346osf*) 8347 symcode='[BCDEGQRST]' 8348 ;; 8349solaris*) 8350 symcode='[BDRT]' 8351 ;; 8352sco3.2v5*) 8353 symcode='[DT]' 8354 ;; 8355sysv4.2uw2*) 8356 symcode='[DT]' 8357 ;; 8358sysv5* | sco5v6* | unixware* | OpenUNIX*) 8359 symcode='[ABDT]' 8360 ;; 8361sysv4) 8362 symcode='[DFNSTU]' 8363 ;; 8364esac 8365 8366# If we're using GNU nm, then use its standard symbol codes. 8367case `$NM -V 2>&1` in 8368*GNU* | *'with BFD'*) 8369 symcode='[ABCDGIRSTW]' ;; 8370esac 8371 8372# Transform an extracted symbol line into a proper C declaration. 8373# Some systems (esp. on ia64) link data and code symbols differently, 8374# so use this general approach. 8375lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8376 8377# Transform an extracted symbol line into symbol name and symbol address 8378lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8379lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8380 8381# Handle CRLF in mingw tool chain 8382opt_cr= 8383case $build_os in 8384mingw*) 8385 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8386 ;; 8387esac 8388 8389# Try without a prefix underscore, then with it. 8390for ac_symprfx in "" "_"; do 8391 8392 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8393 symxfrm="\\1 $ac_symprfx\\2 \\2" 8394 8395 # Write the raw and C identifiers. 8396 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8397 # Fake it for dumpbin and say T for any non-static function 8398 # and D for any global variable. 8399 # Also find C++ and __fastcall symbols from MSVC++, 8400 # which start with @ or ?. 8401 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8402" {last_section=section; section=\$ 3};"\ 8403" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8404" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8405" \$ 0!~/External *\|/{next};"\ 8406" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8407" {if(hide[section]) next};"\ 8408" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8409" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8410" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8411" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8412" ' prfx=^$ac_symprfx" 8413 else 8414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8415 fi 8416 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8417 8418 # Check to see that the pipe works correctly. 8419 pipe_works=no 8420 8421 rm -f conftest* 8422 cat > conftest.$ac_ext <<_LT_EOF 8423#ifdef __cplusplus 8424extern "C" { 8425#endif 8426char nm_test_var; 8427void nm_test_func(void); 8428void nm_test_func(void){} 8429#ifdef __cplusplus 8430} 8431#endif 8432int main(){nm_test_var='a';nm_test_func();return(0);} 8433_LT_EOF 8434 8435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8436 (eval $ac_compile) 2>&5 8437 ac_status=$? 8438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8439 test $ac_status = 0; }; then 8440 # Now try to grab the symbols. 8441 nlist=conftest.nm 8442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8443 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8444 ac_status=$? 8445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8446 test $ac_status = 0; } && test -s "$nlist"; then 8447 # Try sorting and uniquifying the output. 8448 if sort "$nlist" | uniq > "$nlist"T; then 8449 mv -f "$nlist"T "$nlist" 8450 else 8451 rm -f "$nlist"T 8452 fi 8453 8454 # Make sure that we snagged all the symbols we need. 8455 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8456 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8457 cat <<_LT_EOF > conftest.$ac_ext 8458/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8459#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8460/* DATA imports from DLLs on WIN32 con't be const, because runtime 8461 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8462# define LT_DLSYM_CONST 8463#elif defined(__osf__) 8464/* This system does not cope well with relocations in const data. */ 8465# define LT_DLSYM_CONST 8466#else 8467# define LT_DLSYM_CONST const 8468#endif 8469 8470#ifdef __cplusplus 8471extern "C" { 8472#endif 8473 8474_LT_EOF 8475 # Now generate the symbol file. 8476 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8477 8478 cat <<_LT_EOF >> conftest.$ac_ext 8479 8480/* The mapping between symbol names and symbols. */ 8481LT_DLSYM_CONST struct { 8482 const char *name; 8483 void *address; 8484} 8485lt__PROGRAM__LTX_preloaded_symbols[] = 8486{ 8487 { "@PROGRAM@", (void *) 0 }, 8488_LT_EOF 8489 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8490 cat <<\_LT_EOF >> conftest.$ac_ext 8491 {0, (void *) 0} 8492}; 8493 8494/* This works around a problem in FreeBSD linker */ 8495#ifdef FREEBSD_WORKAROUND 8496static const void *lt_preloaded_setup() { 8497 return lt__PROGRAM__LTX_preloaded_symbols; 8498} 8499#endif 8500 8501#ifdef __cplusplus 8502} 8503#endif 8504_LT_EOF 8505 # Now try linking the two files. 8506 mv conftest.$ac_objext conftstm.$ac_objext 8507 lt_globsym_save_LIBS=$LIBS 8508 lt_globsym_save_CFLAGS=$CFLAGS 8509 LIBS="conftstm.$ac_objext" 8510 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8512 (eval $ac_link) 2>&5 8513 ac_status=$? 8514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8515 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8516 pipe_works=yes 8517 fi 8518 LIBS=$lt_globsym_save_LIBS 8519 CFLAGS=$lt_globsym_save_CFLAGS 8520 else 8521 echo "cannot find nm_test_func in $nlist" >&5 8522 fi 8523 else 8524 echo "cannot find nm_test_var in $nlist" >&5 8525 fi 8526 else 8527 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8528 fi 8529 else 8530 echo "$progname: failed program was:" >&5 8531 cat conftest.$ac_ext >&5 8532 fi 8533 rm -rf conftest* conftst* 8534 8535 # Do not use the global_symbol_pipe unless it works. 8536 if test "$pipe_works" = yes; then 8537 break 8538 else 8539 lt_cv_sys_global_symbol_pipe= 8540 fi 8541done 8542 8543fi 8544 8545if test -z "$lt_cv_sys_global_symbol_pipe"; then 8546 lt_cv_sys_global_symbol_to_cdecl= 8547fi 8548if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8550$as_echo "failed" >&6; } 8551else 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8553$as_echo "ok" >&6; } 8554fi 8555 8556# Response file support. 8557if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8558 nm_file_list_spec='@' 8559elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8560 nm_file_list_spec='@' 8561fi 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8590$as_echo_n "checking for sysroot... " >&6; } 8591 8592# Check whether --with-sysroot was given. 8593if test "${with_sysroot+set}" = set; then : 8594 withval=$with_sysroot; 8595else 8596 with_sysroot=no 8597fi 8598 8599 8600lt_sysroot= 8601case ${with_sysroot} in #( 8602 yes) 8603 if test "$GCC" = yes; then 8604 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8605 fi 8606 ;; #( 8607 /*) 8608 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8609 ;; #( 8610 no|'') 8611 ;; #( 8612 *) 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8614$as_echo "${with_sysroot}" >&6; } 8615 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8616 ;; 8617esac 8618 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8620$as_echo "${lt_sysroot:-no}" >&6; } 8621 8622 8623 8624 8625 8626# Check whether --enable-libtool-lock was given. 8627if test "${enable_libtool_lock+set}" = set; then : 8628 enableval=$enable_libtool_lock; 8629fi 8630 8631test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8632 8633# Some flags need to be propagated to the compiler or linker for good 8634# libtool support. 8635case $host in 8636ia64-*-hpux*) 8637 # Find out which ABI we are using. 8638 echo 'int i;' > conftest.$ac_ext 8639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8640 (eval $ac_compile) 2>&5 8641 ac_status=$? 8642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8643 test $ac_status = 0; }; then 8644 case `/usr/bin/file conftest.$ac_objext` in 8645 *ELF-32*) 8646 HPUX_IA64_MODE="32" 8647 ;; 8648 *ELF-64*) 8649 HPUX_IA64_MODE="64" 8650 ;; 8651 esac 8652 fi 8653 rm -rf conftest* 8654 ;; 8655*-*-irix6*) 8656 # Find out which ABI we are using. 8657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8659 (eval $ac_compile) 2>&5 8660 ac_status=$? 8661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8662 test $ac_status = 0; }; then 8663 if test "$lt_cv_prog_gnu_ld" = yes; then 8664 case `/usr/bin/file conftest.$ac_objext` in 8665 *32-bit*) 8666 LD="${LD-ld} -melf32bsmip" 8667 ;; 8668 *N32*) 8669 LD="${LD-ld} -melf32bmipn32" 8670 ;; 8671 *64-bit*) 8672 LD="${LD-ld} -melf64bmip" 8673 ;; 8674 esac 8675 else 8676 case `/usr/bin/file conftest.$ac_objext` in 8677 *32-bit*) 8678 LD="${LD-ld} -32" 8679 ;; 8680 *N32*) 8681 LD="${LD-ld} -n32" 8682 ;; 8683 *64-bit*) 8684 LD="${LD-ld} -64" 8685 ;; 8686 esac 8687 fi 8688 fi 8689 rm -rf conftest* 8690 ;; 8691 8692x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8693s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8694 # Find out which ABI we are using. 8695 echo 'int i;' > conftest.$ac_ext 8696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8697 (eval $ac_compile) 2>&5 8698 ac_status=$? 8699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8700 test $ac_status = 0; }; then 8701 case `/usr/bin/file conftest.o` in 8702 *32-bit*) 8703 case $host in 8704 x86_64-*kfreebsd*-gnu) 8705 LD="${LD-ld} -m elf_i386_fbsd" 8706 ;; 8707 x86_64-*linux*) 8708 LD="${LD-ld} -m elf_i386" 8709 ;; 8710 ppc64-*linux*|powerpc64-*linux*) 8711 LD="${LD-ld} -m elf32ppclinux" 8712 ;; 8713 s390x-*linux*) 8714 LD="${LD-ld} -m elf_s390" 8715 ;; 8716 sparc64-*linux*) 8717 LD="${LD-ld} -m elf32_sparc" 8718 ;; 8719 esac 8720 ;; 8721 *64-bit*) 8722 case $host in 8723 x86_64-*kfreebsd*-gnu) 8724 LD="${LD-ld} -m elf_x86_64_fbsd" 8725 ;; 8726 x86_64-*linux*) 8727 LD="${LD-ld} -m elf_x86_64" 8728 ;; 8729 ppc*-*linux*|powerpc*-*linux*) 8730 LD="${LD-ld} -m elf64ppc" 8731 ;; 8732 s390*-*linux*|s390*-*tpf*) 8733 LD="${LD-ld} -m elf64_s390" 8734 ;; 8735 sparc*-*linux*) 8736 LD="${LD-ld} -m elf64_sparc" 8737 ;; 8738 esac 8739 ;; 8740 esac 8741 fi 8742 rm -rf conftest* 8743 ;; 8744 8745*-*-sco3.2v5*) 8746 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8747 SAVE_CFLAGS="$CFLAGS" 8748 CFLAGS="$CFLAGS -belf" 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8750$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8751if ${lt_cv_cc_needs_belf+:} false; then : 8752 $as_echo_n "(cached) " >&6 8753else 8754 ac_ext=c 8755ac_cpp='$CPP $CPPFLAGS' 8756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8758ac_compiler_gnu=$ac_cv_c_compiler_gnu 8759 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761/* end confdefs.h. */ 8762 8763int 8764main () 8765{ 8766 8767 ; 8768 return 0; 8769} 8770_ACEOF 8771if ac_fn_c_try_link "$LINENO"; then : 8772 lt_cv_cc_needs_belf=yes 8773else 8774 lt_cv_cc_needs_belf=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext \ 8777 conftest$ac_exeext conftest.$ac_ext 8778 ac_ext=c 8779ac_cpp='$CPP $CPPFLAGS' 8780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8782ac_compiler_gnu=$ac_cv_c_compiler_gnu 8783 8784fi 8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8786$as_echo "$lt_cv_cc_needs_belf" >&6; } 8787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8789 CFLAGS="$SAVE_CFLAGS" 8790 fi 8791 ;; 8792*-*solaris*) 8793 # Find out which ABI we are using. 8794 echo 'int i;' > conftest.$ac_ext 8795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8796 (eval $ac_compile) 2>&5 8797 ac_status=$? 8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8799 test $ac_status = 0; }; then 8800 case `/usr/bin/file conftest.o` in 8801 *64-bit*) 8802 case $lt_cv_prog_gnu_ld in 8803 yes*) 8804 case $host in 8805 i?86-*-solaris*) 8806 LD="${LD-ld} -m elf_x86_64" 8807 ;; 8808 sparc*-*-solaris*) 8809 LD="${LD-ld} -m elf64_sparc" 8810 ;; 8811 esac 8812 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8813 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8814 LD="${LD-ld}_sol2" 8815 fi 8816 ;; 8817 *) 8818 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8819 LD="${LD-ld} -64" 8820 fi 8821 ;; 8822 esac 8823 ;; 8824 esac 8825 fi 8826 rm -rf conftest* 8827 ;; 8828esac 8829 8830need_locks="$enable_libtool_lock" 8831 8832if test -n "$ac_tool_prefix"; then 8833 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8834set dummy ${ac_tool_prefix}mt; ac_word=$2 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8836$as_echo_n "checking for $ac_word... " >&6; } 8837if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 if test -n "$MANIFEST_TOOL"; then 8841 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8842else 8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8844for as_dir in $PATH 8845do 8846 IFS=$as_save_IFS 8847 test -z "$as_dir" && as_dir=. 8848 for ac_exec_ext in '' $ac_executable_extensions; do 8849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8850 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8852 break 2 8853 fi 8854done 8855 done 8856IFS=$as_save_IFS 8857 8858fi 8859fi 8860MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8861if test -n "$MANIFEST_TOOL"; then 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8863$as_echo "$MANIFEST_TOOL" >&6; } 8864else 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8866$as_echo "no" >&6; } 8867fi 8868 8869 8870fi 8871if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8872 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8873 # Extract the first word of "mt", so it can be a program name with args. 8874set dummy mt; ac_word=$2 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8876$as_echo_n "checking for $ac_word... " >&6; } 8877if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8878 $as_echo_n "(cached) " >&6 8879else 8880 if test -n "$ac_ct_MANIFEST_TOOL"; then 8881 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8882else 8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8884for as_dir in $PATH 8885do 8886 IFS=$as_save_IFS 8887 test -z "$as_dir" && as_dir=. 8888 for ac_exec_ext in '' $ac_executable_extensions; do 8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8890 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8892 break 2 8893 fi 8894done 8895 done 8896IFS=$as_save_IFS 8897 8898fi 8899fi 8900ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8901if test -n "$ac_ct_MANIFEST_TOOL"; then 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8903$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8904else 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8906$as_echo "no" >&6; } 8907fi 8908 8909 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8910 MANIFEST_TOOL=":" 8911 else 8912 case $cross_compiling:$ac_tool_warned in 8913yes:) 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8916ac_tool_warned=yes ;; 8917esac 8918 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8919 fi 8920else 8921 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8922fi 8923 8924test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8926$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8927if ${lt_cv_path_mainfest_tool+:} false; then : 8928 $as_echo_n "(cached) " >&6 8929else 8930 lt_cv_path_mainfest_tool=no 8931 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8932 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8933 cat conftest.err >&5 8934 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8935 lt_cv_path_mainfest_tool=yes 8936 fi 8937 rm -f conftest* 8938fi 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8940$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8941if test "x$lt_cv_path_mainfest_tool" != xyes; then 8942 MANIFEST_TOOL=: 8943fi 8944 8945 8946 8947 8948 8949 8950 case $host_os in 8951 rhapsody* | darwin*) 8952 if test -n "$ac_tool_prefix"; then 8953 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8954set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8956$as_echo_n "checking for $ac_word... " >&6; } 8957if ${ac_cv_prog_DSYMUTIL+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 if test -n "$DSYMUTIL"; then 8961 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8962else 8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8964for as_dir in $PATH 8965do 8966 IFS=$as_save_IFS 8967 test -z "$as_dir" && as_dir=. 8968 for ac_exec_ext in '' $ac_executable_extensions; do 8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8970 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8972 break 2 8973 fi 8974done 8975 done 8976IFS=$as_save_IFS 8977 8978fi 8979fi 8980DSYMUTIL=$ac_cv_prog_DSYMUTIL 8981if test -n "$DSYMUTIL"; then 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8983$as_echo "$DSYMUTIL" >&6; } 8984else 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8986$as_echo "no" >&6; } 8987fi 8988 8989 8990fi 8991if test -z "$ac_cv_prog_DSYMUTIL"; then 8992 ac_ct_DSYMUTIL=$DSYMUTIL 8993 # Extract the first word of "dsymutil", so it can be a program name with args. 8994set dummy dsymutil; ac_word=$2 8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8996$as_echo_n "checking for $ac_word... " >&6; } 8997if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 if test -n "$ac_ct_DSYMUTIL"; then 9001 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9002else 9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9004for as_dir in $PATH 9005do 9006 IFS=$as_save_IFS 9007 test -z "$as_dir" && as_dir=. 9008 for ac_exec_ext in '' $ac_executable_extensions; do 9009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9010 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9012 break 2 9013 fi 9014done 9015 done 9016IFS=$as_save_IFS 9017 9018fi 9019fi 9020ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9021if test -n "$ac_ct_DSYMUTIL"; then 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9023$as_echo "$ac_ct_DSYMUTIL" >&6; } 9024else 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9026$as_echo "no" >&6; } 9027fi 9028 9029 if test "x$ac_ct_DSYMUTIL" = x; then 9030 DSYMUTIL=":" 9031 else 9032 case $cross_compiling:$ac_tool_warned in 9033yes:) 9034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9036ac_tool_warned=yes ;; 9037esac 9038 DSYMUTIL=$ac_ct_DSYMUTIL 9039 fi 9040else 9041 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9042fi 9043 9044 if test -n "$ac_tool_prefix"; then 9045 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9046set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9048$as_echo_n "checking for $ac_word... " >&6; } 9049if ${ac_cv_prog_NMEDIT+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 if test -n "$NMEDIT"; then 9053 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9054else 9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9056for as_dir in $PATH 9057do 9058 IFS=$as_save_IFS 9059 test -z "$as_dir" && as_dir=. 9060 for ac_exec_ext in '' $ac_executable_extensions; do 9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9062 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9064 break 2 9065 fi 9066done 9067 done 9068IFS=$as_save_IFS 9069 9070fi 9071fi 9072NMEDIT=$ac_cv_prog_NMEDIT 9073if test -n "$NMEDIT"; then 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9075$as_echo "$NMEDIT" >&6; } 9076else 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078$as_echo "no" >&6; } 9079fi 9080 9081 9082fi 9083if test -z "$ac_cv_prog_NMEDIT"; then 9084 ac_ct_NMEDIT=$NMEDIT 9085 # Extract the first word of "nmedit", so it can be a program name with args. 9086set dummy nmedit; ac_word=$2 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9088$as_echo_n "checking for $ac_word... " >&6; } 9089if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 if test -n "$ac_ct_NMEDIT"; then 9093 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9094else 9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9096for as_dir in $PATH 9097do 9098 IFS=$as_save_IFS 9099 test -z "$as_dir" && as_dir=. 9100 for ac_exec_ext in '' $ac_executable_extensions; do 9101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9102 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9104 break 2 9105 fi 9106done 9107 done 9108IFS=$as_save_IFS 9109 9110fi 9111fi 9112ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9113if test -n "$ac_ct_NMEDIT"; then 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9115$as_echo "$ac_ct_NMEDIT" >&6; } 9116else 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9118$as_echo "no" >&6; } 9119fi 9120 9121 if test "x$ac_ct_NMEDIT" = x; then 9122 NMEDIT=":" 9123 else 9124 case $cross_compiling:$ac_tool_warned in 9125yes:) 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9128ac_tool_warned=yes ;; 9129esac 9130 NMEDIT=$ac_ct_NMEDIT 9131 fi 9132else 9133 NMEDIT="$ac_cv_prog_NMEDIT" 9134fi 9135 9136 if test -n "$ac_tool_prefix"; then 9137 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9138set dummy ${ac_tool_prefix}lipo; ac_word=$2 9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9140$as_echo_n "checking for $ac_word... " >&6; } 9141if ${ac_cv_prog_LIPO+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143else 9144 if test -n "$LIPO"; then 9145 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9146else 9147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9148for as_dir in $PATH 9149do 9150 IFS=$as_save_IFS 9151 test -z "$as_dir" && as_dir=. 9152 for ac_exec_ext in '' $ac_executable_extensions; do 9153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9154 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9156 break 2 9157 fi 9158done 9159 done 9160IFS=$as_save_IFS 9161 9162fi 9163fi 9164LIPO=$ac_cv_prog_LIPO 9165if test -n "$LIPO"; then 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9167$as_echo "$LIPO" >&6; } 9168else 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9170$as_echo "no" >&6; } 9171fi 9172 9173 9174fi 9175if test -z "$ac_cv_prog_LIPO"; then 9176 ac_ct_LIPO=$LIPO 9177 # Extract the first word of "lipo", so it can be a program name with args. 9178set dummy lipo; ac_word=$2 9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180$as_echo_n "checking for $ac_word... " >&6; } 9181if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 if test -n "$ac_ct_LIPO"; then 9185 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9186else 9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9188for as_dir in $PATH 9189do 9190 IFS=$as_save_IFS 9191 test -z "$as_dir" && as_dir=. 9192 for ac_exec_ext in '' $ac_executable_extensions; do 9193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9194 ac_cv_prog_ac_ct_LIPO="lipo" 9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9196 break 2 9197 fi 9198done 9199 done 9200IFS=$as_save_IFS 9201 9202fi 9203fi 9204ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9205if test -n "$ac_ct_LIPO"; then 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9207$as_echo "$ac_ct_LIPO" >&6; } 9208else 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9210$as_echo "no" >&6; } 9211fi 9212 9213 if test "x$ac_ct_LIPO" = x; then 9214 LIPO=":" 9215 else 9216 case $cross_compiling:$ac_tool_warned in 9217yes:) 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9220ac_tool_warned=yes ;; 9221esac 9222 LIPO=$ac_ct_LIPO 9223 fi 9224else 9225 LIPO="$ac_cv_prog_LIPO" 9226fi 9227 9228 if test -n "$ac_tool_prefix"; then 9229 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9230set dummy ${ac_tool_prefix}otool; ac_word=$2 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9232$as_echo_n "checking for $ac_word... " >&6; } 9233if ${ac_cv_prog_OTOOL+:} false; then : 9234 $as_echo_n "(cached) " >&6 9235else 9236 if test -n "$OTOOL"; then 9237 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9238else 9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9240for as_dir in $PATH 9241do 9242 IFS=$as_save_IFS 9243 test -z "$as_dir" && as_dir=. 9244 for ac_exec_ext in '' $ac_executable_extensions; do 9245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9246 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9248 break 2 9249 fi 9250done 9251 done 9252IFS=$as_save_IFS 9253 9254fi 9255fi 9256OTOOL=$ac_cv_prog_OTOOL 9257if test -n "$OTOOL"; then 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9259$as_echo "$OTOOL" >&6; } 9260else 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9262$as_echo "no" >&6; } 9263fi 9264 9265 9266fi 9267if test -z "$ac_cv_prog_OTOOL"; then 9268 ac_ct_OTOOL=$OTOOL 9269 # Extract the first word of "otool", so it can be a program name with args. 9270set dummy otool; ac_word=$2 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9272$as_echo_n "checking for $ac_word... " >&6; } 9273if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9274 $as_echo_n "(cached) " >&6 9275else 9276 if test -n "$ac_ct_OTOOL"; then 9277 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9278else 9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9280for as_dir in $PATH 9281do 9282 IFS=$as_save_IFS 9283 test -z "$as_dir" && as_dir=. 9284 for ac_exec_ext in '' $ac_executable_extensions; do 9285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9286 ac_cv_prog_ac_ct_OTOOL="otool" 9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9288 break 2 9289 fi 9290done 9291 done 9292IFS=$as_save_IFS 9293 9294fi 9295fi 9296ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9297if test -n "$ac_ct_OTOOL"; then 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9299$as_echo "$ac_ct_OTOOL" >&6; } 9300else 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9302$as_echo "no" >&6; } 9303fi 9304 9305 if test "x$ac_ct_OTOOL" = x; then 9306 OTOOL=":" 9307 else 9308 case $cross_compiling:$ac_tool_warned in 9309yes:) 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9312ac_tool_warned=yes ;; 9313esac 9314 OTOOL=$ac_ct_OTOOL 9315 fi 9316else 9317 OTOOL="$ac_cv_prog_OTOOL" 9318fi 9319 9320 if test -n "$ac_tool_prefix"; then 9321 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9322set dummy ${ac_tool_prefix}otool64; ac_word=$2 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9324$as_echo_n "checking for $ac_word... " >&6; } 9325if ${ac_cv_prog_OTOOL64+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327else 9328 if test -n "$OTOOL64"; then 9329 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9330else 9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9332for as_dir in $PATH 9333do 9334 IFS=$as_save_IFS 9335 test -z "$as_dir" && as_dir=. 9336 for ac_exec_ext in '' $ac_executable_extensions; do 9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9338 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9340 break 2 9341 fi 9342done 9343 done 9344IFS=$as_save_IFS 9345 9346fi 9347fi 9348OTOOL64=$ac_cv_prog_OTOOL64 9349if test -n "$OTOOL64"; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9351$as_echo "$OTOOL64" >&6; } 9352else 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9354$as_echo "no" >&6; } 9355fi 9356 9357 9358fi 9359if test -z "$ac_cv_prog_OTOOL64"; then 9360 ac_ct_OTOOL64=$OTOOL64 9361 # Extract the first word of "otool64", so it can be a program name with args. 9362set dummy otool64; ac_word=$2 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9364$as_echo_n "checking for $ac_word... " >&6; } 9365if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 if test -n "$ac_ct_OTOOL64"; then 9369 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9370else 9371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9372for as_dir in $PATH 9373do 9374 IFS=$as_save_IFS 9375 test -z "$as_dir" && as_dir=. 9376 for ac_exec_ext in '' $ac_executable_extensions; do 9377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9378 ac_cv_prog_ac_ct_OTOOL64="otool64" 9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9380 break 2 9381 fi 9382done 9383 done 9384IFS=$as_save_IFS 9385 9386fi 9387fi 9388ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9389if test -n "$ac_ct_OTOOL64"; then 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9391$as_echo "$ac_ct_OTOOL64" >&6; } 9392else 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9394$as_echo "no" >&6; } 9395fi 9396 9397 if test "x$ac_ct_OTOOL64" = x; then 9398 OTOOL64=":" 9399 else 9400 case $cross_compiling:$ac_tool_warned in 9401yes:) 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9404ac_tool_warned=yes ;; 9405esac 9406 OTOOL64=$ac_ct_OTOOL64 9407 fi 9408else 9409 OTOOL64="$ac_cv_prog_OTOOL64" 9410fi 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9439$as_echo_n "checking for -single_module linker flag... " >&6; } 9440if ${lt_cv_apple_cc_single_mod+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 lt_cv_apple_cc_single_mod=no 9444 if test -z "${LT_MULTI_MODULE}"; then 9445 # By default we will add the -single_module flag. You can override 9446 # by either setting the environment variable LT_MULTI_MODULE 9447 # non-empty at configure time, or by adding -multi_module to the 9448 # link flags. 9449 rm -rf libconftest.dylib* 9450 echo "int foo(void){return 1;}" > conftest.c 9451 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9452-dynamiclib -Wl,-single_module conftest.c" >&5 9453 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9454 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9455 _lt_result=$? 9456 # If there is a non-empty error log, and "single_module" 9457 # appears in it, assume the flag caused a linker warning 9458 if test -s conftest.err && $GREP single_module conftest.err; then 9459 cat conftest.err >&5 9460 # Otherwise, if the output was created with a 0 exit code from 9461 # the compiler, it worked. 9462 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9463 lt_cv_apple_cc_single_mod=yes 9464 else 9465 cat conftest.err >&5 9466 fi 9467 rm -rf libconftest.dylib* 9468 rm -f conftest.* 9469 fi 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9472$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9473 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9475$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9476if ${lt_cv_ld_exported_symbols_list+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 lt_cv_ld_exported_symbols_list=no 9480 save_LDFLAGS=$LDFLAGS 9481 echo "_main" > conftest.sym 9482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485 9486int 9487main () 9488{ 9489 9490 ; 9491 return 0; 9492} 9493_ACEOF 9494if ac_fn_c_try_link "$LINENO"; then : 9495 lt_cv_ld_exported_symbols_list=yes 9496else 9497 lt_cv_ld_exported_symbols_list=no 9498fi 9499rm -f core conftest.err conftest.$ac_objext \ 9500 conftest$ac_exeext conftest.$ac_ext 9501 LDFLAGS="$save_LDFLAGS" 9502 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9505$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9506 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9508$as_echo_n "checking for -force_load linker flag... " >&6; } 9509if ${lt_cv_ld_force_load+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 lt_cv_ld_force_load=no 9513 cat > conftest.c << _LT_EOF 9514int forced_loaded() { return 2;} 9515_LT_EOF 9516 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9517 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9518 echo "$AR cru libconftest.a conftest.o" >&5 9519 $AR cru libconftest.a conftest.o 2>&5 9520 echo "$RANLIB libconftest.a" >&5 9521 $RANLIB libconftest.a 2>&5 9522 cat > conftest.c << _LT_EOF 9523int main() { return 0;} 9524_LT_EOF 9525 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9526 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9527 _lt_result=$? 9528 if test -s conftest.err && $GREP force_load conftest.err; then 9529 cat conftest.err >&5 9530 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9531 lt_cv_ld_force_load=yes 9532 else 9533 cat conftest.err >&5 9534 fi 9535 rm -f conftest.err libconftest.a conftest conftest.c 9536 rm -rf conftest.dSYM 9537 9538fi 9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9540$as_echo "$lt_cv_ld_force_load" >&6; } 9541 case $host_os in 9542 rhapsody* | darwin1.[012]) 9543 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9544 darwin1.*) 9545 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9546 darwin*) # darwin 5.x on 9547 # if running on 10.5 or later, the deployment target defaults 9548 # to the OS version, if on x86, and 10.4, the deployment 9549 # target defaults to 10.4. Don't you love it? 9550 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9551 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9552 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9553 10.[012]*) 9554 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9555 10.*) 9556 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9557 esac 9558 ;; 9559 esac 9560 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9561 _lt_dar_single_mod='$single_module' 9562 fi 9563 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9564 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9565 else 9566 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9567 fi 9568 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9569 _lt_dsymutil='~$DSYMUTIL $lib || :' 9570 else 9571 _lt_dsymutil= 9572 fi 9573 ;; 9574 esac 9575 9576for ac_header in dlfcn.h 9577do : 9578 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9579" 9580if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9581 cat >>confdefs.h <<_ACEOF 9582#define HAVE_DLFCN_H 1 9583_ACEOF 9584 9585fi 9586 9587done 9588 9589 9590 9591 9592func_stripname_cnf () 9593{ 9594 case ${2} in 9595 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9596 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9597 esac 9598} # func_stripname_cnf 9599 9600 9601 9602 9603 9604# Set options 9605enable_dlopen=yes 9606enable_win32_dll=yes 9607 9608case $host in 9609*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9610 if test -n "$ac_tool_prefix"; then 9611 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9612set dummy ${ac_tool_prefix}as; ac_word=$2 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9614$as_echo_n "checking for $ac_word... " >&6; } 9615if ${ac_cv_prog_AS+:} false; then : 9616 $as_echo_n "(cached) " >&6 9617else 9618 if test -n "$AS"; then 9619 ac_cv_prog_AS="$AS" # Let the user override the test. 9620else 9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9622for as_dir in $PATH 9623do 9624 IFS=$as_save_IFS 9625 test -z "$as_dir" && as_dir=. 9626 for ac_exec_ext in '' $ac_executable_extensions; do 9627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9628 ac_cv_prog_AS="${ac_tool_prefix}as" 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9630 break 2 9631 fi 9632done 9633 done 9634IFS=$as_save_IFS 9635 9636fi 9637fi 9638AS=$ac_cv_prog_AS 9639if test -n "$AS"; then 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9641$as_echo "$AS" >&6; } 9642else 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9644$as_echo "no" >&6; } 9645fi 9646 9647 9648fi 9649if test -z "$ac_cv_prog_AS"; then 9650 ac_ct_AS=$AS 9651 # Extract the first word of "as", so it can be a program name with args. 9652set dummy as; ac_word=$2 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9654$as_echo_n "checking for $ac_word... " >&6; } 9655if ${ac_cv_prog_ac_ct_AS+:} false; then : 9656 $as_echo_n "(cached) " >&6 9657else 9658 if test -n "$ac_ct_AS"; then 9659 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9660else 9661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9662for as_dir in $PATH 9663do 9664 IFS=$as_save_IFS 9665 test -z "$as_dir" && as_dir=. 9666 for ac_exec_ext in '' $ac_executable_extensions; do 9667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9668 ac_cv_prog_ac_ct_AS="as" 9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9670 break 2 9671 fi 9672done 9673 done 9674IFS=$as_save_IFS 9675 9676fi 9677fi 9678ac_ct_AS=$ac_cv_prog_ac_ct_AS 9679if test -n "$ac_ct_AS"; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9681$as_echo "$ac_ct_AS" >&6; } 9682else 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9684$as_echo "no" >&6; } 9685fi 9686 9687 if test "x$ac_ct_AS" = x; then 9688 AS="false" 9689 else 9690 case $cross_compiling:$ac_tool_warned in 9691yes:) 9692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9694ac_tool_warned=yes ;; 9695esac 9696 AS=$ac_ct_AS 9697 fi 9698else 9699 AS="$ac_cv_prog_AS" 9700fi 9701 9702 if test -n "$ac_tool_prefix"; then 9703 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9704set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9706$as_echo_n "checking for $ac_word... " >&6; } 9707if ${ac_cv_prog_DLLTOOL+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 if test -n "$DLLTOOL"; then 9711 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9712else 9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9714for as_dir in $PATH 9715do 9716 IFS=$as_save_IFS 9717 test -z "$as_dir" && as_dir=. 9718 for ac_exec_ext in '' $ac_executable_extensions; do 9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9720 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9722 break 2 9723 fi 9724done 9725 done 9726IFS=$as_save_IFS 9727 9728fi 9729fi 9730DLLTOOL=$ac_cv_prog_DLLTOOL 9731if test -n "$DLLTOOL"; then 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9733$as_echo "$DLLTOOL" >&6; } 9734else 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9736$as_echo "no" >&6; } 9737fi 9738 9739 9740fi 9741if test -z "$ac_cv_prog_DLLTOOL"; then 9742 ac_ct_DLLTOOL=$DLLTOOL 9743 # Extract the first word of "dlltool", so it can be a program name with args. 9744set dummy dlltool; ac_word=$2 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9746$as_echo_n "checking for $ac_word... " >&6; } 9747if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 if test -n "$ac_ct_DLLTOOL"; then 9751 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9752else 9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9754for as_dir in $PATH 9755do 9756 IFS=$as_save_IFS 9757 test -z "$as_dir" && as_dir=. 9758 for ac_exec_ext in '' $ac_executable_extensions; do 9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9760 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9762 break 2 9763 fi 9764done 9765 done 9766IFS=$as_save_IFS 9767 9768fi 9769fi 9770ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9771if test -n "$ac_ct_DLLTOOL"; then 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9773$as_echo "$ac_ct_DLLTOOL" >&6; } 9774else 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9776$as_echo "no" >&6; } 9777fi 9778 9779 if test "x$ac_ct_DLLTOOL" = x; then 9780 DLLTOOL="false" 9781 else 9782 case $cross_compiling:$ac_tool_warned in 9783yes:) 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9786ac_tool_warned=yes ;; 9787esac 9788 DLLTOOL=$ac_ct_DLLTOOL 9789 fi 9790else 9791 DLLTOOL="$ac_cv_prog_DLLTOOL" 9792fi 9793 9794 if test -n "$ac_tool_prefix"; then 9795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9796set dummy ${ac_tool_prefix}objdump; ac_word=$2 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9798$as_echo_n "checking for $ac_word... " >&6; } 9799if ${ac_cv_prog_OBJDUMP+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 if test -n "$OBJDUMP"; then 9803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9804else 9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9806for as_dir in $PATH 9807do 9808 IFS=$as_save_IFS 9809 test -z "$as_dir" && as_dir=. 9810 for ac_exec_ext in '' $ac_executable_extensions; do 9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9814 break 2 9815 fi 9816done 9817 done 9818IFS=$as_save_IFS 9819 9820fi 9821fi 9822OBJDUMP=$ac_cv_prog_OBJDUMP 9823if test -n "$OBJDUMP"; then 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9825$as_echo "$OBJDUMP" >&6; } 9826else 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9828$as_echo "no" >&6; } 9829fi 9830 9831 9832fi 9833if test -z "$ac_cv_prog_OBJDUMP"; then 9834 ac_ct_OBJDUMP=$OBJDUMP 9835 # Extract the first word of "objdump", so it can be a program name with args. 9836set dummy objdump; ac_word=$2 9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9838$as_echo_n "checking for $ac_word... " >&6; } 9839if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841else 9842 if test -n "$ac_ct_OBJDUMP"; then 9843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9844else 9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9846for as_dir in $PATH 9847do 9848 IFS=$as_save_IFS 9849 test -z "$as_dir" && as_dir=. 9850 for ac_exec_ext in '' $ac_executable_extensions; do 9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9852 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9854 break 2 9855 fi 9856done 9857 done 9858IFS=$as_save_IFS 9859 9860fi 9861fi 9862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9863if test -n "$ac_ct_OBJDUMP"; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9865$as_echo "$ac_ct_OBJDUMP" >&6; } 9866else 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9868$as_echo "no" >&6; } 9869fi 9870 9871 if test "x$ac_ct_OBJDUMP" = x; then 9872 OBJDUMP="false" 9873 else 9874 case $cross_compiling:$ac_tool_warned in 9875yes:) 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9878ac_tool_warned=yes ;; 9879esac 9880 OBJDUMP=$ac_ct_OBJDUMP 9881 fi 9882else 9883 OBJDUMP="$ac_cv_prog_OBJDUMP" 9884fi 9885 9886 ;; 9887esac 9888 9889test -z "$AS" && AS=as 9890 9891 9892 9893 9894 9895test -z "$DLLTOOL" && DLLTOOL=dlltool 9896 9897 9898 9899 9900 9901test -z "$OBJDUMP" && OBJDUMP=objdump 9902 9903 9904 9905 9906# Check whether --enable-static was given. 9907if test "${enable_static+set}" = set; then : 9908 enableval=$enable_static; p=${PACKAGE-default} 9909 case $enableval in 9910 yes) enable_static=yes ;; 9911 no) enable_static=no ;; 9912 *) 9913 enable_static=no 9914 # Look at the argument we got. We use all the common list separators. 9915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9916 for pkg in $enableval; do 9917 IFS="$lt_save_ifs" 9918 if test "X$pkg" = "X$p"; then 9919 enable_static=yes 9920 fi 9921 done 9922 IFS="$lt_save_ifs" 9923 ;; 9924 esac 9925else 9926 enable_static=no 9927fi 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 # Check whether --enable-shared was given. 9941if test "${enable_shared+set}" = set; then : 9942 enableval=$enable_shared; p=${PACKAGE-default} 9943 case $enableval in 9944 yes) enable_shared=yes ;; 9945 no) enable_shared=no ;; 9946 *) 9947 enable_shared=no 9948 # Look at the argument we got. We use all the common list separators. 9949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9950 for pkg in $enableval; do 9951 IFS="$lt_save_ifs" 9952 if test "X$pkg" = "X$p"; then 9953 enable_shared=yes 9954 fi 9955 done 9956 IFS="$lt_save_ifs" 9957 ;; 9958 esac 9959else 9960 enable_shared=yes 9961fi 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973# Check whether --with-pic was given. 9974if test "${with_pic+set}" = set; then : 9975 withval=$with_pic; lt_p=${PACKAGE-default} 9976 case $withval in 9977 yes|no) pic_mode=$withval ;; 9978 *) 9979 pic_mode=default 9980 # Look at the argument we got. We use all the common list separators. 9981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9982 for lt_pkg in $withval; do 9983 IFS="$lt_save_ifs" 9984 if test "X$lt_pkg" = "X$lt_p"; then 9985 pic_mode=yes 9986 fi 9987 done 9988 IFS="$lt_save_ifs" 9989 ;; 9990 esac 9991else 9992 pic_mode=default 9993fi 9994 9995 9996test -z "$pic_mode" && pic_mode=default 9997 9998 9999 10000 10001 10002 10003 10004 # Check whether --enable-fast-install was given. 10005if test "${enable_fast_install+set}" = set; then : 10006 enableval=$enable_fast_install; p=${PACKAGE-default} 10007 case $enableval in 10008 yes) enable_fast_install=yes ;; 10009 no) enable_fast_install=no ;; 10010 *) 10011 enable_fast_install=no 10012 # Look at the argument we got. We use all the common list separators. 10013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10014 for pkg in $enableval; do 10015 IFS="$lt_save_ifs" 10016 if test "X$pkg" = "X$p"; then 10017 enable_fast_install=yes 10018 fi 10019 done 10020 IFS="$lt_save_ifs" 10021 ;; 10022 esac 10023else 10024 enable_fast_install=yes 10025fi 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037# This can be used to rebuild libtool when needed 10038LIBTOOL_DEPS="$ltmain" 10039 10040# Always use our own libtool. 10041LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072test -z "$LN_S" && LN_S="ln -s" 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087if test -n "${ZSH_VERSION+set}" ; then 10088 setopt NO_GLOB_SUBST 10089fi 10090 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10092$as_echo_n "checking for objdir... " >&6; } 10093if ${lt_cv_objdir+:} false; then : 10094 $as_echo_n "(cached) " >&6 10095else 10096 rm -f .libs 2>/dev/null 10097mkdir .libs 2>/dev/null 10098if test -d .libs; then 10099 lt_cv_objdir=.libs 10100else 10101 # MS-DOS does not allow filenames that begin with a dot. 10102 lt_cv_objdir=_libs 10103fi 10104rmdir .libs 2>/dev/null 10105fi 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10107$as_echo "$lt_cv_objdir" >&6; } 10108objdir=$lt_cv_objdir 10109 10110 10111 10112 10113 10114cat >>confdefs.h <<_ACEOF 10115#define LT_OBJDIR "$lt_cv_objdir/" 10116_ACEOF 10117 10118 10119 10120 10121case $host_os in 10122aix3*) 10123 # AIX sometimes has problems with the GCC collect2 program. For some 10124 # reason, if we set the COLLECT_NAMES environment variable, the problems 10125 # vanish in a puff of smoke. 10126 if test "X${COLLECT_NAMES+set}" != Xset; then 10127 COLLECT_NAMES= 10128 export COLLECT_NAMES 10129 fi 10130 ;; 10131esac 10132 10133# Global variables: 10134ofile=libtool 10135can_build_shared=yes 10136 10137# All known linkers require a `.a' archive for static linking (except MSVC, 10138# which needs '.lib'). 10139libext=a 10140 10141with_gnu_ld="$lt_cv_prog_gnu_ld" 10142 10143old_CC="$CC" 10144old_CFLAGS="$CFLAGS" 10145 10146# Set sane defaults for various variables 10147test -z "$CC" && CC=cc 10148test -z "$LTCC" && LTCC=$CC 10149test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10150test -z "$LD" && LD=ld 10151test -z "$ac_objext" && ac_objext=o 10152 10153for cc_temp in $compiler""; do 10154 case $cc_temp in 10155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10157 \-*) ;; 10158 *) break;; 10159 esac 10160done 10161cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10162 10163 10164# Only perform the check for file, if the check method requires it 10165test -z "$MAGIC_CMD" && MAGIC_CMD=file 10166case $deplibs_check_method in 10167file_magic*) 10168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10170$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10171if ${lt_cv_path_MAGIC_CMD+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 case $MAGIC_CMD in 10175[\\/*] | ?:[\\/]*) 10176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10177 ;; 10178*) 10179 lt_save_MAGIC_CMD="$MAGIC_CMD" 10180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10182 for ac_dir in $ac_dummy; do 10183 IFS="$lt_save_ifs" 10184 test -z "$ac_dir" && ac_dir=. 10185 if test -f $ac_dir/${ac_tool_prefix}file; then 10186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10187 if test -n "$file_magic_test_file"; then 10188 case $deplibs_check_method in 10189 "file_magic "*) 10190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10193 $EGREP "$file_magic_regex" > /dev/null; then 10194 : 10195 else 10196 cat <<_LT_EOF 1>&2 10197 10198*** Warning: the command libtool uses to detect shared libraries, 10199*** $file_magic_cmd, produces output that libtool cannot recognize. 10200*** The result is that libtool may fail to recognize shared libraries 10201*** as such. This will affect the creation of libtool libraries that 10202*** depend on shared libraries, but programs linked with such libtool 10203*** libraries will work regardless of this problem. Nevertheless, you 10204*** may want to report the problem to your system manager and/or to 10205*** bug-libtool@gnu.org 10206 10207_LT_EOF 10208 fi ;; 10209 esac 10210 fi 10211 break 10212 fi 10213 done 10214 IFS="$lt_save_ifs" 10215 MAGIC_CMD="$lt_save_MAGIC_CMD" 10216 ;; 10217esac 10218fi 10219 10220MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10221if test -n "$MAGIC_CMD"; then 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10223$as_echo "$MAGIC_CMD" >&6; } 10224else 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10226$as_echo "no" >&6; } 10227fi 10228 10229 10230 10231 10232 10233if test -z "$lt_cv_path_MAGIC_CMD"; then 10234 if test -n "$ac_tool_prefix"; then 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10236$as_echo_n "checking for file... " >&6; } 10237if ${lt_cv_path_MAGIC_CMD+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239else 10240 case $MAGIC_CMD in 10241[\\/*] | ?:[\\/]*) 10242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10243 ;; 10244*) 10245 lt_save_MAGIC_CMD="$MAGIC_CMD" 10246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10248 for ac_dir in $ac_dummy; do 10249 IFS="$lt_save_ifs" 10250 test -z "$ac_dir" && ac_dir=. 10251 if test -f $ac_dir/file; then 10252 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10253 if test -n "$file_magic_test_file"; then 10254 case $deplibs_check_method in 10255 "file_magic "*) 10256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10259 $EGREP "$file_magic_regex" > /dev/null; then 10260 : 10261 else 10262 cat <<_LT_EOF 1>&2 10263 10264*** Warning: the command libtool uses to detect shared libraries, 10265*** $file_magic_cmd, produces output that libtool cannot recognize. 10266*** The result is that libtool may fail to recognize shared libraries 10267*** as such. This will affect the creation of libtool libraries that 10268*** depend on shared libraries, but programs linked with such libtool 10269*** libraries will work regardless of this problem. Nevertheless, you 10270*** may want to report the problem to your system manager and/or to 10271*** bug-libtool@gnu.org 10272 10273_LT_EOF 10274 fi ;; 10275 esac 10276 fi 10277 break 10278 fi 10279 done 10280 IFS="$lt_save_ifs" 10281 MAGIC_CMD="$lt_save_MAGIC_CMD" 10282 ;; 10283esac 10284fi 10285 10286MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10287if test -n "$MAGIC_CMD"; then 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10289$as_echo "$MAGIC_CMD" >&6; } 10290else 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10292$as_echo "no" >&6; } 10293fi 10294 10295 10296 else 10297 MAGIC_CMD=: 10298 fi 10299fi 10300 10301 fi 10302 ;; 10303esac 10304 10305# Use C for the default configuration in the libtool script 10306 10307lt_save_CC="$CC" 10308ac_ext=c 10309ac_cpp='$CPP $CPPFLAGS' 10310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10312ac_compiler_gnu=$ac_cv_c_compiler_gnu 10313 10314 10315# Source file extension for C test sources. 10316ac_ext=c 10317 10318# Object file extension for compiled C test sources. 10319objext=o 10320objext=$objext 10321 10322# Code to be used in simple compile tests 10323lt_simple_compile_test_code="int some_variable = 0;" 10324 10325# Code to be used in simple link tests 10326lt_simple_link_test_code='int main(){return(0);}' 10327 10328 10329 10330 10331 10332 10333 10334# If no C compiler was specified, use CC. 10335LTCC=${LTCC-"$CC"} 10336 10337# If no C compiler flags were specified, use CFLAGS. 10338LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10339 10340# Allow CC to be a program name with arguments. 10341compiler=$CC 10342 10343# Save the default compiler, since it gets overwritten when the other 10344# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10345compiler_DEFAULT=$CC 10346 10347# save warnings/boilerplate of simple test code 10348ac_outfile=conftest.$ac_objext 10349echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10351_lt_compiler_boilerplate=`cat conftest.err` 10352$RM conftest* 10353 10354ac_outfile=conftest.$ac_objext 10355echo "$lt_simple_link_test_code" >conftest.$ac_ext 10356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10357_lt_linker_boilerplate=`cat conftest.err` 10358$RM -r conftest* 10359 10360 10361## CAVEAT EMPTOR: 10362## There is no encapsulation within the following macros, do not change 10363## the running order or otherwise move them around unless you know exactly 10364## what you are doing... 10365if test -n "$compiler"; then 10366 10367lt_prog_compiler_no_builtin_flag= 10368 10369if test "$GCC" = yes; then 10370 case $cc_basename in 10371 nvcc*) 10372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10373 *) 10374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10375 esac 10376 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10378$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10379if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 lt_cv_prog_compiler_rtti_exceptions=no 10383 ac_outfile=conftest.$ac_objext 10384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10385 lt_compiler_flag="-fno-rtti -fno-exceptions" 10386 # Insert the option either (1) after the last *FLAGS variable, or 10387 # (2) before a word containing "conftest.", or (3) at the end. 10388 # Note that $ac_compile itself does not contain backslashes and begins 10389 # with a dollar sign (not a hyphen), so the echo should work correctly. 10390 # The option is referenced via a variable to avoid confusing sed. 10391 lt_compile=`echo "$ac_compile" | $SED \ 10392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10394 -e 's:$: $lt_compiler_flag:'` 10395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10396 (eval "$lt_compile" 2>conftest.err) 10397 ac_status=$? 10398 cat conftest.err >&5 10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400 if (exit $ac_status) && test -s "$ac_outfile"; then 10401 # The compiler can only warn and ignore the option if not recognized 10402 # So say no if there are warnings other than the usual output. 10403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10406 lt_cv_prog_compiler_rtti_exceptions=yes 10407 fi 10408 fi 10409 $RM conftest* 10410 10411fi 10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10413$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10414 10415if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10417else 10418 : 10419fi 10420 10421fi 10422 10423 10424 10425 10426 10427 10428 lt_prog_compiler_wl= 10429lt_prog_compiler_pic= 10430lt_prog_compiler_static= 10431 10432 10433 if test "$GCC" = yes; then 10434 lt_prog_compiler_wl='-Wl,' 10435 lt_prog_compiler_static='-static' 10436 10437 case $host_os in 10438 aix*) 10439 # All AIX code is PIC. 10440 if test "$host_cpu" = ia64; then 10441 # AIX 5 now supports IA64 processor 10442 lt_prog_compiler_static='-Bstatic' 10443 fi 10444 ;; 10445 10446 amigaos*) 10447 case $host_cpu in 10448 powerpc) 10449 # see comment about AmigaOS4 .so support 10450 lt_prog_compiler_pic='-fPIC' 10451 ;; 10452 m68k) 10453 # FIXME: we need at least 68020 code to build shared libraries, but 10454 # adding the `-m68020' flag to GCC prevents building anything better, 10455 # like `-m68040'. 10456 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10457 ;; 10458 esac 10459 ;; 10460 10461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10462 # PIC is the default for these OSes. 10463 ;; 10464 10465 mingw* | cygwin* | pw32* | os2* | cegcc*) 10466 # This hack is so that the source file can tell whether it is being 10467 # built for inclusion in a dll (and should export symbols for example). 10468 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10469 # (--disable-auto-import) libraries 10470 lt_prog_compiler_pic='-DDLL_EXPORT' 10471 ;; 10472 10473 darwin* | rhapsody*) 10474 # PIC is the default on this platform 10475 # Common symbols not allowed in MH_DYLIB files 10476 lt_prog_compiler_pic='-fno-common' 10477 ;; 10478 10479 haiku*) 10480 # PIC is the default for Haiku. 10481 # The "-static" flag exists, but is broken. 10482 lt_prog_compiler_static= 10483 ;; 10484 10485 hpux*) 10486 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10487 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10488 # sets the default TLS model and affects inlining. 10489 case $host_cpu in 10490 hppa*64*) 10491 # +Z the default 10492 ;; 10493 *) 10494 lt_prog_compiler_pic='-fPIC' 10495 ;; 10496 esac 10497 ;; 10498 10499 interix[3-9]*) 10500 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10501 # Instead, we relocate shared libraries at runtime. 10502 ;; 10503 10504 msdosdjgpp*) 10505 # Just because we use GCC doesn't mean we suddenly get shared libraries 10506 # on systems that don't support them. 10507 lt_prog_compiler_can_build_shared=no 10508 enable_shared=no 10509 ;; 10510 10511 *nto* | *qnx*) 10512 # QNX uses GNU C++, but need to define -shared option too, otherwise 10513 # it will coredump. 10514 lt_prog_compiler_pic='-fPIC -shared' 10515 ;; 10516 10517 sysv4*MP*) 10518 if test -d /usr/nec; then 10519 lt_prog_compiler_pic=-Kconform_pic 10520 fi 10521 ;; 10522 10523 *) 10524 lt_prog_compiler_pic='-fPIC' 10525 ;; 10526 esac 10527 10528 case $cc_basename in 10529 nvcc*) # Cuda Compiler Driver 2.2 10530 lt_prog_compiler_wl='-Xlinker ' 10531 if test -n "$lt_prog_compiler_pic"; then 10532 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10533 fi 10534 ;; 10535 esac 10536 else 10537 # PORTME Check for flag to pass linker flags through the system compiler. 10538 case $host_os in 10539 aix*) 10540 lt_prog_compiler_wl='-Wl,' 10541 if test "$host_cpu" = ia64; then 10542 # AIX 5 now supports IA64 processor 10543 lt_prog_compiler_static='-Bstatic' 10544 else 10545 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10546 fi 10547 ;; 10548 10549 mingw* | cygwin* | pw32* | os2* | cegcc*) 10550 # This hack is so that the source file can tell whether it is being 10551 # built for inclusion in a dll (and should export symbols for example). 10552 lt_prog_compiler_pic='-DDLL_EXPORT' 10553 ;; 10554 10555 hpux9* | hpux10* | hpux11*) 10556 lt_prog_compiler_wl='-Wl,' 10557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10558 # not for PA HP-UX. 10559 case $host_cpu in 10560 hppa*64*|ia64*) 10561 # +Z the default 10562 ;; 10563 *) 10564 lt_prog_compiler_pic='+Z' 10565 ;; 10566 esac 10567 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10568 lt_prog_compiler_static='${wl}-a ${wl}archive' 10569 ;; 10570 10571 irix5* | irix6* | nonstopux*) 10572 lt_prog_compiler_wl='-Wl,' 10573 # PIC (with -KPIC) is the default. 10574 lt_prog_compiler_static='-non_shared' 10575 ;; 10576 10577 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10578 case $cc_basename in 10579 # old Intel for x86_64 which still supported -KPIC. 10580 ecc*) 10581 lt_prog_compiler_wl='-Wl,' 10582 lt_prog_compiler_pic='-KPIC' 10583 lt_prog_compiler_static='-static' 10584 ;; 10585 # icc used to be incompatible with GCC. 10586 # ICC 10 doesn't accept -KPIC any more. 10587 icc* | ifort*) 10588 lt_prog_compiler_wl='-Wl,' 10589 lt_prog_compiler_pic='-fPIC' 10590 lt_prog_compiler_static='-static' 10591 ;; 10592 # Lahey Fortran 8.1. 10593 lf95*) 10594 lt_prog_compiler_wl='-Wl,' 10595 lt_prog_compiler_pic='--shared' 10596 lt_prog_compiler_static='--static' 10597 ;; 10598 nagfor*) 10599 # NAG Fortran compiler 10600 lt_prog_compiler_wl='-Wl,-Wl,,' 10601 lt_prog_compiler_pic='-PIC' 10602 lt_prog_compiler_static='-Bstatic' 10603 ;; 10604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10605 # Portland Group compilers (*not* the Pentium gcc compiler, 10606 # which looks to be a dead project) 10607 lt_prog_compiler_wl='-Wl,' 10608 lt_prog_compiler_pic='-fpic' 10609 lt_prog_compiler_static='-Bstatic' 10610 ;; 10611 ccc*) 10612 lt_prog_compiler_wl='-Wl,' 10613 # All Alpha code is PIC. 10614 lt_prog_compiler_static='-non_shared' 10615 ;; 10616 xl* | bgxl* | bgf* | mpixl*) 10617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10618 lt_prog_compiler_wl='-Wl,' 10619 lt_prog_compiler_pic='-qpic' 10620 lt_prog_compiler_static='-qstaticlink' 10621 ;; 10622 *) 10623 case `$CC -V 2>&1 | sed 5q` in 10624 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10625 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10626 lt_prog_compiler_pic='-KPIC' 10627 lt_prog_compiler_static='-Bstatic' 10628 lt_prog_compiler_wl='' 10629 ;; 10630 *Sun\ F* | *Sun*Fortran*) 10631 lt_prog_compiler_pic='-KPIC' 10632 lt_prog_compiler_static='-Bstatic' 10633 lt_prog_compiler_wl='-Qoption ld ' 10634 ;; 10635 *Sun\ C*) 10636 # Sun C 5.9 10637 lt_prog_compiler_pic='-KPIC' 10638 lt_prog_compiler_static='-Bstatic' 10639 lt_prog_compiler_wl='-Wl,' 10640 ;; 10641 *Intel*\ [CF]*Compiler*) 10642 lt_prog_compiler_wl='-Wl,' 10643 lt_prog_compiler_pic='-fPIC' 10644 lt_prog_compiler_static='-static' 10645 ;; 10646 *Portland\ Group*) 10647 lt_prog_compiler_wl='-Wl,' 10648 lt_prog_compiler_pic='-fpic' 10649 lt_prog_compiler_static='-Bstatic' 10650 ;; 10651 esac 10652 ;; 10653 esac 10654 ;; 10655 10656 newsos6) 10657 lt_prog_compiler_pic='-KPIC' 10658 lt_prog_compiler_static='-Bstatic' 10659 ;; 10660 10661 *nto* | *qnx*) 10662 # QNX uses GNU C++, but need to define -shared option too, otherwise 10663 # it will coredump. 10664 lt_prog_compiler_pic='-fPIC -shared' 10665 ;; 10666 10667 osf3* | osf4* | osf5*) 10668 lt_prog_compiler_wl='-Wl,' 10669 # All OSF/1 code is PIC. 10670 lt_prog_compiler_static='-non_shared' 10671 ;; 10672 10673 rdos*) 10674 lt_prog_compiler_static='-non_shared' 10675 ;; 10676 10677 solaris*) 10678 lt_prog_compiler_pic='-KPIC' 10679 lt_prog_compiler_static='-Bstatic' 10680 case $cc_basename in 10681 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10682 lt_prog_compiler_wl='-Qoption ld ';; 10683 *) 10684 lt_prog_compiler_wl='-Wl,';; 10685 esac 10686 ;; 10687 10688 sunos4*) 10689 lt_prog_compiler_wl='-Qoption ld ' 10690 lt_prog_compiler_pic='-PIC' 10691 lt_prog_compiler_static='-Bstatic' 10692 ;; 10693 10694 sysv4 | sysv4.2uw2* | sysv4.3*) 10695 lt_prog_compiler_wl='-Wl,' 10696 lt_prog_compiler_pic='-KPIC' 10697 lt_prog_compiler_static='-Bstatic' 10698 ;; 10699 10700 sysv4*MP*) 10701 if test -d /usr/nec ;then 10702 lt_prog_compiler_pic='-Kconform_pic' 10703 lt_prog_compiler_static='-Bstatic' 10704 fi 10705 ;; 10706 10707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10708 lt_prog_compiler_wl='-Wl,' 10709 lt_prog_compiler_pic='-KPIC' 10710 lt_prog_compiler_static='-Bstatic' 10711 ;; 10712 10713 unicos*) 10714 lt_prog_compiler_wl='-Wl,' 10715 lt_prog_compiler_can_build_shared=no 10716 ;; 10717 10718 uts4*) 10719 lt_prog_compiler_pic='-pic' 10720 lt_prog_compiler_static='-Bstatic' 10721 ;; 10722 10723 *) 10724 lt_prog_compiler_can_build_shared=no 10725 ;; 10726 esac 10727 fi 10728 10729case $host_os in 10730 # For platforms which do not support PIC, -DPIC is meaningless: 10731 *djgpp*) 10732 lt_prog_compiler_pic= 10733 ;; 10734 *) 10735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10736 ;; 10737esac 10738 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10740$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10741if ${lt_cv_prog_compiler_pic+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10745fi 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10747$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10748lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10749 10750# 10751# Check to make sure the PIC flag actually works. 10752# 10753if test -n "$lt_prog_compiler_pic"; then 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10755$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10756if ${lt_cv_prog_compiler_pic_works+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 lt_cv_prog_compiler_pic_works=no 10760 ac_outfile=conftest.$ac_objext 10761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10763 # Insert the option either (1) after the last *FLAGS variable, or 10764 # (2) before a word containing "conftest.", or (3) at the end. 10765 # Note that $ac_compile itself does not contain backslashes and begins 10766 # with a dollar sign (not a hyphen), so the echo should work correctly. 10767 # The option is referenced via a variable to avoid confusing sed. 10768 lt_compile=`echo "$ac_compile" | $SED \ 10769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10771 -e 's:$: $lt_compiler_flag:'` 10772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10773 (eval "$lt_compile" 2>conftest.err) 10774 ac_status=$? 10775 cat conftest.err >&5 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 if (exit $ac_status) && test -s "$ac_outfile"; then 10778 # The compiler can only warn and ignore the option if not recognized 10779 # So say no if there are warnings other than the usual output. 10780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10783 lt_cv_prog_compiler_pic_works=yes 10784 fi 10785 fi 10786 $RM conftest* 10787 10788fi 10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10790$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10791 10792if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10793 case $lt_prog_compiler_pic in 10794 "" | " "*) ;; 10795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10796 esac 10797else 10798 lt_prog_compiler_pic= 10799 lt_prog_compiler_can_build_shared=no 10800fi 10801 10802fi 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814# 10815# Check to make sure the static flag actually works. 10816# 10817wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10819$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10820if ${lt_cv_prog_compiler_static_works+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822else 10823 lt_cv_prog_compiler_static_works=no 10824 save_LDFLAGS="$LDFLAGS" 10825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10826 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10828 # The linker can only warn and ignore the option if not recognized 10829 # So say no if there are warnings 10830 if test -s conftest.err; then 10831 # Append any errors to the config.log. 10832 cat conftest.err 1>&5 10833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10835 if diff conftest.exp conftest.er2 >/dev/null; then 10836 lt_cv_prog_compiler_static_works=yes 10837 fi 10838 else 10839 lt_cv_prog_compiler_static_works=yes 10840 fi 10841 fi 10842 $RM -r conftest* 10843 LDFLAGS="$save_LDFLAGS" 10844 10845fi 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10847$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10848 10849if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10850 : 10851else 10852 lt_prog_compiler_static= 10853fi 10854 10855 10856 10857 10858 10859 10860 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10862$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10863if ${lt_cv_prog_compiler_c_o+:} false; then : 10864 $as_echo_n "(cached) " >&6 10865else 10866 lt_cv_prog_compiler_c_o=no 10867 $RM -r conftest 2>/dev/null 10868 mkdir conftest 10869 cd conftest 10870 mkdir out 10871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10872 10873 lt_compiler_flag="-o out/conftest2.$ac_objext" 10874 # Insert the option either (1) after the last *FLAGS variable, or 10875 # (2) before a word containing "conftest.", or (3) at the end. 10876 # Note that $ac_compile itself does not contain backslashes and begins 10877 # with a dollar sign (not a hyphen), so the echo should work correctly. 10878 lt_compile=`echo "$ac_compile" | $SED \ 10879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10881 -e 's:$: $lt_compiler_flag:'` 10882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10883 (eval "$lt_compile" 2>out/conftest.err) 10884 ac_status=$? 10885 cat out/conftest.err >&5 10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10887 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10888 then 10889 # The compiler can only warn and ignore the option if not recognized 10890 # So say no if there are warnings 10891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10894 lt_cv_prog_compiler_c_o=yes 10895 fi 10896 fi 10897 chmod u+w . 2>&5 10898 $RM conftest* 10899 # SGI C++ compiler will create directory out/ii_files/ for 10900 # template instantiation 10901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10902 $RM out/* && rmdir out 10903 cd .. 10904 $RM -r conftest 10905 $RM conftest* 10906 10907fi 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10909$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10910 10911 10912 10913 10914 10915 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10917$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10918if ${lt_cv_prog_compiler_c_o+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920else 10921 lt_cv_prog_compiler_c_o=no 10922 $RM -r conftest 2>/dev/null 10923 mkdir conftest 10924 cd conftest 10925 mkdir out 10926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10927 10928 lt_compiler_flag="-o out/conftest2.$ac_objext" 10929 # Insert the option either (1) after the last *FLAGS variable, or 10930 # (2) before a word containing "conftest.", or (3) at the end. 10931 # Note that $ac_compile itself does not contain backslashes and begins 10932 # with a dollar sign (not a hyphen), so the echo should work correctly. 10933 lt_compile=`echo "$ac_compile" | $SED \ 10934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10936 -e 's:$: $lt_compiler_flag:'` 10937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10938 (eval "$lt_compile" 2>out/conftest.err) 10939 ac_status=$? 10940 cat out/conftest.err >&5 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10942 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10943 then 10944 # The compiler can only warn and ignore the option if not recognized 10945 # So say no if there are warnings 10946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10949 lt_cv_prog_compiler_c_o=yes 10950 fi 10951 fi 10952 chmod u+w . 2>&5 10953 $RM conftest* 10954 # SGI C++ compiler will create directory out/ii_files/ for 10955 # template instantiation 10956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10957 $RM out/* && rmdir out 10958 cd .. 10959 $RM -r conftest 10960 $RM conftest* 10961 10962fi 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10964$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10965 10966 10967 10968 10969hard_links="nottested" 10970if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10971 # do not overwrite the value of need_locks provided by the user 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10973$as_echo_n "checking if we can lock with hard links... " >&6; } 10974 hard_links=yes 10975 $RM conftest* 10976 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10977 touch conftest.a 10978 ln conftest.a conftest.b 2>&5 || hard_links=no 10979 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10981$as_echo "$hard_links" >&6; } 10982 if test "$hard_links" = no; then 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10984$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10985 need_locks=warn 10986 fi 10987else 10988 need_locks=no 10989fi 10990 10991 10992 10993 10994 10995 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10997$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10998 10999 runpath_var= 11000 allow_undefined_flag= 11001 always_export_symbols=no 11002 archive_cmds= 11003 archive_expsym_cmds= 11004 compiler_needs_object=no 11005 enable_shared_with_static_runtimes=no 11006 export_dynamic_flag_spec= 11007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11008 hardcode_automatic=no 11009 hardcode_direct=no 11010 hardcode_direct_absolute=no 11011 hardcode_libdir_flag_spec= 11012 hardcode_libdir_separator= 11013 hardcode_minus_L=no 11014 hardcode_shlibpath_var=unsupported 11015 inherit_rpath=no 11016 link_all_deplibs=unknown 11017 module_cmds= 11018 module_expsym_cmds= 11019 old_archive_from_new_cmds= 11020 old_archive_from_expsyms_cmds= 11021 thread_safe_flag_spec= 11022 whole_archive_flag_spec= 11023 # include_expsyms should be a list of space-separated symbols to be *always* 11024 # included in the symbol list 11025 include_expsyms= 11026 # exclude_expsyms can be an extended regexp of symbols to exclude 11027 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11029 # as well as any symbol that contains `d'. 11030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11032 # platforms (ab)use it in PIC code, but their linkers get confused if 11033 # the symbol is explicitly referenced. Since portable code cannot 11034 # rely on this symbol name, it's probably fine to never include it in 11035 # preloaded symbol tables. 11036 # Exclude shared library initialization/finalization symbols. 11037 extract_expsyms_cmds= 11038 11039 case $host_os in 11040 cygwin* | mingw* | pw32* | cegcc*) 11041 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11042 # When not using gcc, we currently assume that we are using 11043 # Microsoft Visual C++. 11044 if test "$GCC" != yes; then 11045 with_gnu_ld=no 11046 fi 11047 ;; 11048 interix*) 11049 # we just hope/assume this is gcc and not c89 (= MSVC++) 11050 with_gnu_ld=yes 11051 ;; 11052 openbsd*) 11053 with_gnu_ld=no 11054 ;; 11055 esac 11056 11057 ld_shlibs=yes 11058 11059 # On some targets, GNU ld is compatible enough with the native linker 11060 # that we're better off using the native interface for both. 11061 lt_use_gnu_ld_interface=no 11062 if test "$with_gnu_ld" = yes; then 11063 case $host_os in 11064 aix*) 11065 # The AIX port of GNU ld has always aspired to compatibility 11066 # with the native linker. However, as the warning in the GNU ld 11067 # block says, versions before 2.19.5* couldn't really create working 11068 # shared libraries, regardless of the interface used. 11069 case `$LD -v 2>&1` in 11070 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11071 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11072 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11073 *) 11074 lt_use_gnu_ld_interface=yes 11075 ;; 11076 esac 11077 ;; 11078 *) 11079 lt_use_gnu_ld_interface=yes 11080 ;; 11081 esac 11082 fi 11083 11084 if test "$lt_use_gnu_ld_interface" = yes; then 11085 # If archive_cmds runs LD, not CC, wlarc should be empty 11086 wlarc='${wl}' 11087 11088 # Set some defaults for GNU ld with shared library support. These 11089 # are reset later if shared libraries are not supported. Putting them 11090 # here allows them to be overridden if necessary. 11091 runpath_var=LD_RUN_PATH 11092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11093 export_dynamic_flag_spec='${wl}--export-dynamic' 11094 # ancient GNU ld didn't support --whole-archive et. al. 11095 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11097 else 11098 whole_archive_flag_spec= 11099 fi 11100 supports_anon_versioning=no 11101 case `$LD -v 2>&1` in 11102 *GNU\ gold*) supports_anon_versioning=yes ;; 11103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11106 *\ 2.11.*) ;; # other 2.11 versions 11107 *) supports_anon_versioning=yes ;; 11108 esac 11109 11110 # See if GNU ld supports shared libraries. 11111 case $host_os in 11112 aix[3-9]*) 11113 # On AIX/PPC, the GNU linker is very broken 11114 if test "$host_cpu" != ia64; then 11115 ld_shlibs=no 11116 cat <<_LT_EOF 1>&2 11117 11118*** Warning: the GNU linker, at least up to release 2.19, is reported 11119*** to be unable to reliably create shared libraries on AIX. 11120*** Therefore, libtool is disabling shared libraries support. If you 11121*** really care for shared libraries, you may want to install binutils 11122*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11123*** You will then need to restart the configuration process. 11124 11125_LT_EOF 11126 fi 11127 ;; 11128 11129 amigaos*) 11130 case $host_cpu in 11131 powerpc) 11132 # see comment about AmigaOS4 .so support 11133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11134 archive_expsym_cmds='' 11135 ;; 11136 m68k) 11137 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)' 11138 hardcode_libdir_flag_spec='-L$libdir' 11139 hardcode_minus_L=yes 11140 ;; 11141 esac 11142 ;; 11143 11144 beos*) 11145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11146 allow_undefined_flag=unsupported 11147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11148 # support --undefined. This deserves some investigation. FIXME 11149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11150 else 11151 ld_shlibs=no 11152 fi 11153 ;; 11154 11155 cygwin* | mingw* | pw32* | cegcc*) 11156 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11157 # as there is no search path for DLLs. 11158 hardcode_libdir_flag_spec='-L$libdir' 11159 export_dynamic_flag_spec='${wl}--export-all-symbols' 11160 allow_undefined_flag=unsupported 11161 always_export_symbols=no 11162 enable_shared_with_static_runtimes=yes 11163 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' 11164 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11165 11166 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11168 # If the export-symbols file already is a .def file (1st line 11169 # is EXPORTS), use it as is; otherwise, prepend... 11170 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11171 cp $export_symbols $output_objdir/$soname.def; 11172 else 11173 echo EXPORTS > $output_objdir/$soname.def; 11174 cat $export_symbols >> $output_objdir/$soname.def; 11175 fi~ 11176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11177 else 11178 ld_shlibs=no 11179 fi 11180 ;; 11181 11182 haiku*) 11183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11184 link_all_deplibs=yes 11185 ;; 11186 11187 interix[3-9]*) 11188 hardcode_direct=no 11189 hardcode_shlibpath_var=no 11190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11191 export_dynamic_flag_spec='${wl}-E' 11192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11193 # Instead, shared libraries are loaded at an image base (0x10000000 by 11194 # default) and relocated if they conflict, which is a slow very memory 11195 # consuming and fragmenting process. To avoid this, we pick a random, 11196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11197 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11199 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' 11200 ;; 11201 11202 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11203 tmp_diet=no 11204 if test "$host_os" = linux-dietlibc; then 11205 case $cc_basename in 11206 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11207 esac 11208 fi 11209 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11210 && test "$tmp_diet" = no 11211 then 11212 tmp_addflag=' $pic_flag' 11213 tmp_sharedflag='-shared' 11214 case $cc_basename,$host_cpu in 11215 pgcc*) # Portland Group C compiler 11216 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' 11217 tmp_addflag=' $pic_flag' 11218 ;; 11219 pgf77* | pgf90* | pgf95* | pgfortran*) 11220 # Portland Group f77 and f90 compilers 11221 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' 11222 tmp_addflag=' $pic_flag -Mnomain' ;; 11223 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11224 tmp_addflag=' -i_dynamic' ;; 11225 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11226 tmp_addflag=' -i_dynamic -nofor_main' ;; 11227 ifc* | ifort*) # Intel Fortran compiler 11228 tmp_addflag=' -nofor_main' ;; 11229 lf95*) # Lahey Fortran 8.1 11230 whole_archive_flag_spec= 11231 tmp_sharedflag='--shared' ;; 11232 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11233 tmp_sharedflag='-qmkshrobj' 11234 tmp_addflag= ;; 11235 nvcc*) # Cuda Compiler Driver 2.2 11236 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' 11237 compiler_needs_object=yes 11238 ;; 11239 esac 11240 case `$CC -V 2>&1 | sed 5q` in 11241 *Sun\ C*) # Sun C 5.9 11242 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' 11243 compiler_needs_object=yes 11244 tmp_sharedflag='-G' ;; 11245 *Sun\ F*) # Sun Fortran 8.3 11246 tmp_sharedflag='-G' ;; 11247 esac 11248 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11249 11250 if test "x$supports_anon_versioning" = xyes; then 11251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11253 echo "local: *; };" >> $output_objdir/$libname.ver~ 11254 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11255 fi 11256 11257 case $cc_basename in 11258 xlf* | bgf* | bgxlf* | mpixlf*) 11259 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11260 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11262 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11263 if test "x$supports_anon_versioning" = xyes; then 11264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11266 echo "local: *; };" >> $output_objdir/$libname.ver~ 11267 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11268 fi 11269 ;; 11270 esac 11271 else 11272 ld_shlibs=no 11273 fi 11274 ;; 11275 11276 netbsd*) 11277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11278 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11279 wlarc= 11280 else 11281 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11282 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11283 fi 11284 ;; 11285 11286 solaris*) 11287 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11288 ld_shlibs=no 11289 cat <<_LT_EOF 1>&2 11290 11291*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11292*** create shared libraries on Solaris systems. Therefore, libtool 11293*** is disabling shared libraries support. We urge you to upgrade GNU 11294*** binutils to release 2.9.1 or newer. Another option is to modify 11295*** your PATH or compiler configuration so that the native linker is 11296*** used, and then restart. 11297 11298_LT_EOF 11299 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11301 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11302 else 11303 ld_shlibs=no 11304 fi 11305 ;; 11306 11307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11308 case `$LD -v 2>&1` in 11309 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11310 ld_shlibs=no 11311 cat <<_LT_EOF 1>&2 11312 11313*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11314*** reliably create shared libraries on SCO systems. Therefore, libtool 11315*** is disabling shared libraries support. We urge you to upgrade GNU 11316*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11317*** your PATH or compiler configuration so that the native linker is 11318*** used, and then restart. 11319 11320_LT_EOF 11321 ;; 11322 *) 11323 # For security reasons, it is highly recommended that you always 11324 # use absolute paths for naming shared libraries, and exclude the 11325 # DT_RUNPATH tag from executables and libraries. But doing so 11326 # requires that you compile everything twice, which is a pain. 11327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11331 else 11332 ld_shlibs=no 11333 fi 11334 ;; 11335 esac 11336 ;; 11337 11338 sunos4*) 11339 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11340 wlarc= 11341 hardcode_direct=yes 11342 hardcode_shlibpath_var=no 11343 ;; 11344 11345 *) 11346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11348 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11349 else 11350 ld_shlibs=no 11351 fi 11352 ;; 11353 esac 11354 11355 if test "$ld_shlibs" = no; then 11356 runpath_var= 11357 hardcode_libdir_flag_spec= 11358 export_dynamic_flag_spec= 11359 whole_archive_flag_spec= 11360 fi 11361 else 11362 # PORTME fill in a description of your system's linker (not GNU ld) 11363 case $host_os in 11364 aix3*) 11365 allow_undefined_flag=unsupported 11366 always_export_symbols=yes 11367 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' 11368 # Note: this linker hardcodes the directories in LIBPATH if there 11369 # are no directories specified by -L. 11370 hardcode_minus_L=yes 11371 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11372 # Neither direct hardcoding nor static linking is supported with a 11373 # broken collect2. 11374 hardcode_direct=unsupported 11375 fi 11376 ;; 11377 11378 aix[4-9]*) 11379 if test "$host_cpu" = ia64; then 11380 # On IA64, the linker does run time linking by default, so we don't 11381 # have to do anything special. 11382 aix_use_runtimelinking=no 11383 exp_sym_flag='-Bexport' 11384 no_entry_flag="" 11385 else 11386 # If we're using GNU nm, then we don't want the "-C" option. 11387 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11388 # Also, AIX nm treats weak defined symbols like other global 11389 # defined symbols, whereas GNU nm marks them as "W". 11390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11391 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11392 else 11393 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11394 fi 11395 aix_use_runtimelinking=no 11396 11397 # Test if we are trying to use run time linking or normal 11398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11399 # need to do runtime linking. 11400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11401 for ld_flag in $LDFLAGS; do 11402 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11403 aix_use_runtimelinking=yes 11404 break 11405 fi 11406 done 11407 ;; 11408 esac 11409 11410 exp_sym_flag='-bexport' 11411 no_entry_flag='-bnoentry' 11412 fi 11413 11414 # When large executables or shared objects are built, AIX ld can 11415 # have problems creating the table of contents. If linking a library 11416 # or program results in "error TOC overflow" add -mminimal-toc to 11417 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11418 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11419 11420 archive_cmds='' 11421 hardcode_direct=yes 11422 hardcode_direct_absolute=yes 11423 hardcode_libdir_separator=':' 11424 link_all_deplibs=yes 11425 file_list_spec='${wl}-f,' 11426 11427 if test "$GCC" = yes; then 11428 case $host_os in aix4.[012]|aix4.[012].*) 11429 # We only want to do this on AIX 4.2 and lower, the check 11430 # below for broken collect2 doesn't work under 4.3+ 11431 collect2name=`${CC} -print-prog-name=collect2` 11432 if test -f "$collect2name" && 11433 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11434 then 11435 # We have reworked collect2 11436 : 11437 else 11438 # We have old collect2 11439 hardcode_direct=unsupported 11440 # It fails to find uninstalled libraries when the uninstalled 11441 # path is not listed in the libpath. Setting hardcode_minus_L 11442 # to unsupported forces relinking 11443 hardcode_minus_L=yes 11444 hardcode_libdir_flag_spec='-L$libdir' 11445 hardcode_libdir_separator= 11446 fi 11447 ;; 11448 esac 11449 shared_flag='-shared' 11450 if test "$aix_use_runtimelinking" = yes; then 11451 shared_flag="$shared_flag "'${wl}-G' 11452 fi 11453 else 11454 # not using gcc 11455 if test "$host_cpu" = ia64; then 11456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11457 # chokes on -Wl,-G. The following line is correct: 11458 shared_flag='-G' 11459 else 11460 if test "$aix_use_runtimelinking" = yes; then 11461 shared_flag='${wl}-G' 11462 else 11463 shared_flag='${wl}-bM:SRE' 11464 fi 11465 fi 11466 fi 11467 11468 export_dynamic_flag_spec='${wl}-bexpall' 11469 # It seems that -bexpall does not export symbols beginning with 11470 # underscore (_), so it is better to generate a list of symbols to export. 11471 always_export_symbols=yes 11472 if test "$aix_use_runtimelinking" = yes; then 11473 # Warning - without using the other runtime loading flags (-brtl), 11474 # -berok will link without error, but may produce a broken library. 11475 allow_undefined_flag='-berok' 11476 # Determine the default libpath from the value encoded in an 11477 # empty executable. 11478 if test "${lt_cv_aix_libpath+set}" = set; then 11479 aix_libpath=$lt_cv_aix_libpath 11480else 11481 if ${lt_cv_aix_libpath_+:} false; then : 11482 $as_echo_n "(cached) " >&6 11483else 11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486 11487int 11488main () 11489{ 11490 11491 ; 11492 return 0; 11493} 11494_ACEOF 11495if ac_fn_c_try_link "$LINENO"; then : 11496 11497 lt_aix_libpath_sed=' 11498 /Import File Strings/,/^$/ { 11499 /^0/ { 11500 s/^0 *\([^ ]*\) *$/\1/ 11501 p 11502 } 11503 }' 11504 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11505 # Check for a 64-bit object if we didn't find anything. 11506 if test -z "$lt_cv_aix_libpath_"; then 11507 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11508 fi 11509fi 11510rm -f core conftest.err conftest.$ac_objext \ 11511 conftest$ac_exeext conftest.$ac_ext 11512 if test -z "$lt_cv_aix_libpath_"; then 11513 lt_cv_aix_libpath_="/usr/lib:/lib" 11514 fi 11515 11516fi 11517 11518 aix_libpath=$lt_cv_aix_libpath_ 11519fi 11520 11521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11522 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11523 else 11524 if test "$host_cpu" = ia64; then 11525 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11526 allow_undefined_flag="-z nodefs" 11527 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" 11528 else 11529 # Determine the default libpath from the value encoded in an 11530 # empty executable. 11531 if test "${lt_cv_aix_libpath+set}" = set; then 11532 aix_libpath=$lt_cv_aix_libpath 11533else 11534 if ${lt_cv_aix_libpath_+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11538/* end confdefs.h. */ 11539 11540int 11541main () 11542{ 11543 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548if ac_fn_c_try_link "$LINENO"; then : 11549 11550 lt_aix_libpath_sed=' 11551 /Import File Strings/,/^$/ { 11552 /^0/ { 11553 s/^0 *\([^ ]*\) *$/\1/ 11554 p 11555 } 11556 }' 11557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11558 # Check for a 64-bit object if we didn't find anything. 11559 if test -z "$lt_cv_aix_libpath_"; then 11560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11561 fi 11562fi 11563rm -f core conftest.err conftest.$ac_objext \ 11564 conftest$ac_exeext conftest.$ac_ext 11565 if test -z "$lt_cv_aix_libpath_"; then 11566 lt_cv_aix_libpath_="/usr/lib:/lib" 11567 fi 11568 11569fi 11570 11571 aix_libpath=$lt_cv_aix_libpath_ 11572fi 11573 11574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11575 # Warning - without using the other run time loading flags, 11576 # -berok will link without error, but may produce a broken library. 11577 no_undefined_flag=' ${wl}-bernotok' 11578 allow_undefined_flag=' ${wl}-berok' 11579 if test "$with_gnu_ld" = yes; then 11580 # We only use this code for GNU lds that support --whole-archive. 11581 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11582 else 11583 # Exported symbols can be pulled into shared objects from archives 11584 whole_archive_flag_spec='$convenience' 11585 fi 11586 archive_cmds_need_lc=yes 11587 # This is similar to how AIX traditionally builds its shared libraries. 11588 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11589 fi 11590 fi 11591 ;; 11592 11593 amigaos*) 11594 case $host_cpu in 11595 powerpc) 11596 # see comment about AmigaOS4 .so support 11597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11598 archive_expsym_cmds='' 11599 ;; 11600 m68k) 11601 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)' 11602 hardcode_libdir_flag_spec='-L$libdir' 11603 hardcode_minus_L=yes 11604 ;; 11605 esac 11606 ;; 11607 11608 bsdi[45]*) 11609 export_dynamic_flag_spec=-rdynamic 11610 ;; 11611 11612 cygwin* | mingw* | pw32* | cegcc*) 11613 # When not using gcc, we currently assume that we are using 11614 # Microsoft Visual C++. 11615 # hardcode_libdir_flag_spec is actually meaningless, as there is 11616 # no search path for DLLs. 11617 case $cc_basename in 11618 cl*) 11619 # Native MSVC 11620 hardcode_libdir_flag_spec=' ' 11621 allow_undefined_flag=unsupported 11622 always_export_symbols=yes 11623 file_list_spec='@' 11624 # Tell ltmain to make .lib files, not .a files. 11625 libext=lib 11626 # Tell ltmain to make .dll files, not .so files. 11627 shrext_cmds=".dll" 11628 # FIXME: Setting linknames here is a bad hack. 11629 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11630 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11631 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11632 else 11633 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11634 fi~ 11635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11636 linknames=' 11637 # The linker will not automatically build a static lib if we build a DLL. 11638 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11639 enable_shared_with_static_runtimes=yes 11640 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11642 # Don't use ranlib 11643 old_postinstall_cmds='chmod 644 $oldlib' 11644 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11645 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11646 case $lt_outputfile in 11647 *.exe|*.EXE) ;; 11648 *) 11649 lt_outputfile="$lt_outputfile.exe" 11650 lt_tool_outputfile="$lt_tool_outputfile.exe" 11651 ;; 11652 esac~ 11653 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11655 $RM "$lt_outputfile.manifest"; 11656 fi' 11657 ;; 11658 *) 11659 # Assume MSVC wrapper 11660 hardcode_libdir_flag_spec=' ' 11661 allow_undefined_flag=unsupported 11662 # Tell ltmain to make .lib files, not .a files. 11663 libext=lib 11664 # Tell ltmain to make .dll files, not .so files. 11665 shrext_cmds=".dll" 11666 # FIXME: Setting linknames here is a bad hack. 11667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11668 # The linker will automatically build a .lib file if we build a DLL. 11669 old_archive_from_new_cmds='true' 11670 # FIXME: Should let the user specify the lib program. 11671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11672 enable_shared_with_static_runtimes=yes 11673 ;; 11674 esac 11675 ;; 11676 11677 darwin* | rhapsody*) 11678 11679 11680 archive_cmds_need_lc=no 11681 hardcode_direct=no 11682 hardcode_automatic=yes 11683 hardcode_shlibpath_var=unsupported 11684 if test "$lt_cv_ld_force_load" = "yes"; then 11685 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\"`' 11686 11687 else 11688 whole_archive_flag_spec='' 11689 fi 11690 link_all_deplibs=yes 11691 allow_undefined_flag="$_lt_dar_allow_undefined" 11692 case $cc_basename in 11693 ifort*) _lt_dar_can_shared=yes ;; 11694 *) _lt_dar_can_shared=$GCC ;; 11695 esac 11696 if test "$_lt_dar_can_shared" = "yes"; then 11697 output_verbose_link_cmd=func_echo_all 11698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11700 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}" 11701 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}" 11702 11703 else 11704 ld_shlibs=no 11705 fi 11706 11707 ;; 11708 11709 dgux*) 11710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11711 hardcode_libdir_flag_spec='-L$libdir' 11712 hardcode_shlibpath_var=no 11713 ;; 11714 11715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11716 # support. Future versions do this automatically, but an explicit c++rt0.o 11717 # does not break anything, and helps significantly (at the cost of a little 11718 # extra space). 11719 freebsd2.2*) 11720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11721 hardcode_libdir_flag_spec='-R$libdir' 11722 hardcode_direct=yes 11723 hardcode_shlibpath_var=no 11724 ;; 11725 11726 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11727 freebsd2.*) 11728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11729 hardcode_direct=yes 11730 hardcode_minus_L=yes 11731 hardcode_shlibpath_var=no 11732 ;; 11733 11734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11735 freebsd* | dragonfly*) 11736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11737 hardcode_libdir_flag_spec='-R$libdir' 11738 hardcode_direct=yes 11739 hardcode_shlibpath_var=no 11740 ;; 11741 11742 hpux9*) 11743 if test "$GCC" = yes; then 11744 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11745 else 11746 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11747 fi 11748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11749 hardcode_libdir_separator=: 11750 hardcode_direct=yes 11751 11752 # hardcode_minus_L: Not really in the search PATH, 11753 # but as the default location of the library. 11754 hardcode_minus_L=yes 11755 export_dynamic_flag_spec='${wl}-E' 11756 ;; 11757 11758 hpux10*) 11759 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11760 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11761 else 11762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11763 fi 11764 if test "$with_gnu_ld" = no; then 11765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11766 hardcode_libdir_separator=: 11767 hardcode_direct=yes 11768 hardcode_direct_absolute=yes 11769 export_dynamic_flag_spec='${wl}-E' 11770 # hardcode_minus_L: Not really in the search PATH, 11771 # but as the default location of the library. 11772 hardcode_minus_L=yes 11773 fi 11774 ;; 11775 11776 hpux11*) 11777 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11778 case $host_cpu in 11779 hppa*64*) 11780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11781 ;; 11782 ia64*) 11783 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11784 ;; 11785 *) 11786 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11787 ;; 11788 esac 11789 else 11790 case $host_cpu in 11791 hppa*64*) 11792 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11793 ;; 11794 ia64*) 11795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11796 ;; 11797 *) 11798 11799 # Older versions of the 11.00 compiler do not understand -b yet 11800 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11802$as_echo_n "checking if $CC understands -b... " >&6; } 11803if ${lt_cv_prog_compiler__b+:} false; then : 11804 $as_echo_n "(cached) " >&6 11805else 11806 lt_cv_prog_compiler__b=no 11807 save_LDFLAGS="$LDFLAGS" 11808 LDFLAGS="$LDFLAGS -b" 11809 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11811 # The linker can only warn and ignore the option if not recognized 11812 # So say no if there are warnings 11813 if test -s conftest.err; then 11814 # Append any errors to the config.log. 11815 cat conftest.err 1>&5 11816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11818 if diff conftest.exp conftest.er2 >/dev/null; then 11819 lt_cv_prog_compiler__b=yes 11820 fi 11821 else 11822 lt_cv_prog_compiler__b=yes 11823 fi 11824 fi 11825 $RM -r conftest* 11826 LDFLAGS="$save_LDFLAGS" 11827 11828fi 11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11830$as_echo "$lt_cv_prog_compiler__b" >&6; } 11831 11832if test x"$lt_cv_prog_compiler__b" = xyes; then 11833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11834else 11835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11836fi 11837 11838 ;; 11839 esac 11840 fi 11841 if test "$with_gnu_ld" = no; then 11842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11843 hardcode_libdir_separator=: 11844 11845 case $host_cpu in 11846 hppa*64*|ia64*) 11847 hardcode_direct=no 11848 hardcode_shlibpath_var=no 11849 ;; 11850 *) 11851 hardcode_direct=yes 11852 hardcode_direct_absolute=yes 11853 export_dynamic_flag_spec='${wl}-E' 11854 11855 # hardcode_minus_L: Not really in the search PATH, 11856 # but as the default location of the library. 11857 hardcode_minus_L=yes 11858 ;; 11859 esac 11860 fi 11861 ;; 11862 11863 irix5* | irix6* | nonstopux*) 11864 if test "$GCC" = yes; then 11865 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' 11866 # Try to use the -exported_symbol ld option, if it does not 11867 # work, assume that -exports_file does not work either and 11868 # implicitly export all symbols. 11869 # This should be the same for all languages, so no per-tag cache variable. 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11871$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11872if ${lt_cv_irix_exported_symbol+:} false; then : 11873 $as_echo_n "(cached) " >&6 11874else 11875 save_LDFLAGS="$LDFLAGS" 11876 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11878/* end confdefs.h. */ 11879int foo (void) { return 0; } 11880_ACEOF 11881if ac_fn_c_try_link "$LINENO"; then : 11882 lt_cv_irix_exported_symbol=yes 11883else 11884 lt_cv_irix_exported_symbol=no 11885fi 11886rm -f core conftest.err conftest.$ac_objext \ 11887 conftest$ac_exeext conftest.$ac_ext 11888 LDFLAGS="$save_LDFLAGS" 11889fi 11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11891$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11892 if test "$lt_cv_irix_exported_symbol" = yes; then 11893 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' 11894 fi 11895 else 11896 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' 11897 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' 11898 fi 11899 archive_cmds_need_lc='no' 11900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11901 hardcode_libdir_separator=: 11902 inherit_rpath=yes 11903 link_all_deplibs=yes 11904 ;; 11905 11906 netbsd*) 11907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11909 else 11910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11911 fi 11912 hardcode_libdir_flag_spec='-R$libdir' 11913 hardcode_direct=yes 11914 hardcode_shlibpath_var=no 11915 ;; 11916 11917 newsos6) 11918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11919 hardcode_direct=yes 11920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11921 hardcode_libdir_separator=: 11922 hardcode_shlibpath_var=no 11923 ;; 11924 11925 *nto* | *qnx*) 11926 ;; 11927 11928 openbsd*) 11929 if test -f /usr/libexec/ld.so; then 11930 hardcode_direct=yes 11931 hardcode_shlibpath_var=no 11932 hardcode_direct_absolute=yes 11933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11937 export_dynamic_flag_spec='${wl}-E' 11938 else 11939 case $host_os in 11940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11942 hardcode_libdir_flag_spec='-R$libdir' 11943 ;; 11944 *) 11945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11947 ;; 11948 esac 11949 fi 11950 else 11951 ld_shlibs=no 11952 fi 11953 ;; 11954 11955 os2*) 11956 hardcode_libdir_flag_spec='-L$libdir' 11957 hardcode_minus_L=yes 11958 allow_undefined_flag=unsupported 11959 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11961 ;; 11962 11963 osf3*) 11964 if test "$GCC" = yes; then 11965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11966 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' 11967 else 11968 allow_undefined_flag=' -expect_unresolved \*' 11969 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' 11970 fi 11971 archive_cmds_need_lc='no' 11972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11973 hardcode_libdir_separator=: 11974 ;; 11975 11976 osf4* | osf5*) # as osf3* with the addition of -msym flag 11977 if test "$GCC" = yes; then 11978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11979 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' 11980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11981 else 11982 allow_undefined_flag=' -expect_unresolved \*' 11983 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' 11984 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~ 11985 $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' 11986 11987 # Both c and cxx compiler support -rpath directly 11988 hardcode_libdir_flag_spec='-rpath $libdir' 11989 fi 11990 archive_cmds_need_lc='no' 11991 hardcode_libdir_separator=: 11992 ;; 11993 11994 solaris*) 11995 no_undefined_flag=' -z defs' 11996 if test "$GCC" = yes; then 11997 wlarc='${wl}' 11998 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12000 $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' 12001 else 12002 case `$CC -V 2>&1` in 12003 *"Compilers 5.0"*) 12004 wlarc='' 12005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12008 ;; 12009 *) 12010 wlarc='${wl}' 12011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12014 ;; 12015 esac 12016 fi 12017 hardcode_libdir_flag_spec='-R$libdir' 12018 hardcode_shlibpath_var=no 12019 case $host_os in 12020 solaris2.[0-5] | solaris2.[0-5].*) ;; 12021 *) 12022 # The compiler driver will combine and reorder linker options, 12023 # but understands `-z linker_flag'. GCC discards it without `$wl', 12024 # but is careful enough not to reorder. 12025 # Supported since Solaris 2.6 (maybe 2.5.1?) 12026 if test "$GCC" = yes; then 12027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12028 else 12029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12030 fi 12031 ;; 12032 esac 12033 link_all_deplibs=yes 12034 ;; 12035 12036 sunos4*) 12037 if test "x$host_vendor" = xsequent; then 12038 # Use $CC to link under sequent, because it throws in some extra .o 12039 # files that make .init and .fini sections work. 12040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12041 else 12042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12043 fi 12044 hardcode_libdir_flag_spec='-L$libdir' 12045 hardcode_direct=yes 12046 hardcode_minus_L=yes 12047 hardcode_shlibpath_var=no 12048 ;; 12049 12050 sysv4) 12051 case $host_vendor in 12052 sni) 12053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12054 hardcode_direct=yes # is this really true??? 12055 ;; 12056 siemens) 12057 ## LD is ld it makes a PLAMLIB 12058 ## CC just makes a GrossModule. 12059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12060 reload_cmds='$CC -r -o $output$reload_objs' 12061 hardcode_direct=no 12062 ;; 12063 motorola) 12064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12066 ;; 12067 esac 12068 runpath_var='LD_RUN_PATH' 12069 hardcode_shlibpath_var=no 12070 ;; 12071 12072 sysv4.3*) 12073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12074 hardcode_shlibpath_var=no 12075 export_dynamic_flag_spec='-Bexport' 12076 ;; 12077 12078 sysv4*MP*) 12079 if test -d /usr/nec; then 12080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12081 hardcode_shlibpath_var=no 12082 runpath_var=LD_RUN_PATH 12083 hardcode_runpath_var=yes 12084 ld_shlibs=yes 12085 fi 12086 ;; 12087 12088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12089 no_undefined_flag='${wl}-z,text' 12090 archive_cmds_need_lc=no 12091 hardcode_shlibpath_var=no 12092 runpath_var='LD_RUN_PATH' 12093 12094 if test "$GCC" = yes; then 12095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12097 else 12098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12100 fi 12101 ;; 12102 12103 sysv5* | sco3.2v5* | sco5v6*) 12104 # Note: We can NOT use -z defs as we might desire, because we do not 12105 # link with -lc, and that would cause any symbols used from libc to 12106 # always be unresolved, which means just about no library would 12107 # ever link correctly. If we're not using GNU ld we use -z text 12108 # though, which does catch some bad symbols but isn't as heavy-handed 12109 # as -z defs. 12110 no_undefined_flag='${wl}-z,text' 12111 allow_undefined_flag='${wl}-z,nodefs' 12112 archive_cmds_need_lc=no 12113 hardcode_shlibpath_var=no 12114 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12115 hardcode_libdir_separator=':' 12116 link_all_deplibs=yes 12117 export_dynamic_flag_spec='${wl}-Bexport' 12118 runpath_var='LD_RUN_PATH' 12119 12120 if test "$GCC" = yes; then 12121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12123 else 12124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12126 fi 12127 ;; 12128 12129 uts4*) 12130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12131 hardcode_libdir_flag_spec='-L$libdir' 12132 hardcode_shlibpath_var=no 12133 ;; 12134 12135 *) 12136 ld_shlibs=no 12137 ;; 12138 esac 12139 12140 if test x$host_vendor = xsni; then 12141 case $host in 12142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12143 export_dynamic_flag_spec='${wl}-Blargedynsym' 12144 ;; 12145 esac 12146 fi 12147 fi 12148 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12150$as_echo "$ld_shlibs" >&6; } 12151test "$ld_shlibs" = no && can_build_shared=no 12152 12153with_gnu_ld=$with_gnu_ld 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169# 12170# Do we need to explicitly link libc? 12171# 12172case "x$archive_cmds_need_lc" in 12173x|xyes) 12174 # Assume -lc should be added 12175 archive_cmds_need_lc=yes 12176 12177 if test "$enable_shared" = yes && test "$GCC" = yes; then 12178 case $archive_cmds in 12179 *'~'*) 12180 # FIXME: we may have to deal with multi-command sequences. 12181 ;; 12182 '$CC '*) 12183 # Test whether the compiler implicitly links with -lc since on some 12184 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12185 # to ld, don't add -lc before -lgcc. 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12187$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12188if ${lt_cv_archive_cmds_need_lc+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 $RM conftest* 12192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12193 12194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12195 (eval $ac_compile) 2>&5 12196 ac_status=$? 12197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12198 test $ac_status = 0; } 2>conftest.err; then 12199 soname=conftest 12200 lib=conftest 12201 libobjs=conftest.$ac_objext 12202 deplibs= 12203 wl=$lt_prog_compiler_wl 12204 pic_flag=$lt_prog_compiler_pic 12205 compiler_flags=-v 12206 linker_flags=-v 12207 verstring= 12208 output_objdir=. 12209 libname=conftest 12210 lt_save_allow_undefined_flag=$allow_undefined_flag 12211 allow_undefined_flag= 12212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12214 ac_status=$? 12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12216 test $ac_status = 0; } 12217 then 12218 lt_cv_archive_cmds_need_lc=no 12219 else 12220 lt_cv_archive_cmds_need_lc=yes 12221 fi 12222 allow_undefined_flag=$lt_save_allow_undefined_flag 12223 else 12224 cat conftest.err 1>&5 12225 fi 12226 $RM conftest* 12227 12228fi 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12230$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12232 ;; 12233 esac 12234 fi 12235 ;; 12236esac 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12390$as_echo_n "checking dynamic linker characteristics... " >&6; } 12391 12392if test "$GCC" = yes; then 12393 case $host_os in 12394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12395 *) lt_awk_arg="/^libraries:/" ;; 12396 esac 12397 case $host_os in 12398 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12399 *) lt_sed_strip_eq="s,=/,/,g" ;; 12400 esac 12401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12402 case $lt_search_path_spec in 12403 *\;*) 12404 # if the path contains ";" then we assume it to be the separator 12405 # otherwise default to the standard path separator (i.e. ":") - it is 12406 # assumed that no part of a normal pathname contains ";" but that should 12407 # okay in the real world where ";" in dirpaths is itself problematic. 12408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12409 ;; 12410 *) 12411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12412 ;; 12413 esac 12414 # Ok, now we have the path, separated by spaces, we can step through it 12415 # and add multilib dir if necessary. 12416 lt_tmp_lt_search_path_spec= 12417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12418 for lt_sys_path in $lt_search_path_spec; do 12419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12421 else 12422 test -d "$lt_sys_path" && \ 12423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12424 fi 12425 done 12426 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12427BEGIN {RS=" "; FS="/|\n";} { 12428 lt_foo=""; 12429 lt_count=0; 12430 for (lt_i = NF; lt_i > 0; lt_i--) { 12431 if ($lt_i != "" && $lt_i != ".") { 12432 if ($lt_i == "..") { 12433 lt_count++; 12434 } else { 12435 if (lt_count == 0) { 12436 lt_foo="/" $lt_i lt_foo; 12437 } else { 12438 lt_count--; 12439 } 12440 } 12441 } 12442 } 12443 if (lt_foo != "") { lt_freq[lt_foo]++; } 12444 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12445}'` 12446 # AWK program above erroneously prepends '/' to C:/dos/paths 12447 # for these hosts. 12448 case $host_os in 12449 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12450 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12451 esac 12452 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12453else 12454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12455fi 12456library_names_spec= 12457libname_spec='lib$name' 12458soname_spec= 12459shrext_cmds=".so" 12460postinstall_cmds= 12461postuninstall_cmds= 12462finish_cmds= 12463finish_eval= 12464shlibpath_var= 12465shlibpath_overrides_runpath=unknown 12466version_type=none 12467dynamic_linker="$host_os ld.so" 12468sys_lib_dlsearch_path_spec="/lib /usr/lib" 12469need_lib_prefix=unknown 12470hardcode_into_libs=no 12471 12472# when you set need_version to no, make sure it does not cause -set_version 12473# flags to be left without arguments 12474need_version=unknown 12475 12476case $host_os in 12477aix3*) 12478 version_type=linux # correct to gnu/linux during the next big refactor 12479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12480 shlibpath_var=LIBPATH 12481 12482 # AIX 3 has no versioning support, so we append a major version to the name. 12483 soname_spec='${libname}${release}${shared_ext}$major' 12484 ;; 12485 12486aix[4-9]*) 12487 version_type=linux # correct to gnu/linux during the next big refactor 12488 need_lib_prefix=no 12489 need_version=no 12490 hardcode_into_libs=yes 12491 if test "$host_cpu" = ia64; then 12492 # AIX 5 supports IA64 12493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12494 shlibpath_var=LD_LIBRARY_PATH 12495 else 12496 # With GCC up to 2.95.x, collect2 would create an import file 12497 # for dependence libraries. The import file would start with 12498 # the line `#! .'. This would cause the generated library to 12499 # depend on `.', always an invalid library. This was fixed in 12500 # development snapshots of GCC prior to 3.0. 12501 case $host_os in 12502 aix4 | aix4.[01] | aix4.[01].*) 12503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12504 echo ' yes ' 12505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12506 : 12507 else 12508 can_build_shared=no 12509 fi 12510 ;; 12511 esac 12512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12513 # soname into executable. Probably we can add versioning support to 12514 # collect2, so additional links can be useful in future. 12515 if test "$aix_use_runtimelinking" = yes; then 12516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12517 # instead of lib<name>.a to let people know that these are not 12518 # typical AIX shared libraries. 12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12520 else 12521 # We preserve .a as extension for shared libraries through AIX4.2 12522 # and later when we are not doing run time linking. 12523 library_names_spec='${libname}${release}.a $libname.a' 12524 soname_spec='${libname}${release}${shared_ext}$major' 12525 fi 12526 shlibpath_var=LIBPATH 12527 fi 12528 ;; 12529 12530amigaos*) 12531 case $host_cpu in 12532 powerpc) 12533 # Since July 2007 AmigaOS4 officially supports .so libraries. 12534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12536 ;; 12537 m68k) 12538 library_names_spec='$libname.ixlibrary $libname.a' 12539 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12540 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12541 ;; 12542 esac 12543 ;; 12544 12545beos*) 12546 library_names_spec='${libname}${shared_ext}' 12547 dynamic_linker="$host_os ld.so" 12548 shlibpath_var=LIBRARY_PATH 12549 ;; 12550 12551bsdi[45]*) 12552 version_type=linux # correct to gnu/linux during the next big refactor 12553 need_version=no 12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12555 soname_spec='${libname}${release}${shared_ext}$major' 12556 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12557 shlibpath_var=LD_LIBRARY_PATH 12558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12560 # the default ld.so.conf also contains /usr/contrib/lib and 12561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12562 # libtool to hard-code these into programs 12563 ;; 12564 12565cygwin* | mingw* | pw32* | cegcc*) 12566 version_type=windows 12567 shrext_cmds=".dll" 12568 need_version=no 12569 need_lib_prefix=no 12570 12571 case $GCC,$cc_basename in 12572 yes,*) 12573 # gcc 12574 library_names_spec='$libname.dll.a' 12575 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12576 postinstall_cmds='base_file=`basename \${file}`~ 12577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12578 dldir=$destdir/`dirname \$dlpath`~ 12579 test -d \$dldir || mkdir -p \$dldir~ 12580 $install_prog $dir/$dlname \$dldir/$dlname~ 12581 chmod a+x \$dldir/$dlname~ 12582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12584 fi' 12585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12586 dlpath=$dir/\$dldll~ 12587 $RM \$dlpath' 12588 shlibpath_overrides_runpath=yes 12589 12590 case $host_os in 12591 cygwin*) 12592 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12594 12595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12596 ;; 12597 mingw* | cegcc*) 12598 # MinGW DLLs use traditional 'lib' prefix 12599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12600 ;; 12601 pw32*) 12602 # pw32 DLLs use 'pw' prefix rather than 'lib' 12603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12604 ;; 12605 esac 12606 dynamic_linker='Win32 ld.exe' 12607 ;; 12608 12609 *,cl*) 12610 # Native MSVC 12611 libname_spec='$name' 12612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12613 library_names_spec='${libname}.dll.lib' 12614 12615 case $build_os in 12616 mingw*) 12617 sys_lib_search_path_spec= 12618 lt_save_ifs=$IFS 12619 IFS=';' 12620 for lt_path in $LIB 12621 do 12622 IFS=$lt_save_ifs 12623 # Let DOS variable expansion print the short 8.3 style file name. 12624 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12625 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12626 done 12627 IFS=$lt_save_ifs 12628 # Convert to MSYS style. 12629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12630 ;; 12631 cygwin*) 12632 # Convert to unix form, then to dos form, then back to unix form 12633 # but this time dos style (no spaces!) so that the unix form looks 12634 # like /cygdrive/c/PROGRA~1:/cygdr... 12635 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12636 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12637 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12638 ;; 12639 *) 12640 sys_lib_search_path_spec="$LIB" 12641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12642 # It is most probably a Windows format PATH. 12643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12644 else 12645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12646 fi 12647 # FIXME: find the short name or the path components, as spaces are 12648 # common. (e.g. "Program Files" -> "PROGRA~1") 12649 ;; 12650 esac 12651 12652 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12653 postinstall_cmds='base_file=`basename \${file}`~ 12654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12655 dldir=$destdir/`dirname \$dlpath`~ 12656 test -d \$dldir || mkdir -p \$dldir~ 12657 $install_prog $dir/$dlname \$dldir/$dlname' 12658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12659 dlpath=$dir/\$dldll~ 12660 $RM \$dlpath' 12661 shlibpath_overrides_runpath=yes 12662 dynamic_linker='Win32 link.exe' 12663 ;; 12664 12665 *) 12666 # Assume MSVC wrapper 12667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12668 dynamic_linker='Win32 ld.exe' 12669 ;; 12670 esac 12671 # FIXME: first we should search . and the directory the executable is in 12672 shlibpath_var=PATH 12673 ;; 12674 12675darwin* | rhapsody*) 12676 dynamic_linker="$host_os dyld" 12677 version_type=darwin 12678 need_lib_prefix=no 12679 need_version=no 12680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12681 soname_spec='${libname}${release}${major}$shared_ext' 12682 shlibpath_overrides_runpath=yes 12683 shlibpath_var=DYLD_LIBRARY_PATH 12684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12685 12686 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12688 ;; 12689 12690dgux*) 12691 version_type=linux # correct to gnu/linux during the next big refactor 12692 need_lib_prefix=no 12693 need_version=no 12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12695 soname_spec='${libname}${release}${shared_ext}$major' 12696 shlibpath_var=LD_LIBRARY_PATH 12697 ;; 12698 12699freebsd* | dragonfly*) 12700 # DragonFly does not have aout. When/if they implement a new 12701 # versioning mechanism, adjust this. 12702 if test -x /usr/bin/objformat; then 12703 objformat=`/usr/bin/objformat` 12704 else 12705 case $host_os in 12706 freebsd[23].*) objformat=aout ;; 12707 *) objformat=elf ;; 12708 esac 12709 fi 12710 version_type=freebsd-$objformat 12711 case $version_type in 12712 freebsd-elf*) 12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12714 need_version=no 12715 need_lib_prefix=no 12716 ;; 12717 freebsd-*) 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12719 need_version=yes 12720 ;; 12721 esac 12722 shlibpath_var=LD_LIBRARY_PATH 12723 case $host_os in 12724 freebsd2.*) 12725 shlibpath_overrides_runpath=yes 12726 ;; 12727 freebsd3.[01]* | freebsdelf3.[01]*) 12728 shlibpath_overrides_runpath=yes 12729 hardcode_into_libs=yes 12730 ;; 12731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12733 shlibpath_overrides_runpath=no 12734 hardcode_into_libs=yes 12735 ;; 12736 *) # from 4.6 on, and DragonFly 12737 shlibpath_overrides_runpath=yes 12738 hardcode_into_libs=yes 12739 ;; 12740 esac 12741 ;; 12742 12743gnu*) 12744 version_type=linux # correct to gnu/linux during the next big refactor 12745 need_lib_prefix=no 12746 need_version=no 12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12748 soname_spec='${libname}${release}${shared_ext}$major' 12749 shlibpath_var=LD_LIBRARY_PATH 12750 shlibpath_overrides_runpath=no 12751 hardcode_into_libs=yes 12752 ;; 12753 12754haiku*) 12755 version_type=linux # correct to gnu/linux during the next big refactor 12756 need_lib_prefix=no 12757 need_version=no 12758 dynamic_linker="$host_os runtime_loader" 12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12760 soname_spec='${libname}${release}${shared_ext}$major' 12761 shlibpath_var=LIBRARY_PATH 12762 shlibpath_overrides_runpath=yes 12763 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12764 hardcode_into_libs=yes 12765 ;; 12766 12767hpux9* | hpux10* | hpux11*) 12768 # Give a soname corresponding to the major version so that dld.sl refuses to 12769 # link against other versions. 12770 version_type=sunos 12771 need_lib_prefix=no 12772 need_version=no 12773 case $host_cpu in 12774 ia64*) 12775 shrext_cmds='.so' 12776 hardcode_into_libs=yes 12777 dynamic_linker="$host_os dld.so" 12778 shlibpath_var=LD_LIBRARY_PATH 12779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12781 soname_spec='${libname}${release}${shared_ext}$major' 12782 if test "X$HPUX_IA64_MODE" = X32; then 12783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12784 else 12785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12786 fi 12787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12788 ;; 12789 hppa*64*) 12790 shrext_cmds='.sl' 12791 hardcode_into_libs=yes 12792 dynamic_linker="$host_os dld.sl" 12793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12796 soname_spec='${libname}${release}${shared_ext}$major' 12797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12799 ;; 12800 *) 12801 shrext_cmds='.sl' 12802 dynamic_linker="$host_os dld.sl" 12803 shlibpath_var=SHLIB_PATH 12804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12806 soname_spec='${libname}${release}${shared_ext}$major' 12807 ;; 12808 esac 12809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12810 postinstall_cmds='chmod 555 $lib' 12811 # or fails outright, so override atomically: 12812 install_override_mode=555 12813 ;; 12814 12815interix[3-9]*) 12816 version_type=linux # correct to gnu/linux during the next big refactor 12817 need_lib_prefix=no 12818 need_version=no 12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12820 soname_spec='${libname}${release}${shared_ext}$major' 12821 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12822 shlibpath_var=LD_LIBRARY_PATH 12823 shlibpath_overrides_runpath=no 12824 hardcode_into_libs=yes 12825 ;; 12826 12827irix5* | irix6* | nonstopux*) 12828 case $host_os in 12829 nonstopux*) version_type=nonstopux ;; 12830 *) 12831 if test "$lt_cv_prog_gnu_ld" = yes; then 12832 version_type=linux # correct to gnu/linux during the next big refactor 12833 else 12834 version_type=irix 12835 fi ;; 12836 esac 12837 need_lib_prefix=no 12838 need_version=no 12839 soname_spec='${libname}${release}${shared_ext}$major' 12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12841 case $host_os in 12842 irix5* | nonstopux*) 12843 libsuff= shlibsuff= 12844 ;; 12845 *) 12846 case $LD in # libtool.m4 will add one of these switches to LD 12847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12848 libsuff= shlibsuff= libmagic=32-bit;; 12849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12850 libsuff=32 shlibsuff=N32 libmagic=N32;; 12851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12852 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12853 *) libsuff= shlibsuff= libmagic=never-match;; 12854 esac 12855 ;; 12856 esac 12857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12858 shlibpath_overrides_runpath=no 12859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12861 hardcode_into_libs=yes 12862 ;; 12863 12864# No shared lib support for Linux oldld, aout, or coff. 12865linux*oldld* | linux*aout* | linux*coff*) 12866 dynamic_linker=no 12867 ;; 12868 12869# This must be glibc/ELF. 12870linux* | k*bsd*-gnu | kopensolaris*-gnu) 12871 version_type=linux # correct to gnu/linux during the next big refactor 12872 need_lib_prefix=no 12873 need_version=no 12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12875 soname_spec='${libname}${release}${shared_ext}$major' 12876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12877 shlibpath_var=LD_LIBRARY_PATH 12878 shlibpath_overrides_runpath=no 12879 12880 # Some binutils ld are patched to set DT_RUNPATH 12881 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 lt_cv_shlibpath_overrides_runpath=no 12885 save_LDFLAGS=$LDFLAGS 12886 save_libdir=$libdir 12887 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12888 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891 12892int 12893main () 12894{ 12895 12896 ; 12897 return 0; 12898} 12899_ACEOF 12900if ac_fn_c_try_link "$LINENO"; then : 12901 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12902 lt_cv_shlibpath_overrides_runpath=yes 12903fi 12904fi 12905rm -f core conftest.err conftest.$ac_objext \ 12906 conftest$ac_exeext conftest.$ac_ext 12907 LDFLAGS=$save_LDFLAGS 12908 libdir=$save_libdir 12909 12910fi 12911 12912 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12913 12914 # This implies no fast_install, which is unacceptable. 12915 # Some rework will be needed to allow for fast_install 12916 # before this can be enabled. 12917 hardcode_into_libs=yes 12918 12919 # Add ABI-specific directories to the system library path. 12920 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12921 12922 # Append ld.so.conf contents to the search path 12923 if test -f /etc/ld.so.conf; then 12924 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' ' '` 12925 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12926 12927 fi 12928 12929 # We used to test for /lib/ld.so.1 and disable shared libraries on 12930 # powerpc, because MkLinux only supported shared libraries with the 12931 # GNU dynamic linker. Since this was broken with cross compilers, 12932 # most powerpc-linux boxes support dynamic linking these days and 12933 # people can always --disable-shared, the test was removed, and we 12934 # assume the GNU/Linux dynamic linker is in use. 12935 dynamic_linker='GNU/Linux ld.so' 12936 ;; 12937 12938netbsd*) 12939 version_type=sunos 12940 need_lib_prefix=no 12941 need_version=no 12942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12945 dynamic_linker='NetBSD (a.out) ld.so' 12946 else 12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12948 soname_spec='${libname}${release}${shared_ext}$major' 12949 dynamic_linker='NetBSD ld.elf_so' 12950 fi 12951 shlibpath_var=LD_LIBRARY_PATH 12952 shlibpath_overrides_runpath=yes 12953 hardcode_into_libs=yes 12954 ;; 12955 12956newsos6) 12957 version_type=linux # correct to gnu/linux during the next big refactor 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12959 shlibpath_var=LD_LIBRARY_PATH 12960 shlibpath_overrides_runpath=yes 12961 ;; 12962 12963*nto* | *qnx*) 12964 version_type=qnx 12965 need_lib_prefix=no 12966 need_version=no 12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12968 soname_spec='${libname}${release}${shared_ext}$major' 12969 shlibpath_var=LD_LIBRARY_PATH 12970 shlibpath_overrides_runpath=no 12971 hardcode_into_libs=yes 12972 dynamic_linker='ldqnx.so' 12973 ;; 12974 12975openbsd*) 12976 version_type=sunos 12977 sys_lib_dlsearch_path_spec="/usr/lib" 12978 need_lib_prefix=no 12979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12980 case $host_os in 12981 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12982 *) need_version=no ;; 12983 esac 12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12986 shlibpath_var=LD_LIBRARY_PATH 12987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12988 case $host_os in 12989 openbsd2.[89] | openbsd2.[89].*) 12990 shlibpath_overrides_runpath=no 12991 ;; 12992 *) 12993 shlibpath_overrides_runpath=yes 12994 ;; 12995 esac 12996 else 12997 shlibpath_overrides_runpath=yes 12998 fi 12999 ;; 13000 13001os2*) 13002 libname_spec='$name' 13003 shrext_cmds=".dll" 13004 need_lib_prefix=no 13005 library_names_spec='$libname${shared_ext} $libname.a' 13006 dynamic_linker='OS/2 ld.exe' 13007 shlibpath_var=LIBPATH 13008 ;; 13009 13010osf3* | osf4* | osf5*) 13011 version_type=osf 13012 need_lib_prefix=no 13013 need_version=no 13014 soname_spec='${libname}${release}${shared_ext}$major' 13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13016 shlibpath_var=LD_LIBRARY_PATH 13017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13019 ;; 13020 13021rdos*) 13022 dynamic_linker=no 13023 ;; 13024 13025solaris*) 13026 version_type=linux # correct to gnu/linux during the next big refactor 13027 need_lib_prefix=no 13028 need_version=no 13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13030 soname_spec='${libname}${release}${shared_ext}$major' 13031 shlibpath_var=LD_LIBRARY_PATH 13032 shlibpath_overrides_runpath=yes 13033 hardcode_into_libs=yes 13034 # ldd complains unless libraries are executable 13035 postinstall_cmds='chmod +x $lib' 13036 ;; 13037 13038sunos4*) 13039 version_type=sunos 13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13042 shlibpath_var=LD_LIBRARY_PATH 13043 shlibpath_overrides_runpath=yes 13044 if test "$with_gnu_ld" = yes; then 13045 need_lib_prefix=no 13046 fi 13047 need_version=yes 13048 ;; 13049 13050sysv4 | sysv4.3*) 13051 version_type=linux # correct to gnu/linux during the next big refactor 13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13053 soname_spec='${libname}${release}${shared_ext}$major' 13054 shlibpath_var=LD_LIBRARY_PATH 13055 case $host_vendor in 13056 sni) 13057 shlibpath_overrides_runpath=no 13058 need_lib_prefix=no 13059 runpath_var=LD_RUN_PATH 13060 ;; 13061 siemens) 13062 need_lib_prefix=no 13063 ;; 13064 motorola) 13065 need_lib_prefix=no 13066 need_version=no 13067 shlibpath_overrides_runpath=no 13068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13069 ;; 13070 esac 13071 ;; 13072 13073sysv4*MP*) 13074 if test -d /usr/nec ;then 13075 version_type=linux # correct to gnu/linux during the next big refactor 13076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13077 soname_spec='$libname${shared_ext}.$major' 13078 shlibpath_var=LD_LIBRARY_PATH 13079 fi 13080 ;; 13081 13082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13083 version_type=freebsd-elf 13084 need_lib_prefix=no 13085 need_version=no 13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13087 soname_spec='${libname}${release}${shared_ext}$major' 13088 shlibpath_var=LD_LIBRARY_PATH 13089 shlibpath_overrides_runpath=yes 13090 hardcode_into_libs=yes 13091 if test "$with_gnu_ld" = yes; then 13092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13093 else 13094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13095 case $host_os in 13096 sco3.2v5*) 13097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13098 ;; 13099 esac 13100 fi 13101 sys_lib_dlsearch_path_spec='/usr/lib' 13102 ;; 13103 13104tpf*) 13105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13106 version_type=linux # correct to gnu/linux during the next big refactor 13107 need_lib_prefix=no 13108 need_version=no 13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13110 shlibpath_var=LD_LIBRARY_PATH 13111 shlibpath_overrides_runpath=no 13112 hardcode_into_libs=yes 13113 ;; 13114 13115uts4*) 13116 version_type=linux # correct to gnu/linux during the next big refactor 13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13118 soname_spec='${libname}${release}${shared_ext}$major' 13119 shlibpath_var=LD_LIBRARY_PATH 13120 ;; 13121 13122*) 13123 dynamic_linker=no 13124 ;; 13125esac 13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13127$as_echo "$dynamic_linker" >&6; } 13128test "$dynamic_linker" = no && can_build_shared=no 13129 13130variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13131if test "$GCC" = yes; then 13132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13133fi 13134 13135if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13137fi 13138if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13140fi 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13234$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13235hardcode_action= 13236if test -n "$hardcode_libdir_flag_spec" || 13237 test -n "$runpath_var" || 13238 test "X$hardcode_automatic" = "Xyes" ; then 13239 13240 # We can hardcode non-existent directories. 13241 if test "$hardcode_direct" != no && 13242 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13243 # have to relink, otherwise we might link with an installed library 13244 # when we should be linking with a yet-to-be-installed one 13245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13246 test "$hardcode_minus_L" != no; then 13247 # Linking always hardcodes the temporary library directory. 13248 hardcode_action=relink 13249 else 13250 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13251 hardcode_action=immediate 13252 fi 13253else 13254 # We cannot hardcode anything, or else we can only hardcode existing 13255 # directories. 13256 hardcode_action=unsupported 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13259$as_echo "$hardcode_action" >&6; } 13260 13261if test "$hardcode_action" = relink || 13262 test "$inherit_rpath" = yes; then 13263 # Fast installation is not supported 13264 enable_fast_install=no 13265elif test "$shlibpath_overrides_runpath" = yes || 13266 test "$enable_shared" = no; then 13267 # Fast installation is not necessary 13268 enable_fast_install=needless 13269fi 13270 13271 13272 13273 13274 13275 13276 if test "x$enable_dlopen" != xyes; then 13277 enable_dlopen=unknown 13278 enable_dlopen_self=unknown 13279 enable_dlopen_self_static=unknown 13280else 13281 lt_cv_dlopen=no 13282 lt_cv_dlopen_libs= 13283 13284 case $host_os in 13285 beos*) 13286 lt_cv_dlopen="load_add_on" 13287 lt_cv_dlopen_libs= 13288 lt_cv_dlopen_self=yes 13289 ;; 13290 13291 mingw* | pw32* | cegcc*) 13292 lt_cv_dlopen="LoadLibrary" 13293 lt_cv_dlopen_libs= 13294 ;; 13295 13296 cygwin*) 13297 lt_cv_dlopen="dlopen" 13298 lt_cv_dlopen_libs= 13299 ;; 13300 13301 darwin*) 13302 # if libdl is installed we need to link against it 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13304$as_echo_n "checking for dlopen in -ldl... " >&6; } 13305if ${ac_cv_lib_dl_dlopen+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 ac_check_lib_save_LIBS=$LIBS 13309LIBS="-ldl $LIBS" 13310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312 13313/* Override any GCC internal prototype to avoid an error. 13314 Use char because int might match the return type of a GCC 13315 builtin and then its argument prototype would still apply. */ 13316#ifdef __cplusplus 13317extern "C" 13318#endif 13319char dlopen (); 13320int 13321main () 13322{ 13323return dlopen (); 13324 ; 13325 return 0; 13326} 13327_ACEOF 13328if ac_fn_c_try_link "$LINENO"; then : 13329 ac_cv_lib_dl_dlopen=yes 13330else 13331 ac_cv_lib_dl_dlopen=no 13332fi 13333rm -f core conftest.err conftest.$ac_objext \ 13334 conftest$ac_exeext conftest.$ac_ext 13335LIBS=$ac_check_lib_save_LIBS 13336fi 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13338$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13339if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13341else 13342 13343 lt_cv_dlopen="dyld" 13344 lt_cv_dlopen_libs= 13345 lt_cv_dlopen_self=yes 13346 13347fi 13348 13349 ;; 13350 13351 *) 13352 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13353if test "x$ac_cv_func_shl_load" = xyes; then : 13354 lt_cv_dlopen="shl_load" 13355else 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13357$as_echo_n "checking for shl_load in -ldld... " >&6; } 13358if ${ac_cv_lib_dld_shl_load+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 ac_check_lib_save_LIBS=$LIBS 13362LIBS="-ldld $LIBS" 13363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365 13366/* Override any GCC internal prototype to avoid an error. 13367 Use char because int might match the return type of a GCC 13368 builtin and then its argument prototype would still apply. */ 13369#ifdef __cplusplus 13370extern "C" 13371#endif 13372char shl_load (); 13373int 13374main () 13375{ 13376return shl_load (); 13377 ; 13378 return 0; 13379} 13380_ACEOF 13381if ac_fn_c_try_link "$LINENO"; then : 13382 ac_cv_lib_dld_shl_load=yes 13383else 13384 ac_cv_lib_dld_shl_load=no 13385fi 13386rm -f core conftest.err conftest.$ac_objext \ 13387 conftest$ac_exeext conftest.$ac_ext 13388LIBS=$ac_check_lib_save_LIBS 13389fi 13390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13391$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13392if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13393 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13394else 13395 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13396if test "x$ac_cv_func_dlopen" = xyes; then : 13397 lt_cv_dlopen="dlopen" 13398else 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13400$as_echo_n "checking for dlopen in -ldl... " >&6; } 13401if ${ac_cv_lib_dl_dlopen+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403else 13404 ac_check_lib_save_LIBS=$LIBS 13405LIBS="-ldl $LIBS" 13406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13407/* end confdefs.h. */ 13408 13409/* Override any GCC internal prototype to avoid an error. 13410 Use char because int might match the return type of a GCC 13411 builtin and then its argument prototype would still apply. */ 13412#ifdef __cplusplus 13413extern "C" 13414#endif 13415char dlopen (); 13416int 13417main () 13418{ 13419return dlopen (); 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424if ac_fn_c_try_link "$LINENO"; then : 13425 ac_cv_lib_dl_dlopen=yes 13426else 13427 ac_cv_lib_dl_dlopen=no 13428fi 13429rm -f core conftest.err conftest.$ac_objext \ 13430 conftest$ac_exeext conftest.$ac_ext 13431LIBS=$ac_check_lib_save_LIBS 13432fi 13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13434$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13435if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13437else 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13439$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13440if ${ac_cv_lib_svld_dlopen+:} false; then : 13441 $as_echo_n "(cached) " >&6 13442else 13443 ac_check_lib_save_LIBS=$LIBS 13444LIBS="-lsvld $LIBS" 13445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13446/* end confdefs.h. */ 13447 13448/* Override any GCC internal prototype to avoid an error. 13449 Use char because int might match the return type of a GCC 13450 builtin and then its argument prototype would still apply. */ 13451#ifdef __cplusplus 13452extern "C" 13453#endif 13454char dlopen (); 13455int 13456main () 13457{ 13458return dlopen (); 13459 ; 13460 return 0; 13461} 13462_ACEOF 13463if ac_fn_c_try_link "$LINENO"; then : 13464 ac_cv_lib_svld_dlopen=yes 13465else 13466 ac_cv_lib_svld_dlopen=no 13467fi 13468rm -f core conftest.err conftest.$ac_objext \ 13469 conftest$ac_exeext conftest.$ac_ext 13470LIBS=$ac_check_lib_save_LIBS 13471fi 13472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13473$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13474if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13476else 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13478$as_echo_n "checking for dld_link in -ldld... " >&6; } 13479if ${ac_cv_lib_dld_dld_link+:} false; then : 13480 $as_echo_n "(cached) " >&6 13481else 13482 ac_check_lib_save_LIBS=$LIBS 13483LIBS="-ldld $LIBS" 13484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485/* end confdefs.h. */ 13486 13487/* Override any GCC internal prototype to avoid an error. 13488 Use char because int might match the return type of a GCC 13489 builtin and then its argument prototype would still apply. */ 13490#ifdef __cplusplus 13491extern "C" 13492#endif 13493char dld_link (); 13494int 13495main () 13496{ 13497return dld_link (); 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502if ac_fn_c_try_link "$LINENO"; then : 13503 ac_cv_lib_dld_dld_link=yes 13504else 13505 ac_cv_lib_dld_dld_link=no 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509LIBS=$ac_check_lib_save_LIBS 13510fi 13511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13512$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13513if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13515fi 13516 13517 13518fi 13519 13520 13521fi 13522 13523 13524fi 13525 13526 13527fi 13528 13529 13530fi 13531 13532 ;; 13533 esac 13534 13535 if test "x$lt_cv_dlopen" != xno; then 13536 enable_dlopen=yes 13537 else 13538 enable_dlopen=no 13539 fi 13540 13541 case $lt_cv_dlopen in 13542 dlopen) 13543 save_CPPFLAGS="$CPPFLAGS" 13544 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13545 13546 save_LDFLAGS="$LDFLAGS" 13547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13548 13549 save_LIBS="$LIBS" 13550 LIBS="$lt_cv_dlopen_libs $LIBS" 13551 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13553$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13554if ${lt_cv_dlopen_self+:} false; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 if test "$cross_compiling" = yes; then : 13558 lt_cv_dlopen_self=cross 13559else 13560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13561 lt_status=$lt_dlunknown 13562 cat > conftest.$ac_ext <<_LT_EOF 13563#line $LINENO "configure" 13564#include "confdefs.h" 13565 13566#if HAVE_DLFCN_H 13567#include <dlfcn.h> 13568#endif 13569 13570#include <stdio.h> 13571 13572#ifdef RTLD_GLOBAL 13573# define LT_DLGLOBAL RTLD_GLOBAL 13574#else 13575# ifdef DL_GLOBAL 13576# define LT_DLGLOBAL DL_GLOBAL 13577# else 13578# define LT_DLGLOBAL 0 13579# endif 13580#endif 13581 13582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13583 find out it does not work in some platform. */ 13584#ifndef LT_DLLAZY_OR_NOW 13585# ifdef RTLD_LAZY 13586# define LT_DLLAZY_OR_NOW RTLD_LAZY 13587# else 13588# ifdef DL_LAZY 13589# define LT_DLLAZY_OR_NOW DL_LAZY 13590# else 13591# ifdef RTLD_NOW 13592# define LT_DLLAZY_OR_NOW RTLD_NOW 13593# else 13594# ifdef DL_NOW 13595# define LT_DLLAZY_OR_NOW DL_NOW 13596# else 13597# define LT_DLLAZY_OR_NOW 0 13598# endif 13599# endif 13600# endif 13601# endif 13602#endif 13603 13604/* When -fvisbility=hidden is used, assume the code has been annotated 13605 correspondingly for the symbols needed. */ 13606#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13607int fnord () __attribute__((visibility("default"))); 13608#endif 13609 13610int fnord () { return 42; } 13611int main () 13612{ 13613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13614 int status = $lt_dlunknown; 13615 13616 if (self) 13617 { 13618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13619 else 13620 { 13621 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13622 else puts (dlerror ()); 13623 } 13624 /* dlclose (self); */ 13625 } 13626 else 13627 puts (dlerror ()); 13628 13629 return status; 13630} 13631_LT_EOF 13632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13633 (eval $ac_link) 2>&5 13634 ac_status=$? 13635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13636 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13637 (./conftest; exit; ) >&5 2>/dev/null 13638 lt_status=$? 13639 case x$lt_status in 13640 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13641 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13642 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13643 esac 13644 else : 13645 # compilation failed 13646 lt_cv_dlopen_self=no 13647 fi 13648fi 13649rm -fr conftest* 13650 13651 13652fi 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13654$as_echo "$lt_cv_dlopen_self" >&6; } 13655 13656 if test "x$lt_cv_dlopen_self" = xyes; then 13657 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13659$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13660if ${lt_cv_dlopen_self_static+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 if test "$cross_compiling" = yes; then : 13664 lt_cv_dlopen_self_static=cross 13665else 13666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13667 lt_status=$lt_dlunknown 13668 cat > conftest.$ac_ext <<_LT_EOF 13669#line $LINENO "configure" 13670#include "confdefs.h" 13671 13672#if HAVE_DLFCN_H 13673#include <dlfcn.h> 13674#endif 13675 13676#include <stdio.h> 13677 13678#ifdef RTLD_GLOBAL 13679# define LT_DLGLOBAL RTLD_GLOBAL 13680#else 13681# ifdef DL_GLOBAL 13682# define LT_DLGLOBAL DL_GLOBAL 13683# else 13684# define LT_DLGLOBAL 0 13685# endif 13686#endif 13687 13688/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13689 find out it does not work in some platform. */ 13690#ifndef LT_DLLAZY_OR_NOW 13691# ifdef RTLD_LAZY 13692# define LT_DLLAZY_OR_NOW RTLD_LAZY 13693# else 13694# ifdef DL_LAZY 13695# define LT_DLLAZY_OR_NOW DL_LAZY 13696# else 13697# ifdef RTLD_NOW 13698# define LT_DLLAZY_OR_NOW RTLD_NOW 13699# else 13700# ifdef DL_NOW 13701# define LT_DLLAZY_OR_NOW DL_NOW 13702# else 13703# define LT_DLLAZY_OR_NOW 0 13704# endif 13705# endif 13706# endif 13707# endif 13708#endif 13709 13710/* When -fvisbility=hidden is used, assume the code has been annotated 13711 correspondingly for the symbols needed. */ 13712#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13713int fnord () __attribute__((visibility("default"))); 13714#endif 13715 13716int fnord () { return 42; } 13717int main () 13718{ 13719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13720 int status = $lt_dlunknown; 13721 13722 if (self) 13723 { 13724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13725 else 13726 { 13727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13728 else puts (dlerror ()); 13729 } 13730 /* dlclose (self); */ 13731 } 13732 else 13733 puts (dlerror ()); 13734 13735 return status; 13736} 13737_LT_EOF 13738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13739 (eval $ac_link) 2>&5 13740 ac_status=$? 13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13742 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13743 (./conftest; exit; ) >&5 2>/dev/null 13744 lt_status=$? 13745 case x$lt_status in 13746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13748 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13749 esac 13750 else : 13751 # compilation failed 13752 lt_cv_dlopen_self_static=no 13753 fi 13754fi 13755rm -fr conftest* 13756 13757 13758fi 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13760$as_echo "$lt_cv_dlopen_self_static" >&6; } 13761 fi 13762 13763 CPPFLAGS="$save_CPPFLAGS" 13764 LDFLAGS="$save_LDFLAGS" 13765 LIBS="$save_LIBS" 13766 ;; 13767 esac 13768 13769 case $lt_cv_dlopen_self in 13770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13771 *) enable_dlopen_self=unknown ;; 13772 esac 13773 13774 case $lt_cv_dlopen_self_static in 13775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13776 *) enable_dlopen_self_static=unknown ;; 13777 esac 13778fi 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796striplib= 13797old_striplib= 13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13799$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13800if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13801 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13802 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13804$as_echo "yes" >&6; } 13805else 13806# FIXME - insert some real tests, host_os isn't really good enough 13807 case $host_os in 13808 darwin*) 13809 if test -n "$STRIP" ; then 13810 striplib="$STRIP -x" 13811 old_striplib="$STRIP -S" 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13813$as_echo "yes" >&6; } 13814 else 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13816$as_echo "no" >&6; } 13817 fi 13818 ;; 13819 *) 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13821$as_echo "no" >&6; } 13822 ;; 13823 esac 13824fi 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 # Report which library types will actually be built 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13839$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13841$as_echo "$can_build_shared" >&6; } 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13844$as_echo_n "checking whether to build shared libraries... " >&6; } 13845 test "$can_build_shared" = "no" && enable_shared=no 13846 13847 # On AIX, shared libraries and static libraries use the same namespace, and 13848 # are all built from PIC. 13849 case $host_os in 13850 aix3*) 13851 test "$enable_shared" = yes && enable_static=no 13852 if test -n "$RANLIB"; then 13853 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13854 postinstall_cmds='$RANLIB $lib' 13855 fi 13856 ;; 13857 13858 aix[4-9]*) 13859 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13860 test "$enable_shared" = yes && enable_static=no 13861 fi 13862 ;; 13863 esac 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13865$as_echo "$enable_shared" >&6; } 13866 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13868$as_echo_n "checking whether to build static libraries... " >&6; } 13869 # Make sure either enable_shared or enable_static is yes. 13870 test "$enable_shared" = yes || enable_static=yes 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13872$as_echo "$enable_static" >&6; } 13873 13874 13875 13876 13877fi 13878ac_ext=c 13879ac_cpp='$CPP $CPPFLAGS' 13880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13882ac_compiler_gnu=$ac_cv_c_compiler_gnu 13883 13884CC="$lt_save_CC" 13885 13886 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13887 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13888 (test "X$CXX" != "Xg++"))) ; then 13889 ac_ext=cpp 13890ac_cpp='$CXXCPP $CPPFLAGS' 13891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13895$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13896if test -z "$CXXCPP"; then 13897 if ${ac_cv_prog_CXXCPP+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 # Double quotes because CXXCPP needs to be expanded 13901 for CXXCPP in "$CXX -E" "/lib/cpp" 13902 do 13903 ac_preproc_ok=false 13904for ac_cxx_preproc_warn_flag in '' yes 13905do 13906 # Use a header file that comes with gcc, so configuring glibc 13907 # with a fresh cross-compiler works. 13908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13909 # <limits.h> exists even on freestanding compilers. 13910 # On the NeXT, cc -E runs the code through the compiler's parser, 13911 # not just through cpp. "Syntax error" is here to catch this case. 13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913/* end confdefs.h. */ 13914#ifdef __STDC__ 13915# include <limits.h> 13916#else 13917# include <assert.h> 13918#endif 13919 Syntax error 13920_ACEOF 13921if ac_fn_cxx_try_cpp "$LINENO"; then : 13922 13923else 13924 # Broken: fails on valid input. 13925continue 13926fi 13927rm -f conftest.err conftest.i conftest.$ac_ext 13928 13929 # OK, works on sane cases. Now check whether nonexistent headers 13930 # can be detected and how. 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933#include <ac_nonexistent.h> 13934_ACEOF 13935if ac_fn_cxx_try_cpp "$LINENO"; then : 13936 # Broken: success on invalid input. 13937continue 13938else 13939 # Passes both tests. 13940ac_preproc_ok=: 13941break 13942fi 13943rm -f conftest.err conftest.i conftest.$ac_ext 13944 13945done 13946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13947rm -f conftest.i conftest.err conftest.$ac_ext 13948if $ac_preproc_ok; then : 13949 break 13950fi 13951 13952 done 13953 ac_cv_prog_CXXCPP=$CXXCPP 13954 13955fi 13956 CXXCPP=$ac_cv_prog_CXXCPP 13957else 13958 ac_cv_prog_CXXCPP=$CXXCPP 13959fi 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13961$as_echo "$CXXCPP" >&6; } 13962ac_preproc_ok=false 13963for ac_cxx_preproc_warn_flag in '' yes 13964do 13965 # Use a header file that comes with gcc, so configuring glibc 13966 # with a fresh cross-compiler works. 13967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13968 # <limits.h> exists even on freestanding compilers. 13969 # On the NeXT, cc -E runs the code through the compiler's parser, 13970 # not just through cpp. "Syntax error" is here to catch this case. 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973#ifdef __STDC__ 13974# include <limits.h> 13975#else 13976# include <assert.h> 13977#endif 13978 Syntax error 13979_ACEOF 13980if ac_fn_cxx_try_cpp "$LINENO"; then : 13981 13982else 13983 # Broken: fails on valid input. 13984continue 13985fi 13986rm -f conftest.err conftest.i conftest.$ac_ext 13987 13988 # OK, works on sane cases. Now check whether nonexistent headers 13989 # can be detected and how. 13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13991/* end confdefs.h. */ 13992#include <ac_nonexistent.h> 13993_ACEOF 13994if ac_fn_cxx_try_cpp "$LINENO"; then : 13995 # Broken: success on invalid input. 13996continue 13997else 13998 # Passes both tests. 13999ac_preproc_ok=: 14000break 14001fi 14002rm -f conftest.err conftest.i conftest.$ac_ext 14003 14004done 14005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14006rm -f conftest.i conftest.err conftest.$ac_ext 14007if $ac_preproc_ok; then : 14008 14009else 14010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14012as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14013See \`config.log' for more details" "$LINENO" 5; } 14014fi 14015 14016ac_ext=c 14017ac_cpp='$CPP $CPPFLAGS' 14018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14020ac_compiler_gnu=$ac_cv_c_compiler_gnu 14021 14022else 14023 _lt_caught_CXX_error=yes 14024fi 14025 14026ac_ext=cpp 14027ac_cpp='$CXXCPP $CPPFLAGS' 14028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14031 14032archive_cmds_need_lc_CXX=no 14033allow_undefined_flag_CXX= 14034always_export_symbols_CXX=no 14035archive_expsym_cmds_CXX= 14036compiler_needs_object_CXX=no 14037export_dynamic_flag_spec_CXX= 14038hardcode_direct_CXX=no 14039hardcode_direct_absolute_CXX=no 14040hardcode_libdir_flag_spec_CXX= 14041hardcode_libdir_separator_CXX= 14042hardcode_minus_L_CXX=no 14043hardcode_shlibpath_var_CXX=unsupported 14044hardcode_automatic_CXX=no 14045inherit_rpath_CXX=no 14046module_cmds_CXX= 14047module_expsym_cmds_CXX= 14048link_all_deplibs_CXX=unknown 14049old_archive_cmds_CXX=$old_archive_cmds 14050reload_flag_CXX=$reload_flag 14051reload_cmds_CXX=$reload_cmds 14052no_undefined_flag_CXX= 14053whole_archive_flag_spec_CXX= 14054enable_shared_with_static_runtimes_CXX=no 14055 14056# Source file extension for C++ test sources. 14057ac_ext=cpp 14058 14059# Object file extension for compiled C++ test sources. 14060objext=o 14061objext_CXX=$objext 14062 14063# No sense in running all these tests if we already determined that 14064# the CXX compiler isn't working. Some variables (like enable_shared) 14065# are currently assumed to apply to all compilers on this platform, 14066# and will be corrupted by setting them based on a non-working compiler. 14067if test "$_lt_caught_CXX_error" != yes; then 14068 # Code to be used in simple compile tests 14069 lt_simple_compile_test_code="int some_variable = 0;" 14070 14071 # Code to be used in simple link tests 14072 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14073 14074 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14075 14076 14077 14078 14079 14080 14081# If no C compiler was specified, use CC. 14082LTCC=${LTCC-"$CC"} 14083 14084# If no C compiler flags were specified, use CFLAGS. 14085LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14086 14087# Allow CC to be a program name with arguments. 14088compiler=$CC 14089 14090 14091 # save warnings/boilerplate of simple test code 14092 ac_outfile=conftest.$ac_objext 14093echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14094eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14095_lt_compiler_boilerplate=`cat conftest.err` 14096$RM conftest* 14097 14098 ac_outfile=conftest.$ac_objext 14099echo "$lt_simple_link_test_code" >conftest.$ac_ext 14100eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14101_lt_linker_boilerplate=`cat conftest.err` 14102$RM -r conftest* 14103 14104 14105 # Allow CC to be a program name with arguments. 14106 lt_save_CC=$CC 14107 lt_save_CFLAGS=$CFLAGS 14108 lt_save_LD=$LD 14109 lt_save_GCC=$GCC 14110 GCC=$GXX 14111 lt_save_with_gnu_ld=$with_gnu_ld 14112 lt_save_path_LD=$lt_cv_path_LD 14113 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14114 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14115 else 14116 $as_unset lt_cv_prog_gnu_ld 14117 fi 14118 if test -n "${lt_cv_path_LDCXX+set}"; then 14119 lt_cv_path_LD=$lt_cv_path_LDCXX 14120 else 14121 $as_unset lt_cv_path_LD 14122 fi 14123 test -z "${LDCXX+set}" || LD=$LDCXX 14124 CC=${CXX-"c++"} 14125 CFLAGS=$CXXFLAGS 14126 compiler=$CC 14127 compiler_CXX=$CC 14128 for cc_temp in $compiler""; do 14129 case $cc_temp in 14130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14132 \-*) ;; 14133 *) break;; 14134 esac 14135done 14136cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14137 14138 14139 if test -n "$compiler"; then 14140 # We don't want -fno-exception when compiling C++ code, so set the 14141 # no_builtin_flag separately 14142 if test "$GXX" = yes; then 14143 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14144 else 14145 lt_prog_compiler_no_builtin_flag_CXX= 14146 fi 14147 14148 if test "$GXX" = yes; then 14149 # Set up default GNU C++ configuration 14150 14151 14152 14153# Check whether --with-gnu-ld was given. 14154if test "${with_gnu_ld+set}" = set; then : 14155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14156else 14157 with_gnu_ld=no 14158fi 14159 14160ac_prog=ld 14161if test "$GCC" = yes; then 14162 # Check if gcc -print-prog-name=ld gives a path. 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14164$as_echo_n "checking for ld used by $CC... " >&6; } 14165 case $host in 14166 *-*-mingw*) 14167 # gcc leaves a trailing carriage return which upsets mingw 14168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14169 *) 14170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14171 esac 14172 case $ac_prog in 14173 # Accept absolute paths. 14174 [\\/]* | ?:[\\/]*) 14175 re_direlt='/[^/][^/]*/\.\./' 14176 # Canonicalize the pathname of ld 14177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14180 done 14181 test -z "$LD" && LD="$ac_prog" 14182 ;; 14183 "") 14184 # If it fails, then pretend we aren't using GCC. 14185 ac_prog=ld 14186 ;; 14187 *) 14188 # If it is relative, then search for the first ld in PATH. 14189 with_gnu_ld=unknown 14190 ;; 14191 esac 14192elif test "$with_gnu_ld" = yes; then 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14194$as_echo_n "checking for GNU ld... " >&6; } 14195else 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14197$as_echo_n "checking for non-GNU ld... " >&6; } 14198fi 14199if ${lt_cv_path_LD+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201else 14202 if test -z "$LD"; then 14203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14204 for ac_dir in $PATH; do 14205 IFS="$lt_save_ifs" 14206 test -z "$ac_dir" && ac_dir=. 14207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14208 lt_cv_path_LD="$ac_dir/$ac_prog" 14209 # Check to see if the program is GNU ld. I'd rather use --version, 14210 # but apparently some variants of GNU ld only accept -v. 14211 # Break only if it was the GNU/non-GNU ld that we prefer. 14212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14213 *GNU* | *'with BFD'*) 14214 test "$with_gnu_ld" != no && break 14215 ;; 14216 *) 14217 test "$with_gnu_ld" != yes && break 14218 ;; 14219 esac 14220 fi 14221 done 14222 IFS="$lt_save_ifs" 14223else 14224 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14225fi 14226fi 14227 14228LD="$lt_cv_path_LD" 14229if test -n "$LD"; then 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14231$as_echo "$LD" >&6; } 14232else 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14234$as_echo "no" >&6; } 14235fi 14236test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14238$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14239if ${lt_cv_prog_gnu_ld+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14243case `$LD -v 2>&1 </dev/null` in 14244*GNU* | *'with BFD'*) 14245 lt_cv_prog_gnu_ld=yes 14246 ;; 14247*) 14248 lt_cv_prog_gnu_ld=no 14249 ;; 14250esac 14251fi 14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14253$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14254with_gnu_ld=$lt_cv_prog_gnu_ld 14255 14256 14257 14258 14259 14260 14261 14262 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14263 # archiving commands below assume that GNU ld is being used. 14264 if test "$with_gnu_ld" = yes; then 14265 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14266 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14267 14268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14270 14271 # If archive_cmds runs LD, not CC, wlarc should be empty 14272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14273 # investigate it a little bit more. (MM) 14274 wlarc='${wl}' 14275 14276 # ancient GNU ld didn't support --whole-archive et. al. 14277 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14278 $GREP 'no-whole-archive' > /dev/null; then 14279 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14280 else 14281 whole_archive_flag_spec_CXX= 14282 fi 14283 else 14284 with_gnu_ld=no 14285 wlarc= 14286 14287 # A generic and very simple default shared library creation 14288 # command for GNU C++ for the case where it uses the native 14289 # linker, instead of GNU ld. If possible, this setting should 14290 # overridden to take advantage of the native linker features on 14291 # the platform it is being used on. 14292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14293 fi 14294 14295 # Commands to make compiler produce verbose output that lists 14296 # what "hidden" libraries, object files and flags are used when 14297 # linking a shared library. 14298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14299 14300 else 14301 GXX=no 14302 with_gnu_ld=no 14303 wlarc= 14304 fi 14305 14306 # PORTME: fill in a description of your system's C++ link characteristics 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14308$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14309 ld_shlibs_CXX=yes 14310 case $host_os in 14311 aix3*) 14312 # FIXME: insert proper C++ library support 14313 ld_shlibs_CXX=no 14314 ;; 14315 aix[4-9]*) 14316 if test "$host_cpu" = ia64; then 14317 # On IA64, the linker does run time linking by default, so we don't 14318 # have to do anything special. 14319 aix_use_runtimelinking=no 14320 exp_sym_flag='-Bexport' 14321 no_entry_flag="" 14322 else 14323 aix_use_runtimelinking=no 14324 14325 # Test if we are trying to use run time linking or normal 14326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14327 # need to do runtime linking. 14328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14329 for ld_flag in $LDFLAGS; do 14330 case $ld_flag in 14331 *-brtl*) 14332 aix_use_runtimelinking=yes 14333 break 14334 ;; 14335 esac 14336 done 14337 ;; 14338 esac 14339 14340 exp_sym_flag='-bexport' 14341 no_entry_flag='-bnoentry' 14342 fi 14343 14344 # When large executables or shared objects are built, AIX ld can 14345 # have problems creating the table of contents. If linking a library 14346 # or program results in "error TOC overflow" add -mminimal-toc to 14347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14349 14350 archive_cmds_CXX='' 14351 hardcode_direct_CXX=yes 14352 hardcode_direct_absolute_CXX=yes 14353 hardcode_libdir_separator_CXX=':' 14354 link_all_deplibs_CXX=yes 14355 file_list_spec_CXX='${wl}-f,' 14356 14357 if test "$GXX" = yes; then 14358 case $host_os in aix4.[012]|aix4.[012].*) 14359 # We only want to do this on AIX 4.2 and lower, the check 14360 # below for broken collect2 doesn't work under 4.3+ 14361 collect2name=`${CC} -print-prog-name=collect2` 14362 if test -f "$collect2name" && 14363 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14364 then 14365 # We have reworked collect2 14366 : 14367 else 14368 # We have old collect2 14369 hardcode_direct_CXX=unsupported 14370 # It fails to find uninstalled libraries when the uninstalled 14371 # path is not listed in the libpath. Setting hardcode_minus_L 14372 # to unsupported forces relinking 14373 hardcode_minus_L_CXX=yes 14374 hardcode_libdir_flag_spec_CXX='-L$libdir' 14375 hardcode_libdir_separator_CXX= 14376 fi 14377 esac 14378 shared_flag='-shared' 14379 if test "$aix_use_runtimelinking" = yes; then 14380 shared_flag="$shared_flag "'${wl}-G' 14381 fi 14382 else 14383 # not using gcc 14384 if test "$host_cpu" = ia64; then 14385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14386 # chokes on -Wl,-G. The following line is correct: 14387 shared_flag='-G' 14388 else 14389 if test "$aix_use_runtimelinking" = yes; then 14390 shared_flag='${wl}-G' 14391 else 14392 shared_flag='${wl}-bM:SRE' 14393 fi 14394 fi 14395 fi 14396 14397 export_dynamic_flag_spec_CXX='${wl}-bexpall' 14398 # It seems that -bexpall does not export symbols beginning with 14399 # underscore (_), so it is better to generate a list of symbols to 14400 # export. 14401 always_export_symbols_CXX=yes 14402 if test "$aix_use_runtimelinking" = yes; then 14403 # Warning - without using the other runtime loading flags (-brtl), 14404 # -berok will link without error, but may produce a broken library. 14405 allow_undefined_flag_CXX='-berok' 14406 # Determine the default libpath from the value encoded in an empty 14407 # executable. 14408 if test "${lt_cv_aix_libpath+set}" = set; then 14409 aix_libpath=$lt_cv_aix_libpath 14410else 14411 if ${lt_cv_aix_libpath__CXX+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14415/* end confdefs.h. */ 14416 14417int 14418main () 14419{ 14420 14421 ; 14422 return 0; 14423} 14424_ACEOF 14425if ac_fn_cxx_try_link "$LINENO"; then : 14426 14427 lt_aix_libpath_sed=' 14428 /Import File Strings/,/^$/ { 14429 /^0/ { 14430 s/^0 *\([^ ]*\) *$/\1/ 14431 p 14432 } 14433 }' 14434 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14435 # Check for a 64-bit object if we didn't find anything. 14436 if test -z "$lt_cv_aix_libpath__CXX"; then 14437 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14438 fi 14439fi 14440rm -f core conftest.err conftest.$ac_objext \ 14441 conftest$ac_exeext conftest.$ac_ext 14442 if test -z "$lt_cv_aix_libpath__CXX"; then 14443 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14444 fi 14445 14446fi 14447 14448 aix_libpath=$lt_cv_aix_libpath__CXX 14449fi 14450 14451 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14452 14453 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14454 else 14455 if test "$host_cpu" = ia64; then 14456 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14457 allow_undefined_flag_CXX="-z nodefs" 14458 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14459 else 14460 # Determine the default libpath from the value encoded in an 14461 # empty executable. 14462 if test "${lt_cv_aix_libpath+set}" = set; then 14463 aix_libpath=$lt_cv_aix_libpath 14464else 14465 if ${lt_cv_aix_libpath__CXX+:} false; then : 14466 $as_echo_n "(cached) " >&6 14467else 14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470 14471int 14472main () 14473{ 14474 14475 ; 14476 return 0; 14477} 14478_ACEOF 14479if ac_fn_cxx_try_link "$LINENO"; then : 14480 14481 lt_aix_libpath_sed=' 14482 /Import File Strings/,/^$/ { 14483 /^0/ { 14484 s/^0 *\([^ ]*\) *$/\1/ 14485 p 14486 } 14487 }' 14488 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14489 # Check for a 64-bit object if we didn't find anything. 14490 if test -z "$lt_cv_aix_libpath__CXX"; then 14491 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14492 fi 14493fi 14494rm -f core conftest.err conftest.$ac_objext \ 14495 conftest$ac_exeext conftest.$ac_ext 14496 if test -z "$lt_cv_aix_libpath__CXX"; then 14497 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14498 fi 14499 14500fi 14501 14502 aix_libpath=$lt_cv_aix_libpath__CXX 14503fi 14504 14505 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14506 # Warning - without using the other run time loading flags, 14507 # -berok will link without error, but may produce a broken library. 14508 no_undefined_flag_CXX=' ${wl}-bernotok' 14509 allow_undefined_flag_CXX=' ${wl}-berok' 14510 if test "$with_gnu_ld" = yes; then 14511 # We only use this code for GNU lds that support --whole-archive. 14512 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14513 else 14514 # Exported symbols can be pulled into shared objects from archives 14515 whole_archive_flag_spec_CXX='$convenience' 14516 fi 14517 archive_cmds_need_lc_CXX=yes 14518 # This is similar to how AIX traditionally builds its shared 14519 # libraries. 14520 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14521 fi 14522 fi 14523 ;; 14524 14525 beos*) 14526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14527 allow_undefined_flag_CXX=unsupported 14528 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14529 # support --undefined. This deserves some investigation. FIXME 14530 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14531 else 14532 ld_shlibs_CXX=no 14533 fi 14534 ;; 14535 14536 chorus*) 14537 case $cc_basename in 14538 *) 14539 # FIXME: insert proper C++ library support 14540 ld_shlibs_CXX=no 14541 ;; 14542 esac 14543 ;; 14544 14545 cygwin* | mingw* | pw32* | cegcc*) 14546 case $GXX,$cc_basename in 14547 ,cl* | no,cl*) 14548 # Native MSVC 14549 # hardcode_libdir_flag_spec is actually meaningless, as there is 14550 # no search path for DLLs. 14551 hardcode_libdir_flag_spec_CXX=' ' 14552 allow_undefined_flag_CXX=unsupported 14553 always_export_symbols_CXX=yes 14554 file_list_spec_CXX='@' 14555 # Tell ltmain to make .lib files, not .a files. 14556 libext=lib 14557 # Tell ltmain to make .dll files, not .so files. 14558 shrext_cmds=".dll" 14559 # FIXME: Setting linknames here is a bad hack. 14560 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14561 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14562 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14563 else 14564 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14565 fi~ 14566 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14567 linknames=' 14568 # The linker will not automatically build a static lib if we build a DLL. 14569 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14570 enable_shared_with_static_runtimes_CXX=yes 14571 # Don't use ranlib 14572 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14573 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14574 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14575 case $lt_outputfile in 14576 *.exe|*.EXE) ;; 14577 *) 14578 lt_outputfile="$lt_outputfile.exe" 14579 lt_tool_outputfile="$lt_tool_outputfile.exe" 14580 ;; 14581 esac~ 14582 func_to_tool_file "$lt_outputfile"~ 14583 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14584 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14585 $RM "$lt_outputfile.manifest"; 14586 fi' 14587 ;; 14588 *) 14589 # g++ 14590 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14591 # as there is no search path for DLLs. 14592 hardcode_libdir_flag_spec_CXX='-L$libdir' 14593 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14594 allow_undefined_flag_CXX=unsupported 14595 always_export_symbols_CXX=no 14596 enable_shared_with_static_runtimes_CXX=yes 14597 14598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14600 # If the export-symbols file already is a .def file (1st line 14601 # is EXPORTS), use it as is; otherwise, prepend... 14602 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14603 cp $export_symbols $output_objdir/$soname.def; 14604 else 14605 echo EXPORTS > $output_objdir/$soname.def; 14606 cat $export_symbols >> $output_objdir/$soname.def; 14607 fi~ 14608 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14609 else 14610 ld_shlibs_CXX=no 14611 fi 14612 ;; 14613 esac 14614 ;; 14615 darwin* | rhapsody*) 14616 14617 14618 archive_cmds_need_lc_CXX=no 14619 hardcode_direct_CXX=no 14620 hardcode_automatic_CXX=yes 14621 hardcode_shlibpath_var_CXX=unsupported 14622 if test "$lt_cv_ld_force_load" = "yes"; then 14623 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14624 14625 else 14626 whole_archive_flag_spec_CXX='' 14627 fi 14628 link_all_deplibs_CXX=yes 14629 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14630 case $cc_basename in 14631 ifort*) _lt_dar_can_shared=yes ;; 14632 *) _lt_dar_can_shared=$GCC ;; 14633 esac 14634 if test "$_lt_dar_can_shared" = "yes"; then 14635 output_verbose_link_cmd=func_echo_all 14636 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14637 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14638 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14639 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 14640 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14641 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14642 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14643 fi 14644 14645 else 14646 ld_shlibs_CXX=no 14647 fi 14648 14649 ;; 14650 14651 dgux*) 14652 case $cc_basename in 14653 ec++*) 14654 # FIXME: insert proper C++ library support 14655 ld_shlibs_CXX=no 14656 ;; 14657 ghcx*) 14658 # Green Hills C++ Compiler 14659 # FIXME: insert proper C++ library support 14660 ld_shlibs_CXX=no 14661 ;; 14662 *) 14663 # FIXME: insert proper C++ library support 14664 ld_shlibs_CXX=no 14665 ;; 14666 esac 14667 ;; 14668 14669 freebsd2.*) 14670 # C++ shared libraries reported to be fairly broken before 14671 # switch to ELF 14672 ld_shlibs_CXX=no 14673 ;; 14674 14675 freebsd-elf*) 14676 archive_cmds_need_lc_CXX=no 14677 ;; 14678 14679 freebsd* | dragonfly*) 14680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14681 # conventions 14682 ld_shlibs_CXX=yes 14683 ;; 14684 14685 gnu*) 14686 ;; 14687 14688 haiku*) 14689 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14690 link_all_deplibs_CXX=yes 14691 ;; 14692 14693 hpux9*) 14694 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14695 hardcode_libdir_separator_CXX=: 14696 export_dynamic_flag_spec_CXX='${wl}-E' 14697 hardcode_direct_CXX=yes 14698 hardcode_minus_L_CXX=yes # Not in the search PATH, 14699 # but as the default 14700 # location of the library. 14701 14702 case $cc_basename in 14703 CC*) 14704 # FIXME: insert proper C++ library support 14705 ld_shlibs_CXX=no 14706 ;; 14707 aCC*) 14708 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14709 # Commands to make compiler produce verbose output that lists 14710 # what "hidden" libraries, object files and flags are used when 14711 # linking a shared library. 14712 # 14713 # There doesn't appear to be a way to prevent this compiler from 14714 # explicitly linking system object files so we need to strip them 14715 # from the output so that they don't get included in the library 14716 # dependencies. 14717 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14718 ;; 14719 *) 14720 if test "$GXX" = yes; then 14721 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14722 else 14723 # FIXME: insert proper C++ library support 14724 ld_shlibs_CXX=no 14725 fi 14726 ;; 14727 esac 14728 ;; 14729 14730 hpux10*|hpux11*) 14731 if test $with_gnu_ld = no; then 14732 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14733 hardcode_libdir_separator_CXX=: 14734 14735 case $host_cpu in 14736 hppa*64*|ia64*) 14737 ;; 14738 *) 14739 export_dynamic_flag_spec_CXX='${wl}-E' 14740 ;; 14741 esac 14742 fi 14743 case $host_cpu in 14744 hppa*64*|ia64*) 14745 hardcode_direct_CXX=no 14746 hardcode_shlibpath_var_CXX=no 14747 ;; 14748 *) 14749 hardcode_direct_CXX=yes 14750 hardcode_direct_absolute_CXX=yes 14751 hardcode_minus_L_CXX=yes # Not in the search PATH, 14752 # but as the default 14753 # location of the library. 14754 ;; 14755 esac 14756 14757 case $cc_basename in 14758 CC*) 14759 # FIXME: insert proper C++ library support 14760 ld_shlibs_CXX=no 14761 ;; 14762 aCC*) 14763 case $host_cpu in 14764 hppa*64*) 14765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14766 ;; 14767 ia64*) 14768 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14769 ;; 14770 *) 14771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14772 ;; 14773 esac 14774 # Commands to make compiler produce verbose output that lists 14775 # what "hidden" libraries, object files and flags are used when 14776 # linking a shared library. 14777 # 14778 # There doesn't appear to be a way to prevent this compiler from 14779 # explicitly linking system object files so we need to strip them 14780 # from the output so that they don't get included in the library 14781 # dependencies. 14782 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14783 ;; 14784 *) 14785 if test "$GXX" = yes; then 14786 if test $with_gnu_ld = no; then 14787 case $host_cpu in 14788 hppa*64*) 14789 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14790 ;; 14791 ia64*) 14792 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14793 ;; 14794 *) 14795 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14796 ;; 14797 esac 14798 fi 14799 else 14800 # FIXME: insert proper C++ library support 14801 ld_shlibs_CXX=no 14802 fi 14803 ;; 14804 esac 14805 ;; 14806 14807 interix[3-9]*) 14808 hardcode_direct_CXX=no 14809 hardcode_shlibpath_var_CXX=no 14810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14811 export_dynamic_flag_spec_CXX='${wl}-E' 14812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14813 # Instead, shared libraries are loaded at an image base (0x10000000 by 14814 # default) and relocated if they conflict, which is a slow very memory 14815 # consuming and fragmenting process. To avoid this, we pick a random, 14816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14817 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14818 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14819 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14820 ;; 14821 irix5* | irix6*) 14822 case $cc_basename in 14823 CC*) 14824 # SGI C++ 14825 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14826 14827 # Archives containing C++ object files must be created using 14828 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14829 # necessary to make sure instantiated templates are included 14830 # in the archive. 14831 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14832 ;; 14833 *) 14834 if test "$GXX" = yes; then 14835 if test "$with_gnu_ld" = no; then 14836 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14837 else 14838 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 14839 fi 14840 fi 14841 link_all_deplibs_CXX=yes 14842 ;; 14843 esac 14844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14845 hardcode_libdir_separator_CXX=: 14846 inherit_rpath_CXX=yes 14847 ;; 14848 14849 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14850 case $cc_basename in 14851 KCC*) 14852 # Kuck and Associates, Inc. (KAI) C++ Compiler 14853 14854 # KCC will only create a shared library if the output file 14855 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14856 # to its proper name (with version) after linking. 14857 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14858 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 14859 # Commands to make compiler produce verbose output that lists 14860 # what "hidden" libraries, object files and flags are used when 14861 # linking a shared library. 14862 # 14863 # There doesn't appear to be a way to prevent this compiler from 14864 # explicitly linking system object files so we need to strip them 14865 # from the output so that they don't get included in the library 14866 # dependencies. 14867 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14868 14869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14871 14872 # Archives containing C++ object files must be created using 14873 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14874 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14875 ;; 14876 icpc* | ecpc* ) 14877 # Intel C++ 14878 with_gnu_ld=yes 14879 # version 8.0 and above of icpc choke on multiply defined symbols 14880 # if we add $predep_objects and $postdep_objects, however 7.1 and 14881 # earlier do not add the objects themselves. 14882 case `$CC -V 2>&1` in 14883 *"Version 7."*) 14884 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14885 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14886 ;; 14887 *) # Version 8.0 or newer 14888 tmp_idyn= 14889 case $host_cpu in 14890 ia64*) tmp_idyn=' -i_dynamic';; 14891 esac 14892 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14893 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14894 ;; 14895 esac 14896 archive_cmds_need_lc_CXX=no 14897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14899 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14900 ;; 14901 pgCC* | pgcpp*) 14902 # Portland Group C++ compiler 14903 case `$CC -V` in 14904 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14905 prelink_cmds_CXX='tpldir=Template.dir~ 14906 rm -rf $tpldir~ 14907 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14908 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14909 old_archive_cmds_CXX='tpldir=Template.dir~ 14910 rm -rf $tpldir~ 14911 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14912 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14913 $RANLIB $oldlib' 14914 archive_cmds_CXX='tpldir=Template.dir~ 14915 rm -rf $tpldir~ 14916 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14917 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14918 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14919 rm -rf $tpldir~ 14920 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14921 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14922 ;; 14923 *) # Version 6 and above use weak symbols 14924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14925 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14926 ;; 14927 esac 14928 14929 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14931 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14932 ;; 14933 cxx*) 14934 # Compaq C++ 14935 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14936 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 14937 14938 runpath_var=LD_RUN_PATH 14939 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14940 hardcode_libdir_separator_CXX=: 14941 14942 # Commands to make compiler produce verbose output that lists 14943 # what "hidden" libraries, object files and flags are used when 14944 # linking a shared library. 14945 # 14946 # There doesn't appear to be a way to prevent this compiler from 14947 # explicitly linking system object files so we need to strip them 14948 # from the output so that they don't get included in the library 14949 # dependencies. 14950 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14951 ;; 14952 xl* | mpixl* | bgxl*) 14953 # IBM XL 8.0 on PPC, with GNU ld 14954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14956 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14957 if test "x$supports_anon_versioning" = xyes; then 14958 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14960 echo "local: *; };" >> $output_objdir/$libname.ver~ 14961 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14962 fi 14963 ;; 14964 *) 14965 case `$CC -V 2>&1 | sed 5q` in 14966 *Sun\ C*) 14967 # Sun C++ 5.9 14968 no_undefined_flag_CXX=' -zdefs' 14969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14970 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14971 hardcode_libdir_flag_spec_CXX='-R$libdir' 14972 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14973 compiler_needs_object_CXX=yes 14974 14975 # Not sure whether something based on 14976 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14977 # would be better. 14978 output_verbose_link_cmd='func_echo_all' 14979 14980 # Archives containing C++ object files must be created using 14981 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14982 # necessary to make sure instantiated templates are included 14983 # in the archive. 14984 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14985 ;; 14986 esac 14987 ;; 14988 esac 14989 ;; 14990 14991 lynxos*) 14992 # FIXME: insert proper C++ library support 14993 ld_shlibs_CXX=no 14994 ;; 14995 14996 m88k*) 14997 # FIXME: insert proper C++ library support 14998 ld_shlibs_CXX=no 14999 ;; 15000 15001 mvs*) 15002 case $cc_basename in 15003 cxx*) 15004 # FIXME: insert proper C++ library support 15005 ld_shlibs_CXX=no 15006 ;; 15007 *) 15008 # FIXME: insert proper C++ library support 15009 ld_shlibs_CXX=no 15010 ;; 15011 esac 15012 ;; 15013 15014 netbsd*) 15015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15016 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15017 wlarc= 15018 hardcode_libdir_flag_spec_CXX='-R$libdir' 15019 hardcode_direct_CXX=yes 15020 hardcode_shlibpath_var_CXX=no 15021 fi 15022 # Workaround some broken pre-1.5 toolchains 15023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15024 ;; 15025 15026 *nto* | *qnx*) 15027 ld_shlibs_CXX=yes 15028 ;; 15029 15030 openbsd2*) 15031 # C++ shared libraries are fairly broken 15032 ld_shlibs_CXX=no 15033 ;; 15034 15035 openbsd*) 15036 if test -f /usr/libexec/ld.so; then 15037 hardcode_direct_CXX=yes 15038 hardcode_shlibpath_var_CXX=no 15039 hardcode_direct_absolute_CXX=yes 15040 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15043 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15044 export_dynamic_flag_spec_CXX='${wl}-E' 15045 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15046 fi 15047 output_verbose_link_cmd=func_echo_all 15048 else 15049 ld_shlibs_CXX=no 15050 fi 15051 ;; 15052 15053 osf3* | osf4* | osf5*) 15054 case $cc_basename in 15055 KCC*) 15056 # Kuck and Associates, Inc. (KAI) C++ Compiler 15057 15058 # KCC will only create a shared library if the output file 15059 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15060 # to its proper name (with version) after linking. 15061 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15062 15063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15064 hardcode_libdir_separator_CXX=: 15065 15066 # Archives containing C++ object files must be created using 15067 # the KAI C++ compiler. 15068 case $host in 15069 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15070 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15071 esac 15072 ;; 15073 RCC*) 15074 # Rational C++ 2.4.1 15075 # FIXME: insert proper C++ library support 15076 ld_shlibs_CXX=no 15077 ;; 15078 cxx*) 15079 case $host in 15080 osf3*) 15081 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15082 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15083 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15084 ;; 15085 *) 15086 allow_undefined_flag_CXX=' -expect_unresolved \*' 15087 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15088 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15089 echo "-hidden">> $lib.exp~ 15090 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 15091 $RM $lib.exp' 15092 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15093 ;; 15094 esac 15095 15096 hardcode_libdir_separator_CXX=: 15097 15098 # Commands to make compiler produce verbose output that lists 15099 # what "hidden" libraries, object files and flags are used when 15100 # linking a shared library. 15101 # 15102 # There doesn't appear to be a way to prevent this compiler from 15103 # explicitly linking system object files so we need to strip them 15104 # from the output so that they don't get included in the library 15105 # dependencies. 15106 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15107 ;; 15108 *) 15109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15111 case $host in 15112 osf3*) 15113 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15114 ;; 15115 *) 15116 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15117 ;; 15118 esac 15119 15120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15121 hardcode_libdir_separator_CXX=: 15122 15123 # Commands to make compiler produce verbose output that lists 15124 # what "hidden" libraries, object files and flags are used when 15125 # linking a shared library. 15126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15127 15128 else 15129 # FIXME: insert proper C++ library support 15130 ld_shlibs_CXX=no 15131 fi 15132 ;; 15133 esac 15134 ;; 15135 15136 psos*) 15137 # FIXME: insert proper C++ library support 15138 ld_shlibs_CXX=no 15139 ;; 15140 15141 sunos4*) 15142 case $cc_basename in 15143 CC*) 15144 # Sun C++ 4.x 15145 # FIXME: insert proper C++ library support 15146 ld_shlibs_CXX=no 15147 ;; 15148 lcc*) 15149 # Lucid 15150 # FIXME: insert proper C++ library support 15151 ld_shlibs_CXX=no 15152 ;; 15153 *) 15154 # FIXME: insert proper C++ library support 15155 ld_shlibs_CXX=no 15156 ;; 15157 esac 15158 ;; 15159 15160 solaris*) 15161 case $cc_basename in 15162 CC* | sunCC*) 15163 # Sun C++ 4.2, 5.x and Centerline C++ 15164 archive_cmds_need_lc_CXX=yes 15165 no_undefined_flag_CXX=' -zdefs' 15166 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15167 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15168 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15169 15170 hardcode_libdir_flag_spec_CXX='-R$libdir' 15171 hardcode_shlibpath_var_CXX=no 15172 case $host_os in 15173 solaris2.[0-5] | solaris2.[0-5].*) ;; 15174 *) 15175 # The compiler driver will combine and reorder linker options, 15176 # but understands `-z linker_flag'. 15177 # Supported since Solaris 2.6 (maybe 2.5.1?) 15178 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15179 ;; 15180 esac 15181 link_all_deplibs_CXX=yes 15182 15183 output_verbose_link_cmd='func_echo_all' 15184 15185 # Archives containing C++ object files must be created using 15186 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15187 # necessary to make sure instantiated templates are included 15188 # in the archive. 15189 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15190 ;; 15191 gcx*) 15192 # Green Hills C++ Compiler 15193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15194 15195 # The C++ compiler must be used to create the archive. 15196 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15197 ;; 15198 *) 15199 # GNU C++ compiler with Solaris linker 15200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15201 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15202 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15203 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15204 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15205 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15206 15207 # Commands to make compiler produce verbose output that lists 15208 # what "hidden" libraries, object files and flags are used when 15209 # linking a shared library. 15210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15211 else 15212 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15213 # platform. 15214 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15216 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15217 15218 # Commands to make compiler produce verbose output that lists 15219 # what "hidden" libraries, object files and flags are used when 15220 # linking a shared library. 15221 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15222 fi 15223 15224 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15225 case $host_os in 15226 solaris2.[0-5] | solaris2.[0-5].*) ;; 15227 *) 15228 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15229 ;; 15230 esac 15231 fi 15232 ;; 15233 esac 15234 ;; 15235 15236 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15237 no_undefined_flag_CXX='${wl}-z,text' 15238 archive_cmds_need_lc_CXX=no 15239 hardcode_shlibpath_var_CXX=no 15240 runpath_var='LD_RUN_PATH' 15241 15242 case $cc_basename in 15243 CC*) 15244 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15245 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15246 ;; 15247 *) 15248 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15249 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15250 ;; 15251 esac 15252 ;; 15253 15254 sysv5* | sco3.2v5* | sco5v6*) 15255 # Note: We can NOT use -z defs as we might desire, because we do not 15256 # link with -lc, and that would cause any symbols used from libc to 15257 # always be unresolved, which means just about no library would 15258 # ever link correctly. If we're not using GNU ld we use -z text 15259 # though, which does catch some bad symbols but isn't as heavy-handed 15260 # as -z defs. 15261 no_undefined_flag_CXX='${wl}-z,text' 15262 allow_undefined_flag_CXX='${wl}-z,nodefs' 15263 archive_cmds_need_lc_CXX=no 15264 hardcode_shlibpath_var_CXX=no 15265 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 15266 hardcode_libdir_separator_CXX=':' 15267 link_all_deplibs_CXX=yes 15268 export_dynamic_flag_spec_CXX='${wl}-Bexport' 15269 runpath_var='LD_RUN_PATH' 15270 15271 case $cc_basename in 15272 CC*) 15273 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15275 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15276 '"$old_archive_cmds_CXX" 15277 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15278 '"$reload_cmds_CXX" 15279 ;; 15280 *) 15281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15283 ;; 15284 esac 15285 ;; 15286 15287 tandem*) 15288 case $cc_basename in 15289 NCC*) 15290 # NonStop-UX NCC 3.20 15291 # FIXME: insert proper C++ library support 15292 ld_shlibs_CXX=no 15293 ;; 15294 *) 15295 # FIXME: insert proper C++ library support 15296 ld_shlibs_CXX=no 15297 ;; 15298 esac 15299 ;; 15300 15301 vxworks*) 15302 # FIXME: insert proper C++ library support 15303 ld_shlibs_CXX=no 15304 ;; 15305 15306 *) 15307 # FIXME: insert proper C++ library support 15308 ld_shlibs_CXX=no 15309 ;; 15310 esac 15311 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15313$as_echo "$ld_shlibs_CXX" >&6; } 15314 test "$ld_shlibs_CXX" = no && can_build_shared=no 15315 15316 GCC_CXX="$GXX" 15317 LD_CXX="$LD" 15318 15319 ## CAVEAT EMPTOR: 15320 ## There is no encapsulation within the following macros, do not change 15321 ## the running order or otherwise move them around unless you know exactly 15322 ## what you are doing... 15323 # Dependencies to place before and after the object being linked: 15324predep_objects_CXX= 15325postdep_objects_CXX= 15326predeps_CXX= 15327postdeps_CXX= 15328compiler_lib_search_path_CXX= 15329 15330cat > conftest.$ac_ext <<_LT_EOF 15331class Foo 15332{ 15333public: 15334 Foo (void) { a = 0; } 15335private: 15336 int a; 15337}; 15338_LT_EOF 15339 15340 15341_lt_libdeps_save_CFLAGS=$CFLAGS 15342case "$CC $CFLAGS " in #( 15343*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15344*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15345*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15346esac 15347 15348if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15349 (eval $ac_compile) 2>&5 15350 ac_status=$? 15351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15352 test $ac_status = 0; }; then 15353 # Parse the compiler output and extract the necessary 15354 # objects, libraries and library flags. 15355 15356 # Sentinel used to keep track of whether or not we are before 15357 # the conftest object file. 15358 pre_test_object_deps_done=no 15359 15360 for p in `eval "$output_verbose_link_cmd"`; do 15361 case ${prev}${p} in 15362 15363 -L* | -R* | -l*) 15364 # Some compilers place space between "-{L,R}" and the path. 15365 # Remove the space. 15366 if test $p = "-L" || 15367 test $p = "-R"; then 15368 prev=$p 15369 continue 15370 fi 15371 15372 # Expand the sysroot to ease extracting the directories later. 15373 if test -z "$prev"; then 15374 case $p in 15375 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15376 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15377 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15378 esac 15379 fi 15380 case $p in 15381 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15382 esac 15383 if test "$pre_test_object_deps_done" = no; then 15384 case ${prev} in 15385 -L | -R) 15386 # Internal compiler library paths should come after those 15387 # provided the user. The postdeps already come after the 15388 # user supplied libs so there is no need to process them. 15389 if test -z "$compiler_lib_search_path_CXX"; then 15390 compiler_lib_search_path_CXX="${prev}${p}" 15391 else 15392 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15393 fi 15394 ;; 15395 # The "-l" case would never come before the object being 15396 # linked, so don't bother handling this case. 15397 esac 15398 else 15399 if test -z "$postdeps_CXX"; then 15400 postdeps_CXX="${prev}${p}" 15401 else 15402 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15403 fi 15404 fi 15405 prev= 15406 ;; 15407 15408 *.lto.$objext) ;; # Ignore GCC LTO objects 15409 *.$objext) 15410 # This assumes that the test object file only shows up 15411 # once in the compiler output. 15412 if test "$p" = "conftest.$objext"; then 15413 pre_test_object_deps_done=yes 15414 continue 15415 fi 15416 15417 if test "$pre_test_object_deps_done" = no; then 15418 if test -z "$predep_objects_CXX"; then 15419 predep_objects_CXX="$p" 15420 else 15421 predep_objects_CXX="$predep_objects_CXX $p" 15422 fi 15423 else 15424 if test -z "$postdep_objects_CXX"; then 15425 postdep_objects_CXX="$p" 15426 else 15427 postdep_objects_CXX="$postdep_objects_CXX $p" 15428 fi 15429 fi 15430 ;; 15431 15432 *) ;; # Ignore the rest. 15433 15434 esac 15435 done 15436 15437 # Clean up. 15438 rm -f a.out a.exe 15439else 15440 echo "libtool.m4: error: problem compiling CXX test program" 15441fi 15442 15443$RM -f confest.$objext 15444CFLAGS=$_lt_libdeps_save_CFLAGS 15445 15446# PORTME: override above test on systems where it is broken 15447case $host_os in 15448interix[3-9]*) 15449 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15450 # hack all around it, let's just trust "g++" to DTRT. 15451 predep_objects_CXX= 15452 postdep_objects_CXX= 15453 postdeps_CXX= 15454 ;; 15455 15456linux*) 15457 case `$CC -V 2>&1 | sed 5q` in 15458 *Sun\ C*) 15459 # Sun C++ 5.9 15460 15461 # The more standards-conforming stlport4 library is 15462 # incompatible with the Cstd library. Avoid specifying 15463 # it if it's in CXXFLAGS. Ignore libCrun as 15464 # -library=stlport4 depends on it. 15465 case " $CXX $CXXFLAGS " in 15466 *" -library=stlport4 "*) 15467 solaris_use_stlport4=yes 15468 ;; 15469 esac 15470 15471 if test "$solaris_use_stlport4" != yes; then 15472 postdeps_CXX='-library=Cstd -library=Crun' 15473 fi 15474 ;; 15475 esac 15476 ;; 15477 15478solaris*) 15479 case $cc_basename in 15480 CC* | sunCC*) 15481 # The more standards-conforming stlport4 library is 15482 # incompatible with the Cstd library. Avoid specifying 15483 # it if it's in CXXFLAGS. Ignore libCrun as 15484 # -library=stlport4 depends on it. 15485 case " $CXX $CXXFLAGS " in 15486 *" -library=stlport4 "*) 15487 solaris_use_stlport4=yes 15488 ;; 15489 esac 15490 15491 # Adding this requires a known-good setup of shared libraries for 15492 # Sun compiler versions before 5.6, else PIC objects from an old 15493 # archive will be linked into the output, leading to subtle bugs. 15494 if test "$solaris_use_stlport4" != yes; then 15495 postdeps_CXX='-library=Cstd -library=Crun' 15496 fi 15497 ;; 15498 esac 15499 ;; 15500esac 15501 15502 15503case " $postdeps_CXX " in 15504*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15505esac 15506 compiler_lib_search_dirs_CXX= 15507if test -n "${compiler_lib_search_path_CXX}"; then 15508 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15509fi 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 lt_prog_compiler_wl_CXX= 15542lt_prog_compiler_pic_CXX= 15543lt_prog_compiler_static_CXX= 15544 15545 15546 # C++ specific cases for pic, static, wl, etc. 15547 if test "$GXX" = yes; then 15548 lt_prog_compiler_wl_CXX='-Wl,' 15549 lt_prog_compiler_static_CXX='-static' 15550 15551 case $host_os in 15552 aix*) 15553 # All AIX code is PIC. 15554 if test "$host_cpu" = ia64; then 15555 # AIX 5 now supports IA64 processor 15556 lt_prog_compiler_static_CXX='-Bstatic' 15557 fi 15558 ;; 15559 15560 amigaos*) 15561 case $host_cpu in 15562 powerpc) 15563 # see comment about AmigaOS4 .so support 15564 lt_prog_compiler_pic_CXX='-fPIC' 15565 ;; 15566 m68k) 15567 # FIXME: we need at least 68020 code to build shared libraries, but 15568 # adding the `-m68020' flag to GCC prevents building anything better, 15569 # like `-m68040'. 15570 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15571 ;; 15572 esac 15573 ;; 15574 15575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15576 # PIC is the default for these OSes. 15577 ;; 15578 mingw* | cygwin* | os2* | pw32* | cegcc*) 15579 # This hack is so that the source file can tell whether it is being 15580 # built for inclusion in a dll (and should export symbols for example). 15581 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15582 # (--disable-auto-import) libraries 15583 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15584 ;; 15585 darwin* | rhapsody*) 15586 # PIC is the default on this platform 15587 # Common symbols not allowed in MH_DYLIB files 15588 lt_prog_compiler_pic_CXX='-fno-common' 15589 ;; 15590 *djgpp*) 15591 # DJGPP does not support shared libraries at all 15592 lt_prog_compiler_pic_CXX= 15593 ;; 15594 haiku*) 15595 # PIC is the default for Haiku. 15596 # The "-static" flag exists, but is broken. 15597 lt_prog_compiler_static_CXX= 15598 ;; 15599 interix[3-9]*) 15600 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15601 # Instead, we relocate shared libraries at runtime. 15602 ;; 15603 sysv4*MP*) 15604 if test -d /usr/nec; then 15605 lt_prog_compiler_pic_CXX=-Kconform_pic 15606 fi 15607 ;; 15608 hpux*) 15609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15611 # sets the default TLS model and affects inlining. 15612 case $host_cpu in 15613 hppa*64*) 15614 ;; 15615 *) 15616 lt_prog_compiler_pic_CXX='-fPIC' 15617 ;; 15618 esac 15619 ;; 15620 *qnx* | *nto*) 15621 # QNX uses GNU C++, but need to define -shared option too, otherwise 15622 # it will coredump. 15623 lt_prog_compiler_pic_CXX='-fPIC -shared' 15624 ;; 15625 *) 15626 lt_prog_compiler_pic_CXX='-fPIC' 15627 ;; 15628 esac 15629 else 15630 case $host_os in 15631 aix[4-9]*) 15632 # All AIX code is PIC. 15633 if test "$host_cpu" = ia64; then 15634 # AIX 5 now supports IA64 processor 15635 lt_prog_compiler_static_CXX='-Bstatic' 15636 else 15637 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15638 fi 15639 ;; 15640 chorus*) 15641 case $cc_basename in 15642 cxch68*) 15643 # Green Hills C++ Compiler 15644 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15645 ;; 15646 esac 15647 ;; 15648 mingw* | cygwin* | os2* | pw32* | cegcc*) 15649 # This hack is so that the source file can tell whether it is being 15650 # built for inclusion in a dll (and should export symbols for example). 15651 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15652 ;; 15653 dgux*) 15654 case $cc_basename in 15655 ec++*) 15656 lt_prog_compiler_pic_CXX='-KPIC' 15657 ;; 15658 ghcx*) 15659 # Green Hills C++ Compiler 15660 lt_prog_compiler_pic_CXX='-pic' 15661 ;; 15662 *) 15663 ;; 15664 esac 15665 ;; 15666 freebsd* | dragonfly*) 15667 # FreeBSD uses GNU C++ 15668 ;; 15669 hpux9* | hpux10* | hpux11*) 15670 case $cc_basename in 15671 CC*) 15672 lt_prog_compiler_wl_CXX='-Wl,' 15673 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15674 if test "$host_cpu" != ia64; then 15675 lt_prog_compiler_pic_CXX='+Z' 15676 fi 15677 ;; 15678 aCC*) 15679 lt_prog_compiler_wl_CXX='-Wl,' 15680 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15681 case $host_cpu in 15682 hppa*64*|ia64*) 15683 # +Z the default 15684 ;; 15685 *) 15686 lt_prog_compiler_pic_CXX='+Z' 15687 ;; 15688 esac 15689 ;; 15690 *) 15691 ;; 15692 esac 15693 ;; 15694 interix*) 15695 # This is c89, which is MS Visual C++ (no shared libs) 15696 # Anyone wants to do a port? 15697 ;; 15698 irix5* | irix6* | nonstopux*) 15699 case $cc_basename in 15700 CC*) 15701 lt_prog_compiler_wl_CXX='-Wl,' 15702 lt_prog_compiler_static_CXX='-non_shared' 15703 # CC pic flag -KPIC is the default. 15704 ;; 15705 *) 15706 ;; 15707 esac 15708 ;; 15709 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15710 case $cc_basename in 15711 KCC*) 15712 # KAI C++ Compiler 15713 lt_prog_compiler_wl_CXX='--backend -Wl,' 15714 lt_prog_compiler_pic_CXX='-fPIC' 15715 ;; 15716 ecpc* ) 15717 # old Intel C++ for x86_64 which still supported -KPIC. 15718 lt_prog_compiler_wl_CXX='-Wl,' 15719 lt_prog_compiler_pic_CXX='-KPIC' 15720 lt_prog_compiler_static_CXX='-static' 15721 ;; 15722 icpc* ) 15723 # Intel C++, used to be incompatible with GCC. 15724 # ICC 10 doesn't accept -KPIC any more. 15725 lt_prog_compiler_wl_CXX='-Wl,' 15726 lt_prog_compiler_pic_CXX='-fPIC' 15727 lt_prog_compiler_static_CXX='-static' 15728 ;; 15729 pgCC* | pgcpp*) 15730 # Portland Group C++ compiler 15731 lt_prog_compiler_wl_CXX='-Wl,' 15732 lt_prog_compiler_pic_CXX='-fpic' 15733 lt_prog_compiler_static_CXX='-Bstatic' 15734 ;; 15735 cxx*) 15736 # Compaq C++ 15737 # Make sure the PIC flag is empty. It appears that all Alpha 15738 # Linux and Compaq Tru64 Unix objects are PIC. 15739 lt_prog_compiler_pic_CXX= 15740 lt_prog_compiler_static_CXX='-non_shared' 15741 ;; 15742 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15743 # IBM XL 8.0, 9.0 on PPC and BlueGene 15744 lt_prog_compiler_wl_CXX='-Wl,' 15745 lt_prog_compiler_pic_CXX='-qpic' 15746 lt_prog_compiler_static_CXX='-qstaticlink' 15747 ;; 15748 *) 15749 case `$CC -V 2>&1 | sed 5q` in 15750 *Sun\ C*) 15751 # Sun C++ 5.9 15752 lt_prog_compiler_pic_CXX='-KPIC' 15753 lt_prog_compiler_static_CXX='-Bstatic' 15754 lt_prog_compiler_wl_CXX='-Qoption ld ' 15755 ;; 15756 esac 15757 ;; 15758 esac 15759 ;; 15760 lynxos*) 15761 ;; 15762 m88k*) 15763 ;; 15764 mvs*) 15765 case $cc_basename in 15766 cxx*) 15767 lt_prog_compiler_pic_CXX='-W c,exportall' 15768 ;; 15769 *) 15770 ;; 15771 esac 15772 ;; 15773 netbsd*) 15774 ;; 15775 *qnx* | *nto*) 15776 # QNX uses GNU C++, but need to define -shared option too, otherwise 15777 # it will coredump. 15778 lt_prog_compiler_pic_CXX='-fPIC -shared' 15779 ;; 15780 osf3* | osf4* | osf5*) 15781 case $cc_basename in 15782 KCC*) 15783 lt_prog_compiler_wl_CXX='--backend -Wl,' 15784 ;; 15785 RCC*) 15786 # Rational C++ 2.4.1 15787 lt_prog_compiler_pic_CXX='-pic' 15788 ;; 15789 cxx*) 15790 # Digital/Compaq C++ 15791 lt_prog_compiler_wl_CXX='-Wl,' 15792 # Make sure the PIC flag is empty. It appears that all Alpha 15793 # Linux and Compaq Tru64 Unix objects are PIC. 15794 lt_prog_compiler_pic_CXX= 15795 lt_prog_compiler_static_CXX='-non_shared' 15796 ;; 15797 *) 15798 ;; 15799 esac 15800 ;; 15801 psos*) 15802 ;; 15803 solaris*) 15804 case $cc_basename in 15805 CC* | sunCC*) 15806 # Sun C++ 4.2, 5.x and Centerline C++ 15807 lt_prog_compiler_pic_CXX='-KPIC' 15808 lt_prog_compiler_static_CXX='-Bstatic' 15809 lt_prog_compiler_wl_CXX='-Qoption ld ' 15810 ;; 15811 gcx*) 15812 # Green Hills C++ Compiler 15813 lt_prog_compiler_pic_CXX='-PIC' 15814 ;; 15815 *) 15816 ;; 15817 esac 15818 ;; 15819 sunos4*) 15820 case $cc_basename in 15821 CC*) 15822 # Sun C++ 4.x 15823 lt_prog_compiler_pic_CXX='-pic' 15824 lt_prog_compiler_static_CXX='-Bstatic' 15825 ;; 15826 lcc*) 15827 # Lucid 15828 lt_prog_compiler_pic_CXX='-pic' 15829 ;; 15830 *) 15831 ;; 15832 esac 15833 ;; 15834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15835 case $cc_basename in 15836 CC*) 15837 lt_prog_compiler_wl_CXX='-Wl,' 15838 lt_prog_compiler_pic_CXX='-KPIC' 15839 lt_prog_compiler_static_CXX='-Bstatic' 15840 ;; 15841 esac 15842 ;; 15843 tandem*) 15844 case $cc_basename in 15845 NCC*) 15846 # NonStop-UX NCC 3.20 15847 lt_prog_compiler_pic_CXX='-KPIC' 15848 ;; 15849 *) 15850 ;; 15851 esac 15852 ;; 15853 vxworks*) 15854 ;; 15855 *) 15856 lt_prog_compiler_can_build_shared_CXX=no 15857 ;; 15858 esac 15859 fi 15860 15861case $host_os in 15862 # For platforms which do not support PIC, -DPIC is meaningless: 15863 *djgpp*) 15864 lt_prog_compiler_pic_CXX= 15865 ;; 15866 *) 15867 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15868 ;; 15869esac 15870 15871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15872$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15873if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15874 $as_echo_n "(cached) " >&6 15875else 15876 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15877fi 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15879$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15880lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15881 15882# 15883# Check to make sure the PIC flag actually works. 15884# 15885if test -n "$lt_prog_compiler_pic_CXX"; then 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15887$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15888if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15889 $as_echo_n "(cached) " >&6 15890else 15891 lt_cv_prog_compiler_pic_works_CXX=no 15892 ac_outfile=conftest.$ac_objext 15893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15894 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15895 # Insert the option either (1) after the last *FLAGS variable, or 15896 # (2) before a word containing "conftest.", or (3) at the end. 15897 # Note that $ac_compile itself does not contain backslashes and begins 15898 # with a dollar sign (not a hyphen), so the echo should work correctly. 15899 # The option is referenced via a variable to avoid confusing sed. 15900 lt_compile=`echo "$ac_compile" | $SED \ 15901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15903 -e 's:$: $lt_compiler_flag:'` 15904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15905 (eval "$lt_compile" 2>conftest.err) 15906 ac_status=$? 15907 cat conftest.err >&5 15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15909 if (exit $ac_status) && test -s "$ac_outfile"; then 15910 # The compiler can only warn and ignore the option if not recognized 15911 # So say no if there are warnings other than the usual output. 15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15915 lt_cv_prog_compiler_pic_works_CXX=yes 15916 fi 15917 fi 15918 $RM conftest* 15919 15920fi 15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15922$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15923 15924if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15925 case $lt_prog_compiler_pic_CXX in 15926 "" | " "*) ;; 15927 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15928 esac 15929else 15930 lt_prog_compiler_pic_CXX= 15931 lt_prog_compiler_can_build_shared_CXX=no 15932fi 15933 15934fi 15935 15936 15937 15938 15939 15940# 15941# Check to make sure the static flag actually works. 15942# 15943wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15945$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15946if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15947 $as_echo_n "(cached) " >&6 15948else 15949 lt_cv_prog_compiler_static_works_CXX=no 15950 save_LDFLAGS="$LDFLAGS" 15951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15952 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15954 # The linker can only warn and ignore the option if not recognized 15955 # So say no if there are warnings 15956 if test -s conftest.err; then 15957 # Append any errors to the config.log. 15958 cat conftest.err 1>&5 15959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15961 if diff conftest.exp conftest.er2 >/dev/null; then 15962 lt_cv_prog_compiler_static_works_CXX=yes 15963 fi 15964 else 15965 lt_cv_prog_compiler_static_works_CXX=yes 15966 fi 15967 fi 15968 $RM -r conftest* 15969 LDFLAGS="$save_LDFLAGS" 15970 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15973$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15974 15975if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15976 : 15977else 15978 lt_prog_compiler_static_CXX= 15979fi 15980 15981 15982 15983 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15985$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15986if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 lt_cv_prog_compiler_c_o_CXX=no 15990 $RM -r conftest 2>/dev/null 15991 mkdir conftest 15992 cd conftest 15993 mkdir out 15994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15995 15996 lt_compiler_flag="-o out/conftest2.$ac_objext" 15997 # Insert the option either (1) after the last *FLAGS variable, or 15998 # (2) before a word containing "conftest.", or (3) at the end. 15999 # Note that $ac_compile itself does not contain backslashes and begins 16000 # with a dollar sign (not a hyphen), so the echo should work correctly. 16001 lt_compile=`echo "$ac_compile" | $SED \ 16002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16004 -e 's:$: $lt_compiler_flag:'` 16005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16006 (eval "$lt_compile" 2>out/conftest.err) 16007 ac_status=$? 16008 cat out/conftest.err >&5 16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16010 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16011 then 16012 # The compiler can only warn and ignore the option if not recognized 16013 # So say no if there are warnings 16014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16017 lt_cv_prog_compiler_c_o_CXX=yes 16018 fi 16019 fi 16020 chmod u+w . 2>&5 16021 $RM conftest* 16022 # SGI C++ compiler will create directory out/ii_files/ for 16023 # template instantiation 16024 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16025 $RM out/* && rmdir out 16026 cd .. 16027 $RM -r conftest 16028 $RM conftest* 16029 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16032$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16033 16034 16035 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16038if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16039 $as_echo_n "(cached) " >&6 16040else 16041 lt_cv_prog_compiler_c_o_CXX=no 16042 $RM -r conftest 2>/dev/null 16043 mkdir conftest 16044 cd conftest 16045 mkdir out 16046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16047 16048 lt_compiler_flag="-o out/conftest2.$ac_objext" 16049 # Insert the option either (1) after the last *FLAGS variable, or 16050 # (2) before a word containing "conftest.", or (3) at the end. 16051 # Note that $ac_compile itself does not contain backslashes and begins 16052 # with a dollar sign (not a hyphen), so the echo should work correctly. 16053 lt_compile=`echo "$ac_compile" | $SED \ 16054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16056 -e 's:$: $lt_compiler_flag:'` 16057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16058 (eval "$lt_compile" 2>out/conftest.err) 16059 ac_status=$? 16060 cat out/conftest.err >&5 16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16063 then 16064 # The compiler can only warn and ignore the option if not recognized 16065 # So say no if there are warnings 16066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16069 lt_cv_prog_compiler_c_o_CXX=yes 16070 fi 16071 fi 16072 chmod u+w . 2>&5 16073 $RM conftest* 16074 # SGI C++ compiler will create directory out/ii_files/ for 16075 # template instantiation 16076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16077 $RM out/* && rmdir out 16078 cd .. 16079 $RM -r conftest 16080 $RM conftest* 16081 16082fi 16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16084$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16085 16086 16087 16088 16089hard_links="nottested" 16090if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16091 # do not overwrite the value of need_locks provided by the user 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16093$as_echo_n "checking if we can lock with hard links... " >&6; } 16094 hard_links=yes 16095 $RM conftest* 16096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16097 touch conftest.a 16098 ln conftest.a conftest.b 2>&5 || hard_links=no 16099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16101$as_echo "$hard_links" >&6; } 16102 if test "$hard_links" = no; then 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16104$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16105 need_locks=warn 16106 fi 16107else 16108 need_locks=no 16109fi 16110 16111 16112 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16115 16116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16117 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16118 case $host_os in 16119 aix[4-9]*) 16120 # If we're using GNU nm, then we don't want the "-C" option. 16121 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16122 # Also, AIX nm treats weak defined symbols like other global defined 16123 # symbols, whereas GNU nm marks them as "W". 16124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16125 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16126 else 16127 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16128 fi 16129 ;; 16130 pw32*) 16131 export_symbols_cmds_CXX="$ltdll_cmds" 16132 ;; 16133 cygwin* | mingw* | cegcc*) 16134 case $cc_basename in 16135 cl*) 16136 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16137 ;; 16138 *) 16139 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16140 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16141 ;; 16142 esac 16143 ;; 16144 *) 16145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16146 ;; 16147 esac 16148 16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16150$as_echo "$ld_shlibs_CXX" >&6; } 16151test "$ld_shlibs_CXX" = no && can_build_shared=no 16152 16153with_gnu_ld_CXX=$with_gnu_ld 16154 16155 16156 16157 16158 16159 16160# 16161# Do we need to explicitly link libc? 16162# 16163case "x$archive_cmds_need_lc_CXX" in 16164x|xyes) 16165 # Assume -lc should be added 16166 archive_cmds_need_lc_CXX=yes 16167 16168 if test "$enable_shared" = yes && test "$GCC" = yes; then 16169 case $archive_cmds_CXX in 16170 *'~'*) 16171 # FIXME: we may have to deal with multi-command sequences. 16172 ;; 16173 '$CC '*) 16174 # Test whether the compiler implicitly links with -lc since on some 16175 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16176 # to ld, don't add -lc before -lgcc. 16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16179if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16180 $as_echo_n "(cached) " >&6 16181else 16182 $RM conftest* 16183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16184 16185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16186 (eval $ac_compile) 2>&5 16187 ac_status=$? 16188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16189 test $ac_status = 0; } 2>conftest.err; then 16190 soname=conftest 16191 lib=conftest 16192 libobjs=conftest.$ac_objext 16193 deplibs= 16194 wl=$lt_prog_compiler_wl_CXX 16195 pic_flag=$lt_prog_compiler_pic_CXX 16196 compiler_flags=-v 16197 linker_flags=-v 16198 verstring= 16199 output_objdir=. 16200 libname=conftest 16201 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16202 allow_undefined_flag_CXX= 16203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16204 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16205 ac_status=$? 16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16207 test $ac_status = 0; } 16208 then 16209 lt_cv_archive_cmds_need_lc_CXX=no 16210 else 16211 lt_cv_archive_cmds_need_lc_CXX=yes 16212 fi 16213 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16214 else 16215 cat conftest.err 1>&5 16216 fi 16217 $RM conftest* 16218 16219fi 16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16221$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16222 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16223 ;; 16224 esac 16225 fi 16226 ;; 16227esac 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16291$as_echo_n "checking dynamic linker characteristics... " >&6; } 16292 16293library_names_spec= 16294libname_spec='lib$name' 16295soname_spec= 16296shrext_cmds=".so" 16297postinstall_cmds= 16298postuninstall_cmds= 16299finish_cmds= 16300finish_eval= 16301shlibpath_var= 16302shlibpath_overrides_runpath=unknown 16303version_type=none 16304dynamic_linker="$host_os ld.so" 16305sys_lib_dlsearch_path_spec="/lib /usr/lib" 16306need_lib_prefix=unknown 16307hardcode_into_libs=no 16308 16309# when you set need_version to no, make sure it does not cause -set_version 16310# flags to be left without arguments 16311need_version=unknown 16312 16313case $host_os in 16314aix3*) 16315 version_type=linux # correct to gnu/linux during the next big refactor 16316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16317 shlibpath_var=LIBPATH 16318 16319 # AIX 3 has no versioning support, so we append a major version to the name. 16320 soname_spec='${libname}${release}${shared_ext}$major' 16321 ;; 16322 16323aix[4-9]*) 16324 version_type=linux # correct to gnu/linux during the next big refactor 16325 need_lib_prefix=no 16326 need_version=no 16327 hardcode_into_libs=yes 16328 if test "$host_cpu" = ia64; then 16329 # AIX 5 supports IA64 16330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16331 shlibpath_var=LD_LIBRARY_PATH 16332 else 16333 # With GCC up to 2.95.x, collect2 would create an import file 16334 # for dependence libraries. The import file would start with 16335 # the line `#! .'. This would cause the generated library to 16336 # depend on `.', always an invalid library. This was fixed in 16337 # development snapshots of GCC prior to 3.0. 16338 case $host_os in 16339 aix4 | aix4.[01] | aix4.[01].*) 16340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16341 echo ' yes ' 16342 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16343 : 16344 else 16345 can_build_shared=no 16346 fi 16347 ;; 16348 esac 16349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16350 # soname into executable. Probably we can add versioning support to 16351 # collect2, so additional links can be useful in future. 16352 if test "$aix_use_runtimelinking" = yes; then 16353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16354 # instead of lib<name>.a to let people know that these are not 16355 # typical AIX shared libraries. 16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16357 else 16358 # We preserve .a as extension for shared libraries through AIX4.2 16359 # and later when we are not doing run time linking. 16360 library_names_spec='${libname}${release}.a $libname.a' 16361 soname_spec='${libname}${release}${shared_ext}$major' 16362 fi 16363 shlibpath_var=LIBPATH 16364 fi 16365 ;; 16366 16367amigaos*) 16368 case $host_cpu in 16369 powerpc) 16370 # Since July 2007 AmigaOS4 officially supports .so libraries. 16371 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16373 ;; 16374 m68k) 16375 library_names_spec='$libname.ixlibrary $libname.a' 16376 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16377 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16378 ;; 16379 esac 16380 ;; 16381 16382beos*) 16383 library_names_spec='${libname}${shared_ext}' 16384 dynamic_linker="$host_os ld.so" 16385 shlibpath_var=LIBRARY_PATH 16386 ;; 16387 16388bsdi[45]*) 16389 version_type=linux # correct to gnu/linux during the next big refactor 16390 need_version=no 16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16392 soname_spec='${libname}${release}${shared_ext}$major' 16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16394 shlibpath_var=LD_LIBRARY_PATH 16395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16397 # the default ld.so.conf also contains /usr/contrib/lib and 16398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16399 # libtool to hard-code these into programs 16400 ;; 16401 16402cygwin* | mingw* | pw32* | cegcc*) 16403 version_type=windows 16404 shrext_cmds=".dll" 16405 need_version=no 16406 need_lib_prefix=no 16407 16408 case $GCC,$cc_basename in 16409 yes,*) 16410 # gcc 16411 library_names_spec='$libname.dll.a' 16412 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16413 postinstall_cmds='base_file=`basename \${file}`~ 16414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16415 dldir=$destdir/`dirname \$dlpath`~ 16416 test -d \$dldir || mkdir -p \$dldir~ 16417 $install_prog $dir/$dlname \$dldir/$dlname~ 16418 chmod a+x \$dldir/$dlname~ 16419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16421 fi' 16422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16423 dlpath=$dir/\$dldll~ 16424 $RM \$dlpath' 16425 shlibpath_overrides_runpath=yes 16426 16427 case $host_os in 16428 cygwin*) 16429 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16431 16432 ;; 16433 mingw* | cegcc*) 16434 # MinGW DLLs use traditional 'lib' prefix 16435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16436 ;; 16437 pw32*) 16438 # pw32 DLLs use 'pw' prefix rather than 'lib' 16439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16440 ;; 16441 esac 16442 dynamic_linker='Win32 ld.exe' 16443 ;; 16444 16445 *,cl*) 16446 # Native MSVC 16447 libname_spec='$name' 16448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16449 library_names_spec='${libname}.dll.lib' 16450 16451 case $build_os in 16452 mingw*) 16453 sys_lib_search_path_spec= 16454 lt_save_ifs=$IFS 16455 IFS=';' 16456 for lt_path in $LIB 16457 do 16458 IFS=$lt_save_ifs 16459 # Let DOS variable expansion print the short 8.3 style file name. 16460 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16461 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16462 done 16463 IFS=$lt_save_ifs 16464 # Convert to MSYS style. 16465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16466 ;; 16467 cygwin*) 16468 # Convert to unix form, then to dos form, then back to unix form 16469 # but this time dos style (no spaces!) so that the unix form looks 16470 # like /cygdrive/c/PROGRA~1:/cygdr... 16471 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16472 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16473 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16474 ;; 16475 *) 16476 sys_lib_search_path_spec="$LIB" 16477 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16478 # It is most probably a Windows format PATH. 16479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16480 else 16481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16482 fi 16483 # FIXME: find the short name or the path components, as spaces are 16484 # common. (e.g. "Program Files" -> "PROGRA~1") 16485 ;; 16486 esac 16487 16488 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16489 postinstall_cmds='base_file=`basename \${file}`~ 16490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16491 dldir=$destdir/`dirname \$dlpath`~ 16492 test -d \$dldir || mkdir -p \$dldir~ 16493 $install_prog $dir/$dlname \$dldir/$dlname' 16494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16495 dlpath=$dir/\$dldll~ 16496 $RM \$dlpath' 16497 shlibpath_overrides_runpath=yes 16498 dynamic_linker='Win32 link.exe' 16499 ;; 16500 16501 *) 16502 # Assume MSVC wrapper 16503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16504 dynamic_linker='Win32 ld.exe' 16505 ;; 16506 esac 16507 # FIXME: first we should search . and the directory the executable is in 16508 shlibpath_var=PATH 16509 ;; 16510 16511darwin* | rhapsody*) 16512 dynamic_linker="$host_os dyld" 16513 version_type=darwin 16514 need_lib_prefix=no 16515 need_version=no 16516 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16517 soname_spec='${libname}${release}${major}$shared_ext' 16518 shlibpath_overrides_runpath=yes 16519 shlibpath_var=DYLD_LIBRARY_PATH 16520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16521 16522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16523 ;; 16524 16525dgux*) 16526 version_type=linux # correct to gnu/linux during the next big refactor 16527 need_lib_prefix=no 16528 need_version=no 16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16530 soname_spec='${libname}${release}${shared_ext}$major' 16531 shlibpath_var=LD_LIBRARY_PATH 16532 ;; 16533 16534freebsd* | dragonfly*) 16535 # DragonFly does not have aout. When/if they implement a new 16536 # versioning mechanism, adjust this. 16537 if test -x /usr/bin/objformat; then 16538 objformat=`/usr/bin/objformat` 16539 else 16540 case $host_os in 16541 freebsd[23].*) objformat=aout ;; 16542 *) objformat=elf ;; 16543 esac 16544 fi 16545 version_type=freebsd-$objformat 16546 case $version_type in 16547 freebsd-elf*) 16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16549 need_version=no 16550 need_lib_prefix=no 16551 ;; 16552 freebsd-*) 16553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16554 need_version=yes 16555 ;; 16556 esac 16557 shlibpath_var=LD_LIBRARY_PATH 16558 case $host_os in 16559 freebsd2.*) 16560 shlibpath_overrides_runpath=yes 16561 ;; 16562 freebsd3.[01]* | freebsdelf3.[01]*) 16563 shlibpath_overrides_runpath=yes 16564 hardcode_into_libs=yes 16565 ;; 16566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16568 shlibpath_overrides_runpath=no 16569 hardcode_into_libs=yes 16570 ;; 16571 *) # from 4.6 on, and DragonFly 16572 shlibpath_overrides_runpath=yes 16573 hardcode_into_libs=yes 16574 ;; 16575 esac 16576 ;; 16577 16578gnu*) 16579 version_type=linux # correct to gnu/linux during the next big refactor 16580 need_lib_prefix=no 16581 need_version=no 16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16583 soname_spec='${libname}${release}${shared_ext}$major' 16584 shlibpath_var=LD_LIBRARY_PATH 16585 shlibpath_overrides_runpath=no 16586 hardcode_into_libs=yes 16587 ;; 16588 16589haiku*) 16590 version_type=linux # correct to gnu/linux during the next big refactor 16591 need_lib_prefix=no 16592 need_version=no 16593 dynamic_linker="$host_os runtime_loader" 16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16595 soname_spec='${libname}${release}${shared_ext}$major' 16596 shlibpath_var=LIBRARY_PATH 16597 shlibpath_overrides_runpath=yes 16598 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16599 hardcode_into_libs=yes 16600 ;; 16601 16602hpux9* | hpux10* | hpux11*) 16603 # Give a soname corresponding to the major version so that dld.sl refuses to 16604 # link against other versions. 16605 version_type=sunos 16606 need_lib_prefix=no 16607 need_version=no 16608 case $host_cpu in 16609 ia64*) 16610 shrext_cmds='.so' 16611 hardcode_into_libs=yes 16612 dynamic_linker="$host_os dld.so" 16613 shlibpath_var=LD_LIBRARY_PATH 16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16616 soname_spec='${libname}${release}${shared_ext}$major' 16617 if test "X$HPUX_IA64_MODE" = X32; then 16618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16619 else 16620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16621 fi 16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16623 ;; 16624 hppa*64*) 16625 shrext_cmds='.sl' 16626 hardcode_into_libs=yes 16627 dynamic_linker="$host_os dld.sl" 16628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16631 soname_spec='${libname}${release}${shared_ext}$major' 16632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16634 ;; 16635 *) 16636 shrext_cmds='.sl' 16637 dynamic_linker="$host_os dld.sl" 16638 shlibpath_var=SHLIB_PATH 16639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16641 soname_spec='${libname}${release}${shared_ext}$major' 16642 ;; 16643 esac 16644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16645 postinstall_cmds='chmod 555 $lib' 16646 # or fails outright, so override atomically: 16647 install_override_mode=555 16648 ;; 16649 16650interix[3-9]*) 16651 version_type=linux # correct to gnu/linux during the next big refactor 16652 need_lib_prefix=no 16653 need_version=no 16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16655 soname_spec='${libname}${release}${shared_ext}$major' 16656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16657 shlibpath_var=LD_LIBRARY_PATH 16658 shlibpath_overrides_runpath=no 16659 hardcode_into_libs=yes 16660 ;; 16661 16662irix5* | irix6* | nonstopux*) 16663 case $host_os in 16664 nonstopux*) version_type=nonstopux ;; 16665 *) 16666 if test "$lt_cv_prog_gnu_ld" = yes; then 16667 version_type=linux # correct to gnu/linux during the next big refactor 16668 else 16669 version_type=irix 16670 fi ;; 16671 esac 16672 need_lib_prefix=no 16673 need_version=no 16674 soname_spec='${libname}${release}${shared_ext}$major' 16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16676 case $host_os in 16677 irix5* | nonstopux*) 16678 libsuff= shlibsuff= 16679 ;; 16680 *) 16681 case $LD in # libtool.m4 will add one of these switches to LD 16682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16683 libsuff= shlibsuff= libmagic=32-bit;; 16684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16685 libsuff=32 shlibsuff=N32 libmagic=N32;; 16686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16687 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16688 *) libsuff= shlibsuff= libmagic=never-match;; 16689 esac 16690 ;; 16691 esac 16692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16693 shlibpath_overrides_runpath=no 16694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16696 hardcode_into_libs=yes 16697 ;; 16698 16699# No shared lib support for Linux oldld, aout, or coff. 16700linux*oldld* | linux*aout* | linux*coff*) 16701 dynamic_linker=no 16702 ;; 16703 16704# This must be glibc/ELF. 16705linux* | k*bsd*-gnu | kopensolaris*-gnu) 16706 version_type=linux # correct to gnu/linux during the next big refactor 16707 need_lib_prefix=no 16708 need_version=no 16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16710 soname_spec='${libname}${release}${shared_ext}$major' 16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16712 shlibpath_var=LD_LIBRARY_PATH 16713 shlibpath_overrides_runpath=no 16714 16715 # Some binutils ld are patched to set DT_RUNPATH 16716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16717 $as_echo_n "(cached) " >&6 16718else 16719 lt_cv_shlibpath_overrides_runpath=no 16720 save_LDFLAGS=$LDFLAGS 16721 save_libdir=$libdir 16722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726 16727int 16728main () 16729{ 16730 16731 ; 16732 return 0; 16733} 16734_ACEOF 16735if ac_fn_cxx_try_link "$LINENO"; then : 16736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16737 lt_cv_shlibpath_overrides_runpath=yes 16738fi 16739fi 16740rm -f core conftest.err conftest.$ac_objext \ 16741 conftest$ac_exeext conftest.$ac_ext 16742 LDFLAGS=$save_LDFLAGS 16743 libdir=$save_libdir 16744 16745fi 16746 16747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16748 16749 # This implies no fast_install, which is unacceptable. 16750 # Some rework will be needed to allow for fast_install 16751 # before this can be enabled. 16752 hardcode_into_libs=yes 16753 16754 # Add ABI-specific directories to the system library path. 16755 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16756 16757 # Append ld.so.conf contents to the search path 16758 if test -f /etc/ld.so.conf; then 16759 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' ' '` 16760 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16761 16762 fi 16763 16764 # We used to test for /lib/ld.so.1 and disable shared libraries on 16765 # powerpc, because MkLinux only supported shared libraries with the 16766 # GNU dynamic linker. Since this was broken with cross compilers, 16767 # most powerpc-linux boxes support dynamic linking these days and 16768 # people can always --disable-shared, the test was removed, and we 16769 # assume the GNU/Linux dynamic linker is in use. 16770 dynamic_linker='GNU/Linux ld.so' 16771 ;; 16772 16773netbsd*) 16774 version_type=sunos 16775 need_lib_prefix=no 16776 need_version=no 16777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16780 dynamic_linker='NetBSD (a.out) ld.so' 16781 else 16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16783 soname_spec='${libname}${release}${shared_ext}$major' 16784 dynamic_linker='NetBSD ld.elf_so' 16785 fi 16786 shlibpath_var=LD_LIBRARY_PATH 16787 shlibpath_overrides_runpath=yes 16788 hardcode_into_libs=yes 16789 ;; 16790 16791newsos6) 16792 version_type=linux # correct to gnu/linux during the next big refactor 16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16794 shlibpath_var=LD_LIBRARY_PATH 16795 shlibpath_overrides_runpath=yes 16796 ;; 16797 16798*nto* | *qnx*) 16799 version_type=qnx 16800 need_lib_prefix=no 16801 need_version=no 16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16803 soname_spec='${libname}${release}${shared_ext}$major' 16804 shlibpath_var=LD_LIBRARY_PATH 16805 shlibpath_overrides_runpath=no 16806 hardcode_into_libs=yes 16807 dynamic_linker='ldqnx.so' 16808 ;; 16809 16810openbsd*) 16811 version_type=sunos 16812 sys_lib_dlsearch_path_spec="/usr/lib" 16813 need_lib_prefix=no 16814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16815 case $host_os in 16816 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16817 *) need_version=no ;; 16818 esac 16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16821 shlibpath_var=LD_LIBRARY_PATH 16822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16823 case $host_os in 16824 openbsd2.[89] | openbsd2.[89].*) 16825 shlibpath_overrides_runpath=no 16826 ;; 16827 *) 16828 shlibpath_overrides_runpath=yes 16829 ;; 16830 esac 16831 else 16832 shlibpath_overrides_runpath=yes 16833 fi 16834 ;; 16835 16836os2*) 16837 libname_spec='$name' 16838 shrext_cmds=".dll" 16839 need_lib_prefix=no 16840 library_names_spec='$libname${shared_ext} $libname.a' 16841 dynamic_linker='OS/2 ld.exe' 16842 shlibpath_var=LIBPATH 16843 ;; 16844 16845osf3* | osf4* | osf5*) 16846 version_type=osf 16847 need_lib_prefix=no 16848 need_version=no 16849 soname_spec='${libname}${release}${shared_ext}$major' 16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16851 shlibpath_var=LD_LIBRARY_PATH 16852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16854 ;; 16855 16856rdos*) 16857 dynamic_linker=no 16858 ;; 16859 16860solaris*) 16861 version_type=linux # correct to gnu/linux during the next big refactor 16862 need_lib_prefix=no 16863 need_version=no 16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16865 soname_spec='${libname}${release}${shared_ext}$major' 16866 shlibpath_var=LD_LIBRARY_PATH 16867 shlibpath_overrides_runpath=yes 16868 hardcode_into_libs=yes 16869 # ldd complains unless libraries are executable 16870 postinstall_cmds='chmod +x $lib' 16871 ;; 16872 16873sunos4*) 16874 version_type=sunos 16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16877 shlibpath_var=LD_LIBRARY_PATH 16878 shlibpath_overrides_runpath=yes 16879 if test "$with_gnu_ld" = yes; then 16880 need_lib_prefix=no 16881 fi 16882 need_version=yes 16883 ;; 16884 16885sysv4 | sysv4.3*) 16886 version_type=linux # correct to gnu/linux during the next big refactor 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16888 soname_spec='${libname}${release}${shared_ext}$major' 16889 shlibpath_var=LD_LIBRARY_PATH 16890 case $host_vendor in 16891 sni) 16892 shlibpath_overrides_runpath=no 16893 need_lib_prefix=no 16894 runpath_var=LD_RUN_PATH 16895 ;; 16896 siemens) 16897 need_lib_prefix=no 16898 ;; 16899 motorola) 16900 need_lib_prefix=no 16901 need_version=no 16902 shlibpath_overrides_runpath=no 16903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16904 ;; 16905 esac 16906 ;; 16907 16908sysv4*MP*) 16909 if test -d /usr/nec ;then 16910 version_type=linux # correct to gnu/linux during the next big refactor 16911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16912 soname_spec='$libname${shared_ext}.$major' 16913 shlibpath_var=LD_LIBRARY_PATH 16914 fi 16915 ;; 16916 16917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16918 version_type=freebsd-elf 16919 need_lib_prefix=no 16920 need_version=no 16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16922 soname_spec='${libname}${release}${shared_ext}$major' 16923 shlibpath_var=LD_LIBRARY_PATH 16924 shlibpath_overrides_runpath=yes 16925 hardcode_into_libs=yes 16926 if test "$with_gnu_ld" = yes; then 16927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16928 else 16929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16930 case $host_os in 16931 sco3.2v5*) 16932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16933 ;; 16934 esac 16935 fi 16936 sys_lib_dlsearch_path_spec='/usr/lib' 16937 ;; 16938 16939tpf*) 16940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16941 version_type=linux # correct to gnu/linux during the next big refactor 16942 need_lib_prefix=no 16943 need_version=no 16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16945 shlibpath_var=LD_LIBRARY_PATH 16946 shlibpath_overrides_runpath=no 16947 hardcode_into_libs=yes 16948 ;; 16949 16950uts4*) 16951 version_type=linux # correct to gnu/linux during the next big refactor 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16953 soname_spec='${libname}${release}${shared_ext}$major' 16954 shlibpath_var=LD_LIBRARY_PATH 16955 ;; 16956 16957*) 16958 dynamic_linker=no 16959 ;; 16960esac 16961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16962$as_echo "$dynamic_linker" >&6; } 16963test "$dynamic_linker" = no && can_build_shared=no 16964 16965variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16966if test "$GCC" = yes; then 16967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16968fi 16969 16970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16971 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16972fi 16973if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16974 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16975fi 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17015$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17016hardcode_action_CXX= 17017if test -n "$hardcode_libdir_flag_spec_CXX" || 17018 test -n "$runpath_var_CXX" || 17019 test "X$hardcode_automatic_CXX" = "Xyes" ; then 17020 17021 # We can hardcode non-existent directories. 17022 if test "$hardcode_direct_CXX" != no && 17023 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17024 # have to relink, otherwise we might link with an installed library 17025 # when we should be linking with a yet-to-be-installed one 17026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 17027 test "$hardcode_minus_L_CXX" != no; then 17028 # Linking always hardcodes the temporary library directory. 17029 hardcode_action_CXX=relink 17030 else 17031 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17032 hardcode_action_CXX=immediate 17033 fi 17034else 17035 # We cannot hardcode anything, or else we can only hardcode existing 17036 # directories. 17037 hardcode_action_CXX=unsupported 17038fi 17039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17040$as_echo "$hardcode_action_CXX" >&6; } 17041 17042if test "$hardcode_action_CXX" = relink || 17043 test "$inherit_rpath_CXX" = yes; then 17044 # Fast installation is not supported 17045 enable_fast_install=no 17046elif test "$shlibpath_overrides_runpath" = yes || 17047 test "$enable_shared" = no; then 17048 # Fast installation is not necessary 17049 enable_fast_install=needless 17050fi 17051 17052 17053 17054 17055 17056 17057 17058 fi # test -n "$compiler" 17059 17060 CC=$lt_save_CC 17061 CFLAGS=$lt_save_CFLAGS 17062 LDCXX=$LD 17063 LD=$lt_save_LD 17064 GCC=$lt_save_GCC 17065 with_gnu_ld=$lt_save_with_gnu_ld 17066 lt_cv_path_LDCXX=$lt_cv_path_LD 17067 lt_cv_path_LD=$lt_save_path_LD 17068 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17069 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17070fi # test "$_lt_caught_CXX_error" != yes 17071 17072ac_ext=c 17073ac_cpp='$CPP $CPPFLAGS' 17074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17076ac_compiler_gnu=$ac_cv_c_compiler_gnu 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 ac_config_commands="$ac_config_commands libtool" 17093 17094 17095 17096 17097# Only expand once: 17098 17099 17100 17101 17102ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 17103if test "x$ac_cv_header_ltdl_h" = xyes; then : 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_init in -lltdl" >&5 17105$as_echo_n "checking for lt_dladvise_init in -lltdl... " >&6; } 17106if ${ac_cv_lib_ltdl_lt_dladvise_init+:} false; then : 17107 $as_echo_n "(cached) " >&6 17108else 17109 ac_check_lib_save_LIBS=$LIBS 17110LIBS="-lltdl $LIBS" 17111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112/* end confdefs.h. */ 17113 17114/* Override any GCC internal prototype to avoid an error. 17115 Use char because int might match the return type of a GCC 17116 builtin and then its argument prototype would still apply. */ 17117#ifdef __cplusplus 17118extern "C" 17119#endif 17120char lt_dladvise_init (); 17121int 17122main () 17123{ 17124return lt_dladvise_init (); 17125 ; 17126 return 0; 17127} 17128_ACEOF 17129if ac_fn_c_try_link "$LINENO"; then : 17130 ac_cv_lib_ltdl_lt_dladvise_init=yes 17131else 17132 ac_cv_lib_ltdl_lt_dladvise_init=no 17133fi 17134rm -f core conftest.err conftest.$ac_objext \ 17135 conftest$ac_exeext conftest.$ac_ext 17136LIBS=$ac_check_lib_save_LIBS 17137fi 17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_init" >&5 17139$as_echo "$ac_cv_lib_ltdl_lt_dladvise_init" >&6; } 17140if test "x$ac_cv_lib_ltdl_lt_dladvise_init" = xyes; then : 17141 LIBLTDL=-lltdl 17142else 17143 LIBLTDL= 17144fi 17145 17146else 17147 LIBLTDL= 17148fi 17149 17150 17151 17152if test "x$LIBLTDL" = "x"; then : 17153 as_fn_error $? "Unable to find libltdl." "$LINENO" 5 17154fi 17155 17156 17157#### Determine build environment #### 17158 17159os_is_win32=0 17160 17161case "$host_os" in 17162 mingw*) 17163 17164$as_echo "#define OS_IS_WIN32 1" >>confdefs.h 17165 17166 os_is_win32=1 17167 ;; 17168esac 17169 17170 if test "x$os_is_win32" = "x1"; then 17171 OS_IS_WIN32_TRUE= 17172 OS_IS_WIN32_FALSE='#' 17173else 17174 OS_IS_WIN32_TRUE='#' 17175 OS_IS_WIN32_FALSE= 17176fi 17177 17178 17179 if test "x$supports_anon_versioning" = "xyes" ; then 17180 USE_VERSION_SCRIPT_TRUE= 17181 USE_VERSION_SCRIPT_FALSE='#' 17182else 17183 USE_VERSION_SCRIPT_TRUE='#' 17184 USE_VERSION_SCRIPT_FALSE= 17185fi 17186 17187 17188################################### 17189# Basic environment checks # 17190################################### 17191 17192#### Checks for header files. #### 17193 17194# ISO 17195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17196$as_echo_n "checking for ANSI C header files... " >&6; } 17197if ${ac_cv_header_stdc+:} false; then : 17198 $as_echo_n "(cached) " >&6 17199else 17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202#include <stdlib.h> 17203#include <stdarg.h> 17204#include <string.h> 17205#include <float.h> 17206 17207int 17208main () 17209{ 17210 17211 ; 17212 return 0; 17213} 17214_ACEOF 17215if ac_fn_c_try_compile "$LINENO"; then : 17216 ac_cv_header_stdc=yes 17217else 17218 ac_cv_header_stdc=no 17219fi 17220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17221 17222if test $ac_cv_header_stdc = yes; then 17223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17225/* end confdefs.h. */ 17226#include <string.h> 17227 17228_ACEOF 17229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17230 $EGREP "memchr" >/dev/null 2>&1; then : 17231 17232else 17233 ac_cv_header_stdc=no 17234fi 17235rm -f conftest* 17236 17237fi 17238 17239if test $ac_cv_header_stdc = yes; then 17240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242/* end confdefs.h. */ 17243#include <stdlib.h> 17244 17245_ACEOF 17246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17247 $EGREP "free" >/dev/null 2>&1; then : 17248 17249else 17250 ac_cv_header_stdc=no 17251fi 17252rm -f conftest* 17253 17254fi 17255 17256if test $ac_cv_header_stdc = yes; then 17257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17258 if test "$cross_compiling" = yes; then : 17259 : 17260else 17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17262/* end confdefs.h. */ 17263#include <ctype.h> 17264#include <stdlib.h> 17265#if ((' ' & 0x0FF) == 0x020) 17266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17268#else 17269# define ISLOWER(c) \ 17270 (('a' <= (c) && (c) <= 'i') \ 17271 || ('j' <= (c) && (c) <= 'r') \ 17272 || ('s' <= (c) && (c) <= 'z')) 17273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17274#endif 17275 17276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17277int 17278main () 17279{ 17280 int i; 17281 for (i = 0; i < 256; i++) 17282 if (XOR (islower (i), ISLOWER (i)) 17283 || toupper (i) != TOUPPER (i)) 17284 return 2; 17285 return 0; 17286} 17287_ACEOF 17288if ac_fn_c_try_run "$LINENO"; then : 17289 17290else 17291 ac_cv_header_stdc=no 17292fi 17293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17294 conftest.$ac_objext conftest.beam conftest.$ac_ext 17295fi 17296 17297fi 17298fi 17299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17300$as_echo "$ac_cv_header_stdc" >&6; } 17301if test $ac_cv_header_stdc = yes; then 17302 17303$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17304 17305fi 17306 17307 17308# XPG4-UNIX 17309for ac_header in sys/poll.h 17310do : 17311 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 17312if test "x$ac_cv_header_sys_poll_h" = xyes; then : 17313 cat >>confdefs.h <<_ACEOF 17314#define HAVE_SYS_POLL_H 1 17315_ACEOF 17316 17317fi 17318 17319done 17320 17321 17322# Other 17323for ac_header in sys/ioctl.h 17324do : 17325 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 17326if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 17327 cat >>confdefs.h <<_ACEOF 17328#define HAVE_SYS_IOCTL_H 1 17329_ACEOF 17330 17331fi 17332 17333done 17334 17335for ac_header in byteswap.h 17336do : 17337 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 17338if test "x$ac_cv_header_byteswap_h" = xyes; then : 17339 cat >>confdefs.h <<_ACEOF 17340#define HAVE_BYTESWAP_H 1 17341_ACEOF 17342 17343fi 17344 17345done 17346 17347 17348#### Typdefs, structures, etc. #### 17349 17350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17351$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17352if ${ac_cv_c_const+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357 17358int 17359main () 17360{ 17361 17362#ifndef __cplusplus 17363 /* Ultrix mips cc rejects this sort of thing. */ 17364 typedef int charset[2]; 17365 const charset cs = { 0, 0 }; 17366 /* SunOS 4.1.1 cc rejects this. */ 17367 char const *const *pcpcc; 17368 char **ppc; 17369 /* NEC SVR4.0.2 mips cc rejects this. */ 17370 struct point {int x, y;}; 17371 static struct point const zero = {0,0}; 17372 /* AIX XL C 1.02.0.0 rejects this. 17373 It does not let you subtract one const X* pointer from another in 17374 an arm of an if-expression whose if-part is not a constant 17375 expression */ 17376 const char *g = "string"; 17377 pcpcc = &g + (g ? g-g : 0); 17378 /* HPUX 7.0 cc rejects these. */ 17379 ++pcpcc; 17380 ppc = (char**) pcpcc; 17381 pcpcc = (char const *const *) ppc; 17382 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17383 char tx; 17384 char *t = &tx; 17385 char const *s = 0 ? (char *) 0 : (char const *) 0; 17386 17387 *t++ = 0; 17388 if (s) return 0; 17389 } 17390 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17391 int x[] = {25, 17}; 17392 const int *foo = &x[0]; 17393 ++foo; 17394 } 17395 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17396 typedef const int *iptr; 17397 iptr p = 0; 17398 ++p; 17399 } 17400 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17401 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17402 struct s { int j; const int *ap[3]; } bx; 17403 struct s *b = &bx; b->j = 5; 17404 } 17405 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17406 const int foo = 10; 17407 if (!foo) return 0; 17408 } 17409 return !cs[0] && !zero.x; 17410#endif 17411 17412 ; 17413 return 0; 17414} 17415_ACEOF 17416if ac_fn_c_try_compile "$LINENO"; then : 17417 ac_cv_c_const=yes 17418else 17419 ac_cv_c_const=no 17420fi 17421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17422fi 17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17424$as_echo "$ac_cv_c_const" >&6; } 17425if test $ac_cv_c_const = no; then 17426 17427$as_echo "#define const /**/" >>confdefs.h 17428 17429fi 17430 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17432$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17433if ${ac_cv_c_bigendian+:} false; then : 17434 $as_echo_n "(cached) " >&6 17435else 17436 ac_cv_c_bigendian=unknown 17437 # See if we're dealing with a universal compiler. 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440#ifndef __APPLE_CC__ 17441 not a universal capable compiler 17442 #endif 17443 typedef int dummy; 17444 17445_ACEOF 17446if ac_fn_c_try_compile "$LINENO"; then : 17447 17448 # Check for potential -arch flags. It is not universal unless 17449 # there are at least two -arch flags with different values. 17450 ac_arch= 17451 ac_prev= 17452 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17453 if test -n "$ac_prev"; then 17454 case $ac_word in 17455 i?86 | x86_64 | ppc | ppc64) 17456 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17457 ac_arch=$ac_word 17458 else 17459 ac_cv_c_bigendian=universal 17460 break 17461 fi 17462 ;; 17463 esac 17464 ac_prev= 17465 elif test "x$ac_word" = "x-arch"; then 17466 ac_prev=arch 17467 fi 17468 done 17469fi 17470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17471 if test $ac_cv_c_bigendian = unknown; then 17472 # See if sys/param.h defines the BYTE_ORDER macro. 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475#include <sys/types.h> 17476 #include <sys/param.h> 17477 17478int 17479main () 17480{ 17481#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17482 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17483 && LITTLE_ENDIAN) 17484 bogus endian macros 17485 #endif 17486 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491if ac_fn_c_try_compile "$LINENO"; then : 17492 # It does; now see whether it defined to BIG_ENDIAN or not. 17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17494/* end confdefs.h. */ 17495#include <sys/types.h> 17496 #include <sys/param.h> 17497 17498int 17499main () 17500{ 17501#if BYTE_ORDER != BIG_ENDIAN 17502 not big endian 17503 #endif 17504 17505 ; 17506 return 0; 17507} 17508_ACEOF 17509if ac_fn_c_try_compile "$LINENO"; then : 17510 ac_cv_c_bigendian=yes 17511else 17512 ac_cv_c_bigendian=no 17513fi 17514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17515fi 17516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17517 fi 17518 if test $ac_cv_c_bigendian = unknown; then 17519 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521/* end confdefs.h. */ 17522#include <limits.h> 17523 17524int 17525main () 17526{ 17527#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17528 bogus endian macros 17529 #endif 17530 17531 ; 17532 return 0; 17533} 17534_ACEOF 17535if ac_fn_c_try_compile "$LINENO"; then : 17536 # It does; now see whether it defined to _BIG_ENDIAN or not. 17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17538/* end confdefs.h. */ 17539#include <limits.h> 17540 17541int 17542main () 17543{ 17544#ifndef _BIG_ENDIAN 17545 not big endian 17546 #endif 17547 17548 ; 17549 return 0; 17550} 17551_ACEOF 17552if ac_fn_c_try_compile "$LINENO"; then : 17553 ac_cv_c_bigendian=yes 17554else 17555 ac_cv_c_bigendian=no 17556fi 17557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17558fi 17559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17560 fi 17561 if test $ac_cv_c_bigendian = unknown; then 17562 # Compile a test program. 17563 if test "$cross_compiling" = yes; then : 17564 # Try to guess by grepping values from an object file. 17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567short int ascii_mm[] = 17568 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17569 short int ascii_ii[] = 17570 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17571 int use_ascii (int i) { 17572 return ascii_mm[i] + ascii_ii[i]; 17573 } 17574 short int ebcdic_ii[] = 17575 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17576 short int ebcdic_mm[] = 17577 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17578 int use_ebcdic (int i) { 17579 return ebcdic_mm[i] + ebcdic_ii[i]; 17580 } 17581 extern int foo; 17582 17583int 17584main () 17585{ 17586return use_ascii (foo) == use_ebcdic (foo); 17587 ; 17588 return 0; 17589} 17590_ACEOF 17591if ac_fn_c_try_compile "$LINENO"; then : 17592 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17593 ac_cv_c_bigendian=yes 17594 fi 17595 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17596 if test "$ac_cv_c_bigendian" = unknown; then 17597 ac_cv_c_bigendian=no 17598 else 17599 # finding both strings is unlikely to happen, but who knows? 17600 ac_cv_c_bigendian=unknown 17601 fi 17602 fi 17603fi 17604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17605else 17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17607/* end confdefs.h. */ 17608$ac_includes_default 17609int 17610main () 17611{ 17612 17613 /* Are we little or big endian? From Harbison&Steele. */ 17614 union 17615 { 17616 long int l; 17617 char c[sizeof (long int)]; 17618 } u; 17619 u.l = 1; 17620 return u.c[sizeof (long int) - 1] == 1; 17621 17622 ; 17623 return 0; 17624} 17625_ACEOF 17626if ac_fn_c_try_run "$LINENO"; then : 17627 ac_cv_c_bigendian=no 17628else 17629 ac_cv_c_bigendian=yes 17630fi 17631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17632 conftest.$ac_objext conftest.beam conftest.$ac_ext 17633fi 17634 17635 fi 17636fi 17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17638$as_echo "$ac_cv_c_bigendian" >&6; } 17639 case $ac_cv_c_bigendian in #( 17640 yes) 17641 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17642;; #( 17643 no) 17644 ;; #( 17645 universal) 17646 17647$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17648 17649 ;; #( 17650 *) 17651 as_fn_error $? "unknown endianness 17652 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17653 esac 17654 17655ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 17656if test "x$ac_cv_type_pid_t" = xyes; then : 17657 17658else 17659 17660cat >>confdefs.h <<_ACEOF 17661#define pid_t int 17662_ACEOF 17663 17664fi 17665 17666ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17667if test "x$ac_cv_type_size_t" = xyes; then : 17668 17669else 17670 17671cat >>confdefs.h <<_ACEOF 17672#define size_t unsigned int 17673_ACEOF 17674 17675fi 17676 17677ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 17678if test "x$ac_cv_type_ssize_t" = xyes; then : 17679 17680cat >>confdefs.h <<_ACEOF 17681#define HAVE_SSIZE_T 1 17682_ACEOF 17683 17684 17685else 17686 17687$as_echo "#define ssize_t signed long" >>confdefs.h 17688 17689fi 17690 17691ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17692if test "x$ac_cv_type_off_t" = xyes; then : 17693 17694else 17695 17696cat >>confdefs.h <<_ACEOF 17697#define off_t long int 17698_ACEOF 17699 17700fi 17701 17702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17703$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17704if ${ac_cv_type_uid_t+:} false; then : 17705 $as_echo_n "(cached) " >&6 17706else 17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17708/* end confdefs.h. */ 17709#include <sys/types.h> 17710 17711_ACEOF 17712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17713 $EGREP "uid_t" >/dev/null 2>&1; then : 17714 ac_cv_type_uid_t=yes 17715else 17716 ac_cv_type_uid_t=no 17717fi 17718rm -f conftest* 17719 17720fi 17721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17722$as_echo "$ac_cv_type_uid_t" >&6; } 17723if test $ac_cv_type_uid_t = no; then 17724 17725$as_echo "#define uid_t int" >>confdefs.h 17726 17727 17728$as_echo "#define gid_t int" >>confdefs.h 17729 17730fi 17731 17732 17733#### Check for libs #### 17734 17735# ISO 17736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 17737$as_echo_n "checking for library containing pow... " >&6; } 17738if ${ac_cv_search_pow+:} false; then : 17739 $as_echo_n "(cached) " >&6 17740else 17741 ac_func_search_save_LIBS=$LIBS 17742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17743/* end confdefs.h. */ 17744 17745/* Override any GCC internal prototype to avoid an error. 17746 Use char because int might match the return type of a GCC 17747 builtin and then its argument prototype would still apply. */ 17748#ifdef __cplusplus 17749extern "C" 17750#endif 17751char pow (); 17752int 17753main () 17754{ 17755return pow (); 17756 ; 17757 return 0; 17758} 17759_ACEOF 17760for ac_lib in '' m; do 17761 if test -z "$ac_lib"; then 17762 ac_res="none required" 17763 else 17764 ac_res=-l$ac_lib 17765 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17766 fi 17767 if ac_fn_c_try_link "$LINENO"; then : 17768 ac_cv_search_pow=$ac_res 17769fi 17770rm -f core conftest.err conftest.$ac_objext \ 17771 conftest$ac_exeext 17772 if ${ac_cv_search_pow+:} false; then : 17773 break 17774fi 17775done 17776if ${ac_cv_search_pow+:} false; then : 17777 17778else 17779 ac_cv_search_pow=no 17780fi 17781rm conftest.$ac_ext 17782LIBS=$ac_func_search_save_LIBS 17783fi 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 17785$as_echo "$ac_cv_search_pow" >&6; } 17786ac_res=$ac_cv_search_pow 17787if test "$ac_res" != no; then : 17788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17789 17790fi 17791 17792 17793# POSIX 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5 17795$as_echo_n "checking for library containing sched_setscheduler... " >&6; } 17796if ${ac_cv_search_sched_setscheduler+:} false; then : 17797 $as_echo_n "(cached) " >&6 17798else 17799 ac_func_search_save_LIBS=$LIBS 17800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17801/* end confdefs.h. */ 17802 17803/* Override any GCC internal prototype to avoid an error. 17804 Use char because int might match the return type of a GCC 17805 builtin and then its argument prototype would still apply. */ 17806#ifdef __cplusplus 17807extern "C" 17808#endif 17809char sched_setscheduler (); 17810int 17811main () 17812{ 17813return sched_setscheduler (); 17814 ; 17815 return 0; 17816} 17817_ACEOF 17818for ac_lib in '' rt; do 17819 if test -z "$ac_lib"; then 17820 ac_res="none required" 17821 else 17822 ac_res=-l$ac_lib 17823 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17824 fi 17825 if ac_fn_c_try_link "$LINENO"; then : 17826 ac_cv_search_sched_setscheduler=$ac_res 17827fi 17828rm -f core conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext 17830 if ${ac_cv_search_sched_setscheduler+:} false; then : 17831 break 17832fi 17833done 17834if ${ac_cv_search_sched_setscheduler+:} false; then : 17835 17836else 17837 ac_cv_search_sched_setscheduler=no 17838fi 17839rm conftest.$ac_ext 17840LIBS=$ac_func_search_save_LIBS 17841fi 17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5 17843$as_echo "$ac_cv_search_sched_setscheduler" >&6; } 17844ac_res=$ac_cv_search_sched_setscheduler 17845if test "$ac_res" != no; then : 17846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17847 17848fi 17849 17850 17851# Non-standard 17852 17853#### Check for functions #### 17854 17855# ISO 17856for ac_func in lrintf strtof 17857do : 17858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17860if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17861 cat >>confdefs.h <<_ACEOF 17862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17863_ACEOF 17864 17865fi 17866done 17867 17868 17869# POSIX 17870for ac_header in sys/select.h sys/socket.h 17871do : 17872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17874if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17875 cat >>confdefs.h <<_ACEOF 17876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17877_ACEOF 17878 17879fi 17880 17881done 17882 17883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 17884$as_echo_n "checking types of arguments for select... " >&6; } 17885if ${ac_cv_func_select_args+:} false; then : 17886 $as_echo_n "(cached) " >&6 17887else 17888 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 17889 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 17890 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893$ac_includes_default 17894#ifdef HAVE_SYS_SELECT_H 17895# include <sys/select.h> 17896#endif 17897#ifdef HAVE_SYS_SOCKET_H 17898# include <sys/socket.h> 17899#endif 17900 17901int 17902main () 17903{ 17904extern int select ($ac_arg1, 17905 $ac_arg234, $ac_arg234, $ac_arg234, 17906 $ac_arg5); 17907 ; 17908 return 0; 17909} 17910_ACEOF 17911if ac_fn_c_try_compile "$LINENO"; then : 17912 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 17913fi 17914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17915 done 17916 done 17917done 17918# Provide a safe default value. 17919: "${ac_cv_func_select_args=int,int *,struct timeval *}" 17920 17921fi 17922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 17923$as_echo "$ac_cv_func_select_args" >&6; } 17924ac_save_IFS=$IFS; IFS=',' 17925set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 17926IFS=$ac_save_IFS 17927shift 17928 17929cat >>confdefs.h <<_ACEOF 17930#define SELECT_TYPE_ARG1 $1 17931_ACEOF 17932 17933 17934cat >>confdefs.h <<_ACEOF 17935#define SELECT_TYPE_ARG234 ($2) 17936_ACEOF 17937 17938 17939cat >>confdefs.h <<_ACEOF 17940#define SELECT_TYPE_ARG5 ($3) 17941_ACEOF 17942 17943rm -f conftest* 17944 17945for ac_func in gettimeofday nanosleep posix_memalign sigaction sleep sysconf pthread_yield 17946do : 17947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17948ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17949if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17950 cat >>confdefs.h <<_ACEOF 17951#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17952_ACEOF 17953 17954fi 17955done 17956 17957 17958# SUSv3 17959for ac_func in strerror_r 17960do : 17961 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 17962if test "x$ac_cv_func_strerror_r" = xyes; then : 17963 cat >>confdefs.h <<_ACEOF 17964#define HAVE_STRERROR_R 1 17965_ACEOF 17966 17967fi 17968done 17969 17970 17971# BSD 17972for ac_func in lstat 17973do : 17974 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 17975if test "x$ac_cv_func_lstat" = xyes; then : 17976 cat >>confdefs.h <<_ACEOF 17977#define HAVE_LSTAT 1 17978_ACEOF 17979 17980fi 17981done 17982 17983 17984# GNU 17985for ac_func in strndup 17986do : 17987 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 17988if test "x$ac_cv_func_strndup" = xyes; then : 17989 cat >>confdefs.h <<_ACEOF 17990#define HAVE_STRNDUP 1 17991_ACEOF 17992 17993fi 17994done 17995 17996 17997#### POSIX threads #### 17998 17999 18000 18001 18002ac_ext=c 18003ac_cpp='$CPP $CPPFLAGS' 18004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18006ac_compiler_gnu=$ac_cv_c_compiler_gnu 18007 18008acx_pthread_ok=no 18009 18010# We used to check for pthread.h first, but this fails if pthread.h 18011# requires special compiler flags (e.g. on True64 or Sequent). 18012# It gets checked for in the link test anyway. 18013 18014# First of all, check if the user has set any of the PTHREAD_LIBS, 18015# etcetera environment variables, and if threads linking works using 18016# them: 18017if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18018 save_CFLAGS="$CFLAGS" 18019 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18020 save_LIBS="$LIBS" 18021 LIBS="$PTHREAD_LIBS $LIBS" 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18023$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18025/* end confdefs.h. */ 18026 18027/* Override any GCC internal prototype to avoid an error. 18028 Use char because int might match the return type of a GCC 18029 builtin and then its argument prototype would still apply. */ 18030#ifdef __cplusplus 18031extern "C" 18032#endif 18033char pthread_join (); 18034int 18035main () 18036{ 18037return pthread_join (); 18038 ; 18039 return 0; 18040} 18041_ACEOF 18042if ac_fn_c_try_link "$LINENO"; then : 18043 acx_pthread_ok=yes 18044fi 18045rm -f core conftest.err conftest.$ac_objext \ 18046 conftest$ac_exeext conftest.$ac_ext 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18048$as_echo "$acx_pthread_ok" >&6; } 18049 if test x"$acx_pthread_ok" = xno; then 18050 PTHREAD_LIBS="" 18051 PTHREAD_CFLAGS="" 18052 fi 18053 LIBS="$save_LIBS" 18054 CFLAGS="$save_CFLAGS" 18055fi 18056 18057# We must check for the threads library under a number of different 18058# names; the ordering is very important because some systems 18059# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 18060# libraries is broken (non-POSIX). 18061 18062# Create a list of thread flags to try. Items starting with a "-" are 18063# C compiler flags, and other items are library names, except for "none" 18064# which indicates that we try without any flags at all, and "pthread-config" 18065# which is a program returning the flags for the Pth emulation library. 18066 18067acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18068 18069# The ordering *is* (sometimes) important. Some notes on the 18070# individual items follow: 18071 18072# pthreads: AIX (must check this before -lpthread) 18073# none: in case threads are in libc; should be tried before -Kthread and 18074# other compiler flags to prevent continual compiler warnings 18075# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18076# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18077# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18078# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 18079# -pthreads: Solaris/gcc 18080# -mthreads: Mingw32/gcc, Lynx/gcc 18081# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18082# doesn't hurt to check since this sometimes defines pthreads too; 18083# also defines -D_REENTRANT) 18084# ... -mt is also the pthreads flag for HP/aCC 18085# pthread: Linux, etcetera 18086# --thread-safe: KAI C++ 18087# pthread-config: use pthread-config program (for GNU Pth library) 18088 18089case "${host_cpu}-${host_os}" in 18090 *solaris*) 18091 18092 # On Solaris (at least, for some versions), libc contains stubbed 18093 # (non-functional) versions of the pthreads routines, so link-based 18094 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 18095 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 18096 # a function called by this macro, so we could check for that, but 18097 # who knows whether they'll stub that too in a future libc.) So, 18098 # we'll just look for -pthreads and -lpthread first: 18099 18100 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 18101 ;; 18102esac 18103 18104if test x"$acx_pthread_ok" = xno; then 18105for flag in $acx_pthread_flags; do 18106 18107 case $flag in 18108 none) 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18110$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18111 ;; 18112 18113 -*) 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18115$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18116 PTHREAD_CFLAGS="$flag" 18117 ;; 18118 18119 pthread-config) 18120 # Extract the first word of "pthread-config", so it can be a program name with args. 18121set dummy pthread-config; ac_word=$2 18122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18123$as_echo_n "checking for $ac_word... " >&6; } 18124if ${ac_cv_prog_acx_pthread_config+:} false; then : 18125 $as_echo_n "(cached) " >&6 18126else 18127 if test -n "$acx_pthread_config"; then 18128 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 18129else 18130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18131for as_dir in $PATH 18132do 18133 IFS=$as_save_IFS 18134 test -z "$as_dir" && as_dir=. 18135 for ac_exec_ext in '' $ac_executable_extensions; do 18136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18137 ac_cv_prog_acx_pthread_config="yes" 18138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18139 break 2 18140 fi 18141done 18142 done 18143IFS=$as_save_IFS 18144 18145 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 18146fi 18147fi 18148acx_pthread_config=$ac_cv_prog_acx_pthread_config 18149if test -n "$acx_pthread_config"; then 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 18151$as_echo "$acx_pthread_config" >&6; } 18152else 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18154$as_echo "no" >&6; } 18155fi 18156 18157 18158 if test x"$acx_pthread_config" = xno; then continue; fi 18159 PTHREAD_CFLAGS="`pthread-config --cflags`" 18160 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18161 ;; 18162 18163 *) 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18165$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18166 PTHREAD_LIBS="-l$flag" 18167 ;; 18168 esac 18169 18170 save_LIBS="$LIBS" 18171 save_CFLAGS="$CFLAGS" 18172 LIBS="$PTHREAD_LIBS $LIBS" 18173 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18174 18175 # Check for various functions. We must include pthread.h, 18176 # since some functions may be macros. (On the Sequent, we 18177 # need a special flag -Kthread to make this header compile.) 18178 # We check for pthread_join because it is in -lpthread on IRIX 18179 # while pthread_create is in libc. We check for pthread_attr_init 18180 # due to DEC craziness with -lpthreads. We check for 18181 # pthread_cleanup_push because it is one of the few pthread 18182 # functions on Solaris that doesn't have a non-functional libc stub. 18183 # We try pthread_create on general principles. 18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18185/* end confdefs.h. */ 18186#include <pthread.h> 18187int 18188main () 18189{ 18190pthread_t th; pthread_join(th, 0); 18191 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18192 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18193 ; 18194 return 0; 18195} 18196_ACEOF 18197if ac_fn_c_try_link "$LINENO"; then : 18198 acx_pthread_ok=yes 18199fi 18200rm -f core conftest.err conftest.$ac_objext \ 18201 conftest$ac_exeext conftest.$ac_ext 18202 18203 LIBS="$save_LIBS" 18204 CFLAGS="$save_CFLAGS" 18205 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18207$as_echo "$acx_pthread_ok" >&6; } 18208 if test "x$acx_pthread_ok" = xyes; then 18209 break; 18210 fi 18211 18212 PTHREAD_LIBS="" 18213 PTHREAD_CFLAGS="" 18214done 18215fi 18216 18217# Various other checks: 18218if test "x$acx_pthread_ok" = xyes; then 18219 save_LIBS="$LIBS" 18220 LIBS="$PTHREAD_LIBS $LIBS" 18221 save_CFLAGS="$CFLAGS" 18222 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18223 18224 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18226$as_echo_n "checking for joinable pthread attribute... " >&6; } 18227 attr_name=unknown 18228 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18230/* end confdefs.h. */ 18231#include <pthread.h> 18232int 18233main () 18234{ 18235int attr=$attr; return attr; 18236 ; 18237 return 0; 18238} 18239_ACEOF 18240if ac_fn_c_try_link "$LINENO"; then : 18241 attr_name=$attr; break 18242fi 18243rm -f core conftest.err conftest.$ac_objext \ 18244 conftest$ac_exeext conftest.$ac_ext 18245 done 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18247$as_echo "$attr_name" >&6; } 18248 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18249 18250cat >>confdefs.h <<_ACEOF 18251#define PTHREAD_CREATE_JOINABLE $attr_name 18252_ACEOF 18253 18254 fi 18255 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18257$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18258 flag=no 18259 case "${host_cpu}-${host_os}" in 18260 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 18261 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 18262 esac 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 18264$as_echo "${flag}" >&6; } 18265 if test "x$flag" != xno; then 18266 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18267 fi 18268 18269 LIBS="$save_LIBS" 18270 CFLAGS="$save_CFLAGS" 18271 # More AIX lossage: must compile with xlc_r or cc_r 18272 if test x"$GCC" != xyes; then 18273 for ac_prog in xlc_r cc_r 18274do 18275 # Extract the first word of "$ac_prog", so it can be a program name with args. 18276set dummy $ac_prog; ac_word=$2 18277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18278$as_echo_n "checking for $ac_word... " >&6; } 18279if ${ac_cv_prog_PTHREAD_CC+:} false; then : 18280 $as_echo_n "(cached) " >&6 18281else 18282 if test -n "$PTHREAD_CC"; then 18283 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18284else 18285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18286for as_dir in $PATH 18287do 18288 IFS=$as_save_IFS 18289 test -z "$as_dir" && as_dir=. 18290 for ac_exec_ext in '' $ac_executable_extensions; do 18291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18292 ac_cv_prog_PTHREAD_CC="$ac_prog" 18293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18294 break 2 18295 fi 18296done 18297 done 18298IFS=$as_save_IFS 18299 18300fi 18301fi 18302PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18303if test -n "$PTHREAD_CC"; then 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18305$as_echo "$PTHREAD_CC" >&6; } 18306else 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18308$as_echo "no" >&6; } 18309fi 18310 18311 18312 test -n "$PTHREAD_CC" && break 18313done 18314test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 18315 18316 else 18317 PTHREAD_CC=$CC 18318 fi 18319 18320 # The next part tries to detect GCC inconsistency with -shared on some 18321 # architectures and systems. The problem is that in certain 18322 # configurations, when -shared is specified, GCC "forgets" to 18323 # internally use various flags which are still necessary. 18324 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 18326$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 18327 check_inconsistencies=yes 18328 case "${host_cpu}-${host_os}" in 18329 *-darwin*) check_inconsistencies=no ;; 18330 esac 18331 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18333$as_echo "no" >&6; } 18334 else 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18336$as_echo "yes" >&6; } 18337 18338 # In order not to create several levels of indentation, we test 18339 # the value of "$ok" until we find out the cure or run out of 18340 # ideas. 18341 ok="no" 18342 18343 # 18344 # Prepare the flags 18345 # 18346 save_CFLAGS="$CFLAGS" 18347 save_LIBS="$LIBS" 18348 save_CC="$CC" 18349 # Try with the flags determined by the earlier checks. 18350 # 18351 # -Wl,-z,defs forces link-time symbol resolution, so that the 18352 # linking checks with -shared actually have any value 18353 # 18354 # FIXME: -fPIC is required for -shared on many architectures, 18355 # so we specify it here, but the right way would probably be to 18356 # properly detect whether it is actually required. 18357 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 18358 LIBS="$PTHREAD_LIBS $LIBS" 18359 CC="$PTHREAD_CC" 18360 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 18362$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18364/* end confdefs.h. */ 18365#include <pthread.h> 18366int 18367main () 18368{ 18369pthread_t th; pthread_join(th, 0); 18370 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18371 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18372 ; 18373 return 0; 18374} 18375_ACEOF 18376if ac_fn_c_try_link "$LINENO"; then : 18377 ok=yes 18378fi 18379rm -f core conftest.err conftest.$ac_objext \ 18380 conftest$ac_exeext conftest.$ac_ext 18381 18382 if test "x$ok" = xyes; then 18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18384$as_echo "yes" >&6; } 18385 else 18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18387$as_echo "no" >&6; } 18388 fi 18389 18390 # 18391 # Linux gcc on some architectures such as mips/mipsel forgets 18392 # about -lpthread 18393 # 18394 if test x"$ok" = xno; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 18396$as_echo_n "checking whether -lpthread fixes that... " >&6; } 18397 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18399/* end confdefs.h. */ 18400#include <pthread.h> 18401int 18402main () 18403{ 18404pthread_t th; pthread_join(th, 0); 18405 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18406 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18407 ; 18408 return 0; 18409} 18410_ACEOF 18411if ac_fn_c_try_link "$LINENO"; then : 18412 ok=yes 18413fi 18414rm -f core conftest.err conftest.$ac_objext \ 18415 conftest$ac_exeext conftest.$ac_ext 18416 18417 if test "x$ok" = xyes; then 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18419$as_echo "yes" >&6; } 18420 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 18421 else 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18423$as_echo "no" >&6; } 18424 fi 18425 fi 18426 # 18427 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 18428 # 18429 if test x"$ok" = xno; then 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 18431$as_echo_n "checking whether -lc_r fixes that... " >&6; } 18432 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18434/* end confdefs.h. */ 18435#include <pthread.h> 18436int 18437main () 18438{ 18439pthread_t th; pthread_join(th, 0); 18440 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18441 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446if ac_fn_c_try_link "$LINENO"; then : 18447 ok=yes 18448fi 18449rm -f core conftest.err conftest.$ac_objext \ 18450 conftest$ac_exeext conftest.$ac_ext 18451 18452 if test "x$ok" = xyes; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18454$as_echo "yes" >&6; } 18455 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 18456 else 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18458$as_echo "no" >&6; } 18459 fi 18460 fi 18461 if test x"$ok" = xno; then 18462 # OK, we have run out of ideas 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 18464$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 18465 18466 # so it's not safe to assume that we may use pthreads 18467 acx_pthread_ok=no 18468 fi 18469 18470 CFLAGS="$save_CFLAGS" 18471 LIBS="$save_LIBS" 18472 CC="$save_CC" 18473 fi 18474else 18475 PTHREAD_CC="$CC" 18476fi 18477 18478 18479 18480 18481 18482# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18483if test x"$acx_pthread_ok" = xyes; then 18484 18485$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18486 18487 : 18488else 18489 acx_pthread_ok=no 18490 18491fi 18492ac_ext=c 18493ac_cpp='$CPP $CPPFLAGS' 18494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18496ac_compiler_gnu=$ac_cv_c_compiler_gnu 18497 18498 18499 18500#### Large File-Support (LFS) #### 18501 18502# Check whether --enable-largefile was given. 18503if test "${enable_largefile+set}" = set; then : 18504 enableval=$enable_largefile; 18505fi 18506 18507if test "$enable_largefile" != no; then 18508 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18510$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18511if ${ac_cv_sys_largefile_CC+:} false; then : 18512 $as_echo_n "(cached) " >&6 18513else 18514 ac_cv_sys_largefile_CC=no 18515 if test "$GCC" != yes; then 18516 ac_save_CC=$CC 18517 while :; do 18518 # IRIX 6.2 and later do not support large files by default, 18519 # so use the C compiler's -n32 option if that helps. 18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522#include <sys/types.h> 18523 /* Check that off_t can represent 2**63 - 1 correctly. 18524 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18525 since some C++ compilers masquerading as C compilers 18526 incorrectly reject 9223372036854775807. */ 18527#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18529 && LARGE_OFF_T % 2147483647 == 1) 18530 ? 1 : -1]; 18531int 18532main () 18533{ 18534 18535 ; 18536 return 0; 18537} 18538_ACEOF 18539 if ac_fn_c_try_compile "$LINENO"; then : 18540 break 18541fi 18542rm -f core conftest.err conftest.$ac_objext 18543 CC="$CC -n32" 18544 if ac_fn_c_try_compile "$LINENO"; then : 18545 ac_cv_sys_largefile_CC=' -n32'; break 18546fi 18547rm -f core conftest.err conftest.$ac_objext 18548 break 18549 done 18550 CC=$ac_save_CC 18551 rm -f conftest.$ac_ext 18552 fi 18553fi 18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18555$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18556 if test "$ac_cv_sys_largefile_CC" != no; then 18557 CC=$CC$ac_cv_sys_largefile_CC 18558 fi 18559 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18561$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18562if ${ac_cv_sys_file_offset_bits+:} false; then : 18563 $as_echo_n "(cached) " >&6 18564else 18565 while :; do 18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18567/* end confdefs.h. */ 18568#include <sys/types.h> 18569 /* Check that off_t can represent 2**63 - 1 correctly. 18570 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18571 since some C++ compilers masquerading as C compilers 18572 incorrectly reject 9223372036854775807. */ 18573#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18575 && LARGE_OFF_T % 2147483647 == 1) 18576 ? 1 : -1]; 18577int 18578main () 18579{ 18580 18581 ; 18582 return 0; 18583} 18584_ACEOF 18585if ac_fn_c_try_compile "$LINENO"; then : 18586 ac_cv_sys_file_offset_bits=no; break 18587fi 18588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18590/* end confdefs.h. */ 18591#define _FILE_OFFSET_BITS 64 18592#include <sys/types.h> 18593 /* Check that off_t can represent 2**63 - 1 correctly. 18594 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18595 since some C++ compilers masquerading as C compilers 18596 incorrectly reject 9223372036854775807. */ 18597#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18599 && LARGE_OFF_T % 2147483647 == 1) 18600 ? 1 : -1]; 18601int 18602main () 18603{ 18604 18605 ; 18606 return 0; 18607} 18608_ACEOF 18609if ac_fn_c_try_compile "$LINENO"; then : 18610 ac_cv_sys_file_offset_bits=64; break 18611fi 18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18613 ac_cv_sys_file_offset_bits=unknown 18614 break 18615done 18616fi 18617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18618$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18619case $ac_cv_sys_file_offset_bits in #( 18620 no | unknown) ;; 18621 *) 18622cat >>confdefs.h <<_ACEOF 18623#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18624_ACEOF 18625;; 18626esac 18627rm -rf conftest* 18628 if test $ac_cv_sys_file_offset_bits = unknown; then 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18630$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18631if ${ac_cv_sys_large_files+:} false; then : 18632 $as_echo_n "(cached) " >&6 18633else 18634 while :; do 18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637#include <sys/types.h> 18638 /* Check that off_t can represent 2**63 - 1 correctly. 18639 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18640 since some C++ compilers masquerading as C compilers 18641 incorrectly reject 9223372036854775807. */ 18642#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18644 && LARGE_OFF_T % 2147483647 == 1) 18645 ? 1 : -1]; 18646int 18647main () 18648{ 18649 18650 ; 18651 return 0; 18652} 18653_ACEOF 18654if ac_fn_c_try_compile "$LINENO"; then : 18655 ac_cv_sys_large_files=no; break 18656fi 18657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18659/* end confdefs.h. */ 18660#define _LARGE_FILES 1 18661#include <sys/types.h> 18662 /* Check that off_t can represent 2**63 - 1 correctly. 18663 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18664 since some C++ compilers masquerading as C compilers 18665 incorrectly reject 9223372036854775807. */ 18666#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18668 && LARGE_OFF_T % 2147483647 == 1) 18669 ? 1 : -1]; 18670int 18671main () 18672{ 18673 18674 ; 18675 return 0; 18676} 18677_ACEOF 18678if ac_fn_c_try_compile "$LINENO"; then : 18679 ac_cv_sys_large_files=1; break 18680fi 18681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18682 ac_cv_sys_large_files=unknown 18683 break 18684done 18685fi 18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18687$as_echo "$ac_cv_sys_large_files" >&6; } 18688case $ac_cv_sys_large_files in #( 18689 no | unknown) ;; 18690 *) 18691cat >>confdefs.h <<_ACEOF 18692#define _LARGE_FILES $ac_cv_sys_large_files 18693_ACEOF 18694;; 18695esac 18696rm -rf conftest* 18697 fi 18698 18699 18700fi 18701 18702 18703################################### 18704# External libraries # 18705################################### 18706 18707#### pkg-config #### 18708 18709 18710 18711 18712 18713 18714 18715 18716if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18717 if test -n "$ac_tool_prefix"; then 18718 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18719set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18721$as_echo_n "checking for $ac_word... " >&6; } 18722if ${ac_cv_path_PKG_CONFIG+:} false; then : 18723 $as_echo_n "(cached) " >&6 18724else 18725 case $PKG_CONFIG in 18726 [\\/]* | ?:[\\/]*) 18727 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18728 ;; 18729 *) 18730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18731for as_dir in $PATH 18732do 18733 IFS=$as_save_IFS 18734 test -z "$as_dir" && as_dir=. 18735 for ac_exec_ext in '' $ac_executable_extensions; do 18736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18737 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18739 break 2 18740 fi 18741done 18742 done 18743IFS=$as_save_IFS 18744 18745 ;; 18746esac 18747fi 18748PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18749if test -n "$PKG_CONFIG"; then 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18751$as_echo "$PKG_CONFIG" >&6; } 18752else 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18754$as_echo "no" >&6; } 18755fi 18756 18757 18758fi 18759if test -z "$ac_cv_path_PKG_CONFIG"; then 18760 ac_pt_PKG_CONFIG=$PKG_CONFIG 18761 # Extract the first word of "pkg-config", so it can be a program name with args. 18762set dummy pkg-config; ac_word=$2 18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18764$as_echo_n "checking for $ac_word... " >&6; } 18765if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18766 $as_echo_n "(cached) " >&6 18767else 18768 case $ac_pt_PKG_CONFIG in 18769 [\\/]* | ?:[\\/]*) 18770 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18771 ;; 18772 *) 18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18774for as_dir in $PATH 18775do 18776 IFS=$as_save_IFS 18777 test -z "$as_dir" && as_dir=. 18778 for ac_exec_ext in '' $ac_executable_extensions; do 18779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18780 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18782 break 2 18783 fi 18784done 18785 done 18786IFS=$as_save_IFS 18787 18788 ;; 18789esac 18790fi 18791ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18792if test -n "$ac_pt_PKG_CONFIG"; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18794$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18795else 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18797$as_echo "no" >&6; } 18798fi 18799 18800 if test "x$ac_pt_PKG_CONFIG" = x; then 18801 PKG_CONFIG="" 18802 else 18803 case $cross_compiling:$ac_tool_warned in 18804yes:) 18805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18807ac_tool_warned=yes ;; 18808esac 18809 PKG_CONFIG=$ac_pt_PKG_CONFIG 18810 fi 18811else 18812 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18813fi 18814 18815fi 18816if test -n "$PKG_CONFIG"; then 18817 _pkg_min_version=0.9.0 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18819$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18820 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18822$as_echo "yes" >&6; } 18823 else 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18825$as_echo "no" >&6; } 18826 PKG_CONFIG="" 18827 fi 18828fi 18829 18830#### ALSA support (optional) #### 18831 18832# Check whether --enable-alsa was given. 18833if test "${enable_alsa+set}" = set; then : 18834 enableval=$enable_alsa; 18835 case "${enableval}" in 18836 yes) alsa=yes ;; 18837 no) alsa=no ;; 18838 *) as_fn_error $? "bad value ${enableval} for --disable-alsa" "$LINENO" 5 ;; 18839 esac 18840 18841else 18842 alsa=auto 18843fi 18844 18845 18846if test "x${alsa}" != xno ; then 18847 18848pkg_failed=no 18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 18850$as_echo_n "checking for ALSA... " >&6; } 18851 18852if test -n "$ALSA_CFLAGS"; then 18853 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 18854 elif test -n "$PKG_CONFIG"; then 18855 if test -n "$PKG_CONFIG" && \ 18856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" alsa >= 1.0.0 \""; } >&5 18857 ($PKG_CONFIG --exists --print-errors " alsa >= 1.0.0 ") 2>&5 18858 ac_status=$? 18859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18860 test $ac_status = 0; }; then 18861 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags " alsa >= 1.0.0 " 2>/dev/null` 18862 test "x$?" != "x0" && pkg_failed=yes 18863else 18864 pkg_failed=yes 18865fi 18866 else 18867 pkg_failed=untried 18868fi 18869if test -n "$ALSA_LIBS"; then 18870 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 18871 elif test -n "$PKG_CONFIG"; then 18872 if test -n "$PKG_CONFIG" && \ 18873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" alsa >= 1.0.0 \""; } >&5 18874 ($PKG_CONFIG --exists --print-errors " alsa >= 1.0.0 ") 2>&5 18875 ac_status=$? 18876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18877 test $ac_status = 0; }; then 18878 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs " alsa >= 1.0.0 " 2>/dev/null` 18879 test "x$?" != "x0" && pkg_failed=yes 18880else 18881 pkg_failed=yes 18882fi 18883 else 18884 pkg_failed=untried 18885fi 18886 18887 18888 18889if test $pkg_failed = yes; then 18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18891$as_echo "no" >&6; } 18892 18893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18894 _pkg_short_errors_supported=yes 18895else 18896 _pkg_short_errors_supported=no 18897fi 18898 if test $_pkg_short_errors_supported = yes; then 18899 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " alsa >= 1.0.0 " 2>&1` 18900 else 18901 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " alsa >= 1.0.0 " 2>&1` 18902 fi 18903 # Put the nasty error message in config.log where it belongs 18904 echo "$ALSA_PKG_ERRORS" >&5 18905 18906 18907 HAVE_ALSA=0 18908 if test "x$alsa" = xyes ; then 18909 as_fn_error $? "*** ALSA not found ***" "$LINENO" 5 18910 fi 18911 18912elif test $pkg_failed = untried; then 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18914$as_echo "no" >&6; } 18915 18916 HAVE_ALSA=0 18917 if test "x$alsa" = xyes ; then 18918 as_fn_error $? "*** ALSA not found ***" "$LINENO" 5 18919 fi 18920 18921else 18922 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 18923 ALSA_LIBS=$pkg_cv_ALSA_LIBS 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18925$as_echo "yes" >&6; } 18926 18927 HAVE_ALSA=1 18928 18929$as_echo "#define HAVE_ALSA 1" >>confdefs.h 18930 18931 18932fi 18933else 18934 HAVE_ALSA=0 18935fi 18936 18937 18938 18939 18940### OSS support (optional) ### 18941 18942# Check whether --enable-oss was given. 18943if test "${enable_oss+set}" = set; then : 18944 enableval=$enable_oss; 18945 case "${enableval}" in 18946 yes) oss=yes ;; 18947 no) oss=no ;; 18948 *) as_fn_error $? "bad value ${enableval} for --disable-oss" "$LINENO" 5 ;; 18949 esac 18950 18951else 18952 oss=auto 18953fi 18954 18955 18956if test "x${oss}" != xno ; then 18957 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h 18958do : 18959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18962 cat >>confdefs.h <<_ACEOF 18963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18964_ACEOF 18965 18966fi 18967 18968done 18969 18970 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \ 18971 test "${ac_cv_header_soundcard_h}" = "yes" || \ 18972 test "${ac_cv_header_machine_soundcard_h}" = "yes"; then 18973 HAVE_OSS=1 18974 18975$as_echo "#define HAVE_OSS 1" >>confdefs.h 18976 18977 else 18978 HAVE_OSS=0 18979 if test "x$oss" = xyes ; then 18980 as_fn_error $? "*** OSS not found ***" "$LINENO" 5 18981 fi 18982 fi 18983else 18984 HAVE_OSS=0 18985fi 18986 18987### PulseAudio (optional) #### 18988 18989# Check whether --enable-pulse was given. 18990if test "${enable_pulse+set}" = set; then : 18991 enableval=$enable_pulse; 18992 case "${enableval}" in 18993 yes) pulse=yes ;; 18994 no) pulse=no ;; 18995 *) as_fn_error $? "bad value ${enableval} for --disable-pulse" "$LINENO" 5 ;; 18996 esac 18997 18998else 18999 pulse=auto 19000fi 19001 19002 19003if test "x${pulse}" != xno ; then 19004 19005 if test -d ../pulseaudio ; then 19006 PULSE_CFLAGS='-I$(top_srcdir)/../pulseaudio/src' 19007 PULSE_LIBS='-L$(top_srcdir)/../pulseaudio/src/.libs -lpulse' 19008 HAVE_PULSE=1 19009 19010$as_echo "#define HAVE_PULSE 1" >>confdefs.h 19011 19012 echo "*** Found pulseaudio in ../pulseaudio, using that version ***" 19013 else 19014 19015pkg_failed=no 19016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5 19017$as_echo_n "checking for PULSE... " >&6; } 19018 19019if test -n "$PULSE_CFLAGS"; then 19020 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS" 19021 elif test -n "$PKG_CONFIG"; then 19022 if test -n "$PKG_CONFIG" && \ 19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libpulse >= 0.9.11 \""; } >&5 19024 ($PKG_CONFIG --exists --print-errors " libpulse >= 0.9.11 ") 2>&5 19025 ac_status=$? 19026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19027 test $ac_status = 0; }; then 19028 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags " libpulse >= 0.9.11 " 2>/dev/null` 19029 test "x$?" != "x0" && pkg_failed=yes 19030else 19031 pkg_failed=yes 19032fi 19033 else 19034 pkg_failed=untried 19035fi 19036if test -n "$PULSE_LIBS"; then 19037 pkg_cv_PULSE_LIBS="$PULSE_LIBS" 19038 elif test -n "$PKG_CONFIG"; then 19039 if test -n "$PKG_CONFIG" && \ 19040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libpulse >= 0.9.11 \""; } >&5 19041 ($PKG_CONFIG --exists --print-errors " libpulse >= 0.9.11 ") 2>&5 19042 ac_status=$? 19043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19044 test $ac_status = 0; }; then 19045 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs " libpulse >= 0.9.11 " 2>/dev/null` 19046 test "x$?" != "x0" && pkg_failed=yes 19047else 19048 pkg_failed=yes 19049fi 19050 else 19051 pkg_failed=untried 19052fi 19053 19054 19055 19056if test $pkg_failed = yes; then 19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19058$as_echo "no" >&6; } 19059 19060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19061 _pkg_short_errors_supported=yes 19062else 19063 _pkg_short_errors_supported=no 19064fi 19065 if test $_pkg_short_errors_supported = yes; then 19066 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libpulse >= 0.9.11 " 2>&1` 19067 else 19068 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libpulse >= 0.9.11 " 2>&1` 19069 fi 19070 # Put the nasty error message in config.log where it belongs 19071 echo "$PULSE_PKG_ERRORS" >&5 19072 19073 19074 HAVE_PULSE=0 19075 if test "x$pulse" = xyes ; then 19076 as_fn_error $? "*** PulseAudio not found ***" "$LINENO" 5 19077 fi 19078 19079elif test $pkg_failed = untried; then 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19081$as_echo "no" >&6; } 19082 19083 HAVE_PULSE=0 19084 if test "x$pulse" = xyes ; then 19085 as_fn_error $? "*** PulseAudio not found ***" "$LINENO" 5 19086 fi 19087 19088else 19089 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS 19090 PULSE_LIBS=$pkg_cv_PULSE_LIBS 19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19092$as_echo "yes" >&6; } 19093 19094 HAVE_PULSE=1 19095 19096$as_echo "#define HAVE_PULSE 1" >>confdefs.h 19097 19098 19099fi 19100 fi 19101else 19102 HAVE_PULSE=0 19103fi 19104 19105 19106 19107 19108#### UDEV support (optional) #### 19109 19110# Check whether --enable-udev was given. 19111if test "${enable_udev+set}" = set; then : 19112 enableval=$enable_udev; 19113 case "${enableval}" in 19114 yes) udev=yes ;; 19115 no) udev=no ;; 19116 *) as_fn_error $? "bad value ${enableval} for --disable-udev" "$LINENO" 5 ;; 19117 esac 19118 19119else 19120 udev=auto 19121fi 19122 19123 19124if test "x${udev}" != xno ; then 19125 19126pkg_failed=no 19127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 19128$as_echo_n "checking for UDEV... " >&6; } 19129 19130if test -n "$UDEV_CFLAGS"; then 19131 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 19132 elif test -n "$PKG_CONFIG"; then 19133 if test -n "$PKG_CONFIG" && \ 19134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libudev >= 160 \""; } >&5 19135 ($PKG_CONFIG --exists --print-errors " libudev >= 160 ") 2>&5 19136 ac_status=$? 19137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19138 test $ac_status = 0; }; then 19139 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags " libudev >= 160 " 2>/dev/null` 19140 test "x$?" != "x0" && pkg_failed=yes 19141else 19142 pkg_failed=yes 19143fi 19144 else 19145 pkg_failed=untried 19146fi 19147if test -n "$UDEV_LIBS"; then 19148 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 19149 elif test -n "$PKG_CONFIG"; then 19150 if test -n "$PKG_CONFIG" && \ 19151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libudev >= 160 \""; } >&5 19152 ($PKG_CONFIG --exists --print-errors " libudev >= 160 ") 2>&5 19153 ac_status=$? 19154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19155 test $ac_status = 0; }; then 19156 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs " libudev >= 160 " 2>/dev/null` 19157 test "x$?" != "x0" && pkg_failed=yes 19158else 19159 pkg_failed=yes 19160fi 19161 else 19162 pkg_failed=untried 19163fi 19164 19165 19166 19167if test $pkg_failed = yes; then 19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19169$as_echo "no" >&6; } 19170 19171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19172 _pkg_short_errors_supported=yes 19173else 19174 _pkg_short_errors_supported=no 19175fi 19176 if test $_pkg_short_errors_supported = yes; then 19177 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libudev >= 160 " 2>&1` 19178 else 19179 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libudev >= 160 " 2>&1` 19180 fi 19181 # Put the nasty error message in config.log where it belongs 19182 echo "$UDEV_PKG_ERRORS" >&5 19183 19184 19185 HAVE_UDEV=0 19186 if test "x$udev" = xyes ; then 19187 as_fn_error $? "*** udev not found ***" "$LINENO" 5 19188 fi 19189 19190elif test $pkg_failed = untried; then 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19192$as_echo "no" >&6; } 19193 19194 HAVE_UDEV=0 19195 if test "x$udev" = xyes ; then 19196 as_fn_error $? "*** udev not found ***" "$LINENO" 5 19197 fi 19198 19199else 19200 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 19201 UDEV_LIBS=$pkg_cv_UDEV_LIBS 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19203$as_echo "yes" >&6; } 19204 19205 HAVE_UDEV=1 19206 19207$as_echo "#define HAVE_UDEV 1" >>confdefs.h 19208 19209 19210fi 19211else 19212 HAVE_UDEV=0 19213fi 19214 19215 19216 19217 if test "x$HAVE_UDEV" = x1; then 19218 HAVE_UDEV_TRUE= 19219 HAVE_UDEV_FALSE='#' 19220else 19221 HAVE_UDEV_TRUE='#' 19222 HAVE_UDEV_FALSE= 19223fi 19224 19225 19226#### GStreamer support (optional) #### 19227 19228# Check whether --enable-gstreamer was given. 19229if test "${enable_gstreamer+set}" = set; then : 19230 enableval=$enable_gstreamer; 19231 case "${enableval}" in 19232 yes) gstreamer=yes ;; 19233 no) gstreamer=no ;; 19234 *) as_fn_error $? "bad value ${enableval} for --disable-gstreamer" "$LINENO" 5 ;; 19235 esac 19236 19237else 19238 gstreamer=auto 19239fi 19240 19241 19242if test "x${gstreamer}" != xno ; then 19243 19244pkg_failed=no 19245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5 19246$as_echo_n "checking for GST... " >&6; } 19247 19248if test -n "$GST_CFLAGS"; then 19249 pkg_cv_GST_CFLAGS="$GST_CFLAGS" 19250 elif test -n "$PKG_CONFIG"; then 19251 if test -n "$PKG_CONFIG" && \ 19252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gstreamer-1.0 >= 0.10.15 \""; } >&5 19253 ($PKG_CONFIG --exists --print-errors " gstreamer-1.0 >= 0.10.15 ") 2>&5 19254 ac_status=$? 19255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19256 test $ac_status = 0; }; then 19257 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags " gstreamer-1.0 >= 0.10.15 " 2>/dev/null` 19258 test "x$?" != "x0" && pkg_failed=yes 19259else 19260 pkg_failed=yes 19261fi 19262 else 19263 pkg_failed=untried 19264fi 19265if test -n "$GST_LIBS"; then 19266 pkg_cv_GST_LIBS="$GST_LIBS" 19267 elif test -n "$PKG_CONFIG"; then 19268 if test -n "$PKG_CONFIG" && \ 19269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gstreamer-1.0 >= 0.10.15 \""; } >&5 19270 ($PKG_CONFIG --exists --print-errors " gstreamer-1.0 >= 0.10.15 ") 2>&5 19271 ac_status=$? 19272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19273 test $ac_status = 0; }; then 19274 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs " gstreamer-1.0 >= 0.10.15 " 2>/dev/null` 19275 test "x$?" != "x0" && pkg_failed=yes 19276else 19277 pkg_failed=yes 19278fi 19279 else 19280 pkg_failed=untried 19281fi 19282 19283 19284 19285if test $pkg_failed = yes; then 19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19287$as_echo "no" >&6; } 19288 19289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19290 _pkg_short_errors_supported=yes 19291else 19292 _pkg_short_errors_supported=no 19293fi 19294 if test $_pkg_short_errors_supported = yes; then 19295 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gstreamer-1.0 >= 0.10.15 " 2>&1` 19296 else 19297 GST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gstreamer-1.0 >= 0.10.15 " 2>&1` 19298 fi 19299 # Put the nasty error message in config.log where it belongs 19300 echo "$GST_PKG_ERRORS" >&5 19301 19302 19303 HAVE_GSTREAMER=0 19304 if test "x$gstreamer" = xyes ; then 19305 as_fn_error $? "*** GStreamer not found ***" "$LINENO" 5 19306 fi 19307 19308elif test $pkg_failed = untried; then 19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19310$as_echo "no" >&6; } 19311 19312 HAVE_GSTREAMER=0 19313 if test "x$gstreamer" = xyes ; then 19314 as_fn_error $? "*** GStreamer not found ***" "$LINENO" 5 19315 fi 19316 19317else 19318 GST_CFLAGS=$pkg_cv_GST_CFLAGS 19319 GST_LIBS=$pkg_cv_GST_LIBS 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19321$as_echo "yes" >&6; } 19322 19323 HAVE_GSTREAMER=1 19324 19325$as_echo "#define HAVE_GSTREAMER 1" >>confdefs.h 19326 19327 19328fi 19329else 19330 HAVE_GSTREAMER=0 19331fi 19332 19333 19334 19335 19336### Null output (optional) #### 19337 19338# Check whether --enable-null was given. 19339if test "${enable_null+set}" = set; then : 19340 enableval=$enable_null; 19341 case "${enableval}" in 19342 yes) null=yes ;; 19343 no) null=no ;; 19344 *) as_fn_error $? "bad value ${enableval} for --disable-null" "$LINENO" 5 ;; 19345 esac 19346 19347else 19348 null=yes 19349fi 19350 19351 19352if test "x${null}" != xno ; then 19353 HAVE_NULL=1 19354 19355$as_echo "#define HAVE_NULL 1" >>confdefs.h 19356 19357else 19358 HAVE_NULL=0 19359fi 19360 19361### GTK (optional) #### 19362 19363# Check whether --enable-gtk was given. 19364if test "${enable_gtk+set}" = set; then : 19365 enableval=$enable_gtk; 19366 case "${enableval}" in 19367 yes) gtk=yes ;; 19368 no) gtk=no ;; 19369 *) as_fn_error $? "bad value ${enableval} for --disable-gtk" "$LINENO" 5 ;; 19370 esac 19371 19372else 19373 gtk=auto 19374fi 19375 19376 19377 if false; then 19378 GCONF_SCHEMAS_INSTALL_TRUE= 19379 GCONF_SCHEMAS_INSTALL_FALSE='#' 19380else 19381 GCONF_SCHEMAS_INSTALL_TRUE='#' 19382 GCONF_SCHEMAS_INSTALL_FALSE= 19383fi 19384 19385if test "x${gtk}" != xno ; then 19386 19387pkg_failed=no 19388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 19389$as_echo_n "checking for GTK... " >&6; } 19390 19391if test -n "$GTK_CFLAGS"; then 19392 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 19393 elif test -n "$PKG_CONFIG"; then 19394 if test -n "$PKG_CONFIG" && \ 19395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 \""; } >&5 19396 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 ") 2>&5 19397 ac_status=$? 19398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19399 test $ac_status = 0; }; then 19400 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 " 2>/dev/null` 19401 test "x$?" != "x0" && pkg_failed=yes 19402else 19403 pkg_failed=yes 19404fi 19405 else 19406 pkg_failed=untried 19407fi 19408if test -n "$GTK_LIBS"; then 19409 pkg_cv_GTK_LIBS="$GTK_LIBS" 19410 elif test -n "$PKG_CONFIG"; then 19411 if test -n "$PKG_CONFIG" && \ 19412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 \""; } >&5 19413 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 ") 2>&5 19414 ac_status=$? 19415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19416 test $ac_status = 0; }; then 19417 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 " 2>/dev/null` 19418 test "x$?" != "x0" && pkg_failed=yes 19419else 19420 pkg_failed=yes 19421fi 19422 else 19423 pkg_failed=untried 19424fi 19425 19426 19427 19428if test $pkg_failed = yes; then 19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19430$as_echo "no" >&6; } 19431 19432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19433 _pkg_short_errors_supported=yes 19434else 19435 _pkg_short_errors_supported=no 19436fi 19437 if test $_pkg_short_errors_supported = yes; then 19438 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 " 2>&1` 19439 else 19440 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-2.0 >= 2.20.0 gthread-2.0 glib-2.0 >= 2.32 gdk-2.0 x11 " 2>&1` 19441 fi 19442 # Put the nasty error message in config.log where it belongs 19443 echo "$GTK_PKG_ERRORS" >&5 19444 19445 19446 HAVE_GTK=0 19447 if test "x$gtk" = xyes ; then 19448 as_fn_error $? "*** GTK not found ***" "$LINENO" 5 19449 fi 19450 19451elif test $pkg_failed = untried; then 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19453$as_echo "no" >&6; } 19454 19455 HAVE_GTK=0 19456 if test "x$gtk" = xyes ; then 19457 as_fn_error $? "*** GTK not found ***" "$LINENO" 5 19458 fi 19459 19460else 19461 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 19462 GTK_LIBS=$pkg_cv_GTK_LIBS 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19464$as_echo "yes" >&6; } 19465 19466 HAVE_GTK=1 19467 19468$as_echo "#define HAVE_GTK 1" >>confdefs.h 19469 19470 19471 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` 19472 GTK_MODULES_DIR="${libdir}/gtk-2.0/modules" 19473 19474fi 19475else 19476 HAVE_GTK=0 19477fi 19478 19479 19480 19481 19482 19483 if test "x$HAVE_GTK" = x1; then 19484 HAVE_GTK_TRUE= 19485 HAVE_GTK_FALSE='#' 19486else 19487 HAVE_GTK_TRUE='#' 19488 HAVE_GTK_FALSE= 19489fi 19490 19491 19492# Check whether --enable-gtk3 was given. 19493if test "${enable_gtk3+set}" = set; then : 19494 enableval=$enable_gtk3; 19495 case "${enableval}" in 19496 yes) gtk3=yes ;; 19497 no) gtk3=no ;; 19498 *) as_fn_error $? "bad value ${enableval} for --disable-gtk3" "$LINENO" 5 ;; 19499 esac 19500 19501else 19502 gtk3=auto 19503fi 19504 19505 19506if test "x${gtk3}" != xno ; then 19507 19508pkg_failed=no 19509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5 19510$as_echo_n "checking for GTK3... " >&6; } 19511 19512if test -n "$GTK3_CFLAGS"; then 19513 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS" 19514 elif test -n "$PKG_CONFIG"; then 19515 if test -n "$PKG_CONFIG" && \ 19516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 \""; } >&5 19517 ($PKG_CONFIG --exists --print-errors " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 ") 2>&5 19518 ac_status=$? 19519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19520 test $ac_status = 0; }; then 19521 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 " 2>/dev/null` 19522 test "x$?" != "x0" && pkg_failed=yes 19523else 19524 pkg_failed=yes 19525fi 19526 else 19527 pkg_failed=untried 19528fi 19529if test -n "$GTK3_LIBS"; then 19530 pkg_cv_GTK3_LIBS="$GTK3_LIBS" 19531 elif test -n "$PKG_CONFIG"; then 19532 if test -n "$PKG_CONFIG" && \ 19533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 \""; } >&5 19534 ($PKG_CONFIG --exists --print-errors " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 ") 2>&5 19535 ac_status=$? 19536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19537 test $ac_status = 0; }; then 19538 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 " 2>/dev/null` 19539 test "x$?" != "x0" && pkg_failed=yes 19540else 19541 pkg_failed=yes 19542fi 19543 else 19544 pkg_failed=untried 19545fi 19546 19547 19548 19549if test $pkg_failed = yes; then 19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19551$as_echo "no" >&6; } 19552 19553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19554 _pkg_short_errors_supported=yes 19555else 19556 _pkg_short_errors_supported=no 19557fi 19558 if test $_pkg_short_errors_supported = yes; then 19559 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 " 2>&1` 19560 else 19561 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-3.0 gthread-2.0 glib-2.0 >= 2.32 gdk-3.0 x11 " 2>&1` 19562 fi 19563 # Put the nasty error message in config.log where it belongs 19564 echo "$GTK3_PKG_ERRORS" >&5 19565 19566 19567 HAVE_GTK3=0 19568 if test "x$gtk3" = xyes ; then 19569 as_fn_error $? "*** GTK3 not found ***" "$LINENO" 5 19570 fi 19571 19572elif test $pkg_failed = untried; then 19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19574$as_echo "no" >&6; } 19575 19576 HAVE_GTK3=0 19577 if test "x$gtk3" = xyes ; then 19578 as_fn_error $? "*** GTK3 not found ***" "$LINENO" 5 19579 fi 19580 19581else 19582 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS 19583 GTK3_LIBS=$pkg_cv_GTK3_LIBS 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19585$as_echo "yes" >&6; } 19586 19587 HAVE_GTK3=1 19588 19589$as_echo "#define HAVE_GTK3 1" >>confdefs.h 19590 19591 19592 GTK3_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0` 19593 GTK3_MODULES_DIR="${libdir}/gtk-3.0/modules" 19594 19595fi 19596else 19597 HAVE_GTK3=0 19598fi 19599 19600 19601 19602 19603 19604 if test "x$HAVE_GTK3" = x1; then 19605 HAVE_GTK3_TRUE= 19606 HAVE_GTK3_FALSE='#' 19607else 19608 HAVE_GTK3_TRUE='#' 19609 HAVE_GTK3_FALSE= 19610fi 19611 19612 19613 if test "x$HAVE_GTK" = x1 -o "x$HAVE_GTK3" = x1; then 19614 HAVE_GTK_ANY_TRUE= 19615 HAVE_GTK_ANY_FALSE='#' 19616else 19617 HAVE_GTK_ANY_TRUE='#' 19618 HAVE_GTK_ANY_FALSE= 19619fi 19620 19621 19622#### TDB cache support (optional) #### 19623 19624# Check whether --enable-tdb was given. 19625if test "${enable_tdb+set}" = set; then : 19626 enableval=$enable_tdb; 19627 case "${enableval}" in 19628 yes) tdb=yes ;; 19629 no) tdb=no ;; 19630 *) as_fn_error $? "bad value ${enableval} for --disable-tdb" "$LINENO" 5 ;; 19631 esac 19632 19633else 19634 tdb=auto 19635fi 19636 19637 19638if test "x${tdb}" != xno ; then 19639 19640pkg_failed=no 19641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDB" >&5 19642$as_echo_n "checking for TDB... " >&6; } 19643 19644if test -n "$TDB_CFLAGS"; then 19645 pkg_cv_TDB_CFLAGS="$TDB_CFLAGS" 19646 elif test -n "$PKG_CONFIG"; then 19647 if test -n "$PKG_CONFIG" && \ 19648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" tdb >= 1.1 \""; } >&5 19649 ($PKG_CONFIG --exists --print-errors " tdb >= 1.1 ") 2>&5 19650 ac_status=$? 19651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19652 test $ac_status = 0; }; then 19653 pkg_cv_TDB_CFLAGS=`$PKG_CONFIG --cflags " tdb >= 1.1 " 2>/dev/null` 19654 test "x$?" != "x0" && pkg_failed=yes 19655else 19656 pkg_failed=yes 19657fi 19658 else 19659 pkg_failed=untried 19660fi 19661if test -n "$TDB_LIBS"; then 19662 pkg_cv_TDB_LIBS="$TDB_LIBS" 19663 elif test -n "$PKG_CONFIG"; then 19664 if test -n "$PKG_CONFIG" && \ 19665 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" tdb >= 1.1 \""; } >&5 19666 ($PKG_CONFIG --exists --print-errors " tdb >= 1.1 ") 2>&5 19667 ac_status=$? 19668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19669 test $ac_status = 0; }; then 19670 pkg_cv_TDB_LIBS=`$PKG_CONFIG --libs " tdb >= 1.1 " 2>/dev/null` 19671 test "x$?" != "x0" && pkg_failed=yes 19672else 19673 pkg_failed=yes 19674fi 19675 else 19676 pkg_failed=untried 19677fi 19678 19679 19680 19681if test $pkg_failed = yes; then 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19683$as_echo "no" >&6; } 19684 19685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19686 _pkg_short_errors_supported=yes 19687else 19688 _pkg_short_errors_supported=no 19689fi 19690 if test $_pkg_short_errors_supported = yes; then 19691 TDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " tdb >= 1.1 " 2>&1` 19692 else 19693 TDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " tdb >= 1.1 " 2>&1` 19694 fi 19695 # Put the nasty error message in config.log where it belongs 19696 echo "$TDB_PKG_ERRORS" >&5 19697 19698 19699 HAVE_TDB=0 19700 if test "x$tdb" = xyes ; then 19701 as_fn_error $? "*** TDB not found ***" "$LINENO" 5 19702 fi 19703 19704elif test $pkg_failed = untried; then 19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19706$as_echo "no" >&6; } 19707 19708 HAVE_TDB=0 19709 if test "x$tdb" = xyes ; then 19710 as_fn_error $? "*** TDB not found ***" "$LINENO" 5 19711 fi 19712 19713else 19714 TDB_CFLAGS=$pkg_cv_TDB_CFLAGS 19715 TDB_LIBS=$pkg_cv_TDB_LIBS 19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19717$as_echo "yes" >&6; } 19718 19719 HAVE_TDB=1 19720 19721$as_echo "#define HAVE_TDB 1" >>confdefs.h 19722 19723 19724fi 19725else 19726 HAVE_TDB=0 19727fi 19728 19729 19730 19731 19732 19733 if test "x$HAVE_TDB" = x1; then 19734 HAVE_TDB_TRUE= 19735 HAVE_TDB_FALSE='#' 19736else 19737 HAVE_TDB_TRUE='#' 19738 HAVE_TDB_FALSE= 19739fi 19740 19741 19742### Global cache support ### 19743 19744# For now, we only support tdb based caching, hence we'll shortcut this here 19745 19746HAVE_CACHE=$HAVE_TDB 19747 19748 if test "x$HAVE_CACHE" = x1; then 19749 HAVE_CACHE_TRUE= 19750 HAVE_CACHE_FALSE='#' 19751else 19752 HAVE_CACHE_TRUE='#' 19753 HAVE_CACHE_FALSE= 19754fi 19755 19756 19757if test "x${HAVE_CACHE}" = x1 ; then 19758 19759$as_echo "#define HAVE_CACHE 1" >>confdefs.h 19760 19761fi 19762 19763# 19764# systemd 19765# 19766 19767# Check whether --with-systemdsystemunitdir was given. 19768if test "${with_systemdsystemunitdir+set}" = set; then : 19769 withval=$with_systemdsystemunitdir; 19770else 19771 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 19772fi 19773 19774if test "x$with_systemdsystemunitdir" != xno; then 19775 systemdsystemunitdir=$with_systemdsystemunitdir 19776 19777fi 19778 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then 19779 HAVE_SYSTEMD_TRUE= 19780 HAVE_SYSTEMD_FALSE='#' 19781else 19782 HAVE_SYSTEMD_TRUE='#' 19783 HAVE_SYSTEMD_FALSE= 19784fi 19785 19786 19787### LYNX documentation generation ### 19788 19789# Check whether --enable-lynx was given. 19790if test "${enable_lynx+set}" = set; then : 19791 enableval=$enable_lynx; 19792 case "${enableval}" in 19793 yes) lynx=yes ;; 19794 no) lynx=no ;; 19795 *) as_fn_error $? "bad value ${enableval} for --disable-lynx" "$LINENO" 5 ;; 19796 esac 19797 19798else 19799 lynx=yes 19800fi 19801 19802 19803if test x$lynx = xyes ; then 19804 # Extract the first word of "lynx", so it can be a program name with args. 19805set dummy lynx; ac_word=$2 19806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19807$as_echo_n "checking for $ac_word... " >&6; } 19808if ${ac_cv_prog_have_lynx+:} false; then : 19809 $as_echo_n "(cached) " >&6 19810else 19811 if test -n "$have_lynx"; then 19812 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test. 19813else 19814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19815for as_dir in $PATH 19816do 19817 IFS=$as_save_IFS 19818 test -z "$as_dir" && as_dir=. 19819 for ac_exec_ext in '' $ac_executable_extensions; do 19820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19821 ac_cv_prog_have_lynx="yes" 19822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19823 break 2 19824 fi 19825done 19826 done 19827IFS=$as_save_IFS 19828 19829 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no" 19830fi 19831fi 19832have_lynx=$ac_cv_prog_have_lynx 19833if test -n "$have_lynx"; then 19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lynx" >&5 19835$as_echo "$have_lynx" >&6; } 19836else 19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19838$as_echo "no" >&6; } 19839fi 19840 19841 19842 19843 if test "x$have_lynx" = xno ; then 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lynx not found, plain text README will not be built ***" >&5 19845$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;} 19846 fi 19847fi 19848 19849 if test "x$have_lynx" = xyes; then 19850 USE_LYNX_TRUE= 19851 USE_LYNX_FALSE='#' 19852else 19853 USE_LYNX_TRUE='#' 19854 USE_LYNX_FALSE= 19855fi 19856 19857 19858### Vorbis (mandatory) ### 19859 19860 19861pkg_failed=no 19862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VORBIS" >&5 19863$as_echo_n "checking for VORBIS... " >&6; } 19864 19865if test -n "$VORBIS_CFLAGS"; then 19866 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS" 19867 elif test -n "$PKG_CONFIG"; then 19868 if test -n "$PKG_CONFIG" && \ 19869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" vorbisfile \""; } >&5 19870 ($PKG_CONFIG --exists --print-errors " vorbisfile ") 2>&5 19871 ac_status=$? 19872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19873 test $ac_status = 0; }; then 19874 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags " vorbisfile " 2>/dev/null` 19875 test "x$?" != "x0" && pkg_failed=yes 19876else 19877 pkg_failed=yes 19878fi 19879 else 19880 pkg_failed=untried 19881fi 19882if test -n "$VORBIS_LIBS"; then 19883 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS" 19884 elif test -n "$PKG_CONFIG"; then 19885 if test -n "$PKG_CONFIG" && \ 19886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" vorbisfile \""; } >&5 19887 ($PKG_CONFIG --exists --print-errors " vorbisfile ") 2>&5 19888 ac_status=$? 19889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19890 test $ac_status = 0; }; then 19891 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs " vorbisfile " 2>/dev/null` 19892 test "x$?" != "x0" && pkg_failed=yes 19893else 19894 pkg_failed=yes 19895fi 19896 else 19897 pkg_failed=untried 19898fi 19899 19900 19901 19902if test $pkg_failed = yes; then 19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19904$as_echo "no" >&6; } 19905 19906if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19907 _pkg_short_errors_supported=yes 19908else 19909 _pkg_short_errors_supported=no 19910fi 19911 if test $_pkg_short_errors_supported = yes; then 19912 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " vorbisfile " 2>&1` 19913 else 19914 VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " vorbisfile " 2>&1` 19915 fi 19916 # Put the nasty error message in config.log where it belongs 19917 echo "$VORBIS_PKG_ERRORS" >&5 19918 19919 as_fn_error $? "Package requirements ( vorbisfile ) were not met: 19920 19921$VORBIS_PKG_ERRORS 19922 19923Consider adjusting the PKG_CONFIG_PATH environment variable if you 19924installed software in a non-standard prefix. 19925 19926Alternatively, you may set the environment variables VORBIS_CFLAGS 19927and VORBIS_LIBS to avoid the need to call pkg-config. 19928See the pkg-config man page for more details." "$LINENO" 5 19929elif test $pkg_failed = untried; then 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19931$as_echo "no" >&6; } 19932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19934as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19935is in your PATH or set the PKG_CONFIG environment variable to the full 19936path to pkg-config. 19937 19938Alternatively, you may set the environment variables VORBIS_CFLAGS 19939and VORBIS_LIBS to avoid the need to call pkg-config. 19940See the pkg-config man page for more details. 19941 19942To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19943See \`config.log' for more details" "$LINENO" 5; } 19944else 19945 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS 19946 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19948$as_echo "yes" >&6; } 19949 19950fi 19951 19952### Chose builtin driver ### 19953 19954 19955# Check whether --with-builtin was given. 19956if test "${with_builtin+set}" = set; then : 19957 withval=$with_builtin; 19958else 19959 with_builtin=dso 19960fi 19961 19962 19963HAVE_DSO=0 19964BUILTIN_DSO=0 19965BUILTIN_PULSE=0 19966BUILTIN_ALSA=0 19967BUILTIN_OSS=0 19968BUILTIN_GSTREAMER=0 19969BUILTIN_NULL=0 19970 19971case "x$with_builtin" in 19972 xpulse) 19973 if test "x$HAVE_PULSE" != x1 ; then 19974 as_fn_error $? "*** PulseAudio selected for builtin driver, but not enabled. ***" "$LINENO" 5 19975 fi 19976 19977 BUILTIN_PULSE=1 19978 HAVE_ALSA=0 19979 HAVE_OSS=0 19980 HAVE_GSTREAMER=0 19981 HAVE_NULL=0 19982 ;; 19983 19984 xalsa) 19985 if test "x$HAVE_ALSA" != x1 ; then 19986 as_fn_error $? "*** ALSA selected for builtin driver, but not enabled. ***" "$LINENO" 5 19987 fi 19988 19989 BUILTIN_ALSA=1 19990 HAVE_OSS=0 19991 HAVE_PULSE=0 19992 HAVE_GSTREAMER=0 19993 HAVE_NULL=0 19994 ;; 19995 19996 xgstreamer) 19997 if test "x$HAVE_GSTREAMER" != x1 ; then 19998 as_fn_error $? "*** GStremaer selected for builtin driver, but not enabled. ***" "$LINENO" 5 19999 fi 20000 20001 BUILTIN_GSTREAMER=1 20002 HAVE_ALSA=0 20003 HAVE_OSS=0 20004 HAVE_PULSE=0 20005 HAVE_NULL=0 20006 ;; 20007 20008 xoss) 20009 if test "x$HAVE_OSS" != x1 ; then 20010 as_fn_error $? "*** OSS selected for builtin driver, but not enabled. ***" "$LINENO" 5 20011 fi 20012 20013 BUILTIN_OSS=1 20014 HAVE_ALSA=0 20015 HAVE_PULSE=0 20016 HAVE_GSTREAMER=0 20017 HAVE_NULL=0 20018 ;; 20019 20020 xnull) 20021 if test "x$HAVE_NULL" != x1 ; then 20022 as_fn_error $? "*** Null output selected for builtin driver, but not enabled. ***" "$LINENO" 5 20023 fi 20024 20025 BUILTIN_NULL=1 20026 HAVE_PULSE=0 20027 HAVE_ALSA=0 20028 HAVE_OSS=0 20029 HAVE_GSTREAMER=0 20030 ;; 20031 20032 xdso) 20033 BUILTIN_DSO=1 20034 HAVE_DSO=1 20035 20036$as_echo "#define HAVE_DSO 1" >>confdefs.h 20037 20038 ;; 20039 20040 *) 20041 as_fn_error $? "*** Unknown driver $with_builtin selected for builtin ***" "$LINENO" 5 20042esac 20043 20044if test "x$HAVE_PULSE" != x1 -a "x$HAVE_ALSA" != x1 -a "x$HAVE_OSS" != x1 -a "x$HAVE_GSTREAMER" != x1 -a "x$HAVE_NULL" != x1 ; then 20045 as_fn_error $? "*** No backend enabled. ***" "$LINENO" 5 20046fi 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 if test "x$HAVE_PULSE" = x1; then 20061 HAVE_PULSE_TRUE= 20062 HAVE_PULSE_FALSE='#' 20063else 20064 HAVE_PULSE_TRUE='#' 20065 HAVE_PULSE_FALSE= 20066fi 20067 20068 if test "x$HAVE_ALSA" = x1; then 20069 HAVE_ALSA_TRUE= 20070 HAVE_ALSA_FALSE='#' 20071else 20072 HAVE_ALSA_TRUE='#' 20073 HAVE_ALSA_FALSE= 20074fi 20075 20076 if test "x$HAVE_OSS" = x1; then 20077 HAVE_OSS_TRUE= 20078 HAVE_OSS_FALSE='#' 20079else 20080 HAVE_OSS_TRUE='#' 20081 HAVE_OSS_FALSE= 20082fi 20083 20084 if test "x$HAVE_GSTREAMER" = x1; then 20085 HAVE_GSTREAMER_TRUE= 20086 HAVE_GSTREAMER_FALSE='#' 20087else 20088 HAVE_GSTREAMER_TRUE='#' 20089 HAVE_GSTREAMER_FALSE= 20090fi 20091 20092 if test "x$HAVE_NULL" = x1; then 20093 HAVE_NULL_TRUE= 20094 HAVE_NULL_FALSE='#' 20095else 20096 HAVE_NULL_TRUE='#' 20097 HAVE_NULL_FALSE= 20098fi 20099 20100 if test "x$BUILTIN_DSO" = x1; then 20101 BUILTIN_DSO_TRUE= 20102 BUILTIN_DSO_FALSE='#' 20103else 20104 BUILTIN_DSO_TRUE='#' 20105 BUILTIN_DSO_FALSE= 20106fi 20107 20108 if test "x$BUILTIN_PULSE" = x1; then 20109 BUILTIN_PULSE_TRUE= 20110 BUILTIN_PULSE_FALSE='#' 20111else 20112 BUILTIN_PULSE_TRUE='#' 20113 BUILTIN_PULSE_FALSE= 20114fi 20115 20116 if test "x$BUILTIN_ALSA" = x1; then 20117 BUILTIN_ALSA_TRUE= 20118 BUILTIN_ALSA_FALSE='#' 20119else 20120 BUILTIN_ALSA_TRUE='#' 20121 BUILTIN_ALSA_FALSE= 20122fi 20123 20124 if test "x$BUILTIN_OSS" = x1; then 20125 BUILTIN_OSS_TRUE= 20126 BUILTIN_OSS_FALSE='#' 20127else 20128 BUILTIN_OSS_TRUE='#' 20129 BUILTIN_OSS_FALSE= 20130fi 20131 20132 if test "x$BUILTIN_GSTREAMER" = x1; then 20133 BUILTIN_GSTREAMER_TRUE= 20134 BUILTIN_GSTREAMER_FALSE='#' 20135else 20136 BUILTIN_GSTREAMER_TRUE='#' 20137 BUILTIN_GSTREAMER_FALSE= 20138fi 20139 20140 if test "x$BUILTIN_NULL" = x1; then 20141 BUILTIN_NULL_TRUE= 20142 BUILTIN_NULL_FALSE='#' 20143else 20144 BUILTIN_NULL_TRUE='#' 20145 BUILTIN_NULL_FALSE= 20146fi 20147 20148 20149CA_MAJOR=0 20150 20151CA_MINOR=30 20152 20153 20154 20155 20156 20157 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 20158set dummy gtkdoc-check; ac_word=$2 20159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20160$as_echo_n "checking for $ac_word... " >&6; } 20161if ${ac_cv_path_GTKDOC_CHECK+:} false; then : 20162 $as_echo_n "(cached) " >&6 20163else 20164 case $GTKDOC_CHECK in 20165 [\\/]* | ?:[\\/]*) 20166 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. 20167 ;; 20168 *) 20169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20170for as_dir in $PATH 20171do 20172 IFS=$as_save_IFS 20173 test -z "$as_dir" && as_dir=. 20174 for ac_exec_ext in '' $ac_executable_extensions; do 20175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20176 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20178 break 2 20179 fi 20180done 20181 done 20182IFS=$as_save_IFS 20183 20184 ;; 20185esac 20186fi 20187GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK 20188if test -n "$GTKDOC_CHECK"; then 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 20190$as_echo "$GTKDOC_CHECK" >&6; } 20191else 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20193$as_echo "no" >&6; } 20194fi 20195 20196 20197 for ac_prog in gtkdoc-rebase 20198do 20199 # Extract the first word of "$ac_prog", so it can be a program name with args. 20200set dummy $ac_prog; ac_word=$2 20201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20202$as_echo_n "checking for $ac_word... " >&6; } 20203if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 20204 $as_echo_n "(cached) " >&6 20205else 20206 case $GTKDOC_REBASE in 20207 [\\/]* | ?:[\\/]*) 20208 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 20209 ;; 20210 *) 20211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20212for as_dir in $PATH 20213do 20214 IFS=$as_save_IFS 20215 test -z "$as_dir" && as_dir=. 20216 for ac_exec_ext in '' $ac_executable_extensions; do 20217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20218 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 20219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20220 break 2 20221 fi 20222done 20223 done 20224IFS=$as_save_IFS 20225 20226 ;; 20227esac 20228fi 20229GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 20230if test -n "$GTKDOC_REBASE"; then 20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 20232$as_echo "$GTKDOC_REBASE" >&6; } 20233else 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20235$as_echo "no" >&6; } 20236fi 20237 20238 20239 test -n "$GTKDOC_REBASE" && break 20240done 20241test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 20242 20243 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 20244set dummy gtkdoc-mkpdf; ac_word=$2 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20246$as_echo_n "checking for $ac_word... " >&6; } 20247if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 20248 $as_echo_n "(cached) " >&6 20249else 20250 case $GTKDOC_MKPDF in 20251 [\\/]* | ?:[\\/]*) 20252 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 20253 ;; 20254 *) 20255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20256for as_dir in $PATH 20257do 20258 IFS=$as_save_IFS 20259 test -z "$as_dir" && as_dir=. 20260 for ac_exec_ext in '' $ac_executable_extensions; do 20261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20262 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 20263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20264 break 2 20265 fi 20266done 20267 done 20268IFS=$as_save_IFS 20269 20270 ;; 20271esac 20272fi 20273GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 20274if test -n "$GTKDOC_MKPDF"; then 20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 20276$as_echo "$GTKDOC_MKPDF" >&6; } 20277else 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20279$as_echo "no" >&6; } 20280fi 20281 20282 20283 20284 20285# Check whether --with-html-dir was given. 20286if test "${with_html_dir+set}" = set; then : 20287 withval=$with_html_dir; 20288else 20289 with_html_dir='${datadir}/gtk-doc/html' 20290fi 20291 20292 HTML_DIR="$with_html_dir" 20293 20294 20295 # Check whether --enable-gtk-doc was given. 20296if test "${enable_gtk_doc+set}" = set; then : 20297 enableval=$enable_gtk_doc; 20298else 20299 enable_gtk_doc=no 20300fi 20301 20302 20303 if test x$enable_gtk_doc = xyes; then 20304 if test -n "$PKG_CONFIG" && \ 20305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.9\""; } >&5 20306 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.9") 2>&5 20307 ac_status=$? 20308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20309 test $ac_status = 0; }; then 20310 : 20311else 20312 as_fn_error $? "You need to have gtk-doc >= 1.9 installed to build $PACKAGE_NAME" "$LINENO" 5 20313fi 20314 if test "x$PACKAGE_NAME" != "xglib"; then 20315 20316pkg_failed=no 20317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 20318$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 20319 20320if test -n "$GTKDOC_DEPS_CFLAGS"; then 20321 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 20322 elif test -n "$PKG_CONFIG"; then 20323 if test -n "$PKG_CONFIG" && \ 20324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 20325 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 20326 ac_status=$? 20327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20328 test $ac_status = 0; }; then 20329 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 20330 test "x$?" != "x0" && pkg_failed=yes 20331else 20332 pkg_failed=yes 20333fi 20334 else 20335 pkg_failed=untried 20336fi 20337if test -n "$GTKDOC_DEPS_LIBS"; then 20338 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 20339 elif test -n "$PKG_CONFIG"; then 20340 if test -n "$PKG_CONFIG" && \ 20341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 20342 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 20343 ac_status=$? 20344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20345 test $ac_status = 0; }; then 20346 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 20347 test "x$?" != "x0" && pkg_failed=yes 20348else 20349 pkg_failed=yes 20350fi 20351 else 20352 pkg_failed=untried 20353fi 20354 20355 20356 20357if test $pkg_failed = yes; then 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20359$as_echo "no" >&6; } 20360 20361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20362 _pkg_short_errors_supported=yes 20363else 20364 _pkg_short_errors_supported=no 20365fi 20366 if test $_pkg_short_errors_supported = yes; then 20367 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 20368 else 20369 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 20370 fi 20371 # Put the nasty error message in config.log where it belongs 20372 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 20373 20374 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met: 20375 20376$GTKDOC_DEPS_PKG_ERRORS 20377 20378Consider adjusting the PKG_CONFIG_PATH environment variable if you 20379installed software in a non-standard prefix. 20380 20381Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS 20382and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. 20383See the pkg-config man page for more details." "$LINENO" 5 20384elif test $pkg_failed = untried; then 20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20386$as_echo "no" >&6; } 20387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20389as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20390is in your PATH or set the PKG_CONFIG environment variable to the full 20391path to pkg-config. 20392 20393Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS 20394and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. 20395See the pkg-config man page for more details. 20396 20397To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20398See \`config.log' for more details" "$LINENO" 5; } 20399else 20400 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 20401 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20403$as_echo "yes" >&6; } 20404 20405fi 20406 fi 20407 fi 20408 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 20410$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 20412$as_echo "$enable_gtk_doc" >&6; } 20413 20414 # Check whether --enable-gtk-doc-html was given. 20415if test "${enable_gtk_doc_html+set}" = set; then : 20416 enableval=$enable_gtk_doc_html; 20417else 20418 enable_gtk_doc_html=yes 20419fi 20420 20421 # Check whether --enable-gtk-doc-pdf was given. 20422if test "${enable_gtk_doc_pdf+set}" = set; then : 20423 enableval=$enable_gtk_doc_pdf; 20424else 20425 enable_gtk_doc_pdf=no 20426fi 20427 20428 20429 if test -z "$GTKDOC_MKPDF"; then 20430 enable_gtk_doc_pdf=no 20431 fi 20432 20433 20434 if test x$enable_gtk_doc = xyes; then 20435 ENABLE_GTK_DOC_TRUE= 20436 ENABLE_GTK_DOC_FALSE='#' 20437else 20438 ENABLE_GTK_DOC_TRUE='#' 20439 ENABLE_GTK_DOC_FALSE= 20440fi 20441 20442 if test x$enable_gtk_doc_html = xyes; then 20443 GTK_DOC_BUILD_HTML_TRUE= 20444 GTK_DOC_BUILD_HTML_FALSE='#' 20445else 20446 GTK_DOC_BUILD_HTML_TRUE='#' 20447 GTK_DOC_BUILD_HTML_FALSE= 20448fi 20449 20450 if test x$enable_gtk_doc_pdf = xyes; then 20451 GTK_DOC_BUILD_PDF_TRUE= 20452 GTK_DOC_BUILD_PDF_FALSE='#' 20453else 20454 GTK_DOC_BUILD_PDF_TRUE='#' 20455 GTK_DOC_BUILD_PDF_FALSE= 20456fi 20457 20458 if test -n "$LIBTOOL"; then 20459 GTK_DOC_USE_LIBTOOL_TRUE= 20460 GTK_DOC_USE_LIBTOOL_FALSE='#' 20461else 20462 GTK_DOC_USE_LIBTOOL_TRUE='#' 20463 GTK_DOC_USE_LIBTOOL_FALSE= 20464fi 20465 20466 if test -n "$GTKDOC_REBASE"; then 20467 GTK_DOC_USE_REBASE_TRUE= 20468 GTK_DOC_USE_REBASE_FALSE='#' 20469else 20470 GTK_DOC_USE_REBASE_TRUE='#' 20471 GTK_DOC_USE_REBASE_FALSE= 20472fi 20473 20474 20475 20476################################### 20477# Output # 20478################################### 20479 20480ac_config_files="$ac_config_files Makefile src/Makefile libcanberra.pc libcanberra-gtk.pc libcanberra-gtk3.pc src/canberra.h gtkdoc/Makefile doc/Makefile doc/README.html" 20481 20482cat >confcache <<\_ACEOF 20483# This file is a shell script that caches the results of configure 20484# tests run on this system so they can be shared between configure 20485# scripts and configure runs, see configure's option --config-cache. 20486# It is not useful on other systems. If it contains results you don't 20487# want to keep, you may remove or edit it. 20488# 20489# config.status only pays attention to the cache file if you give it 20490# the --recheck option to rerun configure. 20491# 20492# `ac_cv_env_foo' variables (set or unset) will be overridden when 20493# loading this file, other *unset* `ac_cv_foo' will be assigned the 20494# following values. 20495 20496_ACEOF 20497 20498# The following way of writing the cache mishandles newlines in values, 20499# but we know of no workaround that is simple, portable, and efficient. 20500# So, we kill variables containing newlines. 20501# Ultrix sh set writes to stderr and can't be redirected directly, 20502# and sets the high bit in the cache file unless we assign to the vars. 20503( 20504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20505 eval ac_val=\$$ac_var 20506 case $ac_val in #( 20507 *${as_nl}*) 20508 case $ac_var in #( 20509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20511 esac 20512 case $ac_var in #( 20513 _ | IFS | as_nl) ;; #( 20514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20515 *) { eval $ac_var=; unset $ac_var;} ;; 20516 esac ;; 20517 esac 20518 done 20519 20520 (set) 2>&1 | 20521 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20522 *${as_nl}ac_space=\ *) 20523 # `set' does not quote correctly, so add quotes: double-quote 20524 # substitution turns \\\\ into \\, and sed turns \\ into \. 20525 sed -n \ 20526 "s/'/'\\\\''/g; 20527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20528 ;; #( 20529 *) 20530 # `set' quotes correctly as required by POSIX, so do not add quotes. 20531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20532 ;; 20533 esac | 20534 sort 20535) | 20536 sed ' 20537 /^ac_cv_env_/b end 20538 t clear 20539 :clear 20540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20541 t end 20542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20543 :end' >>confcache 20544if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20545 if test -w "$cache_file"; then 20546 if test "x$cache_file" != "x/dev/null"; then 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20548$as_echo "$as_me: updating cache $cache_file" >&6;} 20549 if test ! -f "$cache_file" || test -h "$cache_file"; then 20550 cat confcache >"$cache_file" 20551 else 20552 case $cache_file in #( 20553 */* | ?:*) 20554 mv -f confcache "$cache_file"$$ && 20555 mv -f "$cache_file"$$ "$cache_file" ;; #( 20556 *) 20557 mv -f confcache "$cache_file" ;; 20558 esac 20559 fi 20560 fi 20561 else 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20563$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20564 fi 20565fi 20566rm -f confcache 20567 20568test "x$prefix" = xNONE && prefix=$ac_default_prefix 20569# Let make expand exec_prefix. 20570test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20571 20572DEFS=-DHAVE_CONFIG_H 20573 20574ac_libobjs= 20575ac_ltlibobjs= 20576U= 20577for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20578 # 1. Remove the extension, and $U if already installed. 20579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20580 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20582 # will be set to the directory where LIBOBJS objects are built. 20583 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20584 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20585done 20586LIBOBJS=$ac_libobjs 20587 20588LTLIBOBJS=$ac_ltlibobjs 20589 20590 20591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20592$as_echo_n "checking that generated files are newer than configure... " >&6; } 20593 if test -n "$am_sleep_pid"; then 20594 # Hide warnings about reused PIDs. 20595 wait $am_sleep_pid 2>/dev/null 20596 fi 20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20598$as_echo "done" >&6; } 20599 if test -n "$EXEEXT"; then 20600 am__EXEEXT_TRUE= 20601 am__EXEEXT_FALSE='#' 20602else 20603 am__EXEEXT_TRUE='#' 20604 am__EXEEXT_FALSE= 20605fi 20606 20607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20608 as_fn_error $? "conditional \"AMDEP\" was never defined. 20609Usually this means the macro was only invoked conditionally." "$LINENO" 5 20610fi 20611if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20612 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20613Usually this means the macro was only invoked conditionally." "$LINENO" 5 20614fi 20615if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20617Usually this means the macro was only invoked conditionally." "$LINENO" 5 20618fi 20619if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20620 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20621Usually this means the macro was only invoked conditionally." "$LINENO" 5 20622fi 20623if test -z "${OS_IS_WIN32_TRUE}" && test -z "${OS_IS_WIN32_FALSE}"; then 20624 as_fn_error $? "conditional \"OS_IS_WIN32\" was never defined. 20625Usually this means the macro was only invoked conditionally." "$LINENO" 5 20626fi 20627if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then 20628 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined. 20629Usually this means the macro was only invoked conditionally." "$LINENO" 5 20630fi 20631 20632if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then 20633 as_fn_error $? "conditional \"HAVE_UDEV\" was never defined. 20634Usually this means the macro was only invoked conditionally." "$LINENO" 5 20635fi 20636if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20637 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20638Usually this means the macro was only invoked conditionally." "$LINENO" 5 20639fi 20640if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then 20641 as_fn_error $? "conditional \"HAVE_GTK\" was never defined. 20642Usually this means the macro was only invoked conditionally." "$LINENO" 5 20643fi 20644if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then 20645 as_fn_error $? "conditional \"HAVE_GTK3\" was never defined. 20646Usually this means the macro was only invoked conditionally." "$LINENO" 5 20647fi 20648if test -z "${HAVE_GTK_ANY_TRUE}" && test -z "${HAVE_GTK_ANY_FALSE}"; then 20649 as_fn_error $? "conditional \"HAVE_GTK_ANY\" was never defined. 20650Usually this means the macro was only invoked conditionally." "$LINENO" 5 20651fi 20652if test -z "${HAVE_TDB_TRUE}" && test -z "${HAVE_TDB_FALSE}"; then 20653 as_fn_error $? "conditional \"HAVE_TDB\" was never defined. 20654Usually this means the macro was only invoked conditionally." "$LINENO" 5 20655fi 20656if test -z "${HAVE_CACHE_TRUE}" && test -z "${HAVE_CACHE_FALSE}"; then 20657 as_fn_error $? "conditional \"HAVE_CACHE\" was never defined. 20658Usually this means the macro was only invoked conditionally." "$LINENO" 5 20659fi 20660if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then 20661 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. 20662Usually this means the macro was only invoked conditionally." "$LINENO" 5 20663fi 20664if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then 20665 as_fn_error $? "conditional \"USE_LYNX\" was never defined. 20666Usually this means the macro was only invoked conditionally." "$LINENO" 5 20667fi 20668if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then 20669 as_fn_error $? "conditional \"HAVE_PULSE\" was never defined. 20670Usually this means the macro was only invoked conditionally." "$LINENO" 5 20671fi 20672if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then 20673 as_fn_error $? "conditional \"HAVE_ALSA\" was never defined. 20674Usually this means the macro was only invoked conditionally." "$LINENO" 5 20675fi 20676if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then 20677 as_fn_error $? "conditional \"HAVE_OSS\" was never defined. 20678Usually this means the macro was only invoked conditionally." "$LINENO" 5 20679fi 20680if test -z "${HAVE_GSTREAMER_TRUE}" && test -z "${HAVE_GSTREAMER_FALSE}"; then 20681 as_fn_error $? "conditional \"HAVE_GSTREAMER\" was never defined. 20682Usually this means the macro was only invoked conditionally." "$LINENO" 5 20683fi 20684if test -z "${HAVE_NULL_TRUE}" && test -z "${HAVE_NULL_FALSE}"; then 20685 as_fn_error $? "conditional \"HAVE_NULL\" was never defined. 20686Usually this means the macro was only invoked conditionally." "$LINENO" 5 20687fi 20688if test -z "${BUILTIN_DSO_TRUE}" && test -z "${BUILTIN_DSO_FALSE}"; then 20689 as_fn_error $? "conditional \"BUILTIN_DSO\" was never defined. 20690Usually this means the macro was only invoked conditionally." "$LINENO" 5 20691fi 20692if test -z "${BUILTIN_PULSE_TRUE}" && test -z "${BUILTIN_PULSE_FALSE}"; then 20693 as_fn_error $? "conditional \"BUILTIN_PULSE\" was never defined. 20694Usually this means the macro was only invoked conditionally." "$LINENO" 5 20695fi 20696if test -z "${BUILTIN_ALSA_TRUE}" && test -z "${BUILTIN_ALSA_FALSE}"; then 20697 as_fn_error $? "conditional \"BUILTIN_ALSA\" was never defined. 20698Usually this means the macro was only invoked conditionally." "$LINENO" 5 20699fi 20700if test -z "${BUILTIN_OSS_TRUE}" && test -z "${BUILTIN_OSS_FALSE}"; then 20701 as_fn_error $? "conditional \"BUILTIN_OSS\" was never defined. 20702Usually this means the macro was only invoked conditionally." "$LINENO" 5 20703fi 20704if test -z "${BUILTIN_GSTREAMER_TRUE}" && test -z "${BUILTIN_GSTREAMER_FALSE}"; then 20705 as_fn_error $? "conditional \"BUILTIN_GSTREAMER\" was never defined. 20706Usually this means the macro was only invoked conditionally." "$LINENO" 5 20707fi 20708if test -z "${BUILTIN_NULL_TRUE}" && test -z "${BUILTIN_NULL_FALSE}"; then 20709 as_fn_error $? "conditional \"BUILTIN_NULL\" was never defined. 20710Usually this means the macro was only invoked conditionally." "$LINENO" 5 20711fi 20712if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 20713 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 20714Usually this means the macro was only invoked conditionally." "$LINENO" 5 20715fi 20716if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 20717 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 20718Usually this means the macro was only invoked conditionally." "$LINENO" 5 20719fi 20720if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 20721 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 20722Usually this means the macro was only invoked conditionally." "$LINENO" 5 20723fi 20724if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 20725 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 20726Usually this means the macro was only invoked conditionally." "$LINENO" 5 20727fi 20728if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 20729 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 20730Usually this means the macro was only invoked conditionally." "$LINENO" 5 20731fi 20732 20733: "${CONFIG_STATUS=./config.status}" 20734ac_write_fail=0 20735ac_clean_files_save=$ac_clean_files 20736ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20737{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20738$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20739as_write_fail=0 20740cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20741#! $SHELL 20742# Generated by $as_me. 20743# Run this file to recreate the current configuration. 20744# Compiler output produced by configure, useful for debugging 20745# configure, is in config.log if it exists. 20746 20747debug=false 20748ac_cs_recheck=false 20749ac_cs_silent=false 20750 20751SHELL=\${CONFIG_SHELL-$SHELL} 20752export SHELL 20753_ASEOF 20754cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20755## -------------------- ## 20756## M4sh Initialization. ## 20757## -------------------- ## 20758 20759# Be more Bourne compatible 20760DUALCASE=1; export DUALCASE # for MKS sh 20761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20762 emulate sh 20763 NULLCMD=: 20764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20765 # is contrary to our usage. Disable this feature. 20766 alias -g '${1+"$@"}'='"$@"' 20767 setopt NO_GLOB_SUBST 20768else 20769 case `(set -o) 2>/dev/null` in #( 20770 *posix*) : 20771 set -o posix ;; #( 20772 *) : 20773 ;; 20774esac 20775fi 20776 20777 20778as_nl=' 20779' 20780export as_nl 20781# Printing a long string crashes Solaris 7 /usr/bin/printf. 20782as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20784as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20785# Prefer a ksh shell builtin over an external printf program on Solaris, 20786# but without wasting forks for bash or zsh. 20787if test -z "$BASH_VERSION$ZSH_VERSION" \ 20788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20789 as_echo='print -r --' 20790 as_echo_n='print -rn --' 20791elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20792 as_echo='printf %s\n' 20793 as_echo_n='printf %s' 20794else 20795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20797 as_echo_n='/usr/ucb/echo -n' 20798 else 20799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20800 as_echo_n_body='eval 20801 arg=$1; 20802 case $arg in #( 20803 *"$as_nl"*) 20804 expr "X$arg" : "X\\(.*\\)$as_nl"; 20805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20806 esac; 20807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20808 ' 20809 export as_echo_n_body 20810 as_echo_n='sh -c $as_echo_n_body as_echo' 20811 fi 20812 export as_echo_body 20813 as_echo='sh -c $as_echo_body as_echo' 20814fi 20815 20816# The user is always right. 20817if test "${PATH_SEPARATOR+set}" != set; then 20818 PATH_SEPARATOR=: 20819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20821 PATH_SEPARATOR=';' 20822 } 20823fi 20824 20825 20826# IFS 20827# We need space, tab and new line, in precisely that order. Quoting is 20828# there to prevent editors from complaining about space-tab. 20829# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20830# splitting by setting IFS to empty value.) 20831IFS=" "" $as_nl" 20832 20833# Find who we are. Look in the path if we contain no directory separator. 20834as_myself= 20835case $0 in #(( 20836 *[\\/]* ) as_myself=$0 ;; 20837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20838for as_dir in $PATH 20839do 20840 IFS=$as_save_IFS 20841 test -z "$as_dir" && as_dir=. 20842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20843 done 20844IFS=$as_save_IFS 20845 20846 ;; 20847esac 20848# We did not find ourselves, most probably we were run as `sh COMMAND' 20849# in which case we are not to be found in the path. 20850if test "x$as_myself" = x; then 20851 as_myself=$0 20852fi 20853if test ! -f "$as_myself"; then 20854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20855 exit 1 20856fi 20857 20858# Unset variables that we do not need and which cause bugs (e.g. in 20859# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20860# suppresses any "Segmentation fault" message there. '((' could 20861# trigger a bug in pdksh 5.2.14. 20862for as_var in BASH_ENV ENV MAIL MAILPATH 20863do eval test x\${$as_var+set} = xset \ 20864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20865done 20866PS1='$ ' 20867PS2='> ' 20868PS4='+ ' 20869 20870# NLS nuisances. 20871LC_ALL=C 20872export LC_ALL 20873LANGUAGE=C 20874export LANGUAGE 20875 20876# CDPATH. 20877(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20878 20879 20880# as_fn_error STATUS ERROR [LINENO LOG_FD] 20881# ---------------------------------------- 20882# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20883# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20884# script with STATUS, using 1 if that was 0. 20885as_fn_error () 20886{ 20887 as_status=$1; test $as_status -eq 0 && as_status=1 20888 if test "$4"; then 20889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20891 fi 20892 $as_echo "$as_me: error: $2" >&2 20893 as_fn_exit $as_status 20894} # as_fn_error 20895 20896 20897# as_fn_set_status STATUS 20898# ----------------------- 20899# Set $? to STATUS, without forking. 20900as_fn_set_status () 20901{ 20902 return $1 20903} # as_fn_set_status 20904 20905# as_fn_exit STATUS 20906# ----------------- 20907# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20908as_fn_exit () 20909{ 20910 set +e 20911 as_fn_set_status $1 20912 exit $1 20913} # as_fn_exit 20914 20915# as_fn_unset VAR 20916# --------------- 20917# Portably unset VAR. 20918as_fn_unset () 20919{ 20920 { eval $1=; unset $1;} 20921} 20922as_unset=as_fn_unset 20923# as_fn_append VAR VALUE 20924# ---------------------- 20925# Append the text in VALUE to the end of the definition contained in VAR. Take 20926# advantage of any shell optimizations that allow amortized linear growth over 20927# repeated appends, instead of the typical quadratic growth present in naive 20928# implementations. 20929if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20930 eval 'as_fn_append () 20931 { 20932 eval $1+=\$2 20933 }' 20934else 20935 as_fn_append () 20936 { 20937 eval $1=\$$1\$2 20938 } 20939fi # as_fn_append 20940 20941# as_fn_arith ARG... 20942# ------------------ 20943# Perform arithmetic evaluation on the ARGs, and store the result in the 20944# global $as_val. Take advantage of shells that can avoid forks. The arguments 20945# must be portable across $(()) and expr. 20946if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20947 eval 'as_fn_arith () 20948 { 20949 as_val=$(( $* )) 20950 }' 20951else 20952 as_fn_arith () 20953 { 20954 as_val=`expr "$@" || test $? -eq 1` 20955 } 20956fi # as_fn_arith 20957 20958 20959if expr a : '\(a\)' >/dev/null 2>&1 && 20960 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20961 as_expr=expr 20962else 20963 as_expr=false 20964fi 20965 20966if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20967 as_basename=basename 20968else 20969 as_basename=false 20970fi 20971 20972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20973 as_dirname=dirname 20974else 20975 as_dirname=false 20976fi 20977 20978as_me=`$as_basename -- "$0" || 20979$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20980 X"$0" : 'X\(//\)$' \| \ 20981 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20982$as_echo X/"$0" | 20983 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20984 s//\1/ 20985 q 20986 } 20987 /^X\/\(\/\/\)$/{ 20988 s//\1/ 20989 q 20990 } 20991 /^X\/\(\/\).*/{ 20992 s//\1/ 20993 q 20994 } 20995 s/.*/./; q'` 20996 20997# Avoid depending upon Character Ranges. 20998as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20999as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21000as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21001as_cr_digits='0123456789' 21002as_cr_alnum=$as_cr_Letters$as_cr_digits 21003 21004ECHO_C= ECHO_N= ECHO_T= 21005case `echo -n x` in #((((( 21006-n*) 21007 case `echo 'xy\c'` in 21008 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21009 xy) ECHO_C='\c';; 21010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21011 ECHO_T=' ';; 21012 esac;; 21013*) 21014 ECHO_N='-n';; 21015esac 21016 21017rm -f conf$$ conf$$.exe conf$$.file 21018if test -d conf$$.dir; then 21019 rm -f conf$$.dir/conf$$.file 21020else 21021 rm -f conf$$.dir 21022 mkdir conf$$.dir 2>/dev/null 21023fi 21024if (echo >conf$$.file) 2>/dev/null; then 21025 if ln -s conf$$.file conf$$ 2>/dev/null; then 21026 as_ln_s='ln -s' 21027 # ... but there are two gotchas: 21028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21030 # In both cases, we have to default to `cp -pR'. 21031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21032 as_ln_s='cp -pR' 21033 elif ln conf$$.file conf$$ 2>/dev/null; then 21034 as_ln_s=ln 21035 else 21036 as_ln_s='cp -pR' 21037 fi 21038else 21039 as_ln_s='cp -pR' 21040fi 21041rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21042rmdir conf$$.dir 2>/dev/null 21043 21044 21045# as_fn_mkdir_p 21046# ------------- 21047# Create "$as_dir" as a directory, including parents if necessary. 21048as_fn_mkdir_p () 21049{ 21050 21051 case $as_dir in #( 21052 -*) as_dir=./$as_dir;; 21053 esac 21054 test -d "$as_dir" || eval $as_mkdir_p || { 21055 as_dirs= 21056 while :; do 21057 case $as_dir in #( 21058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21059 *) as_qdir=$as_dir;; 21060 esac 21061 as_dirs="'$as_qdir' $as_dirs" 21062 as_dir=`$as_dirname -- "$as_dir" || 21063$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21064 X"$as_dir" : 'X\(//\)[^/]' \| \ 21065 X"$as_dir" : 'X\(//\)$' \| \ 21066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21067$as_echo X"$as_dir" | 21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21069 s//\1/ 21070 q 21071 } 21072 /^X\(\/\/\)[^/].*/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\(\/\/\)$/{ 21077 s//\1/ 21078 q 21079 } 21080 /^X\(\/\).*/{ 21081 s//\1/ 21082 q 21083 } 21084 s/.*/./; q'` 21085 test -d "$as_dir" && break 21086 done 21087 test -z "$as_dirs" || eval "mkdir $as_dirs" 21088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21089 21090 21091} # as_fn_mkdir_p 21092if mkdir -p . 2>/dev/null; then 21093 as_mkdir_p='mkdir -p "$as_dir"' 21094else 21095 test -d ./-p && rmdir ./-p 21096 as_mkdir_p=false 21097fi 21098 21099 21100# as_fn_executable_p FILE 21101# ----------------------- 21102# Test if FILE is an executable regular file. 21103as_fn_executable_p () 21104{ 21105 test -f "$1" && test -x "$1" 21106} # as_fn_executable_p 21107as_test_x='test -x' 21108as_executable_p=as_fn_executable_p 21109 21110# Sed expression to map a string onto a valid CPP name. 21111as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21112 21113# Sed expression to map a string onto a valid variable name. 21114as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21115 21116 21117exec 6>&1 21118## ----------------------------------- ## 21119## Main body of $CONFIG_STATUS script. ## 21120## ----------------------------------- ## 21121_ASEOF 21122test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21123 21124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21125# Save the log message, to keep $0 and so on meaningful, and to 21126# report actual input values of CONFIG_FILES etc. instead of their 21127# values after options handling. 21128ac_log=" 21129This file was extended by libcanberra $as_me 0.30, which was 21130generated by GNU Autoconf 2.69. Invocation command line was 21131 21132 CONFIG_FILES = $CONFIG_FILES 21133 CONFIG_HEADERS = $CONFIG_HEADERS 21134 CONFIG_LINKS = $CONFIG_LINKS 21135 CONFIG_COMMANDS = $CONFIG_COMMANDS 21136 $ $0 $@ 21137 21138on `(hostname || uname -n) 2>/dev/null | sed 1q` 21139" 21140 21141_ACEOF 21142 21143case $ac_config_files in *" 21144"*) set x $ac_config_files; shift; ac_config_files=$*;; 21145esac 21146 21147case $ac_config_headers in *" 21148"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21149esac 21150 21151 21152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21153# Files that config.status was made for. 21154config_files="$ac_config_files" 21155config_headers="$ac_config_headers" 21156config_commands="$ac_config_commands" 21157 21158_ACEOF 21159 21160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21161ac_cs_usage="\ 21162\`$as_me' instantiates files and other configuration actions 21163from templates according to the current configuration. Unless the files 21164and actions are specified as TAGs, all are instantiated by default. 21165 21166Usage: $0 [OPTION]... [TAG]... 21167 21168 -h, --help print this help, then exit 21169 -V, --version print version number and configuration settings, then exit 21170 --config print configuration, then exit 21171 -q, --quiet, --silent 21172 do not print progress messages 21173 -d, --debug don't remove temporary files 21174 --recheck update $as_me by reconfiguring in the same conditions 21175 --file=FILE[:TEMPLATE] 21176 instantiate the configuration file FILE 21177 --header=FILE[:TEMPLATE] 21178 instantiate the configuration header FILE 21179 21180Configuration files: 21181$config_files 21182 21183Configuration headers: 21184$config_headers 21185 21186Configuration commands: 21187$config_commands 21188 21189Report bugs to <mzyvopnaoreen (at) 0pointer (dot) de>. 21190libcanberra home page: <http://0pointer.de/lennart/projects/libcanberra/>." 21191 21192_ACEOF 21193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21194ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21195ac_cs_version="\\ 21196libcanberra config.status 0.30 21197configured by $0, generated by GNU Autoconf 2.69, 21198 with options \\"\$ac_cs_config\\" 21199 21200Copyright (C) 2012 Free Software Foundation, Inc. 21201This config.status script is free software; the Free Software Foundation 21202gives unlimited permission to copy, distribute and modify it." 21203 21204ac_pwd='$ac_pwd' 21205srcdir='$srcdir' 21206INSTALL='$INSTALL' 21207MKDIR_P='$MKDIR_P' 21208AWK='$AWK' 21209test -n "\$AWK" || AWK=awk 21210_ACEOF 21211 21212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21213# The default lists apply if the user does not specify any file. 21214ac_need_defaults=: 21215while test $# != 0 21216do 21217 case $1 in 21218 --*=?*) 21219 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21221 ac_shift=: 21222 ;; 21223 --*=) 21224 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21225 ac_optarg= 21226 ac_shift=: 21227 ;; 21228 *) 21229 ac_option=$1 21230 ac_optarg=$2 21231 ac_shift=shift 21232 ;; 21233 esac 21234 21235 case $ac_option in 21236 # Handling of the options. 21237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21238 ac_cs_recheck=: ;; 21239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21240 $as_echo "$ac_cs_version"; exit ;; 21241 --config | --confi | --conf | --con | --co | --c ) 21242 $as_echo "$ac_cs_config"; exit ;; 21243 --debug | --debu | --deb | --de | --d | -d ) 21244 debug=: ;; 21245 --file | --fil | --fi | --f ) 21246 $ac_shift 21247 case $ac_optarg in 21248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21249 '') as_fn_error $? "missing file argument" ;; 21250 esac 21251 as_fn_append CONFIG_FILES " '$ac_optarg'" 21252 ac_need_defaults=false;; 21253 --header | --heade | --head | --hea ) 21254 $ac_shift 21255 case $ac_optarg in 21256 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21257 esac 21258 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21259 ac_need_defaults=false;; 21260 --he | --h) 21261 # Conflict between --help and --header 21262 as_fn_error $? "ambiguous option: \`$1' 21263Try \`$0 --help' for more information.";; 21264 --help | --hel | -h ) 21265 $as_echo "$ac_cs_usage"; exit ;; 21266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21267 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21268 ac_cs_silent=: ;; 21269 21270 # This is an error. 21271 -*) as_fn_error $? "unrecognized option: \`$1' 21272Try \`$0 --help' for more information." ;; 21273 21274 *) as_fn_append ac_config_targets " $1" 21275 ac_need_defaults=false ;; 21276 21277 esac 21278 shift 21279done 21280 21281ac_configure_extra_args= 21282 21283if $ac_cs_silent; then 21284 exec 6>/dev/null 21285 ac_configure_extra_args="$ac_configure_extra_args --silent" 21286fi 21287 21288_ACEOF 21289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21290if \$ac_cs_recheck; then 21291 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21292 shift 21293 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21294 CONFIG_SHELL='$SHELL' 21295 export CONFIG_SHELL 21296 exec "\$@" 21297fi 21298 21299_ACEOF 21300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21301exec 5>>config.log 21302{ 21303 echo 21304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21305## Running $as_me. ## 21306_ASBOX 21307 $as_echo "$ac_log" 21308} >&5 21309 21310_ACEOF 21311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21312# 21313# INIT-COMMANDS 21314# 21315AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21316 21317 21318# The HP-UX ksh and POSIX shell print the target directory to stdout 21319# if CDPATH is set. 21320(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21321 21322sed_quote_subst='$sed_quote_subst' 21323double_quote_subst='$double_quote_subst' 21324delay_variable_subst='$delay_variable_subst' 21325macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21326macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21327AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21328DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21329OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21330enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21331enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21332pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21333enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21334SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21335ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21336PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21337host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21338host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21339host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21340build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21341build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21342build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21343SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21344Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21345GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21346EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21347FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21348LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21349NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21350LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21351max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21352ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21353exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21354lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21355lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21356lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21357lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21358lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21359reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21360reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21361deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21362file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21363file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21364want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21365sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21366AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21367AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21368archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21369STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21370RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21371old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21372old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21373old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21374lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21375CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21376CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21377compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21378GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21379lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21380lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21381lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21382lt_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"`' 21383nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21384lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21385objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21386MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21387lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21388lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21389lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21390lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21391lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21392need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21393MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21394DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21395NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21396LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21397OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21398OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21399libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21400shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21401extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21402archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21403enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21404export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21405whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21406compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21407old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21408old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21409archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21410archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21411module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21412module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21413with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21414allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21415no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21416hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21417hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21418hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21419hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21420hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21421hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21422hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21423inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21424link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21425always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21426export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21427exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21428include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21429prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21430postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21431file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21432variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21433need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21434need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21435version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21436runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21437shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21438shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21439libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21440library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21441soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21442install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21443postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21444postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21445finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21446finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21447hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21448sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21449sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21450hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21451enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21452enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21453enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21454old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21455striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21456compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21457predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21458postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21459predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21460postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21461compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21462LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21463reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21464reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21465old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21466compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21467GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21468lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21469lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21470lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21471lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21472lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21473archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21474enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21475export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21476whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21477compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21478old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21479old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21480archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21481archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21482module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21483module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21484with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21485allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21486no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21487hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21488hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21489hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21490hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21491hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21492hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21493hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21494inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21495link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21496always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21497export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21498exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21499include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21500prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21501postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21502file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21503hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21504compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21505predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21506postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21507predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21508postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21509compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21510 21511LTCC='$LTCC' 21512LTCFLAGS='$LTCFLAGS' 21513compiler='$compiler_DEFAULT' 21514 21515# A function that is used when there is no print builtin or printf. 21516func_fallback_echo () 21517{ 21518 eval 'cat <<_LTECHO_EOF 21519\$1 21520_LTECHO_EOF' 21521} 21522 21523# Quote evaled strings. 21524for var in AS \ 21525DLLTOOL \ 21526OBJDUMP \ 21527SHELL \ 21528ECHO \ 21529PATH_SEPARATOR \ 21530SED \ 21531GREP \ 21532EGREP \ 21533FGREP \ 21534LD \ 21535NM \ 21536LN_S \ 21537lt_SP2NL \ 21538lt_NL2SP \ 21539reload_flag \ 21540deplibs_check_method \ 21541file_magic_cmd \ 21542file_magic_glob \ 21543want_nocaseglob \ 21544sharedlib_from_linklib_cmd \ 21545AR \ 21546AR_FLAGS \ 21547archiver_list_spec \ 21548STRIP \ 21549RANLIB \ 21550CC \ 21551CFLAGS \ 21552compiler \ 21553lt_cv_sys_global_symbol_pipe \ 21554lt_cv_sys_global_symbol_to_cdecl \ 21555lt_cv_sys_global_symbol_to_c_name_address \ 21556lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21557nm_file_list_spec \ 21558lt_prog_compiler_no_builtin_flag \ 21559lt_prog_compiler_pic \ 21560lt_prog_compiler_wl \ 21561lt_prog_compiler_static \ 21562lt_cv_prog_compiler_c_o \ 21563need_locks \ 21564MANIFEST_TOOL \ 21565DSYMUTIL \ 21566NMEDIT \ 21567LIPO \ 21568OTOOL \ 21569OTOOL64 \ 21570shrext_cmds \ 21571export_dynamic_flag_spec \ 21572whole_archive_flag_spec \ 21573compiler_needs_object \ 21574with_gnu_ld \ 21575allow_undefined_flag \ 21576no_undefined_flag \ 21577hardcode_libdir_flag_spec \ 21578hardcode_libdir_separator \ 21579exclude_expsyms \ 21580include_expsyms \ 21581file_list_spec \ 21582variables_saved_for_relink \ 21583libname_spec \ 21584library_names_spec \ 21585soname_spec \ 21586install_override_mode \ 21587finish_eval \ 21588old_striplib \ 21589striplib \ 21590compiler_lib_search_dirs \ 21591predep_objects \ 21592postdep_objects \ 21593predeps \ 21594postdeps \ 21595compiler_lib_search_path \ 21596LD_CXX \ 21597reload_flag_CXX \ 21598compiler_CXX \ 21599lt_prog_compiler_no_builtin_flag_CXX \ 21600lt_prog_compiler_pic_CXX \ 21601lt_prog_compiler_wl_CXX \ 21602lt_prog_compiler_static_CXX \ 21603lt_cv_prog_compiler_c_o_CXX \ 21604export_dynamic_flag_spec_CXX \ 21605whole_archive_flag_spec_CXX \ 21606compiler_needs_object_CXX \ 21607with_gnu_ld_CXX \ 21608allow_undefined_flag_CXX \ 21609no_undefined_flag_CXX \ 21610hardcode_libdir_flag_spec_CXX \ 21611hardcode_libdir_separator_CXX \ 21612exclude_expsyms_CXX \ 21613include_expsyms_CXX \ 21614file_list_spec_CXX \ 21615compiler_lib_search_dirs_CXX \ 21616predep_objects_CXX \ 21617postdep_objects_CXX \ 21618predeps_CXX \ 21619postdeps_CXX \ 21620compiler_lib_search_path_CXX; do 21621 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21622 *[\\\\\\\`\\"\\\$]*) 21623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21624 ;; 21625 *) 21626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21627 ;; 21628 esac 21629done 21630 21631# Double-quote double-evaled strings. 21632for var in reload_cmds \ 21633old_postinstall_cmds \ 21634old_postuninstall_cmds \ 21635old_archive_cmds \ 21636extract_expsyms_cmds \ 21637old_archive_from_new_cmds \ 21638old_archive_from_expsyms_cmds \ 21639archive_cmds \ 21640archive_expsym_cmds \ 21641module_cmds \ 21642module_expsym_cmds \ 21643export_symbols_cmds \ 21644prelink_cmds \ 21645postlink_cmds \ 21646postinstall_cmds \ 21647postuninstall_cmds \ 21648finish_cmds \ 21649sys_lib_search_path_spec \ 21650sys_lib_dlsearch_path_spec \ 21651reload_cmds_CXX \ 21652old_archive_cmds_CXX \ 21653old_archive_from_new_cmds_CXX \ 21654old_archive_from_expsyms_cmds_CXX \ 21655archive_cmds_CXX \ 21656archive_expsym_cmds_CXX \ 21657module_cmds_CXX \ 21658module_expsym_cmds_CXX \ 21659export_symbols_cmds_CXX \ 21660prelink_cmds_CXX \ 21661postlink_cmds_CXX; do 21662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21663 *[\\\\\\\`\\"\\\$]*) 21664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 21665 ;; 21666 *) 21667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21668 ;; 21669 esac 21670done 21671 21672ac_aux_dir='$ac_aux_dir' 21673xsi_shell='$xsi_shell' 21674lt_shell_append='$lt_shell_append' 21675 21676# See if we are running on zsh, and set the options which allow our 21677# commands through without removal of \ escapes INIT. 21678if test -n "\${ZSH_VERSION+set}" ; then 21679 setopt NO_GLOB_SUBST 21680fi 21681 21682 21683 PACKAGE='$PACKAGE' 21684 VERSION='$VERSION' 21685 TIMESTAMP='$TIMESTAMP' 21686 RM='$RM' 21687 ofile='$ofile' 21688 21689 21690 21691 21692 21693 21694_ACEOF 21695 21696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21697 21698# Handling of arguments. 21699for ac_config_target in $ac_config_targets 21700do 21701 case $ac_config_target in 21702 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21703 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21704 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21705 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21706 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21707 "libcanberra.pc") CONFIG_FILES="$CONFIG_FILES libcanberra.pc" ;; 21708 "libcanberra-gtk.pc") CONFIG_FILES="$CONFIG_FILES libcanberra-gtk.pc" ;; 21709 "libcanberra-gtk3.pc") CONFIG_FILES="$CONFIG_FILES libcanberra-gtk3.pc" ;; 21710 "src/canberra.h") CONFIG_FILES="$CONFIG_FILES src/canberra.h" ;; 21711 "gtkdoc/Makefile") CONFIG_FILES="$CONFIG_FILES gtkdoc/Makefile" ;; 21712 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21713 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;; 21714 21715 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21716 esac 21717done 21718 21719 21720# If the user did not use the arguments to specify the items to instantiate, 21721# then the envvar interface is used. Set only those that are not. 21722# We use the long form for the default assignment because of an extremely 21723# bizarre bug on SunOS 4.1.3. 21724if $ac_need_defaults; then 21725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21728fi 21729 21730# Have a temporary directory for convenience. Make it in the build tree 21731# simply because there is no reason against having it here, and in addition, 21732# creating and moving files from /tmp can sometimes cause problems. 21733# Hook for its removal unless debugging. 21734# Note that there is a small window in which the directory will not be cleaned: 21735# after its creation but before its name has been assigned to `$tmp'. 21736$debug || 21737{ 21738 tmp= ac_tmp= 21739 trap 'exit_status=$? 21740 : "${ac_tmp:=$tmp}" 21741 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21742' 0 21743 trap 'as_fn_exit 1' 1 2 13 15 21744} 21745# Create a (secure) tmp directory for tmp files. 21746 21747{ 21748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21749 test -d "$tmp" 21750} || 21751{ 21752 tmp=./conf$$-$RANDOM 21753 (umask 077 && mkdir "$tmp") 21754} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21755ac_tmp=$tmp 21756 21757# Set up the scripts for CONFIG_FILES section. 21758# No need to generate them if there are no CONFIG_FILES. 21759# This happens for instance with `./config.status config.h'. 21760if test -n "$CONFIG_FILES"; then 21761 21762 21763ac_cr=`echo X | tr X '\015'` 21764# On cygwin, bash can eat \r inside `` if the user requested igncr. 21765# But we know of no other shell where ac_cr would be empty at this 21766# point, so we can use a bashism as a fallback. 21767if test "x$ac_cr" = x; then 21768 eval ac_cr=\$\'\\r\' 21769fi 21770ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21771if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21772 ac_cs_awk_cr='\\r' 21773else 21774 ac_cs_awk_cr=$ac_cr 21775fi 21776 21777echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21778_ACEOF 21779 21780 21781{ 21782 echo "cat >conf$$subs.awk <<_ACEOF" && 21783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21784 echo "_ACEOF" 21785} >conf$$subs.sh || 21786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21787ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21788ac_delim='%!_!# ' 21789for ac_last_try in false false false false false :; do 21790 . ./conf$$subs.sh || 21791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21792 21793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21794 if test $ac_delim_n = $ac_delim_num; then 21795 break 21796 elif $ac_last_try; then 21797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21798 else 21799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21800 fi 21801done 21802rm -f conf$$subs.sh 21803 21804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21805cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21806_ACEOF 21807sed -n ' 21808h 21809s/^/S["/; s/!.*/"]=/ 21810p 21811g 21812s/^[^!]*!// 21813:repl 21814t repl 21815s/'"$ac_delim"'$// 21816t delim 21817:nl 21818h 21819s/\(.\{148\}\)..*/\1/ 21820t more1 21821s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21822p 21823n 21824b repl 21825:more1 21826s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21827p 21828g 21829s/.\{148\}// 21830t nl 21831:delim 21832h 21833s/\(.\{148\}\)..*/\1/ 21834t more2 21835s/["\\]/\\&/g; s/^/"/; s/$/"/ 21836p 21837b 21838:more2 21839s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21840p 21841g 21842s/.\{148\}// 21843t delim 21844' <conf$$subs.awk | sed ' 21845/^[^""]/{ 21846 N 21847 s/\n// 21848} 21849' >>$CONFIG_STATUS || ac_write_fail=1 21850rm -f conf$$subs.awk 21851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21852_ACAWK 21853cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21854 for (key in S) S_is_set[key] = 1 21855 FS = "" 21856 21857} 21858{ 21859 line = $ 0 21860 nfields = split(line, field, "@") 21861 substed = 0 21862 len = length(field[1]) 21863 for (i = 2; i < nfields; i++) { 21864 key = field[i] 21865 keylen = length(key) 21866 if (S_is_set[key]) { 21867 value = S[key] 21868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21869 len += length(value) + length(field[++i]) 21870 substed = 1 21871 } else 21872 len += 1 + keylen 21873 } 21874 21875 print line 21876} 21877 21878_ACAWK 21879_ACEOF 21880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21881if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21883else 21884 cat 21885fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21886 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21887_ACEOF 21888 21889# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21890# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21891# trailing colons and then remove the whole line if VPATH becomes empty 21892# (actually we leave an empty line to preserve line numbers). 21893if test "x$srcdir" = x.; then 21894 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21895h 21896s/// 21897s/^/:/ 21898s/[ ]*$/:/ 21899s/:\$(srcdir):/:/g 21900s/:\${srcdir}:/:/g 21901s/:@srcdir@:/:/g 21902s/^:*// 21903s/:*$// 21904x 21905s/\(=[ ]*\).*/\1/ 21906G 21907s/\n// 21908s/^[^=]*=[ ]*$// 21909}' 21910fi 21911 21912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21913fi # test -n "$CONFIG_FILES" 21914 21915# Set up the scripts for CONFIG_HEADERS section. 21916# No need to generate them if there are no CONFIG_HEADERS. 21917# This happens for instance with `./config.status Makefile'. 21918if test -n "$CONFIG_HEADERS"; then 21919cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21920BEGIN { 21921_ACEOF 21922 21923# Transform confdefs.h into an awk script `defines.awk', embedded as 21924# here-document in config.status, that substitutes the proper values into 21925# config.h.in to produce config.h. 21926 21927# Create a delimiter string that does not exist in confdefs.h, to ease 21928# handling of long lines. 21929ac_delim='%!_!# ' 21930for ac_last_try in false false :; do 21931 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21932 if test -z "$ac_tt"; then 21933 break 21934 elif $ac_last_try; then 21935 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21936 else 21937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21938 fi 21939done 21940 21941# For the awk script, D is an array of macro values keyed by name, 21942# likewise P contains macro parameters if any. Preserve backslash 21943# newline sequences. 21944 21945ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21946sed -n ' 21947s/.\{148\}/&'"$ac_delim"'/g 21948t rset 21949:rset 21950s/^[ ]*#[ ]*define[ ][ ]*/ / 21951t def 21952d 21953:def 21954s/\\$// 21955t bsnl 21956s/["\\]/\\&/g 21957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21958D["\1"]=" \3"/p 21959s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21960d 21961:bsnl 21962s/["\\]/\\&/g 21963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21964D["\1"]=" \3\\\\\\n"\\/p 21965t cont 21966s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21967t cont 21968d 21969:cont 21970n 21971s/.\{148\}/&'"$ac_delim"'/g 21972t clear 21973:clear 21974s/\\$// 21975t bsnlc 21976s/["\\]/\\&/g; s/^/"/; s/$/"/p 21977d 21978:bsnlc 21979s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21980b cont 21981' <confdefs.h | sed ' 21982s/'"$ac_delim"'/"\\\ 21983"/g' >>$CONFIG_STATUS || ac_write_fail=1 21984 21985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21986 for (key in D) D_is_set[key] = 1 21987 FS = "" 21988} 21989/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21990 line = \$ 0 21991 split(line, arg, " ") 21992 if (arg[1] == "#") { 21993 defundef = arg[2] 21994 mac1 = arg[3] 21995 } else { 21996 defundef = substr(arg[1], 2) 21997 mac1 = arg[2] 21998 } 21999 split(mac1, mac2, "(") #) 22000 macro = mac2[1] 22001 prefix = substr(line, 1, index(line, defundef) - 1) 22002 if (D_is_set[macro]) { 22003 # Preserve the white space surrounding the "#". 22004 print prefix "define", macro P[macro] D[macro] 22005 next 22006 } else { 22007 # Replace #undef with comments. This is necessary, for example, 22008 # in the case of _POSIX_SOURCE, which is predefined and required 22009 # on some systems where configure will not decide to define it. 22010 if (defundef == "undef") { 22011 print "/*", prefix defundef, macro, "*/" 22012 next 22013 } 22014 } 22015} 22016{ print } 22017_ACAWK 22018_ACEOF 22019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22020 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22021fi # test -n "$CONFIG_HEADERS" 22022 22023 22024eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22025shift 22026for ac_tag 22027do 22028 case $ac_tag in 22029 :[FHLC]) ac_mode=$ac_tag; continue;; 22030 esac 22031 case $ac_mode$ac_tag in 22032 :[FHL]*:*);; 22033 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22034 :[FH]-) ac_tag=-:-;; 22035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22036 esac 22037 ac_save_IFS=$IFS 22038 IFS=: 22039 set x $ac_tag 22040 IFS=$ac_save_IFS 22041 shift 22042 ac_file=$1 22043 shift 22044 22045 case $ac_mode in 22046 :L) ac_source=$1;; 22047 :[FH]) 22048 ac_file_inputs= 22049 for ac_f 22050 do 22051 case $ac_f in 22052 -) ac_f="$ac_tmp/stdin";; 22053 *) # Look for the file first in the build tree, then in the source tree 22054 # (if the path is not absolute). The absolute path cannot be DOS-style, 22055 # because $ac_f cannot contain `:'. 22056 test -f "$ac_f" || 22057 case $ac_f in 22058 [\\/$]*) false;; 22059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22060 esac || 22061 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22062 esac 22063 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22064 as_fn_append ac_file_inputs " '$ac_f'" 22065 done 22066 22067 # Let's still pretend it is `configure' which instantiates (i.e., don't 22068 # use $as_me), people would be surprised to read: 22069 # /* config.h. Generated by config.status. */ 22070 configure_input='Generated from '` 22071 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22072 `' by configure.' 22073 if test x"$ac_file" != x-; then 22074 configure_input="$ac_file. $configure_input" 22075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22076$as_echo "$as_me: creating $ac_file" >&6;} 22077 fi 22078 # Neutralize special characters interpreted by sed in replacement strings. 22079 case $configure_input in #( 22080 *\&* | *\|* | *\\* ) 22081 ac_sed_conf_input=`$as_echo "$configure_input" | 22082 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22083 *) ac_sed_conf_input=$configure_input;; 22084 esac 22085 22086 case $ac_tag in 22087 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22089 esac 22090 ;; 22091 esac 22092 22093 ac_dir=`$as_dirname -- "$ac_file" || 22094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22095 X"$ac_file" : 'X\(//\)[^/]' \| \ 22096 X"$ac_file" : 'X\(//\)$' \| \ 22097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22098$as_echo X"$ac_file" | 22099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22100 s//\1/ 22101 q 22102 } 22103 /^X\(\/\/\)[^/].*/{ 22104 s//\1/ 22105 q 22106 } 22107 /^X\(\/\/\)$/{ 22108 s//\1/ 22109 q 22110 } 22111 /^X\(\/\).*/{ 22112 s//\1/ 22113 q 22114 } 22115 s/.*/./; q'` 22116 as_dir="$ac_dir"; as_fn_mkdir_p 22117 ac_builddir=. 22118 22119case "$ac_dir" in 22120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22121*) 22122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22123 # A ".." for each directory in $ac_dir_suffix. 22124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22125 case $ac_top_builddir_sub in 22126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22128 esac ;; 22129esac 22130ac_abs_top_builddir=$ac_pwd 22131ac_abs_builddir=$ac_pwd$ac_dir_suffix 22132# for backward compatibility: 22133ac_top_builddir=$ac_top_build_prefix 22134 22135case $srcdir in 22136 .) # We are building in place. 22137 ac_srcdir=. 22138 ac_top_srcdir=$ac_top_builddir_sub 22139 ac_abs_top_srcdir=$ac_pwd ;; 22140 [\\/]* | ?:[\\/]* ) # Absolute name. 22141 ac_srcdir=$srcdir$ac_dir_suffix; 22142 ac_top_srcdir=$srcdir 22143 ac_abs_top_srcdir=$srcdir ;; 22144 *) # Relative name. 22145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22146 ac_top_srcdir=$ac_top_build_prefix$srcdir 22147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22148esac 22149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22150 22151 22152 case $ac_mode in 22153 :F) 22154 # 22155 # CONFIG_FILE 22156 # 22157 22158 case $INSTALL in 22159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22160 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22161 esac 22162 ac_MKDIR_P=$MKDIR_P 22163 case $MKDIR_P in 22164 [\\/$]* | ?:[\\/]* ) ;; 22165 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22166 esac 22167_ACEOF 22168 22169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22170# If the template does not know about datarootdir, expand it. 22171# FIXME: This hack should be removed a few years after 2.60. 22172ac_datarootdir_hack=; ac_datarootdir_seen= 22173ac_sed_dataroot=' 22174/datarootdir/ { 22175 p 22176 q 22177} 22178/@datadir@/p 22179/@docdir@/p 22180/@infodir@/p 22181/@localedir@/p 22182/@mandir@/p' 22183case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22184*datarootdir*) ac_datarootdir_seen=yes;; 22185*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22187$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22188_ACEOF 22189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22190 ac_datarootdir_hack=' 22191 s&@datadir@&$datadir&g 22192 s&@docdir@&$docdir&g 22193 s&@infodir@&$infodir&g 22194 s&@localedir@&$localedir&g 22195 s&@mandir@&$mandir&g 22196 s&\\\${datarootdir}&$datarootdir&g' ;; 22197esac 22198_ACEOF 22199 22200# Neutralize VPATH when `$srcdir' = `.'. 22201# Shell code in configure.ac might set extrasub. 22202# FIXME: do we really want to maintain this feature? 22203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22204ac_sed_extra="$ac_vpsub 22205$extrasub 22206_ACEOF 22207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22208:t 22209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22210s|@configure_input@|$ac_sed_conf_input|;t t 22211s&@top_builddir@&$ac_top_builddir_sub&;t t 22212s&@top_build_prefix@&$ac_top_build_prefix&;t t 22213s&@srcdir@&$ac_srcdir&;t t 22214s&@abs_srcdir@&$ac_abs_srcdir&;t t 22215s&@top_srcdir@&$ac_top_srcdir&;t t 22216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22217s&@builddir@&$ac_builddir&;t t 22218s&@abs_builddir@&$ac_abs_builddir&;t t 22219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22220s&@INSTALL@&$ac_INSTALL&;t t 22221s&@MKDIR_P@&$ac_MKDIR_P&;t t 22222$ac_datarootdir_hack 22223" 22224eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22225 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22226 22227test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22228 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22230 "$ac_tmp/out"`; test -z "$ac_out"; } && 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22232which seems to be undefined. Please make sure it is defined" >&5 22233$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22234which seems to be undefined. Please make sure it is defined" >&2;} 22235 22236 rm -f "$ac_tmp/stdin" 22237 case $ac_file in 22238 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22239 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22240 esac \ 22241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22242 ;; 22243 :H) 22244 # 22245 # CONFIG_HEADER 22246 # 22247 if test x"$ac_file" != x-; then 22248 { 22249 $as_echo "/* $configure_input */" \ 22250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22251 } >"$ac_tmp/config.h" \ 22252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22253 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22255$as_echo "$as_me: $ac_file is unchanged" >&6;} 22256 else 22257 rm -f "$ac_file" 22258 mv "$ac_tmp/config.h" "$ac_file" \ 22259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22260 fi 22261 else 22262 $as_echo "/* $configure_input */" \ 22263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22264 || as_fn_error $? "could not create -" "$LINENO" 5 22265 fi 22266# Compute "$ac_file"'s index in $config_headers. 22267_am_arg="$ac_file" 22268_am_stamp_count=1 22269for _am_header in $config_headers :; do 22270 case $_am_header in 22271 $_am_arg | $_am_arg:* ) 22272 break ;; 22273 * ) 22274 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22275 esac 22276done 22277echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22278$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22279 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22280 X"$_am_arg" : 'X\(//\)$' \| \ 22281 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22282$as_echo X"$_am_arg" | 22283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22284 s//\1/ 22285 q 22286 } 22287 /^X\(\/\/\)[^/].*/{ 22288 s//\1/ 22289 q 22290 } 22291 /^X\(\/\/\)$/{ 22292 s//\1/ 22293 q 22294 } 22295 /^X\(\/\).*/{ 22296 s//\1/ 22297 q 22298 } 22299 s/.*/./; q'`/stamp-h$_am_stamp_count 22300 ;; 22301 22302 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22303$as_echo "$as_me: executing $ac_file commands" >&6;} 22304 ;; 22305 esac 22306 22307 22308 case $ac_file$ac_mode in 22309 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22310 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22311 # are listed without --file. Let's play safe and only enable the eval 22312 # if we detect the quoting. 22313 case $CONFIG_FILES in 22314 *\'*) eval set x "$CONFIG_FILES" ;; 22315 *) set x $CONFIG_FILES ;; 22316 esac 22317 shift 22318 for mf 22319 do 22320 # Strip MF so we end up with the name of the file. 22321 mf=`echo "$mf" | sed -e 's/:.*$//'` 22322 # Check whether this is an Automake generated Makefile or not. 22323 # We used to match only the files named 'Makefile.in', but 22324 # some people rename them; so instead we look at the file content. 22325 # Grep'ing the first line is not enough: some people post-process 22326 # each Makefile.in and add a new line on top of each file to say so. 22327 # Grep'ing the whole file is not good either: AIX grep has a line 22328 # limit of 2048, but all sed's we know have understand at least 4000. 22329 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22330 dirpart=`$as_dirname -- "$mf" || 22331$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22332 X"$mf" : 'X\(//\)[^/]' \| \ 22333 X"$mf" : 'X\(//\)$' \| \ 22334 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22335$as_echo X"$mf" | 22336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22337 s//\1/ 22338 q 22339 } 22340 /^X\(\/\/\)[^/].*/{ 22341 s//\1/ 22342 q 22343 } 22344 /^X\(\/\/\)$/{ 22345 s//\1/ 22346 q 22347 } 22348 /^X\(\/\).*/{ 22349 s//\1/ 22350 q 22351 } 22352 s/.*/./; q'` 22353 else 22354 continue 22355 fi 22356 # Extract the definition of DEPDIR, am__include, and am__quote 22357 # from the Makefile without running 'make'. 22358 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22359 test -z "$DEPDIR" && continue 22360 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22361 test -z "am__include" && continue 22362 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22363 # Find all dependency output files, they are included files with 22364 # $(DEPDIR) in their names. We invoke sed twice because it is the 22365 # simplest approach to changing $(DEPDIR) to its actual value in the 22366 # expansion. 22367 for file in `sed -n " 22368 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22370 # Make sure the directory exists. 22371 test -f "$dirpart/$file" && continue 22372 fdir=`$as_dirname -- "$file" || 22373$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22374 X"$file" : 'X\(//\)[^/]' \| \ 22375 X"$file" : 'X\(//\)$' \| \ 22376 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22377$as_echo X"$file" | 22378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22379 s//\1/ 22380 q 22381 } 22382 /^X\(\/\/\)[^/].*/{ 22383 s//\1/ 22384 q 22385 } 22386 /^X\(\/\/\)$/{ 22387 s//\1/ 22388 q 22389 } 22390 /^X\(\/\).*/{ 22391 s//\1/ 22392 q 22393 } 22394 s/.*/./; q'` 22395 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22396 # echo "creating $dirpart/$file" 22397 echo '# dummy' > "$dirpart/$file" 22398 done 22399 done 22400} 22401 ;; 22402 "libtool":C) 22403 22404 # See if we are running on zsh, and set the options which allow our 22405 # commands through without removal of \ escapes. 22406 if test -n "${ZSH_VERSION+set}" ; then 22407 setopt NO_GLOB_SUBST 22408 fi 22409 22410 cfgfile="${ofile}T" 22411 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22412 $RM "$cfgfile" 22413 22414 cat <<_LT_EOF >> "$cfgfile" 22415#! $SHELL 22416 22417# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22418# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22419# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22420# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22421# 22422# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22423# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22424# Foundation, Inc. 22425# Written by Gordon Matzigkeit, 1996 22426# 22427# This file is part of GNU Libtool. 22428# 22429# GNU Libtool is free software; you can redistribute it and/or 22430# modify it under the terms of the GNU General Public License as 22431# published by the Free Software Foundation; either version 2 of 22432# the License, or (at your option) any later version. 22433# 22434# As a special exception to the GNU General Public License, 22435# if you distribute this file as part of a program or library that 22436# is built using GNU Libtool, you may include this file under the 22437# same distribution terms that you use for the rest of that program. 22438# 22439# GNU Libtool is distributed in the hope that it will be useful, 22440# but WITHOUT ANY WARRANTY; without even the implied warranty of 22441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22442# GNU General Public License for more details. 22443# 22444# You should have received a copy of the GNU General Public License 22445# along with GNU Libtool; see the file COPYING. If not, a copy 22446# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22447# obtained by writing to the Free Software Foundation, Inc., 22448# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22449 22450 22451# The names of the tagged configurations supported by this script. 22452available_tags="CXX " 22453 22454# ### BEGIN LIBTOOL CONFIG 22455 22456# Which release of libtool.m4 was used? 22457macro_version=$macro_version 22458macro_revision=$macro_revision 22459 22460# Assembler program. 22461AS=$lt_AS 22462 22463# DLL creation program. 22464DLLTOOL=$lt_DLLTOOL 22465 22466# Object dumper program. 22467OBJDUMP=$lt_OBJDUMP 22468 22469# Whether or not to build static libraries. 22470build_old_libs=$enable_static 22471 22472# Whether or not to build shared libraries. 22473build_libtool_libs=$enable_shared 22474 22475# What type of objects to build. 22476pic_mode=$pic_mode 22477 22478# Whether or not to optimize for fast installation. 22479fast_install=$enable_fast_install 22480 22481# Shell to use when invoking shell scripts. 22482SHELL=$lt_SHELL 22483 22484# An echo program that protects backslashes. 22485ECHO=$lt_ECHO 22486 22487# The PATH separator for the build system. 22488PATH_SEPARATOR=$lt_PATH_SEPARATOR 22489 22490# The host system. 22491host_alias=$host_alias 22492host=$host 22493host_os=$host_os 22494 22495# The build system. 22496build_alias=$build_alias 22497build=$build 22498build_os=$build_os 22499 22500# A sed program that does not truncate output. 22501SED=$lt_SED 22502 22503# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22504Xsed="\$SED -e 1s/^X//" 22505 22506# A grep program that handles long lines. 22507GREP=$lt_GREP 22508 22509# An ERE matcher. 22510EGREP=$lt_EGREP 22511 22512# A literal string matcher. 22513FGREP=$lt_FGREP 22514 22515# A BSD- or MS-compatible name lister. 22516NM=$lt_NM 22517 22518# Whether we need soft or hard links. 22519LN_S=$lt_LN_S 22520 22521# What is the maximum length of a command? 22522max_cmd_len=$max_cmd_len 22523 22524# Object file suffix (normally "o"). 22525objext=$ac_objext 22526 22527# Executable file suffix (normally ""). 22528exeext=$exeext 22529 22530# whether the shell understands "unset". 22531lt_unset=$lt_unset 22532 22533# turn spaces into newlines. 22534SP2NL=$lt_lt_SP2NL 22535 22536# turn newlines into spaces. 22537NL2SP=$lt_lt_NL2SP 22538 22539# convert \$build file names to \$host format. 22540to_host_file_cmd=$lt_cv_to_host_file_cmd 22541 22542# convert \$build files to toolchain format. 22543to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22544 22545# Method to check whether dependent libraries are shared objects. 22546deplibs_check_method=$lt_deplibs_check_method 22547 22548# Command to use when deplibs_check_method = "file_magic". 22549file_magic_cmd=$lt_file_magic_cmd 22550 22551# How to find potential files when deplibs_check_method = "file_magic". 22552file_magic_glob=$lt_file_magic_glob 22553 22554# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22555want_nocaseglob=$lt_want_nocaseglob 22556 22557# Command to associate shared and link libraries. 22558sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22559 22560# The archiver. 22561AR=$lt_AR 22562 22563# Flags to create an archive. 22564AR_FLAGS=$lt_AR_FLAGS 22565 22566# How to feed a file listing to the archiver. 22567archiver_list_spec=$lt_archiver_list_spec 22568 22569# A symbol stripping program. 22570STRIP=$lt_STRIP 22571 22572# Commands used to install an old-style archive. 22573RANLIB=$lt_RANLIB 22574old_postinstall_cmds=$lt_old_postinstall_cmds 22575old_postuninstall_cmds=$lt_old_postuninstall_cmds 22576 22577# Whether to use a lock for old archive extraction. 22578lock_old_archive_extraction=$lock_old_archive_extraction 22579 22580# A C compiler. 22581LTCC=$lt_CC 22582 22583# LTCC compiler flags. 22584LTCFLAGS=$lt_CFLAGS 22585 22586# Take the output of nm and produce a listing of raw symbols and C names. 22587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22588 22589# Transform the output of nm in a proper C declaration. 22590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22591 22592# Transform the output of nm in a C name address pair. 22593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22594 22595# Transform the output of nm in a C name address pair when lib prefix is needed. 22596global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22597 22598# Specify filename containing input files for \$NM. 22599nm_file_list_spec=$lt_nm_file_list_spec 22600 22601# The root where to search for dependent libraries,and in which our libraries should be installed. 22602lt_sysroot=$lt_sysroot 22603 22604# The name of the directory that contains temporary libtool files. 22605objdir=$objdir 22606 22607# Used to examine libraries when file_magic_cmd begins with "file". 22608MAGIC_CMD=$MAGIC_CMD 22609 22610# Must we lock files when doing compilation? 22611need_locks=$lt_need_locks 22612 22613# Manifest tool. 22614MANIFEST_TOOL=$lt_MANIFEST_TOOL 22615 22616# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22617DSYMUTIL=$lt_DSYMUTIL 22618 22619# Tool to change global to local symbols on Mac OS X. 22620NMEDIT=$lt_NMEDIT 22621 22622# Tool to manipulate fat objects and archives on Mac OS X. 22623LIPO=$lt_LIPO 22624 22625# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22626OTOOL=$lt_OTOOL 22627 22628# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22629OTOOL64=$lt_OTOOL64 22630 22631# Old archive suffix (normally "a"). 22632libext=$libext 22633 22634# Shared library suffix (normally ".so"). 22635shrext_cmds=$lt_shrext_cmds 22636 22637# The commands to extract the exported symbol list from a shared archive. 22638extract_expsyms_cmds=$lt_extract_expsyms_cmds 22639 22640# Variables whose values should be saved in libtool wrapper scripts and 22641# restored at link time. 22642variables_saved_for_relink=$lt_variables_saved_for_relink 22643 22644# Do we need the "lib" prefix for modules? 22645need_lib_prefix=$need_lib_prefix 22646 22647# Do we need a version for libraries? 22648need_version=$need_version 22649 22650# Library versioning type. 22651version_type=$version_type 22652 22653# Shared library runtime path variable. 22654runpath_var=$runpath_var 22655 22656# Shared library path variable. 22657shlibpath_var=$shlibpath_var 22658 22659# Is shlibpath searched before the hard-coded library search path? 22660shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22661 22662# Format of library name prefix. 22663libname_spec=$lt_libname_spec 22664 22665# List of archive names. First name is the real one, the rest are links. 22666# The last name is the one that the linker finds with -lNAME 22667library_names_spec=$lt_library_names_spec 22668 22669# The coded name of the library, if different from the real name. 22670soname_spec=$lt_soname_spec 22671 22672# Permission mode override for installation of shared libraries. 22673install_override_mode=$lt_install_override_mode 22674 22675# Command to use after installation of a shared archive. 22676postinstall_cmds=$lt_postinstall_cmds 22677 22678# Command to use after uninstallation of a shared archive. 22679postuninstall_cmds=$lt_postuninstall_cmds 22680 22681# Commands used to finish a libtool library installation in a directory. 22682finish_cmds=$lt_finish_cmds 22683 22684# As "finish_cmds", except a single script fragment to be evaled but 22685# not shown. 22686finish_eval=$lt_finish_eval 22687 22688# Whether we should hardcode library paths into libraries. 22689hardcode_into_libs=$hardcode_into_libs 22690 22691# Compile-time system search path for libraries. 22692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22693 22694# Run-time system search path for libraries. 22695sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22696 22697# Whether dlopen is supported. 22698dlopen_support=$enable_dlopen 22699 22700# Whether dlopen of programs is supported. 22701dlopen_self=$enable_dlopen_self 22702 22703# Whether dlopen of statically linked programs is supported. 22704dlopen_self_static=$enable_dlopen_self_static 22705 22706# Commands to strip libraries. 22707old_striplib=$lt_old_striplib 22708striplib=$lt_striplib 22709 22710 22711# The linker used to build libraries. 22712LD=$lt_LD 22713 22714# How to create reloadable object files. 22715reload_flag=$lt_reload_flag 22716reload_cmds=$lt_reload_cmds 22717 22718# Commands used to build an old-style archive. 22719old_archive_cmds=$lt_old_archive_cmds 22720 22721# A language specific compiler. 22722CC=$lt_compiler 22723 22724# Is the compiler the GNU compiler? 22725with_gcc=$GCC 22726 22727# Compiler flag to turn off builtin functions. 22728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22729 22730# Additional compiler flags for building library objects. 22731pic_flag=$lt_lt_prog_compiler_pic 22732 22733# How to pass a linker flag through the compiler. 22734wl=$lt_lt_prog_compiler_wl 22735 22736# Compiler flag to prevent dynamic linking. 22737link_static_flag=$lt_lt_prog_compiler_static 22738 22739# Does compiler simultaneously support -c and -o options? 22740compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22741 22742# Whether or not to add -lc for building shared libraries. 22743build_libtool_need_lc=$archive_cmds_need_lc 22744 22745# Whether or not to disallow shared libs when runtime libs are static. 22746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22747 22748# Compiler flag to allow reflexive dlopens. 22749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22750 22751# Compiler flag to generate shared objects directly from archives. 22752whole_archive_flag_spec=$lt_whole_archive_flag_spec 22753 22754# Whether the compiler copes with passing no objects directly. 22755compiler_needs_object=$lt_compiler_needs_object 22756 22757# Create an old-style archive from a shared archive. 22758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22759 22760# Create a temporary old-style archive to link instead of a shared archive. 22761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22762 22763# Commands used to build a shared archive. 22764archive_cmds=$lt_archive_cmds 22765archive_expsym_cmds=$lt_archive_expsym_cmds 22766 22767# Commands used to build a loadable module if different from building 22768# a shared archive. 22769module_cmds=$lt_module_cmds 22770module_expsym_cmds=$lt_module_expsym_cmds 22771 22772# Whether we are building with GNU ld or not. 22773with_gnu_ld=$lt_with_gnu_ld 22774 22775# Flag that allows shared libraries with undefined symbols to be built. 22776allow_undefined_flag=$lt_allow_undefined_flag 22777 22778# Flag that enforces no undefined symbols. 22779no_undefined_flag=$lt_no_undefined_flag 22780 22781# Flag to hardcode \$libdir into a binary during linking. 22782# This must work even if \$libdir does not exist 22783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22784 22785# Whether we need a single "-rpath" flag with a separated argument. 22786hardcode_libdir_separator=$lt_hardcode_libdir_separator 22787 22788# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22789# DIR into the resulting binary. 22790hardcode_direct=$hardcode_direct 22791 22792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22793# DIR into the resulting binary and the resulting library dependency is 22794# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22795# library is relocated. 22796hardcode_direct_absolute=$hardcode_direct_absolute 22797 22798# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22799# into the resulting binary. 22800hardcode_minus_L=$hardcode_minus_L 22801 22802# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22803# into the resulting binary. 22804hardcode_shlibpath_var=$hardcode_shlibpath_var 22805 22806# Set to "yes" if building a shared library automatically hardcodes DIR 22807# into the library and all subsequent libraries and executables linked 22808# against it. 22809hardcode_automatic=$hardcode_automatic 22810 22811# Set to yes if linker adds runtime paths of dependent libraries 22812# to runtime path list. 22813inherit_rpath=$inherit_rpath 22814 22815# Whether libtool must link a program against all its dependency libraries. 22816link_all_deplibs=$link_all_deplibs 22817 22818# Set to "yes" if exported symbols are required. 22819always_export_symbols=$always_export_symbols 22820 22821# The commands to list exported symbols. 22822export_symbols_cmds=$lt_export_symbols_cmds 22823 22824# Symbols that should not be listed in the preloaded symbols. 22825exclude_expsyms=$lt_exclude_expsyms 22826 22827# Symbols that must always be exported. 22828include_expsyms=$lt_include_expsyms 22829 22830# Commands necessary for linking programs (against libraries) with templates. 22831prelink_cmds=$lt_prelink_cmds 22832 22833# Commands necessary for finishing linking programs. 22834postlink_cmds=$lt_postlink_cmds 22835 22836# Specify filename containing input files. 22837file_list_spec=$lt_file_list_spec 22838 22839# How to hardcode a shared library path into an executable. 22840hardcode_action=$hardcode_action 22841 22842# The directories searched by this compiler when creating a shared library. 22843compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22844 22845# Dependencies to place before and after the objects being linked to 22846# create a shared library. 22847predep_objects=$lt_predep_objects 22848postdep_objects=$lt_postdep_objects 22849predeps=$lt_predeps 22850postdeps=$lt_postdeps 22851 22852# The library search path used internally by the compiler when linking 22853# a shared library. 22854compiler_lib_search_path=$lt_compiler_lib_search_path 22855 22856# ### END LIBTOOL CONFIG 22857 22858_LT_EOF 22859 22860 case $host_os in 22861 aix3*) 22862 cat <<\_LT_EOF >> "$cfgfile" 22863# AIX sometimes has problems with the GCC collect2 program. For some 22864# reason, if we set the COLLECT_NAMES environment variable, the problems 22865# vanish in a puff of smoke. 22866if test "X${COLLECT_NAMES+set}" != Xset; then 22867 COLLECT_NAMES= 22868 export COLLECT_NAMES 22869fi 22870_LT_EOF 22871 ;; 22872 esac 22873 22874 22875ltmain="$ac_aux_dir/ltmain.sh" 22876 22877 22878 # We use sed instead of cat because bash on DJGPP gets confused if 22879 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22880 # text mode, it properly converts lines to CR/LF. This bash problem 22881 # is reportedly fixed, but why not run on old versions too? 22882 sed '$q' "$ltmain" >> "$cfgfile" \ 22883 || (rm -f "$cfgfile"; exit 1) 22884 22885 if test x"$xsi_shell" = xyes; then 22886 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22887func_dirname ()\ 22888{\ 22889\ case ${1} in\ 22890\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22891\ * ) func_dirname_result="${3}" ;;\ 22892\ esac\ 22893} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22894 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22896test 0 -eq $? || _lt_function_replace_fail=: 22897 22898 22899 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22900func_basename ()\ 22901{\ 22902\ func_basename_result="${1##*/}"\ 22903} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22904 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22906test 0 -eq $? || _lt_function_replace_fail=: 22907 22908 22909 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22910func_dirname_and_basename ()\ 22911{\ 22912\ case ${1} in\ 22913\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22914\ * ) func_dirname_result="${3}" ;;\ 22915\ esac\ 22916\ func_basename_result="${1##*/}"\ 22917} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22918 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22920test 0 -eq $? || _lt_function_replace_fail=: 22921 22922 22923 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22924func_stripname ()\ 22925{\ 22926\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22927\ # positional parameters, so assign one to ordinary parameter first.\ 22928\ func_stripname_result=${3}\ 22929\ func_stripname_result=${func_stripname_result#"${1}"}\ 22930\ func_stripname_result=${func_stripname_result%"${2}"}\ 22931} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22932 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22934test 0 -eq $? || _lt_function_replace_fail=: 22935 22936 22937 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22938func_split_long_opt ()\ 22939{\ 22940\ func_split_long_opt_name=${1%%=*}\ 22941\ func_split_long_opt_arg=${1#*=}\ 22942} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22943 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22945test 0 -eq $? || _lt_function_replace_fail=: 22946 22947 22948 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22949func_split_short_opt ()\ 22950{\ 22951\ func_split_short_opt_arg=${1#??}\ 22952\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22953} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22954 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22956test 0 -eq $? || _lt_function_replace_fail=: 22957 22958 22959 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22960func_lo2o ()\ 22961{\ 22962\ case ${1} in\ 22963\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22964\ *) func_lo2o_result=${1} ;;\ 22965\ esac\ 22966} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22967 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22969test 0 -eq $? || _lt_function_replace_fail=: 22970 22971 22972 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22973func_xform ()\ 22974{\ 22975 func_xform_result=${1%.*}.lo\ 22976} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22977 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22979test 0 -eq $? || _lt_function_replace_fail=: 22980 22981 22982 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22983func_arith ()\ 22984{\ 22985 func_arith_result=$(( $* ))\ 22986} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22987 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22989test 0 -eq $? || _lt_function_replace_fail=: 22990 22991 22992 sed -e '/^func_len ()$/,/^} # func_len /c\ 22993func_len ()\ 22994{\ 22995 func_len_result=${#1}\ 22996} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22997 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22999test 0 -eq $? || _lt_function_replace_fail=: 23000 23001fi 23002 23003if test x"$lt_shell_append" = xyes; then 23004 sed -e '/^func_append ()$/,/^} # func_append /c\ 23005func_append ()\ 23006{\ 23007 eval "${1}+=\\${2}"\ 23008} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23009 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23011test 0 -eq $? || _lt_function_replace_fail=: 23012 23013 23014 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23015func_append_quoted ()\ 23016{\ 23017\ func_quote_for_eval "${2}"\ 23018\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23019} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23020 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23022test 0 -eq $? || _lt_function_replace_fail=: 23023 23024 23025 # Save a `func_append' function call where possible by direct use of '+=' 23026 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23027 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23029 test 0 -eq $? || _lt_function_replace_fail=: 23030else 23031 # Save a `func_append' function call even when '+=' is not available 23032 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23033 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23035 test 0 -eq $? || _lt_function_replace_fail=: 23036fi 23037 23038if test x"$_lt_function_replace_fail" = x":"; then 23039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23040$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23041fi 23042 23043 23044 mv -f "$cfgfile" "$ofile" || 23045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23046 chmod +x "$ofile" 23047 23048 23049 cat <<_LT_EOF >> "$ofile" 23050 23051# ### BEGIN LIBTOOL TAG CONFIG: CXX 23052 23053# The linker used to build libraries. 23054LD=$lt_LD_CXX 23055 23056# How to create reloadable object files. 23057reload_flag=$lt_reload_flag_CXX 23058reload_cmds=$lt_reload_cmds_CXX 23059 23060# Commands used to build an old-style archive. 23061old_archive_cmds=$lt_old_archive_cmds_CXX 23062 23063# A language specific compiler. 23064CC=$lt_compiler_CXX 23065 23066# Is the compiler the GNU compiler? 23067with_gcc=$GCC_CXX 23068 23069# Compiler flag to turn off builtin functions. 23070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23071 23072# Additional compiler flags for building library objects. 23073pic_flag=$lt_lt_prog_compiler_pic_CXX 23074 23075# How to pass a linker flag through the compiler. 23076wl=$lt_lt_prog_compiler_wl_CXX 23077 23078# Compiler flag to prevent dynamic linking. 23079link_static_flag=$lt_lt_prog_compiler_static_CXX 23080 23081# Does compiler simultaneously support -c and -o options? 23082compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23083 23084# Whether or not to add -lc for building shared libraries. 23085build_libtool_need_lc=$archive_cmds_need_lc_CXX 23086 23087# Whether or not to disallow shared libs when runtime libs are static. 23088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23089 23090# Compiler flag to allow reflexive dlopens. 23091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23092 23093# Compiler flag to generate shared objects directly from archives. 23094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23095 23096# Whether the compiler copes with passing no objects directly. 23097compiler_needs_object=$lt_compiler_needs_object_CXX 23098 23099# Create an old-style archive from a shared archive. 23100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23101 23102# Create a temporary old-style archive to link instead of a shared archive. 23103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23104 23105# Commands used to build a shared archive. 23106archive_cmds=$lt_archive_cmds_CXX 23107archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23108 23109# Commands used to build a loadable module if different from building 23110# a shared archive. 23111module_cmds=$lt_module_cmds_CXX 23112module_expsym_cmds=$lt_module_expsym_cmds_CXX 23113 23114# Whether we are building with GNU ld or not. 23115with_gnu_ld=$lt_with_gnu_ld_CXX 23116 23117# Flag that allows shared libraries with undefined symbols to be built. 23118allow_undefined_flag=$lt_allow_undefined_flag_CXX 23119 23120# Flag that enforces no undefined symbols. 23121no_undefined_flag=$lt_no_undefined_flag_CXX 23122 23123# Flag to hardcode \$libdir into a binary during linking. 23124# This must work even if \$libdir does not exist 23125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23126 23127# Whether we need a single "-rpath" flag with a separated argument. 23128hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23129 23130# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23131# DIR into the resulting binary. 23132hardcode_direct=$hardcode_direct_CXX 23133 23134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23135# DIR into the resulting binary and the resulting library dependency is 23136# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23137# library is relocated. 23138hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23139 23140# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23141# into the resulting binary. 23142hardcode_minus_L=$hardcode_minus_L_CXX 23143 23144# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23145# into the resulting binary. 23146hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23147 23148# Set to "yes" if building a shared library automatically hardcodes DIR 23149# into the library and all subsequent libraries and executables linked 23150# against it. 23151hardcode_automatic=$hardcode_automatic_CXX 23152 23153# Set to yes if linker adds runtime paths of dependent libraries 23154# to runtime path list. 23155inherit_rpath=$inherit_rpath_CXX 23156 23157# Whether libtool must link a program against all its dependency libraries. 23158link_all_deplibs=$link_all_deplibs_CXX 23159 23160# Set to "yes" if exported symbols are required. 23161always_export_symbols=$always_export_symbols_CXX 23162 23163# The commands to list exported symbols. 23164export_symbols_cmds=$lt_export_symbols_cmds_CXX 23165 23166# Symbols that should not be listed in the preloaded symbols. 23167exclude_expsyms=$lt_exclude_expsyms_CXX 23168 23169# Symbols that must always be exported. 23170include_expsyms=$lt_include_expsyms_CXX 23171 23172# Commands necessary for linking programs (against libraries) with templates. 23173prelink_cmds=$lt_prelink_cmds_CXX 23174 23175# Commands necessary for finishing linking programs. 23176postlink_cmds=$lt_postlink_cmds_CXX 23177 23178# Specify filename containing input files. 23179file_list_spec=$lt_file_list_spec_CXX 23180 23181# How to hardcode a shared library path into an executable. 23182hardcode_action=$hardcode_action_CXX 23183 23184# The directories searched by this compiler when creating a shared library. 23185compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23186 23187# Dependencies to place before and after the objects being linked to 23188# create a shared library. 23189predep_objects=$lt_predep_objects_CXX 23190postdep_objects=$lt_postdep_objects_CXX 23191predeps=$lt_predeps_CXX 23192postdeps=$lt_postdeps_CXX 23193 23194# The library search path used internally by the compiler when linking 23195# a shared library. 23196compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23197 23198# ### END LIBTOOL TAG CONFIG: CXX 23199_LT_EOF 23200 23201 ;; 23202 23203 esac 23204done # for ac_tag 23205 23206 23207as_fn_exit 0 23208_ACEOF 23209ac_clean_files=$ac_clean_files_save 23210 23211test $ac_write_fail = 0 || 23212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23213 23214 23215# configure is writing to config.log, and then calls config.status. 23216# config.status does its own redirection, appending to config.log. 23217# Unfortunately, on DOS this fails, as config.log is still kept open 23218# by configure, so config.status won't be able to write to it; its 23219# output is simply discarded. So we exec the FD to /dev/null, 23220# effectively closing config.log, so it can be properly (re)opened and 23221# appended to by config.status. When coming back to configure, we 23222# need to make the FD available again. 23223if test "$no_create" != yes; then 23224 ac_cs_success=: 23225 ac_config_status_args= 23226 test "$silent" = yes && 23227 ac_config_status_args="$ac_config_status_args --quiet" 23228 exec 5>/dev/null 23229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23230 exec 5>>config.log 23231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23232 # would make configure fail if this is the last instruction. 23233 $ac_cs_success || as_fn_exit 1 23234fi 23235if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23237$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23238fi 23239 23240 23241# ========================================================================== 23242ENABLE_BUILTIN_DSO=no 23243if test "x$BUILTIN_DSO" = "x1" ; then 23244 ENABLE_BUILTIN_DSO=yes 23245fi 23246 23247ENABLE_PULSE=no 23248if test "x$HAVE_PULSE" = "x1" ; then 23249 ENABLE_PULSE=yes 23250fi 23251ENABLE_BUILTIN_PULSE=no 23252if test "x$BUILTIN_PULSE" = "x1" ; then 23253 ENABLE_BUILTIN_PULSE=yes 23254fi 23255 23256ENABLE_ALSA=no 23257if test "x$HAVE_ALSA" = "x1" ; then 23258 ENABLE_ALSA=yes 23259fi 23260ENABLE_BUILTIN_ALSA=no 23261if test "x$BUILTIN_ALSA" = "x1" ; then 23262 ENABLE_BUILTIN_ALSA=yes 23263fi 23264 23265ENABLE_OSS=no 23266if test "x$HAVE_OSS" = "x1" ; then 23267 ENABLE_OSS=yes 23268fi 23269ENABLE_BUILTIN_OSS=no 23270if test "x$BUILTIN_OSS" = "x1" ; then 23271 ENABLE_BUILTIN_OSS=yes 23272fi 23273 23274ENABLE_GSTREAMER=no 23275if test "x$HAVE_GSTREAMER" = "x1" ; then 23276 ENABLE_GSTREAMER=yes 23277fi 23278ENABLE_BUILTIN_GSTREAMER=no 23279if test "x$BUILTIN_GSTREAMER" = "x1" ; then 23280 ENABLE_BUILTIN_GSTREAMER=yes 23281fi 23282 23283ENABLE_NULL=no 23284if test "x$HAVE_NULL" = "x1" ; then 23285 ENABLE_NULL=yes 23286fi 23287ENABLE_BUILTIN_NULL=no 23288if test "x$BUILTIN_NULL" = "x1" ; then 23289 ENABLE_BUILTIN_NULL=yes 23290fi 23291 23292ENABLE_GTK=no 23293if test "x$HAVE_GTK" = "x1" ; then 23294 ENABLE_GTK=yes 23295fi 23296 23297ENABLE_GTK3=no 23298if test "x$HAVE_GTK3" = "x1" ; then 23299 ENABLE_GTK3=yes 23300fi 23301 23302ENABLE_TDB=no 23303if test "x$HAVE_TDB" = "x1" ; then 23304 ENABLE_TDB=yes 23305fi 23306 23307ENABLE_CACHE=no 23308if test "x$HAVE_CACHE" = "x1" ; then 23309 ENABLE_CACHE=yes 23310fi 23311 23312ENABLE_UDEV=no 23313if test "x$HAVE_UDEV" = "x1" ; then 23314 ENABLE_UDEV=yes 23315fi 23316 23317echo " 23318 ---{ $PACKAGE_NAME $VERSION }--- 23319 23320 prefix: ${prefix} 23321 sysconfdir: ${sysconfdir} 23322 localstatedir: ${localstatedir} 23323 Compiler: ${CC} 23324 CFLAGS: ${CFLAGS} 23325 C++-Compiler: ${CXX} 23326 CXXFLAGS: ${CXXFLAGS} 23327 Builtin DSO: ${ENABLE_BUILTIN_DSO} 23328 Enable PulseAudio: ${ENABLE_PULSE} 23329 Builtin PulseAudio: ${ENABLE_BUILTIN_PULSE} 23330 Enable ALSA: ${ENABLE_ALSA} 23331 Builtin ALSA: ${ENABLE_BUILTIN_ALSA} 23332 Enable OSS: ${ENABLE_OSS} 23333 Builtin OSS: ${ENABLE_BUILTIN_OSS} 23334 Enable GStreamer: ${ENABLE_GSTREAMER} 23335 Builtin GStreamer: ${ENABLE_BUILTIN_GSTREAMER} 23336 Enable Null Output: ${ENABLE_NULL} 23337 Builtin Null Output: ${ENABLE_BUILTIN_NULL} 23338 Enable tdb: ${ENABLE_TDB} 23339 Enable lookup cache: ${ENABLE_CACHE} 23340 Enable GTK+: ${ENABLE_GTK} 23341 GTK Modules Directory: ${GTK_MODULES_DIR} 23342 Enable GTK3+: ${ENABLE_GTK3} 23343 GTK3 Modules Directory: ${GTK3_MODULES_DIR} 23344 Enable udev: ${ENABLE_UDEV} 23345 systemd Unit Directory: ${with_systemdsystemunitdir} 23346" 23347 23348 23349if test "x$HAVE_OSS" = "x1" -a "x$HAVE_ALSA" = "x1" ; then 23350 23351 echo " 23352WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! 23353 23354You enabled the OSS driver although the ALSA driver is 23355available. Please note that if ALSA is available the OSS driver is a 23356very bad choice, since it currently doesn't support resampling or 23357converting sample types to the necessities of the hardware if the 23358hardware does not directly support the format/rate of the sound file 23359to play. 23360 23361Packagers of Linux distributions! Please think twice if you package 23362the OSS driver! It is probably best to not to pacakge it at all -- at 23363least until the OSS driver learned sample type conversion and the most 23364basic resampling. Otherwise you might end up getting bug reports from 23365users misunderstanding the OSS vs. ALSA situation. 23366 23367WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! 23368" 23369 23370fi 23371