1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GStreamer libav 1.16.2. 4# 5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='GStreamer libav' 593PACKAGE_TARNAME='gst-libav' 594PACKAGE_VERSION='1.16.2' 595PACKAGE_STRING='GStreamer libav 1.16.2' 596PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer' 597PACKAGE_URL='' 598 599ac_unique_file="ext/libav/gstav.c" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640HAVE_LIBAV_UNINSTALLED_FALSE 641HAVE_LIBAV_UNINSTALLED_TRUE 642LZMA_LIBS 643BZ2_LIBS 644WIN32_LIBS 645LIBAV_SUBDIRS 646LIBAV_DEPS 647LIBAV_CPPFLAGS 648HAVE_LZMA_FALSE 649HAVE_LZMA_TRUE 650HAVE_BZ2_FALSE 651HAVE_BZ2_TRUE 652LIBAV_EXTERNALS_REVISION 653LIBAV_REVISION 654LIBAV_SVN 655LIBAV_CO_DIR 656LIBAV_LIBS 657LIBAV_CFLAGS 658GST_LIBAV_ENABLE_GPL_FALSE 659GST_LIBAV_ENABLE_GPL_TRUE 660DARWIN_LDFLAGS 661GST_PLUGIN_LDFLAGS 662GST_ALL_LDFLAGS 663GST_OPTION_CFLAGS 664DEPRECATED_CFLAGS 665PROFILE_CFLAGS 666EXTRA_CFLAGS 667GST_LEVEL_DEFAULT 668ERROR_CFLAGS 669WARNING_CFLAGS 670GST_PLUGIN_BUILD_STATIC_FALSE 671GST_PLUGIN_BUILD_STATIC_TRUE 672plugindir 673PLUGINDIR 674HAVE_GST_CHECK_FALSE 675HAVE_GST_CHECK_TRUE 676GST_CHECK_LIBS 677GST_CHECK_CFLAGS 678GSTPB_PLUGINS_DIR 679GST_PLUGINS_BASE_DIR 680GST_PLUGINS_BASE_LIBS 681GST_PLUGINS_BASE_CFLAGS 682GST_BASE_LIBS 683GST_BASE_CFLAGS 684GST_PLUGINS_DIR 685GST_TOOLS_DIR 686GST_LIBS 687GST_CFLAGS 688GIO_LDFLAGS 689GIO_LIBS 690GIO_CFLAGS 691GLIB_EXTRA_CFLAGS 692GLIB_MKENUMS 693GLIB_GENMARSHAL 694GLIB_LIBS 695GLIB_CFLAGS 696GLIB_REQ 697PTHREAD_CFLAGS 698PTHREAD_LIBS 699PTHREAD_CC 700ax_pthread_config 701LIBM 702ENABLE_PLUGIN_DOCS_FALSE 703ENABLE_PLUGIN_DOCS_TRUE 704pkgpyexecdir 705pyexecdir 706pkgpythondir 707pythondir 708PYTHON_PLATFORM 709PYTHON_EXEC_PREFIX 710PYTHON_PREFIX 711PYTHON_VERSION 712PYTHON 713GTK_DOC_USE_LIBTOOL_FALSE 714GTK_DOC_USE_LIBTOOL_TRUE 715GTK_DOC_BUILD_PDF_FALSE 716GTK_DOC_BUILD_PDF_TRUE 717GTK_DOC_BUILD_HTML_FALSE 718GTK_DOC_BUILD_HTML_TRUE 719ENABLE_GTK_DOC_FALSE 720ENABLE_GTK_DOC_TRUE 721GTKDOC_DEPS_LIBS 722GTKDOC_DEPS_CFLAGS 723HTML_DIR 724GTKDOC_MKPDF 725GTKDOC_REBASE 726GTKDOC_CHECK 727HAVE_VALGRIND_FALSE 728HAVE_VALGRIND_TRUE 729VALGRIND_PATH 730HAVE_CPU_CRISV32_FALSE 731HAVE_CPU_CRISV32_TRUE 732HAVE_CPU_CRIS_FALSE 733HAVE_CPU_CRIS_TRUE 734HAVE_CPU_X86_64_FALSE 735HAVE_CPU_X86_64_TRUE 736HAVE_CPU_M68K_FALSE 737HAVE_CPU_M68K_TRUE 738HAVE_CPU_IA64_FALSE 739HAVE_CPU_IA64_TRUE 740HAVE_CPU_S390_FALSE 741HAVE_CPU_S390_TRUE 742HAVE_CPU_MIPS_FALSE 743HAVE_CPU_MIPS_TRUE 744HAVE_CPU_HPPA_FALSE 745HAVE_CPU_HPPA_TRUE 746HAVE_CPU_SPARC_FALSE 747HAVE_CPU_SPARC_TRUE 748HAVE_CPU_ARM_FALSE 749HAVE_CPU_ARM_TRUE 750HAVE_CPU_ARC_FALSE 751HAVE_CPU_ARC_TRUE 752HAVE_CPU_ALPHA_FALSE 753HAVE_CPU_ALPHA_TRUE 754HAVE_CPU_PPC64_FALSE 755HAVE_CPU_PPC64_TRUE 756HAVE_CPU_PPC_FALSE 757HAVE_CPU_PPC_TRUE 758HAVE_CPU_I386_FALSE 759HAVE_CPU_I386_TRUE 760GST_GCOV_ENABLED_FALSE 761GST_GCOV_ENABLED_TRUE 762CCASFLAGS 763FFLAGS 764CXXFLAGS 765GCOV 766GCOV_LIBS 767GCOV_CFLAGS 768VALGRIND_LIBS 769VALGRIND_CFLAGS 770GST_PACKAGE_ORIGIN 771GST_PACKAGE_NAME 772ACLOCAL_AMFLAGS 773HAVE_ORCC_FALSE 774HAVE_ORCC_TRUE 775HAVE_ORC_FALSE 776HAVE_ORC_TRUE 777ORCC_FLAGS 778ORCC 779ORC_LIBS 780ORC_CFLAGS 781PKG_CONFIG 782CPP 783LT_SYS_LIBRARY_PATH 784OTOOL64 785OTOOL 786LIPO 787NMEDIT 788DSYMUTIL 789MANIFEST_TOOL 790RANLIB 791ac_ct_AR 792AR 793LN_S 794NM 795ac_ct_DUMPBIN 796DUMPBIN 797LD 798FGREP 799EGREP 800GREP 801SED 802am__fastdepCC_FALSE 803am__fastdepCC_TRUE 804CCDEPMODE 805am__nodep 806AMDEPBACKSLASH 807AMDEP_FALSE 808AMDEP_TRUE 809am__include 810DEPDIR 811OBJEXT 812EXEEXT 813ac_ct_CC 814CPPFLAGS 815LDFLAGS 816CFLAGS 817CC 818LIBTOOL 819OBJDUMP 820DLLTOOL 821AS 822GST_LT_LDFLAGS 823GST_LIBVERSION 824GST_AGE 825GST_REVISION 826GST_CURRENT 827GST_API_VERSION 828MAINT 829MAINTAINER_MODE_FALSE 830MAINTAINER_MODE_TRUE 831PACKAGE_VERSION_RELEASE 832PACKAGE_VERSION_NANO 833PACKAGE_VERSION_MICRO 834PACKAGE_VERSION_MINOR 835PACKAGE_VERSION_MAJOR 836AM_BACKSLASH 837AM_DEFAULT_VERBOSITY 838AM_DEFAULT_V 839AM_V 840am__untar 841am__tar 842AMTAR 843am__leading_dot 844SET_MAKE 845AWK 846mkdir_p 847MKDIR_P 848INSTALL_STRIP_PROGRAM 849STRIP 850install_sh 851MAKEINFO 852AUTOHEADER 853AUTOMAKE 854AUTOCONF 855ACLOCAL 856VERSION 857PACKAGE 858CYGPATH_W 859am__isrc 860INSTALL_DATA 861INSTALL_SCRIPT 862INSTALL_PROGRAM 863target_os 864target_vendor 865target_cpu 866target 867host_os 868host_vendor 869host_cpu 870host 871build_os 872build_vendor 873build_cpu 874build 875target_alias 876host_alias 877build_alias 878LIBS 879ECHO_T 880ECHO_N 881ECHO_C 882DEFS 883mandir 884localedir 885libdir 886psdir 887pdfdir 888dvidir 889htmldir 890infodir 891docdir 892oldincludedir 893includedir 894runstatedir 895localstatedir 896sharedstatedir 897sysconfdir 898datadir 899datarootdir 900libexecdir 901sbindir 902bindir 903program_transform_name 904prefix 905exec_prefix 906PACKAGE_URL 907PACKAGE_BUGREPORT 908PACKAGE_STRING 909PACKAGE_VERSION 910PACKAGE_TARNAME 911PACKAGE_NAME 912PATH_SEPARATOR 913SHELL 914am__quote' 915ac_subst_files='' 916ac_user_opts=' 917enable_option_checking 918enable_silent_rules 919enable_maintainer_mode 920enable_static 921enable_shared 922with_pic 923enable_fast_install 924with_aix_soname 925enable_dependency_tracking 926with_gnu_ld 927with_sysroot 928enable_libtool_lock 929enable_orc 930with_autoconf 931with_autoheader 932with_automake 933with_aclocal 934enable_fatal_warnings 935enable_extra_check 936with_pkg_config_path 937with_package_name 938with_package_origin 939enable_valgrind 940enable_gcov 941enable_largefile 942with_html_dir 943enable_gtk_doc 944enable_gtk_doc_html 945enable_gtk_doc_pdf 946enable_gobject_cast_checks 947enable_glib_asserts 948enable_Bsymbolic 949enable_gpl 950with_system_libav 951with_libav_extra_configure 952' 953 ac_precious_vars='build_alias 954host_alias 955target_alias 956CC 957CFLAGS 958LDFLAGS 959LIBS 960CPPFLAGS 961LT_SYS_LIBRARY_PATH 962CPP 963PKG_CONFIG 964ORC_CFLAGS 965ORC_LIBS 966VALGRIND_CFLAGS 967VALGRIND_LIBS 968GTKDOC_DEPS_CFLAGS 969GTKDOC_DEPS_LIBS 970PYTHON 971GLIB_CFLAGS 972GLIB_LIBS 973GIO_CFLAGS 974GIO_LIBS 975GST_CFLAGS 976GST_LIBS 977GST_BASE_CFLAGS 978GST_BASE_LIBS 979GST_PLUGINS_BASE_CFLAGS 980GST_PLUGINS_BASE_LIBS 981GST_CHECK_CFLAGS 982GST_CHECK_LIBS 983LIBAV_CFLAGS 984LIBAV_LIBS' 985 986 987# Initialize some variables set by options. 988ac_init_help= 989ac_init_version=false 990ac_unrecognized_opts= 991ac_unrecognized_sep= 992# The variables have the same names as the options, with 993# dashes changed to underlines. 994cache_file=/dev/null 995exec_prefix=NONE 996no_create= 997no_recursion= 998prefix=NONE 999program_prefix=NONE 1000program_suffix=NONE 1001program_transform_name=s,x,x, 1002silent= 1003site= 1004srcdir= 1005verbose= 1006x_includes=NONE 1007x_libraries=NONE 1008 1009# Installation directory options. 1010# These are left unexpanded so users can "make install exec_prefix=/foo" 1011# and all the variables that are supposed to be based on exec_prefix 1012# by default will actually change. 1013# Use braces instead of parens because sh, perl, etc. also accept them. 1014# (The list follows the same order as the GNU Coding Standards.) 1015bindir='${exec_prefix}/bin' 1016sbindir='${exec_prefix}/sbin' 1017libexecdir='${exec_prefix}/libexec' 1018datarootdir='${prefix}/share' 1019datadir='${datarootdir}' 1020sysconfdir='${prefix}/etc' 1021sharedstatedir='${prefix}/com' 1022localstatedir='${prefix}/var' 1023runstatedir='${localstatedir}/run' 1024includedir='${prefix}/include' 1025oldincludedir='/usr/include' 1026docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1027infodir='${datarootdir}/info' 1028htmldir='${docdir}' 1029dvidir='${docdir}' 1030pdfdir='${docdir}' 1031psdir='${docdir}' 1032libdir='${exec_prefix}/lib' 1033localedir='${datarootdir}/locale' 1034mandir='${datarootdir}/man' 1035 1036ac_prev= 1037ac_dashdash= 1038for ac_option 1039do 1040 # If the previous option needs an argument, assign it. 1041 if test -n "$ac_prev"; then 1042 eval $ac_prev=\$ac_option 1043 ac_prev= 1044 continue 1045 fi 1046 1047 case $ac_option in 1048 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1049 *=) ac_optarg= ;; 1050 *) ac_optarg=yes ;; 1051 esac 1052 1053 # Accept the important Cygnus configure options, so we can diagnose typos. 1054 1055 case $ac_dashdash$ac_option in 1056 --) 1057 ac_dashdash=yes ;; 1058 1059 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1060 ac_prev=bindir ;; 1061 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1062 bindir=$ac_optarg ;; 1063 1064 -build | --build | --buil | --bui | --bu) 1065 ac_prev=build_alias ;; 1066 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1067 build_alias=$ac_optarg ;; 1068 1069 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1071 ac_prev=cache_file ;; 1072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1074 cache_file=$ac_optarg ;; 1075 1076 --config-cache | -C) 1077 cache_file=config.cache ;; 1078 1079 -datadir | --datadir | --datadi | --datad) 1080 ac_prev=datadir ;; 1081 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1082 datadir=$ac_optarg ;; 1083 1084 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1085 | --dataroo | --dataro | --datar) 1086 ac_prev=datarootdir ;; 1087 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1088 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1089 datarootdir=$ac_optarg ;; 1090 1091 -disable-* | --disable-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error $? "invalid feature name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"enable_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval enable_$ac_useropt=no ;; 1106 1107 -docdir | --docdir | --docdi | --doc | --do) 1108 ac_prev=docdir ;; 1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1110 docdir=$ac_optarg ;; 1111 1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1113 ac_prev=dvidir ;; 1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1115 dvidir=$ac_optarg ;; 1116 1117 -enable-* | --enable-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid feature name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"enable_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval enable_$ac_useropt=\$ac_optarg ;; 1132 1133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1135 | --exec | --exe | --ex) 1136 ac_prev=exec_prefix ;; 1137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1139 | --exec=* | --exe=* | --ex=*) 1140 exec_prefix=$ac_optarg ;; 1141 1142 -gas | --gas | --ga | --g) 1143 # Obsolete; use --with-gas. 1144 with_gas=yes ;; 1145 1146 -help | --help | --hel | --he | -h) 1147 ac_init_help=long ;; 1148 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1149 ac_init_help=recursive ;; 1150 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1151 ac_init_help=short ;; 1152 1153 -host | --host | --hos | --ho) 1154 ac_prev=host_alias ;; 1155 -host=* | --host=* | --hos=* | --ho=*) 1156 host_alias=$ac_optarg ;; 1157 1158 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1159 ac_prev=htmldir ;; 1160 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1161 | --ht=*) 1162 htmldir=$ac_optarg ;; 1163 1164 -includedir | --includedir | --includedi | --included | --include \ 1165 | --includ | --inclu | --incl | --inc) 1166 ac_prev=includedir ;; 1167 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1168 | --includ=* | --inclu=* | --incl=* | --inc=*) 1169 includedir=$ac_optarg ;; 1170 1171 -infodir | --infodir | --infodi | --infod | --info | --inf) 1172 ac_prev=infodir ;; 1173 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1174 infodir=$ac_optarg ;; 1175 1176 -libdir | --libdir | --libdi | --libd) 1177 ac_prev=libdir ;; 1178 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1179 libdir=$ac_optarg ;; 1180 1181 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1182 | --libexe | --libex | --libe) 1183 ac_prev=libexecdir ;; 1184 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1185 | --libexe=* | --libex=* | --libe=*) 1186 libexecdir=$ac_optarg ;; 1187 1188 -localedir | --localedir | --localedi | --localed | --locale) 1189 ac_prev=localedir ;; 1190 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1191 localedir=$ac_optarg ;; 1192 1193 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1194 | --localstate | --localstat | --localsta | --localst | --locals) 1195 ac_prev=localstatedir ;; 1196 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1197 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1198 localstatedir=$ac_optarg ;; 1199 1200 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1201 ac_prev=mandir ;; 1202 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1203 mandir=$ac_optarg ;; 1204 1205 -nfp | --nfp | --nf) 1206 # Obsolete; use --without-fp. 1207 with_fp=no ;; 1208 1209 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1210 | --no-cr | --no-c | -n) 1211 no_create=yes ;; 1212 1213 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1214 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1215 no_recursion=yes ;; 1216 1217 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1218 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1219 | --oldin | --oldi | --old | --ol | --o) 1220 ac_prev=oldincludedir ;; 1221 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1222 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1223 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1224 oldincludedir=$ac_optarg ;; 1225 1226 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1227 ac_prev=prefix ;; 1228 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1229 prefix=$ac_optarg ;; 1230 1231 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1232 | --program-pre | --program-pr | --program-p) 1233 ac_prev=program_prefix ;; 1234 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1235 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1236 program_prefix=$ac_optarg ;; 1237 1238 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1239 | --program-suf | --program-su | --program-s) 1240 ac_prev=program_suffix ;; 1241 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1242 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1243 program_suffix=$ac_optarg ;; 1244 1245 -program-transform-name | --program-transform-name \ 1246 | --program-transform-nam | --program-transform-na \ 1247 | --program-transform-n | --program-transform- \ 1248 | --program-transform | --program-transfor \ 1249 | --program-transfo | --program-transf \ 1250 | --program-trans | --program-tran \ 1251 | --progr-tra | --program-tr | --program-t) 1252 ac_prev=program_transform_name ;; 1253 -program-transform-name=* | --program-transform-name=* \ 1254 | --program-transform-nam=* | --program-transform-na=* \ 1255 | --program-transform-n=* | --program-transform-=* \ 1256 | --program-transform=* | --program-transfor=* \ 1257 | --program-transfo=* | --program-transf=* \ 1258 | --program-trans=* | --program-tran=* \ 1259 | --progr-tra=* | --program-tr=* | --program-t=*) 1260 program_transform_name=$ac_optarg ;; 1261 1262 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1263 ac_prev=pdfdir ;; 1264 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1265 pdfdir=$ac_optarg ;; 1266 1267 -psdir | --psdir | --psdi | --psd | --ps) 1268 ac_prev=psdir ;; 1269 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1270 psdir=$ac_optarg ;; 1271 1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1273 | -silent | --silent | --silen | --sile | --sil) 1274 silent=yes ;; 1275 1276 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1277 | --runstate | --runstat | --runsta | --runst | --runs \ 1278 | --run | --ru | --r) 1279 ac_prev=runstatedir ;; 1280 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1281 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1282 | --run=* | --ru=* | --r=*) 1283 runstatedir=$ac_optarg ;; 1284 1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1286 ac_prev=sbindir ;; 1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1288 | --sbi=* | --sb=*) 1289 sbindir=$ac_optarg ;; 1290 1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1293 | --sharedst | --shareds | --shared | --share | --shar \ 1294 | --sha | --sh) 1295 ac_prev=sharedstatedir ;; 1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1299 | --sha=* | --sh=*) 1300 sharedstatedir=$ac_optarg ;; 1301 1302 -site | --site | --sit) 1303 ac_prev=site ;; 1304 -site=* | --site=* | --sit=*) 1305 site=$ac_optarg ;; 1306 1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1308 ac_prev=srcdir ;; 1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1310 srcdir=$ac_optarg ;; 1311 1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1313 | --syscon | --sysco | --sysc | --sys | --sy) 1314 ac_prev=sysconfdir ;; 1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1317 sysconfdir=$ac_optarg ;; 1318 1319 -target | --target | --targe | --targ | --tar | --ta | --t) 1320 ac_prev=target_alias ;; 1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1322 target_alias=$ac_optarg ;; 1323 1324 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1325 verbose=yes ;; 1326 1327 -version | --version | --versio | --versi | --vers | -V) 1328 ac_init_version=: ;; 1329 1330 -with-* | --with-*) 1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1332 # Reject names that are not valid shell variable names. 1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1334 as_fn_error $? "invalid package name: $ac_useropt" 1335 ac_useropt_orig=$ac_useropt 1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1337 case $ac_user_opts in 1338 *" 1339"with_$ac_useropt" 1340"*) ;; 1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1342 ac_unrecognized_sep=', ';; 1343 esac 1344 eval with_$ac_useropt=\$ac_optarg ;; 1345 1346 -without-* | --without-*) 1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1348 # Reject names that are not valid shell variable names. 1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1350 as_fn_error $? "invalid package name: $ac_useropt" 1351 ac_useropt_orig=$ac_useropt 1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1353 case $ac_user_opts in 1354 *" 1355"with_$ac_useropt" 1356"*) ;; 1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1358 ac_unrecognized_sep=', ';; 1359 esac 1360 eval with_$ac_useropt=no ;; 1361 1362 --x) 1363 # Obsolete; use --with-x. 1364 with_x=yes ;; 1365 1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1367 | --x-incl | --x-inc | --x-in | --x-i) 1368 ac_prev=x_includes ;; 1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1371 x_includes=$ac_optarg ;; 1372 1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1375 ac_prev=x_libraries ;; 1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1378 x_libraries=$ac_optarg ;; 1379 1380 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1381Try \`$0 --help' for more information" 1382 ;; 1383 1384 *=*) 1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1386 # Reject names that are not valid shell variable names. 1387 case $ac_envvar in #( 1388 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1389 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1390 esac 1391 eval $ac_envvar=\$ac_optarg 1392 export $ac_envvar ;; 1393 1394 *) 1395 # FIXME: should be removed in autoconf 3.0. 1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1399 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1400 ;; 1401 1402 esac 1403done 1404 1405if test -n "$ac_prev"; then 1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1407 as_fn_error $? "missing argument to $ac_option" 1408fi 1409 1410if test -n "$ac_unrecognized_opts"; then 1411 case $enable_option_checking in 1412 no) ;; 1413 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1415 esac 1416fi 1417 1418# Check all directory arguments for consistency. 1419for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1420 datadir sysconfdir sharedstatedir localstatedir includedir \ 1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1422 libdir localedir mandir runstatedir 1423do 1424 eval ac_val=\$$ac_var 1425 # Remove trailing slashes. 1426 case $ac_val in 1427 */ ) 1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1429 eval $ac_var=\$ac_val;; 1430 esac 1431 # Be sure to have absolute directory names. 1432 case $ac_val in 1433 [\\/$]* | ?:[\\/]* ) continue;; 1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1435 esac 1436 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1437done 1438 1439# There might be people who depend on the old broken behavior: `$host' 1440# used to hold the argument of --host etc. 1441# FIXME: To remove some day. 1442build=$build_alias 1443host=$host_alias 1444target=$target_alias 1445 1446# FIXME: To remove some day. 1447if test "x$host_alias" != x; then 1448 if test "x$build_alias" = x; then 1449 cross_compiling=maybe 1450 elif test "x$build_alias" != "x$host_alias"; then 1451 cross_compiling=yes 1452 fi 1453fi 1454 1455ac_tool_prefix= 1456test -n "$host_alias" && ac_tool_prefix=$host_alias- 1457 1458test "$silent" = yes && exec 6>/dev/null 1459 1460 1461ac_pwd=`pwd` && test -n "$ac_pwd" && 1462ac_ls_di=`ls -di .` && 1463ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1464 as_fn_error $? "working directory cannot be determined" 1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1466 as_fn_error $? "pwd does not report name of working directory" 1467 1468 1469# Find the source files, if location was not specified. 1470if test -z "$srcdir"; then 1471 ac_srcdir_defaulted=yes 1472 # Try the directory containing this script, then the parent directory. 1473 ac_confdir=`$as_dirname -- "$as_myself" || 1474$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1475 X"$as_myself" : 'X\(//\)[^/]' \| \ 1476 X"$as_myself" : 'X\(//\)$' \| \ 1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1478$as_echo X"$as_myself" | 1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1480 s//\1/ 1481 q 1482 } 1483 /^X\(\/\/\)[^/].*/{ 1484 s//\1/ 1485 q 1486 } 1487 /^X\(\/\/\)$/{ 1488 s//\1/ 1489 q 1490 } 1491 /^X\(\/\).*/{ 1492 s//\1/ 1493 q 1494 } 1495 s/.*/./; q'` 1496 srcdir=$ac_confdir 1497 if test ! -r "$srcdir/$ac_unique_file"; then 1498 srcdir=.. 1499 fi 1500else 1501 ac_srcdir_defaulted=no 1502fi 1503if test ! -r "$srcdir/$ac_unique_file"; then 1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1505 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1506fi 1507ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1508ac_abs_confdir=`( 1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1510 pwd)` 1511# When building in place, set srcdir=. 1512if test "$ac_abs_confdir" = "$ac_pwd"; then 1513 srcdir=. 1514fi 1515# Remove unnecessary trailing slashes from srcdir. 1516# Double slashes in file names in object file debugging info 1517# mess up M-x gdb in Emacs. 1518case $srcdir in 1519*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1520esac 1521for ac_var in $ac_precious_vars; do 1522 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1523 eval ac_env_${ac_var}_value=\$${ac_var} 1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1525 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1526done 1527 1528# 1529# Report the --help message. 1530# 1531if test "$ac_init_help" = "long"; then 1532 # Omit some internal or obsolete options to make the list less imposing. 1533 # This message is too long to be a string in the A/UX 3.1 sh. 1534 cat <<_ACEOF 1535\`configure' configures GStreamer libav 1.16.2 to adapt to many kinds of systems. 1536 1537Usage: $0 [OPTION]... [VAR=VALUE]... 1538 1539To assign environment variables (e.g., CC, CFLAGS...), specify them as 1540VAR=VALUE. See below for descriptions of some of the useful variables. 1541 1542Defaults for the options are specified in brackets. 1543 1544Configuration: 1545 -h, --help display this help and exit 1546 --help=short display options specific to this package 1547 --help=recursive display the short help of all the included packages 1548 -V, --version display version information and exit 1549 -q, --quiet, --silent do not print \`checking ...' messages 1550 --cache-file=FILE cache test results in FILE [disabled] 1551 -C, --config-cache alias for \`--cache-file=config.cache' 1552 -n, --no-create do not create output files 1553 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1554 1555Installation directories: 1556 --prefix=PREFIX install architecture-independent files in PREFIX 1557 [$ac_default_prefix] 1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1559 [PREFIX] 1560 1561By default, \`make install' will install all the files in 1562\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1563an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1564for instance \`--prefix=\$HOME'. 1565 1566For better control, use the options below. 1567 1568Fine tuning of the installation directories: 1569 --bindir=DIR user executables [EPREFIX/bin] 1570 --sbindir=DIR system admin executables [EPREFIX/sbin] 1571 --libexecdir=DIR program executables [EPREFIX/libexec] 1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1575 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1576 --libdir=DIR object code libraries [EPREFIX/lib] 1577 --includedir=DIR C header files [PREFIX/include] 1578 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1581 --infodir=DIR info documentation [DATAROOTDIR/info] 1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1583 --mandir=DIR man documentation [DATAROOTDIR/man] 1584 --docdir=DIR documentation root [DATAROOTDIR/doc/gst-libav] 1585 --htmldir=DIR html documentation [DOCDIR] 1586 --dvidir=DIR dvi documentation [DOCDIR] 1587 --pdfdir=DIR pdf documentation [DOCDIR] 1588 --psdir=DIR ps documentation [DOCDIR] 1589_ACEOF 1590 1591 cat <<\_ACEOF 1592 1593Program names: 1594 --program-prefix=PREFIX prepend PREFIX to installed program names 1595 --program-suffix=SUFFIX append SUFFIX to installed program names 1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1597 1598System types: 1599 --build=BUILD configure for building on BUILD [guessed] 1600 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1601 --target=TARGET configure for building compilers for TARGET [HOST] 1602_ACEOF 1603fi 1604 1605if test -n "$ac_init_help"; then 1606 case $ac_init_help in 1607 short | recursive ) echo "Configuration of GStreamer libav 1.16.2:";; 1608 esac 1609 cat <<\_ACEOF 1610 1611Optional Features: 1612 --disable-option-checking ignore unrecognized --enable/--with options 1613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1615 --enable-silent-rules less verbose build output (undo: "make V=1") 1616 --disable-silent-rules verbose build output (undo: "make V=0") 1617 --disable-maintainer-mode 1618 disable make rules and dependencies not useful (and 1619 sometimes confusing) to the casual installer 1620 --enable-static[=PKGS] build static libraries [default=no] 1621 --enable-shared[=PKGS] build shared libraries [default=yes] 1622 --enable-fast-install[=PKGS] 1623 optimize for fast installation [default=yes] 1624 --enable-dependency-tracking 1625 do not reject slow dependency extractors 1626 --disable-dependency-tracking 1627 speeds up one-time build 1628 --disable-libtool-lock avoid locking (might break parallel builds) 1629 --enable-orc use Orc if installed 1630 --disable-fatal-warnings 1631 Don't turn compiler warnings into fatal errors 1632 --enable-extra-checks Enable extra runtime checks 1633 --disable-valgrind disable run-time valgrind detection 1634 --enable-gcov compile with coverage profiling instrumentation (gcc 1635 only) 1636 --disable-largefile omit support for large files 1637 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1638 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1639 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1640 --enable-gobject-cast-checks=[no/auto/yes] 1641 Enable GObject cast checks 1642 --enable-glib-asserts=[no/yes] 1643 Enable GLib assertion 1644 --disable-Bsymbolic avoid linking with -Bsymbolic 1645 --enable-gpl build a GPL licensed gst-libav 1646 1647Optional Packages: 1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1650 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1651 both] 1652 --with-aix-soname=aix|svr4|both 1653 shared library versioning (aka "SONAME") variant to 1654 provide on AIX, [default=aix]. 1655 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1656 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1657 compiler's sysroot if not specified). 1658 --with-autoconf use a different autoconf for regeneration of 1659 Makefiles 1660 --with-autoheader use a different autoheader for regeneration of 1661 Makefiles 1662 --with-automake use a different automake for regeneration of 1663 Makefiles 1664 --with-aclocal use a different aclocal for regeneration of 1665 Makefiles 1666 --with-pkg-config-path colon-separated list of pkg-config(1) dirs 1667 --with-package-name specify package name to use in plugins 1668 --with-package-origin specify package origin URL to use in plugins 1669 --with-html-dir=PATH path to installed docs 1670 --with-system-libav use system Libav libraries 1671 --with-libav-extra-configure="xxx" 1672 extra configure options for internal libav 1673 ./configure script 1674 1675Some influential environment variables: 1676 CC C compiler command 1677 CFLAGS C compiler flags 1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1679 nonstandard directory <lib dir> 1680 LIBS libraries to pass to the linker, e.g. -l<library> 1681 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1682 you have headers in a nonstandard directory <include dir> 1683 LT_SYS_LIBRARY_PATH 1684 User-defined run-time library search path. 1685 CPP C preprocessor 1686 PKG_CONFIG path to pkg-config utility 1687 ORC_CFLAGS C compiler flags for ORC, overriding pkg-config 1688 ORC_LIBS linker flags for ORC, overriding pkg-config 1689 VALGRIND_CFLAGS 1690 C compiler flags for VALGRIND, overriding pkg-config 1691 VALGRIND_LIBS 1692 linker flags for VALGRIND, overriding pkg-config 1693 GTKDOC_DEPS_CFLAGS 1694 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1695 GTKDOC_DEPS_LIBS 1696 linker flags for GTKDOC_DEPS, overriding pkg-config 1697 PYTHON the Python interpreter 1698 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1699 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1700 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config 1701 GIO_LIBS linker flags for GIO, overriding pkg-config 1702 GST_CFLAGS C compiler flags for GST, overriding pkg-config 1703 GST_LIBS linker flags for GST, overriding pkg-config 1704 GST_BASE_CFLAGS 1705 C compiler flags for GST_BASE, overriding pkg-config 1706 GST_BASE_LIBS 1707 linker flags for GST_BASE, overriding pkg-config 1708 GST_PLUGINS_BASE_CFLAGS 1709 C compiler flags for GST_PLUGINS_BASE, overriding pkg-config 1710 GST_PLUGINS_BASE_LIBS 1711 linker flags for GST_PLUGINS_BASE, overriding pkg-config 1712 GST_CHECK_CFLAGS 1713 C compiler flags for GST_CHECK, overriding pkg-config 1714 GST_CHECK_LIBS 1715 linker flags for GST_CHECK, overriding pkg-config 1716 LIBAV_CFLAGS 1717 C compiler flags for LIBAV, overriding pkg-config 1718 LIBAV_LIBS linker flags for LIBAV, overriding pkg-config 1719 1720Use these variables to override the choices made by `configure' or to help 1721it to find libraries and programs with nonstandard names/locations. 1722 1723Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>. 1724_ACEOF 1725ac_status=$? 1726fi 1727 1728if test "$ac_init_help" = "recursive"; then 1729 # If there are subdirs, report their specific --help. 1730 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1731 test -d "$ac_dir" || 1732 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1733 continue 1734 ac_builddir=. 1735 1736case "$ac_dir" in 1737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1738*) 1739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1740 # A ".." for each directory in $ac_dir_suffix. 1741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1742 case $ac_top_builddir_sub in 1743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1745 esac ;; 1746esac 1747ac_abs_top_builddir=$ac_pwd 1748ac_abs_builddir=$ac_pwd$ac_dir_suffix 1749# for backward compatibility: 1750ac_top_builddir=$ac_top_build_prefix 1751 1752case $srcdir in 1753 .) # We are building in place. 1754 ac_srcdir=. 1755 ac_top_srcdir=$ac_top_builddir_sub 1756 ac_abs_top_srcdir=$ac_pwd ;; 1757 [\\/]* | ?:[\\/]* ) # Absolute name. 1758 ac_srcdir=$srcdir$ac_dir_suffix; 1759 ac_top_srcdir=$srcdir 1760 ac_abs_top_srcdir=$srcdir ;; 1761 *) # Relative name. 1762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1763 ac_top_srcdir=$ac_top_build_prefix$srcdir 1764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1765esac 1766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1767 1768 cd "$ac_dir" || { ac_status=$?; continue; } 1769 # Check for guested configure. 1770 if test -f "$ac_srcdir/configure.gnu"; then 1771 echo && 1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1773 elif test -f "$ac_srcdir/configure"; then 1774 echo && 1775 $SHELL "$ac_srcdir/configure" --help=recursive 1776 else 1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1778 fi || ac_status=$? 1779 cd "$ac_pwd" || { ac_status=$?; break; } 1780 done 1781fi 1782 1783test -n "$ac_init_help" && exit $ac_status 1784if $ac_init_version; then 1785 cat <<\_ACEOF 1786GStreamer libav configure 1.16.2 1787generated by GNU Autoconf 2.69 1788 1789Copyright (C) 2012 Free Software Foundation, Inc. 1790This configure script is free software; the Free Software Foundation 1791gives unlimited permission to copy, distribute and modify it. 1792_ACEOF 1793 exit 1794fi 1795 1796## ------------------------ ## 1797## Autoconf initialization. ## 1798## ------------------------ ## 1799 1800# ac_fn_c_try_compile LINENO 1801# -------------------------- 1802# Try to compile conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext 1807 if { { ac_try="$ac_compile" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_compile") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest.$ac_objext; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_compile 1837 1838# ac_fn_c_try_link LINENO 1839# ----------------------- 1840# Try to link conftest.$ac_ext, and return whether this succeeded. 1841ac_fn_c_try_link () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 rm -f conftest.$ac_objext conftest$ac_exeext 1845 if { { ac_try="$ac_link" 1846case "(($ac_try" in 1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1848 *) ac_try_echo=$ac_try;; 1849esac 1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1851$as_echo "$ac_try_echo"; } >&5 1852 (eval "$ac_link") 2>conftest.err 1853 ac_status=$? 1854 if test -s conftest.err; then 1855 grep -v '^ *+' conftest.err >conftest.er1 1856 cat conftest.er1 >&5 1857 mv -f conftest.er1 conftest.err 1858 fi 1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1860 test $ac_status = 0; } && { 1861 test -z "$ac_c_werror_flag" || 1862 test ! -s conftest.err 1863 } && test -s conftest$ac_exeext && { 1864 test "$cross_compiling" = yes || 1865 test -x conftest$ac_exeext 1866 }; then : 1867 ac_retval=0 1868else 1869 $as_echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=1 1873fi 1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1876 # interfere with the next link command; also delete a directory that is 1877 # left behind by Apple's compiler. We do this before executing the actions. 1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 as_fn_set_status $ac_retval 1881 1882} # ac_fn_c_try_link 1883 1884# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1885# ------------------------------------------------------- 1886# Tests whether HEADER exists and can be compiled using the include files in 1887# INCLUDES, setting the cache variable VAR accordingly. 1888ac_fn_c_check_header_compile () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1892$as_echo_n "checking for $2... " >&6; } 1893if eval \${$3+:} false; then : 1894 $as_echo_n "(cached) " >&6 1895else 1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899#include <$2> 1900_ACEOF 1901if ac_fn_c_try_compile "$LINENO"; then : 1902 eval "$3=yes" 1903else 1904 eval "$3=no" 1905fi 1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1907fi 1908eval ac_res=\$$3 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1910$as_echo "$ac_res" >&6; } 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 1913} # ac_fn_c_check_header_compile 1914 1915# ac_fn_c_try_cpp LINENO 1916# ---------------------- 1917# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1918ac_fn_c_try_cpp () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 if { { ac_try="$ac_cpp conftest.$ac_ext" 1922case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1929 ac_status=$? 1930 if test -s conftest.err; then 1931 grep -v '^ *+' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 mv -f conftest.er1 conftest.err 1934 fi 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } > conftest.i && { 1937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1938 test ! -s conftest.err 1939 }; then : 1940 ac_retval=0 1941else 1942 $as_echo "$as_me: failed program was:" >&5 1943sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=1 1946fi 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 as_fn_set_status $ac_retval 1949 1950} # ac_fn_c_try_cpp 1951 1952# ac_fn_c_try_run LINENO 1953# ---------------------- 1954# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1955# that executables *can* be run. 1956ac_fn_c_try_run () 1957{ 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1959 if { { ac_try="$ac_link" 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_link") 2>&5 1967 ac_status=$? 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1970 { { case "(($ac_try" in 1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1972 *) ac_try_echo=$ac_try;; 1973esac 1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1975$as_echo "$ac_try_echo"; } >&5 1976 (eval "$ac_try") 2>&5 1977 ac_status=$? 1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1979 test $ac_status = 0; }; }; then : 1980 ac_retval=0 1981else 1982 $as_echo "$as_me: program exited with status $ac_status" >&5 1983 $as_echo "$as_me: failed program was:" >&5 1984sed 's/^/| /' conftest.$ac_ext >&5 1985 1986 ac_retval=$ac_status 1987fi 1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 as_fn_set_status $ac_retval 1991 1992} # ac_fn_c_try_run 1993 1994# ac_fn_c_check_func LINENO FUNC VAR 1995# ---------------------------------- 1996# Tests whether FUNC exists, setting the cache variable VAR accordingly 1997ac_fn_c_check_func () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2001$as_echo_n "checking for $2... " >&6; } 2002if eval \${$3+:} false; then : 2003 $as_echo_n "(cached) " >&6 2004else 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2008 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2009#define $2 innocuous_$2 2010 2011/* System header to define __stub macros and hopefully few prototypes, 2012 which can conflict with char $2 (); below. 2013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2014 <limits.h> exists even on freestanding compilers. */ 2015 2016#ifdef __STDC__ 2017# include <limits.h> 2018#else 2019# include <assert.h> 2020#endif 2021 2022#undef $2 2023 2024/* Override any GCC internal prototype to avoid an error. 2025 Use char because int might match the return type of a GCC 2026 builtin and then its argument prototype would still apply. */ 2027#ifdef __cplusplus 2028extern "C" 2029#endif 2030char $2 (); 2031/* The GNU C library defines this for functions which it implements 2032 to always fail with ENOSYS. Some functions are actually named 2033 something starting with __ and the normal name is an alias. */ 2034#if defined __stub_$2 || defined __stub___$2 2035choke me 2036#endif 2037 2038int 2039main () 2040{ 2041return $2 (); 2042 ; 2043 return 0; 2044} 2045_ACEOF 2046if ac_fn_c_try_link "$LINENO"; then : 2047 eval "$3=yes" 2048else 2049 eval "$3=no" 2050fi 2051rm -f core conftest.err conftest.$ac_objext \ 2052 conftest$ac_exeext conftest.$ac_ext 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_c_check_func 2060 2061# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2062# --------------------------------------------- 2063# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2064# accordingly. 2065ac_fn_c_check_decl () 2066{ 2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2068 as_decl_name=`echo $2|sed 's/ *(.*//'` 2069 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2071$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2072if eval \${$3+:} false; then : 2073 $as_echo_n "(cached) " >&6 2074else 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076/* end confdefs.h. */ 2077$4 2078int 2079main () 2080{ 2081#ifndef $as_decl_name 2082#ifdef __cplusplus 2083 (void) $as_decl_use; 2084#else 2085 (void) $as_decl_name; 2086#endif 2087#endif 2088 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 eval "$3=yes" 2095else 2096 eval "$3=no" 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099fi 2100eval ac_res=\$$3 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2102$as_echo "$ac_res" >&6; } 2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104 2105} # ac_fn_c_check_decl 2106 2107# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2108# ------------------------------------------------------- 2109# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2110# the include files in INCLUDES and setting the cache variable VAR 2111# accordingly. 2112ac_fn_c_check_header_mongrel () 2113{ 2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2115 if eval \${$3+:} false; then : 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2117$as_echo_n "checking for $2... " >&6; } 2118if eval \${$3+:} false; then : 2119 $as_echo_n "(cached) " >&6 2120fi 2121eval ac_res=\$$3 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124else 2125 # Is the header compilable? 2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2127$as_echo_n "checking $2 usability... " >&6; } 2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129/* end confdefs.h. */ 2130$4 2131#include <$2> 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 ac_header_compiler=yes 2135else 2136 ac_header_compiler=no 2137fi 2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2140$as_echo "$ac_header_compiler" >&6; } 2141 2142# Is the header present? 2143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2144$as_echo_n "checking $2 presence... " >&6; } 2145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147#include <$2> 2148_ACEOF 2149if ac_fn_c_try_cpp "$LINENO"; then : 2150 ac_header_preproc=yes 2151else 2152 ac_header_preproc=no 2153fi 2154rm -f conftest.err conftest.i conftest.$ac_ext 2155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2156$as_echo "$ac_header_preproc" >&6; } 2157 2158# So? What about this header? 2159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2160 yes:no: ) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2162$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2164$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2165 ;; 2166 no:yes:* ) 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2168$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2170$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2172$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2174$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2176$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2177( $as_echo "## ------------------------------------------------------------------------ ## 2178## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ## 2179## ------------------------------------------------------------------------ ##" 2180 ) | sed "s/^/$as_me: WARNING: /" >&2 2181 ;; 2182esac 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2184$as_echo_n "checking for $2... " >&6; } 2185if eval \${$3+:} false; then : 2186 $as_echo_n "(cached) " >&6 2187else 2188 eval "$3=\$ac_header_compiler" 2189fi 2190eval ac_res=\$$3 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2192$as_echo "$ac_res" >&6; } 2193fi 2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2195 2196} # ac_fn_c_check_header_mongrel 2197cat >config.log <<_ACEOF 2198This file contains any messages produced by compilers while 2199running configure, to aid debugging if configure makes a mistake. 2200 2201It was created by GStreamer libav $as_me 1.16.2, which was 2202generated by GNU Autoconf 2.69. Invocation command line was 2203 2204 $ $0 $@ 2205 2206_ACEOF 2207exec 5>>config.log 2208{ 2209cat <<_ASUNAME 2210## --------- ## 2211## Platform. ## 2212## --------- ## 2213 2214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2215uname -m = `(uname -m) 2>/dev/null || echo unknown` 2216uname -r = `(uname -r) 2>/dev/null || echo unknown` 2217uname -s = `(uname -s) 2>/dev/null || echo unknown` 2218uname -v = `(uname -v) 2>/dev/null || echo unknown` 2219 2220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2222 2223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2226/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2230 2231_ASUNAME 2232 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 $as_echo "PATH: $as_dir" 2239 done 2240IFS=$as_save_IFS 2241 2242} >&5 2243 2244cat >&5 <<_ACEOF 2245 2246 2247## ----------- ## 2248## Core tests. ## 2249## ----------- ## 2250 2251_ACEOF 2252 2253 2254# Keep a trace of the command line. 2255# Strip out --no-create and --no-recursion so they do not pile up. 2256# Strip out --silent because we don't want to record it for future runs. 2257# Also quote any args containing shell meta-characters. 2258# Make two passes to allow for proper duplicate-argument suppression. 2259ac_configure_args= 2260ac_configure_args0= 2261ac_configure_args1= 2262ac_must_keep_next=false 2263for ac_pass in 1 2 2264do 2265 for ac_arg 2266 do 2267 case $ac_arg in 2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2270 | -silent | --silent | --silen | --sile | --sil) 2271 continue ;; 2272 *\'*) 2273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2274 esac 2275 case $ac_pass in 2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2277 2) 2278 as_fn_append ac_configure_args1 " '$ac_arg'" 2279 if test $ac_must_keep_next = true; then 2280 ac_must_keep_next=false # Got value, back to normal. 2281 else 2282 case $ac_arg in 2283 *=* | --config-cache | -C | -disable-* | --disable-* \ 2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2286 | -with-* | --with-* | -without-* | --without-* | --x) 2287 case "$ac_configure_args0 " in 2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2289 esac 2290 ;; 2291 -* ) ac_must_keep_next=true ;; 2292 esac 2293 fi 2294 as_fn_append ac_configure_args " '$ac_arg'" 2295 ;; 2296 esac 2297 done 2298done 2299{ ac_configure_args0=; unset ac_configure_args0;} 2300{ ac_configure_args1=; unset ac_configure_args1;} 2301 2302# When interrupted or exit'd, cleanup temporary files, and complete 2303# config.log. We remove comments because anyway the quotes in there 2304# would cause problems or look ugly. 2305# WARNING: Use '\'' to represent an apostrophe within the trap. 2306# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2307trap 'exit_status=$? 2308 # Save into config.log some information that might help in debugging. 2309 { 2310 echo 2311 2312 $as_echo "## ---------------- ## 2313## Cache variables. ## 2314## ---------------- ##" 2315 echo 2316 # The following way of writing the cache mishandles newlines in values, 2317( 2318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2319 eval ac_val=\$$ac_var 2320 case $ac_val in #( 2321 *${as_nl}*) 2322 case $ac_var in #( 2323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2324$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2325 esac 2326 case $ac_var in #( 2327 _ | IFS | as_nl) ;; #( 2328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2329 *) { eval $ac_var=; unset $ac_var;} ;; 2330 esac ;; 2331 esac 2332 done 2333 (set) 2>&1 | 2334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2335 *${as_nl}ac_space=\ *) 2336 sed -n \ 2337 "s/'\''/'\''\\\\'\'''\''/g; 2338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2339 ;; #( 2340 *) 2341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2342 ;; 2343 esac | 2344 sort 2345) 2346 echo 2347 2348 $as_echo "## ----------------- ## 2349## Output variables. ## 2350## ----------------- ##" 2351 echo 2352 for ac_var in $ac_subst_vars 2353 do 2354 eval ac_val=\$$ac_var 2355 case $ac_val in 2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2357 esac 2358 $as_echo "$ac_var='\''$ac_val'\''" 2359 done | sort 2360 echo 2361 2362 if test -n "$ac_subst_files"; then 2363 $as_echo "## ------------------- ## 2364## File substitutions. ## 2365## ------------------- ##" 2366 echo 2367 for ac_var in $ac_subst_files 2368 do 2369 eval ac_val=\$$ac_var 2370 case $ac_val in 2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2372 esac 2373 $as_echo "$ac_var='\''$ac_val'\''" 2374 done | sort 2375 echo 2376 fi 2377 2378 if test -s confdefs.h; then 2379 $as_echo "## ----------- ## 2380## confdefs.h. ## 2381## ----------- ##" 2382 echo 2383 cat confdefs.h 2384 echo 2385 fi 2386 test "$ac_signal" != 0 && 2387 $as_echo "$as_me: caught signal $ac_signal" 2388 $as_echo "$as_me: exit $exit_status" 2389 } >&5 2390 rm -f core *.core core.conftest.* && 2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2392 exit $exit_status 2393' 0 2394for ac_signal in 1 2 13 15; do 2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2396done 2397ac_signal=0 2398 2399# confdefs.h avoids OS command line length limits that DEFS can exceed. 2400rm -f -r conftest* confdefs.h 2401 2402$as_echo "/* confdefs.h */" > confdefs.h 2403 2404# Predefined preprocessor variables. 2405 2406cat >>confdefs.h <<_ACEOF 2407#define PACKAGE_NAME "$PACKAGE_NAME" 2408_ACEOF 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2412_ACEOF 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_VERSION "$PACKAGE_VERSION" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_STRING "$PACKAGE_STRING" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_URL "$PACKAGE_URL" 2428_ACEOF 2429 2430 2431# Let the site file select an alternate cache file if it wants to. 2432# Prefer an explicitly selected file to automatically selected ones. 2433ac_site_file1=NONE 2434ac_site_file2=NONE 2435if test -n "$CONFIG_SITE"; then 2436 # We do not want a PATH search for config.site. 2437 case $CONFIG_SITE in #(( 2438 -*) ac_site_file1=./$CONFIG_SITE;; 2439 */*) ac_site_file1=$CONFIG_SITE;; 2440 *) ac_site_file1=./$CONFIG_SITE;; 2441 esac 2442elif test "x$prefix" != xNONE; then 2443 ac_site_file1=$prefix/share/config.site 2444 ac_site_file2=$prefix/etc/config.site 2445else 2446 ac_site_file1=$ac_default_prefix/share/config.site 2447 ac_site_file2=$ac_default_prefix/etc/config.site 2448fi 2449for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2450do 2451 test "x$ac_site_file" = xNONE && continue 2452 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2454$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2455 sed 's/^/| /' "$ac_site_file" >&5 2456 . "$ac_site_file" \ 2457 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2459as_fn_error $? "failed to load site script $ac_site_file 2460See \`config.log' for more details" "$LINENO" 5; } 2461 fi 2462done 2463 2464if test -r "$cache_file"; then 2465 # Some versions of bash will fail to source /dev/null (special files 2466 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2467 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2469$as_echo "$as_me: loading cache $cache_file" >&6;} 2470 case $cache_file in 2471 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2472 *) . "./$cache_file";; 2473 esac 2474 fi 2475else 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2477$as_echo "$as_me: creating cache $cache_file" >&6;} 2478 >$cache_file 2479fi 2480 2481# Check that the precious variables saved in the cache have kept the same 2482# value. 2483ac_cache_corrupted=false 2484for ac_var in $ac_precious_vars; do 2485 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2486 eval ac_new_set=\$ac_env_${ac_var}_set 2487 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2488 eval ac_new_val=\$ac_env_${ac_var}_value 2489 case $ac_old_set,$ac_new_set in 2490 set,) 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2493 ac_cache_corrupted=: ;; 2494 ,set) 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2497 ac_cache_corrupted=: ;; 2498 ,);; 2499 *) 2500 if test "x$ac_old_val" != "x$ac_new_val"; then 2501 # differences in whitespace do not lead to failure. 2502 ac_old_val_w=`echo x $ac_old_val` 2503 ac_new_val_w=`echo x $ac_new_val` 2504 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2507 ac_cache_corrupted=: 2508 else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2511 eval $ac_var=\$ac_old_val 2512 fi 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2514$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2516$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2517 fi;; 2518 esac 2519 # Pass precious variables to config.status. 2520 if test "$ac_new_set" = set; then 2521 case $ac_new_val in 2522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2523 *) ac_arg=$ac_var=$ac_new_val ;; 2524 esac 2525 case " $ac_configure_args " in 2526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2527 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2528 esac 2529 fi 2530done 2531if $ac_cache_corrupted; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2536 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2537fi 2538## -------------------- ## 2539## Main body of script. ## 2540## -------------------- ## 2541 2542ac_ext=c 2543ac_cpp='$CPP $CPPFLAGS' 2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546ac_compiler_gnu=$ac_cv_c_compiler_gnu 2547 2548 2549 2550ac_aux_dir= 2551for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2552 if test -f "$ac_dir/install-sh"; then 2553 ac_aux_dir=$ac_dir 2554 ac_install_sh="$ac_aux_dir/install-sh -c" 2555 break 2556 elif test -f "$ac_dir/install.sh"; then 2557 ac_aux_dir=$ac_dir 2558 ac_install_sh="$ac_aux_dir/install.sh -c" 2559 break 2560 elif test -f "$ac_dir/shtool"; then 2561 ac_aux_dir=$ac_dir 2562 ac_install_sh="$ac_aux_dir/shtool install -c" 2563 break 2564 fi 2565done 2566if test -z "$ac_aux_dir"; then 2567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2568fi 2569 2570# These three variables are undocumented and unsupported, 2571# and are intended to be withdrawn in a future Autoconf release. 2572# They can cause serious problems if a builder's source tree is in a directory 2573# whose full name contains unusual characters. 2574ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2575ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2576ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2577 2578 2579# Make sure we can run config.sub. 2580$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2581 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2582 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2584$as_echo_n "checking build system type... " >&6; } 2585if ${ac_cv_build+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 ac_build_alias=$build_alias 2589test "x$ac_build_alias" = x && 2590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2591test "x$ac_build_alias" = x && 2592 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2593ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2595 2596fi 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2598$as_echo "$ac_cv_build" >&6; } 2599case $ac_cv_build in 2600*-*-*) ;; 2601*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2602esac 2603build=$ac_cv_build 2604ac_save_IFS=$IFS; IFS='-' 2605set x $ac_cv_build 2606shift 2607build_cpu=$1 2608build_vendor=$2 2609shift; shift 2610# Remember, the first character of IFS is used to create $*, 2611# except with old shells: 2612build_os=$* 2613IFS=$ac_save_IFS 2614case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2615 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2618$as_echo_n "checking host system type... " >&6; } 2619if ${ac_cv_host+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test "x$host_alias" = x; then 2623 ac_cv_host=$ac_cv_build 2624else 2625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2627fi 2628 2629fi 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2631$as_echo "$ac_cv_host" >&6; } 2632case $ac_cv_host in 2633*-*-*) ;; 2634*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2635esac 2636host=$ac_cv_host 2637ac_save_IFS=$IFS; IFS='-' 2638set x $ac_cv_host 2639shift 2640host_cpu=$1 2641host_vendor=$2 2642shift; shift 2643# Remember, the first character of IFS is used to create $*, 2644# except with old shells: 2645host_os=$* 2646IFS=$ac_save_IFS 2647case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2648 2649 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2651$as_echo_n "checking target system type... " >&6; } 2652if ${ac_cv_target+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 if test "x$target_alias" = x; then 2656 ac_cv_target=$ac_cv_host 2657else 2658 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2659 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2660fi 2661 2662fi 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2664$as_echo "$ac_cv_target" >&6; } 2665case $ac_cv_target in 2666*-*-*) ;; 2667*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2668esac 2669target=$ac_cv_target 2670ac_save_IFS=$IFS; IFS='-' 2671set x $ac_cv_target 2672shift 2673target_cpu=$1 2674target_vendor=$2 2675shift; shift 2676# Remember, the first character of IFS is used to create $*, 2677# except with old shells: 2678target_os=$* 2679IFS=$ac_save_IFS 2680case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2681 2682 2683# The aliases save the names the user supplied, while $host etc. 2684# will get canonicalized. 2685test -n "$target_alias" && 2686 test "$program_prefix$program_suffix$program_transform_name" = \ 2687 NONENONEs,x,x, && 2688 program_prefix=${target_alias}- 2689 2690 2691 2692 2693am__api_version='1.16' 2694 2695# Find a good install program. We prefer a C program (faster), 2696# so one script is as good as another. But avoid the broken or 2697# incompatible versions: 2698# SysV /etc/install, /usr/sbin/install 2699# SunOS /usr/etc/install 2700# IRIX /sbin/install 2701# AIX /bin/install 2702# AmigaOS /C/install, which installs bootblocks on floppy discs 2703# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2704# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2705# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2706# OS/2's system install, which has a completely different semantic 2707# ./install, which can be erroneously created by make from ./install.sh. 2708# Reject install programs that cannot install multiple files. 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2710$as_echo_n "checking for a BSD-compatible install... " >&6; } 2711if test -z "$INSTALL"; then 2712if ${ac_cv_path_install+:} false; then : 2713 $as_echo_n "(cached) " >&6 2714else 2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 test -z "$as_dir" && as_dir=. 2720 # Account for people who put trailing slashes in PATH elements. 2721case $as_dir/ in #(( 2722 ./ | .// | /[cC]/* | \ 2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2725 /usr/ucb/* ) ;; 2726 *) 2727 # OSF1 and SCO ODT 3.0 have their own names for install. 2728 # Don't use installbsd from OSF since it installs stuff as root 2729 # by default. 2730 for ac_prog in ginstall scoinst install; do 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2733 if test $ac_prog = install && 2734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2735 # AIX install. It has an incompatible calling convention. 2736 : 2737 elif test $ac_prog = install && 2738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2739 # program-specific install script used by HP pwplus--don't use. 2740 : 2741 else 2742 rm -rf conftest.one conftest.two conftest.dir 2743 echo one > conftest.one 2744 echo two > conftest.two 2745 mkdir conftest.dir 2746 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2747 test -s conftest.one && test -s conftest.two && 2748 test -s conftest.dir/conftest.one && 2749 test -s conftest.dir/conftest.two 2750 then 2751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2752 break 3 2753 fi 2754 fi 2755 fi 2756 done 2757 done 2758 ;; 2759esac 2760 2761 done 2762IFS=$as_save_IFS 2763 2764rm -rf conftest.one conftest.two conftest.dir 2765 2766fi 2767 if test "${ac_cv_path_install+set}" = set; then 2768 INSTALL=$ac_cv_path_install 2769 else 2770 # As a last resort, use the slow shell script. Don't cache a 2771 # value for INSTALL within a source directory, because that will 2772 # break other packages using the cache if that directory is 2773 # removed, or if the value is a relative name. 2774 INSTALL=$ac_install_sh 2775 fi 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2778$as_echo "$INSTALL" >&6; } 2779 2780# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2781# It thinks the first close brace ends the variable substitution. 2782test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2783 2784test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2785 2786test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2787 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2789$as_echo_n "checking whether build environment is sane... " >&6; } 2790# Reject unsafe characters in $srcdir or the absolute working directory 2791# name. Accept space and tab only in the latter. 2792am_lf=' 2793' 2794case `pwd` in 2795 *[\\\"\#\$\&\'\`$am_lf]*) 2796 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2797esac 2798case $srcdir in 2799 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2800 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2801esac 2802 2803# Do 'set' in a subshell so we don't clobber the current shell's 2804# arguments. Must try -L first in case configure is actually a 2805# symlink; some systems play weird games with the mod time of symlinks 2806# (eg FreeBSD returns the mod time of the symlink's containing 2807# directory). 2808if ( 2809 am_has_slept=no 2810 for am_try in 1 2; do 2811 echo "timestamp, slept: $am_has_slept" > conftest.file 2812 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2813 if test "$*" = "X"; then 2814 # -L didn't work. 2815 set X `ls -t "$srcdir/configure" conftest.file` 2816 fi 2817 if test "$*" != "X $srcdir/configure conftest.file" \ 2818 && test "$*" != "X conftest.file $srcdir/configure"; then 2819 2820 # If neither matched, then we have a broken ls. This can happen 2821 # if, for instance, CONFIG_SHELL is bash and it inherits a 2822 # broken ls alias from the environment. This has actually 2823 # happened. Such a system could not be considered "sane". 2824 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2825 alias in your environment" "$LINENO" 5 2826 fi 2827 if test "$2" = conftest.file || test $am_try -eq 2; then 2828 break 2829 fi 2830 # Just in case. 2831 sleep 1 2832 am_has_slept=yes 2833 done 2834 test "$2" = conftest.file 2835 ) 2836then 2837 # Ok. 2838 : 2839else 2840 as_fn_error $? "newly created file is older than distributed files! 2841Check your system clock" "$LINENO" 5 2842fi 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2844$as_echo "yes" >&6; } 2845# If we didn't sleep, we still need to ensure time stamps of config.status and 2846# generated files are strictly newer. 2847am_sleep_pid= 2848if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2849 ( sleep 1 ) & 2850 am_sleep_pid=$! 2851fi 2852 2853rm -f conftest.file 2854 2855test "$program_prefix" != NONE && 2856 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2857# Use a double $ so make ignores it. 2858test "$program_suffix" != NONE && 2859 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2860# Double any \ or $. 2861# By default was `s,x,x', remove it if useless. 2862ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2863program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2864 2865# Expand $ac_aux_dir to an absolute path. 2866am_aux_dir=`cd "$ac_aux_dir" && pwd` 2867 2868if test x"${MISSING+set}" != xset; then 2869 case $am_aux_dir in 2870 *\ * | *\ *) 2871 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2872 *) 2873 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2874 esac 2875fi 2876# Use eval to expand $SHELL 2877if eval "$MISSING --is-lightweight"; then 2878 am_missing_run="$MISSING " 2879else 2880 am_missing_run= 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2882$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2883fi 2884 2885if test x"${install_sh+set}" != xset; then 2886 case $am_aux_dir in 2887 *\ * | *\ *) 2888 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2889 *) 2890 install_sh="\${SHELL} $am_aux_dir/install-sh" 2891 esac 2892fi 2893 2894# Installed binaries are usually stripped using 'strip' when the user 2895# run "make install-strip". However 'strip' might not be the right 2896# tool to use in cross-compilation environments, therefore Automake 2897# will honor the 'STRIP' environment variable to overrule this program. 2898if test "$cross_compiling" != no; then 2899 if test -n "$ac_tool_prefix"; then 2900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2901set dummy ${ac_tool_prefix}strip; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_STRIP+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$STRIP"; then 2908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927STRIP=$ac_cv_prog_STRIP 2928if test -n "$STRIP"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2930$as_echo "$STRIP" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937fi 2938if test -z "$ac_cv_prog_STRIP"; then 2939 ac_ct_STRIP=$STRIP 2940 # Extract the first word of "strip", so it can be a program name with args. 2941set dummy strip; ac_word=$2 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943$as_echo_n "checking for $ac_word... " >&6; } 2944if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 if test -n "$ac_ct_STRIP"; then 2948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_ac_ct_STRIP="strip" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962 done 2963IFS=$as_save_IFS 2964 2965fi 2966fi 2967ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2968if test -n "$ac_ct_STRIP"; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2970$as_echo "$ac_ct_STRIP" >&6; } 2971else 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973$as_echo "no" >&6; } 2974fi 2975 2976 if test "x$ac_ct_STRIP" = x; then 2977 STRIP=":" 2978 else 2979 case $cross_compiling:$ac_tool_warned in 2980yes:) 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2983ac_tool_warned=yes ;; 2984esac 2985 STRIP=$ac_ct_STRIP 2986 fi 2987else 2988 STRIP="$ac_cv_prog_STRIP" 2989fi 2990 2991fi 2992INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2993 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2995$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2996if test -z "$MKDIR_P"; then 2997 if ${ac_cv_path_mkdir+:} false; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_prog in mkdir gmkdir; do 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3008 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3009 'mkdir (GNU coreutils) '* | \ 3010 'mkdir (coreutils) '* | \ 3011 'mkdir (fileutils) '4.1*) 3012 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3013 break 3;; 3014 esac 3015 done 3016 done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021 3022 test -d ./--version && rmdir ./--version 3023 if test "${ac_cv_path_mkdir+set}" = set; then 3024 MKDIR_P="$ac_cv_path_mkdir -p" 3025 else 3026 # As a last resort, use the slow shell script. Don't cache a 3027 # value for MKDIR_P within a source directory, because that will 3028 # break other packages using the cache if that directory is 3029 # removed, or if the value is a relative name. 3030 MKDIR_P="$ac_install_sh -d" 3031 fi 3032fi 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3034$as_echo "$MKDIR_P" >&6; } 3035 3036for ac_prog in gawk mawk nawk awk 3037do 3038 # Extract the first word of "$ac_prog", so it can be a program name with args. 3039set dummy $ac_prog; ac_word=$2 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if ${ac_cv_prog_AWK+:} false; then : 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$AWK"; then 3046 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_AWK="$ac_prog" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065AWK=$ac_cv_prog_AWK 3066if test -n "$AWK"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3068$as_echo "$AWK" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 test -n "$AWK" && break 3076done 3077 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3079$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3080set x ${MAKE-make} 3081ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3082if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 cat >conftest.make <<\_ACEOF 3086SHELL = /bin/sh 3087all: 3088 @echo '@@@%%%=$(MAKE)=@@@%%%' 3089_ACEOF 3090# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3091case `${MAKE-make} -f conftest.make 2>/dev/null` in 3092 *@@@%%%=?*=@@@%%%*) 3093 eval ac_cv_prog_make_${ac_make}_set=yes;; 3094 *) 3095 eval ac_cv_prog_make_${ac_make}_set=no;; 3096esac 3097rm -f conftest.make 3098fi 3099if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3101$as_echo "yes" >&6; } 3102 SET_MAKE= 3103else 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105$as_echo "no" >&6; } 3106 SET_MAKE="MAKE=${MAKE-make}" 3107fi 3108 3109rm -rf .tst 2>/dev/null 3110mkdir .tst 2>/dev/null 3111if test -d .tst; then 3112 am__leading_dot=. 3113else 3114 am__leading_dot=_ 3115fi 3116rmdir .tst 2>/dev/null 3117 3118# Check whether --enable-silent-rules was given. 3119if test "${enable_silent_rules+set}" = set; then : 3120 enableval=$enable_silent_rules; 3121fi 3122 3123case $enable_silent_rules in # ((( 3124 yes) AM_DEFAULT_VERBOSITY=0;; 3125 no) AM_DEFAULT_VERBOSITY=1;; 3126 *) AM_DEFAULT_VERBOSITY=1;; 3127esac 3128am_make=${MAKE-make} 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3130$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3131if ${am_cv_make_support_nested_variables+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if $as_echo 'TRUE=$(BAR$(V)) 3135BAR0=false 3136BAR1=true 3137V=1 3138am__doit: 3139 @$(TRUE) 3140.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3141 am_cv_make_support_nested_variables=yes 3142else 3143 am_cv_make_support_nested_variables=no 3144fi 3145fi 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3147$as_echo "$am_cv_make_support_nested_variables" >&6; } 3148if test $am_cv_make_support_nested_variables = yes; then 3149 AM_V='$(V)' 3150 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3151else 3152 AM_V=$AM_DEFAULT_VERBOSITY 3153 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3154fi 3155AM_BACKSLASH='\' 3156 3157if test "`cd $srcdir && pwd`" != "`pwd`"; then 3158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3159 # is not polluted with repeated "-I." 3160 am__isrc=' -I$(srcdir)' 3161 # test to see if srcdir already configured 3162 if test -f $srcdir/config.status; then 3163 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3164 fi 3165fi 3166 3167# test whether we have cygpath 3168if test -z "$CYGPATH_W"; then 3169 if (cygpath --version) >/dev/null 2>/dev/null; then 3170 CYGPATH_W='cygpath -w' 3171 else 3172 CYGPATH_W=echo 3173 fi 3174fi 3175 3176 3177# Define the identity of the package. 3178 PACKAGE='gst-libav' 3179 VERSION='1.16.2' 3180 3181 3182cat >>confdefs.h <<_ACEOF 3183#define PACKAGE "$PACKAGE" 3184_ACEOF 3185 3186 3187cat >>confdefs.h <<_ACEOF 3188#define VERSION "$VERSION" 3189_ACEOF 3190 3191# Some tools Automake needs. 3192 3193ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3194 3195 3196AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3197 3198 3199AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3200 3201 3202AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3203 3204 3205MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3206 3207# For better backward compatibility. To be removed once Automake 1.9.x 3208# dies out for good. For more background, see: 3209# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3210# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3211mkdir_p='$(MKDIR_P)' 3212 3213# We need awk for the "check" target (and possibly the TAP driver). The 3214# system "awk" is bad on some platforms. 3215# Always define AMTAR for backward compatibility. Yes, it's still used 3216# in the wild :-( We should find a proper way to deprecate it ... 3217AMTAR='$${TAR-tar}' 3218 3219 3220# We'll loop over all known methods to create a tar archive until one works. 3221_am_tools='gnutar plaintar pax cpio none' 3222 3223# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3224 # There is notably a 21 bits limit for the UID and the GID. In fact, 3225 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3226 # and bug#13588). 3227 am_max_uid=2097151 # 2^21 - 1 3228 am_max_gid=$am_max_uid 3229 # The $UID and $GID variables are not portable, so we need to resort 3230 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3231 # below are definitely unexpected, so allow the users to see them 3232 # (that is, avoid stderr redirection). 3233 am_uid=`id -u || echo unknown` 3234 am_gid=`id -g || echo unknown` 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3236$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3237 if test $am_uid -le $am_max_uid; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3239$as_echo "yes" >&6; } 3240 else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243 _am_tools=none 3244 fi 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3246$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3247 if test $am_gid -le $am_max_gid; then 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3249$as_echo "yes" >&6; } 3250 else 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252$as_echo "no" >&6; } 3253 _am_tools=none 3254 fi 3255 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3257$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3258 3259 # Go ahead even if we have the value already cached. We do so because we 3260 # need to set the values for the 'am__tar' and 'am__untar' variables. 3261 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3262 3263 for _am_tool in $_am_tools; do 3264 case $_am_tool in 3265 gnutar) 3266 for _am_tar in tar gnutar gtar; do 3267 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3268 ($_am_tar --version) >&5 2>&5 3269 ac_status=$? 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } && break 3272 done 3273 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3274 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3275 am__untar="$_am_tar -xf -" 3276 ;; 3277 plaintar) 3278 # Must skip GNU tar: if it does not support --format= it doesn't create 3279 # ustar tarball either. 3280 (tar --version) >/dev/null 2>&1 && continue 3281 am__tar='tar chf - "$$tardir"' 3282 am__tar_='tar chf - "$tardir"' 3283 am__untar='tar xf -' 3284 ;; 3285 pax) 3286 am__tar='pax -L -x ustar -w "$$tardir"' 3287 am__tar_='pax -L -x ustar -w "$tardir"' 3288 am__untar='pax -r' 3289 ;; 3290 cpio) 3291 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3292 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3293 am__untar='cpio -i -H ustar -d' 3294 ;; 3295 none) 3296 am__tar=false 3297 am__tar_=false 3298 am__untar=false 3299 ;; 3300 esac 3301 3302 # If the value was cached, stop now. We just wanted to have am__tar 3303 # and am__untar set. 3304 test -n "${am_cv_prog_tar_ustar}" && break 3305 3306 # tar/untar a dummy directory, and stop if the command works. 3307 rm -rf conftest.dir 3308 mkdir conftest.dir 3309 echo GrepMe > conftest.dir/file 3310 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3311 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3312 ac_status=$? 3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3314 (exit $ac_status); } 3315 rm -rf conftest.dir 3316 if test -s conftest.tar; then 3317 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3318 ($am__untar <conftest.tar) >&5 2>&5 3319 ac_status=$? 3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3321 (exit $ac_status); } 3322 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3323 (cat conftest.dir/file) >&5 2>&5 3324 ac_status=$? 3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3326 (exit $ac_status); } 3327 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3328 fi 3329 done 3330 rm -rf conftest.dir 3331 3332 if ${am_cv_prog_tar_ustar+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 am_cv_prog_tar_ustar=$_am_tool 3336fi 3337 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3339$as_echo "$am_cv_prog_tar_ustar" >&6; } 3340 3341 3342 3343 3344 3345 3346# POSIX will say in a future version that running "rm -f" with no argument 3347# is OK; and we want to be able to make that assumption in our Makefile 3348# recipes. So use an aggressive probe to check that the usage we want is 3349# actually supported "in the wild" to an acceptable degree. 3350# See automake bug#10828. 3351# To make any issue more visible, cause the running configure to be aborted 3352# by default if the 'rm' program in use doesn't match our expectations; the 3353# user can still override this though. 3354if rm -f && rm -fr && rm -rf; then : OK; else 3355 cat >&2 <<'END' 3356Oops! 3357 3358Your 'rm' program seems unable to run without file operands specified 3359on the command line, even when the '-f' option is present. This is contrary 3360to the behaviour of most rm programs out there, and not conforming with 3361the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3362 3363Please tell bug-automake@gnu.org about your system, including the value 3364of your $PATH and any error possibly output before this message. This 3365can help us improve future automake versions. 3366 3367END 3368 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3369 echo 'Configuration will proceed anyway, since you have set the' >&2 3370 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3371 echo >&2 3372 else 3373 cat >&2 <<'END' 3374Aborting the configuration process, to ensure you take notice of the issue. 3375 3376You can download and install GNU coreutils to get an 'rm' implementation 3377that behaves properly: <https://www.gnu.org/software/coreutils/>. 3378 3379If you want to complete the configuration process using your problematic 3380'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3381to "yes", and re-run configure. 3382 3383END 3384 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3385 fi 3386fi 3387 3388 3389 3390 PACKAGE_VERSION_MAJOR=$(echo 1.16.2 | cut -d'.' -f1) 3391 PACKAGE_VERSION_MINOR=$(echo 1.16.2 | cut -d'.' -f2) 3392 PACKAGE_VERSION_MICRO=$(echo 1.16.2 | cut -d'.' -f3) 3393 3394 3395 3396 3397 3398 3399 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5 3401$as_echo_n "checking nano version... " >&6; } 3402 3403 NANO=$(echo 1.16.2 | cut -d'.' -f4) 3404 3405 if test x"$NANO" = x || test "x$NANO" = "x0" ; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5 3407$as_echo "0 (release)" >&6; } 3408 NANO=0 3409 PACKAGE_VERSION_RELEASE=1 3410 GST_GIT="no" 3411 else 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5 3413$as_echo "$NANO" >&6; } 3414 PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S` 3415 if test "x$NANO" != "x1" ; then 3416 GST_GIT="no" 3417 else 3418 GST_GIT="yes" 3419 fi 3420 fi 3421 PACKAGE_VERSION_NANO=$NANO 3422 3423 3424 3425 3426 3427 3428ac_config_headers="$ac_config_headers config.h" 3429 3430 3431 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3433$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3434 # Check whether --enable-maintainer-mode was given. 3435if test "${enable_maintainer_mode+set}" = set; then : 3436 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3437else 3438 USE_MAINTAINER_MODE=yes 3439fi 3440 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3442$as_echo "$USE_MAINTAINER_MODE" >&6; } 3443 if test $USE_MAINTAINER_MODE = yes; then 3444 MAINTAINER_MODE_TRUE= 3445 MAINTAINER_MODE_FALSE='#' 3446else 3447 MAINTAINER_MODE_TRUE='#' 3448 MAINTAINER_MODE_FALSE= 3449fi 3450 3451 MAINT=$MAINTAINER_MODE_TRUE 3452 3453 3454 3455 3456 3457# Check whether --enable-silent-rules was given. 3458if test "${enable_silent_rules+set}" = set; then : 3459 enableval=$enable_silent_rules; 3460fi 3461 3462case $enable_silent_rules in # ((( 3463 yes) AM_DEFAULT_VERBOSITY=0;; 3464 no) AM_DEFAULT_VERBOSITY=1;; 3465 *) AM_DEFAULT_VERBOSITY=0;; 3466esac 3467am_make=${MAKE-make} 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3469$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3470if ${am_cv_make_support_nested_variables+:} false; then : 3471 $as_echo_n "(cached) " >&6 3472else 3473 if $as_echo 'TRUE=$(BAR$(V)) 3474BAR0=false 3475BAR1=true 3476V=1 3477am__doit: 3478 @$(TRUE) 3479.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3480 am_cv_make_support_nested_variables=yes 3481else 3482 am_cv_make_support_nested_variables=no 3483fi 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3486$as_echo "$am_cv_make_support_nested_variables" >&6; } 3487if test $am_cv_make_support_nested_variables = yes; then 3488 AM_V='$(V)' 3489 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3490else 3491 AM_V=$AM_DEFAULT_VERBOSITY 3492 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3493fi 3494AM_BACKSLASH='\' 3495 3496 3497GST_API_VERSION=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR 3498GST_API_VERSION=1.0 3499 3500 3501orig_AS="$AS" 3502 3503 case $host_os in 3504 cygwin* | mingw*) 3505 lt_cv_deplibs_check_method=pass_all 3506 ;; 3507 esac 3508 3509case `pwd` in 3510 *\ * | *\ *) 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3512$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3513esac 3514 3515 3516 3517macro_version='2.4.6' 3518macro_revision='2.4.6' 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532ltmain=$ac_aux_dir/ltmain.sh 3533 3534# Backslashify metacharacters that are still active within 3535# double-quoted strings. 3536sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3537 3538# Same as above, but do not quote variable references. 3539double_quote_subst='s/\(["`\\]\)/\\\1/g' 3540 3541# Sed substitution to delay expansion of an escaped shell variable in a 3542# double_quote_subst'ed string. 3543delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3544 3545# Sed substitution to delay expansion of an escaped single quote. 3546delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3547 3548# Sed substitution to avoid accidental globbing in evaled expressions 3549no_glob_subst='s/\*/\\\*/g' 3550 3551ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3553ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3554 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3556$as_echo_n "checking how to print strings... " >&6; } 3557# Test print first, because it will be a builtin if present. 3558if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3559 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3560 ECHO='print -r --' 3561elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3562 ECHO='printf %s\n' 3563else 3564 # Use this function as a fallback that always works. 3565 func_fallback_echo () 3566 { 3567 eval 'cat <<_LTECHO_EOF 3568$1 3569_LTECHO_EOF' 3570 } 3571 ECHO='func_fallback_echo' 3572fi 3573 3574# func_echo_all arg... 3575# Invoke $ECHO with all args, space-separated. 3576func_echo_all () 3577{ 3578 $ECHO "" 3579} 3580 3581case $ECHO in 3582 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3583$as_echo "printf" >&6; } ;; 3584 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3585$as_echo "print -r" >&6; } ;; 3586 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3587$as_echo "cat" >&6; } ;; 3588esac 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603DEPDIR="${am__leading_dot}deps" 3604 3605ac_config_commands="$ac_config_commands depfiles" 3606 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3608$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3609cat > confinc.mk << 'END' 3610am__doit: 3611 @echo this is the am__doit target >confinc.out 3612.PHONY: am__doit 3613END 3614am__include="#" 3615am__quote= 3616# BSD make does it like this. 3617echo '.include "confinc.mk" # ignored' > confmf.BSD 3618# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3619echo 'include confinc.mk # ignored' > confmf.GNU 3620_am_result=no 3621for s in GNU BSD; do 3622 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3623 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3624 ac_status=$? 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } 3627 case $?:`cat confinc.out 2>/dev/null` in #( 3628 '0:this is the am__doit target') : 3629 case $s in #( 3630 BSD) : 3631 am__include='.include' am__quote='"' ;; #( 3632 *) : 3633 am__include='include' am__quote='' ;; 3634esac ;; #( 3635 *) : 3636 ;; 3637esac 3638 if test "$am__include" != "#"; then 3639 _am_result="yes ($s style)" 3640 break 3641 fi 3642done 3643rm -f confinc.* confmf.* 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3645$as_echo "${_am_result}" >&6; } 3646 3647# Check whether --enable-dependency-tracking was given. 3648if test "${enable_dependency_tracking+set}" = set; then : 3649 enableval=$enable_dependency_tracking; 3650fi 3651 3652if test "x$enable_dependency_tracking" != xno; then 3653 am_depcomp="$ac_aux_dir/depcomp" 3654 AMDEPBACKSLASH='\' 3655 am__nodep='_no' 3656fi 3657 if test "x$enable_dependency_tracking" != xno; then 3658 AMDEP_TRUE= 3659 AMDEP_FALSE='#' 3660else 3661 AMDEP_TRUE='#' 3662 AMDEP_FALSE= 3663fi 3664 3665 3666ac_ext=c 3667ac_cpp='$CPP $CPPFLAGS' 3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671if test -n "$ac_tool_prefix"; then 3672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3673set dummy ${ac_tool_prefix}gcc; ac_word=$2 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675$as_echo_n "checking for $ac_word... " >&6; } 3676if ${ac_cv_prog_CC+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 if test -n "$CC"; then 3680 ac_cv_prog_CC="$CC" # Let the user override the test. 3681else 3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3689 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693done 3694 done 3695IFS=$as_save_IFS 3696 3697fi 3698fi 3699CC=$ac_cv_prog_CC 3700if test -n "$CC"; then 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3702$as_echo "$CC" >&6; } 3703else 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705$as_echo "no" >&6; } 3706fi 3707 3708 3709fi 3710if test -z "$ac_cv_prog_CC"; then 3711 ac_ct_CC=$CC 3712 # Extract the first word of "gcc", so it can be a program name with args. 3713set dummy gcc; ac_word=$2 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3715$as_echo_n "checking for $ac_word... " >&6; } 3716if ${ac_cv_prog_ac_ct_CC+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 if test -n "$ac_ct_CC"; then 3720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3721else 3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3723for as_dir in $PATH 3724do 3725 IFS=$as_save_IFS 3726 test -z "$as_dir" && as_dir=. 3727 for ac_exec_ext in '' $ac_executable_extensions; do 3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3729 ac_cv_prog_ac_ct_CC="gcc" 3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3731 break 2 3732 fi 3733done 3734 done 3735IFS=$as_save_IFS 3736 3737fi 3738fi 3739ac_ct_CC=$ac_cv_prog_ac_ct_CC 3740if test -n "$ac_ct_CC"; then 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3742$as_echo "$ac_ct_CC" >&6; } 3743else 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745$as_echo "no" >&6; } 3746fi 3747 3748 if test "x$ac_ct_CC" = x; then 3749 CC="" 3750 else 3751 case $cross_compiling:$ac_tool_warned in 3752yes:) 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3755ac_tool_warned=yes ;; 3756esac 3757 CC=$ac_ct_CC 3758 fi 3759else 3760 CC="$ac_cv_prog_CC" 3761fi 3762 3763if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3766set dummy ${ac_tool_prefix}cc; ac_word=$2 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768$as_echo_n "checking for $ac_word... " >&6; } 3769if ${ac_cv_prog_CC+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 if test -n "$CC"; then 3773 ac_cv_prog_CC="$CC" # Let the user override the test. 3774else 3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3776for as_dir in $PATH 3777do 3778 IFS=$as_save_IFS 3779 test -z "$as_dir" && as_dir=. 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3782 ac_cv_prog_CC="${ac_tool_prefix}cc" 3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786done 3787 done 3788IFS=$as_save_IFS 3789 3790fi 3791fi 3792CC=$ac_cv_prog_CC 3793if test -n "$CC"; then 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3795$as_echo "$CC" >&6; } 3796else 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3798$as_echo "no" >&6; } 3799fi 3800 3801 3802 fi 3803fi 3804if test -z "$CC"; then 3805 # Extract the first word of "cc", so it can be a program name with args. 3806set dummy cc; ac_word=$2 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3808$as_echo_n "checking for $ac_word... " >&6; } 3809if ${ac_cv_prog_CC+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 if test -n "$CC"; then 3813 ac_cv_prog_CC="$CC" # Let the user override the test. 3814else 3815 ac_prog_rejected=no 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3824 ac_prog_rejected=yes 3825 continue 3826 fi 3827 ac_cv_prog_CC="cc" 3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3829 break 2 3830 fi 3831done 3832 done 3833IFS=$as_save_IFS 3834 3835if test $ac_prog_rejected = yes; then 3836 # We found a bogon in the path, so make sure we never use it. 3837 set dummy $ac_cv_prog_CC 3838 shift 3839 if test $# != 0; then 3840 # We chose a different compiler from the bogus one. 3841 # However, it has the same basename, so the bogon will be chosen 3842 # first if we set CC to just the basename; use the full file name. 3843 shift 3844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3845 fi 3846fi 3847fi 3848fi 3849CC=$ac_cv_prog_CC 3850if test -n "$CC"; then 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3852$as_echo "$CC" >&6; } 3853else 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3855$as_echo "no" >&6; } 3856fi 3857 3858 3859fi 3860if test -z "$CC"; then 3861 if test -n "$ac_tool_prefix"; then 3862 for ac_prog in cl.exe 3863 do 3864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3865set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3867$as_echo_n "checking for $ac_word... " >&6; } 3868if ${ac_cv_prog_CC+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if test -n "$CC"; then 3872 ac_cv_prog_CC="$CC" # Let the user override the test. 3873else 3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3875for as_dir in $PATH 3876do 3877 IFS=$as_save_IFS 3878 test -z "$as_dir" && as_dir=. 3879 for ac_exec_ext in '' $ac_executable_extensions; do 3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3883 break 2 3884 fi 3885done 3886 done 3887IFS=$as_save_IFS 3888 3889fi 3890fi 3891CC=$ac_cv_prog_CC 3892if test -n "$CC"; then 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3894$as_echo "$CC" >&6; } 3895else 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897$as_echo "no" >&6; } 3898fi 3899 3900 3901 test -n "$CC" && break 3902 done 3903fi 3904if test -z "$CC"; then 3905 ac_ct_CC=$CC 3906 for ac_prog in cl.exe 3907do 3908 # Extract the first word of "$ac_prog", so it can be a program name with args. 3909set dummy $ac_prog; ac_word=$2 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3911$as_echo_n "checking for $ac_word... " >&6; } 3912if ${ac_cv_prog_ac_ct_CC+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 if test -n "$ac_ct_CC"; then 3916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3917else 3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3919for as_dir in $PATH 3920do 3921 IFS=$as_save_IFS 3922 test -z "$as_dir" && as_dir=. 3923 for ac_exec_ext in '' $ac_executable_extensions; do 3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3925 ac_cv_prog_ac_ct_CC="$ac_prog" 3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3927 break 2 3928 fi 3929done 3930 done 3931IFS=$as_save_IFS 3932 3933fi 3934fi 3935ac_ct_CC=$ac_cv_prog_ac_ct_CC 3936if test -n "$ac_ct_CC"; then 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3938$as_echo "$ac_ct_CC" >&6; } 3939else 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3941$as_echo "no" >&6; } 3942fi 3943 3944 3945 test -n "$ac_ct_CC" && break 3946done 3947 3948 if test "x$ac_ct_CC" = x; then 3949 CC="" 3950 else 3951 case $cross_compiling:$ac_tool_warned in 3952yes:) 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3955ac_tool_warned=yes ;; 3956esac 3957 CC=$ac_ct_CC 3958 fi 3959fi 3960 3961fi 3962 3963 3964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3966as_fn_error $? "no acceptable C compiler found in \$PATH 3967See \`config.log' for more details" "$LINENO" 5; } 3968 3969# Provide some information about the compiler. 3970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3971set X $ac_compile 3972ac_compiler=$2 3973for ac_option in --version -v -V -qversion; do 3974 { { ac_try="$ac_compiler $ac_option >&5" 3975case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3980$as_echo "$ac_try_echo"; } >&5 3981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3982 ac_status=$? 3983 if test -s conftest.err; then 3984 sed '10a\ 3985... rest of stderr output deleted ... 3986 10q' conftest.err >conftest.er1 3987 cat conftest.er1 >&5 3988 fi 3989 rm -f conftest.er1 conftest.err 3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3991 test $ac_status = 0; } 3992done 3993 3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main () 3999{ 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005ac_clean_files_save=$ac_clean_files 4006ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4007# Try to create an executable without -o first, disregard a.out. 4008# It will help us diagnose broken compilers, and finding out an intuition 4009# of exeext. 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4011$as_echo_n "checking whether the C compiler works... " >&6; } 4012ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4013 4014# The possible output files: 4015ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4016 4017ac_rmfiles= 4018for ac_file in $ac_files 4019do 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4022 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4023 esac 4024done 4025rm -f $ac_rmfiles 4026 4027if { { ac_try="$ac_link_default" 4028case "(($ac_try" in 4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4030 *) ac_try_echo=$ac_try;; 4031esac 4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4033$as_echo "$ac_try_echo"; } >&5 4034 (eval "$ac_link_default") 2>&5 4035 ac_status=$? 4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4037 test $ac_status = 0; }; then : 4038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4039# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4040# in a Makefile. We should not override ac_cv_exeext if it was cached, 4041# so that the user can short-circuit this test for compilers unknown to 4042# Autoconf. 4043for ac_file in $ac_files '' 4044do 4045 test -f "$ac_file" || continue 4046 case $ac_file in 4047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4048 ;; 4049 [ab].out ) 4050 # We found the default executable, but exeext='' is most 4051 # certainly right. 4052 break;; 4053 *.* ) 4054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4055 then :; else 4056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4057 fi 4058 # We set ac_cv_exeext here because the later test for it is not 4059 # safe: cross compilers may not add the suffix if given an `-o' 4060 # argument, so we may need to know it at that point already. 4061 # Even if this section looks crufty: it has the advantage of 4062 # actually working. 4063 break;; 4064 * ) 4065 break;; 4066 esac 4067done 4068test "$ac_cv_exeext" = no && ac_cv_exeext= 4069 4070else 4071 ac_file='' 4072fi 4073if test -z "$ac_file"; then : 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4075$as_echo "no" >&6; } 4076$as_echo "$as_me: failed program was:" >&5 4077sed 's/^/| /' conftest.$ac_ext >&5 4078 4079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4081as_fn_error 77 "C compiler cannot create executables 4082See \`config.log' for more details" "$LINENO" 5; } 4083else 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4085$as_echo "yes" >&6; } 4086fi 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4088$as_echo_n "checking for C compiler default output file name... " >&6; } 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4090$as_echo "$ac_file" >&6; } 4091ac_exeext=$ac_cv_exeext 4092 4093rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4094ac_clean_files=$ac_clean_files_save 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4096$as_echo_n "checking for suffix of executables... " >&6; } 4097if { { ac_try="$ac_link" 4098case "(($ac_try" in 4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4100 *) ac_try_echo=$ac_try;; 4101esac 4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4103$as_echo "$ac_try_echo"; } >&5 4104 (eval "$ac_link") 2>&5 4105 ac_status=$? 4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4107 test $ac_status = 0; }; then : 4108 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4109# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4110# work properly (i.e., refer to `conftest.exe'), while it won't with 4111# `rm'. 4112for ac_file in conftest.exe conftest conftest.*; do 4113 test -f "$ac_file" || continue 4114 case $ac_file in 4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4117 break;; 4118 * ) break;; 4119 esac 4120done 4121else 4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4124as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4125See \`config.log' for more details" "$LINENO" 5; } 4126fi 4127rm -f conftest conftest$ac_cv_exeext 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4129$as_echo "$ac_cv_exeext" >&6; } 4130 4131rm -f conftest.$ac_ext 4132EXEEXT=$ac_cv_exeext 4133ac_exeext=$EXEEXT 4134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135/* end confdefs.h. */ 4136#include <stdio.h> 4137int 4138main () 4139{ 4140FILE *f = fopen ("conftest.out", "w"); 4141 return ferror (f) || fclose (f) != 0; 4142 4143 ; 4144 return 0; 4145} 4146_ACEOF 4147ac_clean_files="$ac_clean_files conftest.out" 4148# Check that the compiler produces executables we can run. If not, either 4149# the compiler is broken, or we cross compile. 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4151$as_echo_n "checking whether we are cross compiling... " >&6; } 4152if test "$cross_compiling" != yes; then 4153 { { ac_try="$ac_link" 4154case "(($ac_try" in 4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4156 *) ac_try_echo=$ac_try;; 4157esac 4158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4159$as_echo "$ac_try_echo"; } >&5 4160 (eval "$ac_link") 2>&5 4161 ac_status=$? 4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4163 test $ac_status = 0; } 4164 if { ac_try='./conftest$ac_cv_exeext' 4165 { { case "(($ac_try" in 4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4167 *) ac_try_echo=$ac_try;; 4168esac 4169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4170$as_echo "$ac_try_echo"; } >&5 4171 (eval "$ac_try") 2>&5 4172 ac_status=$? 4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4174 test $ac_status = 0; }; }; then 4175 cross_compiling=no 4176 else 4177 if test "$cross_compiling" = maybe; then 4178 cross_compiling=yes 4179 else 4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4182as_fn_error $? "cannot run C compiled programs. 4183If you meant to cross compile, use \`--host'. 4184See \`config.log' for more details" "$LINENO" 5; } 4185 fi 4186 fi 4187fi 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4189$as_echo "$cross_compiling" >&6; } 4190 4191rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4192ac_clean_files=$ac_clean_files_save 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4194$as_echo_n "checking for suffix of object files... " >&6; } 4195if ${ac_cv_objext+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200 4201int 4202main () 4203{ 4204 4205 ; 4206 return 0; 4207} 4208_ACEOF 4209rm -f conftest.o conftest.obj 4210if { { ac_try="$ac_compile" 4211case "(($ac_try" in 4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4213 *) ac_try_echo=$ac_try;; 4214esac 4215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4216$as_echo "$ac_try_echo"; } >&5 4217 (eval "$ac_compile") 2>&5 4218 ac_status=$? 4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4220 test $ac_status = 0; }; then : 4221 for ac_file in conftest.o conftest.obj conftest.*; do 4222 test -f "$ac_file" || continue; 4223 case $ac_file in 4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4226 break;; 4227 esac 4228done 4229else 4230 $as_echo "$as_me: failed program was:" >&5 4231sed 's/^/| /' conftest.$ac_ext >&5 4232 4233{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4235as_fn_error $? "cannot compute suffix of object files: cannot compile 4236See \`config.log' for more details" "$LINENO" 5; } 4237fi 4238rm -f conftest.$ac_cv_objext conftest.$ac_ext 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4241$as_echo "$ac_cv_objext" >&6; } 4242OBJEXT=$ac_cv_objext 4243ac_objext=$OBJEXT 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4245$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4246if ${ac_cv_c_compiler_gnu+:} false; then : 4247 $as_echo_n "(cached) " >&6 4248else 4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250/* end confdefs.h. */ 4251 4252int 4253main () 4254{ 4255#ifndef __GNUC__ 4256 choke me 4257#endif 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263if ac_fn_c_try_compile "$LINENO"; then : 4264 ac_compiler_gnu=yes 4265else 4266 ac_compiler_gnu=no 4267fi 4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4269ac_cv_c_compiler_gnu=$ac_compiler_gnu 4270 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4273$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4274if test $ac_compiler_gnu = yes; then 4275 GCC=yes 4276else 4277 GCC= 4278fi 4279ac_test_CFLAGS=${CFLAGS+set} 4280ac_save_CFLAGS=$CFLAGS 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4282$as_echo_n "checking whether $CC accepts -g... " >&6; } 4283if ${ac_cv_prog_cc_g+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 ac_save_c_werror_flag=$ac_c_werror_flag 4287 ac_c_werror_flag=yes 4288 ac_cv_prog_cc_g=no 4289 CFLAGS="-g" 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291/* end confdefs.h. */ 4292 4293int 4294main () 4295{ 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301if ac_fn_c_try_compile "$LINENO"; then : 4302 ac_cv_prog_cc_g=yes 4303else 4304 CFLAGS="" 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307 4308int 4309main () 4310{ 4311 4312 ; 4313 return 0; 4314} 4315_ACEOF 4316if ac_fn_c_try_compile "$LINENO"; then : 4317 4318else 4319 ac_c_werror_flag=$ac_save_c_werror_flag 4320 CFLAGS="-g" 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322/* end confdefs.h. */ 4323 4324int 4325main () 4326{ 4327 4328 ; 4329 return 0; 4330} 4331_ACEOF 4332if ac_fn_c_try_compile "$LINENO"; then : 4333 ac_cv_prog_cc_g=yes 4334fi 4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4336fi 4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4338fi 4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4340 ac_c_werror_flag=$ac_save_c_werror_flag 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4343$as_echo "$ac_cv_prog_cc_g" >&6; } 4344if test "$ac_test_CFLAGS" = set; then 4345 CFLAGS=$ac_save_CFLAGS 4346elif test $ac_cv_prog_cc_g = yes; then 4347 if test "$GCC" = yes; then 4348 CFLAGS="-g -O2" 4349 else 4350 CFLAGS="-g" 4351 fi 4352else 4353 if test "$GCC" = yes; then 4354 CFLAGS="-O2" 4355 else 4356 CFLAGS= 4357 fi 4358fi 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4360$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4361if ${ac_cv_prog_cc_c89+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 ac_cv_prog_cc_c89=no 4365ac_save_CC=$CC 4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367/* end confdefs.h. */ 4368#include <stdarg.h> 4369#include <stdio.h> 4370struct stat; 4371/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4372struct buf { int x; }; 4373FILE * (*rcsopen) (struct buf *, struct stat *, int); 4374static char *e (p, i) 4375 char **p; 4376 int i; 4377{ 4378 return p[i]; 4379} 4380static char *f (char * (*g) (char **, int), char **p, ...) 4381{ 4382 char *s; 4383 va_list v; 4384 va_start (v,p); 4385 s = g (p, va_arg (v,int)); 4386 va_end (v); 4387 return s; 4388} 4389 4390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4391 function prototypes and stuff, but not '\xHH' hex character constants. 4392 These don't provoke an error unfortunately, instead are silently treated 4393 as 'x'. The following induces an error, until -std is added to get 4394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4395 array size at least. It's necessary to write '\x00'==0 to get something 4396 that's true only with -std. */ 4397int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4398 4399/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4400 inside strings and character constants. */ 4401#define FOO(x) 'x' 4402int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4403 4404int test (int i, double x); 4405struct s1 {int (*f) (int a);}; 4406struct s2 {int (*f) (double a);}; 4407int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4408int argc; 4409char **argv; 4410int 4411main () 4412{ 4413return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4420do 4421 CC="$ac_save_CC $ac_arg" 4422 if ac_fn_c_try_compile "$LINENO"; then : 4423 ac_cv_prog_cc_c89=$ac_arg 4424fi 4425rm -f core conftest.err conftest.$ac_objext 4426 test "x$ac_cv_prog_cc_c89" != "xno" && break 4427done 4428rm -f conftest.$ac_ext 4429CC=$ac_save_CC 4430 4431fi 4432# AC_CACHE_VAL 4433case "x$ac_cv_prog_cc_c89" in 4434 x) 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4436$as_echo "none needed" >&6; } ;; 4437 xno) 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4439$as_echo "unsupported" >&6; } ;; 4440 *) 4441 CC="$CC $ac_cv_prog_cc_c89" 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4443$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4444esac 4445if test "x$ac_cv_prog_cc_c89" != xno; then : 4446 4447fi 4448 4449ac_ext=c 4450ac_cpp='$CPP $CPPFLAGS' 4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4453ac_compiler_gnu=$ac_cv_c_compiler_gnu 4454 4455ac_ext=c 4456ac_cpp='$CPP $CPPFLAGS' 4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4459ac_compiler_gnu=$ac_cv_c_compiler_gnu 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4461$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4462if ${am_cv_prog_cc_c_o+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467 4468int 4469main () 4470{ 4471 4472 ; 4473 return 0; 4474} 4475_ACEOF 4476 # Make sure it works both with $CC and with simple cc. 4477 # Following AC_PROG_CC_C_O, we do the test twice because some 4478 # compilers refuse to overwrite an existing .o file with -o, 4479 # though they will create one. 4480 am_cv_prog_cc_c_o=yes 4481 for am_i in 1 2; do 4482 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4483 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4484 ac_status=$? 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 (exit $ac_status); } \ 4487 && test -f conftest2.$ac_objext; then 4488 : OK 4489 else 4490 am_cv_prog_cc_c_o=no 4491 break 4492 fi 4493 done 4494 rm -f core conftest* 4495 unset am_i 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4498$as_echo "$am_cv_prog_cc_c_o" >&6; } 4499if test "$am_cv_prog_cc_c_o" != yes; then 4500 # Losing compiler, so override with the script. 4501 # FIXME: It is wrong to rewrite CC. 4502 # But if we don't then we get into trouble of one sort or another. 4503 # A longer-term fix would be to have automake use am__CC in this case, 4504 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4505 CC="$am_aux_dir/compile $CC" 4506fi 4507ac_ext=c 4508ac_cpp='$CPP $CPPFLAGS' 4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4511ac_compiler_gnu=$ac_cv_c_compiler_gnu 4512 4513 4514depcc="$CC" am_compiler_list= 4515 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4517$as_echo_n "checking dependency style of $depcc... " >&6; } 4518if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4519 $as_echo_n "(cached) " >&6 4520else 4521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4522 # We make a subdir and do the tests there. Otherwise we can end up 4523 # making bogus files that we don't know about and never remove. For 4524 # instance it was reported that on HP-UX the gcc test will end up 4525 # making a dummy file named 'D' -- because '-MD' means "put the output 4526 # in D". 4527 rm -rf conftest.dir 4528 mkdir conftest.dir 4529 # Copy depcomp to subdir because otherwise we won't find it if we're 4530 # using a relative directory. 4531 cp "$am_depcomp" conftest.dir 4532 cd conftest.dir 4533 # We will build objects and dependencies in a subdirectory because 4534 # it helps to detect inapplicable dependency modes. For instance 4535 # both Tru64's cc and ICC support -MD to output dependencies as a 4536 # side effect of compilation, but ICC will put the dependencies in 4537 # the current directory while Tru64 will put them in the object 4538 # directory. 4539 mkdir sub 4540 4541 am_cv_CC_dependencies_compiler_type=none 4542 if test "$am_compiler_list" = ""; then 4543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4544 fi 4545 am__universal=false 4546 case " $depcc " in #( 4547 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4548 esac 4549 4550 for depmode in $am_compiler_list; do 4551 # Setup a source with many dependencies, because some compilers 4552 # like to wrap large dependency lists on column 80 (with \), and 4553 # we should not choose a depcomp mode which is confused by this. 4554 # 4555 # We need to recreate these files for each test, as the compiler may 4556 # overwrite some of them when testing with obscure command lines. 4557 # This happens at least with the AIX C compiler. 4558 : > sub/conftest.c 4559 for i in 1 2 3 4 5 6; do 4560 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4561 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4562 # Solaris 10 /bin/sh. 4563 echo '/* dummy */' > sub/conftst$i.h 4564 done 4565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4566 4567 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4568 # mode. It turns out that the SunPro C++ compiler does not properly 4569 # handle '-M -o', and we need to detect this. Also, some Intel 4570 # versions had trouble with output in subdirs. 4571 am__obj=sub/conftest.${OBJEXT-o} 4572 am__minus_obj="-o $am__obj" 4573 case $depmode in 4574 gcc) 4575 # This depmode causes a compiler race in universal mode. 4576 test "$am__universal" = false || continue 4577 ;; 4578 nosideeffect) 4579 # After this tag, mechanisms are not by side-effect, so they'll 4580 # only be used when explicitly requested. 4581 if test "x$enable_dependency_tracking" = xyes; then 4582 continue 4583 else 4584 break 4585 fi 4586 ;; 4587 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4588 # This compiler won't grok '-c -o', but also, the minuso test has 4589 # not run yet. These depmodes are late enough in the game, and 4590 # so weak that their functioning should not be impacted. 4591 am__obj=conftest.${OBJEXT-o} 4592 am__minus_obj= 4593 ;; 4594 none) break ;; 4595 esac 4596 if depmode=$depmode \ 4597 source=sub/conftest.c object=$am__obj \ 4598 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4599 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4600 >/dev/null 2>conftest.err && 4601 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4603 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4605 # icc doesn't choke on unknown options, it will just issue warnings 4606 # or remarks (even with -Werror). So we grep stderr for any message 4607 # that says an option was ignored or not supported. 4608 # When given -MP, icc 7.0 and 7.1 complain thusly: 4609 # icc: Command line warning: ignoring option '-M'; no argument required 4610 # The diagnosis changed in icc 8.0: 4611 # icc: Command line remark: option '-MP' not supported 4612 if (grep 'ignoring option' conftest.err || 4613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4614 am_cv_CC_dependencies_compiler_type=$depmode 4615 break 4616 fi 4617 fi 4618 done 4619 4620 cd .. 4621 rm -rf conftest.dir 4622else 4623 am_cv_CC_dependencies_compiler_type=none 4624fi 4625 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4628$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4629CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4630 4631 if 4632 test "x$enable_dependency_tracking" != xno \ 4633 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4634 am__fastdepCC_TRUE= 4635 am__fastdepCC_FALSE='#' 4636else 4637 am__fastdepCC_TRUE='#' 4638 am__fastdepCC_FALSE= 4639fi 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4643$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4644if ${ac_cv_path_SED+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4648 for ac_i in 1 2 3 4 5 6 7; do 4649 ac_script="$ac_script$as_nl$ac_script" 4650 done 4651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4652 { ac_script=; unset ac_script;} 4653 if test -z "$SED"; then 4654 ac_path_SED_found=false 4655 # Loop through the user's path and test for each of PROGNAME-LIST 4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4657for as_dir in $PATH 4658do 4659 IFS=$as_save_IFS 4660 test -z "$as_dir" && as_dir=. 4661 for ac_prog in sed gsed; do 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4664 as_fn_executable_p "$ac_path_SED" || continue 4665# Check for GNU ac_path_SED and select it if it is found. 4666 # Check for GNU $ac_path_SED 4667case `"$ac_path_SED" --version 2>&1` in 4668*GNU*) 4669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4670*) 4671 ac_count=0 4672 $as_echo_n 0123456789 >"conftest.in" 4673 while : 4674 do 4675 cat "conftest.in" "conftest.in" >"conftest.tmp" 4676 mv "conftest.tmp" "conftest.in" 4677 cp "conftest.in" "conftest.nl" 4678 $as_echo '' >> "conftest.nl" 4679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4681 as_fn_arith $ac_count + 1 && ac_count=$as_val 4682 if test $ac_count -gt ${ac_path_SED_max-0}; then 4683 # Best one so far, save it but keep looking for a better one 4684 ac_cv_path_SED="$ac_path_SED" 4685 ac_path_SED_max=$ac_count 4686 fi 4687 # 10*(2^10) chars as input seems more than enough 4688 test $ac_count -gt 10 && break 4689 done 4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4691esac 4692 4693 $ac_path_SED_found && break 3 4694 done 4695 done 4696 done 4697IFS=$as_save_IFS 4698 if test -z "$ac_cv_path_SED"; then 4699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4700 fi 4701else 4702 ac_cv_path_SED=$SED 4703fi 4704 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4707$as_echo "$ac_cv_path_SED" >&6; } 4708 SED="$ac_cv_path_SED" 4709 rm -f conftest.sed 4710 4711test -z "$SED" && SED=sed 4712Xsed="$SED -e 1s/^X//" 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4725$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4726if ${ac_cv_path_GREP+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if test -z "$GREP"; then 4730 ac_path_GREP_found=false 4731 # Loop through the user's path and test for each of PROGNAME-LIST 4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_prog in grep ggrep; do 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4740 as_fn_executable_p "$ac_path_GREP" || continue 4741# Check for GNU ac_path_GREP and select it if it is found. 4742 # Check for GNU $ac_path_GREP 4743case `"$ac_path_GREP" --version 2>&1` in 4744*GNU*) 4745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4746*) 4747 ac_count=0 4748 $as_echo_n 0123456789 >"conftest.in" 4749 while : 4750 do 4751 cat "conftest.in" "conftest.in" >"conftest.tmp" 4752 mv "conftest.tmp" "conftest.in" 4753 cp "conftest.in" "conftest.nl" 4754 $as_echo 'GREP' >> "conftest.nl" 4755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4757 as_fn_arith $ac_count + 1 && ac_count=$as_val 4758 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4759 # Best one so far, save it but keep looking for a better one 4760 ac_cv_path_GREP="$ac_path_GREP" 4761 ac_path_GREP_max=$ac_count 4762 fi 4763 # 10*(2^10) chars as input seems more than enough 4764 test $ac_count -gt 10 && break 4765 done 4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4767esac 4768 4769 $ac_path_GREP_found && break 3 4770 done 4771 done 4772 done 4773IFS=$as_save_IFS 4774 if test -z "$ac_cv_path_GREP"; then 4775 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4776 fi 4777else 4778 ac_cv_path_GREP=$GREP 4779fi 4780 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4783$as_echo "$ac_cv_path_GREP" >&6; } 4784 GREP="$ac_cv_path_GREP" 4785 4786 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4788$as_echo_n "checking for egrep... " >&6; } 4789if ${ac_cv_path_EGREP+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4793 then ac_cv_path_EGREP="$GREP -E" 4794 else 4795 if test -z "$EGREP"; then 4796 ac_path_EGREP_found=false 4797 # Loop through the user's path and test for each of PROGNAME-LIST 4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4800do 4801 IFS=$as_save_IFS 4802 test -z "$as_dir" && as_dir=. 4803 for ac_prog in egrep; do 4804 for ac_exec_ext in '' $ac_executable_extensions; do 4805 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4806 as_fn_executable_p "$ac_path_EGREP" || continue 4807# Check for GNU ac_path_EGREP and select it if it is found. 4808 # Check for GNU $ac_path_EGREP 4809case `"$ac_path_EGREP" --version 2>&1` in 4810*GNU*) 4811 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4812*) 4813 ac_count=0 4814 $as_echo_n 0123456789 >"conftest.in" 4815 while : 4816 do 4817 cat "conftest.in" "conftest.in" >"conftest.tmp" 4818 mv "conftest.tmp" "conftest.in" 4819 cp "conftest.in" "conftest.nl" 4820 $as_echo 'EGREP' >> "conftest.nl" 4821 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4823 as_fn_arith $ac_count + 1 && ac_count=$as_val 4824 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4825 # Best one so far, save it but keep looking for a better one 4826 ac_cv_path_EGREP="$ac_path_EGREP" 4827 ac_path_EGREP_max=$ac_count 4828 fi 4829 # 10*(2^10) chars as input seems more than enough 4830 test $ac_count -gt 10 && break 4831 done 4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4833esac 4834 4835 $ac_path_EGREP_found && break 3 4836 done 4837 done 4838 done 4839IFS=$as_save_IFS 4840 if test -z "$ac_cv_path_EGREP"; then 4841 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4842 fi 4843else 4844 ac_cv_path_EGREP=$EGREP 4845fi 4846 4847 fi 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4850$as_echo "$ac_cv_path_EGREP" >&6; } 4851 EGREP="$ac_cv_path_EGREP" 4852 4853 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4855$as_echo_n "checking for fgrep... " >&6; } 4856if ${ac_cv_path_FGREP+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858else 4859 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4860 then ac_cv_path_FGREP="$GREP -F" 4861 else 4862 if test -z "$FGREP"; then 4863 ac_path_FGREP_found=false 4864 # Loop through the user's path and test for each of PROGNAME-LIST 4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4867do 4868 IFS=$as_save_IFS 4869 test -z "$as_dir" && as_dir=. 4870 for ac_prog in fgrep; do 4871 for ac_exec_ext in '' $ac_executable_extensions; do 4872 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4873 as_fn_executable_p "$ac_path_FGREP" || continue 4874# Check for GNU ac_path_FGREP and select it if it is found. 4875 # Check for GNU $ac_path_FGREP 4876case `"$ac_path_FGREP" --version 2>&1` in 4877*GNU*) 4878 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4879*) 4880 ac_count=0 4881 $as_echo_n 0123456789 >"conftest.in" 4882 while : 4883 do 4884 cat "conftest.in" "conftest.in" >"conftest.tmp" 4885 mv "conftest.tmp" "conftest.in" 4886 cp "conftest.in" "conftest.nl" 4887 $as_echo 'FGREP' >> "conftest.nl" 4888 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4890 as_fn_arith $ac_count + 1 && ac_count=$as_val 4891 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4892 # Best one so far, save it but keep looking for a better one 4893 ac_cv_path_FGREP="$ac_path_FGREP" 4894 ac_path_FGREP_max=$ac_count 4895 fi 4896 # 10*(2^10) chars as input seems more than enough 4897 test $ac_count -gt 10 && break 4898 done 4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4900esac 4901 4902 $ac_path_FGREP_found && break 3 4903 done 4904 done 4905 done 4906IFS=$as_save_IFS 4907 if test -z "$ac_cv_path_FGREP"; then 4908 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4909 fi 4910else 4911 ac_cv_path_FGREP=$FGREP 4912fi 4913 4914 fi 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4917$as_echo "$ac_cv_path_FGREP" >&6; } 4918 FGREP="$ac_cv_path_FGREP" 4919 4920 4921test -z "$GREP" && GREP=grep 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941# Check whether --with-gnu-ld was given. 4942if test "${with_gnu_ld+set}" = set; then : 4943 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4944else 4945 with_gnu_ld=no 4946fi 4947 4948ac_prog=ld 4949if test yes = "$GCC"; then 4950 # Check if gcc -print-prog-name=ld gives a path. 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4952$as_echo_n "checking for ld used by $CC... " >&6; } 4953 case $host in 4954 *-*-mingw*) 4955 # gcc leaves a trailing carriage return, which upsets mingw 4956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4957 *) 4958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4959 esac 4960 case $ac_prog in 4961 # Accept absolute paths. 4962 [\\/]* | ?:[\\/]*) 4963 re_direlt='/[^/][^/]*/\.\./' 4964 # Canonicalize the pathname of ld 4965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4968 done 4969 test -z "$LD" && LD=$ac_prog 4970 ;; 4971 "") 4972 # If it fails, then pretend we aren't using GCC. 4973 ac_prog=ld 4974 ;; 4975 *) 4976 # If it is relative, then search for the first ld in PATH. 4977 with_gnu_ld=unknown 4978 ;; 4979 esac 4980elif test yes = "$with_gnu_ld"; then 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4982$as_echo_n "checking for GNU ld... " >&6; } 4983else 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4985$as_echo_n "checking for non-GNU ld... " >&6; } 4986fi 4987if ${lt_cv_path_LD+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 if test -z "$LD"; then 4991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4992 for ac_dir in $PATH; do 4993 IFS=$lt_save_ifs 4994 test -z "$ac_dir" && ac_dir=. 4995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4996 lt_cv_path_LD=$ac_dir/$ac_prog 4997 # Check to see if the program is GNU ld. I'd rather use --version, 4998 # but apparently some variants of GNU ld only accept -v. 4999 # Break only if it was the GNU/non-GNU ld that we prefer. 5000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5001 *GNU* | *'with BFD'*) 5002 test no != "$with_gnu_ld" && break 5003 ;; 5004 *) 5005 test yes != "$with_gnu_ld" && break 5006 ;; 5007 esac 5008 fi 5009 done 5010 IFS=$lt_save_ifs 5011else 5012 lt_cv_path_LD=$LD # Let the user override the test with a path. 5013fi 5014fi 5015 5016LD=$lt_cv_path_LD 5017if test -n "$LD"; then 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5019$as_echo "$LD" >&6; } 5020else 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5022$as_echo "no" >&6; } 5023fi 5024test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5026$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5027if ${lt_cv_prog_gnu_ld+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5031case `$LD -v 2>&1 </dev/null` in 5032*GNU* | *'with BFD'*) 5033 lt_cv_prog_gnu_ld=yes 5034 ;; 5035*) 5036 lt_cv_prog_gnu_ld=no 5037 ;; 5038esac 5039fi 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5041$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5042with_gnu_ld=$lt_cv_prog_gnu_ld 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5053$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5054if ${lt_cv_path_NM+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 if test -n "$NM"; then 5058 # Let the user override the test. 5059 lt_cv_path_NM=$NM 5060else 5061 lt_nm_to_check=${ac_tool_prefix}nm 5062 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5063 lt_nm_to_check="$lt_nm_to_check nm" 5064 fi 5065 for lt_tmp_nm in $lt_nm_to_check; do 5066 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5067 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5068 IFS=$lt_save_ifs 5069 test -z "$ac_dir" && ac_dir=. 5070 tmp_nm=$ac_dir/$lt_tmp_nm 5071 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5072 # Check to see if the nm accepts a BSD-compat flag. 5073 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5074 # nm: unknown option "B" ignored 5075 # Tru64's nm complains that /dev/null is an invalid object file 5076 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5077 case $build_os in 5078 mingw*) lt_bad_file=conftest.nm/nofile ;; 5079 *) lt_bad_file=/dev/null ;; 5080 esac 5081 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5082 *$lt_bad_file* | *'Invalid file or object type'*) 5083 lt_cv_path_NM="$tmp_nm -B" 5084 break 2 5085 ;; 5086 *) 5087 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5088 */dev/null*) 5089 lt_cv_path_NM="$tmp_nm -p" 5090 break 2 5091 ;; 5092 *) 5093 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5094 continue # so that we can try to find one that supports BSD flags 5095 ;; 5096 esac 5097 ;; 5098 esac 5099 fi 5100 done 5101 IFS=$lt_save_ifs 5102 done 5103 : ${lt_cv_path_NM=no} 5104fi 5105fi 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5107$as_echo "$lt_cv_path_NM" >&6; } 5108if test no != "$lt_cv_path_NM"; then 5109 NM=$lt_cv_path_NM 5110else 5111 # Didn't find any BSD compatible name lister, look for dumpbin. 5112 if test -n "$DUMPBIN"; then : 5113 # Let the user override the test. 5114 else 5115 if test -n "$ac_tool_prefix"; then 5116 for ac_prog in dumpbin "link -dump" 5117 do 5118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5119set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5121$as_echo_n "checking for $ac_word... " >&6; } 5122if ${ac_cv_prog_DUMPBIN+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 if test -n "$DUMPBIN"; then 5126 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5127else 5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5135 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5137 break 2 5138 fi 5139done 5140 done 5141IFS=$as_save_IFS 5142 5143fi 5144fi 5145DUMPBIN=$ac_cv_prog_DUMPBIN 5146if test -n "$DUMPBIN"; then 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5148$as_echo "$DUMPBIN" >&6; } 5149else 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5151$as_echo "no" >&6; } 5152fi 5153 5154 5155 test -n "$DUMPBIN" && break 5156 done 5157fi 5158if test -z "$DUMPBIN"; then 5159 ac_ct_DUMPBIN=$DUMPBIN 5160 for ac_prog in dumpbin "link -dump" 5161do 5162 # Extract the first word of "$ac_prog", so it can be a program name with args. 5163set dummy $ac_prog; ac_word=$2 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5165$as_echo_n "checking for $ac_word... " >&6; } 5166if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 if test -n "$ac_ct_DUMPBIN"; then 5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5171else 5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5181 break 2 5182 fi 5183done 5184 done 5185IFS=$as_save_IFS 5186 5187fi 5188fi 5189ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5190if test -n "$ac_ct_DUMPBIN"; then 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5192$as_echo "$ac_ct_DUMPBIN" >&6; } 5193else 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195$as_echo "no" >&6; } 5196fi 5197 5198 5199 test -n "$ac_ct_DUMPBIN" && break 5200done 5201 5202 if test "x$ac_ct_DUMPBIN" = x; then 5203 DUMPBIN=":" 5204 else 5205 case $cross_compiling:$ac_tool_warned in 5206yes:) 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5209ac_tool_warned=yes ;; 5210esac 5211 DUMPBIN=$ac_ct_DUMPBIN 5212 fi 5213fi 5214 5215 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5216 *COFF*) 5217 DUMPBIN="$DUMPBIN -symbols -headers" 5218 ;; 5219 *) 5220 DUMPBIN=: 5221 ;; 5222 esac 5223 fi 5224 5225 if test : != "$DUMPBIN"; then 5226 NM=$DUMPBIN 5227 fi 5228fi 5229test -z "$NM" && NM=nm 5230 5231 5232 5233 5234 5235 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5237$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5238if ${lt_cv_nm_interface+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 lt_cv_nm_interface="BSD nm" 5242 echo "int some_variable = 0;" > conftest.$ac_ext 5243 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5244 (eval "$ac_compile" 2>conftest.err) 5245 cat conftest.err >&5 5246 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5247 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5248 cat conftest.err >&5 5249 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5250 cat conftest.out >&5 5251 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5252 lt_cv_nm_interface="MS dumpbin" 5253 fi 5254 rm -f conftest* 5255fi 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5257$as_echo "$lt_cv_nm_interface" >&6; } 5258 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5260$as_echo_n "checking whether ln -s works... " >&6; } 5261LN_S=$as_ln_s 5262if test "$LN_S" = "ln -s"; then 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5264$as_echo "yes" >&6; } 5265else 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5267$as_echo "no, using $LN_S" >&6; } 5268fi 5269 5270# find the maximum length of command line arguments 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5272$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5273if ${lt_cv_sys_max_cmd_len+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 i=0 5277 teststring=ABCD 5278 5279 case $build_os in 5280 msdosdjgpp*) 5281 # On DJGPP, this test can blow up pretty badly due to problems in libc 5282 # (any single argument exceeding 2000 bytes causes a buffer overrun 5283 # during glob expansion). Even if it were fixed, the result of this 5284 # check would be larger than it should be. 5285 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5286 ;; 5287 5288 gnu*) 5289 # Under GNU Hurd, this test is not required because there is 5290 # no limit to the length of command line arguments. 5291 # Libtool will interpret -1 as no limit whatsoever 5292 lt_cv_sys_max_cmd_len=-1; 5293 ;; 5294 5295 cygwin* | mingw* | cegcc*) 5296 # On Win9x/ME, this test blows up -- it succeeds, but takes 5297 # about 5 minutes as the teststring grows exponentially. 5298 # Worse, since 9x/ME are not pre-emptively multitasking, 5299 # you end up with a "frozen" computer, even though with patience 5300 # the test eventually succeeds (with a max line length of 256k). 5301 # Instead, let's just punt: use the minimum linelength reported by 5302 # all of the supported platforms: 8192 (on NT/2K/XP). 5303 lt_cv_sys_max_cmd_len=8192; 5304 ;; 5305 5306 mint*) 5307 # On MiNT this can take a long time and run out of memory. 5308 lt_cv_sys_max_cmd_len=8192; 5309 ;; 5310 5311 amigaos*) 5312 # On AmigaOS with pdksh, this test takes hours, literally. 5313 # So we just punt and use a minimum line length of 8192. 5314 lt_cv_sys_max_cmd_len=8192; 5315 ;; 5316 5317 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5318 # This has been around since 386BSD, at least. Likely further. 5319 if test -x /sbin/sysctl; then 5320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5321 elif test -x /usr/sbin/sysctl; then 5322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5323 else 5324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5325 fi 5326 # And add a safety zone 5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5329 ;; 5330 5331 interix*) 5332 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5333 lt_cv_sys_max_cmd_len=196608 5334 ;; 5335 5336 os2*) 5337 # The test takes a long time on OS/2. 5338 lt_cv_sys_max_cmd_len=8192 5339 ;; 5340 5341 osf*) 5342 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5343 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5344 # nice to cause kernel panics so lets avoid the loop below. 5345 # First set a reasonable default. 5346 lt_cv_sys_max_cmd_len=16384 5347 # 5348 if test -x /sbin/sysconfig; then 5349 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5350 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5351 esac 5352 fi 5353 ;; 5354 sco3.2v5*) 5355 lt_cv_sys_max_cmd_len=102400 5356 ;; 5357 sysv5* | sco5v6* | sysv4.2uw2*) 5358 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5359 if test -n "$kargmax"; then 5360 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5361 else 5362 lt_cv_sys_max_cmd_len=32768 5363 fi 5364 ;; 5365 *) 5366 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5367 if test -n "$lt_cv_sys_max_cmd_len" && \ 5368 test undefined != "$lt_cv_sys_max_cmd_len"; then 5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5371 else 5372 # Make teststring a little bigger before we do anything with it. 5373 # a 1K string should be a reasonable start. 5374 for i in 1 2 3 4 5 6 7 8; do 5375 teststring=$teststring$teststring 5376 done 5377 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5378 # If test is not a shell built-in, we'll probably end up computing a 5379 # maximum length that is only half of the actual maximum length, but 5380 # we can't tell. 5381 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5382 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5383 test 17 != "$i" # 1/2 MB should be enough 5384 do 5385 i=`expr $i + 1` 5386 teststring=$teststring$teststring 5387 done 5388 # Only check the string length outside the loop. 5389 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5390 teststring= 5391 # Add a significant safety factor because C++ compilers can tack on 5392 # massive amounts of additional arguments before passing them to the 5393 # linker. It appears as though 1/2 is a usable value. 5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5395 fi 5396 ;; 5397 esac 5398 5399fi 5400 5401if test -n "$lt_cv_sys_max_cmd_len"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5403$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5404else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5406$as_echo "none" >&6; } 5407fi 5408max_cmd_len=$lt_cv_sys_max_cmd_len 5409 5410 5411 5412 5413 5414 5415: ${CP="cp -f"} 5416: ${MV="mv -f"} 5417: ${RM="rm -f"} 5418 5419if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5420 lt_unset=unset 5421else 5422 lt_unset=false 5423fi 5424 5425 5426 5427 5428 5429# test EBCDIC or ASCII 5430case `echo X|tr X '\101'` in 5431 A) # ASCII based system 5432 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5433 lt_SP2NL='tr \040 \012' 5434 lt_NL2SP='tr \015\012 \040\040' 5435 ;; 5436 *) # EBCDIC based system 5437 lt_SP2NL='tr \100 \n' 5438 lt_NL2SP='tr \r\n \100\100' 5439 ;; 5440esac 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5451$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5452if ${lt_cv_to_host_file_cmd+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 case $host in 5456 *-*-mingw* ) 5457 case $build in 5458 *-*-mingw* ) # actually msys 5459 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5460 ;; 5461 *-*-cygwin* ) 5462 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5463 ;; 5464 * ) # otherwise, assume *nix 5465 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5466 ;; 5467 esac 5468 ;; 5469 *-*-cygwin* ) 5470 case $build in 5471 *-*-mingw* ) # actually msys 5472 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5473 ;; 5474 *-*-cygwin* ) 5475 lt_cv_to_host_file_cmd=func_convert_file_noop 5476 ;; 5477 * ) # otherwise, assume *nix 5478 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5479 ;; 5480 esac 5481 ;; 5482 * ) # unhandled hosts (and "normal" native builds) 5483 lt_cv_to_host_file_cmd=func_convert_file_noop 5484 ;; 5485esac 5486 5487fi 5488 5489to_host_file_cmd=$lt_cv_to_host_file_cmd 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5491$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5492 5493 5494 5495 5496 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5498$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5499if ${lt_cv_to_tool_file_cmd+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 #assume ordinary cross tools, or native build. 5503lt_cv_to_tool_file_cmd=func_convert_file_noop 5504case $host in 5505 *-*-mingw* ) 5506 case $build in 5507 *-*-mingw* ) # actually msys 5508 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5509 ;; 5510 esac 5511 ;; 5512esac 5513 5514fi 5515 5516to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5518$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5519 5520 5521 5522 5523 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5525$as_echo_n "checking for $LD option to reload object files... " >&6; } 5526if ${lt_cv_ld_reload_flag+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 lt_cv_ld_reload_flag='-r' 5530fi 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5532$as_echo "$lt_cv_ld_reload_flag" >&6; } 5533reload_flag=$lt_cv_ld_reload_flag 5534case $reload_flag in 5535"" | " "*) ;; 5536*) reload_flag=" $reload_flag" ;; 5537esac 5538reload_cmds='$LD$reload_flag -o $output$reload_objs' 5539case $host_os in 5540 cygwin* | mingw* | pw32* | cegcc*) 5541 if test yes != "$GCC"; then 5542 reload_cmds=false 5543 fi 5544 ;; 5545 darwin*) 5546 if test yes = "$GCC"; then 5547 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5548 else 5549 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5550 fi 5551 ;; 5552esac 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562if test -n "$ac_tool_prefix"; then 5563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5564set dummy ${ac_tool_prefix}objdump; ac_word=$2 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5566$as_echo_n "checking for $ac_word... " >&6; } 5567if ${ac_cv_prog_OBJDUMP+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 if test -n "$OBJDUMP"; then 5571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5572else 5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH 5575do 5576 IFS=$as_save_IFS 5577 test -z "$as_dir" && as_dir=. 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5582 break 2 5583 fi 5584done 5585 done 5586IFS=$as_save_IFS 5587 5588fi 5589fi 5590OBJDUMP=$ac_cv_prog_OBJDUMP 5591if test -n "$OBJDUMP"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5593$as_echo "$OBJDUMP" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596$as_echo "no" >&6; } 5597fi 5598 5599 5600fi 5601if test -z "$ac_cv_prog_OBJDUMP"; then 5602 ac_ct_OBJDUMP=$OBJDUMP 5603 # Extract the first word of "objdump", so it can be a program name with args. 5604set dummy objdump; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$ac_ct_OBJDUMP"; then 5611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5620 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5631if test -n "$ac_ct_OBJDUMP"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5633$as_echo "$ac_ct_OBJDUMP" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 if test "x$ac_ct_OBJDUMP" = x; then 5640 OBJDUMP="false" 5641 else 5642 case $cross_compiling:$ac_tool_warned in 5643yes:) 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5646ac_tool_warned=yes ;; 5647esac 5648 OBJDUMP=$ac_ct_OBJDUMP 5649 fi 5650else 5651 OBJDUMP="$ac_cv_prog_OBJDUMP" 5652fi 5653 5654test -z "$OBJDUMP" && OBJDUMP=objdump 5655 5656 5657 5658 5659 5660 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5662$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5663if ${lt_cv_deplibs_check_method+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 lt_cv_file_magic_cmd='$MAGIC_CMD' 5667lt_cv_file_magic_test_file= 5668lt_cv_deplibs_check_method='unknown' 5669# Need to set the preceding variable on all platforms that support 5670# interlibrary dependencies. 5671# 'none' -- dependencies not supported. 5672# 'unknown' -- same as none, but documents that we really don't know. 5673# 'pass_all' -- all dependencies passed with no checks. 5674# 'test_compile' -- check by making test program. 5675# 'file_magic [[regex]]' -- check by looking for files in library path 5676# that responds to the $file_magic_cmd with a given extended regex. 5677# If you have 'file' or equivalent on your system and you're not sure 5678# whether 'pass_all' will *always* work, you probably want this one. 5679 5680case $host_os in 5681aix[4-9]*) 5682 lt_cv_deplibs_check_method=pass_all 5683 ;; 5684 5685beos*) 5686 lt_cv_deplibs_check_method=pass_all 5687 ;; 5688 5689bsdi[45]*) 5690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5691 lt_cv_file_magic_cmd='/usr/bin/file -L' 5692 lt_cv_file_magic_test_file=/shlib/libc.so 5693 ;; 5694 5695cygwin*) 5696 # func_win32_libid is a shell function defined in ltmain.sh 5697 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5698 lt_cv_file_magic_cmd='func_win32_libid' 5699 ;; 5700 5701mingw* | pw32*) 5702 # Base MSYS/MinGW do not provide the 'file' command needed by 5703 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5704 # unless we find 'file', for example because we are cross-compiling. 5705 if ( file / ) >/dev/null 2>&1; then 5706 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5707 lt_cv_file_magic_cmd='func_win32_libid' 5708 else 5709 # Keep this pattern in sync with the one in func_win32_libid. 5710 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5711 lt_cv_file_magic_cmd='$OBJDUMP -f' 5712 fi 5713 ;; 5714 5715cegcc*) 5716 # use the weaker test based on 'objdump'. See mingw*. 5717 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5718 lt_cv_file_magic_cmd='$OBJDUMP -f' 5719 ;; 5720 5721darwin* | rhapsody*) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724 5725freebsd* | dragonfly*) 5726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5727 case $host_cpu in 5728 i*86 ) 5729 # Not sure whether the presence of OpenBSD here was a mistake. 5730 # Let's accept both of them until this is cleared up. 5731 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5732 lt_cv_file_magic_cmd=/usr/bin/file 5733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5734 ;; 5735 esac 5736 else 5737 lt_cv_deplibs_check_method=pass_all 5738 fi 5739 ;; 5740 5741haiku*) 5742 lt_cv_deplibs_check_method=pass_all 5743 ;; 5744 5745hpux10.20* | hpux11*) 5746 lt_cv_file_magic_cmd=/usr/bin/file 5747 case $host_cpu in 5748 ia64*) 5749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5750 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5751 ;; 5752 hppa*64*) 5753 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]' 5754 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5755 ;; 5756 *) 5757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5758 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5759 ;; 5760 esac 5761 ;; 5762 5763interix[3-9]*) 5764 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5766 ;; 5767 5768irix5* | irix6* | nonstopux*) 5769 case $LD in 5770 *-32|*"-32 ") libmagic=32-bit;; 5771 *-n32|*"-n32 ") libmagic=N32;; 5772 *-64|*"-64 ") libmagic=64-bit;; 5773 *) libmagic=never-match;; 5774 esac 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777 5778# This must be glibc/ELF. 5779linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783netbsd* | netbsdelf*-gnu) 5784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5786 else 5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5788 fi 5789 ;; 5790 5791newos6*) 5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5793 lt_cv_file_magic_cmd=/usr/bin/file 5794 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5795 ;; 5796 5797*nto* | *qnx*) 5798 lt_cv_deplibs_check_method=pass_all 5799 ;; 5800 5801openbsd* | bitrig*) 5802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5804 else 5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5806 fi 5807 ;; 5808 5809osf3* | osf4* | osf5*) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 5813rdos*) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 5817solaris*) 5818 lt_cv_deplibs_check_method=pass_all 5819 ;; 5820 5821sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5822 lt_cv_deplibs_check_method=pass_all 5823 ;; 5824 5825sysv4 | sysv4.3*) 5826 case $host_vendor in 5827 motorola) 5828 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]' 5829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5830 ;; 5831 ncr) 5832 lt_cv_deplibs_check_method=pass_all 5833 ;; 5834 sequent) 5835 lt_cv_file_magic_cmd='/bin/file' 5836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5837 ;; 5838 sni) 5839 lt_cv_file_magic_cmd='/bin/file' 5840 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5841 lt_cv_file_magic_test_file=/lib/libc.so 5842 ;; 5843 siemens) 5844 lt_cv_deplibs_check_method=pass_all 5845 ;; 5846 pc) 5847 lt_cv_deplibs_check_method=pass_all 5848 ;; 5849 esac 5850 ;; 5851 5852tpf*) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855os2*) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858esac 5859 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5862$as_echo "$lt_cv_deplibs_check_method" >&6; } 5863 5864file_magic_glob= 5865want_nocaseglob=no 5866if test "$build" = "$host"; then 5867 case $host_os in 5868 mingw* | pw32*) 5869 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5870 want_nocaseglob=yes 5871 else 5872 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5873 fi 5874 ;; 5875 esac 5876fi 5877 5878file_magic_cmd=$lt_cv_file_magic_cmd 5879deplibs_check_method=$lt_cv_deplibs_check_method 5880test -z "$deplibs_check_method" && deplibs_check_method=unknown 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903if test -n "$ac_tool_prefix"; then 5904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5905set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5907$as_echo_n "checking for $ac_word... " >&6; } 5908if ${ac_cv_prog_DLLTOOL+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 if test -n "$DLLTOOL"; then 5912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5913else 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH 5916do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925done 5926 done 5927IFS=$as_save_IFS 5928 5929fi 5930fi 5931DLLTOOL=$ac_cv_prog_DLLTOOL 5932if test -n "$DLLTOOL"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5934$as_echo "$DLLTOOL" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937$as_echo "no" >&6; } 5938fi 5939 5940 5941fi 5942if test -z "$ac_cv_prog_DLLTOOL"; then 5943 ac_ct_DLLTOOL=$DLLTOOL 5944 # Extract the first word of "dlltool", so it can be a program name with args. 5945set dummy dlltool; ac_word=$2 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5947$as_echo_n "checking for $ac_word... " >&6; } 5948if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 if test -n "$ac_ct_DLLTOOL"; then 5952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 test -z "$as_dir" && as_dir=. 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5961 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5963 break 2 5964 fi 5965done 5966 done 5967IFS=$as_save_IFS 5968 5969fi 5970fi 5971ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5972if test -n "$ac_ct_DLLTOOL"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5974$as_echo "$ac_ct_DLLTOOL" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 if test "x$ac_ct_DLLTOOL" = x; then 5981 DLLTOOL="false" 5982 else 5983 case $cross_compiling:$ac_tool_warned in 5984yes:) 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5987ac_tool_warned=yes ;; 5988esac 5989 DLLTOOL=$ac_ct_DLLTOOL 5990 fi 5991else 5992 DLLTOOL="$ac_cv_prog_DLLTOOL" 5993fi 5994 5995test -z "$DLLTOOL" && DLLTOOL=dlltool 5996 5997 5998 5999 6000 6001 6002 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6004$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6005if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 lt_cv_sharedlib_from_linklib_cmd='unknown' 6009 6010case $host_os in 6011cygwin* | mingw* | pw32* | cegcc*) 6012 # two different shell functions defined in ltmain.sh; 6013 # decide which one to use based on capabilities of $DLLTOOL 6014 case `$DLLTOOL --help 2>&1` in 6015 *--identify-strict*) 6016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6017 ;; 6018 *) 6019 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6020 ;; 6021 esac 6022 ;; 6023*) 6024 # fallback: assume linklib IS sharedlib 6025 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6026 ;; 6027esac 6028 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6031$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6032sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6033test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6034 6035 6036 6037 6038 6039 6040 6041 6042if test -n "$ac_tool_prefix"; then 6043 for ac_prog in ar 6044 do 6045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6046set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048$as_echo_n "checking for $ac_word... " >&6; } 6049if ${ac_cv_prog_AR+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 if test -n "$AR"; then 6053 ac_cv_prog_AR="$AR" # Let the user override the test. 6054else 6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6056for as_dir in $PATH 6057do 6058 IFS=$as_save_IFS 6059 test -z "$as_dir" && as_dir=. 6060 for ac_exec_ext in '' $ac_executable_extensions; do 6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6062 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6064 break 2 6065 fi 6066done 6067 done 6068IFS=$as_save_IFS 6069 6070fi 6071fi 6072AR=$ac_cv_prog_AR 6073if test -n "$AR"; then 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6075$as_echo "$AR" >&6; } 6076else 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6078$as_echo "no" >&6; } 6079fi 6080 6081 6082 test -n "$AR" && break 6083 done 6084fi 6085if test -z "$AR"; then 6086 ac_ct_AR=$AR 6087 for ac_prog in ar 6088do 6089 # Extract the first word of "$ac_prog", so it can be a program name with args. 6090set dummy $ac_prog; ac_word=$2 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092$as_echo_n "checking for $ac_word... " >&6; } 6093if ${ac_cv_prog_ac_ct_AR+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 if test -n "$ac_ct_AR"; then 6097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6098else 6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100for as_dir in $PATH 6101do 6102 IFS=$as_save_IFS 6103 test -z "$as_dir" && as_dir=. 6104 for ac_exec_ext in '' $ac_executable_extensions; do 6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6106 ac_cv_prog_ac_ct_AR="$ac_prog" 6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6108 break 2 6109 fi 6110done 6111 done 6112IFS=$as_save_IFS 6113 6114fi 6115fi 6116ac_ct_AR=$ac_cv_prog_ac_ct_AR 6117if test -n "$ac_ct_AR"; then 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6119$as_echo "$ac_ct_AR" >&6; } 6120else 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6122$as_echo "no" >&6; } 6123fi 6124 6125 6126 test -n "$ac_ct_AR" && break 6127done 6128 6129 if test "x$ac_ct_AR" = x; then 6130 AR="false" 6131 else 6132 case $cross_compiling:$ac_tool_warned in 6133yes:) 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6136ac_tool_warned=yes ;; 6137esac 6138 AR=$ac_ct_AR 6139 fi 6140fi 6141 6142: ${AR=ar} 6143: ${AR_FLAGS=cru} 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6156$as_echo_n "checking for archiver @FILE support... " >&6; } 6157if ${lt_cv_ar_at_file+:} false; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 lt_cv_ar_at_file=no 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162/* end confdefs.h. */ 6163 6164int 6165main () 6166{ 6167 6168 ; 6169 return 0; 6170} 6171_ACEOF 6172if ac_fn_c_try_compile "$LINENO"; then : 6173 echo conftest.$ac_objext > conftest.lst 6174 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6176 (eval $lt_ar_try) 2>&5 6177 ac_status=$? 6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6179 test $ac_status = 0; } 6180 if test 0 -eq "$ac_status"; then 6181 # Ensure the archiver fails upon bogus file names. 6182 rm -f conftest.$ac_objext libconftest.a 6183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6184 (eval $lt_ar_try) 2>&5 6185 ac_status=$? 6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6187 test $ac_status = 0; } 6188 if test 0 -ne "$ac_status"; then 6189 lt_cv_ar_at_file=@ 6190 fi 6191 fi 6192 rm -f conftest.* libconftest.a 6193 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196 6197fi 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6199$as_echo "$lt_cv_ar_at_file" >&6; } 6200 6201if test no = "$lt_cv_ar_at_file"; then 6202 archiver_list_spec= 6203else 6204 archiver_list_spec=$lt_cv_ar_at_file 6205fi 6206 6207 6208 6209 6210 6211 6212 6213if test -n "$ac_tool_prefix"; then 6214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6215set dummy ${ac_tool_prefix}strip; ac_word=$2 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6217$as_echo_n "checking for $ac_word... " >&6; } 6218if ${ac_cv_prog_STRIP+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 if test -n "$STRIP"; then 6222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6223else 6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6225for as_dir in $PATH 6226do 6227 IFS=$as_save_IFS 6228 test -z "$as_dir" && as_dir=. 6229 for ac_exec_ext in '' $ac_executable_extensions; do 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6231 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6233 break 2 6234 fi 6235done 6236 done 6237IFS=$as_save_IFS 6238 6239fi 6240fi 6241STRIP=$ac_cv_prog_STRIP 6242if test -n "$STRIP"; then 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6244$as_echo "$STRIP" >&6; } 6245else 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6247$as_echo "no" >&6; } 6248fi 6249 6250 6251fi 6252if test -z "$ac_cv_prog_STRIP"; then 6253 ac_ct_STRIP=$STRIP 6254 # Extract the first word of "strip", so it can be a program name with args. 6255set dummy strip; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$ac_ct_STRIP"; then 6262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_ac_ct_STRIP="strip" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6282if test -n "$ac_ct_STRIP"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6284$as_echo "$ac_ct_STRIP" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 if test "x$ac_ct_STRIP" = x; then 6291 STRIP=":" 6292 else 6293 case $cross_compiling:$ac_tool_warned in 6294yes:) 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6297ac_tool_warned=yes ;; 6298esac 6299 STRIP=$ac_ct_STRIP 6300 fi 6301else 6302 STRIP="$ac_cv_prog_STRIP" 6303fi 6304 6305test -z "$STRIP" && STRIP=: 6306 6307 6308 6309 6310 6311 6312if test -n "$ac_tool_prefix"; then 6313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6314set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316$as_echo_n "checking for $ac_word... " >&6; } 6317if ${ac_cv_prog_RANLIB+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 if test -n "$RANLIB"; then 6321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6322else 6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334done 6335 done 6336IFS=$as_save_IFS 6337 6338fi 6339fi 6340RANLIB=$ac_cv_prog_RANLIB 6341if test -n "$RANLIB"; then 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6343$as_echo "$RANLIB" >&6; } 6344else 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6346$as_echo "no" >&6; } 6347fi 6348 6349 6350fi 6351if test -z "$ac_cv_prog_RANLIB"; then 6352 ac_ct_RANLIB=$RANLIB 6353 # Extract the first word of "ranlib", so it can be a program name with args. 6354set dummy ranlib; ac_word=$2 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6356$as_echo_n "checking for $ac_word... " >&6; } 6357if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 if test -n "$ac_ct_RANLIB"; then 6361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6362else 6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6364for as_dir in $PATH 6365do 6366 IFS=$as_save_IFS 6367 test -z "$as_dir" && as_dir=. 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6370 ac_cv_prog_ac_ct_RANLIB="ranlib" 6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6372 break 2 6373 fi 6374done 6375 done 6376IFS=$as_save_IFS 6377 6378fi 6379fi 6380ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6381if test -n "$ac_ct_RANLIB"; then 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6383$as_echo "$ac_ct_RANLIB" >&6; } 6384else 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6386$as_echo "no" >&6; } 6387fi 6388 6389 if test "x$ac_ct_RANLIB" = x; then 6390 RANLIB=":" 6391 else 6392 case $cross_compiling:$ac_tool_warned in 6393yes:) 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6396ac_tool_warned=yes ;; 6397esac 6398 RANLIB=$ac_ct_RANLIB 6399 fi 6400else 6401 RANLIB="$ac_cv_prog_RANLIB" 6402fi 6403 6404test -z "$RANLIB" && RANLIB=: 6405 6406 6407 6408 6409 6410 6411# Determine commands to create old-style static archives. 6412old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6413old_postinstall_cmds='chmod 644 $oldlib' 6414old_postuninstall_cmds= 6415 6416if test -n "$RANLIB"; then 6417 case $host_os in 6418 bitrig* | openbsd*) 6419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6420 ;; 6421 *) 6422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6423 ;; 6424 esac 6425 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6426fi 6427 6428case $host_os in 6429 darwin*) 6430 lock_old_archive_extraction=yes ;; 6431 *) 6432 lock_old_archive_extraction=no ;; 6433esac 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473# If no C compiler was specified, use CC. 6474LTCC=${LTCC-"$CC"} 6475 6476# If no C compiler flags were specified, use CFLAGS. 6477LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6478 6479# Allow CC to be a program name with arguments. 6480compiler=$CC 6481 6482 6483# Check for command to grab the raw symbol name followed by C symbol from nm. 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6485$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6486if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 6490# These are sane defaults that work on at least a few old systems. 6491# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6492 6493# Character class describing NM global symbol codes. 6494symcode='[BCDEGRST]' 6495 6496# Regexp to match symbols that can be accessed directly from C. 6497sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6498 6499# Define system-specific variables. 6500case $host_os in 6501aix*) 6502 symcode='[BCDT]' 6503 ;; 6504cygwin* | mingw* | pw32* | cegcc*) 6505 symcode='[ABCDGISTW]' 6506 ;; 6507hpux*) 6508 if test ia64 = "$host_cpu"; then 6509 symcode='[ABCDEGRST]' 6510 fi 6511 ;; 6512irix* | nonstopux*) 6513 symcode='[BCDEGRST]' 6514 ;; 6515osf*) 6516 symcode='[BCDEGQRST]' 6517 ;; 6518solaris*) 6519 symcode='[BDRT]' 6520 ;; 6521sco3.2v5*) 6522 symcode='[DT]' 6523 ;; 6524sysv4.2uw2*) 6525 symcode='[DT]' 6526 ;; 6527sysv5* | sco5v6* | unixware* | OpenUNIX*) 6528 symcode='[ABDT]' 6529 ;; 6530sysv4) 6531 symcode='[DFNSTU]' 6532 ;; 6533esac 6534 6535# If we're using GNU nm, then use its standard symbol codes. 6536case `$NM -V 2>&1` in 6537*GNU* | *'with BFD'*) 6538 symcode='[ABCDGIRSTW]' ;; 6539esac 6540 6541if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6542 # Gets list of data symbols to import. 6543 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6544 # Adjust the below global symbol transforms to fixup imported variables. 6545 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6546 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6547 lt_c_name_lib_hook="\ 6548 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6549 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6550else 6551 # Disable hooks by default. 6552 lt_cv_sys_global_symbol_to_import= 6553 lt_cdecl_hook= 6554 lt_c_name_hook= 6555 lt_c_name_lib_hook= 6556fi 6557 6558# Transform an extracted symbol line into a proper C declaration. 6559# Some systems (esp. on ia64) link data and code symbols differently, 6560# so use this general approach. 6561lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6562$lt_cdecl_hook\ 6563" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6564" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6565 6566# Transform an extracted symbol line into symbol name and symbol address 6567lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6568$lt_c_name_hook\ 6569" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6570" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6571 6572# Transform an extracted symbol line into symbol name with lib prefix and 6573# symbol address. 6574lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6575$lt_c_name_lib_hook\ 6576" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6577" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6578" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6579 6580# Handle CRLF in mingw tool chain 6581opt_cr= 6582case $build_os in 6583mingw*) 6584 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6585 ;; 6586esac 6587 6588# Try without a prefix underscore, then with it. 6589for ac_symprfx in "" "_"; do 6590 6591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6592 symxfrm="\\1 $ac_symprfx\\2 \\2" 6593 6594 # Write the raw and C identifiers. 6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6596 # Fake it for dumpbin and say T for any non-static function, 6597 # D for any global variable and I for any imported variable. 6598 # Also find C++ and __fastcall symbols from MSVC++, 6599 # which start with @ or ?. 6600 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6601" {last_section=section; section=\$ 3};"\ 6602" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6603" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6604" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6605" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6606" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6607" \$ 0!~/External *\|/{next};"\ 6608" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6609" {if(hide[section]) next};"\ 6610" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6611" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6612" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6613" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6614" ' prfx=^$ac_symprfx" 6615 else 6616 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6617 fi 6618 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6619 6620 # Check to see that the pipe works correctly. 6621 pipe_works=no 6622 6623 rm -f conftest* 6624 cat > conftest.$ac_ext <<_LT_EOF 6625#ifdef __cplusplus 6626extern "C" { 6627#endif 6628char nm_test_var; 6629void nm_test_func(void); 6630void nm_test_func(void){} 6631#ifdef __cplusplus 6632} 6633#endif 6634int main(){nm_test_var='a';nm_test_func();return(0);} 6635_LT_EOF 6636 6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6638 (eval $ac_compile) 2>&5 6639 ac_status=$? 6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6641 test $ac_status = 0; }; then 6642 # Now try to grab the symbols. 6643 nlist=conftest.nm 6644 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6645 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6646 # Try sorting and uniquifying the output. 6647 if sort "$nlist" | uniq > "$nlist"T; then 6648 mv -f "$nlist"T "$nlist" 6649 else 6650 rm -f "$nlist"T 6651 fi 6652 6653 # Make sure that we snagged all the symbols we need. 6654 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6655 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6656 cat <<_LT_EOF > conftest.$ac_ext 6657/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6658#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6659/* DATA imports from DLLs on WIN32 can't be const, because runtime 6660 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6661# define LT_DLSYM_CONST 6662#elif defined __osf__ 6663/* This system does not cope well with relocations in const data. */ 6664# define LT_DLSYM_CONST 6665#else 6666# define LT_DLSYM_CONST const 6667#endif 6668 6669#ifdef __cplusplus 6670extern "C" { 6671#endif 6672 6673_LT_EOF 6674 # Now generate the symbol file. 6675 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6676 6677 cat <<_LT_EOF >> conftest.$ac_ext 6678 6679/* The mapping between symbol names and symbols. */ 6680LT_DLSYM_CONST struct { 6681 const char *name; 6682 void *address; 6683} 6684lt__PROGRAM__LTX_preloaded_symbols[] = 6685{ 6686 { "@PROGRAM@", (void *) 0 }, 6687_LT_EOF 6688 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6689 cat <<\_LT_EOF >> conftest.$ac_ext 6690 {0, (void *) 0} 6691}; 6692 6693/* This works around a problem in FreeBSD linker */ 6694#ifdef FREEBSD_WORKAROUND 6695static const void *lt_preloaded_setup() { 6696 return lt__PROGRAM__LTX_preloaded_symbols; 6697} 6698#endif 6699 6700#ifdef __cplusplus 6701} 6702#endif 6703_LT_EOF 6704 # Now try linking the two files. 6705 mv conftest.$ac_objext conftstm.$ac_objext 6706 lt_globsym_save_LIBS=$LIBS 6707 lt_globsym_save_CFLAGS=$CFLAGS 6708 LIBS=conftstm.$ac_objext 6709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6711 (eval $ac_link) 2>&5 6712 ac_status=$? 6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6714 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6715 pipe_works=yes 6716 fi 6717 LIBS=$lt_globsym_save_LIBS 6718 CFLAGS=$lt_globsym_save_CFLAGS 6719 else 6720 echo "cannot find nm_test_func in $nlist" >&5 6721 fi 6722 else 6723 echo "cannot find nm_test_var in $nlist" >&5 6724 fi 6725 else 6726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6727 fi 6728 else 6729 echo "$progname: failed program was:" >&5 6730 cat conftest.$ac_ext >&5 6731 fi 6732 rm -rf conftest* conftst* 6733 6734 # Do not use the global_symbol_pipe unless it works. 6735 if test yes = "$pipe_works"; then 6736 break 6737 else 6738 lt_cv_sys_global_symbol_pipe= 6739 fi 6740done 6741 6742fi 6743 6744if test -z "$lt_cv_sys_global_symbol_pipe"; then 6745 lt_cv_sys_global_symbol_to_cdecl= 6746fi 6747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6749$as_echo "failed" >&6; } 6750else 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6752$as_echo "ok" >&6; } 6753fi 6754 6755# Response file support. 6756if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6757 nm_file_list_spec='@' 6758elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6759 nm_file_list_spec='@' 6760fi 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6799$as_echo_n "checking for sysroot... " >&6; } 6800 6801# Check whether --with-sysroot was given. 6802if test "${with_sysroot+set}" = set; then : 6803 withval=$with_sysroot; 6804else 6805 with_sysroot=no 6806fi 6807 6808 6809lt_sysroot= 6810case $with_sysroot in #( 6811 yes) 6812 if test yes = "$GCC"; then 6813 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6814 fi 6815 ;; #( 6816 /*) 6817 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6818 ;; #( 6819 no|'') 6820 ;; #( 6821 *) 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6823$as_echo "$with_sysroot" >&6; } 6824 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6825 ;; 6826esac 6827 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6829$as_echo "${lt_sysroot:-no}" >&6; } 6830 6831 6832 6833 6834 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6836$as_echo_n "checking for a working dd... " >&6; } 6837if ${ac_cv_path_lt_DD+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 printf 0123456789abcdef0123456789abcdef >conftest.i 6841cat conftest.i conftest.i >conftest2.i 6842: ${lt_DD:=$DD} 6843if test -z "$lt_DD"; then 6844 ac_path_lt_DD_found=false 6845 # Loop through the user's path and test for each of PROGNAME-LIST 6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_prog in dd; do 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6854 as_fn_executable_p "$ac_path_lt_DD" || continue 6855if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6856 cmp -s conftest.i conftest.out \ 6857 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6858fi 6859 $ac_path_lt_DD_found && break 3 6860 done 6861 done 6862 done 6863IFS=$as_save_IFS 6864 if test -z "$ac_cv_path_lt_DD"; then 6865 : 6866 fi 6867else 6868 ac_cv_path_lt_DD=$lt_DD 6869fi 6870 6871rm -f conftest.i conftest2.i conftest.out 6872fi 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6874$as_echo "$ac_cv_path_lt_DD" >&6; } 6875 6876 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6878$as_echo_n "checking how to truncate binary pipes... " >&6; } 6879if ${lt_cv_truncate_bin+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 printf 0123456789abcdef0123456789abcdef >conftest.i 6883cat conftest.i conftest.i >conftest2.i 6884lt_cv_truncate_bin= 6885if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6886 cmp -s conftest.i conftest.out \ 6887 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6888fi 6889rm -f conftest.i conftest2.i conftest.out 6890test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6891fi 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6893$as_echo "$lt_cv_truncate_bin" >&6; } 6894 6895 6896 6897 6898 6899 6900 6901# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6902func_cc_basename () 6903{ 6904 for cc_temp in $*""; do 6905 case $cc_temp in 6906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6908 \-*) ;; 6909 *) break;; 6910 esac 6911 done 6912 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6913} 6914 6915# Check whether --enable-libtool-lock was given. 6916if test "${enable_libtool_lock+set}" = set; then : 6917 enableval=$enable_libtool_lock; 6918fi 6919 6920test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6921 6922# Some flags need to be propagated to the compiler or linker for good 6923# libtool support. 6924case $host in 6925ia64-*-hpux*) 6926 # Find out what ABI is being produced by ac_compile, and set mode 6927 # options accordingly. 6928 echo 'int i;' > conftest.$ac_ext 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6930 (eval $ac_compile) 2>&5 6931 ac_status=$? 6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6933 test $ac_status = 0; }; then 6934 case `/usr/bin/file conftest.$ac_objext` in 6935 *ELF-32*) 6936 HPUX_IA64_MODE=32 6937 ;; 6938 *ELF-64*) 6939 HPUX_IA64_MODE=64 6940 ;; 6941 esac 6942 fi 6943 rm -rf conftest* 6944 ;; 6945*-*-irix6*) 6946 # Find out what ABI is being produced by ac_compile, and set linker 6947 # options accordingly. 6948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6950 (eval $ac_compile) 2>&5 6951 ac_status=$? 6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6953 test $ac_status = 0; }; then 6954 if test yes = "$lt_cv_prog_gnu_ld"; then 6955 case `/usr/bin/file conftest.$ac_objext` in 6956 *32-bit*) 6957 LD="${LD-ld} -melf32bsmip" 6958 ;; 6959 *N32*) 6960 LD="${LD-ld} -melf32bmipn32" 6961 ;; 6962 *64-bit*) 6963 LD="${LD-ld} -melf64bmip" 6964 ;; 6965 esac 6966 else 6967 case `/usr/bin/file conftest.$ac_objext` in 6968 *32-bit*) 6969 LD="${LD-ld} -32" 6970 ;; 6971 *N32*) 6972 LD="${LD-ld} -n32" 6973 ;; 6974 *64-bit*) 6975 LD="${LD-ld} -64" 6976 ;; 6977 esac 6978 fi 6979 fi 6980 rm -rf conftest* 6981 ;; 6982 6983mips64*-*linux*) 6984 # Find out what ABI is being produced by ac_compile, and set linker 6985 # options accordingly. 6986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6988 (eval $ac_compile) 2>&5 6989 ac_status=$? 6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6991 test $ac_status = 0; }; then 6992 emul=elf 6993 case `/usr/bin/file conftest.$ac_objext` in 6994 *32-bit*) 6995 emul="${emul}32" 6996 ;; 6997 *64-bit*) 6998 emul="${emul}64" 6999 ;; 7000 esac 7001 case `/usr/bin/file conftest.$ac_objext` in 7002 *MSB*) 7003 emul="${emul}btsmip" 7004 ;; 7005 *LSB*) 7006 emul="${emul}ltsmip" 7007 ;; 7008 esac 7009 case `/usr/bin/file conftest.$ac_objext` in 7010 *N32*) 7011 emul="${emul}n32" 7012 ;; 7013 esac 7014 LD="${LD-ld} -m $emul" 7015 fi 7016 rm -rf conftest* 7017 ;; 7018 7019x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7020s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7021 # Find out what ABI is being produced by ac_compile, and set linker 7022 # options accordingly. Note that the listed cases only cover the 7023 # situations where additional linker options are needed (such as when 7024 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7025 # vice versa); the common cases where no linker options are needed do 7026 # not appear in the list. 7027 echo 'int i;' > conftest.$ac_ext 7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7029 (eval $ac_compile) 2>&5 7030 ac_status=$? 7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7032 test $ac_status = 0; }; then 7033 case `/usr/bin/file conftest.o` in 7034 *32-bit*) 7035 case $host in 7036 x86_64-*kfreebsd*-gnu) 7037 LD="${LD-ld} -m elf_i386_fbsd" 7038 ;; 7039 x86_64-*linux*) 7040 case `/usr/bin/file conftest.o` in 7041 *x86-64*) 7042 LD="${LD-ld} -m elf32_x86_64" 7043 ;; 7044 *) 7045 LD="${LD-ld} -m elf_i386" 7046 ;; 7047 esac 7048 ;; 7049 powerpc64le-*linux*) 7050 LD="${LD-ld} -m elf32lppclinux" 7051 ;; 7052 powerpc64-*linux*) 7053 LD="${LD-ld} -m elf32ppclinux" 7054 ;; 7055 s390x-*linux*) 7056 LD="${LD-ld} -m elf_s390" 7057 ;; 7058 sparc64-*linux*) 7059 LD="${LD-ld} -m elf32_sparc" 7060 ;; 7061 esac 7062 ;; 7063 *64-bit*) 7064 case $host in 7065 x86_64-*kfreebsd*-gnu) 7066 LD="${LD-ld} -m elf_x86_64_fbsd" 7067 ;; 7068 x86_64-*linux*) 7069 LD="${LD-ld} -m elf_x86_64" 7070 ;; 7071 powerpcle-*linux*) 7072 LD="${LD-ld} -m elf64lppc" 7073 ;; 7074 powerpc-*linux*) 7075 LD="${LD-ld} -m elf64ppc" 7076 ;; 7077 s390*-*linux*|s390*-*tpf*) 7078 LD="${LD-ld} -m elf64_s390" 7079 ;; 7080 sparc*-*linux*) 7081 LD="${LD-ld} -m elf64_sparc" 7082 ;; 7083 esac 7084 ;; 7085 esac 7086 fi 7087 rm -rf conftest* 7088 ;; 7089 7090*-*-sco3.2v5*) 7091 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7092 SAVE_CFLAGS=$CFLAGS 7093 CFLAGS="$CFLAGS -belf" 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7095$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7096if ${lt_cv_cc_needs_belf+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 ac_ext=c 7100ac_cpp='$CPP $CPPFLAGS' 7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7103ac_compiler_gnu=$ac_cv_c_compiler_gnu 7104 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107 7108int 7109main () 7110{ 7111 7112 ; 7113 return 0; 7114} 7115_ACEOF 7116if ac_fn_c_try_link "$LINENO"; then : 7117 lt_cv_cc_needs_belf=yes 7118else 7119 lt_cv_cc_needs_belf=no 7120fi 7121rm -f core conftest.err conftest.$ac_objext \ 7122 conftest$ac_exeext conftest.$ac_ext 7123 ac_ext=c 7124ac_cpp='$CPP $CPPFLAGS' 7125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7127ac_compiler_gnu=$ac_cv_c_compiler_gnu 7128 7129fi 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7131$as_echo "$lt_cv_cc_needs_belf" >&6; } 7132 if test yes != "$lt_cv_cc_needs_belf"; then 7133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7134 CFLAGS=$SAVE_CFLAGS 7135 fi 7136 ;; 7137*-*solaris*) 7138 # Find out what ABI is being produced by ac_compile, and set linker 7139 # options accordingly. 7140 echo 'int i;' > conftest.$ac_ext 7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7142 (eval $ac_compile) 2>&5 7143 ac_status=$? 7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7145 test $ac_status = 0; }; then 7146 case `/usr/bin/file conftest.o` in 7147 *64-bit*) 7148 case $lt_cv_prog_gnu_ld in 7149 yes*) 7150 case $host in 7151 i?86-*-solaris*|x86_64-*-solaris*) 7152 LD="${LD-ld} -m elf_x86_64" 7153 ;; 7154 sparc*-*-solaris*) 7155 LD="${LD-ld} -m elf64_sparc" 7156 ;; 7157 esac 7158 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7159 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7160 LD=${LD-ld}_sol2 7161 fi 7162 ;; 7163 *) 7164 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7165 LD="${LD-ld} -64" 7166 fi 7167 ;; 7168 esac 7169 ;; 7170 esac 7171 fi 7172 rm -rf conftest* 7173 ;; 7174esac 7175 7176need_locks=$enable_libtool_lock 7177 7178if test -n "$ac_tool_prefix"; then 7179 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7180set dummy ${ac_tool_prefix}mt; ac_word=$2 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182$as_echo_n "checking for $ac_word... " >&6; } 7183if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 if test -n "$MANIFEST_TOOL"; then 7187 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7188else 7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH 7191do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7196 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200done 7201 done 7202IFS=$as_save_IFS 7203 7204fi 7205fi 7206MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7207if test -n "$MANIFEST_TOOL"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7209$as_echo "$MANIFEST_TOOL" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 7216fi 7217if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7218 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7219 # Extract the first word of "mt", so it can be a program name with args. 7220set dummy mt; ac_word=$2 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7222$as_echo_n "checking for $ac_word... " >&6; } 7223if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 if test -n "$ac_ct_MANIFEST_TOOL"; then 7227 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7228else 7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230for as_dir in $PATH 7231do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240done 7241 done 7242IFS=$as_save_IFS 7243 7244fi 7245fi 7246ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7247if test -n "$ac_ct_MANIFEST_TOOL"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7249$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7250else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252$as_echo "no" >&6; } 7253fi 7254 7255 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7256 MANIFEST_TOOL=":" 7257 else 7258 case $cross_compiling:$ac_tool_warned in 7259yes:) 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7262ac_tool_warned=yes ;; 7263esac 7264 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7265 fi 7266else 7267 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7268fi 7269 7270test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7272$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7273if ${lt_cv_path_mainfest_tool+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 lt_cv_path_mainfest_tool=no 7277 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7278 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7279 cat conftest.err >&5 7280 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7281 lt_cv_path_mainfest_tool=yes 7282 fi 7283 rm -f conftest* 7284fi 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7286$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7287if test yes != "$lt_cv_path_mainfest_tool"; then 7288 MANIFEST_TOOL=: 7289fi 7290 7291 7292 7293 7294 7295 7296 case $host_os in 7297 rhapsody* | darwin*) 7298 if test -n "$ac_tool_prefix"; then 7299 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7300set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7302$as_echo_n "checking for $ac_word... " >&6; } 7303if ${ac_cv_prog_DSYMUTIL+:} false; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 if test -n "$DSYMUTIL"; then 7307 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7308else 7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310for as_dir in $PATH 7311do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7316 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320done 7321 done 7322IFS=$as_save_IFS 7323 7324fi 7325fi 7326DSYMUTIL=$ac_cv_prog_DSYMUTIL 7327if test -n "$DSYMUTIL"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7329$as_echo "$DSYMUTIL" >&6; } 7330else 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7332$as_echo "no" >&6; } 7333fi 7334 7335 7336fi 7337if test -z "$ac_cv_prog_DSYMUTIL"; then 7338 ac_ct_DSYMUTIL=$DSYMUTIL 7339 # Extract the first word of "dsymutil", so it can be a program name with args. 7340set dummy dsymutil; ac_word=$2 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7342$as_echo_n "checking for $ac_word... " >&6; } 7343if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 if test -n "$ac_ct_DSYMUTIL"; then 7347 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7348else 7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350for as_dir in $PATH 7351do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7356 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360done 7361 done 7362IFS=$as_save_IFS 7363 7364fi 7365fi 7366ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7367if test -n "$ac_ct_DSYMUTIL"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7369$as_echo "$ac_ct_DSYMUTIL" >&6; } 7370else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 if test "x$ac_ct_DSYMUTIL" = x; then 7376 DSYMUTIL=":" 7377 else 7378 case $cross_compiling:$ac_tool_warned in 7379yes:) 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7382ac_tool_warned=yes ;; 7383esac 7384 DSYMUTIL=$ac_ct_DSYMUTIL 7385 fi 7386else 7387 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7388fi 7389 7390 if test -n "$ac_tool_prefix"; then 7391 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7392set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7394$as_echo_n "checking for $ac_word... " >&6; } 7395if ${ac_cv_prog_NMEDIT+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 if test -n "$NMEDIT"; then 7399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7400else 7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7402for as_dir in $PATH 7403do 7404 IFS=$as_save_IFS 7405 test -z "$as_dir" && as_dir=. 7406 for ac_exec_ext in '' $ac_executable_extensions; do 7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7410 break 2 7411 fi 7412done 7413 done 7414IFS=$as_save_IFS 7415 7416fi 7417fi 7418NMEDIT=$ac_cv_prog_NMEDIT 7419if test -n "$NMEDIT"; then 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7421$as_echo "$NMEDIT" >&6; } 7422else 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7424$as_echo "no" >&6; } 7425fi 7426 7427 7428fi 7429if test -z "$ac_cv_prog_NMEDIT"; then 7430 ac_ct_NMEDIT=$NMEDIT 7431 # Extract the first word of "nmedit", so it can be a program name with args. 7432set dummy nmedit; ac_word=$2 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434$as_echo_n "checking for $ac_word... " >&6; } 7435if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 if test -n "$ac_ct_NMEDIT"; then 7439 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7440else 7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH 7443do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7459if test -n "$ac_ct_NMEDIT"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7461$as_echo "$ac_ct_NMEDIT" >&6; } 7462else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464$as_echo "no" >&6; } 7465fi 7466 7467 if test "x$ac_ct_NMEDIT" = x; then 7468 NMEDIT=":" 7469 else 7470 case $cross_compiling:$ac_tool_warned in 7471yes:) 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7474ac_tool_warned=yes ;; 7475esac 7476 NMEDIT=$ac_ct_NMEDIT 7477 fi 7478else 7479 NMEDIT="$ac_cv_prog_NMEDIT" 7480fi 7481 7482 if test -n "$ac_tool_prefix"; then 7483 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7484set dummy ${ac_tool_prefix}lipo; ac_word=$2 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7486$as_echo_n "checking for $ac_word... " >&6; } 7487if ${ac_cv_prog_LIPO+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 if test -n "$LIPO"; then 7491 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7492else 7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7494for as_dir in $PATH 7495do 7496 IFS=$as_save_IFS 7497 test -z "$as_dir" && as_dir=. 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505 done 7506IFS=$as_save_IFS 7507 7508fi 7509fi 7510LIPO=$ac_cv_prog_LIPO 7511if test -n "$LIPO"; then 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7513$as_echo "$LIPO" >&6; } 7514else 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7516$as_echo "no" >&6; } 7517fi 7518 7519 7520fi 7521if test -z "$ac_cv_prog_LIPO"; then 7522 ac_ct_LIPO=$LIPO 7523 # Extract the first word of "lipo", so it can be a program name with args. 7524set dummy lipo; ac_word=$2 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7526$as_echo_n "checking for $ac_word... " >&6; } 7527if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 if test -n "$ac_ct_LIPO"; then 7531 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7532else 7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534for as_dir in $PATH 7535do 7536 IFS=$as_save_IFS 7537 test -z "$as_dir" && as_dir=. 7538 for ac_exec_ext in '' $ac_executable_extensions; do 7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7540 ac_cv_prog_ac_ct_LIPO="lipo" 7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7542 break 2 7543 fi 7544done 7545 done 7546IFS=$as_save_IFS 7547 7548fi 7549fi 7550ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7551if test -n "$ac_ct_LIPO"; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7553$as_echo "$ac_ct_LIPO" >&6; } 7554else 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7556$as_echo "no" >&6; } 7557fi 7558 7559 if test "x$ac_ct_LIPO" = x; then 7560 LIPO=":" 7561 else 7562 case $cross_compiling:$ac_tool_warned in 7563yes:) 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7566ac_tool_warned=yes ;; 7567esac 7568 LIPO=$ac_ct_LIPO 7569 fi 7570else 7571 LIPO="$ac_cv_prog_LIPO" 7572fi 7573 7574 if test -n "$ac_tool_prefix"; then 7575 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7576set dummy ${ac_tool_prefix}otool; ac_word=$2 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578$as_echo_n "checking for $ac_word... " >&6; } 7579if ${ac_cv_prog_OTOOL+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 if test -n "$OTOOL"; then 7583 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7584else 7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7586for as_dir in $PATH 7587do 7588 IFS=$as_save_IFS 7589 test -z "$as_dir" && as_dir=. 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7592 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596done 7597 done 7598IFS=$as_save_IFS 7599 7600fi 7601fi 7602OTOOL=$ac_cv_prog_OTOOL 7603if test -n "$OTOOL"; then 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7605$as_echo "$OTOOL" >&6; } 7606else 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7608$as_echo "no" >&6; } 7609fi 7610 7611 7612fi 7613if test -z "$ac_cv_prog_OTOOL"; then 7614 ac_ct_OTOOL=$OTOOL 7615 # Extract the first word of "otool", so it can be a program name with args. 7616set dummy otool; ac_word=$2 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7618$as_echo_n "checking for $ac_word... " >&6; } 7619if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621else 7622 if test -n "$ac_ct_OTOOL"; then 7623 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7624else 7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626for as_dir in $PATH 7627do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7632 ac_cv_prog_ac_ct_OTOOL="otool" 7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636done 7637 done 7638IFS=$as_save_IFS 7639 7640fi 7641fi 7642ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7643if test -n "$ac_ct_OTOOL"; then 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7645$as_echo "$ac_ct_OTOOL" >&6; } 7646else 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648$as_echo "no" >&6; } 7649fi 7650 7651 if test "x$ac_ct_OTOOL" = x; then 7652 OTOOL=":" 7653 else 7654 case $cross_compiling:$ac_tool_warned in 7655yes:) 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7658ac_tool_warned=yes ;; 7659esac 7660 OTOOL=$ac_ct_OTOOL 7661 fi 7662else 7663 OTOOL="$ac_cv_prog_OTOOL" 7664fi 7665 7666 if test -n "$ac_tool_prefix"; then 7667 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7668set dummy ${ac_tool_prefix}otool64; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if ${ac_cv_prog_OTOOL64+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 if test -n "$OTOOL64"; then 7675 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694OTOOL64=$ac_cv_prog_OTOOL64 7695if test -n "$OTOOL64"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7697$as_echo "$OTOOL64" >&6; } 7698else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700$as_echo "no" >&6; } 7701fi 7702 7703 7704fi 7705if test -z "$ac_cv_prog_OTOOL64"; then 7706 ac_ct_OTOOL64=$OTOOL64 7707 # Extract the first word of "otool64", so it can be a program name with args. 7708set dummy otool64; ac_word=$2 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710$as_echo_n "checking for $ac_word... " >&6; } 7711if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 if test -n "$ac_ct_OTOOL64"; then 7715 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7716else 7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7718for as_dir in $PATH 7719do 7720 IFS=$as_save_IFS 7721 test -z "$as_dir" && as_dir=. 7722 for ac_exec_ext in '' $ac_executable_extensions; do 7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7724 ac_cv_prog_ac_ct_OTOOL64="otool64" 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7726 break 2 7727 fi 7728done 7729 done 7730IFS=$as_save_IFS 7731 7732fi 7733fi 7734ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7735if test -n "$ac_ct_OTOOL64"; then 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7737$as_echo "$ac_ct_OTOOL64" >&6; } 7738else 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7740$as_echo "no" >&6; } 7741fi 7742 7743 if test "x$ac_ct_OTOOL64" = x; then 7744 OTOOL64=":" 7745 else 7746 case $cross_compiling:$ac_tool_warned in 7747yes:) 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7750ac_tool_warned=yes ;; 7751esac 7752 OTOOL64=$ac_ct_OTOOL64 7753 fi 7754else 7755 OTOOL64="$ac_cv_prog_OTOOL64" 7756fi 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7785$as_echo_n "checking for -single_module linker flag... " >&6; } 7786if ${lt_cv_apple_cc_single_mod+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788else 7789 lt_cv_apple_cc_single_mod=no 7790 if test -z "$LT_MULTI_MODULE"; then 7791 # By default we will add the -single_module flag. You can override 7792 # by either setting the environment variable LT_MULTI_MODULE 7793 # non-empty at configure time, or by adding -multi_module to the 7794 # link flags. 7795 rm -rf libconftest.dylib* 7796 echo "int foo(void){return 1;}" > conftest.c 7797 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7798-dynamiclib -Wl,-single_module conftest.c" >&5 7799 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7800 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7801 _lt_result=$? 7802 # If there is a non-empty error log, and "single_module" 7803 # appears in it, assume the flag caused a linker warning 7804 if test -s conftest.err && $GREP single_module conftest.err; then 7805 cat conftest.err >&5 7806 # Otherwise, if the output was created with a 0 exit code from 7807 # the compiler, it worked. 7808 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7809 lt_cv_apple_cc_single_mod=yes 7810 else 7811 cat conftest.err >&5 7812 fi 7813 rm -rf libconftest.dylib* 7814 rm -f conftest.* 7815 fi 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7818$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7819 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7821$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7822if ${lt_cv_ld_exported_symbols_list+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 lt_cv_ld_exported_symbols_list=no 7826 save_LDFLAGS=$LDFLAGS 7827 echo "_main" > conftest.sym 7828 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831 7832int 7833main () 7834{ 7835 7836 ; 7837 return 0; 7838} 7839_ACEOF 7840if ac_fn_c_try_link "$LINENO"; then : 7841 lt_cv_ld_exported_symbols_list=yes 7842else 7843 lt_cv_ld_exported_symbols_list=no 7844fi 7845rm -f core conftest.err conftest.$ac_objext \ 7846 conftest$ac_exeext conftest.$ac_ext 7847 LDFLAGS=$save_LDFLAGS 7848 7849fi 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7851$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7852 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7854$as_echo_n "checking for -force_load linker flag... " >&6; } 7855if ${lt_cv_ld_force_load+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 lt_cv_ld_force_load=no 7859 cat > conftest.c << _LT_EOF 7860int forced_loaded() { return 2;} 7861_LT_EOF 7862 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7863 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7864 echo "$AR cru libconftest.a conftest.o" >&5 7865 $AR cru libconftest.a conftest.o 2>&5 7866 echo "$RANLIB libconftest.a" >&5 7867 $RANLIB libconftest.a 2>&5 7868 cat > conftest.c << _LT_EOF 7869int main() { return 0;} 7870_LT_EOF 7871 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7872 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7873 _lt_result=$? 7874 if test -s conftest.err && $GREP force_load conftest.err; then 7875 cat conftest.err >&5 7876 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7877 lt_cv_ld_force_load=yes 7878 else 7879 cat conftest.err >&5 7880 fi 7881 rm -f conftest.err libconftest.a conftest conftest.c 7882 rm -rf conftest.dSYM 7883 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7886$as_echo "$lt_cv_ld_force_load" >&6; } 7887 case $host_os in 7888 rhapsody* | darwin1.[012]) 7889 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7890 darwin1.*) 7891 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7892 darwin*) # darwin 5.x on 7893 # if running on 10.5 or later, the deployment target defaults 7894 # to the OS version, if on x86, and 10.4, the deployment 7895 # target defaults to 10.4. Don't you love it? 7896 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7897 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7898 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7899 10.[012][,.]*) 7900 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7901 10.*) 7902 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7903 esac 7904 ;; 7905 esac 7906 if test yes = "$lt_cv_apple_cc_single_mod"; then 7907 _lt_dar_single_mod='$single_module' 7908 fi 7909 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7910 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7911 else 7912 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7913 fi 7914 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7915 _lt_dsymutil='~$DSYMUTIL $lib || :' 7916 else 7917 _lt_dsymutil= 7918 fi 7919 ;; 7920 esac 7921 7922# func_munge_path_list VARIABLE PATH 7923# ----------------------------------- 7924# VARIABLE is name of variable containing _space_ separated list of 7925# directories to be munged by the contents of PATH, which is string 7926# having a format: 7927# "DIR[:DIR]:" 7928# string "DIR[ DIR]" will be prepended to VARIABLE 7929# ":DIR[:DIR]" 7930# string "DIR[ DIR]" will be appended to VARIABLE 7931# "DIRP[:DIRP]::[DIRA:]DIRA" 7932# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7933# "DIRA[ DIRA]" will be appended to VARIABLE 7934# "DIR[:DIR]" 7935# VARIABLE will be replaced by "DIR[ DIR]" 7936func_munge_path_list () 7937{ 7938 case x$2 in 7939 x) 7940 ;; 7941 *:) 7942 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7943 ;; 7944 x:*) 7945 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7946 ;; 7947 *::*) 7948 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7949 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7950 ;; 7951 *) 7952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7953 ;; 7954 esac 7955} 7956 7957ac_ext=c 7958ac_cpp='$CPP $CPPFLAGS' 7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7961ac_compiler_gnu=$ac_cv_c_compiler_gnu 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7963$as_echo_n "checking how to run the C preprocessor... " >&6; } 7964# On Suns, sometimes $CPP names a directory. 7965if test -n "$CPP" && test -d "$CPP"; then 7966 CPP= 7967fi 7968if test -z "$CPP"; then 7969 if ${ac_cv_prog_CPP+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 # Double quotes because CPP needs to be expanded 7973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7974 do 7975 ac_preproc_ok=false 7976for ac_c_preproc_warn_flag in '' yes 7977do 7978 # Use a header file that comes with gcc, so configuring glibc 7979 # with a fresh cross-compiler works. 7980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7981 # <limits.h> exists even on freestanding compilers. 7982 # On the NeXT, cc -E runs the code through the compiler's parser, 7983 # not just through cpp. "Syntax error" is here to catch this case. 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986#ifdef __STDC__ 7987# include <limits.h> 7988#else 7989# include <assert.h> 7990#endif 7991 Syntax error 7992_ACEOF 7993if ac_fn_c_try_cpp "$LINENO"; then : 7994 7995else 7996 # Broken: fails on valid input. 7997continue 7998fi 7999rm -f conftest.err conftest.i conftest.$ac_ext 8000 8001 # OK, works on sane cases. Now check whether nonexistent headers 8002 # can be detected and how. 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004/* end confdefs.h. */ 8005#include <ac_nonexistent.h> 8006_ACEOF 8007if ac_fn_c_try_cpp "$LINENO"; then : 8008 # Broken: success on invalid input. 8009continue 8010else 8011 # Passes both tests. 8012ac_preproc_ok=: 8013break 8014fi 8015rm -f conftest.err conftest.i conftest.$ac_ext 8016 8017done 8018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8019rm -f conftest.i conftest.err conftest.$ac_ext 8020if $ac_preproc_ok; then : 8021 break 8022fi 8023 8024 done 8025 ac_cv_prog_CPP=$CPP 8026 8027fi 8028 CPP=$ac_cv_prog_CPP 8029else 8030 ac_cv_prog_CPP=$CPP 8031fi 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8033$as_echo "$CPP" >&6; } 8034ac_preproc_ok=false 8035for ac_c_preproc_warn_flag in '' yes 8036do 8037 # Use a header file that comes with gcc, so configuring glibc 8038 # with a fresh cross-compiler works. 8039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8040 # <limits.h> exists even on freestanding compilers. 8041 # On the NeXT, cc -E runs the code through the compiler's parser, 8042 # not just through cpp. "Syntax error" is here to catch this case. 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045#ifdef __STDC__ 8046# include <limits.h> 8047#else 8048# include <assert.h> 8049#endif 8050 Syntax error 8051_ACEOF 8052if ac_fn_c_try_cpp "$LINENO"; then : 8053 8054else 8055 # Broken: fails on valid input. 8056continue 8057fi 8058rm -f conftest.err conftest.i conftest.$ac_ext 8059 8060 # OK, works on sane cases. Now check whether nonexistent headers 8061 # can be detected and how. 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064#include <ac_nonexistent.h> 8065_ACEOF 8066if ac_fn_c_try_cpp "$LINENO"; then : 8067 # Broken: success on invalid input. 8068continue 8069else 8070 # Passes both tests. 8071ac_preproc_ok=: 8072break 8073fi 8074rm -f conftest.err conftest.i conftest.$ac_ext 8075 8076done 8077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8078rm -f conftest.i conftest.err conftest.$ac_ext 8079if $ac_preproc_ok; then : 8080 8081else 8082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8084as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8085See \`config.log' for more details" "$LINENO" 5; } 8086fi 8087 8088ac_ext=c 8089ac_cpp='$CPP $CPPFLAGS' 8090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8092ac_compiler_gnu=$ac_cv_c_compiler_gnu 8093 8094 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8096$as_echo_n "checking for ANSI C header files... " >&6; } 8097if ${ac_cv_header_stdc+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101/* end confdefs.h. */ 8102#include <stdlib.h> 8103#include <stdarg.h> 8104#include <string.h> 8105#include <float.h> 8106 8107int 8108main () 8109{ 8110 8111 ; 8112 return 0; 8113} 8114_ACEOF 8115if ac_fn_c_try_compile "$LINENO"; then : 8116 ac_cv_header_stdc=yes 8117else 8118 ac_cv_header_stdc=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8121 8122if test $ac_cv_header_stdc = yes; then 8123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126#include <string.h> 8127 8128_ACEOF 8129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8130 $EGREP "memchr" >/dev/null 2>&1; then : 8131 8132else 8133 ac_cv_header_stdc=no 8134fi 8135rm -f conftest* 8136 8137fi 8138 8139if test $ac_cv_header_stdc = yes; then 8140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8142/* end confdefs.h. */ 8143#include <stdlib.h> 8144 8145_ACEOF 8146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8147 $EGREP "free" >/dev/null 2>&1; then : 8148 8149else 8150 ac_cv_header_stdc=no 8151fi 8152rm -f conftest* 8153 8154fi 8155 8156if test $ac_cv_header_stdc = yes; then 8157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8158 if test "$cross_compiling" = yes; then : 8159 : 8160else 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163#include <ctype.h> 8164#include <stdlib.h> 8165#if ((' ' & 0x0FF) == 0x020) 8166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8168#else 8169# define ISLOWER(c) \ 8170 (('a' <= (c) && (c) <= 'i') \ 8171 || ('j' <= (c) && (c) <= 'r') \ 8172 || ('s' <= (c) && (c) <= 'z')) 8173# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8174#endif 8175 8176#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8177int 8178main () 8179{ 8180 int i; 8181 for (i = 0; i < 256; i++) 8182 if (XOR (islower (i), ISLOWER (i)) 8183 || toupper (i) != TOUPPER (i)) 8184 return 2; 8185 return 0; 8186} 8187_ACEOF 8188if ac_fn_c_try_run "$LINENO"; then : 8189 8190else 8191 ac_cv_header_stdc=no 8192fi 8193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8194 conftest.$ac_objext conftest.beam conftest.$ac_ext 8195fi 8196 8197fi 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8200$as_echo "$ac_cv_header_stdc" >&6; } 8201if test $ac_cv_header_stdc = yes; then 8202 8203$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8204 8205fi 8206 8207# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8208for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8209 inttypes.h stdint.h unistd.h 8210do : 8211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8212ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8213" 8214if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8215 cat >>confdefs.h <<_ACEOF 8216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8217_ACEOF 8218 8219fi 8220 8221done 8222 8223 8224for ac_header in dlfcn.h 8225do : 8226 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8227" 8228if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8229 cat >>confdefs.h <<_ACEOF 8230#define HAVE_DLFCN_H 1 8231_ACEOF 8232 8233fi 8234 8235done 8236 8237 8238 GST_CURRENT=1602 8239 GST_REVISION=0 8240 GST_AGE=1602 8241 GST_LIBVERSION=1602:0:1602 8242 8243 8244 8245 8246 8247 GST_LT_LDFLAGS="$GST_LT_LDFLAGS -version-info $GST_LIBVERSION" 8248 if test ! -z "" 8249 then 8250 GST_LT_LDFLAGS="$GST_LT_LDFLAGS -release " 8251 fi 8252 8253 8254 8255 8256 8257 8258 8259# Set options 8260enable_dlopen=yes 8261enable_win32_dll=yes 8262 8263case $host in 8264*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8265 if test -n "$ac_tool_prefix"; then 8266 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8267set dummy ${ac_tool_prefix}as; ac_word=$2 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8269$as_echo_n "checking for $ac_word... " >&6; } 8270if ${ac_cv_prog_AS+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 if test -n "$AS"; then 8274 ac_cv_prog_AS="$AS" # Let the user override the test. 8275else 8276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8277for as_dir in $PATH 8278do 8279 IFS=$as_save_IFS 8280 test -z "$as_dir" && as_dir=. 8281 for ac_exec_ext in '' $ac_executable_extensions; do 8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8283 ac_cv_prog_AS="${ac_tool_prefix}as" 8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8285 break 2 8286 fi 8287done 8288 done 8289IFS=$as_save_IFS 8290 8291fi 8292fi 8293AS=$ac_cv_prog_AS 8294if test -n "$AS"; then 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8296$as_echo "$AS" >&6; } 8297else 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8299$as_echo "no" >&6; } 8300fi 8301 8302 8303fi 8304if test -z "$ac_cv_prog_AS"; then 8305 ac_ct_AS=$AS 8306 # Extract the first word of "as", so it can be a program name with args. 8307set dummy as; ac_word=$2 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8309$as_echo_n "checking for $ac_word... " >&6; } 8310if ${ac_cv_prog_ac_ct_AS+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 if test -n "$ac_ct_AS"; then 8314 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8315else 8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8317for as_dir in $PATH 8318do 8319 IFS=$as_save_IFS 8320 test -z "$as_dir" && as_dir=. 8321 for ac_exec_ext in '' $ac_executable_extensions; do 8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8323 ac_cv_prog_ac_ct_AS="as" 8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8325 break 2 8326 fi 8327done 8328 done 8329IFS=$as_save_IFS 8330 8331fi 8332fi 8333ac_ct_AS=$ac_cv_prog_ac_ct_AS 8334if test -n "$ac_ct_AS"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8336$as_echo "$ac_ct_AS" >&6; } 8337else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339$as_echo "no" >&6; } 8340fi 8341 8342 if test "x$ac_ct_AS" = x; then 8343 AS="false" 8344 else 8345 case $cross_compiling:$ac_tool_warned in 8346yes:) 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8349ac_tool_warned=yes ;; 8350esac 8351 AS=$ac_ct_AS 8352 fi 8353else 8354 AS="$ac_cv_prog_AS" 8355fi 8356 8357 if test -n "$ac_tool_prefix"; then 8358 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8359set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8361$as_echo_n "checking for $ac_word... " >&6; } 8362if ${ac_cv_prog_DLLTOOL+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 if test -n "$DLLTOOL"; then 8366 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8367else 8368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8369for as_dir in $PATH 8370do 8371 IFS=$as_save_IFS 8372 test -z "$as_dir" && as_dir=. 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8375 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8377 break 2 8378 fi 8379done 8380 done 8381IFS=$as_save_IFS 8382 8383fi 8384fi 8385DLLTOOL=$ac_cv_prog_DLLTOOL 8386if test -n "$DLLTOOL"; then 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8388$as_echo "$DLLTOOL" >&6; } 8389else 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8391$as_echo "no" >&6; } 8392fi 8393 8394 8395fi 8396if test -z "$ac_cv_prog_DLLTOOL"; then 8397 ac_ct_DLLTOOL=$DLLTOOL 8398 # Extract the first word of "dlltool", so it can be a program name with args. 8399set dummy dlltool; ac_word=$2 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8401$as_echo_n "checking for $ac_word... " >&6; } 8402if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 if test -n "$ac_ct_DLLTOOL"; then 8406 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8407else 8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8409for as_dir in $PATH 8410do 8411 IFS=$as_save_IFS 8412 test -z "$as_dir" && as_dir=. 8413 for ac_exec_ext in '' $ac_executable_extensions; do 8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8415 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8417 break 2 8418 fi 8419done 8420 done 8421IFS=$as_save_IFS 8422 8423fi 8424fi 8425ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8426if test -n "$ac_ct_DLLTOOL"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8428$as_echo "$ac_ct_DLLTOOL" >&6; } 8429else 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431$as_echo "no" >&6; } 8432fi 8433 8434 if test "x$ac_ct_DLLTOOL" = x; then 8435 DLLTOOL="false" 8436 else 8437 case $cross_compiling:$ac_tool_warned in 8438yes:) 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8441ac_tool_warned=yes ;; 8442esac 8443 DLLTOOL=$ac_ct_DLLTOOL 8444 fi 8445else 8446 DLLTOOL="$ac_cv_prog_DLLTOOL" 8447fi 8448 8449 if test -n "$ac_tool_prefix"; then 8450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8451set dummy ${ac_tool_prefix}objdump; ac_word=$2 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453$as_echo_n "checking for $ac_word... " >&6; } 8454if ${ac_cv_prog_OBJDUMP+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 if test -n "$OBJDUMP"; then 8458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8459else 8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8461for as_dir in $PATH 8462do 8463 IFS=$as_save_IFS 8464 test -z "$as_dir" && as_dir=. 8465 for ac_exec_ext in '' $ac_executable_extensions; do 8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8469 break 2 8470 fi 8471done 8472 done 8473IFS=$as_save_IFS 8474 8475fi 8476fi 8477OBJDUMP=$ac_cv_prog_OBJDUMP 8478if test -n "$OBJDUMP"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8480$as_echo "$OBJDUMP" >&6; } 8481else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483$as_echo "no" >&6; } 8484fi 8485 8486 8487fi 8488if test -z "$ac_cv_prog_OBJDUMP"; then 8489 ac_ct_OBJDUMP=$OBJDUMP 8490 # Extract the first word of "objdump", so it can be a program name with args. 8491set dummy objdump; ac_word=$2 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493$as_echo_n "checking for $ac_word... " >&6; } 8494if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 if test -n "$ac_ct_OBJDUMP"; then 8498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8499else 8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501for as_dir in $PATH 8502do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511done 8512 done 8513IFS=$as_save_IFS 8514 8515fi 8516fi 8517ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8518if test -n "$ac_ct_OBJDUMP"; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8520$as_echo "$ac_ct_OBJDUMP" >&6; } 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8523$as_echo "no" >&6; } 8524fi 8525 8526 if test "x$ac_ct_OBJDUMP" = x; then 8527 OBJDUMP="false" 8528 else 8529 case $cross_compiling:$ac_tool_warned in 8530yes:) 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8533ac_tool_warned=yes ;; 8534esac 8535 OBJDUMP=$ac_ct_OBJDUMP 8536 fi 8537else 8538 OBJDUMP="$ac_cv_prog_OBJDUMP" 8539fi 8540 8541 ;; 8542esac 8543 8544test -z "$AS" && AS=as 8545 8546 8547 8548 8549 8550test -z "$DLLTOOL" && DLLTOOL=dlltool 8551 8552 8553 8554 8555 8556test -z "$OBJDUMP" && OBJDUMP=objdump 8557 8558 8559 8560 8561# Check whether --enable-static was given. 8562if test "${enable_static+set}" = set; then : 8563 enableval=$enable_static; p=${PACKAGE-default} 8564 case $enableval in 8565 yes) enable_static=yes ;; 8566 no) enable_static=no ;; 8567 *) 8568 enable_static=no 8569 # Look at the argument we got. We use all the common list separators. 8570 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8571 for pkg in $enableval; do 8572 IFS=$lt_save_ifs 8573 if test "X$pkg" = "X$p"; then 8574 enable_static=yes 8575 fi 8576 done 8577 IFS=$lt_save_ifs 8578 ;; 8579 esac 8580else 8581 enable_static=no 8582fi 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 # Check whether --enable-shared was given. 8596if test "${enable_shared+set}" = set; then : 8597 enableval=$enable_shared; p=${PACKAGE-default} 8598 case $enableval in 8599 yes) enable_shared=yes ;; 8600 no) enable_shared=no ;; 8601 *) 8602 enable_shared=no 8603 # Look at the argument we got. We use all the common list separators. 8604 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8605 for pkg in $enableval; do 8606 IFS=$lt_save_ifs 8607 if test "X$pkg" = "X$p"; then 8608 enable_shared=yes 8609 fi 8610 done 8611 IFS=$lt_save_ifs 8612 ;; 8613 esac 8614else 8615 enable_shared=yes 8616fi 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628# Check whether --with-pic was given. 8629if test "${with_pic+set}" = set; then : 8630 withval=$with_pic; lt_p=${PACKAGE-default} 8631 case $withval in 8632 yes|no) pic_mode=$withval ;; 8633 *) 8634 pic_mode=default 8635 # Look at the argument we got. We use all the common list separators. 8636 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8637 for lt_pkg in $withval; do 8638 IFS=$lt_save_ifs 8639 if test "X$lt_pkg" = "X$lt_p"; then 8640 pic_mode=yes 8641 fi 8642 done 8643 IFS=$lt_save_ifs 8644 ;; 8645 esac 8646else 8647 pic_mode=default 8648fi 8649 8650 8651 8652 8653 8654 8655 8656 8657 # Check whether --enable-fast-install was given. 8658if test "${enable_fast_install+set}" = set; then : 8659 enableval=$enable_fast_install; p=${PACKAGE-default} 8660 case $enableval in 8661 yes) enable_fast_install=yes ;; 8662 no) enable_fast_install=no ;; 8663 *) 8664 enable_fast_install=no 8665 # Look at the argument we got. We use all the common list separators. 8666 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8667 for pkg in $enableval; do 8668 IFS=$lt_save_ifs 8669 if test "X$pkg" = "X$p"; then 8670 enable_fast_install=yes 8671 fi 8672 done 8673 IFS=$lt_save_ifs 8674 ;; 8675 esac 8676else 8677 enable_fast_install=yes 8678fi 8679 8680 8681 8682 8683 8684 8685 8686 8687 shared_archive_member_spec= 8688case $host,$enable_shared in 8689power*-*-aix[5-9]*,yes) 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8691$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8692 8693# Check whether --with-aix-soname was given. 8694if test "${with_aix_soname+set}" = set; then : 8695 withval=$with_aix_soname; case $withval in 8696 aix|svr4|both) 8697 ;; 8698 *) 8699 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8700 ;; 8701 esac 8702 lt_cv_with_aix_soname=$with_aix_soname 8703else 8704 if ${lt_cv_with_aix_soname+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 lt_cv_with_aix_soname=aix 8708fi 8709 8710 with_aix_soname=$lt_cv_with_aix_soname 8711fi 8712 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8714$as_echo "$with_aix_soname" >&6; } 8715 if test aix != "$with_aix_soname"; then 8716 # For the AIX way of multilib, we name the shared archive member 8717 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8718 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8719 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8720 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8721 if test 64 = "${OBJECT_MODE-32}"; then 8722 shared_archive_member_spec=shr_64 8723 else 8724 shared_archive_member_spec=shr 8725 fi 8726 fi 8727 ;; 8728*) 8729 with_aix_soname=aix 8730 ;; 8731esac 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742# This can be used to rebuild libtool when needed 8743LIBTOOL_DEPS=$ltmain 8744 8745# Always use our own libtool. 8746LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777test -z "$LN_S" && LN_S="ln -s" 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792if test -n "${ZSH_VERSION+set}"; then 8793 setopt NO_GLOB_SUBST 8794fi 8795 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8797$as_echo_n "checking for objdir... " >&6; } 8798if ${lt_cv_objdir+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 rm -f .libs 2>/dev/null 8802mkdir .libs 2>/dev/null 8803if test -d .libs; then 8804 lt_cv_objdir=.libs 8805else 8806 # MS-DOS does not allow filenames that begin with a dot. 8807 lt_cv_objdir=_libs 8808fi 8809rmdir .libs 2>/dev/null 8810fi 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8812$as_echo "$lt_cv_objdir" >&6; } 8813objdir=$lt_cv_objdir 8814 8815 8816 8817 8818 8819cat >>confdefs.h <<_ACEOF 8820#define LT_OBJDIR "$lt_cv_objdir/" 8821_ACEOF 8822 8823 8824 8825 8826case $host_os in 8827aix3*) 8828 # AIX sometimes has problems with the GCC collect2 program. For some 8829 # reason, if we set the COLLECT_NAMES environment variable, the problems 8830 # vanish in a puff of smoke. 8831 if test set != "${COLLECT_NAMES+set}"; then 8832 COLLECT_NAMES= 8833 export COLLECT_NAMES 8834 fi 8835 ;; 8836esac 8837 8838# Global variables: 8839ofile=libtool 8840can_build_shared=yes 8841 8842# All known linkers require a '.a' archive for static linking (except MSVC, 8843# which needs '.lib'). 8844libext=a 8845 8846with_gnu_ld=$lt_cv_prog_gnu_ld 8847 8848old_CC=$CC 8849old_CFLAGS=$CFLAGS 8850 8851# Set sane defaults for various variables 8852test -z "$CC" && CC=cc 8853test -z "$LTCC" && LTCC=$CC 8854test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8855test -z "$LD" && LD=ld 8856test -z "$ac_objext" && ac_objext=o 8857 8858func_cc_basename $compiler 8859cc_basename=$func_cc_basename_result 8860 8861 8862# Only perform the check for file, if the check method requires it 8863test -z "$MAGIC_CMD" && MAGIC_CMD=file 8864case $deplibs_check_method in 8865file_magic*) 8866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8868$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8869if ${lt_cv_path_MAGIC_CMD+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 case $MAGIC_CMD in 8873[\\/*] | ?:[\\/]*) 8874 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8875 ;; 8876*) 8877 lt_save_MAGIC_CMD=$MAGIC_CMD 8878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8880 for ac_dir in $ac_dummy; do 8881 IFS=$lt_save_ifs 8882 test -z "$ac_dir" && ac_dir=. 8883 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8884 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8885 if test -n "$file_magic_test_file"; then 8886 case $deplibs_check_method in 8887 "file_magic "*) 8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8889 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8891 $EGREP "$file_magic_regex" > /dev/null; then 8892 : 8893 else 8894 cat <<_LT_EOF 1>&2 8895 8896*** Warning: the command libtool uses to detect shared libraries, 8897*** $file_magic_cmd, produces output that libtool cannot recognize. 8898*** The result is that libtool may fail to recognize shared libraries 8899*** as such. This will affect the creation of libtool libraries that 8900*** depend on shared libraries, but programs linked with such libtool 8901*** libraries will work regardless of this problem. Nevertheless, you 8902*** may want to report the problem to your system manager and/or to 8903*** bug-libtool@gnu.org 8904 8905_LT_EOF 8906 fi ;; 8907 esac 8908 fi 8909 break 8910 fi 8911 done 8912 IFS=$lt_save_ifs 8913 MAGIC_CMD=$lt_save_MAGIC_CMD 8914 ;; 8915esac 8916fi 8917 8918MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8919if test -n "$MAGIC_CMD"; then 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8921$as_echo "$MAGIC_CMD" >&6; } 8922else 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8924$as_echo "no" >&6; } 8925fi 8926 8927 8928 8929 8930 8931if test -z "$lt_cv_path_MAGIC_CMD"; then 8932 if test -n "$ac_tool_prefix"; then 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8934$as_echo_n "checking for file... " >&6; } 8935if ${lt_cv_path_MAGIC_CMD+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 case $MAGIC_CMD in 8939[\\/*] | ?:[\\/]*) 8940 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8941 ;; 8942*) 8943 lt_save_MAGIC_CMD=$MAGIC_CMD 8944 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8946 for ac_dir in $ac_dummy; do 8947 IFS=$lt_save_ifs 8948 test -z "$ac_dir" && ac_dir=. 8949 if test -f "$ac_dir/file"; then 8950 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8951 if test -n "$file_magic_test_file"; then 8952 case $deplibs_check_method in 8953 "file_magic "*) 8954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8955 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8957 $EGREP "$file_magic_regex" > /dev/null; then 8958 : 8959 else 8960 cat <<_LT_EOF 1>&2 8961 8962*** Warning: the command libtool uses to detect shared libraries, 8963*** $file_magic_cmd, produces output that libtool cannot recognize. 8964*** The result is that libtool may fail to recognize shared libraries 8965*** as such. This will affect the creation of libtool libraries that 8966*** depend on shared libraries, but programs linked with such libtool 8967*** libraries will work regardless of this problem. Nevertheless, you 8968*** may want to report the problem to your system manager and/or to 8969*** bug-libtool@gnu.org 8970 8971_LT_EOF 8972 fi ;; 8973 esac 8974 fi 8975 break 8976 fi 8977 done 8978 IFS=$lt_save_ifs 8979 MAGIC_CMD=$lt_save_MAGIC_CMD 8980 ;; 8981esac 8982fi 8983 8984MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8985if test -n "$MAGIC_CMD"; then 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8987$as_echo "$MAGIC_CMD" >&6; } 8988else 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8990$as_echo "no" >&6; } 8991fi 8992 8993 8994 else 8995 MAGIC_CMD=: 8996 fi 8997fi 8998 8999 fi 9000 ;; 9001esac 9002 9003# Use C for the default configuration in the libtool script 9004 9005lt_save_CC=$CC 9006ac_ext=c 9007ac_cpp='$CPP $CPPFLAGS' 9008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9010ac_compiler_gnu=$ac_cv_c_compiler_gnu 9011 9012 9013# Source file extension for C test sources. 9014ac_ext=c 9015 9016# Object file extension for compiled C test sources. 9017objext=o 9018objext=$objext 9019 9020# Code to be used in simple compile tests 9021lt_simple_compile_test_code="int some_variable = 0;" 9022 9023# Code to be used in simple link tests 9024lt_simple_link_test_code='int main(){return(0);}' 9025 9026 9027 9028 9029 9030 9031 9032# If no C compiler was specified, use CC. 9033LTCC=${LTCC-"$CC"} 9034 9035# If no C compiler flags were specified, use CFLAGS. 9036LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9037 9038# Allow CC to be a program name with arguments. 9039compiler=$CC 9040 9041# Save the default compiler, since it gets overwritten when the other 9042# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9043compiler_DEFAULT=$CC 9044 9045# save warnings/boilerplate of simple test code 9046ac_outfile=conftest.$ac_objext 9047echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9049_lt_compiler_boilerplate=`cat conftest.err` 9050$RM conftest* 9051 9052ac_outfile=conftest.$ac_objext 9053echo "$lt_simple_link_test_code" >conftest.$ac_ext 9054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9055_lt_linker_boilerplate=`cat conftest.err` 9056$RM -r conftest* 9057 9058 9059## CAVEAT EMPTOR: 9060## There is no encapsulation within the following macros, do not change 9061## the running order or otherwise move them around unless you know exactly 9062## what you are doing... 9063if test -n "$compiler"; then 9064 9065lt_prog_compiler_no_builtin_flag= 9066 9067if test yes = "$GCC"; then 9068 case $cc_basename in 9069 nvcc*) 9070 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9071 *) 9072 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9073 esac 9074 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9076$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9077if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 lt_cv_prog_compiler_rtti_exceptions=no 9081 ac_outfile=conftest.$ac_objext 9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9083 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9084 # Insert the option either (1) after the last *FLAGS variable, or 9085 # (2) before a word containing "conftest.", or (3) at the end. 9086 # Note that $ac_compile itself does not contain backslashes and begins 9087 # with a dollar sign (not a hyphen), so the echo should work correctly. 9088 # The option is referenced via a variable to avoid confusing sed. 9089 lt_compile=`echo "$ac_compile" | $SED \ 9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9092 -e 's:$: $lt_compiler_flag:'` 9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9094 (eval "$lt_compile" 2>conftest.err) 9095 ac_status=$? 9096 cat conftest.err >&5 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 if (exit $ac_status) && test -s "$ac_outfile"; then 9099 # The compiler can only warn and ignore the option if not recognized 9100 # So say no if there are warnings other than the usual output. 9101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9104 lt_cv_prog_compiler_rtti_exceptions=yes 9105 fi 9106 fi 9107 $RM conftest* 9108 9109fi 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9111$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9112 9113if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9115else 9116 : 9117fi 9118 9119fi 9120 9121 9122 9123 9124 9125 9126 lt_prog_compiler_wl= 9127lt_prog_compiler_pic= 9128lt_prog_compiler_static= 9129 9130 9131 if test yes = "$GCC"; then 9132 lt_prog_compiler_wl='-Wl,' 9133 lt_prog_compiler_static='-static' 9134 9135 case $host_os in 9136 aix*) 9137 # All AIX code is PIC. 9138 if test ia64 = "$host_cpu"; then 9139 # AIX 5 now supports IA64 processor 9140 lt_prog_compiler_static='-Bstatic' 9141 fi 9142 lt_prog_compiler_pic='-fPIC' 9143 ;; 9144 9145 amigaos*) 9146 case $host_cpu in 9147 powerpc) 9148 # see comment about AmigaOS4 .so support 9149 lt_prog_compiler_pic='-fPIC' 9150 ;; 9151 m68k) 9152 # FIXME: we need at least 68020 code to build shared libraries, but 9153 # adding the '-m68020' flag to GCC prevents building anything better, 9154 # like '-m68040'. 9155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9156 ;; 9157 esac 9158 ;; 9159 9160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9161 # PIC is the default for these OSes. 9162 ;; 9163 9164 mingw* | cygwin* | pw32* | os2* | cegcc*) 9165 # This hack is so that the source file can tell whether it is being 9166 # built for inclusion in a dll (and should export symbols for example). 9167 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9168 # (--disable-auto-import) libraries 9169 lt_prog_compiler_pic='-DDLL_EXPORT' 9170 case $host_os in 9171 os2*) 9172 lt_prog_compiler_static='$wl-static' 9173 ;; 9174 esac 9175 ;; 9176 9177 darwin* | rhapsody*) 9178 # PIC is the default on this platform 9179 # Common symbols not allowed in MH_DYLIB files 9180 lt_prog_compiler_pic='-fno-common' 9181 ;; 9182 9183 haiku*) 9184 # PIC is the default for Haiku. 9185 # The "-static" flag exists, but is broken. 9186 lt_prog_compiler_static= 9187 ;; 9188 9189 hpux*) 9190 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9191 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9192 # sets the default TLS model and affects inlining. 9193 case $host_cpu in 9194 hppa*64*) 9195 # +Z the default 9196 ;; 9197 *) 9198 lt_prog_compiler_pic='-fPIC' 9199 ;; 9200 esac 9201 ;; 9202 9203 interix[3-9]*) 9204 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9205 # Instead, we relocate shared libraries at runtime. 9206 ;; 9207 9208 msdosdjgpp*) 9209 # Just because we use GCC doesn't mean we suddenly get shared libraries 9210 # on systems that don't support them. 9211 lt_prog_compiler_can_build_shared=no 9212 enable_shared=no 9213 ;; 9214 9215 *nto* | *qnx*) 9216 # QNX uses GNU C++, but need to define -shared option too, otherwise 9217 # it will coredump. 9218 lt_prog_compiler_pic='-fPIC -shared' 9219 ;; 9220 9221 sysv4*MP*) 9222 if test -d /usr/nec; then 9223 lt_prog_compiler_pic=-Kconform_pic 9224 fi 9225 ;; 9226 9227 *) 9228 lt_prog_compiler_pic='-fPIC' 9229 ;; 9230 esac 9231 9232 case $cc_basename in 9233 nvcc*) # Cuda Compiler Driver 2.2 9234 lt_prog_compiler_wl='-Xlinker ' 9235 if test -n "$lt_prog_compiler_pic"; then 9236 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9237 fi 9238 ;; 9239 esac 9240 else 9241 # PORTME Check for flag to pass linker flags through the system compiler. 9242 case $host_os in 9243 aix*) 9244 lt_prog_compiler_wl='-Wl,' 9245 if test ia64 = "$host_cpu"; then 9246 # AIX 5 now supports IA64 processor 9247 lt_prog_compiler_static='-Bstatic' 9248 else 9249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9250 fi 9251 ;; 9252 9253 darwin* | rhapsody*) 9254 # PIC is the default on this platform 9255 # Common symbols not allowed in MH_DYLIB files 9256 lt_prog_compiler_pic='-fno-common' 9257 case $cc_basename in 9258 nagfor*) 9259 # NAG Fortran compiler 9260 lt_prog_compiler_wl='-Wl,-Wl,,' 9261 lt_prog_compiler_pic='-PIC' 9262 lt_prog_compiler_static='-Bstatic' 9263 ;; 9264 esac 9265 ;; 9266 9267 mingw* | cygwin* | pw32* | os2* | cegcc*) 9268 # This hack is so that the source file can tell whether it is being 9269 # built for inclusion in a dll (and should export symbols for example). 9270 lt_prog_compiler_pic='-DDLL_EXPORT' 9271 case $host_os in 9272 os2*) 9273 lt_prog_compiler_static='$wl-static' 9274 ;; 9275 esac 9276 ;; 9277 9278 hpux9* | hpux10* | hpux11*) 9279 lt_prog_compiler_wl='-Wl,' 9280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9281 # not for PA HP-UX. 9282 case $host_cpu in 9283 hppa*64*|ia64*) 9284 # +Z the default 9285 ;; 9286 *) 9287 lt_prog_compiler_pic='+Z' 9288 ;; 9289 esac 9290 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9291 lt_prog_compiler_static='$wl-a ${wl}archive' 9292 ;; 9293 9294 irix5* | irix6* | nonstopux*) 9295 lt_prog_compiler_wl='-Wl,' 9296 # PIC (with -KPIC) is the default. 9297 lt_prog_compiler_static='-non_shared' 9298 ;; 9299 9300 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9301 case $cc_basename in 9302 # old Intel for x86_64, which still supported -KPIC. 9303 ecc*) 9304 lt_prog_compiler_wl='-Wl,' 9305 lt_prog_compiler_pic='-KPIC' 9306 lt_prog_compiler_static='-static' 9307 ;; 9308 # flang / f18. f95 an alias for gfortran or flang on Debian 9309 flang* | f18* | f95*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_pic='-fPIC' 9312 lt_prog_compiler_static='-static' 9313 ;; 9314 # icc used to be incompatible with GCC. 9315 # ICC 10 doesn't accept -KPIC any more. 9316 icc* | ifort*) 9317 lt_prog_compiler_wl='-Wl,' 9318 lt_prog_compiler_pic='-fPIC' 9319 lt_prog_compiler_static='-static' 9320 ;; 9321 # Lahey Fortran 8.1. 9322 lf95*) 9323 lt_prog_compiler_wl='-Wl,' 9324 lt_prog_compiler_pic='--shared' 9325 lt_prog_compiler_static='--static' 9326 ;; 9327 nagfor*) 9328 # NAG Fortran compiler 9329 lt_prog_compiler_wl='-Wl,-Wl,,' 9330 lt_prog_compiler_pic='-PIC' 9331 lt_prog_compiler_static='-Bstatic' 9332 ;; 9333 tcc*) 9334 # Fabrice Bellard et al's Tiny C Compiler 9335 lt_prog_compiler_wl='-Wl,' 9336 lt_prog_compiler_pic='-fPIC' 9337 lt_prog_compiler_static='-static' 9338 ;; 9339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9340 # Portland Group compilers (*not* the Pentium gcc compiler, 9341 # which looks to be a dead project) 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_pic='-fpic' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 ccc*) 9347 lt_prog_compiler_wl='-Wl,' 9348 # All Alpha code is PIC. 9349 lt_prog_compiler_static='-non_shared' 9350 ;; 9351 xl* | bgxl* | bgf* | mpixl*) 9352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-qpic' 9355 lt_prog_compiler_static='-qstaticlink' 9356 ;; 9357 *) 9358 case `$CC -V 2>&1 | sed 5q` in 9359 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9360 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 lt_prog_compiler_wl='' 9364 ;; 9365 *Sun\ F* | *Sun*Fortran*) 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 lt_prog_compiler_wl='-Qoption ld ' 9369 ;; 9370 *Sun\ C*) 9371 # Sun C 5.9 9372 lt_prog_compiler_pic='-KPIC' 9373 lt_prog_compiler_static='-Bstatic' 9374 lt_prog_compiler_wl='-Wl,' 9375 ;; 9376 *Intel*\ [CF]*Compiler*) 9377 lt_prog_compiler_wl='-Wl,' 9378 lt_prog_compiler_pic='-fPIC' 9379 lt_prog_compiler_static='-static' 9380 ;; 9381 *Portland\ Group*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fpic' 9384 lt_prog_compiler_static='-Bstatic' 9385 ;; 9386 esac 9387 ;; 9388 esac 9389 ;; 9390 9391 newsos6) 9392 lt_prog_compiler_pic='-KPIC' 9393 lt_prog_compiler_static='-Bstatic' 9394 ;; 9395 9396 *nto* | *qnx*) 9397 # QNX uses GNU C++, but need to define -shared option too, otherwise 9398 # it will coredump. 9399 lt_prog_compiler_pic='-fPIC -shared' 9400 ;; 9401 9402 osf3* | osf4* | osf5*) 9403 lt_prog_compiler_wl='-Wl,' 9404 # All OSF/1 code is PIC. 9405 lt_prog_compiler_static='-non_shared' 9406 ;; 9407 9408 rdos*) 9409 lt_prog_compiler_static='-non_shared' 9410 ;; 9411 9412 solaris*) 9413 lt_prog_compiler_pic='-KPIC' 9414 lt_prog_compiler_static='-Bstatic' 9415 case $cc_basename in 9416 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9417 lt_prog_compiler_wl='-Qoption ld ';; 9418 *) 9419 lt_prog_compiler_wl='-Wl,';; 9420 esac 9421 ;; 9422 9423 sunos4*) 9424 lt_prog_compiler_wl='-Qoption ld ' 9425 lt_prog_compiler_pic='-PIC' 9426 lt_prog_compiler_static='-Bstatic' 9427 ;; 9428 9429 sysv4 | sysv4.2uw2* | sysv4.3*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 sysv4*MP*) 9436 if test -d /usr/nec; then 9437 lt_prog_compiler_pic='-Kconform_pic' 9438 lt_prog_compiler_static='-Bstatic' 9439 fi 9440 ;; 9441 9442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9443 lt_prog_compiler_wl='-Wl,' 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 ;; 9447 9448 unicos*) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_can_build_shared=no 9451 ;; 9452 9453 uts4*) 9454 lt_prog_compiler_pic='-pic' 9455 lt_prog_compiler_static='-Bstatic' 9456 ;; 9457 9458 *) 9459 lt_prog_compiler_can_build_shared=no 9460 ;; 9461 esac 9462 fi 9463 9464case $host_os in 9465 # For platforms that do not support PIC, -DPIC is meaningless: 9466 *djgpp*) 9467 lt_prog_compiler_pic= 9468 ;; 9469 *) 9470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9471 ;; 9472esac 9473 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9475$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9476if ${lt_cv_prog_compiler_pic+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9480fi 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9482$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9483lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9484 9485# 9486# Check to make sure the PIC flag actually works. 9487# 9488if test -n "$lt_prog_compiler_pic"; then 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9490$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9491if ${lt_cv_prog_compiler_pic_works+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 lt_cv_prog_compiler_pic_works=no 9495 ac_outfile=conftest.$ac_objext 9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9498 # Insert the option either (1) after the last *FLAGS variable, or 9499 # (2) before a word containing "conftest.", or (3) at the end. 9500 # Note that $ac_compile itself does not contain backslashes and begins 9501 # with a dollar sign (not a hyphen), so the echo should work correctly. 9502 # The option is referenced via a variable to avoid confusing sed. 9503 lt_compile=`echo "$ac_compile" | $SED \ 9504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9506 -e 's:$: $lt_compiler_flag:'` 9507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9508 (eval "$lt_compile" 2>conftest.err) 9509 ac_status=$? 9510 cat conftest.err >&5 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 if (exit $ac_status) && test -s "$ac_outfile"; then 9513 # The compiler can only warn and ignore the option if not recognized 9514 # So say no if there are warnings other than the usual output. 9515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9518 lt_cv_prog_compiler_pic_works=yes 9519 fi 9520 fi 9521 $RM conftest* 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9525$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9526 9527if test yes = "$lt_cv_prog_compiler_pic_works"; then 9528 case $lt_prog_compiler_pic in 9529 "" | " "*) ;; 9530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9531 esac 9532else 9533 lt_prog_compiler_pic= 9534 lt_prog_compiler_can_build_shared=no 9535fi 9536 9537fi 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549# 9550# Check to make sure the static flag actually works. 9551# 9552wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9554$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9555if ${lt_cv_prog_compiler_static_works+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 lt_cv_prog_compiler_static_works=no 9559 save_LDFLAGS=$LDFLAGS 9560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9561 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9563 # The linker can only warn and ignore the option if not recognized 9564 # So say no if there are warnings 9565 if test -s conftest.err; then 9566 # Append any errors to the config.log. 9567 cat conftest.err 1>&5 9568 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9570 if diff conftest.exp conftest.er2 >/dev/null; then 9571 lt_cv_prog_compiler_static_works=yes 9572 fi 9573 else 9574 lt_cv_prog_compiler_static_works=yes 9575 fi 9576 fi 9577 $RM -r conftest* 9578 LDFLAGS=$save_LDFLAGS 9579 9580fi 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9582$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9583 9584if test yes = "$lt_cv_prog_compiler_static_works"; then 9585 : 9586else 9587 lt_prog_compiler_static= 9588fi 9589 9590 9591 9592 9593 9594 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9598if ${lt_cv_prog_compiler_c_o+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_prog_compiler_c_o=no 9602 $RM -r conftest 2>/dev/null 9603 mkdir conftest 9604 cd conftest 9605 mkdir out 9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9607 9608 lt_compiler_flag="-o out/conftest2.$ac_objext" 9609 # Insert the option either (1) after the last *FLAGS variable, or 9610 # (2) before a word containing "conftest.", or (3) at the end. 9611 # Note that $ac_compile itself does not contain backslashes and begins 9612 # with a dollar sign (not a hyphen), so the echo should work correctly. 9613 lt_compile=`echo "$ac_compile" | $SED \ 9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9616 -e 's:$: $lt_compiler_flag:'` 9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9618 (eval "$lt_compile" 2>out/conftest.err) 9619 ac_status=$? 9620 cat out/conftest.err >&5 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9623 then 9624 # The compiler can only warn and ignore the option if not recognized 9625 # So say no if there are warnings 9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9629 lt_cv_prog_compiler_c_o=yes 9630 fi 9631 fi 9632 chmod u+w . 2>&5 9633 $RM conftest* 9634 # SGI C++ compiler will create directory out/ii_files/ for 9635 # template instantiation 9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9637 $RM out/* && rmdir out 9638 cd .. 9639 $RM -r conftest 9640 $RM conftest* 9641 9642fi 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9644$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9645 9646 9647 9648 9649 9650 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9653if ${lt_cv_prog_compiler_c_o+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 lt_cv_prog_compiler_c_o=no 9657 $RM -r conftest 2>/dev/null 9658 mkdir conftest 9659 cd conftest 9660 mkdir out 9661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9662 9663 lt_compiler_flag="-o out/conftest2.$ac_objext" 9664 # Insert the option either (1) after the last *FLAGS variable, or 9665 # (2) before a word containing "conftest.", or (3) at the end. 9666 # Note that $ac_compile itself does not contain backslashes and begins 9667 # with a dollar sign (not a hyphen), so the echo should work correctly. 9668 lt_compile=`echo "$ac_compile" | $SED \ 9669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9671 -e 's:$: $lt_compiler_flag:'` 9672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9673 (eval "$lt_compile" 2>out/conftest.err) 9674 ac_status=$? 9675 cat out/conftest.err >&5 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9678 then 9679 # The compiler can only warn and ignore the option if not recognized 9680 # So say no if there are warnings 9681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9684 lt_cv_prog_compiler_c_o=yes 9685 fi 9686 fi 9687 chmod u+w . 2>&5 9688 $RM conftest* 9689 # SGI C++ compiler will create directory out/ii_files/ for 9690 # template instantiation 9691 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9692 $RM out/* && rmdir out 9693 cd .. 9694 $RM -r conftest 9695 $RM conftest* 9696 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9699$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9700 9701 9702 9703 9704hard_links=nottested 9705if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9706 # do not overwrite the value of need_locks provided by the user 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9708$as_echo_n "checking if we can lock with hard links... " >&6; } 9709 hard_links=yes 9710 $RM conftest* 9711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9712 touch conftest.a 9713 ln conftest.a conftest.b 2>&5 || hard_links=no 9714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9716$as_echo "$hard_links" >&6; } 9717 if test no = "$hard_links"; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9719$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9720 need_locks=warn 9721 fi 9722else 9723 need_locks=no 9724fi 9725 9726 9727 9728 9729 9730 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9732$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9733 9734 runpath_var= 9735 allow_undefined_flag= 9736 always_export_symbols=no 9737 archive_cmds= 9738 archive_expsym_cmds= 9739 compiler_needs_object=no 9740 enable_shared_with_static_runtimes=no 9741 export_dynamic_flag_spec= 9742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9743 hardcode_automatic=no 9744 hardcode_direct=no 9745 hardcode_direct_absolute=no 9746 hardcode_libdir_flag_spec= 9747 hardcode_libdir_separator= 9748 hardcode_minus_L=no 9749 hardcode_shlibpath_var=unsupported 9750 inherit_rpath=no 9751 link_all_deplibs=unknown 9752 module_cmds= 9753 module_expsym_cmds= 9754 old_archive_from_new_cmds= 9755 old_archive_from_expsyms_cmds= 9756 thread_safe_flag_spec= 9757 whole_archive_flag_spec= 9758 # include_expsyms should be a list of space-separated symbols to be *always* 9759 # included in the symbol list 9760 include_expsyms= 9761 # exclude_expsyms can be an extended regexp of symbols to exclude 9762 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9763 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9764 # as well as any symbol that contains 'd'. 9765 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9767 # platforms (ab)use it in PIC code, but their linkers get confused if 9768 # the symbol is explicitly referenced. Since portable code cannot 9769 # rely on this symbol name, it's probably fine to never include it in 9770 # preloaded symbol tables. 9771 # Exclude shared library initialization/finalization symbols. 9772 extract_expsyms_cmds= 9773 9774 case $host_os in 9775 cygwin* | mingw* | pw32* | cegcc*) 9776 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9777 # When not using gcc, we currently assume that we are using 9778 # Microsoft Visual C++. 9779 if test yes != "$GCC"; then 9780 with_gnu_ld=no 9781 fi 9782 ;; 9783 interix*) 9784 # we just hope/assume this is gcc and not c89 (= MSVC++) 9785 with_gnu_ld=yes 9786 ;; 9787 openbsd* | bitrig*) 9788 with_gnu_ld=no 9789 ;; 9790 linux* | k*bsd*-gnu | gnu*) 9791 link_all_deplibs=no 9792 ;; 9793 esac 9794 9795 ld_shlibs=yes 9796 9797 # On some targets, GNU ld is compatible enough with the native linker 9798 # that we're better off using the native interface for both. 9799 lt_use_gnu_ld_interface=no 9800 if test yes = "$with_gnu_ld"; then 9801 case $host_os in 9802 aix*) 9803 # The AIX port of GNU ld has always aspired to compatibility 9804 # with the native linker. However, as the warning in the GNU ld 9805 # block says, versions before 2.19.5* couldn't really create working 9806 # shared libraries, regardless of the interface used. 9807 case `$LD -v 2>&1` in 9808 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9809 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9810 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9811 *) 9812 lt_use_gnu_ld_interface=yes 9813 ;; 9814 esac 9815 ;; 9816 *) 9817 lt_use_gnu_ld_interface=yes 9818 ;; 9819 esac 9820 fi 9821 9822 if test yes = "$lt_use_gnu_ld_interface"; then 9823 # If archive_cmds runs LD, not CC, wlarc should be empty 9824 wlarc='$wl' 9825 9826 # Set some defaults for GNU ld with shared library support. These 9827 # are reset later if shared libraries are not supported. Putting them 9828 # here allows them to be overridden if necessary. 9829 runpath_var=LD_RUN_PATH 9830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9831 export_dynamic_flag_spec='$wl--export-dynamic' 9832 # ancient GNU ld didn't support --whole-archive et. al. 9833 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9834 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9835 else 9836 whole_archive_flag_spec= 9837 fi 9838 supports_anon_versioning=no 9839 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9840 *GNU\ gold*) supports_anon_versioning=yes ;; 9841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9844 *\ 2.11.*) ;; # other 2.11 versions 9845 *) supports_anon_versioning=yes ;; 9846 esac 9847 9848 # See if GNU ld supports shared libraries. 9849 case $host_os in 9850 aix[3-9]*) 9851 # On AIX/PPC, the GNU linker is very broken 9852 if test ia64 != "$host_cpu"; then 9853 ld_shlibs=no 9854 cat <<_LT_EOF 1>&2 9855 9856*** Warning: the GNU linker, at least up to release 2.19, is reported 9857*** to be unable to reliably create shared libraries on AIX. 9858*** Therefore, libtool is disabling shared libraries support. If you 9859*** really care for shared libraries, you may want to install binutils 9860*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9861*** You will then need to restart the configuration process. 9862 9863_LT_EOF 9864 fi 9865 ;; 9866 9867 amigaos*) 9868 case $host_cpu in 9869 powerpc) 9870 # see comment about AmigaOS4 .so support 9871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9872 archive_expsym_cmds='' 9873 ;; 9874 m68k) 9875 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)' 9876 hardcode_libdir_flag_spec='-L$libdir' 9877 hardcode_minus_L=yes 9878 ;; 9879 esac 9880 ;; 9881 9882 beos*) 9883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9884 allow_undefined_flag=unsupported 9885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9886 # support --undefined. This deserves some investigation. FIXME 9887 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9888 else 9889 ld_shlibs=no 9890 fi 9891 ;; 9892 9893 cygwin* | mingw* | pw32* | cegcc*) 9894 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9895 # as there is no search path for DLLs. 9896 hardcode_libdir_flag_spec='-L$libdir' 9897 export_dynamic_flag_spec='$wl--export-all-symbols' 9898 allow_undefined_flag=unsupported 9899 always_export_symbols=no 9900 enable_shared_with_static_runtimes=yes 9901 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' 9902 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9903 9904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9906 # If the export-symbols file already is a .def file, use it as 9907 # is; otherwise, prepend EXPORTS... 9908 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9909 cp $export_symbols $output_objdir/$soname.def; 9910 else 9911 echo EXPORTS > $output_objdir/$soname.def; 9912 cat $export_symbols >> $output_objdir/$soname.def; 9913 fi~ 9914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9915 else 9916 ld_shlibs=no 9917 fi 9918 ;; 9919 9920 haiku*) 9921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9922 link_all_deplibs=yes 9923 ;; 9924 9925 os2*) 9926 hardcode_libdir_flag_spec='-L$libdir' 9927 hardcode_minus_L=yes 9928 allow_undefined_flag=unsupported 9929 shrext_cmds=.dll 9930 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9931 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9932 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9933 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9934 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9935 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9936 emximp -o $lib $output_objdir/$libname.def' 9937 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9938 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9939 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9940 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9941 prefix_cmds="$SED"~ 9942 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9943 prefix_cmds="$prefix_cmds -e 1d"; 9944 fi~ 9945 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9946 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9948 emximp -o $lib $output_objdir/$libname.def' 9949 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9950 enable_shared_with_static_runtimes=yes 9951 ;; 9952 9953 interix[3-9]*) 9954 hardcode_direct=no 9955 hardcode_shlibpath_var=no 9956 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9957 export_dynamic_flag_spec='$wl-E' 9958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9959 # Instead, shared libraries are loaded at an image base (0x10000000 by 9960 # default) and relocated if they conflict, which is a slow very memory 9961 # consuming and fragmenting process. To avoid this, we pick a random, 9962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9963 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9964 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9965 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' 9966 ;; 9967 9968 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9969 tmp_diet=no 9970 if test linux-dietlibc = "$host_os"; then 9971 case $cc_basename in 9972 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9973 esac 9974 fi 9975 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9976 && test no = "$tmp_diet" 9977 then 9978 tmp_addflag=' $pic_flag' 9979 tmp_sharedflag='-shared' 9980 case $cc_basename,$host_cpu in 9981 pgcc*) # Portland Group C compiler 9982 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' 9983 tmp_addflag=' $pic_flag' 9984 ;; 9985 pgf77* | pgf90* | pgf95* | pgfortran*) 9986 # Portland Group f77 and f90 compilers 9987 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' 9988 tmp_addflag=' $pic_flag -Mnomain' ;; 9989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9990 tmp_addflag=' -i_dynamic' ;; 9991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9992 tmp_addflag=' -i_dynamic -nofor_main' ;; 9993 ifc* | ifort*) # Intel Fortran compiler 9994 tmp_addflag=' -nofor_main' ;; 9995 lf95*) # Lahey Fortran 8.1 9996 whole_archive_flag_spec= 9997 tmp_sharedflag='--shared' ;; 9998 nagfor*) # NAGFOR 5.3 9999 tmp_sharedflag='-Wl,-shared' ;; 10000 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10001 tmp_sharedflag='-qmkshrobj' 10002 tmp_addflag= ;; 10003 nvcc*) # Cuda Compiler Driver 2.2 10004 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' 10005 compiler_needs_object=yes 10006 ;; 10007 esac 10008 case `$CC -V 2>&1 | sed 5q` in 10009 *Sun\ C*) # Sun C 5.9 10010 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' 10011 compiler_needs_object=yes 10012 tmp_sharedflag='-G' ;; 10013 *Sun\ F*) # Sun Fortran 8.3 10014 tmp_sharedflag='-G' ;; 10015 esac 10016 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10017 10018 if test yes = "$supports_anon_versioning"; then 10019 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10021 echo "local: *; };" >> $output_objdir/$libname.ver~ 10022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10023 fi 10024 10025 case $cc_basename in 10026 tcc*) 10027 export_dynamic_flag_spec='-rdynamic' 10028 ;; 10029 xlf* | bgf* | bgxlf* | mpixlf*) 10030 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10031 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10032 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10033 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10034 if test yes = "$supports_anon_versioning"; then 10035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10037 echo "local: *; };" >> $output_objdir/$libname.ver~ 10038 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10039 fi 10040 ;; 10041 esac 10042 else 10043 ld_shlibs=no 10044 fi 10045 ;; 10046 10047 netbsd* | netbsdelf*-gnu) 10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10049 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10050 wlarc= 10051 else 10052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10053 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10054 fi 10055 ;; 10056 10057 solaris*) 10058 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10059 ld_shlibs=no 10060 cat <<_LT_EOF 1>&2 10061 10062*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10063*** create shared libraries on Solaris systems. Therefore, libtool 10064*** is disabling shared libraries support. We urge you to upgrade GNU 10065*** binutils to release 2.9.1 or newer. Another option is to modify 10066*** your PATH or compiler configuration so that the native linker is 10067*** used, and then restart. 10068 10069_LT_EOF 10070 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10072 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10073 else 10074 ld_shlibs=no 10075 fi 10076 ;; 10077 10078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10079 case `$LD -v 2>&1` in 10080 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10081 ld_shlibs=no 10082 cat <<_LT_EOF 1>&2 10083 10084*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10085*** reliably create shared libraries on SCO systems. Therefore, libtool 10086*** is disabling shared libraries support. We urge you to upgrade GNU 10087*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10088*** your PATH or compiler configuration so that the native linker is 10089*** used, and then restart. 10090 10091_LT_EOF 10092 ;; 10093 *) 10094 # For security reasons, it is highly recommended that you always 10095 # use absolute paths for naming shared libraries, and exclude the 10096 # DT_RUNPATH tag from executables and libraries. But doing so 10097 # requires that you compile everything twice, which is a pain. 10098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10102 else 10103 ld_shlibs=no 10104 fi 10105 ;; 10106 esac 10107 ;; 10108 10109 sunos4*) 10110 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10111 wlarc= 10112 hardcode_direct=yes 10113 hardcode_shlibpath_var=no 10114 ;; 10115 10116 *) 10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10120 else 10121 ld_shlibs=no 10122 fi 10123 ;; 10124 esac 10125 10126 if test no = "$ld_shlibs"; then 10127 runpath_var= 10128 hardcode_libdir_flag_spec= 10129 export_dynamic_flag_spec= 10130 whole_archive_flag_spec= 10131 fi 10132 else 10133 # PORTME fill in a description of your system's linker (not GNU ld) 10134 case $host_os in 10135 aix3*) 10136 allow_undefined_flag=unsupported 10137 always_export_symbols=yes 10138 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' 10139 # Note: this linker hardcodes the directories in LIBPATH if there 10140 # are no directories specified by -L. 10141 hardcode_minus_L=yes 10142 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10143 # Neither direct hardcoding nor static linking is supported with a 10144 # broken collect2. 10145 hardcode_direct=unsupported 10146 fi 10147 ;; 10148 10149 aix[4-9]*) 10150 if test ia64 = "$host_cpu"; then 10151 # On IA64, the linker does run time linking by default, so we don't 10152 # have to do anything special. 10153 aix_use_runtimelinking=no 10154 exp_sym_flag='-Bexport' 10155 no_entry_flag= 10156 else 10157 # If we're using GNU nm, then we don't want the "-C" option. 10158 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10159 # Without the "-l" option, or with the "-B" option, AIX nm treats 10160 # weak defined symbols like other global defined symbols, whereas 10161 # GNU nm marks them as "W". 10162 # While the 'weak' keyword is ignored in the Export File, we need 10163 # it in the Import File for the 'aix-soname' feature, so we have 10164 # to replace the "-B" option with "-P" for AIX nm. 10165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10166 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10167 else 10168 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10169 fi 10170 aix_use_runtimelinking=no 10171 10172 # Test if we are trying to use run time linking or normal 10173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10174 # have runtime linking enabled, and use it for executables. 10175 # For shared libraries, we enable/disable runtime linking 10176 # depending on the kind of the shared library created - 10177 # when "with_aix_soname,aix_use_runtimelinking" is: 10178 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10179 # "aix,yes" lib.so shared, rtl:yes, for executables 10180 # lib.a static archive 10181 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10182 # lib.a(lib.so.V) shared, rtl:no, for executables 10183 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10184 # lib.a(lib.so.V) shared, rtl:no 10185 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10186 # lib.a static archive 10187 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10188 for ld_flag in $LDFLAGS; do 10189 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10190 aix_use_runtimelinking=yes 10191 break 10192 fi 10193 done 10194 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10195 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10196 # so we don't have lib.a shared libs to link our executables. 10197 # We have to force runtime linking in this case. 10198 aix_use_runtimelinking=yes 10199 LDFLAGS="$LDFLAGS -Wl,-brtl" 10200 fi 10201 ;; 10202 esac 10203 10204 exp_sym_flag='-bexport' 10205 no_entry_flag='-bnoentry' 10206 fi 10207 10208 # When large executables or shared objects are built, AIX ld can 10209 # have problems creating the table of contents. If linking a library 10210 # or program results in "error TOC overflow" add -mminimal-toc to 10211 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10212 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10213 10214 archive_cmds='' 10215 hardcode_direct=yes 10216 hardcode_direct_absolute=yes 10217 hardcode_libdir_separator=':' 10218 link_all_deplibs=yes 10219 file_list_spec='$wl-f,' 10220 case $with_aix_soname,$aix_use_runtimelinking in 10221 aix,*) ;; # traditional, no import file 10222 svr4,* | *,yes) # use import file 10223 # The Import File defines what to hardcode. 10224 hardcode_direct=no 10225 hardcode_direct_absolute=no 10226 ;; 10227 esac 10228 10229 if test yes = "$GCC"; then 10230 case $host_os in aix4.[012]|aix4.[012].*) 10231 # We only want to do this on AIX 4.2 and lower, the check 10232 # below for broken collect2 doesn't work under 4.3+ 10233 collect2name=`$CC -print-prog-name=collect2` 10234 if test -f "$collect2name" && 10235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10236 then 10237 # We have reworked collect2 10238 : 10239 else 10240 # We have old collect2 10241 hardcode_direct=unsupported 10242 # It fails to find uninstalled libraries when the uninstalled 10243 # path is not listed in the libpath. Setting hardcode_minus_L 10244 # to unsupported forces relinking 10245 hardcode_minus_L=yes 10246 hardcode_libdir_flag_spec='-L$libdir' 10247 hardcode_libdir_separator= 10248 fi 10249 ;; 10250 esac 10251 shared_flag='-shared' 10252 if test yes = "$aix_use_runtimelinking"; then 10253 shared_flag="$shared_flag "'$wl-G' 10254 fi 10255 # Need to ensure runtime linking is disabled for the traditional 10256 # shared library, or the linker may eventually find shared libraries 10257 # /with/ Import File - we do not want to mix them. 10258 shared_flag_aix='-shared' 10259 shared_flag_svr4='-shared $wl-G' 10260 else 10261 # not using gcc 10262 if test ia64 = "$host_cpu"; then 10263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10264 # chokes on -Wl,-G. The following line is correct: 10265 shared_flag='-G' 10266 else 10267 if test yes = "$aix_use_runtimelinking"; then 10268 shared_flag='$wl-G' 10269 else 10270 shared_flag='$wl-bM:SRE' 10271 fi 10272 shared_flag_aix='$wl-bM:SRE' 10273 shared_flag_svr4='$wl-G' 10274 fi 10275 fi 10276 10277 export_dynamic_flag_spec='$wl-bexpall' 10278 # It seems that -bexpall does not export symbols beginning with 10279 # underscore (_), so it is better to generate a list of symbols to export. 10280 always_export_symbols=yes 10281 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10282 # Warning - without using the other runtime loading flags (-brtl), 10283 # -berok will link without error, but may produce a broken library. 10284 allow_undefined_flag='-berok' 10285 # Determine the default libpath from the value encoded in an 10286 # empty executable. 10287 if test set = "${lt_cv_aix_libpath+set}"; then 10288 aix_libpath=$lt_cv_aix_libpath 10289else 10290 if ${lt_cv_aix_libpath_+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292else 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294/* end confdefs.h. */ 10295 10296int 10297main () 10298{ 10299 10300 ; 10301 return 0; 10302} 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 10306 lt_aix_libpath_sed=' 10307 /Import File Strings/,/^$/ { 10308 /^0/ { 10309 s/^0 *\([^ ]*\) *$/\1/ 10310 p 10311 } 10312 }' 10313 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10314 # Check for a 64-bit object if we didn't find anything. 10315 if test -z "$lt_cv_aix_libpath_"; then 10316 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10317 fi 10318fi 10319rm -f core conftest.err conftest.$ac_objext \ 10320 conftest$ac_exeext conftest.$ac_ext 10321 if test -z "$lt_cv_aix_libpath_"; then 10322 lt_cv_aix_libpath_=/usr/lib:/lib 10323 fi 10324 10325fi 10326 10327 aix_libpath=$lt_cv_aix_libpath_ 10328fi 10329 10330 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10331 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10332 else 10333 if test ia64 = "$host_cpu"; then 10334 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10335 allow_undefined_flag="-z nodefs" 10336 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" 10337 else 10338 # Determine the default libpath from the value encoded in an 10339 # empty executable. 10340 if test set = "${lt_cv_aix_libpath+set}"; then 10341 aix_libpath=$lt_cv_aix_libpath 10342else 10343 if ${lt_cv_aix_libpath_+:} false; then : 10344 $as_echo_n "(cached) " >&6 10345else 10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10347/* end confdefs.h. */ 10348 10349int 10350main () 10351{ 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357if ac_fn_c_try_link "$LINENO"; then : 10358 10359 lt_aix_libpath_sed=' 10360 /Import File Strings/,/^$/ { 10361 /^0/ { 10362 s/^0 *\([^ ]*\) *$/\1/ 10363 p 10364 } 10365 }' 10366 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10367 # Check for a 64-bit object if we didn't find anything. 10368 if test -z "$lt_cv_aix_libpath_"; then 10369 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10370 fi 10371fi 10372rm -f core conftest.err conftest.$ac_objext \ 10373 conftest$ac_exeext conftest.$ac_ext 10374 if test -z "$lt_cv_aix_libpath_"; then 10375 lt_cv_aix_libpath_=/usr/lib:/lib 10376 fi 10377 10378fi 10379 10380 aix_libpath=$lt_cv_aix_libpath_ 10381fi 10382 10383 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10384 # Warning - without using the other run time loading flags, 10385 # -berok will link without error, but may produce a broken library. 10386 no_undefined_flag=' $wl-bernotok' 10387 allow_undefined_flag=' $wl-berok' 10388 if test yes = "$with_gnu_ld"; then 10389 # We only use this code for GNU lds that support --whole-archive. 10390 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10391 else 10392 # Exported symbols can be pulled into shared objects from archives 10393 whole_archive_flag_spec='$convenience' 10394 fi 10395 archive_cmds_need_lc=yes 10396 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10397 # -brtl affects multiple linker settings, -berok does not and is overridden later 10398 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10399 if test svr4 != "$with_aix_soname"; then 10400 # This is similar to how AIX traditionally builds its shared libraries. 10401 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10402 fi 10403 if test aix != "$with_aix_soname"; then 10404 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10405 else 10406 # used by -dlpreopen to get the symbols 10407 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10408 fi 10409 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10410 fi 10411 fi 10412 ;; 10413 10414 amigaos*) 10415 case $host_cpu in 10416 powerpc) 10417 # see comment about AmigaOS4 .so support 10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10419 archive_expsym_cmds='' 10420 ;; 10421 m68k) 10422 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)' 10423 hardcode_libdir_flag_spec='-L$libdir' 10424 hardcode_minus_L=yes 10425 ;; 10426 esac 10427 ;; 10428 10429 bsdi[45]*) 10430 export_dynamic_flag_spec=-rdynamic 10431 ;; 10432 10433 cygwin* | mingw* | pw32* | cegcc*) 10434 # When not using gcc, we currently assume that we are using 10435 # Microsoft Visual C++. 10436 # hardcode_libdir_flag_spec is actually meaningless, as there is 10437 # no search path for DLLs. 10438 case $cc_basename in 10439 cl*) 10440 # Native MSVC 10441 hardcode_libdir_flag_spec=' ' 10442 allow_undefined_flag=unsupported 10443 always_export_symbols=yes 10444 file_list_spec='@' 10445 # Tell ltmain to make .lib files, not .a files. 10446 libext=lib 10447 # Tell ltmain to make .dll files, not .so files. 10448 shrext_cmds=.dll 10449 # FIXME: Setting linknames here is a bad hack. 10450 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10451 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10452 cp "$export_symbols" "$output_objdir/$soname.def"; 10453 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10454 else 10455 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10456 fi~ 10457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10458 linknames=' 10459 # The linker will not automatically build a static lib if we build a DLL. 10460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10461 enable_shared_with_static_runtimes=yes 10462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10464 # Don't use ranlib 10465 old_postinstall_cmds='chmod 644 $oldlib' 10466 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10467 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10468 case $lt_outputfile in 10469 *.exe|*.EXE) ;; 10470 *) 10471 lt_outputfile=$lt_outputfile.exe 10472 lt_tool_outputfile=$lt_tool_outputfile.exe 10473 ;; 10474 esac~ 10475 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10477 $RM "$lt_outputfile.manifest"; 10478 fi' 10479 ;; 10480 *) 10481 # Assume MSVC wrapper 10482 hardcode_libdir_flag_spec=' ' 10483 allow_undefined_flag=unsupported 10484 # Tell ltmain to make .lib files, not .a files. 10485 libext=lib 10486 # Tell ltmain to make .dll files, not .so files. 10487 shrext_cmds=.dll 10488 # FIXME: Setting linknames here is a bad hack. 10489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10490 # The linker will automatically build a .lib file if we build a DLL. 10491 old_archive_from_new_cmds='true' 10492 # FIXME: Should let the user specify the lib program. 10493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10494 enable_shared_with_static_runtimes=yes 10495 ;; 10496 esac 10497 ;; 10498 10499 darwin* | rhapsody*) 10500 10501 10502 archive_cmds_need_lc=no 10503 hardcode_direct=no 10504 hardcode_automatic=yes 10505 hardcode_shlibpath_var=unsupported 10506 if test yes = "$lt_cv_ld_force_load"; then 10507 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\"`' 10508 10509 else 10510 whole_archive_flag_spec='' 10511 fi 10512 link_all_deplibs=yes 10513 allow_undefined_flag=$_lt_dar_allow_undefined 10514 case $cc_basename in 10515 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10516 *) _lt_dar_can_shared=$GCC ;; 10517 esac 10518 if test yes = "$_lt_dar_can_shared"; then 10519 output_verbose_link_cmd=func_echo_all 10520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10522 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" 10523 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" 10524 10525 else 10526 ld_shlibs=no 10527 fi 10528 10529 ;; 10530 10531 dgux*) 10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10533 hardcode_libdir_flag_spec='-L$libdir' 10534 hardcode_shlibpath_var=no 10535 ;; 10536 10537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10538 # support. Future versions do this automatically, but an explicit c++rt0.o 10539 # does not break anything, and helps significantly (at the cost of a little 10540 # extra space). 10541 freebsd2.2*) 10542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10543 hardcode_libdir_flag_spec='-R$libdir' 10544 hardcode_direct=yes 10545 hardcode_shlibpath_var=no 10546 ;; 10547 10548 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10549 freebsd2.*) 10550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10551 hardcode_direct=yes 10552 hardcode_minus_L=yes 10553 hardcode_shlibpath_var=no 10554 ;; 10555 10556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10557 freebsd* | dragonfly*) 10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10559 hardcode_libdir_flag_spec='-R$libdir' 10560 hardcode_direct=yes 10561 hardcode_shlibpath_var=no 10562 ;; 10563 10564 hpux9*) 10565 if test yes = "$GCC"; then 10566 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10567 else 10568 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10569 fi 10570 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10571 hardcode_libdir_separator=: 10572 hardcode_direct=yes 10573 10574 # hardcode_minus_L: Not really in the search PATH, 10575 # but as the default location of the library. 10576 hardcode_minus_L=yes 10577 export_dynamic_flag_spec='$wl-E' 10578 ;; 10579 10580 hpux10*) 10581 if test yes,no = "$GCC,$with_gnu_ld"; then 10582 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10583 else 10584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10585 fi 10586 if test no = "$with_gnu_ld"; then 10587 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10588 hardcode_libdir_separator=: 10589 hardcode_direct=yes 10590 hardcode_direct_absolute=yes 10591 export_dynamic_flag_spec='$wl-E' 10592 # hardcode_minus_L: Not really in the search PATH, 10593 # but as the default location of the library. 10594 hardcode_minus_L=yes 10595 fi 10596 ;; 10597 10598 hpux11*) 10599 if test yes,no = "$GCC,$with_gnu_ld"; then 10600 case $host_cpu in 10601 hppa*64*) 10602 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10603 ;; 10604 ia64*) 10605 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10606 ;; 10607 *) 10608 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10609 ;; 10610 esac 10611 else 10612 case $host_cpu in 10613 hppa*64*) 10614 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10615 ;; 10616 ia64*) 10617 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10618 ;; 10619 *) 10620 10621 # Older versions of the 11.00 compiler do not understand -b yet 10622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10624$as_echo_n "checking if $CC understands -b... " >&6; } 10625if ${lt_cv_prog_compiler__b+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 lt_cv_prog_compiler__b=no 10629 save_LDFLAGS=$LDFLAGS 10630 LDFLAGS="$LDFLAGS -b" 10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10633 # The linker can only warn and ignore the option if not recognized 10634 # So say no if there are warnings 10635 if test -s conftest.err; then 10636 # Append any errors to the config.log. 10637 cat conftest.err 1>&5 10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10640 if diff conftest.exp conftest.er2 >/dev/null; then 10641 lt_cv_prog_compiler__b=yes 10642 fi 10643 else 10644 lt_cv_prog_compiler__b=yes 10645 fi 10646 fi 10647 $RM -r conftest* 10648 LDFLAGS=$save_LDFLAGS 10649 10650fi 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10652$as_echo "$lt_cv_prog_compiler__b" >&6; } 10653 10654if test yes = "$lt_cv_prog_compiler__b"; then 10655 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10656else 10657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10658fi 10659 10660 ;; 10661 esac 10662 fi 10663 if test no = "$with_gnu_ld"; then 10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10665 hardcode_libdir_separator=: 10666 10667 case $host_cpu in 10668 hppa*64*|ia64*) 10669 hardcode_direct=no 10670 hardcode_shlibpath_var=no 10671 ;; 10672 *) 10673 hardcode_direct=yes 10674 hardcode_direct_absolute=yes 10675 export_dynamic_flag_spec='$wl-E' 10676 10677 # hardcode_minus_L: Not really in the search PATH, 10678 # but as the default location of the library. 10679 hardcode_minus_L=yes 10680 ;; 10681 esac 10682 fi 10683 ;; 10684 10685 irix5* | irix6* | nonstopux*) 10686 if test yes = "$GCC"; then 10687 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' 10688 # Try to use the -exported_symbol ld option, if it does not 10689 # work, assume that -exports_file does not work either and 10690 # implicitly export all symbols. 10691 # This should be the same for all languages, so no per-tag cache variable. 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10693$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10694if ${lt_cv_irix_exported_symbol+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 save_LDFLAGS=$LDFLAGS 10698 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10700/* end confdefs.h. */ 10701int foo (void) { return 0; } 10702_ACEOF 10703if ac_fn_c_try_link "$LINENO"; then : 10704 lt_cv_irix_exported_symbol=yes 10705else 10706 lt_cv_irix_exported_symbol=no 10707fi 10708rm -f core conftest.err conftest.$ac_objext \ 10709 conftest$ac_exeext conftest.$ac_ext 10710 LDFLAGS=$save_LDFLAGS 10711fi 10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10713$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10714 if test yes = "$lt_cv_irix_exported_symbol"; then 10715 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' 10716 fi 10717 link_all_deplibs=no 10718 else 10719 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' 10720 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' 10721 fi 10722 archive_cmds_need_lc='no' 10723 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10724 hardcode_libdir_separator=: 10725 inherit_rpath=yes 10726 link_all_deplibs=yes 10727 ;; 10728 10729 linux*) 10730 case $cc_basename in 10731 tcc*) 10732 # Fabrice Bellard et al's Tiny C Compiler 10733 ld_shlibs=yes 10734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10735 ;; 10736 esac 10737 ;; 10738 10739 netbsd* | netbsdelf*-gnu) 10740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10742 else 10743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10744 fi 10745 hardcode_libdir_flag_spec='-R$libdir' 10746 hardcode_direct=yes 10747 hardcode_shlibpath_var=no 10748 ;; 10749 10750 newsos6) 10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10752 hardcode_direct=yes 10753 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10754 hardcode_libdir_separator=: 10755 hardcode_shlibpath_var=no 10756 ;; 10757 10758 *nto* | *qnx*) 10759 ;; 10760 10761 openbsd* | bitrig*) 10762 if test -f /usr/libexec/ld.so; then 10763 hardcode_direct=yes 10764 hardcode_shlibpath_var=no 10765 hardcode_direct_absolute=yes 10766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10769 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10770 export_dynamic_flag_spec='$wl-E' 10771 else 10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10773 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10774 fi 10775 else 10776 ld_shlibs=no 10777 fi 10778 ;; 10779 10780 os2*) 10781 hardcode_libdir_flag_spec='-L$libdir' 10782 hardcode_minus_L=yes 10783 allow_undefined_flag=unsupported 10784 shrext_cmds=.dll 10785 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10788 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10789 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10790 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10791 emximp -o $lib $output_objdir/$libname.def' 10792 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10793 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10794 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10795 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10796 prefix_cmds="$SED"~ 10797 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10798 prefix_cmds="$prefix_cmds -e 1d"; 10799 fi~ 10800 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10801 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10802 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10803 emximp -o $lib $output_objdir/$libname.def' 10804 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10805 enable_shared_with_static_runtimes=yes 10806 ;; 10807 10808 osf3*) 10809 if test yes = "$GCC"; then 10810 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10811 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' 10812 else 10813 allow_undefined_flag=' -expect_unresolved \*' 10814 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' 10815 fi 10816 archive_cmds_need_lc='no' 10817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10818 hardcode_libdir_separator=: 10819 ;; 10820 10821 osf4* | osf5*) # as osf3* with the addition of -msym flag 10822 if test yes = "$GCC"; then 10823 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10824 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' 10825 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10826 else 10827 allow_undefined_flag=' -expect_unresolved \*' 10828 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' 10829 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~ 10830 $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' 10831 10832 # Both c and cxx compiler support -rpath directly 10833 hardcode_libdir_flag_spec='-rpath $libdir' 10834 fi 10835 archive_cmds_need_lc='no' 10836 hardcode_libdir_separator=: 10837 ;; 10838 10839 solaris*) 10840 no_undefined_flag=' -z defs' 10841 if test yes = "$GCC"; then 10842 wlarc='$wl' 10843 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10845 $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' 10846 else 10847 case `$CC -V 2>&1` in 10848 *"Compilers 5.0"*) 10849 wlarc='' 10850 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10852 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10853 ;; 10854 *) 10855 wlarc='$wl' 10856 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10858 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10859 ;; 10860 esac 10861 fi 10862 hardcode_libdir_flag_spec='-R$libdir' 10863 hardcode_shlibpath_var=no 10864 case $host_os in 10865 solaris2.[0-5] | solaris2.[0-5].*) ;; 10866 *) 10867 # The compiler driver will combine and reorder linker options, 10868 # but understands '-z linker_flag'. GCC discards it without '$wl', 10869 # but is careful enough not to reorder. 10870 # Supported since Solaris 2.6 (maybe 2.5.1?) 10871 if test yes = "$GCC"; then 10872 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10873 else 10874 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10875 fi 10876 ;; 10877 esac 10878 link_all_deplibs=yes 10879 ;; 10880 10881 sunos4*) 10882 if test sequent = "$host_vendor"; then 10883 # Use $CC to link under sequent, because it throws in some extra .o 10884 # files that make .init and .fini sections work. 10885 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10886 else 10887 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10888 fi 10889 hardcode_libdir_flag_spec='-L$libdir' 10890 hardcode_direct=yes 10891 hardcode_minus_L=yes 10892 hardcode_shlibpath_var=no 10893 ;; 10894 10895 sysv4) 10896 case $host_vendor in 10897 sni) 10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10899 hardcode_direct=yes # is this really true??? 10900 ;; 10901 siemens) 10902 ## LD is ld it makes a PLAMLIB 10903 ## CC just makes a GrossModule. 10904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10905 reload_cmds='$CC -r -o $output$reload_objs' 10906 hardcode_direct=no 10907 ;; 10908 motorola) 10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10910 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10911 ;; 10912 esac 10913 runpath_var='LD_RUN_PATH' 10914 hardcode_shlibpath_var=no 10915 ;; 10916 10917 sysv4.3*) 10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10919 hardcode_shlibpath_var=no 10920 export_dynamic_flag_spec='-Bexport' 10921 ;; 10922 10923 sysv4*MP*) 10924 if test -d /usr/nec; then 10925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10926 hardcode_shlibpath_var=no 10927 runpath_var=LD_RUN_PATH 10928 hardcode_runpath_var=yes 10929 ld_shlibs=yes 10930 fi 10931 ;; 10932 10933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10934 no_undefined_flag='$wl-z,text' 10935 archive_cmds_need_lc=no 10936 hardcode_shlibpath_var=no 10937 runpath_var='LD_RUN_PATH' 10938 10939 if test yes = "$GCC"; then 10940 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10941 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10942 else 10943 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10944 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10945 fi 10946 ;; 10947 10948 sysv5* | sco3.2v5* | sco5v6*) 10949 # Note: We CANNOT use -z defs as we might desire, because we do not 10950 # link with -lc, and that would cause any symbols used from libc to 10951 # always be unresolved, which means just about no library would 10952 # ever link correctly. If we're not using GNU ld we use -z text 10953 # though, which does catch some bad symbols but isn't as heavy-handed 10954 # as -z defs. 10955 no_undefined_flag='$wl-z,text' 10956 allow_undefined_flag='$wl-z,nodefs' 10957 archive_cmds_need_lc=no 10958 hardcode_shlibpath_var=no 10959 hardcode_libdir_flag_spec='$wl-R,$libdir' 10960 hardcode_libdir_separator=':' 10961 link_all_deplibs=yes 10962 export_dynamic_flag_spec='$wl-Bexport' 10963 runpath_var='LD_RUN_PATH' 10964 10965 if test yes = "$GCC"; then 10966 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10967 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10968 else 10969 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10970 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10971 fi 10972 ;; 10973 10974 uts4*) 10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10976 hardcode_libdir_flag_spec='-L$libdir' 10977 hardcode_shlibpath_var=no 10978 ;; 10979 10980 *) 10981 ld_shlibs=no 10982 ;; 10983 esac 10984 10985 if test sni = "$host_vendor"; then 10986 case $host in 10987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10988 export_dynamic_flag_spec='$wl-Blargedynsym' 10989 ;; 10990 esac 10991 fi 10992 fi 10993 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10995$as_echo "$ld_shlibs" >&6; } 10996test no = "$ld_shlibs" && can_build_shared=no 10997 10998with_gnu_ld=$with_gnu_ld 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014# 11015# Do we need to explicitly link libc? 11016# 11017case "x$archive_cmds_need_lc" in 11018x|xyes) 11019 # Assume -lc should be added 11020 archive_cmds_need_lc=yes 11021 11022 if test yes,yes = "$GCC,$enable_shared"; then 11023 case $archive_cmds in 11024 *'~'*) 11025 # FIXME: we may have to deal with multi-command sequences. 11026 ;; 11027 '$CC '*) 11028 # Test whether the compiler implicitly links with -lc since on some 11029 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11030 # to ld, don't add -lc before -lgcc. 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11032$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11033if ${lt_cv_archive_cmds_need_lc+:} false; then : 11034 $as_echo_n "(cached) " >&6 11035else 11036 $RM conftest* 11037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11038 11039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11040 (eval $ac_compile) 2>&5 11041 ac_status=$? 11042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11043 test $ac_status = 0; } 2>conftest.err; then 11044 soname=conftest 11045 lib=conftest 11046 libobjs=conftest.$ac_objext 11047 deplibs= 11048 wl=$lt_prog_compiler_wl 11049 pic_flag=$lt_prog_compiler_pic 11050 compiler_flags=-v 11051 linker_flags=-v 11052 verstring= 11053 output_objdir=. 11054 libname=conftest 11055 lt_save_allow_undefined_flag=$allow_undefined_flag 11056 allow_undefined_flag= 11057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11058 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11059 ac_status=$? 11060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11061 test $ac_status = 0; } 11062 then 11063 lt_cv_archive_cmds_need_lc=no 11064 else 11065 lt_cv_archive_cmds_need_lc=yes 11066 fi 11067 allow_undefined_flag=$lt_save_allow_undefined_flag 11068 else 11069 cat conftest.err 1>&5 11070 fi 11071 $RM conftest* 11072 11073fi 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11075$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11076 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11077 ;; 11078 esac 11079 fi 11080 ;; 11081esac 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11235$as_echo_n "checking dynamic linker characteristics... " >&6; } 11236 11237if test yes = "$GCC"; then 11238 case $host_os in 11239 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11240 *) lt_awk_arg='/^libraries:/' ;; 11241 esac 11242 case $host_os in 11243 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11244 *) lt_sed_strip_eq='s|=/|/|g' ;; 11245 esac 11246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11247 case $lt_search_path_spec in 11248 *\;*) 11249 # if the path contains ";" then we assume it to be the separator 11250 # otherwise default to the standard path separator (i.e. ":") - it is 11251 # assumed that no part of a normal pathname contains ";" but that should 11252 # okay in the real world where ";" in dirpaths is itself problematic. 11253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11254 ;; 11255 *) 11256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11257 ;; 11258 esac 11259 # Ok, now we have the path, separated by spaces, we can step through it 11260 # and add multilib dir if necessary... 11261 lt_tmp_lt_search_path_spec= 11262 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11263 # ...but if some path component already ends with the multilib dir we assume 11264 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11265 case "$lt_multi_os_dir; $lt_search_path_spec " in 11266 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11267 lt_multi_os_dir= 11268 ;; 11269 esac 11270 for lt_sys_path in $lt_search_path_spec; do 11271 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11273 elif test -n "$lt_multi_os_dir"; then 11274 test -d "$lt_sys_path" && \ 11275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11276 fi 11277 done 11278 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11279BEGIN {RS = " "; FS = "/|\n";} { 11280 lt_foo = ""; 11281 lt_count = 0; 11282 for (lt_i = NF; lt_i > 0; lt_i--) { 11283 if ($lt_i != "" && $lt_i != ".") { 11284 if ($lt_i == "..") { 11285 lt_count++; 11286 } else { 11287 if (lt_count == 0) { 11288 lt_foo = "/" $lt_i lt_foo; 11289 } else { 11290 lt_count--; 11291 } 11292 } 11293 } 11294 } 11295 if (lt_foo != "") { lt_freq[lt_foo]++; } 11296 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11297}'` 11298 # AWK program above erroneously prepends '/' to C:/dos/paths 11299 # for these hosts. 11300 case $host_os in 11301 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11302 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11303 esac 11304 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11305else 11306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11307fi 11308library_names_spec= 11309libname_spec='lib$name' 11310soname_spec= 11311shrext_cmds=.so 11312postinstall_cmds= 11313postuninstall_cmds= 11314finish_cmds= 11315finish_eval= 11316shlibpath_var= 11317shlibpath_overrides_runpath=unknown 11318version_type=none 11319dynamic_linker="$host_os ld.so" 11320sys_lib_dlsearch_path_spec="/lib /usr/lib" 11321need_lib_prefix=unknown 11322hardcode_into_libs=no 11323 11324# when you set need_version to no, make sure it does not cause -set_version 11325# flags to be left without arguments 11326need_version=unknown 11327 11328 11329 11330case $host_os in 11331aix3*) 11332 version_type=linux # correct to gnu/linux during the next big refactor 11333 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11334 shlibpath_var=LIBPATH 11335 11336 # AIX 3 has no versioning support, so we append a major version to the name. 11337 soname_spec='$libname$release$shared_ext$major' 11338 ;; 11339 11340aix[4-9]*) 11341 version_type=linux # correct to gnu/linux during the next big refactor 11342 need_lib_prefix=no 11343 need_version=no 11344 hardcode_into_libs=yes 11345 if test ia64 = "$host_cpu"; then 11346 # AIX 5 supports IA64 11347 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11348 shlibpath_var=LD_LIBRARY_PATH 11349 else 11350 # With GCC up to 2.95.x, collect2 would create an import file 11351 # for dependence libraries. The import file would start with 11352 # the line '#! .'. This would cause the generated library to 11353 # depend on '.', always an invalid library. This was fixed in 11354 # development snapshots of GCC prior to 3.0. 11355 case $host_os in 11356 aix4 | aix4.[01] | aix4.[01].*) 11357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11358 echo ' yes ' 11359 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11360 : 11361 else 11362 can_build_shared=no 11363 fi 11364 ;; 11365 esac 11366 # Using Import Files as archive members, it is possible to support 11367 # filename-based versioning of shared library archives on AIX. While 11368 # this would work for both with and without runtime linking, it will 11369 # prevent static linking of such archives. So we do filename-based 11370 # shared library versioning with .so extension only, which is used 11371 # when both runtime linking and shared linking is enabled. 11372 # Unfortunately, runtime linking may impact performance, so we do 11373 # not want this to be the default eventually. Also, we use the 11374 # versioned .so libs for executables only if there is the -brtl 11375 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11376 # To allow for filename-based versioning support, we need to create 11377 # libNAME.so.V as an archive file, containing: 11378 # *) an Import File, referring to the versioned filename of the 11379 # archive as well as the shared archive member, telling the 11380 # bitwidth (32 or 64) of that shared object, and providing the 11381 # list of exported symbols of that shared object, eventually 11382 # decorated with the 'weak' keyword 11383 # *) the shared object with the F_LOADONLY flag set, to really avoid 11384 # it being seen by the linker. 11385 # At run time we better use the real file rather than another symlink, 11386 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11387 11388 case $with_aix_soname,$aix_use_runtimelinking in 11389 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11390 # soname into executable. Probably we can add versioning support to 11391 # collect2, so additional links can be useful in future. 11392 aix,yes) # traditional libtool 11393 dynamic_linker='AIX unversionable lib.so' 11394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11395 # instead of lib<name>.a to let people know that these are not 11396 # typical AIX shared libraries. 11397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11398 ;; 11399 aix,no) # traditional AIX only 11400 dynamic_linker='AIX lib.a(lib.so.V)' 11401 # We preserve .a as extension for shared libraries through AIX4.2 11402 # and later when we are not doing run time linking. 11403 library_names_spec='$libname$release.a $libname.a' 11404 soname_spec='$libname$release$shared_ext$major' 11405 ;; 11406 svr4,*) # full svr4 only 11407 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11408 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11409 # We do not specify a path in Import Files, so LIBPATH fires. 11410 shlibpath_overrides_runpath=yes 11411 ;; 11412 *,yes) # both, prefer svr4 11413 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11414 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11415 # unpreferred sharedlib libNAME.a needs extra handling 11416 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11417 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11418 # We do not specify a path in Import Files, so LIBPATH fires. 11419 shlibpath_overrides_runpath=yes 11420 ;; 11421 *,no) # both, prefer aix 11422 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11423 library_names_spec='$libname$release.a $libname.a' 11424 soname_spec='$libname$release$shared_ext$major' 11425 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11426 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11427 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11428 ;; 11429 esac 11430 shlibpath_var=LIBPATH 11431 fi 11432 ;; 11433 11434amigaos*) 11435 case $host_cpu in 11436 powerpc) 11437 # Since July 2007 AmigaOS4 officially supports .so libraries. 11438 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11440 ;; 11441 m68k) 11442 library_names_spec='$libname.ixlibrary $libname.a' 11443 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11444 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11445 ;; 11446 esac 11447 ;; 11448 11449beos*) 11450 library_names_spec='$libname$shared_ext' 11451 dynamic_linker="$host_os ld.so" 11452 shlibpath_var=LIBRARY_PATH 11453 ;; 11454 11455bsdi[45]*) 11456 version_type=linux # correct to gnu/linux during the next big refactor 11457 need_version=no 11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11459 soname_spec='$libname$release$shared_ext$major' 11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11461 shlibpath_var=LD_LIBRARY_PATH 11462 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11463 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11464 # the default ld.so.conf also contains /usr/contrib/lib and 11465 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11466 # libtool to hard-code these into programs 11467 ;; 11468 11469cygwin* | mingw* | pw32* | cegcc*) 11470 version_type=windows 11471 shrext_cmds=.dll 11472 need_version=no 11473 need_lib_prefix=no 11474 11475 case $GCC,$cc_basename in 11476 yes,*) 11477 # gcc 11478 library_names_spec='$libname.dll.a' 11479 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11480 postinstall_cmds='base_file=`basename \$file`~ 11481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11482 dldir=$destdir/`dirname \$dlpath`~ 11483 test -d \$dldir || mkdir -p \$dldir~ 11484 $install_prog $dir/$dlname \$dldir/$dlname~ 11485 chmod a+x \$dldir/$dlname~ 11486 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11487 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11488 fi' 11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11490 dlpath=$dir/\$dldll~ 11491 $RM \$dlpath' 11492 shlibpath_overrides_runpath=yes 11493 11494 case $host_os in 11495 cygwin*) 11496 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11497 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11498 11499 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11500 ;; 11501 mingw* | cegcc*) 11502 # MinGW DLLs use traditional 'lib' prefix 11503 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11504 ;; 11505 pw32*) 11506 # pw32 DLLs use 'pw' prefix rather than 'lib' 11507 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11508 ;; 11509 esac 11510 dynamic_linker='Win32 ld.exe' 11511 ;; 11512 11513 *,cl*) 11514 # Native MSVC 11515 libname_spec='$name' 11516 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11517 library_names_spec='$libname.dll.lib' 11518 11519 case $build_os in 11520 mingw*) 11521 sys_lib_search_path_spec= 11522 lt_save_ifs=$IFS 11523 IFS=';' 11524 for lt_path in $LIB 11525 do 11526 IFS=$lt_save_ifs 11527 # Let DOS variable expansion print the short 8.3 style file name. 11528 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11529 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11530 done 11531 IFS=$lt_save_ifs 11532 # Convert to MSYS style. 11533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11534 ;; 11535 cygwin*) 11536 # Convert to unix form, then to dos form, then back to unix form 11537 # but this time dos style (no spaces!) so that the unix form looks 11538 # like /cygdrive/c/PROGRA~1:/cygdr... 11539 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11540 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11541 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11542 ;; 11543 *) 11544 sys_lib_search_path_spec=$LIB 11545 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11546 # It is most probably a Windows format PATH. 11547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11548 else 11549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11550 fi 11551 # FIXME: find the short name or the path components, as spaces are 11552 # common. (e.g. "Program Files" -> "PROGRA~1") 11553 ;; 11554 esac 11555 11556 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11557 postinstall_cmds='base_file=`basename \$file`~ 11558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11559 dldir=$destdir/`dirname \$dlpath`~ 11560 test -d \$dldir || mkdir -p \$dldir~ 11561 $install_prog $dir/$dlname \$dldir/$dlname' 11562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11563 dlpath=$dir/\$dldll~ 11564 $RM \$dlpath' 11565 shlibpath_overrides_runpath=yes 11566 dynamic_linker='Win32 link.exe' 11567 ;; 11568 11569 *) 11570 # Assume MSVC wrapper 11571 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11572 dynamic_linker='Win32 ld.exe' 11573 ;; 11574 esac 11575 # FIXME: first we should search . and the directory the executable is in 11576 shlibpath_var=PATH 11577 ;; 11578 11579darwin* | rhapsody*) 11580 dynamic_linker="$host_os dyld" 11581 version_type=darwin 11582 need_lib_prefix=no 11583 need_version=no 11584 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11585 soname_spec='$libname$release$major$shared_ext' 11586 shlibpath_overrides_runpath=yes 11587 shlibpath_var=DYLD_LIBRARY_PATH 11588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11589 11590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11592 ;; 11593 11594dgux*) 11595 version_type=linux # correct to gnu/linux during the next big refactor 11596 need_lib_prefix=no 11597 need_version=no 11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11599 soname_spec='$libname$release$shared_ext$major' 11600 shlibpath_var=LD_LIBRARY_PATH 11601 ;; 11602 11603freebsd* | dragonfly*) 11604 # DragonFly does not have aout. When/if they implement a new 11605 # versioning mechanism, adjust this. 11606 if test -x /usr/bin/objformat; then 11607 objformat=`/usr/bin/objformat` 11608 else 11609 case $host_os in 11610 freebsd[23].*) objformat=aout ;; 11611 *) objformat=elf ;; 11612 esac 11613 fi 11614 version_type=freebsd-$objformat 11615 case $version_type in 11616 freebsd-elf*) 11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11618 soname_spec='$libname$release$shared_ext$major' 11619 need_version=no 11620 need_lib_prefix=no 11621 ;; 11622 freebsd-*) 11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11624 need_version=yes 11625 ;; 11626 esac 11627 shlibpath_var=LD_LIBRARY_PATH 11628 case $host_os in 11629 freebsd2.*) 11630 shlibpath_overrides_runpath=yes 11631 ;; 11632 freebsd3.[01]* | freebsdelf3.[01]*) 11633 shlibpath_overrides_runpath=yes 11634 hardcode_into_libs=yes 11635 ;; 11636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11638 shlibpath_overrides_runpath=no 11639 hardcode_into_libs=yes 11640 ;; 11641 *) # from 4.6 on, and DragonFly 11642 shlibpath_overrides_runpath=yes 11643 hardcode_into_libs=yes 11644 ;; 11645 esac 11646 ;; 11647 11648haiku*) 11649 version_type=linux # correct to gnu/linux during the next big refactor 11650 need_lib_prefix=no 11651 need_version=no 11652 dynamic_linker="$host_os runtime_loader" 11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11654 soname_spec='$libname$release$shared_ext$major' 11655 shlibpath_var=LIBRARY_PATH 11656 shlibpath_overrides_runpath=no 11657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11658 hardcode_into_libs=yes 11659 ;; 11660 11661hpux9* | hpux10* | hpux11*) 11662 # Give a soname corresponding to the major version so that dld.sl refuses to 11663 # link against other versions. 11664 version_type=sunos 11665 need_lib_prefix=no 11666 need_version=no 11667 case $host_cpu in 11668 ia64*) 11669 shrext_cmds='.so' 11670 hardcode_into_libs=yes 11671 dynamic_linker="$host_os dld.so" 11672 shlibpath_var=LD_LIBRARY_PATH 11673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11675 soname_spec='$libname$release$shared_ext$major' 11676 if test 32 = "$HPUX_IA64_MODE"; then 11677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11678 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11679 else 11680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11681 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11682 fi 11683 ;; 11684 hppa*64*) 11685 shrext_cmds='.sl' 11686 hardcode_into_libs=yes 11687 dynamic_linker="$host_os dld.sl" 11688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11691 soname_spec='$libname$release$shared_ext$major' 11692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11694 ;; 11695 *) 11696 shrext_cmds='.sl' 11697 dynamic_linker="$host_os dld.sl" 11698 shlibpath_var=SHLIB_PATH 11699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11701 soname_spec='$libname$release$shared_ext$major' 11702 ;; 11703 esac 11704 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11705 postinstall_cmds='chmod 555 $lib' 11706 # or fails outright, so override atomically: 11707 install_override_mode=555 11708 ;; 11709 11710interix[3-9]*) 11711 version_type=linux # correct to gnu/linux during the next big refactor 11712 need_lib_prefix=no 11713 need_version=no 11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11715 soname_spec='$libname$release$shared_ext$major' 11716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11717 shlibpath_var=LD_LIBRARY_PATH 11718 shlibpath_overrides_runpath=no 11719 hardcode_into_libs=yes 11720 ;; 11721 11722irix5* | irix6* | nonstopux*) 11723 case $host_os in 11724 nonstopux*) version_type=nonstopux ;; 11725 *) 11726 if test yes = "$lt_cv_prog_gnu_ld"; then 11727 version_type=linux # correct to gnu/linux during the next big refactor 11728 else 11729 version_type=irix 11730 fi ;; 11731 esac 11732 need_lib_prefix=no 11733 need_version=no 11734 soname_spec='$libname$release$shared_ext$major' 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11736 case $host_os in 11737 irix5* | nonstopux*) 11738 libsuff= shlibsuff= 11739 ;; 11740 *) 11741 case $LD in # libtool.m4 will add one of these switches to LD 11742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11743 libsuff= shlibsuff= libmagic=32-bit;; 11744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11745 libsuff=32 shlibsuff=N32 libmagic=N32;; 11746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11747 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11748 *) libsuff= shlibsuff= libmagic=never-match;; 11749 esac 11750 ;; 11751 esac 11752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11753 shlibpath_overrides_runpath=no 11754 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11755 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11756 hardcode_into_libs=yes 11757 ;; 11758 11759# No shared lib support for Linux oldld, aout, or coff. 11760linux*oldld* | linux*aout* | linux*coff*) 11761 dynamic_linker=no 11762 ;; 11763 11764linux*android*) 11765 version_type=none # Android doesn't support versioned libraries. 11766 need_lib_prefix=no 11767 need_version=no 11768 library_names_spec='$libname$release$shared_ext' 11769 soname_spec='$libname$release$shared_ext' 11770 finish_cmds= 11771 shlibpath_var=LD_LIBRARY_PATH 11772 shlibpath_overrides_runpath=yes 11773 11774 # This implies no fast_install, which is unacceptable. 11775 # Some rework will be needed to allow for fast_install 11776 # before this can be enabled. 11777 hardcode_into_libs=yes 11778 11779 dynamic_linker='Android linker' 11780 # Don't embed -rpath directories since the linker doesn't support them. 11781 hardcode_libdir_flag_spec='-L$libdir' 11782 ;; 11783 11784# This must be glibc/ELF. 11785linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11786 version_type=linux # correct to gnu/linux during the next big refactor 11787 need_lib_prefix=no 11788 need_version=no 11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11790 soname_spec='$libname$release$shared_ext$major' 11791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11792 shlibpath_var=LD_LIBRARY_PATH 11793 shlibpath_overrides_runpath=no 11794 11795 # Some binutils ld are patched to set DT_RUNPATH 11796 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 lt_cv_shlibpath_overrides_runpath=no 11800 save_LDFLAGS=$LDFLAGS 11801 save_libdir=$libdir 11802 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11803 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11805/* end confdefs.h. */ 11806 11807int 11808main () 11809{ 11810 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815if ac_fn_c_try_link "$LINENO"; then : 11816 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11817 lt_cv_shlibpath_overrides_runpath=yes 11818fi 11819fi 11820rm -f core conftest.err conftest.$ac_objext \ 11821 conftest$ac_exeext conftest.$ac_ext 11822 LDFLAGS=$save_LDFLAGS 11823 libdir=$save_libdir 11824 11825fi 11826 11827 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11828 11829 # This implies no fast_install, which is unacceptable. 11830 # Some rework will be needed to allow for fast_install 11831 # before this can be enabled. 11832 hardcode_into_libs=yes 11833 11834 # Ideally, we could use ldconfig to report *all* directores which are 11835 # searched for libraries, however this is still not possible. Aside from not 11836 # being certain /sbin/ldconfig is available, command 11837 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11838 # even though it is searched at run-time. Try to do the best guess by 11839 # appending ld.so.conf contents (and includes) to the search path. 11840 if test -f /etc/ld.so.conf; then 11841 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' ' '` 11842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11843 fi 11844 11845 # We used to test for /lib/ld.so.1 and disable shared libraries on 11846 # powerpc, because MkLinux only supported shared libraries with the 11847 # GNU dynamic linker. Since this was broken with cross compilers, 11848 # most powerpc-linux boxes support dynamic linking these days and 11849 # people can always --disable-shared, the test was removed, and we 11850 # assume the GNU/Linux dynamic linker is in use. 11851 dynamic_linker='GNU/Linux ld.so' 11852 ;; 11853 11854netbsdelf*-gnu) 11855 version_type=linux 11856 need_lib_prefix=no 11857 need_version=no 11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11859 soname_spec='${libname}${release}${shared_ext}$major' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=no 11862 hardcode_into_libs=yes 11863 dynamic_linker='NetBSD ld.elf_so' 11864 ;; 11865 11866netbsd*) 11867 version_type=sunos 11868 need_lib_prefix=no 11869 need_version=no 11870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11873 dynamic_linker='NetBSD (a.out) ld.so' 11874 else 11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11876 soname_spec='$libname$release$shared_ext$major' 11877 dynamic_linker='NetBSD ld.elf_so' 11878 fi 11879 shlibpath_var=LD_LIBRARY_PATH 11880 shlibpath_overrides_runpath=yes 11881 hardcode_into_libs=yes 11882 ;; 11883 11884newsos6) 11885 version_type=linux # correct to gnu/linux during the next big refactor 11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=yes 11889 ;; 11890 11891*nto* | *qnx*) 11892 version_type=qnx 11893 need_lib_prefix=no 11894 need_version=no 11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11896 soname_spec='$libname$release$shared_ext$major' 11897 shlibpath_var=LD_LIBRARY_PATH 11898 shlibpath_overrides_runpath=no 11899 hardcode_into_libs=yes 11900 dynamic_linker='ldqnx.so' 11901 ;; 11902 11903openbsd* | bitrig*) 11904 version_type=sunos 11905 sys_lib_dlsearch_path_spec=/usr/lib 11906 need_lib_prefix=no 11907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11908 need_version=no 11909 else 11910 need_version=yes 11911 fi 11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 shlibpath_overrides_runpath=yes 11916 ;; 11917 11918os2*) 11919 libname_spec='$name' 11920 version_type=windows 11921 shrext_cmds=.dll 11922 need_version=no 11923 need_lib_prefix=no 11924 # OS/2 can only load a DLL with a base name of 8 characters or less. 11925 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11926 v=$($ECHO $release$versuffix | tr -d .-); 11927 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11928 $ECHO $n$v`$shared_ext' 11929 library_names_spec='${libname}_dll.$libext' 11930 dynamic_linker='OS/2 ld.exe' 11931 shlibpath_var=BEGINLIBPATH 11932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11934 postinstall_cmds='base_file=`basename \$file`~ 11935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11936 dldir=$destdir/`dirname \$dlpath`~ 11937 test -d \$dldir || mkdir -p \$dldir~ 11938 $install_prog $dir/$dlname \$dldir/$dlname~ 11939 chmod a+x \$dldir/$dlname~ 11940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11942 fi' 11943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11944 dlpath=$dir/\$dldll~ 11945 $RM \$dlpath' 11946 ;; 11947 11948osf3* | osf4* | osf5*) 11949 version_type=osf 11950 need_lib_prefix=no 11951 need_version=no 11952 soname_spec='$libname$release$shared_ext$major' 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11954 shlibpath_var=LD_LIBRARY_PATH 11955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11957 ;; 11958 11959rdos*) 11960 dynamic_linker=no 11961 ;; 11962 11963solaris*) 11964 version_type=linux # correct to gnu/linux during the next big refactor 11965 need_lib_prefix=no 11966 need_version=no 11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11968 soname_spec='$libname$release$shared_ext$major' 11969 shlibpath_var=LD_LIBRARY_PATH 11970 shlibpath_overrides_runpath=yes 11971 hardcode_into_libs=yes 11972 # ldd complains unless libraries are executable 11973 postinstall_cmds='chmod +x $lib' 11974 ;; 11975 11976sunos4*) 11977 version_type=sunos 11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11980 shlibpath_var=LD_LIBRARY_PATH 11981 shlibpath_overrides_runpath=yes 11982 if test yes = "$with_gnu_ld"; then 11983 need_lib_prefix=no 11984 fi 11985 need_version=yes 11986 ;; 11987 11988sysv4 | sysv4.3*) 11989 version_type=linux # correct to gnu/linux during the next big refactor 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 shlibpath_var=LD_LIBRARY_PATH 11993 case $host_vendor in 11994 sni) 11995 shlibpath_overrides_runpath=no 11996 need_lib_prefix=no 11997 runpath_var=LD_RUN_PATH 11998 ;; 11999 siemens) 12000 need_lib_prefix=no 12001 ;; 12002 motorola) 12003 need_lib_prefix=no 12004 need_version=no 12005 shlibpath_overrides_runpath=no 12006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12007 ;; 12008 esac 12009 ;; 12010 12011sysv4*MP*) 12012 if test -d /usr/nec; then 12013 version_type=linux # correct to gnu/linux during the next big refactor 12014 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12015 soname_spec='$libname$shared_ext.$major' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 fi 12018 ;; 12019 12020sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12021 version_type=sco 12022 need_lib_prefix=no 12023 need_version=no 12024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12025 soname_spec='$libname$release$shared_ext$major' 12026 shlibpath_var=LD_LIBRARY_PATH 12027 shlibpath_overrides_runpath=yes 12028 hardcode_into_libs=yes 12029 if test yes = "$with_gnu_ld"; then 12030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12031 else 12032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12033 case $host_os in 12034 sco3.2v5*) 12035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12036 ;; 12037 esac 12038 fi 12039 sys_lib_dlsearch_path_spec='/usr/lib' 12040 ;; 12041 12042tpf*) 12043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12044 version_type=linux # correct to gnu/linux during the next big refactor 12045 need_lib_prefix=no 12046 need_version=no 12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12048 shlibpath_var=LD_LIBRARY_PATH 12049 shlibpath_overrides_runpath=no 12050 hardcode_into_libs=yes 12051 ;; 12052 12053uts4*) 12054 version_type=linux # correct to gnu/linux during the next big refactor 12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12056 soname_spec='$libname$release$shared_ext$major' 12057 shlibpath_var=LD_LIBRARY_PATH 12058 ;; 12059 12060*) 12061 dynamic_linker=no 12062 ;; 12063esac 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12065$as_echo "$dynamic_linker" >&6; } 12066test no = "$dynamic_linker" && can_build_shared=no 12067 12068variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12069if test yes = "$GCC"; then 12070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12071fi 12072 12073if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12074 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12075fi 12076 12077if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12078 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12079fi 12080 12081# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12082configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12083 12084# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12085func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12086 12087# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12088configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12187$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12188hardcode_action= 12189if test -n "$hardcode_libdir_flag_spec" || 12190 test -n "$runpath_var" || 12191 test yes = "$hardcode_automatic"; then 12192 12193 # We can hardcode non-existent directories. 12194 if test no != "$hardcode_direct" && 12195 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12196 # have to relink, otherwise we might link with an installed library 12197 # when we should be linking with a yet-to-be-installed one 12198 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12199 test no != "$hardcode_minus_L"; then 12200 # Linking always hardcodes the temporary library directory. 12201 hardcode_action=relink 12202 else 12203 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12204 hardcode_action=immediate 12205 fi 12206else 12207 # We cannot hardcode anything, or else we can only hardcode existing 12208 # directories. 12209 hardcode_action=unsupported 12210fi 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12212$as_echo "$hardcode_action" >&6; } 12213 12214if test relink = "$hardcode_action" || 12215 test yes = "$inherit_rpath"; then 12216 # Fast installation is not supported 12217 enable_fast_install=no 12218elif test yes = "$shlibpath_overrides_runpath" || 12219 test no = "$enable_shared"; then 12220 # Fast installation is not necessary 12221 enable_fast_install=needless 12222fi 12223 12224 12225 12226 12227 12228 12229 if test yes != "$enable_dlopen"; then 12230 enable_dlopen=unknown 12231 enable_dlopen_self=unknown 12232 enable_dlopen_self_static=unknown 12233else 12234 lt_cv_dlopen=no 12235 lt_cv_dlopen_libs= 12236 12237 case $host_os in 12238 beos*) 12239 lt_cv_dlopen=load_add_on 12240 lt_cv_dlopen_libs= 12241 lt_cv_dlopen_self=yes 12242 ;; 12243 12244 mingw* | pw32* | cegcc*) 12245 lt_cv_dlopen=LoadLibrary 12246 lt_cv_dlopen_libs= 12247 ;; 12248 12249 cygwin*) 12250 lt_cv_dlopen=dlopen 12251 lt_cv_dlopen_libs= 12252 ;; 12253 12254 darwin*) 12255 # if libdl is installed we need to link against it 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12257$as_echo_n "checking for dlopen in -ldl... " >&6; } 12258if ${ac_cv_lib_dl_dlopen+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 ac_check_lib_save_LIBS=$LIBS 12262LIBS="-ldl $LIBS" 12263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12264/* end confdefs.h. */ 12265 12266/* Override any GCC internal prototype to avoid an error. 12267 Use char because int might match the return type of a GCC 12268 builtin and then its argument prototype would still apply. */ 12269#ifdef __cplusplus 12270extern "C" 12271#endif 12272char dlopen (); 12273int 12274main () 12275{ 12276return dlopen (); 12277 ; 12278 return 0; 12279} 12280_ACEOF 12281if ac_fn_c_try_link "$LINENO"; then : 12282 ac_cv_lib_dl_dlopen=yes 12283else 12284 ac_cv_lib_dl_dlopen=no 12285fi 12286rm -f core conftest.err conftest.$ac_objext \ 12287 conftest$ac_exeext conftest.$ac_ext 12288LIBS=$ac_check_lib_save_LIBS 12289fi 12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12291$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12292if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12293 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12294else 12295 12296 lt_cv_dlopen=dyld 12297 lt_cv_dlopen_libs= 12298 lt_cv_dlopen_self=yes 12299 12300fi 12301 12302 ;; 12303 12304 tpf*) 12305 # Don't try to run any link tests for TPF. We know it's impossible 12306 # because TPF is a cross-compiler, and we know how we open DSOs. 12307 lt_cv_dlopen=dlopen 12308 lt_cv_dlopen_libs= 12309 lt_cv_dlopen_self=no 12310 ;; 12311 12312 *) 12313 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12314if test "x$ac_cv_func_shl_load" = xyes; then : 12315 lt_cv_dlopen=shl_load 12316else 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12318$as_echo_n "checking for shl_load in -ldld... " >&6; } 12319if ${ac_cv_lib_dld_shl_load+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 ac_check_lib_save_LIBS=$LIBS 12323LIBS="-ldld $LIBS" 12324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326 12327/* Override any GCC internal prototype to avoid an error. 12328 Use char because int might match the return type of a GCC 12329 builtin and then its argument prototype would still apply. */ 12330#ifdef __cplusplus 12331extern "C" 12332#endif 12333char shl_load (); 12334int 12335main () 12336{ 12337return shl_load (); 12338 ; 12339 return 0; 12340} 12341_ACEOF 12342if ac_fn_c_try_link "$LINENO"; then : 12343 ac_cv_lib_dld_shl_load=yes 12344else 12345 ac_cv_lib_dld_shl_load=no 12346fi 12347rm -f core conftest.err conftest.$ac_objext \ 12348 conftest$ac_exeext conftest.$ac_ext 12349LIBS=$ac_check_lib_save_LIBS 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12352$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12353if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12354 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12355else 12356 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12357if test "x$ac_cv_func_dlopen" = xyes; then : 12358 lt_cv_dlopen=dlopen 12359else 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12361$as_echo_n "checking for dlopen in -ldl... " >&6; } 12362if ${ac_cv_lib_dl_dlopen+:} false; then : 12363 $as_echo_n "(cached) " >&6 12364else 12365 ac_check_lib_save_LIBS=$LIBS 12366LIBS="-ldl $LIBS" 12367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12368/* end confdefs.h. */ 12369 12370/* Override any GCC internal prototype to avoid an error. 12371 Use char because int might match the return type of a GCC 12372 builtin and then its argument prototype would still apply. */ 12373#ifdef __cplusplus 12374extern "C" 12375#endif 12376char dlopen (); 12377int 12378main () 12379{ 12380return dlopen (); 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385if ac_fn_c_try_link "$LINENO"; then : 12386 ac_cv_lib_dl_dlopen=yes 12387else 12388 ac_cv_lib_dl_dlopen=no 12389fi 12390rm -f core conftest.err conftest.$ac_objext \ 12391 conftest$ac_exeext conftest.$ac_ext 12392LIBS=$ac_check_lib_save_LIBS 12393fi 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12395$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12396if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12397 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12400$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12401if ${ac_cv_lib_svld_dlopen+:} false; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 ac_check_lib_save_LIBS=$LIBS 12405LIBS="-lsvld $LIBS" 12406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12407/* end confdefs.h. */ 12408 12409/* Override any GCC internal prototype to avoid an error. 12410 Use char because int might match the return type of a GCC 12411 builtin and then its argument prototype would still apply. */ 12412#ifdef __cplusplus 12413extern "C" 12414#endif 12415char dlopen (); 12416int 12417main () 12418{ 12419return dlopen (); 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424if ac_fn_c_try_link "$LINENO"; then : 12425 ac_cv_lib_svld_dlopen=yes 12426else 12427 ac_cv_lib_svld_dlopen=no 12428fi 12429rm -f core conftest.err conftest.$ac_objext \ 12430 conftest$ac_exeext conftest.$ac_ext 12431LIBS=$ac_check_lib_save_LIBS 12432fi 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12434$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12435if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12436 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12437else 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12439$as_echo_n "checking for dld_link in -ldld... " >&6; } 12440if ${ac_cv_lib_dld_dld_link+:} false; then : 12441 $as_echo_n "(cached) " >&6 12442else 12443 ac_check_lib_save_LIBS=$LIBS 12444LIBS="-ldld $LIBS" 12445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12446/* end confdefs.h. */ 12447 12448/* Override any GCC internal prototype to avoid an error. 12449 Use char because int might match the return type of a GCC 12450 builtin and then its argument prototype would still apply. */ 12451#ifdef __cplusplus 12452extern "C" 12453#endif 12454char dld_link (); 12455int 12456main () 12457{ 12458return dld_link (); 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463if ac_fn_c_try_link "$LINENO"; then : 12464 ac_cv_lib_dld_dld_link=yes 12465else 12466 ac_cv_lib_dld_dld_link=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext \ 12469 conftest$ac_exeext conftest.$ac_ext 12470LIBS=$ac_check_lib_save_LIBS 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12473$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12474if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12475 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12476fi 12477 12478 12479fi 12480 12481 12482fi 12483 12484 12485fi 12486 12487 12488fi 12489 12490 12491fi 12492 12493 ;; 12494 esac 12495 12496 if test no = "$lt_cv_dlopen"; then 12497 enable_dlopen=no 12498 else 12499 enable_dlopen=yes 12500 fi 12501 12502 case $lt_cv_dlopen in 12503 dlopen) 12504 save_CPPFLAGS=$CPPFLAGS 12505 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12506 12507 save_LDFLAGS=$LDFLAGS 12508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12509 12510 save_LIBS=$LIBS 12511 LIBS="$lt_cv_dlopen_libs $LIBS" 12512 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12514$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12515if ${lt_cv_dlopen_self+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 if test yes = "$cross_compiling"; then : 12519 lt_cv_dlopen_self=cross 12520else 12521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12522 lt_status=$lt_dlunknown 12523 cat > conftest.$ac_ext <<_LT_EOF 12524#line $LINENO "configure" 12525#include "confdefs.h" 12526 12527#if HAVE_DLFCN_H 12528#include <dlfcn.h> 12529#endif 12530 12531#include <stdio.h> 12532 12533#ifdef RTLD_GLOBAL 12534# define LT_DLGLOBAL RTLD_GLOBAL 12535#else 12536# ifdef DL_GLOBAL 12537# define LT_DLGLOBAL DL_GLOBAL 12538# else 12539# define LT_DLGLOBAL 0 12540# endif 12541#endif 12542 12543/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12544 find out it does not work in some platform. */ 12545#ifndef LT_DLLAZY_OR_NOW 12546# ifdef RTLD_LAZY 12547# define LT_DLLAZY_OR_NOW RTLD_LAZY 12548# else 12549# ifdef DL_LAZY 12550# define LT_DLLAZY_OR_NOW DL_LAZY 12551# else 12552# ifdef RTLD_NOW 12553# define LT_DLLAZY_OR_NOW RTLD_NOW 12554# else 12555# ifdef DL_NOW 12556# define LT_DLLAZY_OR_NOW DL_NOW 12557# else 12558# define LT_DLLAZY_OR_NOW 0 12559# endif 12560# endif 12561# endif 12562# endif 12563#endif 12564 12565/* When -fvisibility=hidden is used, assume the code has been annotated 12566 correspondingly for the symbols needed. */ 12567#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12568int fnord () __attribute__((visibility("default"))); 12569#endif 12570 12571int fnord () { return 42; } 12572int main () 12573{ 12574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12575 int status = $lt_dlunknown; 12576 12577 if (self) 12578 { 12579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12580 else 12581 { 12582 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12583 else puts (dlerror ()); 12584 } 12585 /* dlclose (self); */ 12586 } 12587 else 12588 puts (dlerror ()); 12589 12590 return status; 12591} 12592_LT_EOF 12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12594 (eval $ac_link) 2>&5 12595 ac_status=$? 12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12597 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12598 (./conftest; exit; ) >&5 2>/dev/null 12599 lt_status=$? 12600 case x$lt_status in 12601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12603 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12604 esac 12605 else : 12606 # compilation failed 12607 lt_cv_dlopen_self=no 12608 fi 12609fi 12610rm -fr conftest* 12611 12612 12613fi 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12615$as_echo "$lt_cv_dlopen_self" >&6; } 12616 12617 if test yes = "$lt_cv_dlopen_self"; then 12618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12620$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12621if ${lt_cv_dlopen_self_static+:} false; then : 12622 $as_echo_n "(cached) " >&6 12623else 12624 if test yes = "$cross_compiling"; then : 12625 lt_cv_dlopen_self_static=cross 12626else 12627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12628 lt_status=$lt_dlunknown 12629 cat > conftest.$ac_ext <<_LT_EOF 12630#line $LINENO "configure" 12631#include "confdefs.h" 12632 12633#if HAVE_DLFCN_H 12634#include <dlfcn.h> 12635#endif 12636 12637#include <stdio.h> 12638 12639#ifdef RTLD_GLOBAL 12640# define LT_DLGLOBAL RTLD_GLOBAL 12641#else 12642# ifdef DL_GLOBAL 12643# define LT_DLGLOBAL DL_GLOBAL 12644# else 12645# define LT_DLGLOBAL 0 12646# endif 12647#endif 12648 12649/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12650 find out it does not work in some platform. */ 12651#ifndef LT_DLLAZY_OR_NOW 12652# ifdef RTLD_LAZY 12653# define LT_DLLAZY_OR_NOW RTLD_LAZY 12654# else 12655# ifdef DL_LAZY 12656# define LT_DLLAZY_OR_NOW DL_LAZY 12657# else 12658# ifdef RTLD_NOW 12659# define LT_DLLAZY_OR_NOW RTLD_NOW 12660# else 12661# ifdef DL_NOW 12662# define LT_DLLAZY_OR_NOW DL_NOW 12663# else 12664# define LT_DLLAZY_OR_NOW 0 12665# endif 12666# endif 12667# endif 12668# endif 12669#endif 12670 12671/* When -fvisibility=hidden is used, assume the code has been annotated 12672 correspondingly for the symbols needed. */ 12673#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12674int fnord () __attribute__((visibility("default"))); 12675#endif 12676 12677int fnord () { return 42; } 12678int main () 12679{ 12680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12681 int status = $lt_dlunknown; 12682 12683 if (self) 12684 { 12685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12686 else 12687 { 12688 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12689 else puts (dlerror ()); 12690 } 12691 /* dlclose (self); */ 12692 } 12693 else 12694 puts (dlerror ()); 12695 12696 return status; 12697} 12698_LT_EOF 12699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12700 (eval $ac_link) 2>&5 12701 ac_status=$? 12702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12703 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12704 (./conftest; exit; ) >&5 2>/dev/null 12705 lt_status=$? 12706 case x$lt_status in 12707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12709 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12710 esac 12711 else : 12712 # compilation failed 12713 lt_cv_dlopen_self_static=no 12714 fi 12715fi 12716rm -fr conftest* 12717 12718 12719fi 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12721$as_echo "$lt_cv_dlopen_self_static" >&6; } 12722 fi 12723 12724 CPPFLAGS=$save_CPPFLAGS 12725 LDFLAGS=$save_LDFLAGS 12726 LIBS=$save_LIBS 12727 ;; 12728 esac 12729 12730 case $lt_cv_dlopen_self in 12731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12732 *) enable_dlopen_self=unknown ;; 12733 esac 12734 12735 case $lt_cv_dlopen_self_static in 12736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12737 *) enable_dlopen_self_static=unknown ;; 12738 esac 12739fi 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757striplib= 12758old_striplib= 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12760$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12761if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12763 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12765$as_echo "yes" >&6; } 12766else 12767# FIXME - insert some real tests, host_os isn't really good enough 12768 case $host_os in 12769 darwin*) 12770 if test -n "$STRIP"; then 12771 striplib="$STRIP -x" 12772 old_striplib="$STRIP -S" 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12774$as_echo "yes" >&6; } 12775 else 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12777$as_echo "no" >&6; } 12778 fi 12779 ;; 12780 *) 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12782$as_echo "no" >&6; } 12783 ;; 12784 esac 12785fi 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 # Report what library types will actually be built 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12800$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12802$as_echo "$can_build_shared" >&6; } 12803 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12805$as_echo_n "checking whether to build shared libraries... " >&6; } 12806 test no = "$can_build_shared" && enable_shared=no 12807 12808 # On AIX, shared libraries and static libraries use the same namespace, and 12809 # are all built from PIC. 12810 case $host_os in 12811 aix3*) 12812 test yes = "$enable_shared" && enable_static=no 12813 if test -n "$RANLIB"; then 12814 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12815 postinstall_cmds='$RANLIB $lib' 12816 fi 12817 ;; 12818 12819 aix[4-9]*) 12820 if test ia64 != "$host_cpu"; then 12821 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12822 yes,aix,yes) ;; # shared object as lib.so file only 12823 yes,svr4,*) ;; # shared object as lib.so archive member only 12824 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12825 esac 12826 fi 12827 ;; 12828 esac 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12830$as_echo "$enable_shared" >&6; } 12831 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12833$as_echo_n "checking whether to build static libraries... " >&6; } 12834 # Make sure either enable_shared or enable_static is yes. 12835 test yes = "$enable_shared" || enable_static=yes 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12837$as_echo "$enable_static" >&6; } 12838 12839 12840 12841 12842fi 12843ac_ext=c 12844ac_cpp='$CPP $CPPFLAGS' 12845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12847ac_compiler_gnu=$ac_cv_c_compiler_gnu 12848 12849CC=$lt_save_CC 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 ac_config_commands="$ac_config_commands libtool" 12866 12867 12868 12869 12870# Only expand once: 12871 12872 12873 12874 12875GST_REQ=1.16.2 12876GST_PBREQ=1.16.2 12877 12878ORC_REQ=0.4.16 12879 12880 12881if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12882 if test -n "$ac_tool_prefix"; then 12883 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12884set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12886$as_echo_n "checking for $ac_word... " >&6; } 12887if ${ac_cv_path_PKG_CONFIG+:} false; then : 12888 $as_echo_n "(cached) " >&6 12889else 12890 case $PKG_CONFIG in 12891 [\\/]* | ?:[\\/]*) 12892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12893 ;; 12894 *) 12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12896for as_dir in $PATH 12897do 12898 IFS=$as_save_IFS 12899 test -z "$as_dir" && as_dir=. 12900 for ac_exec_ext in '' $ac_executable_extensions; do 12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12904 break 2 12905 fi 12906done 12907 done 12908IFS=$as_save_IFS 12909 12910 ;; 12911esac 12912fi 12913PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12914if test -n "$PKG_CONFIG"; then 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12916$as_echo "$PKG_CONFIG" >&6; } 12917else 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919$as_echo "no" >&6; } 12920fi 12921 12922 12923fi 12924if test -z "$ac_cv_path_PKG_CONFIG"; then 12925 ac_pt_PKG_CONFIG=$PKG_CONFIG 12926 # Extract the first word of "pkg-config", so it can be a program name with args. 12927set dummy pkg-config; ac_word=$2 12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12929$as_echo_n "checking for $ac_word... " >&6; } 12930if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 case $ac_pt_PKG_CONFIG in 12934 [\\/]* | ?:[\\/]*) 12935 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12936 ;; 12937 *) 12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12939for as_dir in $PATH 12940do 12941 IFS=$as_save_IFS 12942 test -z "$as_dir" && as_dir=. 12943 for ac_exec_ext in '' $ac_executable_extensions; do 12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12945 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12947 break 2 12948 fi 12949done 12950 done 12951IFS=$as_save_IFS 12952 12953 ;; 12954esac 12955fi 12956ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12957if test -n "$ac_pt_PKG_CONFIG"; then 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12959$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12960else 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12962$as_echo "no" >&6; } 12963fi 12964 12965 if test "x$ac_pt_PKG_CONFIG" = x; then 12966 PKG_CONFIG="" 12967 else 12968 case $cross_compiling:$ac_tool_warned in 12969yes:) 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12972ac_tool_warned=yes ;; 12973esac 12974 PKG_CONFIG=$ac_pt_PKG_CONFIG 12975 fi 12976else 12977 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12978fi 12979 12980fi 12981if test -n "$PKG_CONFIG"; then 12982 _pkg_min_version=0.9.0 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12984$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12985 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12987$as_echo "yes" >&6; } 12988 else 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12990$as_echo "no" >&6; } 12991 PKG_CONFIG="" 12992 fi 12993 12994fi 12995 12996 ORC_REQ=$ORC_REQ 12997 12998 # Check whether --enable-orc was given. 12999if test "${enable_orc+set}" = set; then : 13000 enableval=$enable_orc; case "${enableval}" in 13001 auto) enable_orc=auto ;; 13002 yes) enable_orc=yes ;; 13003 no) enable_orc=no ;; 13004 *) as_fn_error $? "bad value ${enableval} for --enable-orc" "$LINENO" 5 ;; 13005 esac 13006 13007else 13008 enable_orc=auto 13009fi 13010 13011 if test "x$enable_orc" != "xno" ; then 13012 13013pkg_failed=no 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORC" >&5 13015$as_echo_n "checking for ORC... " >&6; } 13016 13017if test -n "$PKG_CONFIG"; then 13018 if test -n "$ORC_CFLAGS"; then 13019 pkg_cv_ORC_CFLAGS="$ORC_CFLAGS" 13020 else 13021 if test -n "$PKG_CONFIG" && \ 13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5 13023 ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5 13024 ac_status=$? 13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13026 test $ac_status = 0; }; then 13027 pkg_cv_ORC_CFLAGS=`$PKG_CONFIG --cflags "orc-0.4 >= $ORC_REQ" 2>/dev/null` 13028else 13029 pkg_failed=yes 13030fi 13031 fi 13032else 13033 pkg_failed=untried 13034fi 13035if test -n "$PKG_CONFIG"; then 13036 if test -n "$ORC_LIBS"; then 13037 pkg_cv_ORC_LIBS="$ORC_LIBS" 13038 else 13039 if test -n "$PKG_CONFIG" && \ 13040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5 13041 ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5 13042 ac_status=$? 13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13044 test $ac_status = 0; }; then 13045 pkg_cv_ORC_LIBS=`$PKG_CONFIG --libs "orc-0.4 >= $ORC_REQ" 2>/dev/null` 13046else 13047 pkg_failed=yes 13048fi 13049 fi 13050else 13051 pkg_failed=untried 13052fi 13053 13054 13055 13056if test $pkg_failed = yes; then 13057 13058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13059 _pkg_short_errors_supported=yes 13060else 13061 _pkg_short_errors_supported=no 13062fi 13063 if test $_pkg_short_errors_supported = yes; then 13064 ORC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"` 13065 else 13066 ORC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"` 13067 fi 13068 # Put the nasty error message in config.log where it belongs 13069 echo "$ORC_PKG_ERRORS" >&5 13070 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13072$as_echo "no" >&6; } 13073 13074 if test "x$enable_orc" = "xyes" ; then 13075 as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5 13076 fi 13077 13078$as_echo "#define DISABLE_ORC 1" >>confdefs.h 13079 13080 HAVE_ORC=no 13081 HAVE_ORCC=no 13082 13083elif test $pkg_failed = untried; then 13084 13085 if test "x$enable_orc" = "xyes" ; then 13086 as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5 13087 fi 13088 13089$as_echo "#define DISABLE_ORC 1" >>confdefs.h 13090 13091 HAVE_ORC=no 13092 HAVE_ORCC=no 13093 13094else 13095 ORC_CFLAGS=$pkg_cv_ORC_CFLAGS 13096 ORC_LIBS=$pkg_cv_ORC_LIBS 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13098$as_echo "yes" >&6; } 13099 13100 13101$as_echo "#define HAVE_ORC 1" >>confdefs.h 13102 13103 HAVE_ORC=yes 13104 if test "x$ORCC" = "x" ; then 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable orcc" >&5 13106$as_echo_n "checking for usable orcc... " >&6; } 13107 ORCC=`$PKG_CONFIG --variable=orcc orc-0.4` 13108 if $ORCC --version 1> /dev/null 2> /dev/null; then : 13109 13110else 13111 ORCC=`which orcc` 13112fi 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORCC" >&5 13114$as_echo "$ORCC" >&6; } 13115 fi 13116 13117 ORCC_FLAGS="--compat $ORC_REQ" 13118 13119 if test "x$ORCC" = "x"; then : 13120 HAVE_ORCC=no 13121else 13122 HAVE_ORCC=yes 13123fi 13124 13125fi 13126 else 13127 13128$as_echo "#define DISABLE_ORC 1" >>confdefs.h 13129 13130 HAVE_ORC=no 13131 HAVE_ORCC=no 13132 fi 13133 if test "x$HAVE_ORC" = "xyes"; then 13134 HAVE_ORC_TRUE= 13135 HAVE_ORC_FALSE='#' 13136else 13137 HAVE_ORC_TRUE='#' 13138 HAVE_ORC_FALSE= 13139fi 13140 13141 if test "x$HAVE_ORCC" = "xyes"; then 13142 HAVE_ORCC_TRUE= 13143 HAVE_ORCC_FALSE='#' 13144else 13145 HAVE_ORCC_TRUE='#' 13146 HAVE_ORCC_FALSE= 13147fi 13148 13149 13150 13151 13152 13153 13154 13155# Check whether --with-autoconf was given. 13156if test "${with_autoconf+set}" = set; then : 13157 withval=$with_autoconf; 13158 unset AUTOCONF 13159 13160AUTOCONF=${AUTOCONF-"${am_missing_run}${withval}"} 13161 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOCONF as autoconf" >&5 13163$as_echo "$as_me: Using $AUTOCONF as autoconf" >&6;} 13164 13165fi 13166 13167 13168 13169# Check whether --with-autoheader was given. 13170if test "${with_autoheader+set}" = set; then : 13171 withval=$with_autoheader; 13172 unset AUTOHEADER 13173 13174AUTOHEADER=${AUTOHEADER-"${am_missing_run}${withval}"} 13175 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOHEADER as autoheader" >&5 13177$as_echo "$as_me: Using $AUTOHEADER as autoheader" >&6;} 13178 13179fi 13180 13181 13182 13183# Check whether --with-automake was given. 13184if test "${with_automake+set}" = set; then : 13185 withval=$with_automake; 13186 unset AUTOMAKE 13187 13188AUTOMAKE=${AUTOMAKE-"${am_missing_run}${withval}"} 13189 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOMAKE as automake" >&5 13191$as_echo "$as_me: Using $AUTOMAKE as automake" >&6;} 13192 13193fi 13194 13195 13196 13197# Check whether --with-aclocal was given. 13198if test "${with_aclocal+set}" = set; then : 13199 withval=$with_aclocal; 13200 unset ACLOCAL 13201 13202ACLOCAL=${ACLOCAL-"${am_missing_run}${withval}"} 13203 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $ACLOCAL as aclocal" >&5 13205$as_echo "$as_me: Using $ACLOCAL as aclocal" >&6;} 13206 13207fi 13208 13209 13210 13211ACLOCAL_AMFLAGS="-I m4 -I common/m4" 13212 13213 13214 13215 13216 # Check whether --enable-fatal-warnings was given. 13217if test "${enable_fatal_warnings+set}" = set; then : 13218 enableval=$enable_fatal_warnings; 13219 case "${enableval}" in 13220 yes) FATAL_WARNINGS=yes ;; 13221 no) FATAL_WARNINGS=no ;; 13222 *) as_fn_error $? "bad value ${enableval} for --disable-fatal-warnings" "$LINENO" 5 ;; 13223 esac 13224 13225else 13226 13227 if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then 13228 FATAL_WARNINGS=yes 13229 else 13230 FATAL_WARNINGS=no 13231 fi 13232 13233fi 13234 13235 13236 13237 # Check whether --enable-extra-check was given. 13238if test "${enable_extra_check+set}" = set; then : 13239 enableval=$enable_extra_check; 13240 case "${enableval}" in 13241 yes) EXTRA_CHECKS=yes ;; 13242 no) EXTRA_CHECKS=no ;; 13243 *) as_fn_error $? "bad value ${enableval} for --enable-extra-checks" "$LINENO" 5 ;; 13244 esac 13245 13246else 13247 13248 if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then 13249 EXTRA_CHECKS=yes 13250 else 13251 EXTRA_CHECKS=no 13252 fi 13253 13254fi 13255 13256 13257 if test "x$EXTRA_CHECKS" = "xyes"; then 13258 13259$as_echo "#define GST_ENABLE_EXTRA_CHECKS 1" >>confdefs.h 13260 13261 fi 13262 13263 13264 13265 13266# Check whether --with-pkg-config-path was given. 13267if test "${with_pkg_config_path+set}" = set; then : 13268 withval=$with_pkg_config_path; 13269 export PKG_CONFIG_PATH=${withval} 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&5 13271$as_echo "$as_me: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&6;} 13272 13273fi 13274 13275 13276 13277 13278# Check whether --with-package-name was given. 13279if test "${with_package_name+set}" = set; then : 13280 withval=$with_package_name; 13281 case "${withval}" in 13282 yes) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;; 13283 no) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;; 13284 *) GST_PACKAGE_NAME="${withval}" ;; 13285 esac 13286 13287else 13288 13289 P= 13290 if test "x$P" = "x" 13291 then 13292 P=$PACKAGE_NAME 13293 fi 13294 13295 if test "x$PACKAGE_VERSION_NANO" = "x0" 13296 then 13297 GST_PACKAGE_NAME="$P source release" 13298 else 13299 if test "x$PACKAGE_VERSION_NANO" = "x1" 13300 then 13301 GST_PACKAGE_NAME="$P git" 13302 else 13303 GST_PACKAGE_NAME="$P prerelease" 13304 fi 13305 fi 13306 13307 13308fi 13309 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_NAME as package name" >&5 13311$as_echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;} 13312 13313cat >>confdefs.h <<_ACEOF 13314#define GST_PACKAGE_NAME "$GST_PACKAGE_NAME" 13315_ACEOF 13316 13317 13318 13319 13320 13321# Check whether --with-package-origin was given. 13322if test "${with_package_origin+set}" = set; then : 13323 withval=$with_package_origin; 13324 case "${withval}" in 13325 yes) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;; 13326 no) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;; 13327 *) GST_PACKAGE_ORIGIN="${withval}" ;; 13328 esac 13329 13330else 13331 GST_PACKAGE_ORIGIN="Unknown package origin" 13332fi 13333 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_ORIGIN as package origin" >&5 13335$as_echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;} 13336 13337cat >>confdefs.h <<_ACEOF 13338#define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN" 13339_ACEOF 13340 13341 13342 13343 13344 # Check whether --enable-valgrind was given. 13345if test "${enable_valgrind+set}" = set; then : 13346 enableval=$enable_valgrind; 13347 case "${enableval}" in 13348 yes) USE_VALGRIND="$USE_DEBUG" ;; 13349 no) USE_VALGRIND=no ;; 13350 *) as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;; 13351 esac 13352 13353else 13354 USE_VALGRIND="$USE_DEBUG" 13355fi 13356 VALGRIND_REQ="3.0" 13357 if test "x$USE_VALGRIND" = xyes; then 13358 13359pkg_failed=no 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 13361$as_echo_n "checking for VALGRIND... " >&6; } 13362 13363if test -n "$PKG_CONFIG"; then 13364 if test -n "$VALGRIND_CFLAGS"; then 13365 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 13366 else 13367 if test -n "$PKG_CONFIG" && \ 13368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5 13369 ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5 13370 ac_status=$? 13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13372 test $ac_status = 0; }; then 13373 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= $VALGRIND_REQ" 2>/dev/null` 13374else 13375 pkg_failed=yes 13376fi 13377 fi 13378else 13379 pkg_failed=untried 13380fi 13381if test -n "$PKG_CONFIG"; then 13382 if test -n "$VALGRIND_LIBS"; then 13383 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 13384 else 13385 if test -n "$PKG_CONFIG" && \ 13386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5 13387 ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5 13388 ac_status=$? 13389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13390 test $ac_status = 0; }; then 13391 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= $VALGRIND_REQ" 2>/dev/null` 13392else 13393 pkg_failed=yes 13394fi 13395 fi 13396else 13397 pkg_failed=untried 13398fi 13399 13400 13401 13402if test $pkg_failed = yes; then 13403 13404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13405 _pkg_short_errors_supported=yes 13406else 13407 _pkg_short_errors_supported=no 13408fi 13409 if test $_pkg_short_errors_supported = yes; then 13410 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"` 13411 else 13412 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"` 13413 fi 13414 # Put the nasty error message in config.log where it belongs 13415 echo "$VALGRIND_PKG_ERRORS" >&5 13416 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13418$as_echo "no" >&6; } 13419 USE_VALGRIND="no" 13420elif test $pkg_failed = untried; then 13421 USE_VALGRIND="no" 13422else 13423 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 13424 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13426$as_echo "yes" >&6; } 13427 USE_VALGRIND="yes" 13428fi 13429 fi 13430 if test "x$USE_VALGRIND" = xyes; then 13431 13432$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 13433 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: Using extra code paths for valgrind" >&5 13435$as_echo "$as_me: Using extra code paths for valgrind" >&6;} 13436 fi 13437 13438 13439 # Check whether --enable-gcov was given. 13440if test "${enable_gcov+set}" = set; then : 13441 enableval=$enable_gcov; enable_gcov=$enableval 13442else 13443 enable_gcov=no 13444fi 13445 13446 if test x$enable_gcov = xyes ; then 13447 if test "x$GCC" != "xyes" 13448 then 13449 as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5 13450 fi 13451 13452 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-fprofile-arcs\"" >&5 13454$as_echo_n "checking to see if compiler understands \"-fprofile-arcs\"... " >&6; } 13455 13456 save_CFLAGS="$CFLAGS" 13457 CFLAGS="$CFLAGS "-fprofile-arcs"" 13458 13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13460/* end confdefs.h. */ 13461 13462int 13463main () 13464{ 13465 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470if ac_fn_c_try_compile "$LINENO"; then : 13471 flag_ok=yes 13472else 13473 flag_ok=no 13474fi 13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13476 CFLAGS="$save_CFLAGS" 13477 13478 if test "X$flag_ok" = Xyes ; then 13479 GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs" 13480 true 13481 else 13482 true 13483 true 13484 fi 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 13486$as_echo "$flag_ok" >&6; } 13487 13488 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-ftest-coverage\"" >&5 13490$as_echo_n "checking to see if compiler understands \"-ftest-coverage\"... " >&6; } 13491 13492 save_CFLAGS="$CFLAGS" 13493 CFLAGS="$CFLAGS "-ftest-coverage"" 13494 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497 13498int 13499main () 13500{ 13501 13502 ; 13503 return 0; 13504} 13505_ACEOF 13506if ac_fn_c_try_compile "$LINENO"; then : 13507 flag_ok=yes 13508else 13509 flag_ok=no 13510fi 13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13512 CFLAGS="$save_CFLAGS" 13513 13514 if test "X$flag_ok" = Xyes ; then 13515 GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage" 13516 true 13517 else 13518 true 13519 true 13520 fi 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 13522$as_echo "$flag_ok" >&6; } 13523 13524 GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[0-9]*//g'` 13525 GCOV_LIBS=-lgcov 13526 13527 13528 GCOV=`echo $CC | sed s/gcc/gcov/g` 13529 13530 13531 GST_GCOV_ENABLED=yes 13532 13533cat >>confdefs.h <<_ACEOF 13534#define GST_GCOV_ENABLED 1 13535_ACEOF 13536 13537 if test "x$GST_GCOV_ENABLED" = "xyes" 13538 then 13539 CFLAGS="$CFLAGS -O0" 13540 13541 CXXFLAGS="$CXXFLAGS -O0" 13542 13543 FFLAGS="$FFLAGS -O0" 13544 13545 CCASFLAGS="$CCASFLAGS -O0" 13546 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&5 13548$as_echo "$as_me: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&6;} 13549 fi 13550 fi 13551 if test x$enable_gcov = xyes; then 13552 GST_GCOV_ENABLED_TRUE= 13553 GST_GCOV_ENABLED_FALSE='#' 13554else 13555 GST_GCOV_ENABLED_TRUE='#' 13556 GST_GCOV_ENABLED_FALSE= 13557fi 13558 13559 13560 13561 13562 13563 13564 case "x${target_cpu}" in 13565 xi?86 | xk? | xi?86_64) 13566 case $target_os in 13567 solaris*) 13568 ac_fn_c_check_decl "$LINENO" "__i386" "ac_cv_have_decl___i386" "$ac_includes_default" 13569if test "x$ac_cv_have_decl___i386" = xyes; then : 13570 I386_ABI="yes" 13571else 13572 I386_ABI="no" 13573fi 13574 13575 ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default" 13576if test "x$ac_cv_have_decl___amd64" = xyes; then : 13577 AMD64_ABI="yes" 13578else 13579 AMD64_ABI="no" 13580fi 13581 13582 13583 if test "x$I386_ABI" = "xyes" ; then 13584 HAVE_CPU_I386=yes 13585 13586$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h 13587 13588 fi 13589 if test "x$AMD64_ABI" = "xyes" ; then 13590 HAVE_CPU_X86_64=yes 13591 13592$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h 13593 13594 fi 13595 ;; 13596 *) 13597 HAVE_CPU_I386=yes 13598 13599$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h 13600 13601 13602 case "x${target_cpu}" in 13603 xi386 | xi486) ;; 13604 *) 13605 13606$as_echo "#define HAVE_RDTSC 1" >>confdefs.h 13607 ;; 13608 esac 13609 ;; 13610 esac 13611 ;; 13612 xpowerpc) 13613 HAVE_CPU_PPC=yes 13614 13615$as_echo "#define HAVE_CPU_PPC 1" >>confdefs.h 13616 ;; 13617 xpowerpc64) 13618 HAVE_CPU_PPC64=yes 13619 13620$as_echo "#define HAVE_CPU_PPC64 1" >>confdefs.h 13621 ;; 13622 xalpha*) 13623 HAVE_CPU_ALPHA=yes 13624 13625$as_echo "#define HAVE_CPU_ALPHA 1" >>confdefs.h 13626 ;; 13627 xarc*) 13628 HAVE_CPU_ARC=yes 13629 13630$as_echo "#define HAVE_CPU_ARC 1" >>confdefs.h 13631 ;; 13632 xarm*) 13633 HAVE_CPU_ARM=yes 13634 13635$as_echo "#define HAVE_CPU_ARM 1" >>confdefs.h 13636 ;; 13637 xaarch64*) 13638 HAVE_CPU_AARCH64=yes 13639 13640$as_echo "#define HAVE_CPU_AARCH64 1" >>confdefs.h 13641 ;; 13642 xsparc*) 13643 HAVE_CPU_SPARC=yes 13644 13645$as_echo "#define HAVE_CPU_SPARC 1" >>confdefs.h 13646 ;; 13647 xmips*) 13648 HAVE_CPU_MIPS=yes 13649 13650$as_echo "#define HAVE_CPU_MIPS 1" >>confdefs.h 13651 ;; 13652 xhppa*) 13653 HAVE_CPU_HPPA=yes 13654 13655$as_echo "#define HAVE_CPU_HPPA 1" >>confdefs.h 13656 ;; 13657 xs390*) 13658 HAVE_CPU_S390=yes 13659 13660$as_echo "#define HAVE_CPU_S390 1" >>confdefs.h 13661 ;; 13662 xia64*) 13663 HAVE_CPU_IA64=yes 13664 13665$as_echo "#define HAVE_CPU_IA64 1" >>confdefs.h 13666 ;; 13667 xm68k*) 13668 HAVE_CPU_M68K=yes 13669 13670$as_echo "#define HAVE_CPU_M68K 1" >>confdefs.h 13671 ;; 13672 xx86_64) 13673 HAVE_CPU_X86_64=yes 13674 13675$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h 13676 ;; 13677 xcris) 13678 HAVE_CPU_CRIS=yes 13679 13680$as_echo "#define HAVE_CPU_CRIS 1" >>confdefs.h 13681 ;; 13682 xcrisv32) 13683 HAVE_CPU_CRISV32=yes 13684 13685$as_echo "#define HAVE_CPU_CRISV32 1" >>confdefs.h 13686 ;; 13687 esac 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13690$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13691if ${ac_cv_c_bigendian+:} false; then : 13692 $as_echo_n "(cached) " >&6 13693else 13694 ac_cv_c_bigendian=unknown 13695 # See if we're dealing with a universal compiler. 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698#ifndef __APPLE_CC__ 13699 not a universal capable compiler 13700 #endif 13701 typedef int dummy; 13702 13703_ACEOF 13704if ac_fn_c_try_compile "$LINENO"; then : 13705 13706 # Check for potential -arch flags. It is not universal unless 13707 # there are at least two -arch flags with different values. 13708 ac_arch= 13709 ac_prev= 13710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13711 if test -n "$ac_prev"; then 13712 case $ac_word in 13713 i?86 | x86_64 | ppc | ppc64) 13714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13715 ac_arch=$ac_word 13716 else 13717 ac_cv_c_bigendian=universal 13718 break 13719 fi 13720 ;; 13721 esac 13722 ac_prev= 13723 elif test "x$ac_word" = "x-arch"; then 13724 ac_prev=arch 13725 fi 13726 done 13727fi 13728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13729 if test $ac_cv_c_bigendian = unknown; then 13730 # See if sys/param.h defines the BYTE_ORDER macro. 13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13732/* end confdefs.h. */ 13733#include <sys/types.h> 13734 #include <sys/param.h> 13735 13736int 13737main () 13738{ 13739#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13741 && LITTLE_ENDIAN) 13742 bogus endian macros 13743 #endif 13744 13745 ; 13746 return 0; 13747} 13748_ACEOF 13749if ac_fn_c_try_compile "$LINENO"; then : 13750 # It does; now see whether it defined to BIG_ENDIAN or not. 13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13752/* end confdefs.h. */ 13753#include <sys/types.h> 13754 #include <sys/param.h> 13755 13756int 13757main () 13758{ 13759#if BYTE_ORDER != BIG_ENDIAN 13760 not big endian 13761 #endif 13762 13763 ; 13764 return 0; 13765} 13766_ACEOF 13767if ac_fn_c_try_compile "$LINENO"; then : 13768 ac_cv_c_bigendian=yes 13769else 13770 ac_cv_c_bigendian=no 13771fi 13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13773fi 13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13775 fi 13776 if test $ac_cv_c_bigendian = unknown; then 13777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13779/* end confdefs.h. */ 13780#include <limits.h> 13781 13782int 13783main () 13784{ 13785#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13786 bogus endian macros 13787 #endif 13788 13789 ; 13790 return 0; 13791} 13792_ACEOF 13793if ac_fn_c_try_compile "$LINENO"; then : 13794 # It does; now see whether it defined to _BIG_ENDIAN or not. 13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13796/* end confdefs.h. */ 13797#include <limits.h> 13798 13799int 13800main () 13801{ 13802#ifndef _BIG_ENDIAN 13803 not big endian 13804 #endif 13805 13806 ; 13807 return 0; 13808} 13809_ACEOF 13810if ac_fn_c_try_compile "$LINENO"; then : 13811 ac_cv_c_bigendian=yes 13812else 13813 ac_cv_c_bigendian=no 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816fi 13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13818 fi 13819 if test $ac_cv_c_bigendian = unknown; then 13820 # Compile a test program. 13821 if test "$cross_compiling" = yes; then : 13822 # Try to guess by grepping values from an object file. 13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13824/* end confdefs.h. */ 13825short int ascii_mm[] = 13826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13827 short int ascii_ii[] = 13828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13829 int use_ascii (int i) { 13830 return ascii_mm[i] + ascii_ii[i]; 13831 } 13832 short int ebcdic_ii[] = 13833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13834 short int ebcdic_mm[] = 13835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13836 int use_ebcdic (int i) { 13837 return ebcdic_mm[i] + ebcdic_ii[i]; 13838 } 13839 extern int foo; 13840 13841int 13842main () 13843{ 13844return use_ascii (foo) == use_ebcdic (foo); 13845 ; 13846 return 0; 13847} 13848_ACEOF 13849if ac_fn_c_try_compile "$LINENO"; then : 13850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13851 ac_cv_c_bigendian=yes 13852 fi 13853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13854 if test "$ac_cv_c_bigendian" = unknown; then 13855 ac_cv_c_bigendian=no 13856 else 13857 # finding both strings is unlikely to happen, but who knows? 13858 ac_cv_c_bigendian=unknown 13859 fi 13860 fi 13861fi 13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13863else 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866$ac_includes_default 13867int 13868main () 13869{ 13870 13871 /* Are we little or big endian? From Harbison&Steele. */ 13872 union 13873 { 13874 long int l; 13875 char c[sizeof (long int)]; 13876 } u; 13877 u.l = 1; 13878 return u.c[sizeof (long int) - 1] == 1; 13879 13880 ; 13881 return 0; 13882} 13883_ACEOF 13884if ac_fn_c_try_run "$LINENO"; then : 13885 ac_cv_c_bigendian=no 13886else 13887 ac_cv_c_bigendian=yes 13888fi 13889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13890 conftest.$ac_objext conftest.beam conftest.$ac_ext 13891fi 13892 13893 fi 13894fi 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13896$as_echo "$ac_cv_c_bigendian" >&6; } 13897 case $ac_cv_c_bigendian in #( 13898 yes) 13899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13900;; #( 13901 no) 13902 ;; #( 13903 universal) 13904 13905$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13906 13907 ;; #( 13908 *) 13909 as_fn_error $? "unknown endianness 13910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13911 esac 13912 13913 13914 if test "x$HAVE_CPU_I386" = "xyes"; then 13915 HAVE_CPU_I386_TRUE= 13916 HAVE_CPU_I386_FALSE='#' 13917else 13918 HAVE_CPU_I386_TRUE='#' 13919 HAVE_CPU_I386_FALSE= 13920fi 13921 13922 if test "x$HAVE_CPU_PPC" = "xyes"; then 13923 HAVE_CPU_PPC_TRUE= 13924 HAVE_CPU_PPC_FALSE='#' 13925else 13926 HAVE_CPU_PPC_TRUE='#' 13927 HAVE_CPU_PPC_FALSE= 13928fi 13929 13930 if test "x$HAVE_CPU_PPC64" = "xyes"; then 13931 HAVE_CPU_PPC64_TRUE= 13932 HAVE_CPU_PPC64_FALSE='#' 13933else 13934 HAVE_CPU_PPC64_TRUE='#' 13935 HAVE_CPU_PPC64_FALSE= 13936fi 13937 13938 if test "x$HAVE_CPU_ALPHA" = "xyes"; then 13939 HAVE_CPU_ALPHA_TRUE= 13940 HAVE_CPU_ALPHA_FALSE='#' 13941else 13942 HAVE_CPU_ALPHA_TRUE='#' 13943 HAVE_CPU_ALPHA_FALSE= 13944fi 13945 13946 if test "x$HAVE_CPU_ARC" = "xyes"; then 13947 HAVE_CPU_ARC_TRUE= 13948 HAVE_CPU_ARC_FALSE='#' 13949else 13950 HAVE_CPU_ARC_TRUE='#' 13951 HAVE_CPU_ARC_FALSE= 13952fi 13953 13954 if test "x$HAVE_CPU_ARM" = "xyes"; then 13955 HAVE_CPU_ARM_TRUE= 13956 HAVE_CPU_ARM_FALSE='#' 13957else 13958 HAVE_CPU_ARM_TRUE='#' 13959 HAVE_CPU_ARM_FALSE= 13960fi 13961 13962 if test "x$HAVE_CPU_SPARC" = "xyes"; then 13963 HAVE_CPU_SPARC_TRUE= 13964 HAVE_CPU_SPARC_FALSE='#' 13965else 13966 HAVE_CPU_SPARC_TRUE='#' 13967 HAVE_CPU_SPARC_FALSE= 13968fi 13969 13970 if test "x$HAVE_CPU_HPPA" = "xyes"; then 13971 HAVE_CPU_HPPA_TRUE= 13972 HAVE_CPU_HPPA_FALSE='#' 13973else 13974 HAVE_CPU_HPPA_TRUE='#' 13975 HAVE_CPU_HPPA_FALSE= 13976fi 13977 13978 if test "x$HAVE_CPU_MIPS" = "xyes"; then 13979 HAVE_CPU_MIPS_TRUE= 13980 HAVE_CPU_MIPS_FALSE='#' 13981else 13982 HAVE_CPU_MIPS_TRUE='#' 13983 HAVE_CPU_MIPS_FALSE= 13984fi 13985 13986 if test "x$HAVE_CPU_S390" = "xyes"; then 13987 HAVE_CPU_S390_TRUE= 13988 HAVE_CPU_S390_FALSE='#' 13989else 13990 HAVE_CPU_S390_TRUE='#' 13991 HAVE_CPU_S390_FALSE= 13992fi 13993 13994 if test "x$HAVE_CPU_IA64" = "xyes"; then 13995 HAVE_CPU_IA64_TRUE= 13996 HAVE_CPU_IA64_FALSE='#' 13997else 13998 HAVE_CPU_IA64_TRUE='#' 13999 HAVE_CPU_IA64_FALSE= 14000fi 14001 14002 if test "x$HAVE_CPU_M68K" = "xyes"; then 14003 HAVE_CPU_M68K_TRUE= 14004 HAVE_CPU_M68K_FALSE='#' 14005else 14006 HAVE_CPU_M68K_TRUE='#' 14007 HAVE_CPU_M68K_FALSE= 14008fi 14009 14010 if test "x$HAVE_CPU_X86_64" = "xyes"; then 14011 HAVE_CPU_X86_64_TRUE= 14012 HAVE_CPU_X86_64_FALSE='#' 14013else 14014 HAVE_CPU_X86_64_TRUE='#' 14015 HAVE_CPU_X86_64_FALSE= 14016fi 14017 14018 if test "x$HAVE_CPU_CRIS" = "xyes"; then 14019 HAVE_CPU_CRIS_TRUE= 14020 HAVE_CPU_CRIS_FALSE='#' 14021else 14022 HAVE_CPU_CRIS_TRUE='#' 14023 HAVE_CPU_CRIS_FALSE= 14024fi 14025 14026 if test "x$HAVE_CPU_CRISV32" = "xyes"; then 14027 HAVE_CPU_CRISV32_TRUE= 14028 HAVE_CPU_CRISV32_FALSE='#' 14029else 14030 HAVE_CPU_CRISV32_TRUE='#' 14031 HAVE_CPU_CRISV32_FALSE= 14032fi 14033 14034 14035 14036cat >>confdefs.h <<_ACEOF 14037#define HOST_CPU "$host_cpu" 14038_ACEOF 14039 14040 14041cat >>confdefs.h <<_ACEOF 14042#define TARGET_CPU "$target_cpu" 14043_ACEOF 14044 14045 14046 14047 14048# Check whether --enable-largefile was given. 14049if test "${enable_largefile+set}" = set; then : 14050 enableval=$enable_largefile; 14051fi 14052 14053if test "$enable_largefile" != no; then 14054 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14056$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14057if ${ac_cv_sys_largefile_CC+:} false; then : 14058 $as_echo_n "(cached) " >&6 14059else 14060 ac_cv_sys_largefile_CC=no 14061 if test "$GCC" != yes; then 14062 ac_save_CC=$CC 14063 while :; do 14064 # IRIX 6.2 and later do not support large files by default, 14065 # so use the C compiler's -n32 option if that helps. 14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14067/* end confdefs.h. */ 14068#include <sys/types.h> 14069 /* Check that off_t can represent 2**63 - 1 correctly. 14070 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14071 since some C++ compilers masquerading as C compilers 14072 incorrectly reject 9223372036854775807. */ 14073#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 14074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14075 && LARGE_OFF_T % 2147483647 == 1) 14076 ? 1 : -1]; 14077int 14078main () 14079{ 14080 14081 ; 14082 return 0; 14083} 14084_ACEOF 14085 if ac_fn_c_try_compile "$LINENO"; then : 14086 break 14087fi 14088rm -f core conftest.err conftest.$ac_objext 14089 CC="$CC -n32" 14090 if ac_fn_c_try_compile "$LINENO"; then : 14091 ac_cv_sys_largefile_CC=' -n32'; break 14092fi 14093rm -f core conftest.err conftest.$ac_objext 14094 break 14095 done 14096 CC=$ac_save_CC 14097 rm -f conftest.$ac_ext 14098 fi 14099fi 14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14101$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14102 if test "$ac_cv_sys_largefile_CC" != no; then 14103 CC=$CC$ac_cv_sys_largefile_CC 14104 fi 14105 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14107$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14108if ${ac_cv_sys_file_offset_bits+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 while :; do 14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14113/* end confdefs.h. */ 14114#include <sys/types.h> 14115 /* Check that off_t can represent 2**63 - 1 correctly. 14116 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14117 since some C++ compilers masquerading as C compilers 14118 incorrectly reject 9223372036854775807. */ 14119#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 14120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14121 && LARGE_OFF_T % 2147483647 == 1) 14122 ? 1 : -1]; 14123int 14124main () 14125{ 14126 14127 ; 14128 return 0; 14129} 14130_ACEOF 14131if ac_fn_c_try_compile "$LINENO"; then : 14132 ac_cv_sys_file_offset_bits=no; break 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136/* end confdefs.h. */ 14137#define _FILE_OFFSET_BITS 64 14138#include <sys/types.h> 14139 /* Check that off_t can represent 2**63 - 1 correctly. 14140 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14141 since some C++ compilers masquerading as C compilers 14142 incorrectly reject 9223372036854775807. */ 14143#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 14144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14145 && LARGE_OFF_T % 2147483647 == 1) 14146 ? 1 : -1]; 14147int 14148main () 14149{ 14150 14151 ; 14152 return 0; 14153} 14154_ACEOF 14155if ac_fn_c_try_compile "$LINENO"; then : 14156 ac_cv_sys_file_offset_bits=64; break 14157fi 14158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14159 ac_cv_sys_file_offset_bits=unknown 14160 break 14161done 14162fi 14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14164$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14165case $ac_cv_sys_file_offset_bits in #( 14166 no | unknown) ;; 14167 *) 14168cat >>confdefs.h <<_ACEOF 14169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14170_ACEOF 14171;; 14172esac 14173rm -rf conftest* 14174 if test $ac_cv_sys_file_offset_bits = unknown; then 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14176$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14177if ${ac_cv_sys_large_files+:} false; then : 14178 $as_echo_n "(cached) " >&6 14179else 14180 while :; do 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183#include <sys/types.h> 14184 /* Check that off_t can represent 2**63 - 1 correctly. 14185 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14186 since some C++ compilers masquerading as C compilers 14187 incorrectly reject 9223372036854775807. */ 14188#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 14189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14190 && LARGE_OFF_T % 2147483647 == 1) 14191 ? 1 : -1]; 14192int 14193main () 14194{ 14195 14196 ; 14197 return 0; 14198} 14199_ACEOF 14200if ac_fn_c_try_compile "$LINENO"; then : 14201 ac_cv_sys_large_files=no; break 14202fi 14203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14205/* end confdefs.h. */ 14206#define _LARGE_FILES 1 14207#include <sys/types.h> 14208 /* Check that off_t can represent 2**63 - 1 correctly. 14209 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14210 since some C++ compilers masquerading as C compilers 14211 incorrectly reject 9223372036854775807. */ 14212#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 14213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14214 && LARGE_OFF_T % 2147483647 == 1) 14215 ? 1 : -1]; 14216int 14217main () 14218{ 14219 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224if ac_fn_c_try_compile "$LINENO"; then : 14225 ac_cv_sys_large_files=1; break 14226fi 14227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14228 ac_cv_sys_large_files=unknown 14229 break 14230done 14231fi 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14233$as_echo "$ac_cv_sys_large_files" >&6; } 14234case $ac_cv_sys_large_files in #( 14235 no | unknown) ;; 14236 *) 14237cat >>confdefs.h <<_ACEOF 14238#define _LARGE_FILES $ac_cv_sys_large_files 14239_ACEOF 14240;; 14241esac 14242rm -rf conftest* 14243 fi 14244 14245 14246fi 14247 14248 14249 14250ac_ext=c 14251ac_cpp='$CPP $CPPFLAGS' 14252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14254ac_compiler_gnu=$ac_cv_c_compiler_gnu 14255if test -n "$ac_tool_prefix"; then 14256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 14257set dummy ${ac_tool_prefix}gcc; ac_word=$2 14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14259$as_echo_n "checking for $ac_word... " >&6; } 14260if ${ac_cv_prog_CC+:} false; then : 14261 $as_echo_n "(cached) " >&6 14262else 14263 if test -n "$CC"; then 14264 ac_cv_prog_CC="$CC" # Let the user override the test. 14265else 14266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14267for as_dir in $PATH 14268do 14269 IFS=$as_save_IFS 14270 test -z "$as_dir" && as_dir=. 14271 for ac_exec_ext in '' $ac_executable_extensions; do 14272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14273 ac_cv_prog_CC="${ac_tool_prefix}gcc" 14274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14275 break 2 14276 fi 14277done 14278 done 14279IFS=$as_save_IFS 14280 14281fi 14282fi 14283CC=$ac_cv_prog_CC 14284if test -n "$CC"; then 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14286$as_echo "$CC" >&6; } 14287else 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14289$as_echo "no" >&6; } 14290fi 14291 14292 14293fi 14294if test -z "$ac_cv_prog_CC"; then 14295 ac_ct_CC=$CC 14296 # Extract the first word of "gcc", so it can be a program name with args. 14297set dummy gcc; ac_word=$2 14298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14299$as_echo_n "checking for $ac_word... " >&6; } 14300if ${ac_cv_prog_ac_ct_CC+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 if test -n "$ac_ct_CC"; then 14304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14305else 14306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14307for as_dir in $PATH 14308do 14309 IFS=$as_save_IFS 14310 test -z "$as_dir" && as_dir=. 14311 for ac_exec_ext in '' $ac_executable_extensions; do 14312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14313 ac_cv_prog_ac_ct_CC="gcc" 14314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14315 break 2 14316 fi 14317done 14318 done 14319IFS=$as_save_IFS 14320 14321fi 14322fi 14323ac_ct_CC=$ac_cv_prog_ac_ct_CC 14324if test -n "$ac_ct_CC"; then 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14326$as_echo "$ac_ct_CC" >&6; } 14327else 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14329$as_echo "no" >&6; } 14330fi 14331 14332 if test "x$ac_ct_CC" = x; then 14333 CC="" 14334 else 14335 case $cross_compiling:$ac_tool_warned in 14336yes:) 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14339ac_tool_warned=yes ;; 14340esac 14341 CC=$ac_ct_CC 14342 fi 14343else 14344 CC="$ac_cv_prog_CC" 14345fi 14346 14347if test -z "$CC"; then 14348 if test -n "$ac_tool_prefix"; then 14349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 14350set dummy ${ac_tool_prefix}cc; ac_word=$2 14351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14352$as_echo_n "checking for $ac_word... " >&6; } 14353if ${ac_cv_prog_CC+:} false; then : 14354 $as_echo_n "(cached) " >&6 14355else 14356 if test -n "$CC"; then 14357 ac_cv_prog_CC="$CC" # Let the user override the test. 14358else 14359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14360for as_dir in $PATH 14361do 14362 IFS=$as_save_IFS 14363 test -z "$as_dir" && as_dir=. 14364 for ac_exec_ext in '' $ac_executable_extensions; do 14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14366 ac_cv_prog_CC="${ac_tool_prefix}cc" 14367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14368 break 2 14369 fi 14370done 14371 done 14372IFS=$as_save_IFS 14373 14374fi 14375fi 14376CC=$ac_cv_prog_CC 14377if test -n "$CC"; then 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14379$as_echo "$CC" >&6; } 14380else 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14382$as_echo "no" >&6; } 14383fi 14384 14385 14386 fi 14387fi 14388if test -z "$CC"; then 14389 # Extract the first word of "cc", so it can be a program name with args. 14390set dummy cc; ac_word=$2 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14392$as_echo_n "checking for $ac_word... " >&6; } 14393if ${ac_cv_prog_CC+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 if test -n "$CC"; then 14397 ac_cv_prog_CC="$CC" # Let the user override the test. 14398else 14399 ac_prog_rejected=no 14400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14401for as_dir in $PATH 14402do 14403 IFS=$as_save_IFS 14404 test -z "$as_dir" && as_dir=. 14405 for ac_exec_ext in '' $ac_executable_extensions; do 14406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 14408 ac_prog_rejected=yes 14409 continue 14410 fi 14411 ac_cv_prog_CC="cc" 14412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14413 break 2 14414 fi 14415done 14416 done 14417IFS=$as_save_IFS 14418 14419if test $ac_prog_rejected = yes; then 14420 # We found a bogon in the path, so make sure we never use it. 14421 set dummy $ac_cv_prog_CC 14422 shift 14423 if test $# != 0; then 14424 # We chose a different compiler from the bogus one. 14425 # However, it has the same basename, so the bogon will be chosen 14426 # first if we set CC to just the basename; use the full file name. 14427 shift 14428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 14429 fi 14430fi 14431fi 14432fi 14433CC=$ac_cv_prog_CC 14434if test -n "$CC"; then 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14436$as_echo "$CC" >&6; } 14437else 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14439$as_echo "no" >&6; } 14440fi 14441 14442 14443fi 14444if test -z "$CC"; then 14445 if test -n "$ac_tool_prefix"; then 14446 for ac_prog in cl.exe 14447 do 14448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14449set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14451$as_echo_n "checking for $ac_word... " >&6; } 14452if ${ac_cv_prog_CC+:} false; then : 14453 $as_echo_n "(cached) " >&6 14454else 14455 if test -n "$CC"; then 14456 ac_cv_prog_CC="$CC" # Let the user override the test. 14457else 14458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14459for as_dir in $PATH 14460do 14461 IFS=$as_save_IFS 14462 test -z "$as_dir" && as_dir=. 14463 for ac_exec_ext in '' $ac_executable_extensions; do 14464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14467 break 2 14468 fi 14469done 14470 done 14471IFS=$as_save_IFS 14472 14473fi 14474fi 14475CC=$ac_cv_prog_CC 14476if test -n "$CC"; then 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14478$as_echo "$CC" >&6; } 14479else 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14481$as_echo "no" >&6; } 14482fi 14483 14484 14485 test -n "$CC" && break 14486 done 14487fi 14488if test -z "$CC"; then 14489 ac_ct_CC=$CC 14490 for ac_prog in cl.exe 14491do 14492 # Extract the first word of "$ac_prog", so it can be a program name with args. 14493set dummy $ac_prog; ac_word=$2 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14495$as_echo_n "checking for $ac_word... " >&6; } 14496if ${ac_cv_prog_ac_ct_CC+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 if test -n "$ac_ct_CC"; then 14500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14501else 14502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14503for as_dir in $PATH 14504do 14505 IFS=$as_save_IFS 14506 test -z "$as_dir" && as_dir=. 14507 for ac_exec_ext in '' $ac_executable_extensions; do 14508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14509 ac_cv_prog_ac_ct_CC="$ac_prog" 14510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14511 break 2 14512 fi 14513done 14514 done 14515IFS=$as_save_IFS 14516 14517fi 14518fi 14519ac_ct_CC=$ac_cv_prog_ac_ct_CC 14520if test -n "$ac_ct_CC"; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14522$as_echo "$ac_ct_CC" >&6; } 14523else 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14525$as_echo "no" >&6; } 14526fi 14527 14528 14529 test -n "$ac_ct_CC" && break 14530done 14531 14532 if test "x$ac_ct_CC" = x; then 14533 CC="" 14534 else 14535 case $cross_compiling:$ac_tool_warned in 14536yes:) 14537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14539ac_tool_warned=yes ;; 14540esac 14541 CC=$ac_ct_CC 14542 fi 14543fi 14544 14545fi 14546 14547 14548test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14550as_fn_error $? "no acceptable C compiler found in \$PATH 14551See \`config.log' for more details" "$LINENO" 5; } 14552 14553# Provide some information about the compiler. 14554$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 14555set X $ac_compile 14556ac_compiler=$2 14557for ac_option in --version -v -V -qversion; do 14558 { { ac_try="$ac_compiler $ac_option >&5" 14559case "(($ac_try" in 14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14561 *) ac_try_echo=$ac_try;; 14562esac 14563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14564$as_echo "$ac_try_echo"; } >&5 14565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 14566 ac_status=$? 14567 if test -s conftest.err; then 14568 sed '10a\ 14569... rest of stderr output deleted ... 14570 10q' conftest.err >conftest.er1 14571 cat conftest.er1 >&5 14572 fi 14573 rm -f conftest.er1 conftest.err 14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14575 test $ac_status = 0; } 14576done 14577 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 14579$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 14580if ${ac_cv_c_compiler_gnu+:} false; then : 14581 $as_echo_n "(cached) " >&6 14582else 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585 14586int 14587main () 14588{ 14589#ifndef __GNUC__ 14590 choke me 14591#endif 14592 14593 ; 14594 return 0; 14595} 14596_ACEOF 14597if ac_fn_c_try_compile "$LINENO"; then : 14598 ac_compiler_gnu=yes 14599else 14600 ac_compiler_gnu=no 14601fi 14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14603ac_cv_c_compiler_gnu=$ac_compiler_gnu 14604 14605fi 14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 14607$as_echo "$ac_cv_c_compiler_gnu" >&6; } 14608if test $ac_compiler_gnu = yes; then 14609 GCC=yes 14610else 14611 GCC= 14612fi 14613ac_test_CFLAGS=${CFLAGS+set} 14614ac_save_CFLAGS=$CFLAGS 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 14616$as_echo_n "checking whether $CC accepts -g... " >&6; } 14617if ${ac_cv_prog_cc_g+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 ac_save_c_werror_flag=$ac_c_werror_flag 14621 ac_c_werror_flag=yes 14622 ac_cv_prog_cc_g=no 14623 CFLAGS="-g" 14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14625/* end confdefs.h. */ 14626 14627int 14628main () 14629{ 14630 14631 ; 14632 return 0; 14633} 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 ac_cv_prog_cc_g=yes 14637else 14638 CFLAGS="" 14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14640/* end confdefs.h. */ 14641 14642int 14643main () 14644{ 14645 14646 ; 14647 return 0; 14648} 14649_ACEOF 14650if ac_fn_c_try_compile "$LINENO"; then : 14651 14652else 14653 ac_c_werror_flag=$ac_save_c_werror_flag 14654 CFLAGS="-g" 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657 14658int 14659main () 14660{ 14661 14662 ; 14663 return 0; 14664} 14665_ACEOF 14666if ac_fn_c_try_compile "$LINENO"; then : 14667 ac_cv_prog_cc_g=yes 14668fi 14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14670fi 14671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14672fi 14673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14674 ac_c_werror_flag=$ac_save_c_werror_flag 14675fi 14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 14677$as_echo "$ac_cv_prog_cc_g" >&6; } 14678if test "$ac_test_CFLAGS" = set; then 14679 CFLAGS=$ac_save_CFLAGS 14680elif test $ac_cv_prog_cc_g = yes; then 14681 if test "$GCC" = yes; then 14682 CFLAGS="-g -O2" 14683 else 14684 CFLAGS="-g" 14685 fi 14686else 14687 if test "$GCC" = yes; then 14688 CFLAGS="-O2" 14689 else 14690 CFLAGS= 14691 fi 14692fi 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 14694$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 14695if ${ac_cv_prog_cc_c89+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 ac_cv_prog_cc_c89=no 14699ac_save_CC=$CC 14700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702#include <stdarg.h> 14703#include <stdio.h> 14704struct stat; 14705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 14706struct buf { int x; }; 14707FILE * (*rcsopen) (struct buf *, struct stat *, int); 14708static char *e (p, i) 14709 char **p; 14710 int i; 14711{ 14712 return p[i]; 14713} 14714static char *f (char * (*g) (char **, int), char **p, ...) 14715{ 14716 char *s; 14717 va_list v; 14718 va_start (v,p); 14719 s = g (p, va_arg (v,int)); 14720 va_end (v); 14721 return s; 14722} 14723 14724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 14725 function prototypes and stuff, but not '\xHH' hex character constants. 14726 These don't provoke an error unfortunately, instead are silently treated 14727 as 'x'. The following induces an error, until -std is added to get 14728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 14729 array size at least. It's necessary to write '\x00'==0 to get something 14730 that's true only with -std. */ 14731int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 14732 14733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 14734 inside strings and character constants. */ 14735#define FOO(x) 'x' 14736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 14737 14738int test (int i, double x); 14739struct s1 {int (*f) (int a);}; 14740struct s2 {int (*f) (double a);}; 14741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 14742int argc; 14743char **argv; 14744int 14745main () 14746{ 14747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 14748 ; 14749 return 0; 14750} 14751_ACEOF 14752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 14753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 14754do 14755 CC="$ac_save_CC $ac_arg" 14756 if ac_fn_c_try_compile "$LINENO"; then : 14757 ac_cv_prog_cc_c89=$ac_arg 14758fi 14759rm -f core conftest.err conftest.$ac_objext 14760 test "x$ac_cv_prog_cc_c89" != "xno" && break 14761done 14762rm -f conftest.$ac_ext 14763CC=$ac_save_CC 14764 14765fi 14766# AC_CACHE_VAL 14767case "x$ac_cv_prog_cc_c89" in 14768 x) 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14770$as_echo "none needed" >&6; } ;; 14771 xno) 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14773$as_echo "unsupported" >&6; } ;; 14774 *) 14775 CC="$CC $ac_cv_prog_cc_c89" 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 14777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 14778esac 14779if test "x$ac_cv_prog_cc_c89" != xno; then : 14780 14781fi 14782 14783ac_ext=c 14784ac_cpp='$CPP $CPPFLAGS' 14785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14787ac_compiler_gnu=$ac_cv_c_compiler_gnu 14788 14789ac_ext=c 14790ac_cpp='$CPP $CPPFLAGS' 14791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14793ac_compiler_gnu=$ac_cv_c_compiler_gnu 14794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 14795$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 14796if ${am_cv_prog_cc_c_o+:} false; then : 14797 $as_echo_n "(cached) " >&6 14798else 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801 14802int 14803main () 14804{ 14805 14806 ; 14807 return 0; 14808} 14809_ACEOF 14810 # Make sure it works both with $CC and with simple cc. 14811 # Following AC_PROG_CC_C_O, we do the test twice because some 14812 # compilers refuse to overwrite an existing .o file with -o, 14813 # though they will create one. 14814 am_cv_prog_cc_c_o=yes 14815 for am_i in 1 2; do 14816 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 14817 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 14818 ac_status=$? 14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14820 (exit $ac_status); } \ 14821 && test -f conftest2.$ac_objext; then 14822 : OK 14823 else 14824 am_cv_prog_cc_c_o=no 14825 break 14826 fi 14827 done 14828 rm -f core conftest* 14829 unset am_i 14830fi 14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 14832$as_echo "$am_cv_prog_cc_c_o" >&6; } 14833if test "$am_cv_prog_cc_c_o" != yes; then 14834 # Losing compiler, so override with the script. 14835 # FIXME: It is wrong to rewrite CC. 14836 # But if we don't then we get into trouble of one sort or another. 14837 # A longer-term fix would be to have automake use am__CC in this case, 14838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 14839 CC="$am_aux_dir/compile $CC" 14840fi 14841ac_ext=c 14842ac_cpp='$CPP $CPPFLAGS' 14843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14845ac_compiler_gnu=$ac_cv_c_compiler_gnu 14846 14847 14848depcc="$CC" am_compiler_list= 14849 14850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14851$as_echo_n "checking dependency style of $depcc... " >&6; } 14852if ${am_cv_CC_dependencies_compiler_type+:} false; then : 14853 $as_echo_n "(cached) " >&6 14854else 14855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14856 # We make a subdir and do the tests there. Otherwise we can end up 14857 # making bogus files that we don't know about and never remove. For 14858 # instance it was reported that on HP-UX the gcc test will end up 14859 # making a dummy file named 'D' -- because '-MD' means "put the output 14860 # in D". 14861 rm -rf conftest.dir 14862 mkdir conftest.dir 14863 # Copy depcomp to subdir because otherwise we won't find it if we're 14864 # using a relative directory. 14865 cp "$am_depcomp" conftest.dir 14866 cd conftest.dir 14867 # We will build objects and dependencies in a subdirectory because 14868 # it helps to detect inapplicable dependency modes. For instance 14869 # both Tru64's cc and ICC support -MD to output dependencies as a 14870 # side effect of compilation, but ICC will put the dependencies in 14871 # the current directory while Tru64 will put them in the object 14872 # directory. 14873 mkdir sub 14874 14875 am_cv_CC_dependencies_compiler_type=none 14876 if test "$am_compiler_list" = ""; then 14877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14878 fi 14879 am__universal=false 14880 case " $depcc " in #( 14881 *\ -arch\ *\ -arch\ *) am__universal=true ;; 14882 esac 14883 14884 for depmode in $am_compiler_list; do 14885 # Setup a source with many dependencies, because some compilers 14886 # like to wrap large dependency lists on column 80 (with \), and 14887 # we should not choose a depcomp mode which is confused by this. 14888 # 14889 # We need to recreate these files for each test, as the compiler may 14890 # overwrite some of them when testing with obscure command lines. 14891 # This happens at least with the AIX C compiler. 14892 : > sub/conftest.c 14893 for i in 1 2 3 4 5 6; do 14894 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14896 # Solaris 10 /bin/sh. 14897 echo '/* dummy */' > sub/conftst$i.h 14898 done 14899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14900 14901 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14902 # mode. It turns out that the SunPro C++ compiler does not properly 14903 # handle '-M -o', and we need to detect this. Also, some Intel 14904 # versions had trouble with output in subdirs. 14905 am__obj=sub/conftest.${OBJEXT-o} 14906 am__minus_obj="-o $am__obj" 14907 case $depmode in 14908 gcc) 14909 # This depmode causes a compiler race in universal mode. 14910 test "$am__universal" = false || continue 14911 ;; 14912 nosideeffect) 14913 # After this tag, mechanisms are not by side-effect, so they'll 14914 # only be used when explicitly requested. 14915 if test "x$enable_dependency_tracking" = xyes; then 14916 continue 14917 else 14918 break 14919 fi 14920 ;; 14921 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14922 # This compiler won't grok '-c -o', but also, the minuso test has 14923 # not run yet. These depmodes are late enough in the game, and 14924 # so weak that their functioning should not be impacted. 14925 am__obj=conftest.${OBJEXT-o} 14926 am__minus_obj= 14927 ;; 14928 none) break ;; 14929 esac 14930 if depmode=$depmode \ 14931 source=sub/conftest.c object=$am__obj \ 14932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14934 >/dev/null 2>conftest.err && 14935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14939 # icc doesn't choke on unknown options, it will just issue warnings 14940 # or remarks (even with -Werror). So we grep stderr for any message 14941 # that says an option was ignored or not supported. 14942 # When given -MP, icc 7.0 and 7.1 complain thusly: 14943 # icc: Command line warning: ignoring option '-M'; no argument required 14944 # The diagnosis changed in icc 8.0: 14945 # icc: Command line remark: option '-MP' not supported 14946 if (grep 'ignoring option' conftest.err || 14947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14948 am_cv_CC_dependencies_compiler_type=$depmode 14949 break 14950 fi 14951 fi 14952 done 14953 14954 cd .. 14955 rm -rf conftest.dir 14956else 14957 am_cv_CC_dependencies_compiler_type=none 14958fi 14959 14960fi 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 14962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 14963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 14964 14965 if 14966 test "x$enable_dependency_tracking" != xno \ 14967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 14968 am__fastdepCC_TRUE= 14969 am__fastdepCC_FALSE='#' 14970else 14971 am__fastdepCC_TRUE='#' 14972 am__fastdepCC_FALSE= 14973fi 14974 14975 14976 case $ac_cv_prog_cc_stdc in #( 14977 no) : 14978 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 14979 *) : 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 14981$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 14982if ${ac_cv_prog_cc_c99+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 ac_cv_prog_cc_c99=no 14986ac_save_CC=$CC 14987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14988/* end confdefs.h. */ 14989#include <stdarg.h> 14990#include <stdbool.h> 14991#include <stdlib.h> 14992#include <wchar.h> 14993#include <stdio.h> 14994 14995// Check varargs macros. These examples are taken from C99 6.10.3.5. 14996#define debug(...) fprintf (stderr, __VA_ARGS__) 14997#define showlist(...) puts (#__VA_ARGS__) 14998#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 14999static void 15000test_varargs_macros (void) 15001{ 15002 int x = 1234; 15003 int y = 5678; 15004 debug ("Flag"); 15005 debug ("X = %d\n", x); 15006 showlist (The first, second, and third items.); 15007 report (x>y, "x is %d but y is %d", x, y); 15008} 15009 15010// Check long long types. 15011#define BIG64 18446744073709551615ull 15012#define BIG32 4294967295ul 15013#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 15014#if !BIG_OK 15015 your preprocessor is broken; 15016#endif 15017#if BIG_OK 15018#else 15019 your preprocessor is broken; 15020#endif 15021static long long int bignum = -9223372036854775807LL; 15022static unsigned long long int ubignum = BIG64; 15023 15024struct incomplete_array 15025{ 15026 int datasize; 15027 double data[]; 15028}; 15029 15030struct named_init { 15031 int number; 15032 const wchar_t *name; 15033 double average; 15034}; 15035 15036typedef const char *ccp; 15037 15038static inline int 15039test_restrict (ccp restrict text) 15040{ 15041 // See if C++-style comments work. 15042 // Iterate through items via the restricted pointer. 15043 // Also check for declarations in for loops. 15044 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 15045 continue; 15046 return 0; 15047} 15048 15049// Check varargs and va_copy. 15050static void 15051test_varargs (const char *format, ...) 15052{ 15053 va_list args; 15054 va_start (args, format); 15055 va_list args_copy; 15056 va_copy (args_copy, args); 15057 15058 const char *str; 15059 int number; 15060 float fnumber; 15061 15062 while (*format) 15063 { 15064 switch (*format++) 15065 { 15066 case 's': // string 15067 str = va_arg (args_copy, const char *); 15068 break; 15069 case 'd': // int 15070 number = va_arg (args_copy, int); 15071 break; 15072 case 'f': // float 15073 fnumber = va_arg (args_copy, double); 15074 break; 15075 default: 15076 break; 15077 } 15078 } 15079 va_end (args_copy); 15080 va_end (args); 15081} 15082 15083int 15084main () 15085{ 15086 15087 // Check bool. 15088 _Bool success = false; 15089 15090 // Check restrict. 15091 if (test_restrict ("String literal") == 0) 15092 success = true; 15093 char *restrict newvar = "Another string"; 15094 15095 // Check varargs. 15096 test_varargs ("s, d' f .", "string", 65, 34.234); 15097 test_varargs_macros (); 15098 15099 // Check flexible array members. 15100 struct incomplete_array *ia = 15101 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 15102 ia->datasize = 10; 15103 for (int i = 0; i < ia->datasize; ++i) 15104 ia->data[i] = i * 1.234; 15105 15106 // Check named initializers. 15107 struct named_init ni = { 15108 .number = 34, 15109 .name = L"Test wide string", 15110 .average = 543.34343, 15111 }; 15112 15113 ni.number = 58; 15114 15115 int dynamic_array[ni.number]; 15116 dynamic_array[ni.number - 1] = 543; 15117 15118 // work around unused variable warnings 15119 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 15120 || dynamic_array[ni.number - 1] != 543); 15121 15122 ; 15123 return 0; 15124} 15125_ACEOF 15126for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 15127do 15128 CC="$ac_save_CC $ac_arg" 15129 if ac_fn_c_try_compile "$LINENO"; then : 15130 ac_cv_prog_cc_c99=$ac_arg 15131fi 15132rm -f core conftest.err conftest.$ac_objext 15133 test "x$ac_cv_prog_cc_c99" != "xno" && break 15134done 15135rm -f conftest.$ac_ext 15136CC=$ac_save_CC 15137 15138fi 15139# AC_CACHE_VAL 15140case "x$ac_cv_prog_cc_c99" in 15141 x) 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15143$as_echo "none needed" >&6; } ;; 15144 xno) 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15146$as_echo "unsupported" >&6; } ;; 15147 *) 15148 CC="$CC $ac_cv_prog_cc_c99" 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 15150$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 15151esac 15152if test "x$ac_cv_prog_cc_c99" != xno; then : 15153 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 15154else 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 15156$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 15157if ${ac_cv_prog_cc_c89+:} false; then : 15158 $as_echo_n "(cached) " >&6 15159else 15160 ac_cv_prog_cc_c89=no 15161ac_save_CC=$CC 15162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163/* end confdefs.h. */ 15164#include <stdarg.h> 15165#include <stdio.h> 15166struct stat; 15167/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 15168struct buf { int x; }; 15169FILE * (*rcsopen) (struct buf *, struct stat *, int); 15170static char *e (p, i) 15171 char **p; 15172 int i; 15173{ 15174 return p[i]; 15175} 15176static char *f (char * (*g) (char **, int), char **p, ...) 15177{ 15178 char *s; 15179 va_list v; 15180 va_start (v,p); 15181 s = g (p, va_arg (v,int)); 15182 va_end (v); 15183 return s; 15184} 15185 15186/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 15187 function prototypes and stuff, but not '\xHH' hex character constants. 15188 These don't provoke an error unfortunately, instead are silently treated 15189 as 'x'. The following induces an error, until -std is added to get 15190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 15191 array size at least. It's necessary to write '\x00'==0 to get something 15192 that's true only with -std. */ 15193int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 15194 15195/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 15196 inside strings and character constants. */ 15197#define FOO(x) 'x' 15198int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 15199 15200int test (int i, double x); 15201struct s1 {int (*f) (int a);}; 15202struct s2 {int (*f) (double a);}; 15203int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 15204int argc; 15205char **argv; 15206int 15207main () 15208{ 15209return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 15210 ; 15211 return 0; 15212} 15213_ACEOF 15214for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 15215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 15216do 15217 CC="$ac_save_CC $ac_arg" 15218 if ac_fn_c_try_compile "$LINENO"; then : 15219 ac_cv_prog_cc_c89=$ac_arg 15220fi 15221rm -f core conftest.err conftest.$ac_objext 15222 test "x$ac_cv_prog_cc_c89" != "xno" && break 15223done 15224rm -f conftest.$ac_ext 15225CC=$ac_save_CC 15226 15227fi 15228# AC_CACHE_VAL 15229case "x$ac_cv_prog_cc_c89" in 15230 x) 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15232$as_echo "none needed" >&6; } ;; 15233 xno) 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15235$as_echo "unsupported" >&6; } ;; 15236 *) 15237 CC="$CC $ac_cv_prog_cc_c89" 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 15239$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 15240esac 15241if test "x$ac_cv_prog_cc_c89" != xno; then : 15242 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 15243else 15244 ac_cv_prog_cc_stdc=no 15245fi 15246 15247fi 15248 ;; 15249esac 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 15251$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 15252 if ${ac_cv_prog_cc_stdc+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254fi 15255 15256 case $ac_cv_prog_cc_stdc in #( 15257 no) : 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15259$as_echo "unsupported" >&6; } ;; #( 15260 '') : 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15262$as_echo "none needed" >&6; } ;; #( 15263 *) : 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 15265$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 15266esac 15267 15268 15269 15270 15271# Extract the first word of "valgrind", so it can be a program name with args. 15272set dummy valgrind; ac_word=$2 15273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15274$as_echo_n "checking for $ac_word... " >&6; } 15275if ${ac_cv_path_VALGRIND_PATH+:} false; then : 15276 $as_echo_n "(cached) " >&6 15277else 15278 case $VALGRIND_PATH in 15279 [\\/]* | ?:[\\/]*) 15280 ac_cv_path_VALGRIND_PATH="$VALGRIND_PATH" # Let the user override the test with a path. 15281 ;; 15282 *) 15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15284for as_dir in $PATH 15285do 15286 IFS=$as_save_IFS 15287 test -z "$as_dir" && as_dir=. 15288 for ac_exec_ext in '' $ac_executable_extensions; do 15289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15290 ac_cv_path_VALGRIND_PATH="$as_dir/$ac_word$ac_exec_ext" 15291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15292 break 2 15293 fi 15294done 15295 done 15296IFS=$as_save_IFS 15297 15298 test -z "$ac_cv_path_VALGRIND_PATH" && ac_cv_path_VALGRIND_PATH="no" 15299 ;; 15300esac 15301fi 15302VALGRIND_PATH=$ac_cv_path_VALGRIND_PATH 15303if test -n "$VALGRIND_PATH"; then 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_PATH" >&5 15305$as_echo "$VALGRIND_PATH" >&6; } 15306else 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15308$as_echo "no" >&6; } 15309fi 15310 15311 15312 if test ! "x$VALGRIND_PATH" = "xno"; then 15313 HAVE_VALGRIND_TRUE= 15314 HAVE_VALGRIND_FALSE='#' 15315else 15316 HAVE_VALGRIND_TRUE='#' 15317 HAVE_VALGRIND_FALSE= 15318fi 15319 15320 15321 15322 15323 15324 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 15325set dummy gtkdoc-check; ac_word=$2 15326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15327$as_echo_n "checking for $ac_word... " >&6; } 15328if ${ac_cv_path_GTKDOC_CHECK+:} false; then : 15329 $as_echo_n "(cached) " >&6 15330else 15331 case $GTKDOC_CHECK in 15332 [\\/]* | ?:[\\/]*) 15333 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. 15334 ;; 15335 *) 15336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15337for as_dir in $PATH 15338do 15339 IFS=$as_save_IFS 15340 test -z "$as_dir" && as_dir=. 15341 for ac_exec_ext in '' $ac_executable_extensions; do 15342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15343 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" 15344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15345 break 2 15346 fi 15347done 15348 done 15349IFS=$as_save_IFS 15350 15351 ;; 15352esac 15353fi 15354GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK 15355if test -n "$GTKDOC_CHECK"; then 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 15357$as_echo "$GTKDOC_CHECK" >&6; } 15358else 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15360$as_echo "no" >&6; } 15361fi 15362 15363 15364 for ac_prog in gtkdoc-rebase 15365do 15366 # Extract the first word of "$ac_prog", so it can be a program name with args. 15367set dummy $ac_prog; ac_word=$2 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15369$as_echo_n "checking for $ac_word... " >&6; } 15370if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 case $GTKDOC_REBASE in 15374 [\\/]* | ?:[\\/]*) 15375 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 15376 ;; 15377 *) 15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15379for as_dir in $PATH 15380do 15381 IFS=$as_save_IFS 15382 test -z "$as_dir" && as_dir=. 15383 for ac_exec_ext in '' $ac_executable_extensions; do 15384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15385 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 15386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15387 break 2 15388 fi 15389done 15390 done 15391IFS=$as_save_IFS 15392 15393 ;; 15394esac 15395fi 15396GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 15397if test -n "$GTKDOC_REBASE"; then 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 15399$as_echo "$GTKDOC_REBASE" >&6; } 15400else 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15402$as_echo "no" >&6; } 15403fi 15404 15405 15406 test -n "$GTKDOC_REBASE" && break 15407done 15408test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 15409 15410 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 15411set dummy gtkdoc-mkpdf; ac_word=$2 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15413$as_echo_n "checking for $ac_word... " >&6; } 15414if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 15415 $as_echo_n "(cached) " >&6 15416else 15417 case $GTKDOC_MKPDF in 15418 [\\/]* | ?:[\\/]*) 15419 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 15420 ;; 15421 *) 15422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15423for as_dir in $PATH 15424do 15425 IFS=$as_save_IFS 15426 test -z "$as_dir" && as_dir=. 15427 for ac_exec_ext in '' $ac_executable_extensions; do 15428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15429 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 15430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15431 break 2 15432 fi 15433done 15434 done 15435IFS=$as_save_IFS 15436 15437 ;; 15438esac 15439fi 15440GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 15441if test -n "$GTKDOC_MKPDF"; then 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 15443$as_echo "$GTKDOC_MKPDF" >&6; } 15444else 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15446$as_echo "no" >&6; } 15447fi 15448 15449 15450 15451 15452# Check whether --with-html-dir was given. 15453if test "${with_html_dir+set}" = set; then : 15454 withval=$with_html_dir; 15455else 15456 with_html_dir='${datadir}/gtk-doc/html' 15457fi 15458 15459 HTML_DIR="$with_html_dir" 15460 15461 15462 # Check whether --enable-gtk-doc was given. 15463if test "${enable_gtk_doc+set}" = set; then : 15464 enableval=$enable_gtk_doc; 15465else 15466 enable_gtk_doc=no 15467fi 15468 15469 15470 if test x$enable_gtk_doc = xyes; then 15471 if test -n "$PKG_CONFIG" && \ 15472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.12\""; } >&5 15473 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.12") 2>&5 15474 ac_status=$? 15475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15476 test $ac_status = 0; }; then 15477 : 15478else 15479 as_fn_error $? "You need to have gtk-doc >= 1.12 installed to build $PACKAGE_NAME" "$LINENO" 5 15480fi 15481 if test "x$PACKAGE_NAME" != "xglib"; then 15482 15483pkg_failed=no 15484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 15485$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 15486 15487if test -n "$PKG_CONFIG"; then 15488 if test -n "$GTKDOC_DEPS_CFLAGS"; then 15489 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 15490 else 15491 if test -n "$PKG_CONFIG" && \ 15492 { { $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 15493 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15494 ac_status=$? 15495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15496 test $ac_status = 0; }; then 15497 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15498else 15499 pkg_failed=yes 15500fi 15501 fi 15502else 15503 pkg_failed=untried 15504fi 15505if test -n "$PKG_CONFIG"; then 15506 if test -n "$GTKDOC_DEPS_LIBS"; then 15507 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 15508 else 15509 if test -n "$PKG_CONFIG" && \ 15510 { { $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 15511 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15512 ac_status=$? 15513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15514 test $ac_status = 0; }; then 15515 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15516else 15517 pkg_failed=yes 15518fi 15519 fi 15520else 15521 pkg_failed=untried 15522fi 15523 15524 15525 15526if test $pkg_failed = yes; then 15527 15528if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15529 _pkg_short_errors_supported=yes 15530else 15531 _pkg_short_errors_supported=no 15532fi 15533 if test $_pkg_short_errors_supported = yes; then 15534 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` 15535 else 15536 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` 15537 fi 15538 # Put the nasty error message in config.log where it belongs 15539 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 15540 15541 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met: 15542 15543$GTKDOC_DEPS_PKG_ERRORS 15544 15545Consider adjusting the PKG_CONFIG_PATH environment variable if you 15546installed software in a non-standard prefix. 15547 15548Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS 15549and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. 15550See the pkg-config man page for more details. 15551" "$LINENO" 5 15552elif test $pkg_failed = untried; then 15553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15555as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15556is in your PATH or set the PKG_CONFIG environment variable to the full 15557path to pkg-config. 15558 15559Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS 15560and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. 15561See the pkg-config man page for more details. 15562 15563To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15564See \`config.log' for more details" "$LINENO" 5; } 15565else 15566 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 15567 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15569$as_echo "yes" >&6; } 15570 : 15571fi 15572 fi 15573 if test -z "$SED"; then 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 15575$as_echo_n "checking for a sed that does not truncate output... " >&6; } 15576if ${ac_cv_path_SED+:} false; then : 15577 $as_echo_n "(cached) " >&6 15578else 15579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 15580 for ac_i in 1 2 3 4 5 6 7; do 15581 ac_script="$ac_script$as_nl$ac_script" 15582 done 15583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 15584 { ac_script=; unset ac_script;} 15585 if test -z "$SED"; then 15586 ac_path_SED_found=false 15587 # Loop through the user's path and test for each of PROGNAME-LIST 15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15589for as_dir in $PATH 15590do 15591 IFS=$as_save_IFS 15592 test -z "$as_dir" && as_dir=. 15593 for ac_prog in sed gsed; do 15594 for ac_exec_ext in '' $ac_executable_extensions; do 15595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 15596 as_fn_executable_p "$ac_path_SED" || continue 15597# Check for GNU ac_path_SED and select it if it is found. 15598 # Check for GNU $ac_path_SED 15599case `"$ac_path_SED" --version 2>&1` in 15600*GNU*) 15601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 15602*) 15603 ac_count=0 15604 $as_echo_n 0123456789 >"conftest.in" 15605 while : 15606 do 15607 cat "conftest.in" "conftest.in" >"conftest.tmp" 15608 mv "conftest.tmp" "conftest.in" 15609 cp "conftest.in" "conftest.nl" 15610 $as_echo '' >> "conftest.nl" 15611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 15612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15613 as_fn_arith $ac_count + 1 && ac_count=$as_val 15614 if test $ac_count -gt ${ac_path_SED_max-0}; then 15615 # Best one so far, save it but keep looking for a better one 15616 ac_cv_path_SED="$ac_path_SED" 15617 ac_path_SED_max=$ac_count 15618 fi 15619 # 10*(2^10) chars as input seems more than enough 15620 test $ac_count -gt 10 && break 15621 done 15622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15623esac 15624 15625 $ac_path_SED_found && break 3 15626 done 15627 done 15628 done 15629IFS=$as_save_IFS 15630 if test -z "$ac_cv_path_SED"; then 15631 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 15632 fi 15633else 15634 ac_cv_path_SED=$SED 15635fi 15636 15637fi 15638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 15639$as_echo "$ac_cv_path_SED" >&6; } 15640 SED="$ac_cv_path_SED" 15641 rm -f conftest.sed 15642 15643 fi 15644 fi 15645 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 15647$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 15649$as_echo "$enable_gtk_doc" >&6; } 15650 15651 # Check whether --enable-gtk-doc-html was given. 15652if test "${enable_gtk_doc_html+set}" = set; then : 15653 enableval=$enable_gtk_doc_html; 15654else 15655 enable_gtk_doc_html=yes 15656fi 15657 15658 # Check whether --enable-gtk-doc-pdf was given. 15659if test "${enable_gtk_doc_pdf+set}" = set; then : 15660 enableval=$enable_gtk_doc_pdf; 15661else 15662 enable_gtk_doc_pdf=no 15663fi 15664 15665 15666 if test -z "$GTKDOC_MKPDF"; then 15667 enable_gtk_doc_pdf=no 15668 fi 15669 15670 15671 if test x$enable_gtk_doc = xyes; then 15672 ENABLE_GTK_DOC_TRUE= 15673 ENABLE_GTK_DOC_FALSE='#' 15674else 15675 ENABLE_GTK_DOC_TRUE='#' 15676 ENABLE_GTK_DOC_FALSE= 15677fi 15678 15679 if test x$enable_gtk_doc_html = xyes; then 15680 GTK_DOC_BUILD_HTML_TRUE= 15681 GTK_DOC_BUILD_HTML_FALSE='#' 15682else 15683 GTK_DOC_BUILD_HTML_TRUE='#' 15684 GTK_DOC_BUILD_HTML_FALSE= 15685fi 15686 15687 if test x$enable_gtk_doc_pdf = xyes; then 15688 GTK_DOC_BUILD_PDF_TRUE= 15689 GTK_DOC_BUILD_PDF_FALSE='#' 15690else 15691 GTK_DOC_BUILD_PDF_TRUE='#' 15692 GTK_DOC_BUILD_PDF_FALSE= 15693fi 15694 15695 if test -n "$LIBTOOL"; then 15696 GTK_DOC_USE_LIBTOOL_TRUE= 15697 GTK_DOC_USE_LIBTOOL_FALSE='#' 15698else 15699 GTK_DOC_USE_LIBTOOL_TRUE='#' 15700 GTK_DOC_USE_LIBTOOL_FALSE= 15701fi 15702 15703 15704 15705 15706 15707 15708 15709 15710 # Find any Python interpreter. 15711 if test -z "$PYTHON"; then 15712 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 15713do 15714 # Extract the first word of "$ac_prog", so it can be a program name with args. 15715set dummy $ac_prog; ac_word=$2 15716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15717$as_echo_n "checking for $ac_word... " >&6; } 15718if ${ac_cv_path_PYTHON+:} false; then : 15719 $as_echo_n "(cached) " >&6 15720else 15721 case $PYTHON in 15722 [\\/]* | ?:[\\/]*) 15723 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15724 ;; 15725 *) 15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15727for as_dir in $PATH 15728do 15729 IFS=$as_save_IFS 15730 test -z "$as_dir" && as_dir=. 15731 for ac_exec_ext in '' $ac_executable_extensions; do 15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15733 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15735 break 2 15736 fi 15737done 15738 done 15739IFS=$as_save_IFS 15740 15741 ;; 15742esac 15743fi 15744PYTHON=$ac_cv_path_PYTHON 15745if test -n "$PYTHON"; then 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15747$as_echo "$PYTHON" >&6; } 15748else 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15750$as_echo "no" >&6; } 15751fi 15752 15753 15754 test -n "$PYTHON" && break 15755done 15756test -n "$PYTHON" || PYTHON=":" 15757 15758 fi 15759 am_display_PYTHON=python 15760 15761 15762 if test "$PYTHON" = :; then 15763 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 15764 else 15765 15766 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 15768$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 15769if ${am_cv_python_version+:} false; then : 15770 $as_echo_n "(cached) " >&6 15771else 15772 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 15773fi 15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 15775$as_echo "$am_cv_python_version" >&6; } 15776 PYTHON_VERSION=$am_cv_python_version 15777 15778 15779 15780 PYTHON_PREFIX='${prefix}' 15781 15782 PYTHON_EXEC_PREFIX='${exec_prefix}' 15783 15784 15785 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 15787$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 15788if ${am_cv_python_platform+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 15792fi 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 15794$as_echo "$am_cv_python_platform" >&6; } 15795 PYTHON_PLATFORM=$am_cv_python_platform 15796 15797 15798 # Just factor out some code duplication. 15799 am_python_setup_sysconfig="\ 15800import sys 15801# Prefer sysconfig over distutils.sysconfig, for better compatibility 15802# with python 3.x. See automake bug#10227. 15803try: 15804 import sysconfig 15805except ImportError: 15806 can_use_sysconfig = 0 15807else: 15808 can_use_sysconfig = 1 15809# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 15810# <https://github.com/pypa/virtualenv/issues/118> 15811try: 15812 from platform import python_implementation 15813 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 15814 can_use_sysconfig = 0 15815except ImportError: 15816 pass" 15817 15818 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 15820$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 15821if ${am_cv_python_pythondir+:} false; then : 15822 $as_echo_n "(cached) " >&6 15823else 15824 if test "x$prefix" = xNONE 15825 then 15826 am_py_prefix=$ac_default_prefix 15827 else 15828 am_py_prefix=$prefix 15829 fi 15830 am_cv_python_pythondir=`$PYTHON -c " 15831$am_python_setup_sysconfig 15832if can_use_sysconfig: 15833 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 15834else: 15835 from distutils import sysconfig 15836 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 15837sys.stdout.write(sitedir)"` 15838 case $am_cv_python_pythondir in 15839 $am_py_prefix*) 15840 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 15841 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 15842 ;; 15843 *) 15844 case $am_py_prefix in 15845 /usr|/System*) ;; 15846 *) 15847 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 15848 ;; 15849 esac 15850 ;; 15851 esac 15852 15853fi 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 15855$as_echo "$am_cv_python_pythondir" >&6; } 15856 pythondir=$am_cv_python_pythondir 15857 15858 15859 15860 pkgpythondir=\${pythondir}/$PACKAGE 15861 15862 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 15864$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 15865if ${am_cv_python_pyexecdir+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 if test "x$exec_prefix" = xNONE 15869 then 15870 am_py_exec_prefix=$am_py_prefix 15871 else 15872 am_py_exec_prefix=$exec_prefix 15873 fi 15874 am_cv_python_pyexecdir=`$PYTHON -c " 15875$am_python_setup_sysconfig 15876if can_use_sysconfig: 15877 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 15878else: 15879 from distutils import sysconfig 15880 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 15881sys.stdout.write(sitedir)"` 15882 case $am_cv_python_pyexecdir in 15883 $am_py_exec_prefix*) 15884 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 15885 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 15886 ;; 15887 *) 15888 case $am_py_exec_prefix in 15889 /usr|/System*) ;; 15890 *) 15891 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 15892 ;; 15893 esac 15894 ;; 15895 esac 15896 15897fi 15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 15899$as_echo "$am_cv_python_pyexecdir" >&6; } 15900 pyexecdir=$am_cv_python_pyexecdir 15901 15902 15903 15904 pkgpyexecdir=\${pyexecdir}/$PACKAGE 15905 15906 15907 15908 fi 15909 15910 15911 15912 15913 build_plugin_docs=no 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build plugin documentation" >&5 15915$as_echo_n "checking whether to build plugin documentation... " >&6; } 15916 if test x$enable_gtk_doc = xyes; then 15917 if test x$PYTHON != x; then 15918 build_plugin_docs=yes 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15920$as_echo "yes" >&6; } 15921 else 15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (python not found)" >&5 15923$as_echo "no (python not found)" >&6; } 15924 fi 15925 else 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (gtk-doc disabled or not available)" >&5 15927$as_echo "no (gtk-doc disabled or not available)" >&6; } 15928 fi 15929 15930 if test x$build_plugin_docs = xyes; then 15931 ENABLE_PLUGIN_DOCS_TRUE= 15932 ENABLE_PLUGIN_DOCS_FALSE='#' 15933else 15934 ENABLE_PLUGIN_DOCS_TRUE='#' 15935 ENABLE_PLUGIN_DOCS_FALSE= 15936fi 15937 15938 15939 15940 15941LIBM= 15942case $host in 15943*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 15944 # These system don't have libm, or don't need it 15945 ;; 15946*-ncr-sysv4.3*) 15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 15948$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 15949if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 15950 $as_echo_n "(cached) " >&6 15951else 15952 ac_check_lib_save_LIBS=$LIBS 15953LIBS="-lmw $LIBS" 15954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15955/* end confdefs.h. */ 15956 15957/* Override any GCC internal prototype to avoid an error. 15958 Use char because int might match the return type of a GCC 15959 builtin and then its argument prototype would still apply. */ 15960#ifdef __cplusplus 15961extern "C" 15962#endif 15963char _mwvalidcheckl (); 15964int 15965main () 15966{ 15967return _mwvalidcheckl (); 15968 ; 15969 return 0; 15970} 15971_ACEOF 15972if ac_fn_c_try_link "$LINENO"; then : 15973 ac_cv_lib_mw__mwvalidcheckl=yes 15974else 15975 ac_cv_lib_mw__mwvalidcheckl=no 15976fi 15977rm -f core conftest.err conftest.$ac_objext \ 15978 conftest$ac_exeext conftest.$ac_ext 15979LIBS=$ac_check_lib_save_LIBS 15980fi 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15982$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15983if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 15984 LIBM=-lmw 15985fi 15986 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15988$as_echo_n "checking for cos in -lm... " >&6; } 15989if ${ac_cv_lib_m_cos+:} false; then : 15990 $as_echo_n "(cached) " >&6 15991else 15992 ac_check_lib_save_LIBS=$LIBS 15993LIBS="-lm $LIBS" 15994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15995/* end confdefs.h. */ 15996 15997/* Override any GCC internal prototype to avoid an error. 15998 Use char because int might match the return type of a GCC 15999 builtin and then its argument prototype would still apply. */ 16000#ifdef __cplusplus 16001extern "C" 16002#endif 16003char cos (); 16004int 16005main () 16006{ 16007return cos (); 16008 ; 16009 return 0; 16010} 16011_ACEOF 16012if ac_fn_c_try_link "$LINENO"; then : 16013 ac_cv_lib_m_cos=yes 16014else 16015 ac_cv_lib_m_cos=no 16016fi 16017rm -f core conftest.err conftest.$ac_objext \ 16018 conftest$ac_exeext conftest.$ac_ext 16019LIBS=$ac_check_lib_save_LIBS 16020fi 16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 16022$as_echo "$ac_cv_lib_m_cos" >&6; } 16023if test "x$ac_cv_lib_m_cos" = xyes; then : 16024 LIBM="$LIBM -lm" 16025fi 16026 16027 ;; 16028*) 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 16030$as_echo_n "checking for cos in -lm... " >&6; } 16031if ${ac_cv_lib_m_cos+:} false; then : 16032 $as_echo_n "(cached) " >&6 16033else 16034 ac_check_lib_save_LIBS=$LIBS 16035LIBS="-lm $LIBS" 16036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16037/* end confdefs.h. */ 16038 16039/* Override any GCC internal prototype to avoid an error. 16040 Use char because int might match the return type of a GCC 16041 builtin and then its argument prototype would still apply. */ 16042#ifdef __cplusplus 16043extern "C" 16044#endif 16045char cos (); 16046int 16047main () 16048{ 16049return cos (); 16050 ; 16051 return 0; 16052} 16053_ACEOF 16054if ac_fn_c_try_link "$LINENO"; then : 16055 ac_cv_lib_m_cos=yes 16056else 16057 ac_cv_lib_m_cos=no 16058fi 16059rm -f core conftest.err conftest.$ac_objext \ 16060 conftest$ac_exeext conftest.$ac_ext 16061LIBS=$ac_check_lib_save_LIBS 16062fi 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 16064$as_echo "$ac_cv_lib_m_cos" >&6; } 16065if test "x$ac_cv_lib_m_cos" = xyes; then : 16066 LIBM=-lm 16067fi 16068 16069 ;; 16070esac 16071 16072 16073 16074 16075 16076 16077 16078 16079ac_ext=c 16080ac_cpp='$CPP $CPPFLAGS' 16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16083ac_compiler_gnu=$ac_cv_c_compiler_gnu 16084 16085ax_pthread_ok=no 16086 16087# We used to check for pthread.h first, but this fails if pthread.h 16088# requires special compiler flags (e.g. on Tru64 or Sequent). 16089# It gets checked for in the link test anyway. 16090 16091# First of all, check if the user has set any of the PTHREAD_LIBS, 16092# etcetera environment variables, and if threads linking works using 16093# them: 16094if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 16095 ax_pthread_save_CC="$CC" 16096 ax_pthread_save_CFLAGS="$CFLAGS" 16097 ax_pthread_save_LIBS="$LIBS" 16098 if test "x$PTHREAD_CC" != "x"; then : 16099 CC="$PTHREAD_CC" 16100fi 16101 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16102 LIBS="$PTHREAD_LIBS $LIBS" 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 16104$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16106/* end confdefs.h. */ 16107 16108/* Override any GCC internal prototype to avoid an error. 16109 Use char because int might match the return type of a GCC 16110 builtin and then its argument prototype would still apply. */ 16111#ifdef __cplusplus 16112extern "C" 16113#endif 16114char pthread_join (); 16115int 16116main () 16117{ 16118return pthread_join (); 16119 ; 16120 return 0; 16121} 16122_ACEOF 16123if ac_fn_c_try_link "$LINENO"; then : 16124 ax_pthread_ok=yes 16125fi 16126rm -f core conftest.err conftest.$ac_objext \ 16127 conftest$ac_exeext conftest.$ac_ext 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16129$as_echo "$ax_pthread_ok" >&6; } 16130 if test "x$ax_pthread_ok" = "xno"; then 16131 PTHREAD_LIBS="" 16132 PTHREAD_CFLAGS="" 16133 fi 16134 CC="$ax_pthread_save_CC" 16135 CFLAGS="$ax_pthread_save_CFLAGS" 16136 LIBS="$ax_pthread_save_LIBS" 16137fi 16138 16139# We must check for the threads library under a number of different 16140# names; the ordering is very important because some systems 16141# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16142# libraries is broken (non-POSIX). 16143 16144# Create a list of thread flags to try. Items starting with a "-" are 16145# C compiler flags, and other items are library names, except for "none" 16146# which indicates that we try without any flags at all, and "pthread-config" 16147# which is a program returning the flags for the Pth emulation library. 16148 16149ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16150 16151# The ordering *is* (sometimes) important. Some notes on the 16152# individual items follow: 16153 16154# pthreads: AIX (must check this before -lpthread) 16155# none: in case threads are in libc; should be tried before -Kthread and 16156# other compiler flags to prevent continual compiler warnings 16157# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16158# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 16159# (Note: HP C rejects this with "bad form for `-t' option") 16160# -pthreads: Solaris/gcc (Note: HP C also rejects) 16161# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16162# doesn't hurt to check since this sometimes defines pthreads and 16163# -D_REENTRANT too), HP C (must be checked before -lpthread, which 16164# is present but should not be used directly; and before -mthreads, 16165# because the compiler interprets this as "-mt" + "-hreads") 16166# -mthreads: Mingw32/gcc, Lynx/gcc 16167# pthread: Linux, etcetera 16168# --thread-safe: KAI C++ 16169# pthread-config: use pthread-config program (for GNU Pth library) 16170 16171case $host_os in 16172 16173 freebsd*) 16174 16175 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16176 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16177 16178 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 16179 ;; 16180 16181 hpux*) 16182 16183 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 16184 # multi-threading and also sets -lpthread." 16185 16186 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 16187 ;; 16188 16189 openedition*) 16190 16191 # IBM z/OS requires a feature-test macro to be defined in order to 16192 # enable POSIX threads at all, so give the user a hint if this is 16193 # not set. (We don't define these ourselves, as they can affect 16194 # other portions of the system API in unpredictable ways.) 16195 16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198 16199# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 16200 AX_PTHREAD_ZOS_MISSING 16201# endif 16202 16203_ACEOF 16204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16205 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 16207$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 16208fi 16209rm -f conftest* 16210 16211 ;; 16212 16213 solaris*) 16214 16215 # On Solaris (at least, for some versions), libc contains stubbed 16216 # (non-functional) versions of the pthreads routines, so link-based 16217 # tests will erroneously succeed. (N.B.: The stubs are missing 16218 # pthread_cleanup_push, or rather a function called by this macro, 16219 # so we could check for that, but who knows whether they'll stub 16220 # that too in a future libc.) So we'll check first for the 16221 # standard Solaris way of linking pthreads (-mt -lpthread). 16222 16223 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 16224 ;; 16225esac 16226 16227# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 16228 16229if test "x$GCC" = "xyes"; then : 16230 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 16231fi 16232 16233# The presence of a feature test macro requesting re-entrant function 16234# definitions is, on some systems, a strong hint that pthreads support is 16235# correctly enabled 16236 16237case $host_os in 16238 darwin* | hpux* | linux* | osf* | solaris*) 16239 ax_pthread_check_macro="_REENTRANT" 16240 ;; 16241 16242 aix*) 16243 ax_pthread_check_macro="_THREAD_SAFE" 16244 ;; 16245 16246 *) 16247 ax_pthread_check_macro="--" 16248 ;; 16249esac 16250if test "x$ax_pthread_check_macro" = "x--"; then : 16251 ax_pthread_check_cond=0 16252else 16253 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 16254fi 16255 16256# Are we compiling with Clang? 16257 16258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 16259$as_echo_n "checking whether $CC is Clang... " >&6; } 16260if ${ax_cv_PTHREAD_CLANG+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 ax_cv_PTHREAD_CLANG=no 16264 # Note that Autoconf sets GCC=yes for Clang as well as GCC 16265 if test "x$GCC" = "xyes"; then 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 16269# if defined(__clang__) && defined(__llvm__) 16270 AX_PTHREAD_CC_IS_CLANG 16271# endif 16272 16273_ACEOF 16274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16275 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 16276 ax_cv_PTHREAD_CLANG=yes 16277fi 16278rm -f conftest* 16279 16280 fi 16281 16282fi 16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 16284$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 16285ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 16286 16287ax_pthread_clang_warning=no 16288 16289# Clang needs special handling, because older versions handle the -pthread 16290# option in a rather... idiosyncratic way 16291 16292if test "x$ax_pthread_clang" = "xyes"; then 16293 16294 # Clang takes -pthread; it has never supported any other flag 16295 16296 # (Note 1: This will need to be revisited if a system that Clang 16297 # supports has POSIX threads in a separate library. This tends not 16298 # to be the way of modern systems, but it's conceivable.) 16299 16300 # (Note 2: On some systems, notably Darwin, -pthread is not needed 16301 # to get POSIX threads support; the API is always present and 16302 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 16303 # -pthread does define _REENTRANT, and while the Darwin headers 16304 # ignore this macro, third-party headers might not.) 16305 16306 PTHREAD_CFLAGS="-pthread" 16307 PTHREAD_LIBS= 16308 16309 ax_pthread_ok=yes 16310 16311 # However, older versions of Clang make a point of warning the user 16312 # that, in an invocation where only linking and no compilation is 16313 # taking place, the -pthread option has no effect ("argument unused 16314 # during compilation"). They expect -pthread to be passed in only 16315 # when source code is being compiled. 16316 # 16317 # Problem is, this is at odds with the way Automake and most other 16318 # C build frameworks function, which is that the same flags used in 16319 # compilation (CFLAGS) are also used in linking. Many systems 16320 # supported by AX_PTHREAD require exactly this for POSIX threads 16321 # support, and in fact it is often not straightforward to specify a 16322 # flag that is used only in the compilation phase and not in 16323 # linking. Such a scenario is extremely rare in practice. 16324 # 16325 # Even though use of the -pthread flag in linking would only print 16326 # a warning, this can be a nuisance for well-run software projects 16327 # that build with -Werror. So if the active version of Clang has 16328 # this misfeature, we search for an option to squash it. 16329 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 16331$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 16332if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 16333 $as_echo_n "(cached) " >&6 16334else 16335 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 16336 # Create an alternate version of $ac_link that compiles and 16337 # links in two steps (.c -> .o, .o -> exe) instead of one 16338 # (.c -> exe), because the warning occurs only in the second 16339 # step 16340 ax_pthread_save_ac_link="$ac_link" 16341 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 16342 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 16343 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 16344 ax_pthread_save_CFLAGS="$CFLAGS" 16345 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 16346 if test "x$ax_pthread_try" = "xunknown"; then : 16347 break 16348fi 16349 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 16350 ac_link="$ax_pthread_save_ac_link" 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int main(void){return 0;} 16354_ACEOF 16355if ac_fn_c_try_link "$LINENO"; then : 16356 ac_link="$ax_pthread_2step_ac_link" 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358/* end confdefs.h. */ 16359int main(void){return 0;} 16360_ACEOF 16361if ac_fn_c_try_link "$LINENO"; then : 16362 break 16363fi 16364rm -f core conftest.err conftest.$ac_objext \ 16365 conftest$ac_exeext conftest.$ac_ext 16366 16367fi 16368rm -f core conftest.err conftest.$ac_objext \ 16369 conftest$ac_exeext conftest.$ac_ext 16370 done 16371 ac_link="$ax_pthread_save_ac_link" 16372 CFLAGS="$ax_pthread_save_CFLAGS" 16373 if test "x$ax_pthread_try" = "x"; then : 16374 ax_pthread_try=no 16375fi 16376 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 16377 16378fi 16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 16380$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 16381 16382 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 16383 no | unknown) ;; 16384 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 16385 esac 16386 16387fi # $ax_pthread_clang = yes 16388 16389if test "x$ax_pthread_ok" = "xno"; then 16390for ax_pthread_try_flag in $ax_pthread_flags; do 16391 16392 case $ax_pthread_try_flag in 16393 none) 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16395$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16396 ;; 16397 16398 -mt,pthread) 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 16400$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 16401 PTHREAD_CFLAGS="-mt" 16402 PTHREAD_LIBS="-lpthread" 16403 ;; 16404 16405 -*) 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 16407$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 16408 PTHREAD_CFLAGS="$ax_pthread_try_flag" 16409 ;; 16410 16411 pthread-config) 16412 # Extract the first word of "pthread-config", so it can be a program name with args. 16413set dummy pthread-config; ac_word=$2 16414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16415$as_echo_n "checking for $ac_word... " >&6; } 16416if ${ac_cv_prog_ax_pthread_config+:} false; then : 16417 $as_echo_n "(cached) " >&6 16418else 16419 if test -n "$ax_pthread_config"; then 16420 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16421else 16422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16423for as_dir in $PATH 16424do 16425 IFS=$as_save_IFS 16426 test -z "$as_dir" && as_dir=. 16427 for ac_exec_ext in '' $ac_executable_extensions; do 16428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16429 ac_cv_prog_ax_pthread_config="yes" 16430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16431 break 2 16432 fi 16433done 16434 done 16435IFS=$as_save_IFS 16436 16437 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16438fi 16439fi 16440ax_pthread_config=$ac_cv_prog_ax_pthread_config 16441if test -n "$ax_pthread_config"; then 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16443$as_echo "$ax_pthread_config" >&6; } 16444else 16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16446$as_echo "no" >&6; } 16447fi 16448 16449 16450 if test "x$ax_pthread_config" = "xno"; then : 16451 continue 16452fi 16453 PTHREAD_CFLAGS="`pthread-config --cflags`" 16454 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16455 ;; 16456 16457 *) 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 16459$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 16460 PTHREAD_LIBS="-l$ax_pthread_try_flag" 16461 ;; 16462 esac 16463 16464 ax_pthread_save_CFLAGS="$CFLAGS" 16465 ax_pthread_save_LIBS="$LIBS" 16466 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16467 LIBS="$PTHREAD_LIBS $LIBS" 16468 16469 # Check for various functions. We must include pthread.h, 16470 # since some functions may be macros. (On the Sequent, we 16471 # need a special flag -Kthread to make this header compile.) 16472 # We check for pthread_join because it is in -lpthread on IRIX 16473 # while pthread_create is in libc. We check for pthread_attr_init 16474 # due to DEC craziness with -lpthreads. We check for 16475 # pthread_cleanup_push because it is one of the few pthread 16476 # functions on Solaris that doesn't have a non-functional libc stub. 16477 # We try pthread_create on general principles. 16478 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480/* end confdefs.h. */ 16481#include <pthread.h> 16482# if $ax_pthread_check_cond 16483# error "$ax_pthread_check_macro must be defined" 16484# endif 16485 static void routine(void *a) { a = 0; } 16486 static void *start_routine(void *a) { return a; } 16487int 16488main () 16489{ 16490pthread_t th; pthread_attr_t attr; 16491 pthread_create(&th, 0, start_routine, 0); 16492 pthread_join(th, 0); 16493 pthread_attr_init(&attr); 16494 pthread_cleanup_push(routine, 0); 16495 pthread_cleanup_pop(0) /* ; */ 16496 ; 16497 return 0; 16498} 16499_ACEOF 16500if ac_fn_c_try_link "$LINENO"; then : 16501 ax_pthread_ok=yes 16502fi 16503rm -f core conftest.err conftest.$ac_objext \ 16504 conftest$ac_exeext conftest.$ac_ext 16505 16506 CFLAGS="$ax_pthread_save_CFLAGS" 16507 LIBS="$ax_pthread_save_LIBS" 16508 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16510$as_echo "$ax_pthread_ok" >&6; } 16511 if test "x$ax_pthread_ok" = "xyes"; then : 16512 break 16513fi 16514 16515 PTHREAD_LIBS="" 16516 PTHREAD_CFLAGS="" 16517done 16518fi 16519 16520# Various other checks: 16521if test "x$ax_pthread_ok" = "xyes"; then 16522 ax_pthread_save_CFLAGS="$CFLAGS" 16523 ax_pthread_save_LIBS="$LIBS" 16524 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16525 LIBS="$PTHREAD_LIBS $LIBS" 16526 16527 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16529$as_echo_n "checking for joinable pthread attribute... " >&6; } 16530if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 16531 $as_echo_n "(cached) " >&6 16532else 16533 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 16534 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16536/* end confdefs.h. */ 16537#include <pthread.h> 16538int 16539main () 16540{ 16541int attr = $ax_pthread_attr; return attr /* ; */ 16542 ; 16543 return 0; 16544} 16545_ACEOF 16546if ac_fn_c_try_link "$LINENO"; then : 16547 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 16548fi 16549rm -f core conftest.err conftest.$ac_objext \ 16550 conftest$ac_exeext conftest.$ac_ext 16551 done 16552 16553fi 16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 16555$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 16556 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 16557 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 16558 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 16559 16560cat >>confdefs.h <<_ACEOF 16561#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 16562_ACEOF 16563 16564 ax_pthread_joinable_attr_defined=yes 16565 16566fi 16567 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 16569$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 16570if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 16571 $as_echo_n "(cached) " >&6 16572else 16573 ax_cv_PTHREAD_SPECIAL_FLAGS=no 16574 case $host_os in 16575 solaris*) 16576 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 16577 ;; 16578 esac 16579 16580fi 16581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 16582$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 16583 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 16584 test "x$ax_pthread_special_flags_added" != "xyes"; then : 16585 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 16586 ax_pthread_special_flags_added=yes 16587fi 16588 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16590$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16591if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16592 $as_echo_n "(cached) " >&6 16593else 16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16595/* end confdefs.h. */ 16596#include <pthread.h> 16597int 16598main () 16599{ 16600int i = PTHREAD_PRIO_INHERIT; 16601 ; 16602 return 0; 16603} 16604_ACEOF 16605if ac_fn_c_try_link "$LINENO"; then : 16606 ax_cv_PTHREAD_PRIO_INHERIT=yes 16607else 16608 ax_cv_PTHREAD_PRIO_INHERIT=no 16609fi 16610rm -f core conftest.err conftest.$ac_objext \ 16611 conftest$ac_exeext conftest.$ac_ext 16612 16613fi 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16615$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16616 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 16617 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 16618 16619$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16620 16621 ax_pthread_prio_inherit_defined=yes 16622 16623fi 16624 16625 CFLAGS="$ax_pthread_save_CFLAGS" 16626 LIBS="$ax_pthread_save_LIBS" 16627 16628 # More AIX lossage: compile with *_r variant 16629 if test "x$GCC" != "xyes"; then 16630 case $host_os in 16631 aix*) 16632 case "x/$CC" in #( 16633 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16634 #handle absolute path differently from PATH based program lookup 16635 case "x$CC" in #( 16636 x/*) : 16637 if as_fn_executable_p ${CC}_r; then : 16638 PTHREAD_CC="${CC}_r" 16639fi ;; #( 16640 *) : 16641 for ac_prog in ${CC}_r 16642do 16643 # Extract the first word of "$ac_prog", so it can be a program name with args. 16644set dummy $ac_prog; ac_word=$2 16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16646$as_echo_n "checking for $ac_word... " >&6; } 16647if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16648 $as_echo_n "(cached) " >&6 16649else 16650 if test -n "$PTHREAD_CC"; then 16651 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16652else 16653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16654for as_dir in $PATH 16655do 16656 IFS=$as_save_IFS 16657 test -z "$as_dir" && as_dir=. 16658 for ac_exec_ext in '' $ac_executable_extensions; do 16659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16660 ac_cv_prog_PTHREAD_CC="$ac_prog" 16661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16662 break 2 16663 fi 16664done 16665 done 16666IFS=$as_save_IFS 16667 16668fi 16669fi 16670PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16671if test -n "$PTHREAD_CC"; then 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16673$as_echo "$PTHREAD_CC" >&6; } 16674else 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16676$as_echo "no" >&6; } 16677fi 16678 16679 16680 test -n "$PTHREAD_CC" && break 16681done 16682test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16683 ;; 16684esac ;; #( 16685 *) : 16686 ;; 16687esac 16688 ;; 16689 esac 16690 fi 16691fi 16692 16693test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16694 16695 16696 16697 16698 16699# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16700if test "x$ax_pthread_ok" = "xyes"; then 16701 16702$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16703 16704 : 16705else 16706 ax_pthread_ok=no 16707 16708fi 16709ac_ext=c 16710ac_cpp='$CPP $CPPFLAGS' 16711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16713ac_compiler_gnu=$ac_cv_c_compiler_gnu 16714 16715 16716 16717 16718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16719$as_echo_n "checking for ANSI C header files... " >&6; } 16720if ${ac_cv_header_stdc+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722else 16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724/* end confdefs.h. */ 16725#include <stdlib.h> 16726#include <stdarg.h> 16727#include <string.h> 16728#include <float.h> 16729 16730int 16731main () 16732{ 16733 16734 ; 16735 return 0; 16736} 16737_ACEOF 16738if ac_fn_c_try_compile "$LINENO"; then : 16739 ac_cv_header_stdc=yes 16740else 16741 ac_cv_header_stdc=no 16742fi 16743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16744 16745if test $ac_cv_header_stdc = yes; then 16746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749#include <string.h> 16750 16751_ACEOF 16752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16753 $EGREP "memchr" >/dev/null 2>&1; then : 16754 16755else 16756 ac_cv_header_stdc=no 16757fi 16758rm -f conftest* 16759 16760fi 16761 16762if test $ac_cv_header_stdc = yes; then 16763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766#include <stdlib.h> 16767 16768_ACEOF 16769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16770 $EGREP "free" >/dev/null 2>&1; then : 16771 16772else 16773 ac_cv_header_stdc=no 16774fi 16775rm -f conftest* 16776 16777fi 16778 16779if test $ac_cv_header_stdc = yes; then 16780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16781 if test "$cross_compiling" = yes; then : 16782 : 16783else 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16785/* end confdefs.h. */ 16786#include <ctype.h> 16787#include <stdlib.h> 16788#if ((' ' & 0x0FF) == 0x020) 16789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16791#else 16792# define ISLOWER(c) \ 16793 (('a' <= (c) && (c) <= 'i') \ 16794 || ('j' <= (c) && (c) <= 'r') \ 16795 || ('s' <= (c) && (c) <= 'z')) 16796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16797#endif 16798 16799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16800int 16801main () 16802{ 16803 int i; 16804 for (i = 0; i < 256; i++) 16805 if (XOR (islower (i), ISLOWER (i)) 16806 || toupper (i) != TOUPPER (i)) 16807 return 2; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_run "$LINENO"; then : 16812 16813else 16814 ac_cv_header_stdc=no 16815fi 16816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16817 conftest.$ac_objext conftest.beam conftest.$ac_ext 16818fi 16819 16820fi 16821fi 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16823$as_echo "$ac_cv_header_stdc" >&6; } 16824if test $ac_cv_header_stdc = yes; then 16825 16826$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16827 16828fi 16829 16830 16831 16832 16833 16834 16835 16836GLIB_REQ=2.40.0 16837 16838 16839 16840 16841 GLIB_REQ=$GLIB_REQ 16842 if test "x$GLIB_REQ" = "x" 16843 then 16844 as_fn_error $? "Please specify a required version for GLib 2.0" "$LINENO" 5 16845 fi 16846 16847 16848 16849 which="glib-2.0 >= $GLIB_REQ gobject-2.0 gmodule-no-export-2.0" 16850 required="no" 16851 16852 16853pkg_failed=no 16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 16855$as_echo_n "checking for GLIB... " >&6; } 16856 16857if test -n "$PKG_CONFIG"; then 16858 if test -n "$GLIB_CFLAGS"; then 16859 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 16860 else 16861 if test -n "$PKG_CONFIG" && \ 16862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5 16863 ($PKG_CONFIG --exists --print-errors "$which") 2>&5 16864 ac_status=$? 16865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16866 test $ac_status = 0; }; then 16867 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null` 16868else 16869 pkg_failed=yes 16870fi 16871 fi 16872else 16873 pkg_failed=untried 16874fi 16875if test -n "$PKG_CONFIG"; then 16876 if test -n "$GLIB_LIBS"; then 16877 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 16878 else 16879 if test -n "$PKG_CONFIG" && \ 16880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5 16881 ($PKG_CONFIG --exists --print-errors "$which") 2>&5 16882 ac_status=$? 16883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16884 test $ac_status = 0; }; then 16885 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null` 16886else 16887 pkg_failed=yes 16888fi 16889 fi 16890else 16891 pkg_failed=untried 16892fi 16893 16894 16895 16896if test $pkg_failed = yes; then 16897 16898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16899 _pkg_short_errors_supported=yes 16900else 16901 _pkg_short_errors_supported=no 16902fi 16903 if test $_pkg_short_errors_supported = yes; then 16904 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"` 16905 else 16906 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"` 16907 fi 16908 # Put the nasty error message in config.log where it belongs 16909 echo "$GLIB_PKG_ERRORS" >&5 16910 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16912$as_echo "no" >&6; } 16913 16914 HAVE_GLIB="no" 16915 if test "x$required" = "xyes"; then 16916 as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5 16917 else 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5 16919$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;} 16920 fi 16921 16922elif test $pkg_failed = untried; then 16923 16924 HAVE_GLIB="no" 16925 if test "x$required" = "xyes"; then 16926 as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5 16927 else 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5 16929$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;} 16930 fi 16931 16932else 16933 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 16934 GLIB_LIBS=$pkg_cv_GLIB_LIBS 16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16936$as_echo "yes" >&6; } 16937 16938 HAVE_GLIB="yes" 16939 16940fi 16941 16942 16943 16944 if test "x$HAVE_GLIB" = "xno"; then 16945 as_fn_error $? "This package requires GLib >= $GLIB_REQ to compile." "$LINENO" 5 16946 fi 16947 16948 GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_THREADS_MANDATORY" 16949 16950 if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then 16951 GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_DEPRECATED" 16952 fi 16953 16954 # Check whether --enable-gobject-cast-checks was given. 16955if test "${enable_gobject_cast_checks+set}" = set; then : 16956 enableval=$enable_gobject_cast_checks; enable_gobject_cast_checks=$enableval 16957else 16958 enable_gobject_cast_checks=auto 16959fi 16960 16961 16962 if test "x$enable_gobject_cast_checks" = "xauto"; then 16963 if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then 16964 enable_gobject_cast_checks=yes 16965 else 16966 enable_gobject_cast_checks=no 16967 fi 16968 fi 16969 16970 if test "x$enable_gobject_cast_checks" = "xno"; then 16971 GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS" 16972 fi 16973 16974 # Check whether --enable-glib-asserts was given. 16975if test "${enable_glib_asserts+set}" = set; then : 16976 enableval=$enable_glib_asserts; enable_glib_assertions=$enableval 16977else 16978 enable_glib_assertions=yes 16979fi 16980 16981 16982 if test "x$enable_glib_assertions" = "xno"; then 16983 GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_ASSERT" 16984 fi 16985 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-genmarshal" >&5 16987$as_echo_n "checking for glib-genmarshal... " >&6; } 16988 if test "x$GLIB_GENMARSHAL" != "x"; then 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from environment)" >&5 16990$as_echo "$GLIB_GENMARSHAL (from environment)" >&6; } 16991 else 16992 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 16993 if $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from pkg-config path)" >&5 16995$as_echo "$GLIB_GENMARSHAL (from pkg-config path)" >&6; } 16996 else 16997 # Extract the first word of "glib-genmarshal", so it can be a program name with args. 16998set dummy glib-genmarshal; ac_word=$2 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17000$as_echo_n "checking for $ac_word... " >&6; } 17001if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then : 17002 $as_echo_n "(cached) " >&6 17003else 17004 case $GLIB_GENMARSHAL in 17005 [\\/]* | ?:[\\/]*) 17006 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path. 17007 ;; 17008 *) 17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17010for as_dir in $PATH 17011do 17012 IFS=$as_save_IFS 17013 test -z "$as_dir" && as_dir=. 17014 for ac_exec_ext in '' $ac_executable_extensions; do 17015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17016 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext" 17017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17018 break 2 17019 fi 17020done 17021 done 17022IFS=$as_save_IFS 17023 17024 test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="glib-genmarshal" 17025 ;; 17026esac 17027fi 17028GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL 17029if test -n "$GLIB_GENMARSHAL"; then 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5 17031$as_echo "$GLIB_GENMARSHAL" >&6; } 17032else 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17034$as_echo "no" >&6; } 17035fi 17036 17037 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5 17039$as_echo "$GLIB_GENMARSHAL" >&6; } 17040 fi 17041 fi 17042 if ! $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&5 17044$as_echo "$as_me: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&2;} 17045 fi 17046 17047 17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-mkenums" >&5 17049$as_echo_n "checking for glib-mkenums... " >&6; } 17050 if test "x$GLIB_MKENUMS" != "x"; then 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS (from environment)" >&5 17052$as_echo "$GLIB_MKENUMS (from environment)" >&6; } 17053 else 17054 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5 17056$as_echo "$GLIB_MKENUMS" >&6; } 17057 fi 17058 if ! $GLIB_MKENUMS --version 2>/dev/null >/dev/null; then 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_MKENUMS does not seem to work!" >&5 17060$as_echo "$as_me: WARNING: $GLIB_MKENUMS does not seem to work!" >&2;} 17061 fi 17062 17063 17064 17065 17066 17067pkg_failed=no 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5 17069$as_echo_n "checking for GIO... " >&6; } 17070 17071if test -n "$PKG_CONFIG"; then 17072 if test -n "$GIO_CFLAGS"; then 17073 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS" 17074 else 17075 if test -n "$PKG_CONFIG" && \ 17076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5 17077 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5 17078 ac_status=$? 17079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17080 test $ac_status = 0; }; then 17081 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB_REQ" 2>/dev/null` 17082else 17083 pkg_failed=yes 17084fi 17085 fi 17086else 17087 pkg_failed=untried 17088fi 17089if test -n "$PKG_CONFIG"; then 17090 if test -n "$GIO_LIBS"; then 17091 pkg_cv_GIO_LIBS="$GIO_LIBS" 17092 else 17093 if test -n "$PKG_CONFIG" && \ 17094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5 17095 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5 17096 ac_status=$? 17097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17098 test $ac_status = 0; }; then 17099 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB_REQ" 2>/dev/null` 17100else 17101 pkg_failed=yes 17102fi 17103 fi 17104else 17105 pkg_failed=untried 17106fi 17107 17108 17109 17110if test $pkg_failed = yes; then 17111 17112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17113 _pkg_short_errors_supported=yes 17114else 17115 _pkg_short_errors_supported=no 17116fi 17117 if test $_pkg_short_errors_supported = yes; then 17118 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"` 17119 else 17120 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"` 17121 fi 17122 # Put the nasty error message in config.log where it belongs 17123 echo "$GIO_PKG_ERRORS" >&5 17124 17125 as_fn_error $? "Package requirements (gio-2.0 >= $GLIB_REQ) were not met: 17126 17127$GIO_PKG_ERRORS 17128 17129Consider adjusting the PKG_CONFIG_PATH environment variable if you 17130installed software in a non-standard prefix. 17131 17132Alternatively, you may set the environment variables GIO_CFLAGS 17133and GIO_LIBS to avoid the need to call pkg-config. 17134See the pkg-config man page for more details. 17135" "$LINENO" 5 17136elif test $pkg_failed = untried; then 17137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17139as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17140is in your PATH or set the PKG_CONFIG environment variable to the full 17141path to pkg-config. 17142 17143Alternatively, you may set the environment variables GIO_CFLAGS 17144and GIO_LIBS to avoid the need to call pkg-config. 17145See the pkg-config man page for more details. 17146 17147To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17148See \`config.log' for more details" "$LINENO" 5; } 17149else 17150 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS 17151 GIO_LIBS=$pkg_cv_GIO_LIBS 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17153$as_echo "yes" >&6; } 17154 : 17155fi 17156 if test "x$HAVE_GIO" = "xno"; then 17157 as_fn_error $? "This package requires GIO >= $GLIB_REQ to compile." "$LINENO" 5 17158 fi 17159 17160 GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`" 17161 17162cat >>confdefs.h <<_ACEOF 17163#define GIO_MODULE_DIR "$GIO_MODULE_DIR" 17164_ACEOF 17165 17166 GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`" 17167 17168cat >>confdefs.h <<_ACEOF 17169#define GIO_LIBDIR "$GIO_LIBDIR" 17170_ACEOF 17171 17172 GIO_PREFIX="`$PKG_CONFIG --variable=prefix gio-2.0`" 17173 17174cat >>confdefs.h <<_ACEOF 17175#define GIO_PREFIX "$GIO_PREFIX" 17176_ACEOF 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 module=gstreamer-$GST_API_VERSION 17187 minver=$GST_REQ 17188 name="GStreamer" 17189 required="yes" 17190 17191pkg_failed=no 17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5 17193$as_echo_n "checking for GST... " >&6; } 17194 17195if test -n "$PKG_CONFIG"; then 17196 if test -n "$GST_CFLAGS"; then 17197 pkg_cv_GST_CFLAGS="$GST_CFLAGS" 17198 else 17199 if test -n "$PKG_CONFIG" && \ 17200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17201 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17202 ac_status=$? 17203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17204 test $ac_status = 0; }; then 17205 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null` 17206else 17207 pkg_failed=yes 17208fi 17209 fi 17210else 17211 pkg_failed=untried 17212fi 17213if test -n "$PKG_CONFIG"; then 17214 if test -n "$GST_LIBS"; then 17215 pkg_cv_GST_LIBS="$GST_LIBS" 17216 else 17217 if test -n "$PKG_CONFIG" && \ 17218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17219 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17220 ac_status=$? 17221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17222 test $ac_status = 0; }; then 17223 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null` 17224else 17225 pkg_failed=yes 17226fi 17227 fi 17228else 17229 pkg_failed=untried 17230fi 17231 17232 17233 17234if test $pkg_failed = yes; then 17235 17236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17237 _pkg_short_errors_supported=yes 17238else 17239 _pkg_short_errors_supported=no 17240fi 17241 if test $_pkg_short_errors_supported = yes; then 17242 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"` 17243 else 17244 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"` 17245 fi 17246 # Put the nasty error message in config.log where it belongs 17247 echo "$GST_PKG_ERRORS" >&5 17248 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17250$as_echo "no" >&6; } 17251 17252 HAVE_GST="no" 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5 17254$as_echo "$as_me: $GST_PKG_ERRORS" >&6;} 17255 if test "x$required" = "xyes"; then 17256 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17257 else 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17259$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17260 fi 17261 17262elif test $pkg_failed = untried; then 17263 17264 HAVE_GST="no" 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5 17266$as_echo "$as_me: $GST_PKG_ERRORS" >&6;} 17267 if test "x$required" = "xyes"; then 17268 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17269 else 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17271$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17272 fi 17273 17274else 17275 GST_CFLAGS=$pkg_cv_GST_CFLAGS 17276 GST_LIBS=$pkg_cv_GST_LIBS 17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17278$as_echo "yes" >&6; } 17279 17280 HAVE_GST="yes" 17281 17282fi 17283 17284 17285 if test -z $GST_TOOLS_DIR; then 17286 GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-$GST_API_VERSION` 17287 if test -z $GST_TOOLS_DIR; then 17288 as_fn_error $? "no tools dir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5 17289 fi 17290 fi 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer tools in $GST_TOOLS_DIR" >&5 17292$as_echo "$as_me: using GStreamer tools in $GST_TOOLS_DIR" >&6;} 17293 17294 17295 if test -z $GST_PLUGINS_DIR; then 17296 GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-$GST_API_VERSION` 17297 if test -z $GST_PLUGINS_DIR; then 17298 as_fn_error $? "no pluginsdir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5 17299 fi 17300 fi 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&5 17302$as_echo "$as_me: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&6;} 17303 17304 17305 17306 17307 module=gstreamer-base-$GST_API_VERSION 17308 minver=$GST_REQ 17309 name="GStreamer Base Libraries" 17310 required="yes" 17311 17312pkg_failed=no 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_BASE" >&5 17314$as_echo_n "checking for GST_BASE... " >&6; } 17315 17316if test -n "$PKG_CONFIG"; then 17317 if test -n "$GST_BASE_CFLAGS"; then 17318 pkg_cv_GST_BASE_CFLAGS="$GST_BASE_CFLAGS" 17319 else 17320 if test -n "$PKG_CONFIG" && \ 17321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17322 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17323 ac_status=$? 17324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17325 test $ac_status = 0; }; then 17326 pkg_cv_GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null` 17327else 17328 pkg_failed=yes 17329fi 17330 fi 17331else 17332 pkg_failed=untried 17333fi 17334if test -n "$PKG_CONFIG"; then 17335 if test -n "$GST_BASE_LIBS"; then 17336 pkg_cv_GST_BASE_LIBS="$GST_BASE_LIBS" 17337 else 17338 if test -n "$PKG_CONFIG" && \ 17339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17340 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17341 ac_status=$? 17342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17343 test $ac_status = 0; }; then 17344 pkg_cv_GST_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null` 17345else 17346 pkg_failed=yes 17347fi 17348 fi 17349else 17350 pkg_failed=untried 17351fi 17352 17353 17354 17355if test $pkg_failed = yes; then 17356 17357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17358 _pkg_short_errors_supported=yes 17359else 17360 _pkg_short_errors_supported=no 17361fi 17362 if test $_pkg_short_errors_supported = yes; then 17363 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"` 17364 else 17365 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"` 17366 fi 17367 # Put the nasty error message in config.log where it belongs 17368 echo "$GST_BASE_PKG_ERRORS" >&5 17369 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17371$as_echo "no" >&6; } 17372 17373 HAVE_GST_BASE="no" 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5 17375$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;} 17376 if test "x$required" = "xyes"; then 17377 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17378 else 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17380$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17381 fi 17382 17383elif test $pkg_failed = untried; then 17384 17385 HAVE_GST_BASE="no" 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5 17387$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;} 17388 if test "x$required" = "xyes"; then 17389 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17390 else 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17392$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17393 fi 17394 17395else 17396 GST_BASE_CFLAGS=$pkg_cv_GST_BASE_CFLAGS 17397 GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17399$as_echo "yes" >&6; } 17400 17401 HAVE_GST_BASE="yes" 17402 17403fi 17404 17405 17406 17407 17408 17409 module=gstreamer-plugins-base-$GST_API_VERSION 17410 minver=$GST_PBREQ 17411 name="GStreamer Base Plugins" 17412 required="yes" 17413 17414pkg_failed=no 17415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_BASE" >&5 17416$as_echo_n "checking for GST_PLUGINS_BASE... " >&6; } 17417 17418if test -n "$PKG_CONFIG"; then 17419 if test -n "$GST_PLUGINS_BASE_CFLAGS"; then 17420 pkg_cv_GST_PLUGINS_BASE_CFLAGS="$GST_PLUGINS_BASE_CFLAGS" 17421 else 17422 if test -n "$PKG_CONFIG" && \ 17423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17424 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17425 ac_status=$? 17426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17427 test $ac_status = 0; }; then 17428 pkg_cv_GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null` 17429else 17430 pkg_failed=yes 17431fi 17432 fi 17433else 17434 pkg_failed=untried 17435fi 17436if test -n "$PKG_CONFIG"; then 17437 if test -n "$GST_PLUGINS_BASE_LIBS"; then 17438 pkg_cv_GST_PLUGINS_BASE_LIBS="$GST_PLUGINS_BASE_LIBS" 17439 else 17440 if test -n "$PKG_CONFIG" && \ 17441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17442 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17443 ac_status=$? 17444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17445 test $ac_status = 0; }; then 17446 pkg_cv_GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null` 17447else 17448 pkg_failed=yes 17449fi 17450 fi 17451else 17452 pkg_failed=untried 17453fi 17454 17455 17456 17457if test $pkg_failed = yes; then 17458 17459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17460 _pkg_short_errors_supported=yes 17461else 17462 _pkg_short_errors_supported=no 17463fi 17464 if test $_pkg_short_errors_supported = yes; then 17465 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"` 17466 else 17467 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"` 17468 fi 17469 # Put the nasty error message in config.log where it belongs 17470 echo "$GST_PLUGINS_BASE_PKG_ERRORS" >&5 17471 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17473$as_echo "no" >&6; } 17474 17475 HAVE_GST_PLUGINS_BASE="no" 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5 17477$as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;} 17478 if test "x$required" = "xyes"; then 17479 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17480 else 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17482$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17483 fi 17484 17485elif test $pkg_failed = untried; then 17486 17487 HAVE_GST_PLUGINS_BASE="no" 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5 17489$as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;} 17490 if test "x$required" = "xyes"; then 17491 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17492 else 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17494$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17495 fi 17496 17497else 17498 GST_PLUGINS_BASE_CFLAGS=$pkg_cv_GST_PLUGINS_BASE_CFLAGS 17499 GST_PLUGINS_BASE_LIBS=$pkg_cv_GST_PLUGINS_BASE_LIBS 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17501$as_echo "yes" >&6; } 17502 17503 HAVE_GST_PLUGINS_BASE="yes" 17504 17505fi 17506 17507 17508 17509 if test "x$HAVE_GST_PLUGINS_BASE" = "xyes"; then 17510 if test -z $GSTPB_PLUGINS_DIR; then 17511 GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-$GST_API_VERSION` 17512 if test -z $GSTPB_PLUGINS_DIR; then 17513 as_fn_error $? "no pluginsdir set in GStreamer Base Plugins pkg-config file" "$LINENO" 5 17514 fi 17515 fi 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&5 17517$as_echo "$as_me: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&6;} 17518 GST_PLUGINS_BASE_DIR="$GSTPB_PLUGINS_DIR/gst:$GSTPB_PLUGINS_DIR/sys:$GSTPB_PLUGINS_DIR/ext" 17519 17520 17521 fi 17522 17523 17524 17525 module=gstreamer-check-$GST_API_VERSION 17526 minver=$GST_REQ 17527 name="GStreamer Check unittest Library" 17528 required=no 17529 17530pkg_failed=no 17531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CHECK" >&5 17532$as_echo_n "checking for GST_CHECK... " >&6; } 17533 17534if test -n "$PKG_CONFIG"; then 17535 if test -n "$GST_CHECK_CFLAGS"; then 17536 pkg_cv_GST_CHECK_CFLAGS="$GST_CHECK_CFLAGS" 17537 else 17538 if test -n "$PKG_CONFIG" && \ 17539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17540 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17541 ac_status=$? 17542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17543 test $ac_status = 0; }; then 17544 pkg_cv_GST_CHECK_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null` 17545else 17546 pkg_failed=yes 17547fi 17548 fi 17549else 17550 pkg_failed=untried 17551fi 17552if test -n "$PKG_CONFIG"; then 17553 if test -n "$GST_CHECK_LIBS"; then 17554 pkg_cv_GST_CHECK_LIBS="$GST_CHECK_LIBS" 17555 else 17556 if test -n "$PKG_CONFIG" && \ 17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5 17558 ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5 17559 ac_status=$? 17560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17561 test $ac_status = 0; }; then 17562 pkg_cv_GST_CHECK_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null` 17563else 17564 pkg_failed=yes 17565fi 17566 fi 17567else 17568 pkg_failed=untried 17569fi 17570 17571 17572 17573if test $pkg_failed = yes; then 17574 17575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17576 _pkg_short_errors_supported=yes 17577else 17578 _pkg_short_errors_supported=no 17579fi 17580 if test $_pkg_short_errors_supported = yes; then 17581 GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"` 17582 else 17583 GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"` 17584 fi 17585 # Put the nasty error message in config.log where it belongs 17586 echo "$GST_CHECK_PKG_ERRORS" >&5 17587 17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17589$as_echo "no" >&6; } 17590 17591 HAVE_GST_CHECK="no" 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5 17593$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;} 17594 if test "x$required" = "xyes"; then 17595 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17596 else 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17598$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17599 fi 17600 17601elif test $pkg_failed = untried; then 17602 17603 HAVE_GST_CHECK="no" 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5 17605$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;} 17606 if test "x$required" = "xyes"; then 17607 as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5 17608 else 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5 17610$as_echo "$as_me: no $module >= $minver ($name) found" >&6;} 17611 fi 17612 17613else 17614 GST_CHECK_CFLAGS=$pkg_cv_GST_CHECK_CFLAGS 17615 GST_CHECK_LIBS=$pkg_cv_GST_CHECK_LIBS 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17617$as_echo "yes" >&6; } 17618 17619 HAVE_GST_CHECK="yes" 17620 17621fi 17622 17623 17624 17625 if test "x$HAVE_GST_CHECK" = "xyes"; then 17626 HAVE_GST_CHECK_TRUE= 17627 HAVE_GST_CHECK_FALSE='#' 17628else 17629 HAVE_GST_CHECK_TRUE='#' 17630 HAVE_GST_CHECK_FALSE= 17631fi 17632 17633 17634{ $as_echo "$as_me:${as_lineno-$LINENO}: Using GStreamer Core Plugins in $GST_PLUGINS_DIR" >&5 17635$as_echo "$as_me: Using GStreamer Core Plugins in $GST_PLUGINS_DIR" >&6;} 17636{ $as_echo "$as_me:${as_lineno-$LINENO}: Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&5 17637$as_echo "$as_me: Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&6;} 17638 17639# Check whether --enable-Bsymbolic was given. 17640if test "${enable_Bsymbolic+set}" = set; then : 17641 enableval=$enable_Bsymbolic; 17642else 17643 SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic linker flag" >&5 17645$as_echo_n "checking for -Bsymbolic linker flag... " >&6; } 17646 LDFLAGS=-Wl,-Bsymbolic 17647 LIBS= 17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17649/* end confdefs.h. */ 17650 17651int 17652main () 17653{ 17654return 0 17655 ; 17656 return 0; 17657} 17658_ACEOF 17659if ac_fn_c_try_link "$LINENO"; then : 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17661$as_echo "yes" >&6; } 17662 enable_Bsymbolic=yes 17663else 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17665$as_echo "no" >&6; } 17666 enable_Bsymbolic=no 17667fi 17668rm -f core conftest.err conftest.$ac_objext \ 17669 conftest$ac_exeext conftest.$ac_ext 17670 LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}" 17671fi 17672 17673 17674 17675 17676 17677 EXP_VAR=PLUGINDIR 17678 FROM_VAR=${libdir}/gstreamer-$GST_API_VERSION 17679 17680 prefix_save=$prefix 17681 exec_prefix_save=$exec_prefix 17682 17683 if test "x$prefix" = "xNONE"; then 17684 prefix="$ac_default_prefix" 17685 fi 17686 if test "x$exec_prefix" = "xNONE"; then 17687 exec_prefix=$prefix 17688 fi 17689 17690 full_var="$FROM_VAR" 17691 while true; do 17692 new_full_var="`eval echo $full_var`" 17693 if test "x$new_full_var" = "x$full_var"; then break; fi 17694 full_var=$new_full_var 17695 done 17696 17697 full_var=$new_full_var 17698 PLUGINDIR="$full_var" 17699 17700 17701 prefix=$prefix_save 17702 exec_prefix=$exec_prefix_save 17703 17704 17705cat >>confdefs.h <<_ACEOF 17706#define PLUGINDIR "$PLUGINDIR" 17707_ACEOF 17708 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $PLUGINDIR as the plugin install location" >&5 17710$as_echo "$as_me: Using $PLUGINDIR as the plugin install location" >&6;} 17711 17712 plugindir="\$(libdir)/gstreamer-$GST_API_VERSION" 17713 17714 17715 17716 if test "x$enable_static" = "xyes"; then 17717 GST_PLUGIN_BUILD_STATIC_TRUE= 17718 GST_PLUGIN_BUILD_STATIC_FALSE='#' 17719else 17720 GST_PLUGIN_BUILD_STATIC_TRUE='#' 17721 GST_PLUGIN_BUILD_STATIC_FALSE= 17722fi 17723 17724 17725 17726 17727 17728 17729 WARNING_CFLAGS="" 17730 ERROR_CFLAGS="" 17731 17732 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5 17734$as_echo_n "checking to see if compiler understands -Wall... " >&6; } 17735 17736 save_CFLAGS="$CFLAGS" 17737 CFLAGS="$CFLAGS -Wall" 17738 17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740/* end confdefs.h. */ 17741 17742int 17743main () 17744{ 17745 17746 ; 17747 return 0; 17748} 17749_ACEOF 17750if ac_fn_c_try_compile "$LINENO"; then : 17751 flag_ok=yes 17752else 17753 flag_ok=no 17754fi 17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17756 CFLAGS="$save_CFLAGS" 17757 17758 if test "X$flag_ok" = Xyes ; then 17759 WARNING_CFLAGS="$WARNING_CFLAGS -Wall" 17760 true 17761 else 17762 17763 true 17764 fi 17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17766$as_echo "$flag_ok" >&6; } 17767 17768 17769 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5 17771$as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; } 17772 17773 save_CFLAGS="$CFLAGS" 17774 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 17775 17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17777/* end confdefs.h. */ 17778 17779int 17780main () 17781{ 17782 17783 ; 17784 return 0; 17785} 17786_ACEOF 17787if ac_fn_c_try_compile "$LINENO"; then : 17788 flag_ok=yes 17789else 17790 flag_ok=no 17791fi 17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17793 CFLAGS="$save_CFLAGS" 17794 17795 if test "X$flag_ok" = Xyes ; then 17796 WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement" 17797 true 17798 else 17799 17800 true 17801 fi 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17803$as_echo "$flag_ok" >&6; } 17804 17805 17806 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wvla" >&5 17808$as_echo_n "checking to see if compiler understands -Wvla... " >&6; } 17809 17810 save_CFLAGS="$CFLAGS" 17811 CFLAGS="$CFLAGS -Wvla" 17812 17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17814/* end confdefs.h. */ 17815 17816int 17817main () 17818{ 17819 17820 ; 17821 return 0; 17822} 17823_ACEOF 17824if ac_fn_c_try_compile "$LINENO"; then : 17825 flag_ok=yes 17826else 17827 flag_ok=no 17828fi 17829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17830 CFLAGS="$save_CFLAGS" 17831 17832 if test "X$flag_ok" = Xyes ; then 17833 WARNING_CFLAGS="$WARNING_CFLAGS -Wvla" 17834 true 17835 else 17836 17837 true 17838 fi 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17840$as_echo "$flag_ok" >&6; } 17841 17842 17843 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wpointer-arith" >&5 17845$as_echo_n "checking to see if compiler understands -Wpointer-arith... " >&6; } 17846 17847 save_CFLAGS="$CFLAGS" 17848 CFLAGS="$CFLAGS -Wpointer-arith" 17849 17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851/* end confdefs.h. */ 17852 17853int 17854main () 17855{ 17856 17857 ; 17858 return 0; 17859} 17860_ACEOF 17861if ac_fn_c_try_compile "$LINENO"; then : 17862 flag_ok=yes 17863else 17864 flag_ok=no 17865fi 17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17867 CFLAGS="$save_CFLAGS" 17868 17869 if test "X$flag_ok" = Xyes ; then 17870 WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith" 17871 true 17872 else 17873 17874 true 17875 fi 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17877$as_echo "$flag_ok" >&6; } 17878 17879 17880 if test "x$FATAL_WARNINGS" != "xno" 17881 then 17882 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5 17884$as_echo_n "checking to see if compiler understands -Werror... " >&6; } 17885 17886 save_CFLAGS="$CFLAGS" 17887 CFLAGS="$CFLAGS -Werror" 17888 17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17890/* end confdefs.h. */ 17891 17892int 17893main () 17894{ 17895 17896 ; 17897 return 0; 17898} 17899_ACEOF 17900if ac_fn_c_try_compile "$LINENO"; then : 17901 flag_ok=yes 17902else 17903 flag_ok=no 17904fi 17905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17906 CFLAGS="$save_CFLAGS" 17907 17908 if test "X$flag_ok" = Xyes ; then 17909 ERROR_CFLAGS="$ERROR_CFLAGS -Werror" 17910 true 17911 else 17912 17913 true 17914 fi 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17916$as_echo "$flag_ok" >&6; } 17917 17918 fi 17919 17920 if test "x 17921 -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef 17922 -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition 17923 -Winit-self -Wmissing-include-dirs -Waddress 17924 -Waggregate-return -Wno-multichar -Wnested-externs " != "x" 17925 then 17926 UNSUPPORTED="" 17927 list=" 17928 -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef 17929 -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition 17930 -Winit-self -Wmissing-include-dirs -Waddress 17931 -Waggregate-return -Wno-multichar -Wnested-externs " 17932 for each in $list 17933 do 17934 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $each" >&5 17936$as_echo_n "checking to see if compiler understands $each... " >&6; } 17937 17938 save_CFLAGS="$CFLAGS" 17939 CFLAGS="$CFLAGS $each" 17940 17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17942/* end confdefs.h. */ 17943 17944int 17945main () 17946{ 17947 17948 ; 17949 return 0; 17950} 17951_ACEOF 17952if ac_fn_c_try_compile "$LINENO"; then : 17953 flag_ok=yes 17954else 17955 flag_ok=no 17956fi 17957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17958 CFLAGS="$save_CFLAGS" 17959 17960 if test "X$flag_ok" = Xyes ; then 17961 WARNING_CFLAGS="$WARNING_CFLAGS $each" 17962 true 17963 else 17964 UNSUPPORTED="$UNSUPPORTED $each" 17965 true 17966 fi 17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 17968$as_echo "$flag_ok" >&6; } 17969 17970 done 17971 if test "X$UNSUPPORTED" != X ; then 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5 17973$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;} 17974 fi 17975 fi 17976 17977 17978 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CFLAGS to $WARNING_CFLAGS" >&5 17980$as_echo "$as_me: set WARNING_CFLAGS to $WARNING_CFLAGS" >&6;} 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CFLAGS to $ERROR_CFLAGS" >&5 17982$as_echo "$as_me: set ERROR_CFLAGS to $ERROR_CFLAGS" >&6;} 17983 17984 17985 17986 if test "x$GST_GIT" = "xyes"; then 17987 GST_LEVEL_DEFAULT=GST_LEVEL_ERROR 17988 else 17989 GST_LEVEL_DEFAULT=GST_LEVEL_NONE 17990 fi 17991 17992cat >>confdefs.h <<_ACEOF 17993#define GST_LEVEL_DEFAULT $GST_LEVEL_DEFAULT 17994_ACEOF 17995 17996 17997 17998 17999 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5 18001$as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; } 18002 18003 save_CFLAGS="$CFLAGS" 18004 CFLAGS="$CFLAGS -fno-strict-aliasing" 18005 18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18007/* end confdefs.h. */ 18008 18009int 18010main () 18011{ 18012 18013 ; 18014 return 0; 18015} 18016_ACEOF 18017if ac_fn_c_try_compile "$LINENO"; then : 18018 flag_ok=yes 18019else 18020 flag_ok=no 18021fi 18022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18023 CFLAGS="$save_CFLAGS" 18024 18025 if test "X$flag_ok" = Xyes ; then 18026 EXTRA_CFLAGS="-fno-strict-aliasing" 18027 true 18028 else 18029 18030 true 18031 fi 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 18033$as_echo "$flag_ok" >&6; } 18034 18035 18036 18037 18038 18039if test "x$USE_DEBUG" = xyes; then 18040 PROFILE_CFLAGS="-g" 18041fi 18042 18043 18044if test "x$GST_GIT" = "xyes"; then 18045 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED" 18046else 18047 DEPRECATED_CFLAGS="" 18048fi 18049 18050 18051GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)" 18052 18053 18054 18055GST_CFLAGS="$GST_CFLAGS" 18056GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)" 18057 18058 18059 18060GST_ALL_LDFLAGS="-no-undefined" 18061if test "x${enable_Bsymbolic}" = "xyes"; then 18062 GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic" 18063fi 18064 18065 18066GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^_*gst_plugin_.*' $GST_ALL_LDFLAGS" 18067 18068 18069 18070case $host_os in 18071 darwin*) 18072 DARWIN_LDFLAGS="-Wl,-read_only_relocs,suppress" 18073 ;; 18074 *) 18075 DARWIN_LDFLAGS="" 18076 ;; 18077esac 18078 18079 18080# Check whether --enable-gpl was given. 18081if test "${enable_gpl+set}" = set; then : 18082 enableval=$enable_gpl; 18083fi 18084 18085 if test "x$enable_gpl" = "xyes"; then 18086 GST_LIBAV_ENABLE_GPL_TRUE= 18087 GST_LIBAV_ENABLE_GPL_FALSE='#' 18088else 18089 GST_LIBAV_ENABLE_GPL_TRUE='#' 18090 GST_LIBAV_ENABLE_GPL_FALSE= 18091fi 18092 18093if test "x$enable_gpl" = "xyes"; then 18094 18095$as_echo "#define GST_LIBAV_ENABLE_GPL /**/" >>confdefs.h 18096 18097fi 18098 18099 18100HAVE_LIBAV_UNINSTALLED=1 18101 18102 18103# Check whether --with-system-libav was given. 18104if test "${with_system_libav+set}" = set; then : 18105 withval=$with_system_libav; 18106fi 18107 18108 18109HAVE_LZMA="no" 18110HAVE_BZ2="no" 18111if test "x$with_system_libav" = "xyes"; then 18112 18113pkg_failed=no 18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAV" >&5 18115$as_echo_n "checking for LIBAV... " >&6; } 18116 18117if test -n "$PKG_CONFIG"; then 18118 if test -n "$LIBAV_CFLAGS"; then 18119 pkg_cv_LIBAV_CFLAGS="$LIBAV_CFLAGS" 18120 else 18121 if test -n "$PKG_CONFIG" && \ 18122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavfilter libavformat libavcodec >= 58 libavutil\""; } >&5 18123 ($PKG_CONFIG --exists --print-errors "libavfilter libavformat libavcodec >= 58 libavutil") 2>&5 18124 ac_status=$? 18125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18126 test $ac_status = 0; }; then 18127 pkg_cv_LIBAV_CFLAGS=`$PKG_CONFIG --cflags "libavfilter libavformat libavcodec >= 58 libavutil" 2>/dev/null` 18128else 18129 pkg_failed=yes 18130fi 18131 fi 18132else 18133 pkg_failed=untried 18134fi 18135if test -n "$PKG_CONFIG"; then 18136 if test -n "$LIBAV_LIBS"; then 18137 pkg_cv_LIBAV_LIBS="$LIBAV_LIBS" 18138 else 18139 if test -n "$PKG_CONFIG" && \ 18140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavfilter libavformat libavcodec >= 58 libavutil\""; } >&5 18141 ($PKG_CONFIG --exists --print-errors "libavfilter libavformat libavcodec >= 58 libavutil") 2>&5 18142 ac_status=$? 18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18144 test $ac_status = 0; }; then 18145 pkg_cv_LIBAV_LIBS=`$PKG_CONFIG --libs "libavfilter libavformat libavcodec >= 58 libavutil" 2>/dev/null` 18146else 18147 pkg_failed=yes 18148fi 18149 fi 18150else 18151 pkg_failed=untried 18152fi 18153 18154 18155 18156if test $pkg_failed = yes; then 18157 18158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18159 _pkg_short_errors_supported=yes 18160else 18161 _pkg_short_errors_supported=no 18162fi 18163 if test $_pkg_short_errors_supported = yes; then 18164 LIBAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavfilter libavformat libavcodec >= 58 libavutil"` 18165 else 18166 LIBAV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavfilter libavformat libavcodec >= 58 libavutil"` 18167 fi 18168 # Put the nasty error message in config.log where it belongs 18169 echo "$LIBAV_PKG_ERRORS" >&5 18170 18171 as_fn_error $? "Package requirements (libavfilter libavformat libavcodec >= 58 libavutil) were not met: 18172 18173$LIBAV_PKG_ERRORS 18174 18175Consider adjusting the PKG_CONFIG_PATH environment variable if you 18176installed software in a non-standard prefix. 18177 18178Alternatively, you may set the environment variables LIBAV_CFLAGS 18179and LIBAV_LIBS to avoid the need to call pkg-config. 18180See the pkg-config man page for more details. 18181" "$LINENO" 5 18182elif test $pkg_failed = untried; then 18183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18185as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18186is in your PATH or set the PKG_CONFIG environment variable to the full 18187path to pkg-config. 18188 18189Alternatively, you may set the environment variables LIBAV_CFLAGS 18190and LIBAV_LIBS to avoid the need to call pkg-config. 18191See the pkg-config man page for more details. 18192 18193To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18194See \`config.log' for more details" "$LINENO" 5; } 18195else 18196 LIBAV_CFLAGS=$pkg_cv_LIBAV_CFLAGS 18197 LIBAV_LIBS=$pkg_cv_LIBAV_LIBS 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18199$as_echo "yes" >&6; } 18200 : 18201fi 18202 saved_CPPFLAGS="$CPPFLAGS" 18203 CPPFLAGS="$CPPFLAGS $LIBAV_CFLAGS" 18204 for ac_header in avi.h 18205do : 18206 ac_fn_c_check_header_mongrel "$LINENO" "avi.h" "ac_cv_header_avi_h" "$ac_includes_default" 18207if test "x$ac_cv_header_avi_h" = xyes; then : 18208 cat >>confdefs.h <<_ACEOF 18209#define HAVE_AVI_H 1 18210_ACEOF 18211 18212fi 18213 18214done 18215 18216 18217$as_echo "#define LIBAV_SOURCE \"system install\"" >>confdefs.h 18218 18219 HAVE_LIBAV_UNINSTALLED=0 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system-installed libav code" >&5 18221$as_echo "$as_me: Using system-installed libav code" >&6;} 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libav is provided by FFmpeg" >&5 18223$as_echo_n "checking whether libav is provided by FFmpeg... " >&6; } 18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18225/* end confdefs.h. */ 18226 18227 #include <libavcodec/avcodec.h> 18228 18229int 18230main () 18231{ 18232 18233 #if LIBAVCODEC_VERSION_MICRO >= 100 18234 /* FFmpeg uses 100+ as its micro version */ 18235 #else 18236 #error libav provider should be FFmpeg 18237 #endif 18238 18239 ; 18240 return 0; 18241} 18242_ACEOF 18243if ac_fn_c_try_link "$LINENO"; then : 18244 is_ffmpeg=yes 18245else 18246 is_ffmpeg=no 18247fi 18248rm -f core conftest.err conftest.$ac_objext \ 18249 conftest$ac_exeext conftest.$ac_ext 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_ffmpeg" >&5 18251$as_echo "$is_ffmpeg" >&6; } 18252 CPPFLAGS="$saved_CPPFLAGS" 18253 if test "$is_ffmpeg" = no; then 18254 as_fn_error $? "Uncompatible libavcodec found" "$LINENO" 5 18255 fi 18256else 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: Using local Libav snapshot" >&5 18258$as_echo "$as_me: Using local Libav snapshot" >&6;} 18259 18260 save_LIBS=$LIBS 18261 LIBS="$LIBS -lbz2" 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5 18263$as_echo_n "checking for BZ2_bzlibVersion in -lbz2... " >&6; } 18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18265/* end confdefs.h. */ 18266#include <bzlib.h> 18267int 18268main () 18269{ 18270const char *version = BZ2_bzlibVersion (); 18271 ; 18272 return 0; 18273} 18274_ACEOF 18275if ac_fn_c_try_link "$LINENO"; then : 18276 HAVE_BZ2=yes 18277else 18278 HAVE_BZ2=no 18279fi 18280rm -f core conftest.err conftest.$ac_objext \ 18281 conftest$ac_exeext conftest.$ac_ext 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_BZ2" >&5 18283$as_echo "$HAVE_BZ2" >&6; } 18284 LIBS=$save_LIBS 18285 if test "x$HAVE_BZ2" = "xno"; then 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libbz2 not found, matroska demuxer will not be able to read bz2 tracks" >&5 18287$as_echo "$as_me: WARNING: libbz2 not found, matroska demuxer will not be able to read bz2 tracks" >&2;} 18288 BZ2_LIBS= 18289 else 18290 BZ2_LIBS="-lbz2" 18291 fi 18292 18293 save_LIBS=$LIBS 18294 LIBS="$LIBS -llzma" 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_version_string in -llzma" >&5 18296$as_echo_n "checking for lzma_version_string in -llzma... " >&6; } 18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18298/* end confdefs.h. */ 18299#include <lzma.h> 18300int 18301main () 18302{ 18303const char *version = lzma_version_string (); 18304 ; 18305 return 0; 18306} 18307_ACEOF 18308if ac_fn_c_try_link "$LINENO"; then : 18309 HAVE_LZMA=yes 18310else 18311 HAVE_LZMA=no 18312fi 18313rm -f core conftest.err conftest.$ac_objext \ 18314 conftest$ac_exeext conftest.$ac_ext 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LZMA" >&5 18316$as_echo "$HAVE_LZMA" >&6; } 18317 LIBS=$save_LIBS 18318 if test "x$HAVE_LZMA" = "xno"; then 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lzma not found, tiff reader will not be able to read lzma files" >&5 18320$as_echo "$as_me: WARNING: lzma not found, tiff reader will not be able to read lzma files" >&2;} 18321 LZMA_LIBS= 18322 else 18323 LZMA_LIBS="-llzma" 18324 fi 18325 18326 LIBAV_CPPFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav \ 18327 -I \$(top_builddir)/gst-libs/ext/libav" 18328 18329 LIBAV_CFLAGS="-Wno-deprecated-declarations" 18330 18331 LIBAV_DEPS="\$(top_builddir)/gst-libs/ext/libav/libavfilter/libavfilter.a \ 18332 \$(top_builddir)/gst-libs/ext/libav/libavformat/libavformat.a \ 18333 \$(top_builddir)/gst-libs/ext/libav/libavcodec/libavcodec.a \ 18334 \$(top_builddir)/gst-libs/ext/libav/libswresample/libswresample.a \ 18335 \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a" 18336 18337 LIBAV_LIBS="$ac_pwd/gst-libs/ext/libavfilter.la \ 18338 $ac_pwd/gst-libs/ext/libavformat.la \ 18339 $ac_pwd/gst-libs/ext/libavcodec.la \ 18340 $ac_pwd/gst-libs/ext/libswresample.la \ 18341 $ac_pwd/gst-libs/ext/libavutil.la" 18342 18343 LIBAV_SUBDIRS=gst-libs 18344 $as_echo "#define HAVE_AVI_H 1" >>confdefs.h 18345 18346 18347$as_echo "#define LIBAV_SOURCE \"local snapshot\"" >>confdefs.h 18348 18349 18350 18351# Check whether --with-libav-extra-configure was given. 18352if test "${with_libav_extra_configure+set}" = set; then : 18353 withval=$with_libav_extra_configure; 18354else 18355 with_libav=no 18356fi 18357 18358 18359 # basic arguments 18360 emblibav_configure_args="--prefix=$prefix" 18361 18362 # Enable pic and static so that we get .a files, but with PIC code. 18363 emblibav_configure_args="$emblibav_configure_args \ 18364 --enable-static --enable-pic \ 18365 --disable-avdevice --disable-postproc --disable-swscale \ 18366 --disable-programs --disable-ffplay --disable-ffprobe --disable-ffmpeg \ 18367 --disable-encoder=flac --disable-protocols --disable-devices \ 18368 --disable-network --disable-hwaccels --disable-dxva2 --disable-vdpau \ 18369 --disable-filters --enable-filter=yadif --disable-doc --disable-d3d11va \ 18370 --disable-audiotoolbox --disable-videotoolbox --disable-vaapi --disable-crystalhd \ 18371 --disable-mediacodec --disable-nvenc --disable-mmal --disable-omx \ 18372 --disable-omx-rpi --disable-cuda --disable-cuvid --disable-libmfx \ 18373 --disable-libnpp --disable-iconv --disable-jni --disable-v4l2_m2m --enable-optimizations" 18374 18375 if test "x$enable_gpl" == "xyes"; then 18376 emblibav_configure_args="$emblibav_configure_args --enable-gpl" 18377 fi 18378 18379 # if we are cross-compiling, tell libav so 18380 case $host in 18381 *android*) 18382 target_os=linux 18383 ;; 18384 *darwin*) 18385 target_os=darwin 18386 ;; 18387 *) 18388 target_os=`echo $host_os | sed 's/-gnu.*//'` 18389 ;; 18390 esac 18391 18392 if test "x$cross_compiling" = xyes; then 18393 emblibav_configure_args="$emblibav_configure_args --enable-cross-compile \ 18394 --target-os=$target_os --arch=$host_cpu --cross-prefix=$host_alias-" 18395 fi 18396 18397 case $host_os in 18398 mingw32*) 18399 WIN32_LIBS="-lws2_32 -lbcrypt" 18400 ;; 18401 *) 18402 WIN32_LIBS= 18403 ;; 18404 esac 18405 18406 if test x"$AR" != x; then 18407 emblibav_configure_args="$emblibav_configure_args --ar=\\\"\\\$AR\\\"" 18408 fi 18409 18410 if test x"$orig_AS" != x; then 18411 emblibav_configure_args="$emblibav_configure_args --as=\\\"\\\$orig_AS\\\"" 18412 export orig_AS 18413 elif test x"$CC" != x; then 18414 emblibav_configure_args="$emblibav_configure_args --as=\\\"\\\$CC\\\"" 18415 fi 18416 18417 if test x"$CC" != x; then 18418 emblibav_configure_args="$emblibav_configure_args --cc=\\\"\\\$CC\\\"" 18419 fi 18420 18421 if test x"$LD" != x; then 18422 emblibav_configure_args="$emblibav_configure_args --ld=\\\"\\\$CC\\\"" 18423 fi 18424 18425 if test x"$NM" != x; then 18426 emblibav_configure_args="$emblibav_configure_args --nm=\\\"\\\$NM\\\"" 18427 fi 18428 18429 LIBAV_OPTS=`cd $srcdir/gst-libs/ext/libav && ./configure --help` 18430 # Let's check if we can disable the building of the libav binary 18431 can_disable=`echo "$LIBAV_OPTS" | grep 'disable-ffmpeg'` 18432 if test "$can_disable" != ""; then 18433 emblibav_configure_args="$emblibav_configure_args --disable-ffmpeg" 18434 fi 18435 18436 # append extra configure options to emblibav_configure_args if needed 18437 if test "x$with_libav_extra_configure" != "xno"; then 18438 emblibav_configure_args="$emblibav_configure_args $with_libav_extra_configure" 18439 fi 18440 18441 18442 18443 18444 18445 ac_config_commands="$ac_config_commands configure-embedded-libav" 18446 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: Using included Libav code" >&5 18448$as_echo "$as_me: Using included Libav code" >&6;} 18449fi 18450 18451 if test "x$HAVE_BZ2" = "xyes"; then 18452 HAVE_BZ2_TRUE= 18453 HAVE_BZ2_FALSE='#' 18454else 18455 HAVE_BZ2_TRUE='#' 18456 HAVE_BZ2_FALSE= 18457fi 18458 18459 if test "x$HAVE_LZMA" = "xyes"; then 18460 HAVE_LZMA_TRUE= 18461 HAVE_LZMA_FALSE='#' 18462else 18463 HAVE_LZMA_TRUE='#' 18464 HAVE_LZMA_FALSE= 18465fi 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477if test x$HAVE_LIBAV_UNINSTALLED = x1; then 18478 18479$as_echo "#define HAVE_LIBAV_UNINSTALLED /**/" >>confdefs.h 18480 18481fi 18482 if test x$HAVE_LIBAV_UNINSTALLED = x1; then 18483 HAVE_LIBAV_UNINSTALLED_TRUE= 18484 HAVE_LIBAV_UNINSTALLED_FALSE='#' 18485else 18486 HAVE_LIBAV_UNINSTALLED_TRUE='#' 18487 HAVE_LIBAV_UNINSTALLED_FALSE= 18488fi 18489 18490 18491ac_config_files="$ac_config_files Makefile common/Makefile common/m4/Makefile ext/Makefile ext/libav/Makefile gst-libs/Makefile gst-libs/ext/Makefile docs/Makefile docs/plugins/Makefile docs/version.entities tests/Makefile tests/check/Makefile tests/files/Makefile pkgconfig/Makefile pkgconfig/gstreamer-plugins-libav-uninstalled.pc" 18492 18493cat >confcache <<\_ACEOF 18494# This file is a shell script that caches the results of configure 18495# tests run on this system so they can be shared between configure 18496# scripts and configure runs, see configure's option --config-cache. 18497# It is not useful on other systems. If it contains results you don't 18498# want to keep, you may remove or edit it. 18499# 18500# config.status only pays attention to the cache file if you give it 18501# the --recheck option to rerun configure. 18502# 18503# `ac_cv_env_foo' variables (set or unset) will be overridden when 18504# loading this file, other *unset* `ac_cv_foo' will be assigned the 18505# following values. 18506 18507_ACEOF 18508 18509# The following way of writing the cache mishandles newlines in values, 18510# but we know of no workaround that is simple, portable, and efficient. 18511# So, we kill variables containing newlines. 18512# Ultrix sh set writes to stderr and can't be redirected directly, 18513# and sets the high bit in the cache file unless we assign to the vars. 18514( 18515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18516 eval ac_val=\$$ac_var 18517 case $ac_val in #( 18518 *${as_nl}*) 18519 case $ac_var in #( 18520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18521$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18522 esac 18523 case $ac_var in #( 18524 _ | IFS | as_nl) ;; #( 18525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18526 *) { eval $ac_var=; unset $ac_var;} ;; 18527 esac ;; 18528 esac 18529 done 18530 18531 (set) 2>&1 | 18532 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18533 *${as_nl}ac_space=\ *) 18534 # `set' does not quote correctly, so add quotes: double-quote 18535 # substitution turns \\\\ into \\, and sed turns \\ into \. 18536 sed -n \ 18537 "s/'/'\\\\''/g; 18538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18539 ;; #( 18540 *) 18541 # `set' quotes correctly as required by POSIX, so do not add quotes. 18542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18543 ;; 18544 esac | 18545 sort 18546) | 18547 sed ' 18548 /^ac_cv_env_/b end 18549 t clear 18550 :clear 18551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18552 t end 18553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18554 :end' >>confcache 18555if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18556 if test -w "$cache_file"; then 18557 if test "x$cache_file" != "x/dev/null"; then 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18559$as_echo "$as_me: updating cache $cache_file" >&6;} 18560 if test ! -f "$cache_file" || test -h "$cache_file"; then 18561 cat confcache >"$cache_file" 18562 else 18563 case $cache_file in #( 18564 */* | ?:*) 18565 mv -f confcache "$cache_file"$$ && 18566 mv -f "$cache_file"$$ "$cache_file" ;; #( 18567 *) 18568 mv -f confcache "$cache_file" ;; 18569 esac 18570 fi 18571 fi 18572 else 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18574$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18575 fi 18576fi 18577rm -f confcache 18578 18579test "x$prefix" = xNONE && prefix=$ac_default_prefix 18580# Let make expand exec_prefix. 18581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18582 18583DEFS=-DHAVE_CONFIG_H 18584 18585ac_libobjs= 18586ac_ltlibobjs= 18587U= 18588for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18589 # 1. Remove the extension, and $U if already installed. 18590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18593 # will be set to the directory where LIBOBJS objects are built. 18594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18596done 18597LIBOBJS=$ac_libobjs 18598 18599LTLIBOBJS=$ac_ltlibobjs 18600 18601 18602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18603$as_echo_n "checking that generated files are newer than configure... " >&6; } 18604 if test -n "$am_sleep_pid"; then 18605 # Hide warnings about reused PIDs. 18606 wait $am_sleep_pid 2>/dev/null 18607 fi 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18609$as_echo "done" >&6; } 18610 if test -n "$EXEEXT"; then 18611 am__EXEEXT_TRUE= 18612 am__EXEEXT_FALSE='#' 18613else 18614 am__EXEEXT_TRUE='#' 18615 am__EXEEXT_FALSE= 18616fi 18617 18618if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18619 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18620Usually this means the macro was only invoked conditionally." "$LINENO" 5 18621fi 18622if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18623 as_fn_error $? "conditional \"AMDEP\" was never defined. 18624Usually this means the macro was only invoked conditionally." "$LINENO" 5 18625fi 18626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18627 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18628Usually this means the macro was only invoked conditionally." "$LINENO" 5 18629fi 18630if test -z "${HAVE_ORC_TRUE}" && test -z "${HAVE_ORC_FALSE}"; then 18631 as_fn_error $? "conditional \"HAVE_ORC\" was never defined. 18632Usually this means the macro was only invoked conditionally." "$LINENO" 5 18633fi 18634if test -z "${HAVE_ORCC_TRUE}" && test -z "${HAVE_ORCC_FALSE}"; then 18635 as_fn_error $? "conditional \"HAVE_ORCC\" was never defined. 18636Usually this means the macro was only invoked conditionally." "$LINENO" 5 18637fi 18638if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then 18639 as_fn_error $? "conditional \"GST_GCOV_ENABLED\" was never defined. 18640Usually this means the macro was only invoked conditionally." "$LINENO" 5 18641fi 18642 18643if test -z "${HAVE_CPU_I386_TRUE}" && test -z "${HAVE_CPU_I386_FALSE}"; then 18644 as_fn_error $? "conditional \"HAVE_CPU_I386\" was never defined. 18645Usually this means the macro was only invoked conditionally." "$LINENO" 5 18646fi 18647if test -z "${HAVE_CPU_PPC_TRUE}" && test -z "${HAVE_CPU_PPC_FALSE}"; then 18648 as_fn_error $? "conditional \"HAVE_CPU_PPC\" was never defined. 18649Usually this means the macro was only invoked conditionally." "$LINENO" 5 18650fi 18651if test -z "${HAVE_CPU_PPC64_TRUE}" && test -z "${HAVE_CPU_PPC64_FALSE}"; then 18652 as_fn_error $? "conditional \"HAVE_CPU_PPC64\" was never defined. 18653Usually this means the macro was only invoked conditionally." "$LINENO" 5 18654fi 18655if test -z "${HAVE_CPU_ALPHA_TRUE}" && test -z "${HAVE_CPU_ALPHA_FALSE}"; then 18656 as_fn_error $? "conditional \"HAVE_CPU_ALPHA\" was never defined. 18657Usually this means the macro was only invoked conditionally." "$LINENO" 5 18658fi 18659if test -z "${HAVE_CPU_ARC_TRUE}" && test -z "${HAVE_CPU_ARC_FALSE}"; then 18660 as_fn_error $? "conditional \"HAVE_CPU_ARC\" was never defined. 18661Usually this means the macro was only invoked conditionally." "$LINENO" 5 18662fi 18663if test -z "${HAVE_CPU_ARM_TRUE}" && test -z "${HAVE_CPU_ARM_FALSE}"; then 18664 as_fn_error $? "conditional \"HAVE_CPU_ARM\" was never defined. 18665Usually this means the macro was only invoked conditionally." "$LINENO" 5 18666fi 18667if test -z "${HAVE_CPU_SPARC_TRUE}" && test -z "${HAVE_CPU_SPARC_FALSE}"; then 18668 as_fn_error $? "conditional \"HAVE_CPU_SPARC\" was never defined. 18669Usually this means the macro was only invoked conditionally." "$LINENO" 5 18670fi 18671if test -z "${HAVE_CPU_HPPA_TRUE}" && test -z "${HAVE_CPU_HPPA_FALSE}"; then 18672 as_fn_error $? "conditional \"HAVE_CPU_HPPA\" was never defined. 18673Usually this means the macro was only invoked conditionally." "$LINENO" 5 18674fi 18675if test -z "${HAVE_CPU_MIPS_TRUE}" && test -z "${HAVE_CPU_MIPS_FALSE}"; then 18676 as_fn_error $? "conditional \"HAVE_CPU_MIPS\" was never defined. 18677Usually this means the macro was only invoked conditionally." "$LINENO" 5 18678fi 18679if test -z "${HAVE_CPU_S390_TRUE}" && test -z "${HAVE_CPU_S390_FALSE}"; then 18680 as_fn_error $? "conditional \"HAVE_CPU_S390\" was never defined. 18681Usually this means the macro was only invoked conditionally." "$LINENO" 5 18682fi 18683if test -z "${HAVE_CPU_IA64_TRUE}" && test -z "${HAVE_CPU_IA64_FALSE}"; then 18684 as_fn_error $? "conditional \"HAVE_CPU_IA64\" was never defined. 18685Usually this means the macro was only invoked conditionally." "$LINENO" 5 18686fi 18687if test -z "${HAVE_CPU_M68K_TRUE}" && test -z "${HAVE_CPU_M68K_FALSE}"; then 18688 as_fn_error $? "conditional \"HAVE_CPU_M68K\" was never defined. 18689Usually this means the macro was only invoked conditionally." "$LINENO" 5 18690fi 18691if test -z "${HAVE_CPU_X86_64_TRUE}" && test -z "${HAVE_CPU_X86_64_FALSE}"; then 18692 as_fn_error $? "conditional \"HAVE_CPU_X86_64\" was never defined. 18693Usually this means the macro was only invoked conditionally." "$LINENO" 5 18694fi 18695if test -z "${HAVE_CPU_CRIS_TRUE}" && test -z "${HAVE_CPU_CRIS_FALSE}"; then 18696 as_fn_error $? "conditional \"HAVE_CPU_CRIS\" was never defined. 18697Usually this means the macro was only invoked conditionally." "$LINENO" 5 18698fi 18699if test -z "${HAVE_CPU_CRISV32_TRUE}" && test -z "${HAVE_CPU_CRISV32_FALSE}"; then 18700 as_fn_error $? "conditional \"HAVE_CPU_CRISV32\" was never defined. 18701Usually this means the macro was only invoked conditionally." "$LINENO" 5 18702fi 18703if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18704 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18705Usually this means the macro was only invoked conditionally." "$LINENO" 5 18706fi 18707if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then 18708 as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined. 18709Usually this means the macro was only invoked conditionally." "$LINENO" 5 18710fi 18711if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 18712 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 18713Usually this means the macro was only invoked conditionally." "$LINENO" 5 18714fi 18715if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 18716 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 18717Usually this means the macro was only invoked conditionally." "$LINENO" 5 18718fi 18719if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 18720 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 18721Usually this means the macro was only invoked conditionally." "$LINENO" 5 18722fi 18723if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 18724 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 18725Usually this means the macro was only invoked conditionally." "$LINENO" 5 18726fi 18727if test -z "${ENABLE_PLUGIN_DOCS_TRUE}" && test -z "${ENABLE_PLUGIN_DOCS_FALSE}"; then 18728 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOCS\" was never defined. 18729Usually this means the macro was only invoked conditionally." "$LINENO" 5 18730fi 18731if test -z "${HAVE_GST_CHECK_TRUE}" && test -z "${HAVE_GST_CHECK_FALSE}"; then 18732 as_fn_error $? "conditional \"HAVE_GST_CHECK\" was never defined. 18733Usually this means the macro was only invoked conditionally." "$LINENO" 5 18734fi 18735if test -z "${GST_PLUGIN_BUILD_STATIC_TRUE}" && test -z "${GST_PLUGIN_BUILD_STATIC_FALSE}"; then 18736 as_fn_error $? "conditional \"GST_PLUGIN_BUILD_STATIC\" was never defined. 18737Usually this means the macro was only invoked conditionally." "$LINENO" 5 18738fi 18739if test -z "${GST_LIBAV_ENABLE_GPL_TRUE}" && test -z "${GST_LIBAV_ENABLE_GPL_FALSE}"; then 18740 as_fn_error $? "conditional \"GST_LIBAV_ENABLE_GPL\" was never defined. 18741Usually this means the macro was only invoked conditionally." "$LINENO" 5 18742fi 18743if test -z "${HAVE_BZ2_TRUE}" && test -z "${HAVE_BZ2_FALSE}"; then 18744 as_fn_error $? "conditional \"HAVE_BZ2\" was never defined. 18745Usually this means the macro was only invoked conditionally." "$LINENO" 5 18746fi 18747if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then 18748 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined. 18749Usually this means the macro was only invoked conditionally." "$LINENO" 5 18750fi 18751if test -z "${HAVE_LIBAV_UNINSTALLED_TRUE}" && test -z "${HAVE_LIBAV_UNINSTALLED_FALSE}"; then 18752 as_fn_error $? "conditional \"HAVE_LIBAV_UNINSTALLED\" was never defined. 18753Usually this means the macro was only invoked conditionally." "$LINENO" 5 18754fi 18755 18756: "${CONFIG_STATUS=./config.status}" 18757ac_write_fail=0 18758ac_clean_files_save=$ac_clean_files 18759ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18760{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18761$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18762as_write_fail=0 18763cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18764#! $SHELL 18765# Generated by $as_me. 18766# Run this file to recreate the current configuration. 18767# Compiler output produced by configure, useful for debugging 18768# configure, is in config.log if it exists. 18769 18770debug=false 18771ac_cs_recheck=false 18772ac_cs_silent=false 18773 18774SHELL=\${CONFIG_SHELL-$SHELL} 18775export SHELL 18776_ASEOF 18777cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18778## -------------------- ## 18779## M4sh Initialization. ## 18780## -------------------- ## 18781 18782# Be more Bourne compatible 18783DUALCASE=1; export DUALCASE # for MKS sh 18784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18785 emulate sh 18786 NULLCMD=: 18787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18788 # is contrary to our usage. Disable this feature. 18789 alias -g '${1+"$@"}'='"$@"' 18790 setopt NO_GLOB_SUBST 18791else 18792 case `(set -o) 2>/dev/null` in #( 18793 *posix*) : 18794 set -o posix ;; #( 18795 *) : 18796 ;; 18797esac 18798fi 18799 18800 18801as_nl=' 18802' 18803export as_nl 18804# Printing a long string crashes Solaris 7 /usr/bin/printf. 18805as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18808# Prefer a ksh shell builtin over an external printf program on Solaris, 18809# but without wasting forks for bash or zsh. 18810if test -z "$BASH_VERSION$ZSH_VERSION" \ 18811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18812 as_echo='print -r --' 18813 as_echo_n='print -rn --' 18814elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18815 as_echo='printf %s\n' 18816 as_echo_n='printf %s' 18817else 18818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18819 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18820 as_echo_n='/usr/ucb/echo -n' 18821 else 18822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18823 as_echo_n_body='eval 18824 arg=$1; 18825 case $arg in #( 18826 *"$as_nl"*) 18827 expr "X$arg" : "X\\(.*\\)$as_nl"; 18828 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18829 esac; 18830 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18831 ' 18832 export as_echo_n_body 18833 as_echo_n='sh -c $as_echo_n_body as_echo' 18834 fi 18835 export as_echo_body 18836 as_echo='sh -c $as_echo_body as_echo' 18837fi 18838 18839# The user is always right. 18840if test "${PATH_SEPARATOR+set}" != set; then 18841 PATH_SEPARATOR=: 18842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18844 PATH_SEPARATOR=';' 18845 } 18846fi 18847 18848 18849# IFS 18850# We need space, tab and new line, in precisely that order. Quoting is 18851# there to prevent editors from complaining about space-tab. 18852# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18853# splitting by setting IFS to empty value.) 18854IFS=" "" $as_nl" 18855 18856# Find who we are. Look in the path if we contain no directory separator. 18857as_myself= 18858case $0 in #(( 18859 *[\\/]* ) as_myself=$0 ;; 18860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18861for as_dir in $PATH 18862do 18863 IFS=$as_save_IFS 18864 test -z "$as_dir" && as_dir=. 18865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18866 done 18867IFS=$as_save_IFS 18868 18869 ;; 18870esac 18871# We did not find ourselves, most probably we were run as `sh COMMAND' 18872# in which case we are not to be found in the path. 18873if test "x$as_myself" = x; then 18874 as_myself=$0 18875fi 18876if test ! -f "$as_myself"; then 18877 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18878 exit 1 18879fi 18880 18881# Unset variables that we do not need and which cause bugs (e.g. in 18882# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18883# suppresses any "Segmentation fault" message there. '((' could 18884# trigger a bug in pdksh 5.2.14. 18885for as_var in BASH_ENV ENV MAIL MAILPATH 18886do eval test x\${$as_var+set} = xset \ 18887 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18888done 18889PS1='$ ' 18890PS2='> ' 18891PS4='+ ' 18892 18893# NLS nuisances. 18894LC_ALL=C 18895export LC_ALL 18896LANGUAGE=C 18897export LANGUAGE 18898 18899# CDPATH. 18900(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18901 18902 18903# as_fn_error STATUS ERROR [LINENO LOG_FD] 18904# ---------------------------------------- 18905# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18906# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18907# script with STATUS, using 1 if that was 0. 18908as_fn_error () 18909{ 18910 as_status=$1; test $as_status -eq 0 && as_status=1 18911 if test "$4"; then 18912 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18913 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18914 fi 18915 $as_echo "$as_me: error: $2" >&2 18916 as_fn_exit $as_status 18917} # as_fn_error 18918 18919 18920# as_fn_set_status STATUS 18921# ----------------------- 18922# Set $? to STATUS, without forking. 18923as_fn_set_status () 18924{ 18925 return $1 18926} # as_fn_set_status 18927 18928# as_fn_exit STATUS 18929# ----------------- 18930# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18931as_fn_exit () 18932{ 18933 set +e 18934 as_fn_set_status $1 18935 exit $1 18936} # as_fn_exit 18937 18938# as_fn_unset VAR 18939# --------------- 18940# Portably unset VAR. 18941as_fn_unset () 18942{ 18943 { eval $1=; unset $1;} 18944} 18945as_unset=as_fn_unset 18946# as_fn_append VAR VALUE 18947# ---------------------- 18948# Append the text in VALUE to the end of the definition contained in VAR. Take 18949# advantage of any shell optimizations that allow amortized linear growth over 18950# repeated appends, instead of the typical quadratic growth present in naive 18951# implementations. 18952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18953 eval 'as_fn_append () 18954 { 18955 eval $1+=\$2 18956 }' 18957else 18958 as_fn_append () 18959 { 18960 eval $1=\$$1\$2 18961 } 18962fi # as_fn_append 18963 18964# as_fn_arith ARG... 18965# ------------------ 18966# Perform arithmetic evaluation on the ARGs, and store the result in the 18967# global $as_val. Take advantage of shells that can avoid forks. The arguments 18968# must be portable across $(()) and expr. 18969if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18970 eval 'as_fn_arith () 18971 { 18972 as_val=$(( $* )) 18973 }' 18974else 18975 as_fn_arith () 18976 { 18977 as_val=`expr "$@" || test $? -eq 1` 18978 } 18979fi # as_fn_arith 18980 18981 18982if expr a : '\(a\)' >/dev/null 2>&1 && 18983 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18984 as_expr=expr 18985else 18986 as_expr=false 18987fi 18988 18989if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18990 as_basename=basename 18991else 18992 as_basename=false 18993fi 18994 18995if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18996 as_dirname=dirname 18997else 18998 as_dirname=false 18999fi 19000 19001as_me=`$as_basename -- "$0" || 19002$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19003 X"$0" : 'X\(//\)$' \| \ 19004 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19005$as_echo X/"$0" | 19006 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19007 s//\1/ 19008 q 19009 } 19010 /^X\/\(\/\/\)$/{ 19011 s//\1/ 19012 q 19013 } 19014 /^X\/\(\/\).*/{ 19015 s//\1/ 19016 q 19017 } 19018 s/.*/./; q'` 19019 19020# Avoid depending upon Character Ranges. 19021as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19023as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19024as_cr_digits='0123456789' 19025as_cr_alnum=$as_cr_Letters$as_cr_digits 19026 19027ECHO_C= ECHO_N= ECHO_T= 19028case `echo -n x` in #((((( 19029-n*) 19030 case `echo 'xy\c'` in 19031 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19032 xy) ECHO_C='\c';; 19033 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19034 ECHO_T=' ';; 19035 esac;; 19036*) 19037 ECHO_N='-n';; 19038esac 19039 19040rm -f conf$$ conf$$.exe conf$$.file 19041if test -d conf$$.dir; then 19042 rm -f conf$$.dir/conf$$.file 19043else 19044 rm -f conf$$.dir 19045 mkdir conf$$.dir 2>/dev/null 19046fi 19047if (echo >conf$$.file) 2>/dev/null; then 19048 if ln -s conf$$.file conf$$ 2>/dev/null; then 19049 as_ln_s='ln -s' 19050 # ... but there are two gotchas: 19051 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19052 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19053 # In both cases, we have to default to `cp -pR'. 19054 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19055 as_ln_s='cp -pR' 19056 elif ln conf$$.file conf$$ 2>/dev/null; then 19057 as_ln_s=ln 19058 else 19059 as_ln_s='cp -pR' 19060 fi 19061else 19062 as_ln_s='cp -pR' 19063fi 19064rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19065rmdir conf$$.dir 2>/dev/null 19066 19067 19068# as_fn_mkdir_p 19069# ------------- 19070# Create "$as_dir" as a directory, including parents if necessary. 19071as_fn_mkdir_p () 19072{ 19073 19074 case $as_dir in #( 19075 -*) as_dir=./$as_dir;; 19076 esac 19077 test -d "$as_dir" || eval $as_mkdir_p || { 19078 as_dirs= 19079 while :; do 19080 case $as_dir in #( 19081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19082 *) as_qdir=$as_dir;; 19083 esac 19084 as_dirs="'$as_qdir' $as_dirs" 19085 as_dir=`$as_dirname -- "$as_dir" || 19086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19087 X"$as_dir" : 'X\(//\)[^/]' \| \ 19088 X"$as_dir" : 'X\(//\)$' \| \ 19089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19090$as_echo X"$as_dir" | 19091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19092 s//\1/ 19093 q 19094 } 19095 /^X\(\/\/\)[^/].*/{ 19096 s//\1/ 19097 q 19098 } 19099 /^X\(\/\/\)$/{ 19100 s//\1/ 19101 q 19102 } 19103 /^X\(\/\).*/{ 19104 s//\1/ 19105 q 19106 } 19107 s/.*/./; q'` 19108 test -d "$as_dir" && break 19109 done 19110 test -z "$as_dirs" || eval "mkdir $as_dirs" 19111 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19112 19113 19114} # as_fn_mkdir_p 19115if mkdir -p . 2>/dev/null; then 19116 as_mkdir_p='mkdir -p "$as_dir"' 19117else 19118 test -d ./-p && rmdir ./-p 19119 as_mkdir_p=false 19120fi 19121 19122 19123# as_fn_executable_p FILE 19124# ----------------------- 19125# Test if FILE is an executable regular file. 19126as_fn_executable_p () 19127{ 19128 test -f "$1" && test -x "$1" 19129} # as_fn_executable_p 19130as_test_x='test -x' 19131as_executable_p=as_fn_executable_p 19132 19133# Sed expression to map a string onto a valid CPP name. 19134as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19135 19136# Sed expression to map a string onto a valid variable name. 19137as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19138 19139 19140exec 6>&1 19141## ----------------------------------- ## 19142## Main body of $CONFIG_STATUS script. ## 19143## ----------------------------------- ## 19144_ASEOF 19145test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19146 19147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19148# Save the log message, to keep $0 and so on meaningful, and to 19149# report actual input values of CONFIG_FILES etc. instead of their 19150# values after options handling. 19151ac_log=" 19152This file was extended by GStreamer libav $as_me 1.16.2, which was 19153generated by GNU Autoconf 2.69. Invocation command line was 19154 19155 CONFIG_FILES = $CONFIG_FILES 19156 CONFIG_HEADERS = $CONFIG_HEADERS 19157 CONFIG_LINKS = $CONFIG_LINKS 19158 CONFIG_COMMANDS = $CONFIG_COMMANDS 19159 $ $0 $@ 19160 19161on `(hostname || uname -n) 2>/dev/null | sed 1q` 19162" 19163 19164_ACEOF 19165 19166case $ac_config_files in *" 19167"*) set x $ac_config_files; shift; ac_config_files=$*;; 19168esac 19169 19170case $ac_config_headers in *" 19171"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19172esac 19173 19174 19175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19176# Files that config.status was made for. 19177config_files="$ac_config_files" 19178config_headers="$ac_config_headers" 19179config_commands="$ac_config_commands" 19180 19181_ACEOF 19182 19183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19184ac_cs_usage="\ 19185\`$as_me' instantiates files and other configuration actions 19186from templates according to the current configuration. Unless the files 19187and actions are specified as TAGs, all are instantiated by default. 19188 19189Usage: $0 [OPTION]... [TAG]... 19190 19191 -h, --help print this help, then exit 19192 -V, --version print version number and configuration settings, then exit 19193 --config print configuration, then exit 19194 -q, --quiet, --silent 19195 do not print progress messages 19196 -d, --debug don't remove temporary files 19197 --recheck update $as_me by reconfiguring in the same conditions 19198 --file=FILE[:TEMPLATE] 19199 instantiate the configuration file FILE 19200 --header=FILE[:TEMPLATE] 19201 instantiate the configuration header FILE 19202 19203Configuration files: 19204$config_files 19205 19206Configuration headers: 19207$config_headers 19208 19209Configuration commands: 19210$config_commands 19211 19212Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>." 19213 19214_ACEOF 19215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19216ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19217ac_cs_version="\\ 19218GStreamer libav config.status 1.16.2 19219configured by $0, generated by GNU Autoconf 2.69, 19220 with options \\"\$ac_cs_config\\" 19221 19222Copyright (C) 2012 Free Software Foundation, Inc. 19223This config.status script is free software; the Free Software Foundation 19224gives unlimited permission to copy, distribute and modify it." 19225 19226ac_pwd='$ac_pwd' 19227srcdir='$srcdir' 19228INSTALL='$INSTALL' 19229MKDIR_P='$MKDIR_P' 19230AWK='$AWK' 19231test -n "\$AWK" || AWK=awk 19232_ACEOF 19233 19234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19235# The default lists apply if the user does not specify any file. 19236ac_need_defaults=: 19237while test $# != 0 19238do 19239 case $1 in 19240 --*=?*) 19241 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19243 ac_shift=: 19244 ;; 19245 --*=) 19246 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19247 ac_optarg= 19248 ac_shift=: 19249 ;; 19250 *) 19251 ac_option=$1 19252 ac_optarg=$2 19253 ac_shift=shift 19254 ;; 19255 esac 19256 19257 case $ac_option in 19258 # Handling of the options. 19259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19260 ac_cs_recheck=: ;; 19261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19262 $as_echo "$ac_cs_version"; exit ;; 19263 --config | --confi | --conf | --con | --co | --c ) 19264 $as_echo "$ac_cs_config"; exit ;; 19265 --debug | --debu | --deb | --de | --d | -d ) 19266 debug=: ;; 19267 --file | --fil | --fi | --f ) 19268 $ac_shift 19269 case $ac_optarg in 19270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19271 '') as_fn_error $? "missing file argument" ;; 19272 esac 19273 as_fn_append CONFIG_FILES " '$ac_optarg'" 19274 ac_need_defaults=false;; 19275 --header | --heade | --head | --hea ) 19276 $ac_shift 19277 case $ac_optarg in 19278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19279 esac 19280 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19281 ac_need_defaults=false;; 19282 --he | --h) 19283 # Conflict between --help and --header 19284 as_fn_error $? "ambiguous option: \`$1' 19285Try \`$0 --help' for more information.";; 19286 --help | --hel | -h ) 19287 $as_echo "$ac_cs_usage"; exit ;; 19288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19289 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19290 ac_cs_silent=: ;; 19291 19292 # This is an error. 19293 -*) as_fn_error $? "unrecognized option: \`$1' 19294Try \`$0 --help' for more information." ;; 19295 19296 *) as_fn_append ac_config_targets " $1" 19297 ac_need_defaults=false ;; 19298 19299 esac 19300 shift 19301done 19302 19303ac_configure_extra_args= 19304 19305if $ac_cs_silent; then 19306 exec 6>/dev/null 19307 ac_configure_extra_args="$ac_configure_extra_args --silent" 19308fi 19309 19310_ACEOF 19311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19312if \$ac_cs_recheck; then 19313 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19314 shift 19315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19316 CONFIG_SHELL='$SHELL' 19317 export CONFIG_SHELL 19318 exec "\$@" 19319fi 19320 19321_ACEOF 19322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19323exec 5>>config.log 19324{ 19325 echo 19326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19327## Running $as_me. ## 19328_ASBOX 19329 $as_echo "$ac_log" 19330} >&5 19331 19332_ACEOF 19333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19334# 19335# INIT-COMMANDS 19336# 19337AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19338 19339 19340# The HP-UX ksh and POSIX shell print the target directory to stdout 19341# if CDPATH is set. 19342(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19343 19344sed_quote_subst='$sed_quote_subst' 19345double_quote_subst='$double_quote_subst' 19346delay_variable_subst='$delay_variable_subst' 19347macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19348macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19349AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19350DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19352enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19353enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19354pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19355enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19356shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19357SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19358ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19359PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19360host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19361host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19362host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19363build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19364build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19365build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19366SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19367Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19368GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19369EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19370FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19371LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19372NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19373LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19374max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19375ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19376exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19377lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19378lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19379lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19380lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19381lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19382reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19383reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19384deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19385file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19386file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19387want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19388sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19389AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19390AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19391archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19392STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19393RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19394old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19395old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19396old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19397lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19398CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19399CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19400compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19401GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19402lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19403lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19404lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19405lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19406lt_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"`' 19407lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19408nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19409lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19410lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19411objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19412MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19413lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19414lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19415lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19416lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19417lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19418need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19419MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19420DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19421NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19422LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19423OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19424OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19425libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19426shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19427extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19428archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19429enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19430export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19431whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19432compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19433old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19434old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19435archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19436archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19437module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19438module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19439with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19440allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19441no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19442hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19443hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19444hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19445hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19446hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19447hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19448hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19449inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19450link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19451always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19452export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19453exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19454include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19455prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19456postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19457file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19458variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19459need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19460need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19461version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19462runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19463shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19464shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19465libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19466library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19467soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19468install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19469postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19470postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19471finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19472finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19473hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19474sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19475configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19476configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19477hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19478enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19479enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19480enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19481old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19482striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19483 19484LTCC='$LTCC' 19485LTCFLAGS='$LTCFLAGS' 19486compiler='$compiler_DEFAULT' 19487 19488# A function that is used when there is no print builtin or printf. 19489func_fallback_echo () 19490{ 19491 eval 'cat <<_LTECHO_EOF 19492\$1 19493_LTECHO_EOF' 19494} 19495 19496# Quote evaled strings. 19497for var in AS \ 19498DLLTOOL \ 19499OBJDUMP \ 19500SHELL \ 19501ECHO \ 19502PATH_SEPARATOR \ 19503SED \ 19504GREP \ 19505EGREP \ 19506FGREP \ 19507LD \ 19508NM \ 19509LN_S \ 19510lt_SP2NL \ 19511lt_NL2SP \ 19512reload_flag \ 19513deplibs_check_method \ 19514file_magic_cmd \ 19515file_magic_glob \ 19516want_nocaseglob \ 19517sharedlib_from_linklib_cmd \ 19518AR \ 19519AR_FLAGS \ 19520archiver_list_spec \ 19521STRIP \ 19522RANLIB \ 19523CC \ 19524CFLAGS \ 19525compiler \ 19526lt_cv_sys_global_symbol_pipe \ 19527lt_cv_sys_global_symbol_to_cdecl \ 19528lt_cv_sys_global_symbol_to_import \ 19529lt_cv_sys_global_symbol_to_c_name_address \ 19530lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19531lt_cv_nm_interface \ 19532nm_file_list_spec \ 19533lt_cv_truncate_bin \ 19534lt_prog_compiler_no_builtin_flag \ 19535lt_prog_compiler_pic \ 19536lt_prog_compiler_wl \ 19537lt_prog_compiler_static \ 19538lt_cv_prog_compiler_c_o \ 19539need_locks \ 19540MANIFEST_TOOL \ 19541DSYMUTIL \ 19542NMEDIT \ 19543LIPO \ 19544OTOOL \ 19545OTOOL64 \ 19546shrext_cmds \ 19547export_dynamic_flag_spec \ 19548whole_archive_flag_spec \ 19549compiler_needs_object \ 19550with_gnu_ld \ 19551allow_undefined_flag \ 19552no_undefined_flag \ 19553hardcode_libdir_flag_spec \ 19554hardcode_libdir_separator \ 19555exclude_expsyms \ 19556include_expsyms \ 19557file_list_spec \ 19558variables_saved_for_relink \ 19559libname_spec \ 19560library_names_spec \ 19561soname_spec \ 19562install_override_mode \ 19563finish_eval \ 19564old_striplib \ 19565striplib; do 19566 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19567 *[\\\\\\\`\\"\\\$]*) 19568 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19569 ;; 19570 *) 19571 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19572 ;; 19573 esac 19574done 19575 19576# Double-quote double-evaled strings. 19577for var in reload_cmds \ 19578old_postinstall_cmds \ 19579old_postuninstall_cmds \ 19580old_archive_cmds \ 19581extract_expsyms_cmds \ 19582old_archive_from_new_cmds \ 19583old_archive_from_expsyms_cmds \ 19584archive_cmds \ 19585archive_expsym_cmds \ 19586module_cmds \ 19587module_expsym_cmds \ 19588export_symbols_cmds \ 19589prelink_cmds \ 19590postlink_cmds \ 19591postinstall_cmds \ 19592postuninstall_cmds \ 19593finish_cmds \ 19594sys_lib_search_path_spec \ 19595configure_time_dlsearch_path \ 19596configure_time_lt_sys_library_path; do 19597 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19598 *[\\\\\\\`\\"\\\$]*) 19599 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19600 ;; 19601 *) 19602 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19603 ;; 19604 esac 19605done 19606 19607ac_aux_dir='$ac_aux_dir' 19608 19609# See if we are running on zsh, and set the options that allow our 19610# commands through without removal of \ escapes INIT. 19611if test -n "\${ZSH_VERSION+set}"; then 19612 setopt NO_GLOB_SUBST 19613fi 19614 19615 19616 PACKAGE='$PACKAGE' 19617 VERSION='$VERSION' 19618 RM='$RM' 19619 ofile='$ofile' 19620 19621 19622 19623emblibav_configure_args="$emblibav_configure_args" 19624 19625_ACEOF 19626 19627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19628 19629# Handling of arguments. 19630for ac_config_target in $ac_config_targets 19631do 19632 case $ac_config_target in 19633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19636 "configure-embedded-libav") CONFIG_COMMANDS="$CONFIG_COMMANDS configure-embedded-libav" ;; 19637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19638 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 19639 "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;; 19640 "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;; 19641 "ext/libav/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libav/Makefile" ;; 19642 "gst-libs/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/Makefile" ;; 19643 "gst-libs/ext/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/ext/Makefile" ;; 19644 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 19645 "docs/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES docs/plugins/Makefile" ;; 19646 "docs/version.entities") CONFIG_FILES="$CONFIG_FILES docs/version.entities" ;; 19647 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 19648 "tests/check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/check/Makefile" ;; 19649 "tests/files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/files/Makefile" ;; 19650 "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;; 19651 "pkgconfig/gstreamer-plugins-libav-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-plugins-libav-uninstalled.pc" ;; 19652 19653 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19654 esac 19655done 19656 19657 19658# If the user did not use the arguments to specify the items to instantiate, 19659# then the envvar interface is used. Set only those that are not. 19660# We use the long form for the default assignment because of an extremely 19661# bizarre bug on SunOS 4.1.3. 19662if $ac_need_defaults; then 19663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19666fi 19667 19668# Have a temporary directory for convenience. Make it in the build tree 19669# simply because there is no reason against having it here, and in addition, 19670# creating and moving files from /tmp can sometimes cause problems. 19671# Hook for its removal unless debugging. 19672# Note that there is a small window in which the directory will not be cleaned: 19673# after its creation but before its name has been assigned to `$tmp'. 19674$debug || 19675{ 19676 tmp= ac_tmp= 19677 trap 'exit_status=$? 19678 : "${ac_tmp:=$tmp}" 19679 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19680' 0 19681 trap 'as_fn_exit 1' 1 2 13 15 19682} 19683# Create a (secure) tmp directory for tmp files. 19684 19685{ 19686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19687 test -d "$tmp" 19688} || 19689{ 19690 tmp=./conf$$-$RANDOM 19691 (umask 077 && mkdir "$tmp") 19692} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19693ac_tmp=$tmp 19694 19695# Set up the scripts for CONFIG_FILES section. 19696# No need to generate them if there are no CONFIG_FILES. 19697# This happens for instance with `./config.status config.h'. 19698if test -n "$CONFIG_FILES"; then 19699 19700 19701ac_cr=`echo X | tr X '\015'` 19702# On cygwin, bash can eat \r inside `` if the user requested igncr. 19703# But we know of no other shell where ac_cr would be empty at this 19704# point, so we can use a bashism as a fallback. 19705if test "x$ac_cr" = x; then 19706 eval ac_cr=\$\'\\r\' 19707fi 19708ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19709if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19710 ac_cs_awk_cr='\\r' 19711else 19712 ac_cs_awk_cr=$ac_cr 19713fi 19714 19715echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19716_ACEOF 19717 19718 19719{ 19720 echo "cat >conf$$subs.awk <<_ACEOF" && 19721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19722 echo "_ACEOF" 19723} >conf$$subs.sh || 19724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19725ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19726ac_delim='%!_!# ' 19727for ac_last_try in false false false false false :; do 19728 . ./conf$$subs.sh || 19729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19730 19731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19732 if test $ac_delim_n = $ac_delim_num; then 19733 break 19734 elif $ac_last_try; then 19735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19736 else 19737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19738 fi 19739done 19740rm -f conf$$subs.sh 19741 19742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19743cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19744_ACEOF 19745sed -n ' 19746h 19747s/^/S["/; s/!.*/"]=/ 19748p 19749g 19750s/^[^!]*!// 19751:repl 19752t repl 19753s/'"$ac_delim"'$// 19754t delim 19755:nl 19756h 19757s/\(.\{148\}\)..*/\1/ 19758t more1 19759s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19760p 19761n 19762b repl 19763:more1 19764s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19765p 19766g 19767s/.\{148\}// 19768t nl 19769:delim 19770h 19771s/\(.\{148\}\)..*/\1/ 19772t more2 19773s/["\\]/\\&/g; s/^/"/; s/$/"/ 19774p 19775b 19776:more2 19777s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19778p 19779g 19780s/.\{148\}// 19781t delim 19782' <conf$$subs.awk | sed ' 19783/^[^""]/{ 19784 N 19785 s/\n// 19786} 19787' >>$CONFIG_STATUS || ac_write_fail=1 19788rm -f conf$$subs.awk 19789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19790_ACAWK 19791cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19792 for (key in S) S_is_set[key] = 1 19793 FS = "" 19794 19795} 19796{ 19797 line = $ 0 19798 nfields = split(line, field, "@") 19799 substed = 0 19800 len = length(field[1]) 19801 for (i = 2; i < nfields; i++) { 19802 key = field[i] 19803 keylen = length(key) 19804 if (S_is_set[key]) { 19805 value = S[key] 19806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19807 len += length(value) + length(field[++i]) 19808 substed = 1 19809 } else 19810 len += 1 + keylen 19811 } 19812 19813 print line 19814} 19815 19816_ACAWK 19817_ACEOF 19818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19819if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19821else 19822 cat 19823fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19824 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19825_ACEOF 19826 19827# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19828# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19829# trailing colons and then remove the whole line if VPATH becomes empty 19830# (actually we leave an empty line to preserve line numbers). 19831if test "x$srcdir" = x.; then 19832 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19833h 19834s/// 19835s/^/:/ 19836s/[ ]*$/:/ 19837s/:\$(srcdir):/:/g 19838s/:\${srcdir}:/:/g 19839s/:@srcdir@:/:/g 19840s/^:*// 19841s/:*$// 19842x 19843s/\(=[ ]*\).*/\1/ 19844G 19845s/\n// 19846s/^[^=]*=[ ]*$// 19847}' 19848fi 19849 19850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19851fi # test -n "$CONFIG_FILES" 19852 19853# Set up the scripts for CONFIG_HEADERS section. 19854# No need to generate them if there are no CONFIG_HEADERS. 19855# This happens for instance with `./config.status Makefile'. 19856if test -n "$CONFIG_HEADERS"; then 19857cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19858BEGIN { 19859_ACEOF 19860 19861# Transform confdefs.h into an awk script `defines.awk', embedded as 19862# here-document in config.status, that substitutes the proper values into 19863# config.h.in to produce config.h. 19864 19865# Create a delimiter string that does not exist in confdefs.h, to ease 19866# handling of long lines. 19867ac_delim='%!_!# ' 19868for ac_last_try in false false :; do 19869 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19870 if test -z "$ac_tt"; then 19871 break 19872 elif $ac_last_try; then 19873 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19874 else 19875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19876 fi 19877done 19878 19879# For the awk script, D is an array of macro values keyed by name, 19880# likewise P contains macro parameters if any. Preserve backslash 19881# newline sequences. 19882 19883ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19884sed -n ' 19885s/.\{148\}/&'"$ac_delim"'/g 19886t rset 19887:rset 19888s/^[ ]*#[ ]*define[ ][ ]*/ / 19889t def 19890d 19891:def 19892s/\\$// 19893t bsnl 19894s/["\\]/\\&/g 19895s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19896D["\1"]=" \3"/p 19897s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19898d 19899:bsnl 19900s/["\\]/\\&/g 19901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19902D["\1"]=" \3\\\\\\n"\\/p 19903t cont 19904s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19905t cont 19906d 19907:cont 19908n 19909s/.\{148\}/&'"$ac_delim"'/g 19910t clear 19911:clear 19912s/\\$// 19913t bsnlc 19914s/["\\]/\\&/g; s/^/"/; s/$/"/p 19915d 19916:bsnlc 19917s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19918b cont 19919' <confdefs.h | sed ' 19920s/'"$ac_delim"'/"\\\ 19921"/g' >>$CONFIG_STATUS || ac_write_fail=1 19922 19923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19924 for (key in D) D_is_set[key] = 1 19925 FS = "" 19926} 19927/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19928 line = \$ 0 19929 split(line, arg, " ") 19930 if (arg[1] == "#") { 19931 defundef = arg[2] 19932 mac1 = arg[3] 19933 } else { 19934 defundef = substr(arg[1], 2) 19935 mac1 = arg[2] 19936 } 19937 split(mac1, mac2, "(") #) 19938 macro = mac2[1] 19939 prefix = substr(line, 1, index(line, defundef) - 1) 19940 if (D_is_set[macro]) { 19941 # Preserve the white space surrounding the "#". 19942 print prefix "define", macro P[macro] D[macro] 19943 next 19944 } else { 19945 # Replace #undef with comments. This is necessary, for example, 19946 # in the case of _POSIX_SOURCE, which is predefined and required 19947 # on some systems where configure will not decide to define it. 19948 if (defundef == "undef") { 19949 print "/*", prefix defundef, macro, "*/" 19950 next 19951 } 19952 } 19953} 19954{ print } 19955_ACAWK 19956_ACEOF 19957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19958 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19959fi # test -n "$CONFIG_HEADERS" 19960 19961 19962eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19963shift 19964for ac_tag 19965do 19966 case $ac_tag in 19967 :[FHLC]) ac_mode=$ac_tag; continue;; 19968 esac 19969 case $ac_mode$ac_tag in 19970 :[FHL]*:*);; 19971 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19972 :[FH]-) ac_tag=-:-;; 19973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19974 esac 19975 ac_save_IFS=$IFS 19976 IFS=: 19977 set x $ac_tag 19978 IFS=$ac_save_IFS 19979 shift 19980 ac_file=$1 19981 shift 19982 19983 case $ac_mode in 19984 :L) ac_source=$1;; 19985 :[FH]) 19986 ac_file_inputs= 19987 for ac_f 19988 do 19989 case $ac_f in 19990 -) ac_f="$ac_tmp/stdin";; 19991 *) # Look for the file first in the build tree, then in the source tree 19992 # (if the path is not absolute). The absolute path cannot be DOS-style, 19993 # because $ac_f cannot contain `:'. 19994 test -f "$ac_f" || 19995 case $ac_f in 19996 [\\/$]*) false;; 19997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19998 esac || 19999 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20000 esac 20001 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20002 as_fn_append ac_file_inputs " '$ac_f'" 20003 done 20004 20005 # Let's still pretend it is `configure' which instantiates (i.e., don't 20006 # use $as_me), people would be surprised to read: 20007 # /* config.h. Generated by config.status. */ 20008 configure_input='Generated from '` 20009 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20010 `' by configure.' 20011 if test x"$ac_file" != x-; then 20012 configure_input="$ac_file. $configure_input" 20013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20014$as_echo "$as_me: creating $ac_file" >&6;} 20015 fi 20016 # Neutralize special characters interpreted by sed in replacement strings. 20017 case $configure_input in #( 20018 *\&* | *\|* | *\\* ) 20019 ac_sed_conf_input=`$as_echo "$configure_input" | 20020 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20021 *) ac_sed_conf_input=$configure_input;; 20022 esac 20023 20024 case $ac_tag in 20025 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20027 esac 20028 ;; 20029 esac 20030 20031 ac_dir=`$as_dirname -- "$ac_file" || 20032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20033 X"$ac_file" : 'X\(//\)[^/]' \| \ 20034 X"$ac_file" : 'X\(//\)$' \| \ 20035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20036$as_echo X"$ac_file" | 20037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20038 s//\1/ 20039 q 20040 } 20041 /^X\(\/\/\)[^/].*/{ 20042 s//\1/ 20043 q 20044 } 20045 /^X\(\/\/\)$/{ 20046 s//\1/ 20047 q 20048 } 20049 /^X\(\/\).*/{ 20050 s//\1/ 20051 q 20052 } 20053 s/.*/./; q'` 20054 as_dir="$ac_dir"; as_fn_mkdir_p 20055 ac_builddir=. 20056 20057case "$ac_dir" in 20058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20059*) 20060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20061 # A ".." for each directory in $ac_dir_suffix. 20062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20063 case $ac_top_builddir_sub in 20064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20066 esac ;; 20067esac 20068ac_abs_top_builddir=$ac_pwd 20069ac_abs_builddir=$ac_pwd$ac_dir_suffix 20070# for backward compatibility: 20071ac_top_builddir=$ac_top_build_prefix 20072 20073case $srcdir in 20074 .) # We are building in place. 20075 ac_srcdir=. 20076 ac_top_srcdir=$ac_top_builddir_sub 20077 ac_abs_top_srcdir=$ac_pwd ;; 20078 [\\/]* | ?:[\\/]* ) # Absolute name. 20079 ac_srcdir=$srcdir$ac_dir_suffix; 20080 ac_top_srcdir=$srcdir 20081 ac_abs_top_srcdir=$srcdir ;; 20082 *) # Relative name. 20083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20084 ac_top_srcdir=$ac_top_build_prefix$srcdir 20085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20086esac 20087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20088 20089 20090 case $ac_mode in 20091 :F) 20092 # 20093 # CONFIG_FILE 20094 # 20095 20096 case $INSTALL in 20097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20098 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20099 esac 20100 ac_MKDIR_P=$MKDIR_P 20101 case $MKDIR_P in 20102 [\\/$]* | ?:[\\/]* ) ;; 20103 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20104 esac 20105_ACEOF 20106 20107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20108# If the template does not know about datarootdir, expand it. 20109# FIXME: This hack should be removed a few years after 2.60. 20110ac_datarootdir_hack=; ac_datarootdir_seen= 20111ac_sed_dataroot=' 20112/datarootdir/ { 20113 p 20114 q 20115} 20116/@datadir@/p 20117/@docdir@/p 20118/@infodir@/p 20119/@localedir@/p 20120/@mandir@/p' 20121case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20122*datarootdir*) ac_datarootdir_seen=yes;; 20123*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20125$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20126_ACEOF 20127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20128 ac_datarootdir_hack=' 20129 s&@datadir@&$datadir&g 20130 s&@docdir@&$docdir&g 20131 s&@infodir@&$infodir&g 20132 s&@localedir@&$localedir&g 20133 s&@mandir@&$mandir&g 20134 s&\\\${datarootdir}&$datarootdir&g' ;; 20135esac 20136_ACEOF 20137 20138# Neutralize VPATH when `$srcdir' = `.'. 20139# Shell code in configure.ac might set extrasub. 20140# FIXME: do we really want to maintain this feature? 20141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20142ac_sed_extra="$ac_vpsub 20143$extrasub 20144_ACEOF 20145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20146:t 20147/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20148s|@configure_input@|$ac_sed_conf_input|;t t 20149s&@top_builddir@&$ac_top_builddir_sub&;t t 20150s&@top_build_prefix@&$ac_top_build_prefix&;t t 20151s&@srcdir@&$ac_srcdir&;t t 20152s&@abs_srcdir@&$ac_abs_srcdir&;t t 20153s&@top_srcdir@&$ac_top_srcdir&;t t 20154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20155s&@builddir@&$ac_builddir&;t t 20156s&@abs_builddir@&$ac_abs_builddir&;t t 20157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20158s&@INSTALL@&$ac_INSTALL&;t t 20159s&@MKDIR_P@&$ac_MKDIR_P&;t t 20160$ac_datarootdir_hack 20161" 20162eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20163 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20164 20165test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20168 "$ac_tmp/out"`; test -z "$ac_out"; } && 20169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20170which seems to be undefined. Please make sure it is defined" >&5 20171$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20172which seems to be undefined. Please make sure it is defined" >&2;} 20173 20174 rm -f "$ac_tmp/stdin" 20175 case $ac_file in 20176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20178 esac \ 20179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20180 ;; 20181 :H) 20182 # 20183 # CONFIG_HEADER 20184 # 20185 if test x"$ac_file" != x-; then 20186 { 20187 $as_echo "/* $configure_input */" \ 20188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20189 } >"$ac_tmp/config.h" \ 20190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20191 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20193$as_echo "$as_me: $ac_file is unchanged" >&6;} 20194 else 20195 rm -f "$ac_file" 20196 mv "$ac_tmp/config.h" "$ac_file" \ 20197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20198 fi 20199 else 20200 $as_echo "/* $configure_input */" \ 20201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20202 || as_fn_error $? "could not create -" "$LINENO" 5 20203 fi 20204# Compute "$ac_file"'s index in $config_headers. 20205_am_arg="$ac_file" 20206_am_stamp_count=1 20207for _am_header in $config_headers :; do 20208 case $_am_header in 20209 $_am_arg | $_am_arg:* ) 20210 break ;; 20211 * ) 20212 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20213 esac 20214done 20215echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20216$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20217 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20218 X"$_am_arg" : 'X\(//\)$' \| \ 20219 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20220$as_echo X"$_am_arg" | 20221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20222 s//\1/ 20223 q 20224 } 20225 /^X\(\/\/\)[^/].*/{ 20226 s//\1/ 20227 q 20228 } 20229 /^X\(\/\/\)$/{ 20230 s//\1/ 20231 q 20232 } 20233 /^X\(\/\).*/{ 20234 s//\1/ 20235 q 20236 } 20237 s/.*/./; q'`/stamp-h$_am_stamp_count 20238 ;; 20239 20240 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20241$as_echo "$as_me: executing $ac_file commands" >&6;} 20242 ;; 20243 esac 20244 20245 20246 case $ac_file$ac_mode in 20247 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20248 # Older Autoconf quotes --file arguments for eval, but not when files 20249 # are listed without --file. Let's play safe and only enable the eval 20250 # if we detect the quoting. 20251 # TODO: see whether this extra hack can be removed once we start 20252 # requiring Autoconf 2.70 or later. 20253 case $CONFIG_FILES in #( 20254 *\'*) : 20255 eval set x "$CONFIG_FILES" ;; #( 20256 *) : 20257 set x $CONFIG_FILES ;; #( 20258 *) : 20259 ;; 20260esac 20261 shift 20262 # Used to flag and report bootstrapping failures. 20263 am_rc=0 20264 for am_mf 20265 do 20266 # Strip MF so we end up with the name of the file. 20267 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20268 # Check whether this is an Automake generated Makefile which includes 20269 # dependency-tracking related rules and includes. 20270 # Grep'ing the whole file directly is not great: AIX grep has a line 20271 # limit of 2048, but all sed's we know have understand at least 4000. 20272 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20273 || continue 20274 am_dirpart=`$as_dirname -- "$am_mf" || 20275$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20276 X"$am_mf" : 'X\(//\)[^/]' \| \ 20277 X"$am_mf" : 'X\(//\)$' \| \ 20278 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20279$as_echo X"$am_mf" | 20280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20281 s//\1/ 20282 q 20283 } 20284 /^X\(\/\/\)[^/].*/{ 20285 s//\1/ 20286 q 20287 } 20288 /^X\(\/\/\)$/{ 20289 s//\1/ 20290 q 20291 } 20292 /^X\(\/\).*/{ 20293 s//\1/ 20294 q 20295 } 20296 s/.*/./; q'` 20297 am_filepart=`$as_basename -- "$am_mf" || 20298$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20299 X"$am_mf" : 'X\(//\)$' \| \ 20300 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20301$as_echo X/"$am_mf" | 20302 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20303 s//\1/ 20304 q 20305 } 20306 /^X\/\(\/\/\)$/{ 20307 s//\1/ 20308 q 20309 } 20310 /^X\/\(\/\).*/{ 20311 s//\1/ 20312 q 20313 } 20314 s/.*/./; q'` 20315 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20316 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20317 | $MAKE -f - am--depfiles" >&5 20318 (cd "$am_dirpart" \ 20319 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20320 | $MAKE -f - am--depfiles) >&5 2>&5 20321 ac_status=$? 20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20323 (exit $ac_status); } || am_rc=$? 20324 done 20325 if test $am_rc -ne 0; then 20326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20328as_fn_error $? "Something went wrong bootstrapping makefile fragments 20329 for automatic dependency tracking. Try re-running configure with the 20330 '--disable-dependency-tracking' option to at least be able to build 20331 the package (albeit without support for automatic dependency tracking). 20332See \`config.log' for more details" "$LINENO" 5; } 20333 fi 20334 { am_dirpart=; unset am_dirpart;} 20335 { am_filepart=; unset am_filepart;} 20336 { am_mf=; unset am_mf;} 20337 { am_rc=; unset am_rc;} 20338 rm -f conftest-deps.mk 20339} 20340 ;; 20341 "libtool":C) 20342 20343 # See if we are running on zsh, and set the options that allow our 20344 # commands through without removal of \ escapes. 20345 if test -n "${ZSH_VERSION+set}"; then 20346 setopt NO_GLOB_SUBST 20347 fi 20348 20349 cfgfile=${ofile}T 20350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20351 $RM "$cfgfile" 20352 20353 cat <<_LT_EOF >> "$cfgfile" 20354#! $SHELL 20355# Generated automatically by $as_me ($PACKAGE) $VERSION 20356# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20357 20358# Provide generalized library-building support services. 20359# Written by Gordon Matzigkeit, 1996 20360 20361# Copyright (C) 2014 Free Software Foundation, Inc. 20362# This is free software; see the source for copying conditions. There is NO 20363# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20364 20365# GNU Libtool is free software; you can redistribute it and/or modify 20366# it under the terms of the GNU General Public License as published by 20367# the Free Software Foundation; either version 2 of of the License, or 20368# (at your option) any later version. 20369# 20370# As a special exception to the GNU General Public License, if you 20371# distribute this file as part of a program or library that is built 20372# using GNU Libtool, you may include this file under the same 20373# distribution terms that you use for the rest of that program. 20374# 20375# GNU Libtool is distributed in the hope that it will be useful, but 20376# WITHOUT ANY WARRANTY; without even the implied warranty of 20377# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20378# GNU General Public License for more details. 20379# 20380# You should have received a copy of the GNU General Public License 20381# along with this program. If not, see <http://www.gnu.org/licenses/>. 20382 20383 20384# The names of the tagged configurations supported by this script. 20385available_tags='' 20386 20387# Configured defaults for sys_lib_dlsearch_path munging. 20388: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20389 20390# ### BEGIN LIBTOOL CONFIG 20391 20392# Which release of libtool.m4 was used? 20393macro_version=$macro_version 20394macro_revision=$macro_revision 20395 20396# Assembler program. 20397AS=$lt_AS 20398 20399# DLL creation program. 20400DLLTOOL=$lt_DLLTOOL 20401 20402# Object dumper program. 20403OBJDUMP=$lt_OBJDUMP 20404 20405# Whether or not to build static libraries. 20406build_old_libs=$enable_static 20407 20408# Whether or not to build shared libraries. 20409build_libtool_libs=$enable_shared 20410 20411# What type of objects to build. 20412pic_mode=$pic_mode 20413 20414# Whether or not to optimize for fast installation. 20415fast_install=$enable_fast_install 20416 20417# Shared archive member basename,for filename based shared library versioning on AIX. 20418shared_archive_member_spec=$shared_archive_member_spec 20419 20420# Shell to use when invoking shell scripts. 20421SHELL=$lt_SHELL 20422 20423# An echo program that protects backslashes. 20424ECHO=$lt_ECHO 20425 20426# The PATH separator for the build system. 20427PATH_SEPARATOR=$lt_PATH_SEPARATOR 20428 20429# The host system. 20430host_alias=$host_alias 20431host=$host 20432host_os=$host_os 20433 20434# The build system. 20435build_alias=$build_alias 20436build=$build 20437build_os=$build_os 20438 20439# A sed program that does not truncate output. 20440SED=$lt_SED 20441 20442# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20443Xsed="\$SED -e 1s/^X//" 20444 20445# A grep program that handles long lines. 20446GREP=$lt_GREP 20447 20448# An ERE matcher. 20449EGREP=$lt_EGREP 20450 20451# A literal string matcher. 20452FGREP=$lt_FGREP 20453 20454# A BSD- or MS-compatible name lister. 20455NM=$lt_NM 20456 20457# Whether we need soft or hard links. 20458LN_S=$lt_LN_S 20459 20460# What is the maximum length of a command? 20461max_cmd_len=$max_cmd_len 20462 20463# Object file suffix (normally "o"). 20464objext=$ac_objext 20465 20466# Executable file suffix (normally ""). 20467exeext=$exeext 20468 20469# whether the shell understands "unset". 20470lt_unset=$lt_unset 20471 20472# turn spaces into newlines. 20473SP2NL=$lt_lt_SP2NL 20474 20475# turn newlines into spaces. 20476NL2SP=$lt_lt_NL2SP 20477 20478# convert \$build file names to \$host format. 20479to_host_file_cmd=$lt_cv_to_host_file_cmd 20480 20481# convert \$build files to toolchain format. 20482to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20483 20484# Method to check whether dependent libraries are shared objects. 20485deplibs_check_method=$lt_deplibs_check_method 20486 20487# Command to use when deplibs_check_method = "file_magic". 20488file_magic_cmd=$lt_file_magic_cmd 20489 20490# How to find potential files when deplibs_check_method = "file_magic". 20491file_magic_glob=$lt_file_magic_glob 20492 20493# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20494want_nocaseglob=$lt_want_nocaseglob 20495 20496# Command to associate shared and link libraries. 20497sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20498 20499# The archiver. 20500AR=$lt_AR 20501 20502# Flags to create an archive. 20503AR_FLAGS=$lt_AR_FLAGS 20504 20505# How to feed a file listing to the archiver. 20506archiver_list_spec=$lt_archiver_list_spec 20507 20508# A symbol stripping program. 20509STRIP=$lt_STRIP 20510 20511# Commands used to install an old-style archive. 20512RANLIB=$lt_RANLIB 20513old_postinstall_cmds=$lt_old_postinstall_cmds 20514old_postuninstall_cmds=$lt_old_postuninstall_cmds 20515 20516# Whether to use a lock for old archive extraction. 20517lock_old_archive_extraction=$lock_old_archive_extraction 20518 20519# A C compiler. 20520LTCC=$lt_CC 20521 20522# LTCC compiler flags. 20523LTCFLAGS=$lt_CFLAGS 20524 20525# Take the output of nm and produce a listing of raw symbols and C names. 20526global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20527 20528# Transform the output of nm in a proper C declaration. 20529global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20530 20531# Transform the output of nm into a list of symbols to manually relocate. 20532global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20533 20534# Transform the output of nm in a C name address pair. 20535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20536 20537# Transform the output of nm in a C name address pair when lib prefix is needed. 20538global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20539 20540# The name lister interface. 20541nm_interface=$lt_lt_cv_nm_interface 20542 20543# Specify filename containing input files for \$NM. 20544nm_file_list_spec=$lt_nm_file_list_spec 20545 20546# The root where to search for dependent libraries,and where our libraries should be installed. 20547lt_sysroot=$lt_sysroot 20548 20549# Command to truncate a binary pipe. 20550lt_truncate_bin=$lt_lt_cv_truncate_bin 20551 20552# The name of the directory that contains temporary libtool files. 20553objdir=$objdir 20554 20555# Used to examine libraries when file_magic_cmd begins with "file". 20556MAGIC_CMD=$MAGIC_CMD 20557 20558# Must we lock files when doing compilation? 20559need_locks=$lt_need_locks 20560 20561# Manifest tool. 20562MANIFEST_TOOL=$lt_MANIFEST_TOOL 20563 20564# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20565DSYMUTIL=$lt_DSYMUTIL 20566 20567# Tool to change global to local symbols on Mac OS X. 20568NMEDIT=$lt_NMEDIT 20569 20570# Tool to manipulate fat objects and archives on Mac OS X. 20571LIPO=$lt_LIPO 20572 20573# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20574OTOOL=$lt_OTOOL 20575 20576# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20577OTOOL64=$lt_OTOOL64 20578 20579# Old archive suffix (normally "a"). 20580libext=$libext 20581 20582# Shared library suffix (normally ".so"). 20583shrext_cmds=$lt_shrext_cmds 20584 20585# The commands to extract the exported symbol list from a shared archive. 20586extract_expsyms_cmds=$lt_extract_expsyms_cmds 20587 20588# Variables whose values should be saved in libtool wrapper scripts and 20589# restored at link time. 20590variables_saved_for_relink=$lt_variables_saved_for_relink 20591 20592# Do we need the "lib" prefix for modules? 20593need_lib_prefix=$need_lib_prefix 20594 20595# Do we need a version for libraries? 20596need_version=$need_version 20597 20598# Library versioning type. 20599version_type=$version_type 20600 20601# Shared library runtime path variable. 20602runpath_var=$runpath_var 20603 20604# Shared library path variable. 20605shlibpath_var=$shlibpath_var 20606 20607# Is shlibpath searched before the hard-coded library search path? 20608shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20609 20610# Format of library name prefix. 20611libname_spec=$lt_libname_spec 20612 20613# List of archive names. First name is the real one, the rest are links. 20614# The last name is the one that the linker finds with -lNAME 20615library_names_spec=$lt_library_names_spec 20616 20617# The coded name of the library, if different from the real name. 20618soname_spec=$lt_soname_spec 20619 20620# Permission mode override for installation of shared libraries. 20621install_override_mode=$lt_install_override_mode 20622 20623# Command to use after installation of a shared archive. 20624postinstall_cmds=$lt_postinstall_cmds 20625 20626# Command to use after uninstallation of a shared archive. 20627postuninstall_cmds=$lt_postuninstall_cmds 20628 20629# Commands used to finish a libtool library installation in a directory. 20630finish_cmds=$lt_finish_cmds 20631 20632# As "finish_cmds", except a single script fragment to be evaled but 20633# not shown. 20634finish_eval=$lt_finish_eval 20635 20636# Whether we should hardcode library paths into libraries. 20637hardcode_into_libs=$hardcode_into_libs 20638 20639# Compile-time system search path for libraries. 20640sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20641 20642# Detected run-time system search path for libraries. 20643sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20644 20645# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20646configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20647 20648# Whether dlopen is supported. 20649dlopen_support=$enable_dlopen 20650 20651# Whether dlopen of programs is supported. 20652dlopen_self=$enable_dlopen_self 20653 20654# Whether dlopen of statically linked programs is supported. 20655dlopen_self_static=$enable_dlopen_self_static 20656 20657# Commands to strip libraries. 20658old_striplib=$lt_old_striplib 20659striplib=$lt_striplib 20660 20661 20662# The linker used to build libraries. 20663LD=$lt_LD 20664 20665# How to create reloadable object files. 20666reload_flag=$lt_reload_flag 20667reload_cmds=$lt_reload_cmds 20668 20669# Commands used to build an old-style archive. 20670old_archive_cmds=$lt_old_archive_cmds 20671 20672# A language specific compiler. 20673CC=$lt_compiler 20674 20675# Is the compiler the GNU compiler? 20676with_gcc=$GCC 20677 20678# Compiler flag to turn off builtin functions. 20679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20680 20681# Additional compiler flags for building library objects. 20682pic_flag=$lt_lt_prog_compiler_pic 20683 20684# How to pass a linker flag through the compiler. 20685wl=$lt_lt_prog_compiler_wl 20686 20687# Compiler flag to prevent dynamic linking. 20688link_static_flag=$lt_lt_prog_compiler_static 20689 20690# Does compiler simultaneously support -c and -o options? 20691compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20692 20693# Whether or not to add -lc for building shared libraries. 20694build_libtool_need_lc=$archive_cmds_need_lc 20695 20696# Whether or not to disallow shared libs when runtime libs are static. 20697allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20698 20699# Compiler flag to allow reflexive dlopens. 20700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20701 20702# Compiler flag to generate shared objects directly from archives. 20703whole_archive_flag_spec=$lt_whole_archive_flag_spec 20704 20705# Whether the compiler copes with passing no objects directly. 20706compiler_needs_object=$lt_compiler_needs_object 20707 20708# Create an old-style archive from a shared archive. 20709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20710 20711# Create a temporary old-style archive to link instead of a shared archive. 20712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20713 20714# Commands used to build a shared archive. 20715archive_cmds=$lt_archive_cmds 20716archive_expsym_cmds=$lt_archive_expsym_cmds 20717 20718# Commands used to build a loadable module if different from building 20719# a shared archive. 20720module_cmds=$lt_module_cmds 20721module_expsym_cmds=$lt_module_expsym_cmds 20722 20723# Whether we are building with GNU ld or not. 20724with_gnu_ld=$lt_with_gnu_ld 20725 20726# Flag that allows shared libraries with undefined symbols to be built. 20727allow_undefined_flag=$lt_allow_undefined_flag 20728 20729# Flag that enforces no undefined symbols. 20730no_undefined_flag=$lt_no_undefined_flag 20731 20732# Flag to hardcode \$libdir into a binary during linking. 20733# This must work even if \$libdir does not exist 20734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20735 20736# Whether we need a single "-rpath" flag with a separated argument. 20737hardcode_libdir_separator=$lt_hardcode_libdir_separator 20738 20739# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20740# DIR into the resulting binary. 20741hardcode_direct=$hardcode_direct 20742 20743# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20744# DIR into the resulting binary and the resulting library dependency is 20745# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20746# library is relocated. 20747hardcode_direct_absolute=$hardcode_direct_absolute 20748 20749# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20750# into the resulting binary. 20751hardcode_minus_L=$hardcode_minus_L 20752 20753# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20754# into the resulting binary. 20755hardcode_shlibpath_var=$hardcode_shlibpath_var 20756 20757# Set to "yes" if building a shared library automatically hardcodes DIR 20758# into the library and all subsequent libraries and executables linked 20759# against it. 20760hardcode_automatic=$hardcode_automatic 20761 20762# Set to yes if linker adds runtime paths of dependent libraries 20763# to runtime path list. 20764inherit_rpath=$inherit_rpath 20765 20766# Whether libtool must link a program against all its dependency libraries. 20767link_all_deplibs=$link_all_deplibs 20768 20769# Set to "yes" if exported symbols are required. 20770always_export_symbols=$always_export_symbols 20771 20772# The commands to list exported symbols. 20773export_symbols_cmds=$lt_export_symbols_cmds 20774 20775# Symbols that should not be listed in the preloaded symbols. 20776exclude_expsyms=$lt_exclude_expsyms 20777 20778# Symbols that must always be exported. 20779include_expsyms=$lt_include_expsyms 20780 20781# Commands necessary for linking programs (against libraries) with templates. 20782prelink_cmds=$lt_prelink_cmds 20783 20784# Commands necessary for finishing linking programs. 20785postlink_cmds=$lt_postlink_cmds 20786 20787# Specify filename containing input files. 20788file_list_spec=$lt_file_list_spec 20789 20790# How to hardcode a shared library path into an executable. 20791hardcode_action=$hardcode_action 20792 20793# ### END LIBTOOL CONFIG 20794 20795_LT_EOF 20796 20797 cat <<'_LT_EOF' >> "$cfgfile" 20798 20799# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20800 20801# func_munge_path_list VARIABLE PATH 20802# ----------------------------------- 20803# VARIABLE is name of variable containing _space_ separated list of 20804# directories to be munged by the contents of PATH, which is string 20805# having a format: 20806# "DIR[:DIR]:" 20807# string "DIR[ DIR]" will be prepended to VARIABLE 20808# ":DIR[:DIR]" 20809# string "DIR[ DIR]" will be appended to VARIABLE 20810# "DIRP[:DIRP]::[DIRA:]DIRA" 20811# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20812# "DIRA[ DIRA]" will be appended to VARIABLE 20813# "DIR[:DIR]" 20814# VARIABLE will be replaced by "DIR[ DIR]" 20815func_munge_path_list () 20816{ 20817 case x$2 in 20818 x) 20819 ;; 20820 *:) 20821 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20822 ;; 20823 x:*) 20824 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20825 ;; 20826 *::*) 20827 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20828 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20829 ;; 20830 *) 20831 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20832 ;; 20833 esac 20834} 20835 20836 20837# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20838func_cc_basename () 20839{ 20840 for cc_temp in $*""; do 20841 case $cc_temp in 20842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20844 \-*) ;; 20845 *) break;; 20846 esac 20847 done 20848 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20849} 20850 20851 20852# ### END FUNCTIONS SHARED WITH CONFIGURE 20853 20854_LT_EOF 20855 20856 case $host_os in 20857 aix3*) 20858 cat <<\_LT_EOF >> "$cfgfile" 20859# AIX sometimes has problems with the GCC collect2 program. For some 20860# reason, if we set the COLLECT_NAMES environment variable, the problems 20861# vanish in a puff of smoke. 20862if test set != "${COLLECT_NAMES+set}"; then 20863 COLLECT_NAMES= 20864 export COLLECT_NAMES 20865fi 20866_LT_EOF 20867 ;; 20868 esac 20869 20870 20871ltmain=$ac_aux_dir/ltmain.sh 20872 20873 20874 # We use sed instead of cat because bash on DJGPP gets confused if 20875 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20876 # text mode, it properly converts lines to CR/LF. This bash problem 20877 # is reportedly fixed, but why not run on old versions too? 20878 sed '$q' "$ltmain" >> "$cfgfile" \ 20879 || (rm -f "$cfgfile"; exit 1) 20880 20881 mv -f "$cfgfile" "$ofile" || 20882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20883 chmod +x "$ofile" 20884 20885 ;; 20886 "configure-embedded-libav":C) echo "Configuring included Libav instance with args $emblibav_configure_args" 20887 origdir=`pwd` 20888 if test -z "$srcdir" -o "$srcdir" = .; then 20889 confcmd=./configure 20890 else 20891 confcmd="$ac_abs_top_srcdir"/gst-libs/ext/libav/configure 20892 fi 20893 gasppdir="$ac_abs_top_srcdir"/gst-libs/ext/gas-preprocessor 20894 20895 as_dir="$ac_top_build_prefix"gst-libs/ext/libav; as_fn_mkdir_p 20896 oldPATH="$PATH" 20897 PATH="$gasppdir:$PATH" 20898 cd "$ac_top_build_prefix"gst-libs/ext/libav && 20899 eval "$confcmd $emblibav_configure_args" || 20900 as_fn_error $? "Failed to configure embedded Libav tree" "$LINENO" 5 20901 PATH="$oldPATH" 20902 cd "$origdir" 20903 ;; 20904 20905 esac 20906done # for ac_tag 20907 20908 20909as_fn_exit 0 20910_ACEOF 20911ac_clean_files=$ac_clean_files_save 20912 20913test $ac_write_fail = 0 || 20914 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20915 20916 20917# configure is writing to config.log, and then calls config.status. 20918# config.status does its own redirection, appending to config.log. 20919# Unfortunately, on DOS this fails, as config.log is still kept open 20920# by configure, so config.status won't be able to write to it; its 20921# output is simply discarded. So we exec the FD to /dev/null, 20922# effectively closing config.log, so it can be properly (re)opened and 20923# appended to by config.status. When coming back to configure, we 20924# need to make the FD available again. 20925if test "$no_create" != yes; then 20926 ac_cs_success=: 20927 ac_config_status_args= 20928 test "$silent" = yes && 20929 ac_config_status_args="$ac_config_status_args --quiet" 20930 exec 5>/dev/null 20931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20932 exec 5>>config.log 20933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20934 # would make configure fail if this is the last instruction. 20935 $ac_cs_success || as_fn_exit 1 20936fi 20937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20940fi 20941 20942 20943 20944 if test "$HAVE_ORC" = yes ; then 20945 printf "configure: *** Orc acceleration enabled.\n" 20946 else 20947 if test "x$enable_orc" = "xno" ; then 20948 printf "configure: *** Orc acceleration disabled by --disable-orc. Slower code paths\n" 20949 printf " will be used.\n" 20950 else 20951 printf "configure: *** Orc acceleration disabled. Requires Orc >= $ORC_REQ, which was\n" 20952 printf " not found. Slower code paths will be used.\n" 20953 fi 20954 fi 20955 printf "\n" 20956 20957